OSDN Git Service

PR rtl-optimization/22445
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
2
3         PR rtl-optimization/22445
4         * cselib.c (target.h): Include.
5         (rtx_equal_for_cselib_p): Allow commutative matches.
6         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
7         Remove MODE parameter.  Changed all callers.
8
9         PR rtl-optimization/22258
10         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
11         New functions.
12         (try_combine): Use likely_spilled_retval_p.
13
14 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
15
16         * config.gcc: Add crx-elf support.
17
18         * doc/contrib.texi: Mention crx.
19         * doc/extend.texi: Document crx extensions.
20         * doc/install.texi: Document crx install.
21         * doc/invoke.texi: Document crx options.
22         * doc/md.texi: Document crx constraints.
23
24         * config/crx/crx-protos.h: New file.
25         * config/crx/crx.c: New file.
26         * config/crx/crx.h: New file.
27         * config/crx/crx.md: New file.
28         * config/crx/crx.opt: New file.
29         * config/crx/t-crx: New file.
30         
31 2005-07-22  Manfred Hollstein  <mh@suse.com>
32
33         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
34         warnings.
35         (int_add_graph_edge): Likewise.
36         (collapse_nodes): Likewise.
37         (process_unification_queue): Likewise.
38
39 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
40             Laurent GUERBY  <laurent@guerby.net>
41
42         PR tree-optimization/22336
43         * function.c (record_block_change): Check for 
44         cfun->ib_boundaries_block.
45         
46 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
47
48         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
49         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
50
51 2005-07-21  DJ Delorie  <dj@redhat.com>
52
53         * toplev.c (warn_deprecated_use): Add warning control to warning
54         call.
55         * c-typeck.c (parser_build_binary_op): Likewise.
56         (c_finish_if_stmt): Likewise.
57         * c-common.c (check_function_sentinel): Likewise.
58         (check_nonnull_arg): Likewise.
59
60 2005-07-21  Richard Henderson  <rth@redhat.com>
61
62         PR tree-opt/22504
63         * tree-complex.c (complex_ssa_name_components): New.
64         (cvc_lookup): Allow entry not found.
65         (create_components): Remove.
66         (create_one_component_var, get_component_var): New.
67         (get_component_ssa_name, set_component_ssa_name): New.
68         (extract_component): Use get_component_ssa_name.
69         (update_complex_components): Use set_component_ssa_name.
70         (update_complex_components_on_edge): Likewise.
71         (update_phi_components): Create new PHI nodes directly, instead
72         of adding insns to edges.
73         (tree_lower_complex): Allocate and free complex_variable_components
74         and complex_ssa_name_components here.
75
76 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
77         
78         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
79         revert to returning false.
80
81 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
82
83         PR target/21149
84         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
85
86 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
87
88         PR target/22576
89         * config/i386/i386.md (cmpxf): Change operand constraints
90         to "nonmemory_operand".
91
92 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
93
94         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
95
96 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
97
98         PR middle-end/21180
99         * fold-const.c (fold_build1): Add checksum for the operands.
100         (fold_build2): Likewise.        
101         (fold_build3): Likewise.
102
103 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
104
105         PR middle-end/19055
106         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
107
108 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
109
110         * common.opt (-fforward-propagate): Committed by mistake,
111         removed.
112
113 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
114
115         * reg-stack.c: Fix comment typo(s).
116         * tree-ssa-operands.c: Likewise.
117         * tree-vectorizer: Likewise.
118
119 2005-07-21  Nick Clifton  <nickc@redhat.com>
120
121         * config/sh/symbian.c: Replace C++ style line comments with C
122         style line comments.
123         (symbian_add_attribute): Do not use a ? operator on the LHS of
124         an assignment.
125         (sh_symbian_handle_dll_attribute): Change the type of the
126         method vector to "VEC(tree,gc)*" and use vector accessor
127         macros to walk over the elements.
128         (symbian_export_vtable_and_rtti_p): Likewise.
129         (symbian_class_needs_attribute_p): Likewise.
130
131 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
132
133         PR target/22085
134         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
135         initialize targetm.resolve_overloaded_builtin here.
136         (altivec_expand_overloaded_builtin): Make it non-static.
137         * config/rs6000/rs6000-protos.h
138         (altivec_expand_overloaded_builtin): New prototype.
139         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
140         targetm.resolve_overloaded_builtin here.
141         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
142
143 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
144             Zdenek Dvorak  <dvorakz@suse.cz>
145
146         PR tree-optimization/19210
147         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
148         New.
149         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
150         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
151         rely on unproven assumptions.
152         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
153         * tree-flow.h (number_of_iterations_exit): Add final parameter.
154         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
155         to number_of_iterations_exit.
156         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
157         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
158         * tree-ssa-loop-niter.c (find_loop_niter,
159         estimate_numbers_of_iterations_loop): Likewise.
160         (number_of_iterations_exit): Honor the new options.
161         * doc/invoke.texi (Wunsafe-loop-optimizations,
162         funsafe-loop-optimizations): Document them.
163
164 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
165
166         PR rtl-optimization/22167
167         * gcse.c (hoist_code): Fix hoist_exprs[] check.
168
169 2005-07-20  Adam Nemet  <anemet@lnxw.com>
170
171         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
172         __do_global_dtors_aux longcall.
173
174 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
175
176         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
177         (old_special_pred_table): Don't reference
178         SPECIAL_MODE_PREDICATES.
179         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
180         * config/arc/arc.h: Don't mention PREDICATE_CODES.
181         * config/sh/predicates.h: Don't mention
182         SPECIAL_MODE_PREDICATES.
183         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
184         Remove.
185
186 2005-07-20  DJ Delorie  <dj@redhat.com>
187
188         * config.gcc: Add m32c-elf support.
189
190         * doc/contrib.texi: Mention m32c.
191         * doc/extend.texi: Document m32c extensions.
192         * doc/install.texi: Mention m32c.
193         * doc/invoke.texi: Document m32c options.
194         * doc/md.texi: Document m32c constraints.
195
196         * config/m32c/addsub.md: New file.
197         * config/m32c/bitops.md: New file.
198         * config/m32c/cond.md: New file.
199         * config/m32c/jump.md: New file.
200         * config/m32c/m32c-lib1.S: New file.
201         * config/m32c/m32c-lib2.c: New file.
202         * config/m32c/m32c-modes.def: New file.
203         * config/m32c/m32c-pragma.c: New file.
204         * config/m32c/m32c-protos.h: New file.
205         * config/m32c/m32c.abi: New file.
206         * config/m32c/m32c.c: New file.
207         * config/m32c/m32c.h: New file.
208         * config/m32c/m32c.md: New file.
209         * config/m32c/m32c.opt: New file.
210         * config/m32c/minmax.md: New file.
211         * config/m32c/mov.md: New file.
212         * config/m32c/muldiv.md: New file.
213         * config/m32c/predicates.md: New file.
214         * config/m32c/prologue.md: New file.
215         * config/m32c/shift.md: New file.
216         * config/m32c/t-m32c: New file.
217
218 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
219
220         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
221         (stack_protect_set, stack_protect_test): New expanders.
222         (stack_protect_set_si, stack_protect_set_si_media,
223         stack_protect_set_di_media, stack_protect_test_si,
224         stack_protect_test_si_media, stack_protect_test_di_media):
225         New insns.
226
227 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
228
229         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
230
231 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
232
233         * tree.h (tree_expr_nonzero_p): Export.
234         * fold-const.c (tree_expr_nonzero_p): Likewise.
235         Return true for CALL_EXPRs that are alloca calls.
236         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
237         against zero.
238         * tree-flow.h (expr_computes_nonzero): Remove.
239         * tree-vrp.c (expr_computes_nonzero): Remove.
240         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
241         (extract_range_from_unary_expr): Likewise.
242         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
243         tree_expr_nonzero_p.
244
245 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
246
247         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
248         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
249         extra arg "picreg" and use it instead of pic_offset_table_rtx.
250         All callers changed.
251         (frame_related_constant_load): New arg "related" which controls
252         setting of RTX_FRAME_RELATED_P.  All callers changed.
253         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
254         (bfin_expand_prologue): Add stack limit checking.
255         * config/bfin/bfin.md (trapifcc): New pattern.
256
257         * config/bfin/bfin.c: Include "langhooks.h".
258         (def_builtin): Go through lang_hooks to call builtin_function.
259
260         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
261         * config/bfin/predicates.md (symbol_ref_operand): New.
262         (call_insn_operand): Delete.  All callers changed to use
263         register_no_elim_operand.
264         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
265         call_cookie field.
266         (function_arg): Use it to generate the call's operand 2.
267         (bfin_longcall_p): New function.
268         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
269         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
270         determine if the address needs to be in a REG.
271         (bfin_handle_longcall_attribute): New function.
272         (bfin_attribute_table): Add "longcall" and "shortcall".
273         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
274         (CUMULATIVE_ARGS): New member call_cookie.
275         (PREDICATE_CODES): Add symbol_ref_operand.
276         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
277         extra USE to the pattern.
278         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
279         New patterns, split off call_insn, sibcall_insn, call_value_insn and
280         sibcall_value_insn; now the new patterns handle direct calls and the
281         old ones indirect calls.
282         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
283
284 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
285
286         * doc/trouble.texi: Update section on handling of empty loops.
287
288 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
289
290         * config.gcc: Remove support for sparc-*-openbsd*,
291         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
292         ns32k-*-netbsd*.
293         * config.host: Remove support for i860-*-sysv4* as a host.
294         * config/i860/*, config/ip2k/*, config/ns32k/*,
295         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
296         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
297         mention obsolete ports.
298
299 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
300
301         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
302         soft frame pointer.
303         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
304         of frame_pointer_rtx.
305         (sh_expand_epilogue): Likewise.
306         (sh_set_return_address): Likewise.
307         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
308         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
309         offsets from FRAME_POINTER_REGNUM.
310         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
311         (sh_register_names): Add initializer for sfp.
312         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
313         (VALID_REGISTER_P): Likewise.
314         (FIRST_PSEUDO_REGISTER): Update.
315         (DWARF_FRAME_REGISTERS): Define.
316         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
317         (HARD_FRAME_POINTER_REGNUM): Define.
318         (FRAME_POINTER_REGNUM): Redefine.
319         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
320         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
321         from FRAME_POINTER_REGNUM.
322         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
323         FRAME_POINTER_REGNUM.
324         (REG_CLASS_CONTENTS): Add sfp.
325         (REG_ALLOC_ORDER): Likewise.
326         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
327         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
328         of frame_pointer_rtx.
329         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
330
331 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
332
333         * fold-const.c (tree_expr_nonnegative_p): Only return true for
334         ABS_EXPR when flag_wrapv is false because of INT_MIN.
335         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
336         of an ABS_EXPR.
337         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
338         ABS_EXPR<x>.
339
340 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
341
342         Make CONSTRUCTOR use VEC to store initializers.
343         * c-common.c (complete_array_type): Update to cope with VEC in
344         CONSTRUCTOR_ELTS.
345         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
346         (pp_c_constructor_elts): New function.
347         * c-pretty-print.h (pp_c_constructor_elts): Declare.
348         * c-typeck.c (build_function_call, build_c_cast, digest_init,
349         struct constructor_stack, struct initializer_stack,
350         constructor_elements, push_init_level, pop_init_level,
351         add_pending_init, find_init_member, output_init_element): Update to
352         cope with VEC in CONSTRUCTOR_ELTS.
353         * coverage.c (build_fn_info_value, build_ctr_info_value,
354         build_gcov_info): Likewise.
355         * expr.c (categorize_ctor_elements_1, store_constructor,
356         expand_expr_real_1): Likewise.
357         * fold-const.c (fold_ternary): Likewise.
358         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
359         gimplify_init_constructor, gimplify_expr): Likewise.
360         * tree-dump.c (dequeue_and_dump): Likewise.
361         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
362         node.
363         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
364         CONSTRUCTOR_ELTS.
365         * tree-sra.c (generate_element_init_1): Likewise.
366         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
367         * tree-ssa-operands.c (get_expr_operands): Likewise.
368         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
369         * tree-vect-transform.c (vect_get_vec_def_for_operand):
370         (get_initial_def_for_reduction): Likewise.
371         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
372         value handle in annotations.
373         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
374         tree_node_structure): Add support for constr_kind.
375         (build_vector_from_ctor, build_constructor_single,
376         build_constructor_from_list): New functions.
377         (build_constructor): Update to take a VEC instead of a TREE_LIST.
378         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
379         Update to cope with VEC in CONSTRUCTOR_ELTS.
380         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
381         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
382         CONSTRUCTOR_APPEND_ELT): New macros.
383         (struct constructor_elt, struct tree_constructor): New data types.
384         (union tree_node): Add tree_constructor field.
385         * treestruct.def: Define TS_CONSTRUCTOR.
386         * varasm.c (const_hash_1, compare_constant, copy_constant,
387         compute_reloc_for_constant, output_addressed_constants,
388         initializer_constant_valid_p, output_constant,
389         array_size_for_constructor, output_constructor): Update to cope with
390         VEC in CONSTRUCTOR_ELTS.
391         * vec.h (VEC_empty, VEC_copy): New macros.
392
393 2005-07-19  Devang Patel  <dpatel@apple.com>
394
395         * dbxout.c (dbxout_type): Check Objective-C++ lang.
396         
397 2005-07-19  Richard Henderson  <rth@redhat.com>
398
399         PR tree-opt/22278
400         * gimplify.c (gimplify_expr): Use main variant type for the temp
401         destination for a discarded volatile read.
402         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
403         casts between non-void types that change volatility.
404
405 2005-07-15  DJ Delorie  <dj@redhat.com>
406
407         * toplev.h: Add comment about the first parameter for warning().
408         * errors.h: Likewise.
409
410         * c.opt (Wpragmas): New.
411         * doc/invoke.texi: Document it.
412         
413         * function.c (do_warn_unused_parameter): Add warning control to
414         warning call.
415         * c-decl.c (warn_if_shadowing): Likewise.
416         * c-lex.c (cb_def_pragma): Likewise.
417         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
418         (pop_alignment): Likewise.
419         (handle_pragma_pack): Likewise.
420         (apply_pragma_weak): Likewise.
421         (handle_pragma_weak): Likewise.
422         (handle_pragma_redefine_extname): Likewise.
423         (add_to_renaming_pragma_list): Likewise.
424         (handle_pragma_extern_prefix): Likewise.
425         (maybe_apply_renaming_pragma): Likewise.
426         (handle_pragma_visibility): Likewise.
427         
428         * config/c4x/c4x-c.c (BAD): Likewise.
429         (c4x_parse_pragma): Likewise.
430         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
431         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
432         (rs6000_pragma_longcall): Likewise.
433         * config/v850/v850-c.c (pop_data_area): Likewise.
434         (ghs_pragma_section): Likewise.
435         (ghs_pragma_section): Likewise.
436         (ghs_pragma_interrupt): Likewise.
437         (ghs_pragma_starttda): Likewise.
438         (ghs_pragma_startsda): Likewise.
439         (ghs_pragma_startzda): Likewise.
440         (ghs_pragma_endtda): Likewise.
441         (ghs_pragma_endsda): Likewise.
442         (ghs_pragma_endzda): Likewise.
443
444 2005-07-19  Danny Berlin <dberlin@dberlin.org>
445             Kenneth Zadeck <zadeck@naturalbridge.com>
446
447         * Makefile.in: Removed tree-promote-statics.c
448         * tree-promote-statics.c: Removed.
449         * common.opt: Removed flag-promote-statics.
450         * opts.c: Ditto.
451         * passes.c: Removed tree-promote-statics pass. 
452         * tree-pass.h: Ditto.
453         * timevar.def: Removed TV_PROMOTE_STATICS.
454
455
456 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
457
458         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
459         and *-*-freebsd9.
460         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
461         
462 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
463
464         PR c/22476
465         * c-common.c (check_function_arguments): Call
466         'check_function_format' if either -Wformat or
467         -Wmissing-format-attribute are specified.
468         * c-format.c (check_function_format): Check -Wformat before
469         calling 'check_format_info'.
470         * c-opts.c (c_common_post_options): Don't warn for
471         -Wmissing-format-attribute without -Wformat.
472         * c-typeck.c (convert_for_assignment): Detect additional cases for
473         -Wmissing-format-attribute.
474         * doc/invoke.texi (-Wmissing-format-attribute): Document new
475         behavior.
476
477 2005-07-19  Richard Guenther  <rguenther@suse.de>
478
479         * config/i386/i386.md (lrint<mode>2): Use temporary
480         instead of clobbering non-existent memory.
481
482 2005-07-19  Nick Clifton  <nickc@redhat.com>
483
484         * config/avr/avr.c (legitimate_address_p): Fix debugging print
485         statement to avoid displaying ASCII control characters.
486
487 2005-07-19  Ben Elliston  <bje@au.ibm.com>
488
489         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
490         * cfganal.c (find_edge_index): Ditto.
491         * combine.c (combine_instructions): Ditto.
492         * ddg.c (create_scc): Ditto.
493         (find_successors): Ditto.
494         (find_predecessors): Ditto.
495         (find_nodes_on_paths): Ditto.
496         (longest_simple_path): Ditto.
497         * flow.c (update_life_info): Ditto.
498         (count_or_remove_death_notes): Ditto.
499         (clear_log_links): Ditto.
500         * modulo-sched.c (generate_reg_moves): Ditto.
501         (find_max_asap): Ditto.
502         (find_max_hv_min_mob): Ditto.
503         (find_max_dv_min_mob): Ditto.
504         * sbitmap.c (sbitmap_first_set_bit): Ditto.
505         * sched-rgn.c (extract_edgelst): Ditto.
506         * tree-into-ssa.c (prepare_names_to_update): Ditto.
507         (dump_update_ssa): Ditto.
508         (ssa_names_to_replace) Ditto.
509         (switch_virtuals_to_full_rewrite): Ditto.
510         (update_ssa): Ditto.
511         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
512
513 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
514
515         Fix PR tree-optimization/22483
516         
517         * tree-complex.c (create_components): Use
518         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
519         * tree-flow-inline.h (fill_referenced_var_vec): New function.
520         * tree-flow.h (safe_referenced_var_iterator): New structure.
521         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
522         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
523         safe_referenced_var iterator.
524         (add_type_alias): Ditto.
525
526 2005-07-19  Steven Bosscher  <stevenb@suse.de>
527
528         * loop-init.c (rest_of_handle_loop2): Remove.
529         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
530         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
531         (pass_rtl_loop_init, pass_rtl_loop_done,
532         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
533         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
534         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
535         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
536         pass_tree_loop_done, and pass_tree_unswitch.
537         (gate_loop): Rename to gate_tree_loop.
538         * passes.c (init_optimization_passes): Update for renamed tree
539         loop passes.  Add the new loop2 passes as subpasses of loop2.
540         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
541         Update for the renamed tree loop passes.
542
543 2005-07-18  Ian Lance Taylor  <ian@airs.com>
544
545         PR middle-end/22057
546         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
547         blocks when optimizing.
548
549 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
550
551         * common.opt (frename-registers): Initialize to 2.
552         (fweb): Ditto.
553         (fgcse-after-reload): Ditto.
554         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
555         (process_options): Only change flag_web, flag_rename_registers,
556         and flag_rerun_cse_after_loop if not explicitly set by user.
557
558 2005-07-18  Jan Beulich  <jbeulich@novell.com>
559
560         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
561         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
562         in 64-bit mode the same as DImode in 32-bit mode.
563         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
564         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
565         mode. Add new mode parameter. 
566         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
567         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
568         x86_64_shift_adj): New expanders.
569         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
570         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
571         insns.
572         Respective new splitters. Use renamed shift splitter helpers in 32-bit
573         DImode shift splitters.
574         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
575         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
576         mode parameter.
577
578 2005-07-18  Jan Beulich  <jbeulich@novell.com>
579
580         * i386.md (movdi_extzv_1): New.
581         (zero_extendhidi2): Combine alternatives and never force use of
582         REX64 prefix.
583         (zero_extendqidi2): Likewise. Don't restrict input selection.
584
585 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
586
587         Fix PR tree-optimization/22531
588         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
589          moment.
590
591 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
592
593         * tree-promote-statics.c (pass_promote_statics): Change dump file
594          name.
595
596 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
597
598         * tree-optimize.c (init_tree_optimization_passes): Add
599         pass_eliminate_useless_stores pass.
600         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
601         * tree-ssa-pre.c (is_copy_stmt): New function.
602         (follow_copies_till_vuse): Ditto.
603         (do_eustores): Ditto.
604         (gate_eustores): Ditto. 
605         
606 2005-07-16  Richard Henderson  <rth@redhat.com>
607
608         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
609
610 2005-07-16 Danny Berlin <dberlin@dberlin.org>
611            Kenneth Zadeck <zadeck@naturalbridge.com>
612
613         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
614         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
615         ipa-type-escape.h, tree-promote-statics.c
616         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
617         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h, 
618         tree-promote-statics.c: new files.
619         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
620         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
621         int nonlocal_set_p, mark_constant_function): Deleted.
622         (rest_of_handle_cfg): Removed call to mark_constant_function. 
623         (nonoverlapping_component_refs_p): Added calls to support
624         type based aliasing.    
625         * tree-ssa-alias.c (may_alias_p,
626         compute_flow_insensitive_aliasing): Ditto.
627         * calls.c (flags_from_decl_or_type): Removed reference to
628         cgraph_rtl_info. 
629         * c-typeck.c (convert_arguments): Make builtins tolerant of having
630         too many arguments.  This is necessary for Spec 2000.
631         * cgraph.h (const_function, pure_function): Removed.
632         * common.opt: Added "fipa-pure-const", "fipa-reference",  
633         "fipa-type-escape", and "ftree-promote-static".
634         * opts.c: Ditto.
635         * passes.c: Added ipa and tree-promote-statics passes. 
636         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
637         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
638         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
639         * tree-flow.h: Added exposed sra calls and addition of 
640         reference_vars_info field for FUNCTION_DECLS.
641         * tree-pass.h: Added passes.
642         * tree-sra.c: (sra_init_cache): New function.
643         (sra_insert_before, sra_insert_after) Made public.
644         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
645         and made public.
646         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
647         aliasing. (may_alias_p): Added code to use type escape analysis to
648         improve alias sets.
649         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
650         code to prune clobbers of static variables based on information
651         produced in ipa-reference pass.  Changed call clobbering so that
652         statics are not marked as clobbered if the call does not clobber
653         them.
654
655 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
656
657         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
658         too.
659
660 2005-07-16  Eric Botcazou <ebotcazou@libertysurf.fr>
661
662         * doc/install.texi (*-*-solaris2*): Document recommended version
663         of GNU binutils and mention GNU linker problem on Solaris 10.
664
665 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
666
667         PR c/22421
668         * c-decl.c (c_build_bitfield_integer_type): New function.
669         (finish_struct): Call it.
670         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
671
672 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
673
674         * c-typeck.c (digest_init): Call 'convert_for_assignment'
675         before returning.
676
677 2005-07-16  Jan Hubicka  <jh@suse.cz>
678
679         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
680         (scale_bbs_frequencies_int): Watch roundoff errors.
681         * predict.c (return_prediction): Initialize return_stmt.
682
683 2005-07-16  Jan Hubicka  <jh@suse.cz>
684
685         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
686         after RTL profiling.
687
688 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
689
690         PR middle-end/22398
691         * fold-const.c (build_range_check): Convert high/low to etype
692         if we are only comparing against exp.
693
694 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
695
696         Fix PR tree-optimization/22376
697         * tree-ssa-structalias.c (build_constraint_graph): We really meant
698         special var here.
699         (need_to_solve): New function.
700         (compute_points_to_sets): Use it.
701         
702 2005-07-15  Jan Hubicka  <jh@suse.cz>
703
704         * cfg.c (update_bb_profile_for_threading): More diagnostic.
705         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
706
707 2005-07-15  Richard Guenther  <rguenther@suse.de>
708
709         * c-common.c (handle_flatten_attribute): New function.
710         Add flatten function attribute.
711         * doc/extend.texi: Document flatten function attribute.
712         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
713         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
714         New functions.
715         (cgraph_decide_inlining): Handle functions with flatten
716         attribute.
717
718 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
719
720         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
721         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
722         UNSPEC_XCHG, UNSPEC_AND): New.
723         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
724         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
725         * config/rs6000/sync.md (FETCHOP): New code macro.
726         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
727         New code attrs.
728         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
729         (sync_compare_and_swap<mode>): Same.
730         (sync_lock_test_and_set<mode>): Same.
731         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
732         for QImode and HImode, and not PPC405.
733         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
734         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
735         (sync_<fetchop>{si,di}_internal): New.
736         (sync_nand{si,di}_internal): New.
737         (sync_old_<fetchop>{si,di}_internal): New.
738         (sync_old_nand{si,di}_internal): New
739         (sync_new_<fetchop>{si,di}_internal): New.
740         (sync_new_nand{si,di}_internal): New.
741         (atomic_and{si,di}): New.
742         (sync_new_nand{si,di}_internal): New.
743         (atomic_and{si,di}): New.
744         (sync_add<mode>_internal): Delete.
745         (sync_addshort_internal): Use unspec instead of unspec_volatile.
746         (sync_sub<mode>_internal): Delte.
747         (sync_subshort_internal): New.
748         (sync_andsi_internal): Use unspec instead of unspec_volatile.
749         (sync_anddi_internal): Delete.
750         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
751         (sync_booldi_internal): Delete.
752         (sync_boolc<mode>_internal): Delete.
753         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
754         (sync_boolc<mode>_internal2): Delete.
755         (sync_boolcc<mode>_internal): Delete.
756         (isync, lwsync): Use unspec instead of unspec_volatile.
757         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
758         Revert UNSPEC_VOLATILE.
759         (rs6000_split_atomic_op): New.
760         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
761
762 2005-07-14  Eric Christopher  <echristo@redhat.com>
763
764         * config/mips/mips.c (mips_canonicalize_comparison): Cast
765         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
766
767 2005-07-14  Eric Christopher  <echristo@redhat.com>
768
769         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
770
771 2005-07-14  Steven Bosscher  <stevenb@suse.de>
772
773         PR tree-optimization/22230
774         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
775         the computation of the four cross productions for "range op range".
776
777 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
778             Ulrich Weigand  <uweigand@de.ibm.com>
779
780         PR target/20126
781         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
782         in some insn.
783
784 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
785
786         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
787
788 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
789
790         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
791
792 2005-07-14  Richard Guenther  <rguenther@suse.de>
793
794         PR middle-end/22347
795         * config/i386/i386-protos.h (ix86_function_value): Change
796         prototype to match new target hook.
797         * config/i386/i386.c (ix86_value_regno): Change prototype
798         to take extra type argument.
799         (TARGET_FUNCTION_VALUE): Define.
800         (ix86_function_ok_for_sibcall): Pass extra argument to
801         ix86_value_regno, check return slot rtx for exact match.
802         (ix86_function_value): Take extra parameter.  Dispatch to
803         ix86_value_regno with fndecl/fntype as provided.
804         (ix86_value_regno): Handle extra type argument.
805         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
806
807         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
808         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
809         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
810         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
811         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
812
813 2005-07-14  Richard Guenther  <rguenther@suse.de>
814
815         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
816         * calls.c (expand_call): Pass fntype to hard_function_value.
817         (emit_library_call_value_1): Likewise.
818         * explow.c: Include target.h.
819         (hard_function_value): Take extra argument, the fntype.
820         Use new target hook for function_value.
821         * expr.h (hard_function_value): Change prototype.
822         * function.c (aggregate_value_p): Pass 0 as fntype to
823         hard_function_value.
824         (assign_parms): Use new target hook for function_value.
825         Pass 0 as fntype to hard_function_value.
826         (expand_function_end): Likewise.
827         * reg-stack.c: Include target.h.
828         (stack_result): Use new target hook for function_value.
829         * target-def.h: New target hook function_value.
830         * target.h: Likewise.
831         * targhooks.c (default_function_value): New function.
832         * targhooks.h (default_function_value): Declare.
833
834 2005-07-13  Ian Lance Taylor  <ian@airs.com>
835
836         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
837
838 2005-07-14  Jan Hubicka  <jh@suse.cz>
839
840         * tree-dfa.c (dump_variable): Use default_def function.
841         * tree-ssa-alias.c (dump_points_to_info): Likewise.
842         * tree-ssa.c (verify_use): Likewise.
843         * tree-ssanames.c (release_ssa_name): Likewise.
844         * tree-tailcall.c (eliminate_tail_call): Likewise.
845         (tree_optimize_tail_calls_1): Likewise.
846         * tree-vrp.c (get_value_range): Likewise.
847
848 2005-07-14  Ben Elliston  <bje@au.ibm.com>
849
850         * gcc.c (main): Compare language[0] with '*' when iterating over
851         the infiles.
852
853 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
854
855         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
856         "s390_emit_compare".  Add handling of CCZ1mode.
857         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
858         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
859         checking.
860         (s390_branch_condition_mask): Add CCZ1mode handling.
861         * config/s390/s390.md: ("seq", "*seq"): New pattern.
862         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
863         Use CCZ1mode instead of CCZmode.
864         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
865
866 2006-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
867
868         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
869         pattern.
870         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
871
872 2005-07-13  Eric Christopher  <echristo@redhat.com>
873
874         * config/mips/mips.c (mips_canonicalize_comparison): New.
875         (mips_emit_int_relational): Use.
876
877 2005-07-13  Eric Christopher  <echristo@redhat.com>
878
879         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
880         static extra parts.
881         * config/s390/s390.md: Include tpf.md. Move tpf specific
882         patterns...
883         * config/s390/tpf.md: To here.
884         * config/s390/s390.opt: Move tpf specific options...
885         * config/s390/tpf.opt: to here. Add mmain option.
886         * config/s390/tpf-unwind.h: Remove unnecessary defines.
887         * config/s390/tpf.h: Rewrite.
888
889 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
890
891         * doc/tm.texi: Remove @xref{Cross-profiling}.
892
893 2005-07-13  Jeff Law  <law@redhat.com>
894
895         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
896         expressions, test their _DECL operands for pointer equality rather
897         than using operand_equal_p.
898
899 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
900
901         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
902         (TARGET_POSIX_IO): This.
903         * config/darwin.h: Likewise.
904         * config/freebsd.h: Likewise.
905         * config/linux.h: Likewise.
906         * config/lynx.h: Likewise.
907         * config/netbsd.h: Likewise.
908         * config/rs6000/linux64.h: Likewise.
909         * config/rs6000/linux.h: Likewise.
910         * config/s390/tpf.h: Likewise.
911         * config/sh/embed-elf.h: Likewise.
912         * config/sparc/linux64.h: Likewise.
913         * config/sparc/linux.h: Likewise.
914         * config/svr4.h: Likewise.
915         * gcov-io.h: Likewise.
916
917         * doc/tm.texi: Updated.
918
919         * libgcov.c (create_file_directory): Defined only if
920         TARGET_POSIX_IO is defined.
921         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
922         is defined.
923
924 2005-07-13  Jan Hubicka  <jh@suse.cz>
925
926         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
927
928 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
929
930         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
931         structure as argument.
932
933 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
934
935         PR tree-optimization/21921
936         * tree-iterator.c (tsi_link_before): Support the case when
937         tsi_end_p (tsi) == true.
938
939 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
940
941         PR tree-optimization/22442
942         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
943         correctly.
944
945 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
946
947         PR rtl-optimization/20376
948         * toplev.c (process_options): Enable -fweb and -frename-registers when
949         unrolling.
950         * doc/invoke.texi: Update the information about when -fweb and
951         -frename-registers are enabled.
952
953 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
954
955         PR tree-opt/21840
956         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
957         if *rhs_p is not a SSA_NAME.
958
959 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
960         
961         Fix PR tree-optimization/22422 
962         * tree-ssa-structalias.c (struct variable_info): Add flag for
963         special vars.
964         (get_varinfo): Now a static function.
965         (new_varinfo): init has_union and is_special_var to false.
966         (solution_set_add): Check has_union.
967         (do_da_constraint): Move temporary variable so it gets reset
968         properly.
969         Also check for special variable.
970         (do_ds_constraint): Ditto.
971         (do_sd_constraint): Ditto.
972         (do_structure_copy): Check for special variable.
973         (find_func_aliases): Ditto.
974         (init_base_vars): Set special vars properly.    
975
976 2005-07-13  Jan Hubicka  <jh@suse.cz>
977
978         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
979         do unit-at-a-time.
980
981         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
982         (get_expr_operands): Fix thinko wrt flags and subvars.
983
984         PR tree-optimize/22379
985         * tree-inline.c (expand_call_inline): Do not output sorry in early
986         inlining.
987
988 2005-07-12  Dale Johannesen  <dalej@apple.com>
989
990         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
991
992 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
993
994         PR bootstrap/21704
995         * host-linux.h: Include limits.h.
996
997 2005-07-12  Dale Johannesen  <dalej@apple.com>
998
999         * expr.c (compress_float_constant):  Add cost check.
1000         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
1001
1002 2005-07-12  Dale Johannesen  <dalej@apple.com>
1003
1004         * gcc.target/i386/compress-float-sse.c:  New.
1005         * gcc.target/i386/compress-float-sse-pic.c:  New.
1006         * gcc.target/i386/compress-float-387.c:  New.
1007         * gcc.target/i386/compress-float-387-pic.c:  New.
1008         * gcc.dg/compress-float-ppc.c:  New.
1009         * gcc.dg/compress-float-ppc-pic.c:  New.
1010
1011 2005-07-12  Eric Christopher  <echristo@redhat.com>
1012
1013         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
1014         static extra parts.
1015         * config/s390/s390.md: Include tpf.md. Move tpf specific
1016         patterns...
1017         * config/s390/tpf.md: To here.
1018         * config/s390/s390.opt: Move tpf specific options...
1019         * config/s390/tpf.opt: to here. Add mmain option.
1020         * config/s390/tpf-unwind.h: Remove unnecessary defines.
1021         * config/s390/tpf.h: Rewrite.
1022
1023 2005-07-12  Eric Christopher  <echristo@redhat.com>
1024
1025         * gcc.c (struct infile): Update comment for language.
1026         (main): Rewrite input file resetting code.
1027
1028 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
1029
1030         PR tree-opt/22335
1031         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
1032         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
1033         (lookup_avail_expr): Use constant_boolean_node instead
1034         of boolean_false_node/boolean_true_node.
1035
1036 2005-07-12  Ben Elliston  <bje@au.ibm.com>
1037
1038         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
1039         and use it when printing num_edges.
1040
1041 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
1042
1043         * doc/extend.texi (Blackfin Built-in Functions): New section.
1044         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
1045         @opindex.
1046
1047 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
1048
1049         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
1050         s/cmpstrsi/cmpstrnsi
1051         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
1052         'cmpstrnsi'.
1053         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
1054         (init_optabs): Initialize cmpstrn_optab.
1055         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
1056         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
1057         * expr.c: (enum insn_code cmpstrn_optab): Declare.
1058         * config/i386/i386.md: s/cmpstr/cmpstrn
1059         * config/c4x/c4x.md: s/cmpstr/cmpstrn
1060         * doc/md.texi: Update documentation.
1061
1062 2005-07-11  Richard Henderson  <rth@redhat.com>
1063
1064         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
1065         build_va_arg_indirect_ref.
1066         (alpha_gimplify_va_arg): Likewise.
1067         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
1068         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
1069         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
1070         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1071         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1072         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
1073         Likewise.
1074         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1075
1076 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
1077
1078         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
1079         * passes.c (init_optimization_passes): Add pass_empty_loop.
1080         * tree-pass.h (pass_empty_loop): Declare.
1081         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
1082         try_remove_empty_loop, remove_empty_loops): New functions.
1083         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
1084         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
1085
1086 2005-07-12  Peter Barada  <peter@the-baradas.com>
1087
1088         PR middle-end/16719
1089         PR middle-end/18421
1090         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
1091         in address registers.
1092         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
1093         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
1094         alternative of addsi3_5200.
1095
1096 2005-07-11  Ian Lance Taylor  <ian@airs.com>
1097
1098         * config/mips/mips.md (ffs<mode>2): Remove.
1099
1100 2005-07-11  Ian Lance Taylor  <ian@airs.com>
1101
1102         * doc/tree-ssa.texi (Cleanups): Improve description of
1103         TRY_FINALLY_EXPR.
1104         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
1105
1106 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
1107         
1108         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
1109         * tree.h (DECL_ARGUMENT_FLD): New macro.
1110
1111 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
1112         
1113         Fix PR tree-optimization/22404
1114
1115         * tree-ssa-structalias.c (create_variable_info_for): Use
1116         correct offset.
1117
1118 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
1119
1120         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
1121         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
1122         for second comparison operand.
1123         * config/bfin/predicates.md (reg_or_const_int_operand): New.
1124
1125         * config/bfin/bfin.md (define_attr "type"): Add "sync".
1126         (define_insn_reservation "alu"): Likewise.
1127         (csync, ssync): Now of type sync.
1128         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
1129         -mcsync-anomaly -mspecld-anomaly.
1130         * config/bfin/bfin.opt (mcsync): Remove.
1131         (mcsync-anomaly, mspecld-anomaly): Add.
1132         * config/bfin/bfin.c: Include "insn-codes.h".
1133         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
1134         (TARGET_DEFAULT_TARGET_FLAGS): New.
1135         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
1136
1137 2005-07-11  Steven Bosscher  <stevenb@suse.de>
1138
1139         * basic-block.h: Give the BB flags enum a name, bb_flags.
1140         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
1141         * cfgcleanup.c (enum bb_flags): Remove here.
1142         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
1143         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
1144         (update_forwarder_flag): Likewise.
1145         (thread_jump): Likewise.
1146         (try_forward_edges): Likewise.
1147         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
1148         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
1149         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
1150
1151 2005-07-11  Richard Guenther  <rguenther@suse.de>
1152
1153         * config/i386/i386.opt: New target option -msseregparm.
1154         * config/i386/i386.c (override_options): Error out for
1155         -msseregparm but no SSE support.
1156         (ix86_function_sseregparm): Check for global sseregparm.
1157         * doc/invoke.texi: Document -msseregparm.
1158
1159 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1160
1161         * config.gcc (m32r-*-linux*): Use the default extra_parts.
1162         (m32rle-*-linux*): Ditto.
1163
1164 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
1165
1166         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
1167         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
1168         bytes.
1169
1170 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1171
1172         PR middle-end/22239
1173         PR target/20126
1174         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
1175         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
1176
1177 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
1178
1179         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
1180         (varmap): Heapify varmap.
1181         (constraints): Heapify constraints.
1182         (struct constraint_graph): Heapify succs and preds.
1183         (constraint_vec_find): Update for heapification.
1184         (constraint_set_union): Ditto.
1185         (insert_into_complex): Ditto.
1186         (constraint_edge_vec_find): Ditto.
1187         (erase_graph_self_edge): Ditto.
1188         (add_graph_edge): Ditto.
1189         (get_graph_weights): Ditto.
1190         (merge_graph_nodes): Ditto.
1191         (build_constraint_graph): Ditto.
1192         (topo_visit): Ditto.
1193         (solve_graph): Ditto.
1194         (create_variable_info_for): Ditto.
1195         (init_base_vars): Ditto.
1196         (delete_points_to_sets): Free graph, varmap, and complex constraints.
1197         (condese_varmap_nodes): Free complex vector.
1198         (clear_edges_for_node): Clear succs and preds vector.
1199
1200 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
1201
1202         * tree-ssa-structalias.c (update_alias_info): Change counting of
1203         references to not include vdefs.
1204         
1205 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
1206
1207         * tree-ssa-alias.c (free_used_part_map): Add missing free.
1208         (up_insert): Ditto.
1209
1210 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1211
1212         * pa.c (pa_commutative_p): Make PLUS commutative when
1213         TARGET_NO_SPACE_REGS is true.
1214
1215 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
1216
1217         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
1218         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
1219         * tree-dfa.c (dump_subvars_for): New.
1220         (debug_subvars_for): New.
1221         (dump_variable): Show subvariables if VAR has them.
1222         * tree-flow-inline.h (get_subvar_at): New.
1223         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
1224         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
1225         Update all users.
1226         (struct subvar): Change fields offset and size to unsigned
1227         HOST_WIDE_INT.
1228         (dump_subvars_for): Declare.
1229         (debug_subvars_for): Declare.
1230         (get_subvar_at): Declare.
1231         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
1232         to unsigned HOST_WIDE_INT *.
1233         (overlap_subvar): Likewise.
1234         * tree-gimple.c (is_gimple_reg): Always return false for
1235         SFTs and memory tags.
1236         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
1237         Update all callers.
1238         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
1239         (compute_may_aliases): Call compute_points_to_sets.
1240         (collect_points_to_info_for): Remove.
1241         (compute_points_to_and_addr_escape): Remove.
1242         (delete_alias_info): Call delete_points_to_sets.
1243         (compute_flow_sensitive_aliasing): If the call to
1244         find_what_p_points_to returns false, call set_pt_anything.
1245         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
1246         (set_pt_anything): Clear pi->pt_vars.
1247         (set_pt_malloc): Remove.
1248         (merge_pointed_to_info): Remove.
1249         (add_pointed_to_expr): Remove.
1250         (add_pointed_to_var): Remove.
1251         (collect_points_to_info_r): Remove.
1252         (is_escape_site): Make extern.
1253         (create_sft): New.
1254         (create_overlap_variables_for): Call it.
1255         * tree-ssa-copy.c (merge_alias_info): Never merge
1256         flow-sensitive alias information.
1257         * tree-ssa-operands.c (get_expr_operands): Adjust variables
1258         offset and size to be unsigned HOST_WIDE_INT.
1259         (add_to_addressable_set): Rename from note_addressable.
1260         Set TREE_ADDRESSABLE as the variables are added to the set.
1261         Update all users.
1262         (add_stmt_operand): Do not try to micro-optimize unmodifiable
1263         operands into VUSEs when adding V_MAY_DEFs for members in an
1264         alias set.
1265         * tree-ssa-operands.h (add_to_addressable_set): Declare.
1266         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
1267         (struct variable_info): Add bitfield is_heap_var.
1268         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
1269         (new_var_info): Initialize is_heap_var.
1270         (get_constraint_for): Add HEAP variables to the symbol table.
1271         Mark them with is_heap_var.
1272         (update_alias_info): New.  Taken mostly from the old
1273         compute_points_to_and_addr_escape.
1274         (handle_ptr_arith): New.
1275         (find_func_aliases): Call update_alias_info.
1276         Call handle_ptr_info for tcc_binary expressions.
1277         Call mark_stmt_modified.
1278         (create_variable_info_for): If DECL has subvars, do not create
1279         variables for its subvars.  Always add all the fields.
1280         (set_uids_in_ptset): If the solution includes ANYOFFSET and
1281         SFTs, then add all the SFTs of the structure.
1282         If VI->DECL is an aggregate with subvariables, add the SFT at
1283         VI->OFFSET.
1284         (find_what_p_points_to): If VI is an artificial variable,
1285         translate to bitfields in SSA_NAME_PTR_INFO.
1286         If the solution is empty, set pi->pt_vars to NULL
1287         (init_base_vars): Create ANYOFFSET.
1288         (compute_points_to_sets): Rename from create_alias_vars.
1289         Make extern.
1290         (pass_build_pta): Remove.
1291         (delete_points_to_sets): Rename from delete_alias_vars.
1292         (pass_del_pta): Remove.
1293         * tree-ssa-structalias.h (struct alias_info): Move from
1294         tree-ssa-alias.h.
1295         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
1296         NUM_REFERENCES_SET): Likewise.
1297         (compute_points_to_sets, delete_points_to_sets): Declare.
1298
1299 2005-07-09  Richard Henderson  <rth@redhat.com>
1300
1301         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
1302         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
1303         alpha_split_lock_test_and_set_12): New functions.
1304         * config/alpha/alpha-protos.h: Update.
1305         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
1306         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
1307         * config/alpha/sync.md (I12MODE): New.
1308         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
1309         (sync_<fetchop_name><I48MODE>): Likewise.
1310         (sync_nand<I48MODE>): Likewise.
1311         (sync_old_<fetchop_name><I48MODE>): Likewise.
1312         (sync_new_<fetchop_name><I48MODE>): Likewise.
1313         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
1314         (sync_compare_and_swap<I48MODE>): Likewise.
1315         (sync_lock_test_and_set<I48MODE>): Likewise.
1316         (sync_compare_and_swap<I12MODE>): New.
1317         (sync_compare_and_swap<I12MODE>_1): New.
1318         (sync_lock_test_and_set<I12MODE>): New.
1319         (sync_lock_test_and_set<I12MODE>_1): New.
1320
1321 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
1322
1323         PR 21356
1324         PR 22332
1325         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
1326
1327 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
1328
1329         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
1330         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
1331
1332 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
1333
1334         PR target/21656
1335         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
1336
1337 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
1338
1339         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
1340         memory_operand constraint.
1341         (store_conditional_<mode>): Same.
1342         (sync_compare_and_swap<mode>): Same.
1343         (sync_lock_test_and_set<mode>): Same.
1344
1345 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
1346
1347         Rewrite PIC support to more closely model actual instructions.
1348         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
1349         (cris_symbol): Remove prototypes for removed functions.
1350         (cris_pic_symbol_type_of, cris_valid_pic_const)
1351         (cris_expand_pic_call_address): Prototypes for new functions.
1352         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
1353         variable.
1354         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
1355         modifiers.
1356         <case ':'>: Add case for new punctuation character.
1357         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
1358         emitting (extra) PIC modifier.
1359         <case UNSPEC>: Do not assert for PLT.
1360         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
1361         (cris_expand_prologue, cris_expand_epilogue): Check
1362         for pic_offset_table_rtx usage instead of taking
1363         current_function_uses_pic_offset_table as the final word.
1364         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
1365         Remove flag_pic difference.
1366         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
1367         the moral equivalents of...
1368         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
1369         functions.
1370         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
1371         (cris_handle_option): Mark ARG as unused.
1372         (cris_expand_pic_call_address): New worker function for "call",
1373         "call_value".
1374         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
1375         output PIC constructs here.
1376         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
1377         as symbol-specific modifers, not whole or part of operands.
1378         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
1379         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
1380         constants and flag_pic.
1381         (CONSTANT_INDEX_P): Adjust for new functions.
1382         (enum cris_pic_symbol_type): New helper type.
1383         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
1384         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
1385         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
1386         define_constants.
1387         ("movsi"): Emit actual instructions for GOT and relative access.
1388         ("*movsi_got_load"): New pattern to set up the register holding
1389         the GOT pointer.
1390         ("*movsi_internal"): Operand 1 is not a plain general_operand.
1391         Adjust FIXME for 'S'.
1392         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
1393         Use "movs" for -fpic cases.
1394         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
1395         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
1396         ("call", "call_value"): Just call cris_expand_pic_call_address for
1397         PIC addresses.
1398         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
1399         Remove special pattern.
1400         ("*expanded_call_side", "*expanded_call_value_side"): New
1401         patterns.
1402         (gotplt-to-plt, gotplt-to-plt-side-call)
1403         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
1404         peephole2:s.
1405         * config/cris/cris/predicates.md
1406         ("cris_general_operand_or_gotless_symbol"): Remove unused
1407         predicate.
1408         ("cris_general_operand_or_symbol"): Adjust for new functions.
1409
1410 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
1411
1412         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
1413
1414 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
1415
1416         * Makefile.in (TREE_H): Add treestruct.def.
1417         (c-decl.o): Add pointer-set.h
1418         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
1419         visibility on regular DECL's.
1420         (merge_decls): Fix the copying of decl nodes of various types for
1421         the new structures.  Don't update RTL, section name, weak status,
1422         etc, on DECL's without RTL.     
1423         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
1424         Don't check volatile on non-variable types.
1425         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
1426         to check whether we have seen arguments.
1427         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
1428         flag is checked before field (flag is common, field is not).    
1429         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
1430         TS_DECL_COMMON could have an origin.
1431         (add_location_or_const_value_attribute): Don't check section name
1432         on non-var/function decls.
1433         (dwarf2out_var_location): Reverse order of tests.
1434         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
1435         with DECL_WRTL_CHECK.
1436         * expmed.c (make_tree): rtl is now in decl_with_rtl.
1437         * fold-const.c (fold_binary): Don't check weakness on
1438         non-var/function decls.
1439         (tree_expr_nonzero_p): Ditto.
1440         (fold_checksum_tree): Use tree_decl_extra as sizeof
1441         buffer.
1442         * ggc-page.c (extra_order_size_table): Add sizes for
1443         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
1444         tree_field_decl.
1445         * gimplify.c (gimplify_bind_expr): Only set
1446         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
1447         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
1448         without RTL.
1449         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
1450         * langhooks.h (init_ts). New langhook.
1451         * passes.c (rest_of_decl_compilation): Reverse order of tests.
1452         * print-tree.c (print_node): Update to only print fields that
1453         exist in the structures the passed decl has.
1454         * toplev.c (wrapup_global_declarations): Don't reset
1455         DECL_DEFER_OUTPUT on DECL's that don't contain it.
1456         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
1457         * tree-inline.c (remap_decl): Ditto.
1458         * tree-outof-ssa.c (create_temp): Reverse order of tests.
1459         * tree-pretty-print.c (print_declaration): Don't print
1460         DECL_REGISTER on things that don't contain it.
1461         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
1462         non-var/function decls.
1463         * tree.c (tree_contains_struct): New structure.
1464         (init_priority_for_decl): New hashtable.
1465         (tree_int_map): New structure.
1466         (tree_int_map_eq): New function.
1467         (tree_int_map_marked_p): Ditto.
1468         (tree_int_map_hash): Ditto.
1469         (tree_map): Move to tree.h.
1470         (tree_map_eq): Externalize.
1471         (tree_map_hash): Ditto.
1472         (tree_map_marked_p): Ditto.
1473         (init_ttree): Set up tree_contains_struct and call langhook.
1474         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
1475         (tree_code_size): Update for new structures.
1476         (tree_node_structure): Update for new structures.
1477         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
1478         without the field.
1479         (copy_node_stat):  Copy init priority.
1480         (build_decl_stat): Ditto for visibility.
1481         (ts_enum_names): New.
1482         (tree_contains_struct_check_failed): New function.
1483         (decl_init_priority_lookup): Ditto.
1484         (decl_init_priority_insert): Ditto.
1485         * treestruct.def: New file.
1486         * tree.h (CODE_CONTAINS_STRUCT): New macro.
1487         (CONTAINS_STRUCT_CHECK): Ditto.
1488         (tree_contains_struct_check_failed): New prototype.
1489         (DECL_CHECK): Removed.
1490         (DECL_MINIMAL_CHECK): New.
1491         (DECL_COMMON_CHECK): Ditto.
1492         (DECL_WRTL_CHECK): Ditto.
1493         (DECL_NON_COMMON_CHECK): Ditto.
1494         (DECL_WITH_VIS_CHECK): Ditto.
1495         (VAR_OR_FUNCTION_DECL_P): Ditto
1496         (struct tree_decl_minimal): New structure.
1497         (struct tree_decl_common): Ditto.
1498         (struct tree_decl_with_rtl): Ditto.
1499         (struct tree_decl_with_vis): Ditto.
1500         (struct tree_decl_non_common): Ditto.
1501         (struct tree_field_decl): Ditto.
1502         (struct tree_parm_decl): Ditto.
1503         (struct tree_var_decl): Ditto.
1504         (struct tree_function_decl): Ditto.
1505         (struct tree_const_decl): Ditto.
1506         (struct tree_result_decl): Ditto.
1507         (union tree_node): Add new structures.
1508         * var-tracking.c (track_expr_p): Reverse order of tests.
1509         
1510         * doc/c-tree.texi: Add documentation on DECL node internal structure.
1511
1512 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
1513
1514         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
1515         * system.h: Poison FINALIZE_PIC.
1516         * doc/tm.texi (FINALIZE_PIC): Remove.
1517
1518 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
1519
1520         PR tree-opt/22329
1521         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
1522         to the correct type if we have a MODIFY_EXPR.
1523
1524 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
1525
1526         PR tree-optimization/22360
1527         * tree.c (upper_bound_in_type): Fix calculations for casting
1528         to a non-wider signed type and casting a signed value to a
1529         wider unsigned type.
1530         (lower_bound_in_type): Fix calculations for casting to a
1531         non-wider signed type.
1532
1533         PR tree-optimization/20139
1534         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
1535         release_defs.
1536         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
1537         fold_cond_expr_cond.
1538         * tree-ssanames.c (release_defs): Assert in_ssa_p.
1539         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
1540
1541 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
1542
1543         PR tree-opt/22356
1544         * tree-complex.c (expand_complex_libcall): Produce
1545         REALPART_EXPR/IMAGPART_EXPR with the correct type.
1546
1547 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
1548
1549         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
1550         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
1551         b" assert and inserted fastpath code for this case.
1552         (bitmap_ior): Removed "a != b" assert.
1553
1554 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1555
1556         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
1557         (ENDFILE_SPEC): Likewise.
1558         * config/m32r/m32r.h (ASM_SPEC): Likewise.
1559
1560         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
1561         a large stack frame at epilogue.
1562
1563 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
1564
1565         * final.c: Include sdbout.h when required.
1566
1567 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
1568
1569         * config.gcc (*-*-darwin*): Only one target-specific header file
1570         for generic darwin.
1571         (powerpc-*-darwin*): Add version-specific header files.
1572         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
1573         * config.in: Regenerate.
1574         * configure: Regenerate.
1575         * gcc.c: Include xregex.h.
1576         (version_compare_spec_function): New.
1577         (spec_function): Add version-compare.
1578         (replace_outfile_spec_function): Reformat comment.
1579         (compare_version_strings): New.
1580         * config/darwin-c.c (version_as_macro): New.
1581         (builtin_define): New.
1582         (darwin_cpp_builtins): New.
1583         * config/darwin-protos.h (darwin_cpp_builtins): New.
1584         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
1585         (LIB_SPEC): Make unconditional, update comment.
1586         (TARGET_C99_FUNCTIONS): Define.
1587         * config/darwin.opt: Sort.
1588         (mmacosx-version-min=): New.
1589         * config/darwin7.h: Delete.
1590         * config/darwin8.h: Delete.
1591         * config/i386/darwin.h (): Call darwin_cpp_builtins.
1592         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
1593         (TARGET_C99_FUNCTIONS): Define.
1594         * config/rs6000/darwin7.h: New.
1595         * config/rs6000/darwin8.h: New.
1596         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
1597         (-mmacosx-version-min): Document.
1598
1599 2005-07-07  Ian Lance Taylor  <ian@airs.com>
1600
1601         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
1602
1603 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
1604
1605         PR middle-end/22239
1606         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
1607
1608 2005-07-07  Khem Raj  <kraj@mvista.com>
1609
1610         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
1611         in bytes, not words.
1612
1613 2005-07-07  Paul Brook  <paul@codesourcery.com>
1614
1615         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
1616         DEFAULT_FUNCTION_ARG_PADDING to upward.
1617
1618 2005-07-07  Richard Henderson  <rth@redhat.com>
1619
1620         * function.c (locate_and_pad_parm): Record parameter alignment in
1621         stack_alignment_needed.
1622
1623 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
1624
1625         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
1626         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
1627         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
1628         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
1629         (define_attr "type"): Add isync, sync, load_l, store_c.
1630         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
1631         Create scratch volatile MEM.
1632         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
1633         sync.
1634         (load_locked_<mode>): New.
1635         (store_conditional_<mode>): New.
1636         (sync_compare_and_swap<mode>): Replace with splitter.
1637         (sync_lock_test_and_set<mode>): Replace with splitter.
1638         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
1639         and UNSPECV_ISYNC.
1640         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
1641         is ics.  Attribute isync.
1642         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
1643         lwsync.
1644         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
1645         and UNSPECV_SYNC_OP.
1646         (emit_unlikely_jump): New.
1647         (emit_load_locked): New.
1648         (emit_store_conditional): New.
1649         (rs6000_split_compare_and_swap): New.
1650         (rs6000_split_lock_test_and_set): New.
1651         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
1652         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
1653         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
1654         rs6000_split_lock_test_and_set): Declare.
1655         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
1656         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
1657         store_c, isync, sync.
1658
1659 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
1660
1661         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
1662         filenames to gtyp-gen.h.
1663         (s-typ-gen): Use it in place of for loops.
1664
1665 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
1666
1667         * hooks.c (hook_bool_rtx_int_false): New function.
1668         * hooks.h (hook_bool_rtx_int_false): Declare.
1669         * target-def.h (TARGET_COMMUTATIVE_P): Define.
1670         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
1671         * target.h (struct gcc_target): Add commutative_p member.
1672         * targhooks.c (hook_bool_rtx_commutative_p): New function.
1673         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
1674         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
1675         (pa_commutative_p): New function.
1676         * jump.c (target.h): Include.
1677         (rtx_renumbered_equal_p): Use targetm.commutative_p.
1678         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
1679
1680 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
1681
1682         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
1683         (s390_expand_setmem): New.
1684         * config/s390/s390.c: Likewise. 
1685         (print_shift_count_operand): Truncate to 12 bits instead of 6.
1686         Adapt comments.
1687         * config/s390/s390.md: ("setmem<mode>"): Accept character as
1688         general_operand.  Call new function "s390_expand_setmem".
1689         ("clrmem_long", "*clrmem_long"): Rewrite to ...
1690         ("setmem_long", "*setmem_long"): ... this.
1691
1692 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
1693         
1694         * config/s390/s390.c: (optimization_options): Enable
1695         TARGET_MVCLE at -Os.
1696         * doc/invoke.texi: Document changes in default behaviour.
1697         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
1698
1699 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
1700
1701         * expr.c: (set_storage_via_setmem): Convert opchar to mode
1702         defined by back-end.
1703
1704 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
1705
1706         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
1707         all sets in the pattern.
1708         * config/rs6000/rs6000.md (stack_protect_testsi,
1709         stack_protect_testdi): Likewise.
1710
1711 2005-07-06  Jeff Law  <law@redhat.com>
1712
1713         * tree-vrp.c (simplify_using_ranges): Kill.
1714         (vrp_finalize): Remove call to simplify_using_ranges.
1715         (simplify_stmt_using_ranges): New function extracted from
1716         simplify_using_ranges.
1717         (simplify_div_or_mod_using_ranges): Likewise.
1718         (simplify_abs_using_ranges): Likewise.
1719         (simplify_cond_using_ranges): New function.
1720         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
1721         * tree-ssa-propagate.c (substitute_and_fold): Call
1722         simplify_stmt_using_ranges if we have range information.
1723
1724 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
1725
1726         * config/ia64/ia64.c (ia64_reorg): Check optimize before
1727         ia64_flag_schedule_isns2.
1728
1729         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
1730         reading/writing general registers.
1731         (ia64_function_arg): Revert 2005-06-18 change.
1732
1733 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
1734
1735         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
1736         (legitimize_tls_address): Use gcc_unreachable instead of abort.
1737
1738 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
1739
1740         * function.c (expand_function_end): Revert part of 2005-06-27
1741         patch.  Do sjlj_emit_function_exit_after after return_label.
1742
1743 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
1744
1745         * doc/install.texi (--disable-libssp): New.
1746
1747 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
1748
1749         * doc/invoke.texi: Update -fforce-mem documentation.
1750         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove 
1751         code for -fforce-mem.
1752         * expmed.c: (store_bit_field,store_fixed_bit_field,
1753         extract_bit_field): Ditto.
1754         * expr.c: (convert_move): Ditto.
1755         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
1756         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
1757         emit_conditional_add,expand_float,expand_fix): Ditto.
1758         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
1759         (common_handle_option): Issue warning when -fforce-mem specified.
1760
1761 2005-07-06  Paul Brook  <paul@codesourcery.com>
1762
1763         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
1764         argument is empty.
1765         * configure: Regenerate.
1766
1767 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
1768
1769         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
1770
1771 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
1772
1773         Fix PR tree-optimization/22319
1774         Fix PR tree-optimization/22140
1775         Fix PR tree-optimization/22310
1776
1777         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
1778         variable sized types.
1779         Use correct type for intermediate structure on *a = *b structure
1780         copies.
1781                 
1782 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
1783
1784         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
1785         Remove.
1786         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
1787         (machine_function): Move typedef to...
1788         * config/rs6000/rs6000.c (machine_function): ... here.  Add
1789         varargs_save_offset field.
1790         (rs6000_stack_t): Remove varargs_size field.
1791         (setup_incoming_varargs): Allocate varargs save area using
1792         assign_stack_local, try to make it as small as possible.
1793         Save offset from virtual_stack_vars_rtx to the save area
1794         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
1795         instead of magic 8 when fp word byte size is used.
1796         (rs6000_va_start): Use cfun->machine->varargs_save_offset
1797         instead of -RS6000_VARARGS_SIZE.
1798         (rs6000_stack_info, debug_stack_info,
1799         rs6000_initial_elimination_offset): Remove all traces of
1800         varargs_size.
1801         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
1802         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
1803         RS6000_VARARGS_AREA.
1804
1805 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
1806
1807         PR tree-optimization/21963
1808         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
1809         constant_multiple_of in the same way get_computation_cost_at does.
1810
1811 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
1812
1813         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
1814         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
1815         (gen_compare_reg): If sparc_compare_emitted is set, clear it
1816         and return its previous value.
1817         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
1818         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
1819         constants.
1820         (stack_protect_set, stack_protect_test): New expanders.
1821         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
1822         stack_protect_testdi): New insns.
1823         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
1824         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
1825
1826 2005-07-06  Jeff Law  <law@redhat.com>
1827
1828         * tree-ssa-dce.c (cfg_altered): New global.
1829         (tree_dce_init): Initialize cfg_altered.
1830         (remove_dead_stmt): If we remove an edge in the CFG, then set
1831         CFG_ALTERED.
1832         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
1833         the dominators.
1834
1835 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
1836
1837         * Makefile.in (stamp-collect-ld): Use
1838         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
1839         ./collect-ld if it already exists.
1840         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
1841         Don't remove ./nm if it already exists.
1842
1843 2005-07-05  Devang Patel  <dpatel@apple.com>
1844
1845         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
1846         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
1847         * tree-vectorizer.c (vect_loop_location): New.
1848         (vect_print_dump_info): Use vect_loop_location.
1849         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
1850         (vectorize_loops): Set vect_loop_location.
1851         * tree-vect-analyze.c (vect_analyze_offset_expr, 
1852         vect_determin_vectorization_factor, vect_analyze_operations,
1853         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
1854         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
1855         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
1856         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
1857         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
1858         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
1859         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
1860         vect_analyze_loop): Adjust vect_print_dump_info API.
1861         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
1862         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
1863         vect_finish_stmt_generation, vectorizable_assignment, 
1864         vectorizable_operation, vectorizable_store, vectorizable_load, 
1865         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
1866         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
1867         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
1868         vect_transform_loop): Same.
1869         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
1870         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
1871         Same.
1872
1873 2005-07-05  Randolph Chung  <tausq@debian.org>
1874
1875         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
1876         * configure: Regenerate.
1877         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
1878         (pa_tls_referenced_p): Declare.
1879         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
1880         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
1881         (legitimize_tls_address): New.
1882         (hppa_legitimize_address): Handle TLS addresses.
1883         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
1884         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1885         (emit_move_sequence): Handle TLS addresses.
1886         (pa_encode_section_info): Call default handler to handle common 
1887         sections.
1888         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
1889         (CONSTANT_ADDRESS_P): Reject TLS operands.
1890         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
1891         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
1892         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
1893         (UNSPEC_TLSLE): Define new constants. 
1894         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
1895         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
1896         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
1897         (tie_symbolic_operand, tle_symbolic_operand): New
1898
1899 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
1900
1901         * aclocal.m4: Update macros for autoconf 2.59 style.
1902         * configure.ac: Likewise.
1903
1904 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1905
1906         * pa.c (function_value): Handle small aggregates on 32-bit targets.
1907         (function_arg): Pass small aggregates in general registers on 32-bit
1908         targets.
1909         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
1910
1911 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
1912
1913         * Makefile.in (final.o): Fix dependencies.
1914
1915 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
1916
1917         PR c/22013
1918         PR c/22098
1919         * langhooks.h (struct lang_hooks): Add expr_to_decl.
1920         * langhooks.c (lhd_expr_to_decl): New.
1921         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
1922         New.
1923         (LANG_HOOKS_INITIALIZER): Update.
1924         * tree.c (recompute_tree_invarant_for_addr_expr): Call
1925         expr_to_decl langhook.
1926         * c-tree.h (c_expr_to_decl): Declare.
1927         * c-typeck.c (c_expr_to_decl): New.
1928         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
1929         specially.
1930         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
1931
1932 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
1933
1934         PR c/22308
1935         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
1936         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
1937
1938 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
1939
1940         * Makefile.in: Adjust dependencies.
1941         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
1942         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
1943         * alias.c (rest_of_handle_cfg, pass_cfg): New.
1944         * bb-reorder.c (duplicate_computed_gotos): Make it static.
1945         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
1946         rest_of_compilation.
1947
1948         * bb-reorder.c (gate_duplicate_computed_gotos,
1949         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
1950         rest_of_handle_reorder_blocks, pass_reorder_blocks,
1951         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
1952         pass_partition_blocks): New.
1953         * bt-load.c (gate_handle_branch_target_load_optimize,
1954         rest_of_handle_branch_target_load_optimize,
1955         pass_branch_target_load_optimize): New.
1956         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
1957         pass_jump2): New.
1958         * cfglayout.c (pass_insn_locators_initialize): New.
1959         * cfgrtl.c (pass_free_cfg): New.
1960         * combine.c (gate_handle_combine, rest_of_handle_combine,
1961         pass_combine): New.
1962         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
1963         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
1964         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
1965         * except.c (pass_set_nothrow_function_flags,
1966         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
1967         pass_rtl_eh): New.
1968         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
1969         rest_of_handle_shorten_branches, pass_shorten_branches,
1970         rest_of_clean_state, pass_clean_state): New.
1971         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
1972         rest_of_handle_remove_death_notes, pass_remove_death_notes,
1973         rest_of_handle_life, pass_life, rest_of_handle_flow2,
1974         pass_flow2): New.
1975         * function.c (pass_instantiate_virtual_regs, pass_init_function,
1976         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
1977         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
1978         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
1979         pass_gcse): New.
1980         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
1981         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
1982         pass_rtl_ifcvt, gate_handle_if_after_combine,
1983         rest_of_handle_if_after_combine, pass_if_after_combine,
1984         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
1985         pass_if_after_reload): New.
1986         * integrate.c (pass_initial_value_sets): New.
1987         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
1988         pass_purge_lineno_notes): New.
1989         * mode-switching.c (rest_of_handle_mode_switching,
1990         pass_mode_switching): New.
1991         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
1992         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
1993         pass_loop2): New.
1994         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
1995         pass_loop_optimize): New.
1996         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
1997         pass_sms): New.
1998         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
1999         pass_gcse2): New.
2000         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
2001         pass_postreload_cse): New.
2002         * profile.c (gate_handle_profiling, pass_profiling,
2003         rest_of_handle_branch_prob, pass_branch_prob): New.
2004         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split, 
2005         pass_split_before_regstack, gate_handle_split_before_regstack,
2006         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
2007         rest_of_handle_split_all_insns, pass_split_all_insns): New.
2008         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
2009         pass_stack_regs): New.
2010         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
2011         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
2012         pass_stack_adjustments): New.
2013         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
2014         pass_regrename): New.
2015         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
2016         pass_delay_slots, gate_handle_machine_reorg,
2017         rest_of_handle_machine_reorg, pass_machine_reorg): New.
2018         * rtl.h (extern void purge_line_number_notes): New.
2019         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
2020         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
2021         pass_sched2): New.
2022         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
2023         pass_tracer): New.
2024         * value-prof.c (gate_handle_value_profile_transformations,
2025         rest_of_handle_value_profile_transformations,
2026         pass_value_profile_transformations): New.
2027         * var-tracking.c (gate_handle_var_tracking,
2028         pass_variable_tracking): New.
2029         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
2030
2031         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
2032         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
2033         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
2034         rest_of_handle_old_regalloc, rest_of_handle_regrename,
2035         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
2036         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
2037         rest_of_handle_gcse2, rest_of_handle_regmove,
2038         rest_of_handle_tracer, rest_of_handle_if_conversion,
2039         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
2040         rest_of_handle_web, rest_of_handle_branch_prob,
2041         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
2042         rest_of_handle_jump_bypass, rest_of_handle_combine,
2043         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
2044         rest_of_handle_gcse, rest_of_handle_loop_optimize,
2045         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
2046         rest_of_handle_mode_switching, rest_of_handle_jump,
2047         rest_of_handle_eh, rest_of_handle_stack_adjustments,
2048         rest_of_handle_flow2, rest_of_handle_jump2,
2049         rest_of_handle_peephole2, rest_of_handle_postreload,
2050         rest_of_handle_shorten_branches, rest_of_clean_state,
2051         rest_of_compilation): Remove.
2052
2053         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
2054         * passes.c (dump_flags, in_gimple_form, all_passes,
2055         all_ipa_passes, all_lowering_passes, register_one_dump_file,
2056         register_dump_files, next_pass_1, last_verified, execute_todo,
2057         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
2058         from tree-optimize.c.
2059         (init_optimization_passes): Moved from tree-optimize.c,
2060         adding the RTL optimizations.
2061         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
2062         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
2063         all_ipa_passes, all_lowering_passes, register_one_dump_file,
2064         register_dump_files, next_pass_1, last_verified, execute_todo,
2065         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
2066         init_tree_optimization_passes, ipa_passes): Delete.
2067         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
2068         the RTL dumps.
2069         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
2070         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
2071         from tree.h.
2072         (ipa_passes): Remove.
2073         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
2074         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
2075         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
2076         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
2077         (dump_info_p, dump_flag): Moved to tree-dump.h.
2078         
2079         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
2080         cgraph.c, opts.c.
2081         * passes.c (finish_optimization_passes): Use dump_begin
2082         and dump_end, TDI_end.
2083         (gate_rest_of_compilation): New.
2084         (pass_rest_of_compilation): Use it.
2085         (gate_postreload, pass_postreload): New.
2086         * toplev.c (general_init): Rename init_tree_optimization_passes.
2087         * toplev.h (init_tree_optimization_passes): Rename to
2088         init_optimizations_passes.
2089         * tree-dump.c (dump_flag): Make static.
2090         (dump_files): Remove RTL dumps.
2091         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
2092         pass_cleanup_cfg, pass_free_cfg_annotations,
2093         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
2094         pass_init_datastructures, pass_fixup_cfg): Make non-static.
2095         * tree-pretty-print.c: Include tree-pass.h.
2096         * cgraph.c: Include tree-dump.h.
2097         
2098 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
2099
2100         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
2101         Only fall back to saying it points to readonly memory if
2102         we can't do better.
2103
2104 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2105
2106         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
2107         * config/m32r/m32r.c (m32r_compute_frame_size,
2108         m32r_expand_prologue): Take current_function_profile into
2109         account whenever we reference
2110         current_function_uses_pic_offset_table.
2111         (m32r_finalize_pic): Remove.
2112         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
2113
2114 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
2115
2116         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
2117         instead of $<.  Don't remove ./as if it already exists.
2118
2119 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2120
2121         PR target/21723
2122         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
2123         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
2124         for complex modes when generating code for PA 1.0.
2125         (VALID_FP_MODE_P): New macro.
2126         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
2127         sets for all general and floating point modes.  Align wide floating
2128         point modes to even register boundaries to comply with architectural
2129         requirements.
2130         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
2131         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
2132         (VALID_FP_MODE_P): New macro.
2133         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
2134         sets for all general and floating point modes.  Align wide floating
2135         point modes to even register boundaries to comply with architectural
2136         requirements.
2137
2138 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
2139
2140         * tree-dump.c (dump_files): Initialize dump number for .cgraph
2141         to 0.
2142
2143 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
2144
2145         * tree-ssa-structalias.c: Don't include expr.h.
2146
2147 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
2148
2149         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
2150         comments.
2151
2152 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
2153
2154         Fix PR tree-optimization/22279
2155         
2156         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
2157         correct operator.
2158         
2159 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
2160
2161         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
2162
2163 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
2164
2165         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
2166         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
2167         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
2168         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
2169         config/stormy16/stormy16.c, config/v850/v850.c,
2170         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
2171         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
2172         Avoid "." or "\n" at end of diagnostics and capital letters at
2173         start of diagnostics.
2174         * combine.c, cse.c: Don't translate dump file output.
2175         * toplev.c (print_version): Only translate output if going to
2176         stderr.
2177
2178 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
2179
2180         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
2181         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
2182         typos.
2183
2184 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2185
2186         * pa.c (fix_range): Fix typo in comment.
2187
2188 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
2189
2190         * tree-vrp.c (extract_range_from_assert): Replace
2191         fold (build (...)) with fold_build2.
2192
2193 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2194
2195         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
2196         gcc_gfc_char_table, init_dynamic_gfc_info): New.
2197         (format_types_orig, handle_format_attribute): Add support for
2198         format "gcc_gfc".
2199
2200 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2201
2202         * varasm.c (assemble_variable): Fix format specifier thinko.
2203
2204 2005-07-03  Ira Rosen  <irar@il.ibm.com>
2205
2206         PR tree-optimization/22029 (and 22135)
2207         * tree-pretty-print.c (dump_generic_node): Check that the node is not
2208         a phi node before calling dump_vops.
2209
2210 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2211
2212         * tree-dump.h (dump_string_field): Declare.
2213         * tree-dump.c: Use it instead of dump_string.
2214         (dump_string_field): Make non-static.
2215
2216 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2217
2218         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
2219         up the minimal CFG stuff always when optimize > 0.  Call
2220         split_all_insns_noflow in PIC case if needed.
2221
2222 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2223             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
2224
2225         PR c++/18279
2226         * c-decl.c (c_write_global_declarations): Dump contents of
2227         external scope to.
2228         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
2229         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
2230         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
2231         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
2232         is enabled.
2233         
2234 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
2235
2236         * c-common.h (GCC_DIAG_STYLE): Define.
2237         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
2238         version for format checking to 4.1.
2239         * c-format.c: Include toplev.h after c-common.h.
2240         (enum format_type): Add gcc_tdiag_format_type.
2241         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
2242         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
2243         (format_types_orig): Add gcc_tdiag.
2244         (init_dynamic_diag_info): Support gcc_tdiag formats.
2245         (handle_format_attribute): Likewise.
2246         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
2247         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
2248         version for format checking to 4.1.
2249         (warning0, warning, error, pedwarn, sorry): Use
2250         ATTRIBUTE_GCC_DIAG.
2251         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
2252         (finish_aliases_1): Do not use %qE.
2253         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
2254         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
2255         Correct format bugs.
2256         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
2257         parameter to unsigned HOST_WIDE_INT.
2258         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
2259
2260 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
2261
2262         PR middle-end/21742
2263         * expr.c (write_complex_part): Use adjust_address for MEM.
2264         (read_complex_part): Same.
2265
2266 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
2267
2268         Fix PR tree-optimization/22280
2269
2270         * tree-sra.c (generate_element_init): Remove useless loop.
2271
2272 2005-07-02  Richard Henderson  <rth@redhat.com>
2273
2274         * config/alpha/alpha.c (alpha_legitimize_address): Check for
2275         TLS_MODEL_NONE.
2276         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
2277
2278 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
2279
2280         PR middle-end/14490
2281         * fold-const.c (fold_binary): Handle the return value of
2282         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
2283         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
2284
2285 2005-07-02  Jeff Law  <law@redhat.com>
2286
2287         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
2288         a eliminate type conversion which feeds an equality comparison
2289         if the original type or either operand in the comparison is a
2290         function pointer.
2291
2292 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
2293
2294         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
2295         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
2296         texts.
2297         * config/avr/avr.c: Do not use '`' as left quote.
2298         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
2299         Remove "." from end of diagnostics.  Make diagnostics start with
2300         lowercase letter.
2301
2302 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
2303             Joseph S. Myers  <joseph@codesourcery.com>
2304
2305         * toplev.c (default_tree_printer): Handle setting location with
2306         '+' flag.
2307         * c-objc.common.c (c_tree_printer): Likewise.
2308         * c-format.c (gcc_diag_flag_specs): Add '+'.
2309         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
2310         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
2311         formats.
2312         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
2313         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
2314         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
2315         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
2316         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
2317         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
2318         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
2319         format arguments where %J is used without %D.
2320
2321 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
2322
2323         * gcc.c (LINK_SSP_SPEC): Define.
2324         (link_ssp_spec): New variable.
2325         (LINK_COMMAND_SPEC): Add %(link_ssp).
2326         (static_specs): Add link_ssp_spec.
2327         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
2328         * configure: Rebuilt.
2329         * config.in: Rebuilt.
2330
2331         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
2332         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
2333         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
2334         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
2335         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
2336         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
2337         -0x7008(2) instead of reading __stack_chk_guard variable.
2338         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
2339         number.
2340         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
2341         (stack_protect_set, stack_protect_test): Use *_tls* patterns
2342         if TARGET_THREAD_SSP_OFFSET is defined.
2343         (stack_tls_protect_set_si, stack_tls_protect_set_di,
2344         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
2345
2346         Revert:
2347         2005-06-27  Richard Henderson  <rth@redhat.com>
2348         * libgcc-std.ver (GCC_4.1.0): New.
2349         * libgcc.h (__stack_chk_guard): Declare.
2350         (__stack_chk_fail, __stack_chk_fail_local): Declare.
2351         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
2352         * mklibgcc.in (lib2funcs): Add them.
2353
2354 2005-07-01  Richard Henderson  <rth@redhat.com>
2355
2356         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
2357         void * before struct sigcontext *.
2358         (x86_fallback_frame_state): Likewise.
2359
2360 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
2361
2362         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
2363
2364 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
2365
2366         PR tree-opt/22269
2367         * tree-ssa-reassoc.c (should_transpose): Fix which operand
2368         we check for SSA_NAME for.
2369
2370 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
2371
2372         Fix PR tree-optimization/22071
2373
2374         * tree-ssa-structalias.c (offset_overlaps_with_access): New
2375         function.
2376         (get_constraint_for_component_ref): Use it.
2377
2378 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
2379
2380         PR other/22264
2381         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
2382         print out the last new line.
2383
2384 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
2385
2386         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
2387         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
2388         * config/cris/cris.c (cris_conditional_register_usage): Adjust
2389         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
2390         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
2391         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
2392         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
2393         (enum reg_class): New member CC0_REGS.
2394         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
2395         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
2396         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
2397         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2398         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
2399         Adjust for register now described.
2400
2401 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
2402
2403         PR target/22262
2404         * config/i386/i386.md (stack_protect_test_si,
2405         stack_protect_test_di): Add earlyclobber for scratch 3.
2406         * config/rs6000/rs6000.md (stack_protect_testsi,
2407         stack_protect_testdi): Add earlyclobber for scratch 3,
2408         remove earlyclobber from scratch 4.
2409
2410 Older entries for 2005 can be found in ChangeLog-2005.