OSDN Git Service

* c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
2
3         * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
4         system headers.
5
6 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
7
8         * c-decl.c (pushdecl): When an extern declaration at block scope
9         refers to a visible entity with internal linkage, use the old DECL
10         rather than the new one.
11
12 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
13
14         * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
15         comments.
16
17 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
18
19         * tree-cfg.c (thread_jumps): Remove a duplicate check for
20         an infinite loop.
21
22 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
23
24         * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
25         of FOR_BB_BETWEEN.  Remove a useless check for unreachable
26         blocks.
27
28 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
29
30         * tree-cfg.c (cleanup_tree_cfg): Don't call
31         delete_unreachable_blosk() after thread_jumps().
32         (thread_jumps): Always remove basic blocks as they become
33         unreachable.
34
35 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
36
37         * tree-cfg.c (cleanup_tree_cfg): Remove variable
38         something_changed.  Simplify the while loop.
39
40 2004-10-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41
42         * builtins.c (expand_builtin_memmove): Delete duplicate code
43         and accept a tree type for the result.
44         (expand_builtin_bcopy): Accept a tree type for the result.
45         (fold_builtin_memmove): Accept an arglist and tree type for
46         the result.
47
48 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
49
50         * config/s390/s390.c (s390_dump_pool): Remove return value.
51         Use gen_pool_align, gen_pool_section_start/end instead of
52         gen_pool_start/end_31/64.
53         * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
54         (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
55         ("pool_start_31", "pool_end_31"): Remove.
56         ("pool_start_64", "pool_end_64"): Likewise.
57         ("pool_align", "pool_section_start", "pool_section_end": New insns.
58
59         * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
60         (TARGET_CANNOT_COPY_INSN_P): Define.
61         (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
62         (struct constant_pool): New member 'execute'.
63         (s390_add_execute, s390_find_execute): New functions.
64         (s390_execute_label, s390_execute_target): Likewise.
65         (s390_dump_pool): Output in-pool execute target templates.
66         (s390_dump_execute): New function.
67         (s390_alloc_pool, s390_free_pool): Handle execute templates.
68         (s390_mainpool_start, s390_mainpool_finish): Likewise.
69         (s390_chunkify_start, s390_chunkify_finish): Likewise.
70         * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
71         ("*execute"): New insn pattern.
72         ("movmem_short", "*movmem_short"): Use splitters to generate
73         explicit execute pattern, remove embedded execute.
74         ("clrmem_short", "*clrmem_short"): Likewise.
75         ("cmpmem_short", "*cmpmem_short"): Likewise.
76
77 2004-10-05  Daniel Berlin  <dberlin@dberlin.org>
78
79         * tree-ssa.c (verify_ssa): Verify phi arguments only
80         contain renamed names.
81
82 2004-10-05  Alan Modra  <amodra@bigpond.net.au>
83
84         * config/rs6000/linux.h: Formatting, whitespace.
85         * config/rs6000/linux64.h: Likewise.
86         * config/rs6000/rs6000-protos.h: Likewise.
87         * config/rs6000/rs6000.c: Likewise.
88         (easy_vector_splat_const): Add fall thru comments.
89         (output_vec_const_move): Likewise.
90
91 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
92
93         * Makefile.in: Update -Wno-error exceptions for move to build dir.
94
95 2004-10-05  Chao-Ying Fu  <fu@mips.com>
96             Richard Sandiford  <rsandifo@redhat.com>
97
98         * doc/invoke.texi (-mpaired-single): Link to the new description of the
99         built-in functions.  Document dependencies.
100         (-mips3d): Add link here too.
101         * doc/extend.texi (MIPS Paired-Single Support): New section.
102
103 2004-10-04  Chao-ying Fu  <fu@mips.com>
104
105         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
106
107 2004-10-04  Diego Novillo  <dnovillo@redhat.com>
108
109         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
110         Initialize OPT_STATS to 0.
111
112 2004-10-04  Kazu Hirata  <kazu@cs.umass.edu>
113
114         * tree-data-ref.c: Fix comment typos.
115
116 2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>
117
118         * tree-data-ref.c (array_base_name_differ_p): Fix comments.  When
119         the predicate cannot be computed, don't initialize the result to
120         false.
121
122 2004-10-01  Eric Christopher  <echristo@redhat.com>
123
124         * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
125         locally defined enum.
126         * dwarf2out.c (add_calling_convention_attribute): Don't
127         emit DW_CC_normal.
128
129 2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>
130
131         PR c/17178, PR c/17820
132         * c-decl.c (pop_scope): Do not warn about unused static
133         variables as they warned in the middle-end.
134
135 2004-10-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
136
137         * builtins.c (expand_builtin_memcpy): Delete duplicate code
138         and make the first parameter the expression not the arglist.
139
140 2004-10-03  Ulrich Weigand  <uweigand@de.ibm.com>
141
142         * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
143         as valid modes to expand address expressions.
144
145 2004-10-03  Joseph S. Myers  <jsm@polyomino.org.uk>
146
147         * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
148         c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
149         c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
150         code formatting conventions.
151
152 2004-10-03  Richard Sandiford  <rsandifo@redhat.com>
153
154         * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
155
156 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
157
158         PR tree-optimization/16632
159         * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
160         fold (A & C) == D into 0, fold ~C.  Similarly, for the case
161         where | is used instead of &.
162
163 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
164
165         * ginclude/stddef.h: Fix a comment typo.
166
167 2004-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
168
169         PR target/17443
170         * config.gcc (i?86-*-solaris2*): Restore correct logic
171         for --enable-threads option.
172         (sparc64-*-solaris2*): Likewise.
173         (sparc-*-solaris2*): Likewise.
174
175 2004-10-03  Alan Modra  <amodra@bigpond.net.au>
176
177         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
178         (OS_MISSING_POWERPC64): Move, and comment.
179         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
180         (OS_MISSING_POWERPC64): Move, and comment.
181
182 2004-10-02  Ian Lance Taylor  <ian@wasabisystems.com>
183
184         * arm.c (output_call_mem): Add missing \t.
185
186 2004-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
187
188         * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
189         expand_builtin_strncmp): Delete duplicate code.
190
191 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
192
193         * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
194         take check-base and -limit arguments.
195         (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
196         check ranges for ARRAY_REF and COMPONENT_REF.
197         (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
198         instrumentation.
199
200 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
201
202         * c-objc-common.c (c_tree_printer): Correct description of %E.
203         Don't fall through after printing an expression.
204
205 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
206
207         * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
208
209 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
210
211         * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
212         delete_unrechable_blocks() only when necessary.
213
214 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
215
216         * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
217         (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
218         (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
219         __gthread_recursive_mutex_unlock): New functions.
220
221 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
222
223         * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
224         * config/s390/tpf-eh.c: Remove file.
225         * config/s390/tpf-unwind.h: New file.
226         * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
227         (MD_UNWIND_SUPPORT): Define.
228
229 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
230
231         * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
232
233 2004-10-01  Ulrich Weigand  <uweigand@de.ibm.com>
234
235         * config/s390/s390-protos.h (s390_comparison): Add prototype.
236         * config/s390/s390.c (s390_comparison): New function.
237         (s390_branch_condition_mask): Return -1 for invalid comparisons.
238         (s390_branch_condition_mnemonic): Assert valid comparison.
239         * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
240         * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
241         "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
242         s390_comparison instead of comparison_operator.
243
244         * config/s390/s390.md (UNSPEC_CMPINT): New constant.
245         ("cmpmemdi"): Remove.
246         ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
247         ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
248         ("cmpint_si"): Rename to ...
249         ("*cmpint_si"): ... this.  Use UNSPEC_CMPINT.
250         ("cmpint_di", "*cmpint_di"): Likewise.
251         * config/s390/s390.c (s390_canonicalize_comparison): Remove
252         redundant UNSPEC_CMPINT conversions.
253         (s390_expand_cmpmem): Adapt to cmpint pattern changes.
254
255 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
256
257         * collect2.c (COLLECT_PARSE_FLAG): Remove.
258         (main): Remove a reference to COLLECT_PARSE_FLAG
259         * system.h: Poison COLLECT_PARSE_FLAG.
260         * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
261
262 2004-10-01  Paul Brook  <paul@codesourcery.com>
263
264         * config/arm/crti.asm: Give _init and _fini function type.
265
266 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
267
268         * common.opt (ftree-loop-ivcanon): Enable by default.
269         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
270         Enable complete loop unrolling.
271         (canonicalize_induction_variables, tree_unroll_loops_completely):
272         Reset scev info.
273
274 2004-10-01  Paul Brook  <paul@codesourcery.com>
275
276         * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
277         not register number.
278         (thumb_find_work_register): Search full register range.
279
280 2004-10-01  Andrew Pinski  <pinskia@physics.uc.edu>
281
282         PR tree-opt/17343
283         * tree-cfg.c (group_case_labels): Get the label and not
284         the case expr for the default case.
285         When the label we looking at is the default, decrement the
286         new_size.
287
288 2004-10-01  Jan Hubicka  <jh@suse.cz>
289
290         * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
291         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
292         * toplev.h (tree_rest_of_compilation): Update prototype.
293         * tree-optimize.c (tree_rest_of_compilation):  Kill nested_p argument.
294
295 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
296
297         * tree-cfg.c (cleanup_tree_cfg): Pull a call to
298         cleanup_control_flow() out of the while loop.
299
300 2004-10-01  Paolo Bonzini  <bonzini@gnu.org>
301
302         * tree-vectorizer.c (vectorizable_operation): Fail unless
303         the mode for the vector type is indeed a vector mode.
304
305 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
306
307         * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
308         chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
309         of convert.
310         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
311         add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
312         follow_ssa_edge_in_rhs): Ditto.
313         * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
314         (dump_iv): Dump base_object.
315         (dump_use, dump_cand): Use dump_iv.
316         (determine_base_object): New function.
317         (alloc_iv): Initialize base_object field.
318         (record_use): Clear the ssa_name field of iv.
319         (get_computation_cost_at): Do not use difference of addresses of
320         two different objects.
321         (may_eliminate_iv): Do not require the loop to have just single exit.
322         * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
323         (nonzero_p): New function.
324         (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
325         tree_simplify_using_condition, simplify_using_initial_conditions,
326         loop_niter_by_eval, find_loop_niter_by_eval,
327         estimate_numbers_of_iterations_loop, compare_trees,
328         upper_bound_in_type, lower_bound_in_type,
329         can_count_iv_in_wider_type_bound): Use buildN instead of build.  Use
330         fold_convert or build_int_cst_type instead of convert.  Use (non)zero_p
331         instead of integer_(non)zerop.
332
333 2004-10-01  Jakub Jelinek  <jakub@redhat.com>
334
335         Revert
336         2004-09-29  Jakub Jelinek  <jakub@redhat.com>
337
338         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
339         and TI_VA_LIST_FPR_COUNTER_FIELD.
340         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
341         * tree-pass.h (pass_stdarg): Add.
342         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
343         * tree-stdarg.c: New file.
344         * Makefile.in (OBJS-common): Add tree-stdarg.o.
345         (tree-stdarg.o): Add dependencies.
346         * function.h (struct function): Add va_list_gpr_size and
347         va_list_fpr_size fields.
348         * function.c (allocate_struct_function): Initialize them.
349
350         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
351         va_list_{g,f}pr_counter_field.
352         (ix86_setup_incoming_varargs): Don't do anything if reg_save
353         area will not be used.  Only save registers that tree-stdarg.c
354         detected they need saving.
355         (ix86_va_start): Don't set up fields that won't be used.
356
357         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
358         va_list_{g,f}pr_counter_field.
359         (setup_incoming_varargs): Don't do anything if reg_save
360         area will not be used.  Only save registers that tree-stdarg.c
361         detected they need saving.
362         (rs6000_va_start): Don't set up fields that won't be used.
363
364 2004-09-30  Eric Christopher  <echristo@redhat.com>
365
366         * dwarf2.h (dwarf_calling_convention): Add enum for renesas
367         sh abi.
368         * dwarf2out.c (add_calling_convention_attribute): New function.
369         (gen_subroutine_type_die): Use.
370         * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
371         * target.h (gcc_target): Add dwarf_calling_convention.
372         * hooks.c (hook_int_tree_0): New function.
373         * hooks.h: Prototype.
374         * config/sh/sh.c: Include dwarf2.h.
375         (sh_dwarf_calling_convention): New function.
376         (TARGET_DWARF_CALLING_CONVENTION): Use.
377         * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
378
379 2004-09-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
380
381         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
382         expand_builtin_strrchr, expand_builtin_strpbrk,
383         expand_builtin_strncat, expand_builtin_strspn,
384         expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
385         code.
386
387 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
388
389         * config/s390/s390-protos.h (s390_expand_logical_operator): Add
390         prototype.
391         (s390_logical_operator_ok_p): Likewise.
392         * config/s390/s390.c (s390_expand_logical_operator): New function.
393         (s390_logical_operator_ok_p): Likewise.
394         * config/s390/s390.md ("anddi3"): New expander.
395         ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
396         ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
397         ("andsi3"): Use s390_expand_logical_operator.
398         ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
399         ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
400         ("andhi3"): New expander.
401         ("*andhi3_zarch", "*andhi3_esa"): New patterns.
402         ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
403         ("andqi3"): New expander.
404         ("*andqi3_zarch", "*andqi3_esa"): New patterns.
405         ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
406         ("iordi3"): New expander.
407         ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
408         ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
409         ("iorsi3"): Use s390_expand_logical_operator.
410         ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
411         ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
412         ("iorhi3"): New expiorer.
413         ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
414         ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
415         ("iorqi3"): New expiorer.
416         ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
417         ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
418         ("xordi3"): New expander.
419         ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
420         ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
421         ("xorsi3"): New expander.
422         ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
423         ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
424         ("xorhi3"): New expander.
425         ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
426         ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
427         ("xorqi3"): New expander.
428         ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
429         ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
430
431 2004-09-30  Roger Sayle  <roger@eyesopen.com>
432
433         * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
434         (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
435         machine mode as the result.
436
437 2004-09-30  Ben Elliston  <bje@au.ibm.com>
438
439         PR bootstrap/17761
440         * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
441         FOR_EACH_EDGE macros.
442
443 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
444
445         * c-tree.h (readonly_error): Remove.
446         * c-typeck (enum lvalue_use): New.
447         (lvalue_or_else, readonly_error): Use it.  All callers changed.
448         (readonly_error): Make static.
449
450 2004-09-30  Jan Hubicka  <jh@suse.cz>
451
452         PR debug/13974
453         * cfgrtl.c (try_redirect_by_replacing_jump,
454         force_nonfallthru_and_redirect, commit_one_edge_insertion,
455         cfg_layout_merge_blocks):  Do not attach any line number information
456         to newly inserted instructions.
457         * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
458         emit_insn_*_noloc.
459         (emit_*insn_before, emit_insn*_after): New.
460         (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
461         existing locators.
462         * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
463         (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
464
465 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
466
467         * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
468         (s390_return_address_offset): Remove.
469         (s390_can_eliminate): Add prototype.
470         (s390_initial_elimination_offset): Add prototype.
471         * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
472         (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
473         * config/s390/s390.c (s390_arg_frame_offset): Remove.
474         (s390_return_address_offset): Remove.
475         (s390_can_eliminate, s390_initial_elimination_offset): New functions.
476         (struct machine_function): New member split_branches_pending_p.
477         (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
478         (s390_mainpool_finish): Likewise.  Clear base_reg if pool empty.
479         (s390_optimize_prologue): Remove base_used argument.  Call
480         s390_update_frame_layout instead of s390_register_info.  Handle
481         prologue/epilogue insns that touch only RETURN_REGNUM.
482         (s390_reorg): Remove base_used.  Clear split_branches_pending_p.
483         (s390_register_info): Remove base_used and return_addr_used
484         arguments, compute special register usage inline.  Return live
485         register data to caller.
486         (s390_frame_info): Remove arguments, do not call s390_register_info.
487         (s390_init_frame_layout): New function.
488         (s390_update_frame_layout): Likewise.
489         (s390_emit_prologue): Call s390_update_frame_layout; some code
490         move to there.  Do not emit pool placeholder insn if unnecessary.
491
492 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
493
494         * config/s390/s390.c (legitimate_reload_constant_p): Remove
495         floating point constant workaround.
496         (s390_secondary_input_reload_class): Handle PLUS reloads
497         with too-large constant.
498         (s390_expand_plus_operand): Likewise.
499         * config/s390/s390.md ("movdi"): Do not call force_const_mem.
500         ("movsi"): Likewise.  Also, remove workaround for non-general
501         operands.
502         ("movdf"): Do not call force_const_mem.
503         ("movsf"): Likewise.  Merge expander with *movsf insn.
504         ("*movsf"): Remove, merge with movsf expander.
505
506 2004-09-30  Paul Brook  <paul@codesourcery.com>
507
508         * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
509         (ENDFILE_SPEC): Define.
510         * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
511
512 2004-09-30  Richard Henderson  <rth@redhat.com>
513
514         * config/alpha/qrnnd.asm: Mark for noexecstack.
515
516 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
517
518         * protoize.c, tree-cfg.c: Fix comment typos.
519
520 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
521
522         PR c/17730
523         * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
524
525 2004-09-30  Diego Novillo  <dnovillo@redhat.com>
526
527         * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
528         expressions...
529         (add_pointed_to_expr): ... here.
530         Call add_pointed_to_expr for variables with DECL_INITIAL set.
531         * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
532         pointer variable, if set.
533
534 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
535
536         * config/sh/sh.c: Follow spelling conventions.
537
538 2004-09-29  Richard Henderson  <rth@redhat.com>
539
540         * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
541         * doc/tm.texi (DWARF_ZERO_REG): New.
542
543         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
544         alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
545         * config/alpha/alpha.h (DWARF_ZERO_REG): New.
546
547 2004-09-29  Ulrich Weigand  <uweigand@de.ibm.com>
548
549         * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
550         with a PLUS as source operand.
551         (expand_movstr): Likewise.
552         (expand_builtin_stpcpy): Likewise.
553
554 2004-09-29  Richard Henderson  <rth@redhat.com>
555
556         PR 17739
557         * tree-gimple.c (is_gimple_reg): Reject hard registers.
558         (is_gimple_asm_val): New.
559         * tree-gimple.h (is_gimple_asm_val): Declare.
560         * gimplify.c (gimplify_asm_expr): Use it.
561         * tree-pretty-print.c (print_declaration): Dump hard regs.
562         * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
563         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
564         * tree-ssa-pre.c (is_undefined_value): Likewise.
565         * tree-ssa-copy.c (may_propagate_copy): Likewise.
566         (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
567         * tree-ssa.c (warn_uninit): Likewise.
568         * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
569
570 2004-09-29  Fariborz Jahanian <fjahanian@apple.com>
571
572         * c-decl.c (merge_decls): Use comptype when comparing
573         types to decide on DECL_SIZE save of olddecl.
574
575 2004-09-29  Daniel Berlin  <dberlin@dberlin.org>
576
577         * tree.h (INDIRECT_REF_P): New macro.
578         * alias.c (get_alias_set): Use it
579         (nonoverlapping_memrefs_p): Ditto.
580         * emit-rtl.c (mem_expr_equal_p): Ditto.
581         (set_mem_attributes_minus_bitpos): Ditto.
582         (is_gimple_addressable): Ditto.
583         (get_base_address): Ditto.
584         * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
585         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
586         * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
587         * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
588         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
589         (add_address_candidates): Ditto.
590         (rewrite_address_base): Ditto.
591
592 2004-09-30  Ben Elliston  <bje@au.ibm.com>
593
594         * tree-flow.h (struct bb_ann_d): Remove num_preds member.
595         * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
596         (rewrite_ssa_into_ssa): Likewise.
597         * tree-phinodes.c (create_phi_node): Access the number of
598         predecessor edges using EDGE_COUNT() and not num_preds.
599
600 2004-09-29  Joseph S. Myers  <jsm@polyomino.org.uk>
601
602         PR c/7425
603         * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
604
605 2004-09-29  Eric Christopher  <echristo@redhat.com>
606
607         * fold-const.c (tree_swap_operands_p): Remove duplicated code.
608
609 2004-09-29  Hans-Peter Nilsson  <hp@axis.com>
610
611         * config/cris/cris.md (moverside, movemside): With MEM, make sure
612         the address is (plus reg mem).
613
614 2004-09-29  David Edelsohn  <edelsohn@gnu.org>
615
616         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
617
618 2004-09-29  Nathan Sidwell  <nathan@codesourcery.com>
619
620         * tree.c (make_node_stat): Fix uninitialized warning.  Replace
621         cascaded if ... else if with a switch.
622
623 2004-09-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
624
625         * read-rtl.c (apply_macro_to_string): Replace index with strchr.
626
627 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
628
629         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
630         and TI_VA_LIST_FPR_COUNTER_FIELD.
631         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
632         * tree-pass.h (pass_stdarg): Add.
633         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
634         * tree-stdarg.c: New file.
635         * Makefile.in (OBJS-common): Add tree-stdarg.o.
636         (tree-stdarg.o): Add dependencies.
637         * function.h (struct function): Add va_list_gpr_size and
638         va_list_fpr_size fields.
639         * function.c (allocate_struct_function): Initialize them.
640
641         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
642         va_list_{g,f}pr_counter_field.
643         (ix86_setup_incoming_varargs): Don't do anything if reg_save
644         area will not be used.  Only save registers that tree-stdarg.c
645         detected they need saving.
646         (ix86_va_start): Don't set up fields that won't be used.
647
648         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
649         va_list_{g,f}pr_counter_field.
650         (setup_incoming_varargs): Don't do anything if reg_save
651         area will not be used.  Only save registers that tree-stdarg.c
652         detected they need saving.
653         (rs6000_va_start): Don't set up fields that won't be used.
654
655 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
656
657         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
658         BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
659         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
660         BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
661         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
662         ATTR_NONNULL_1_4): New.
663
664 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
665
666         PR tree-optimization/17697
667         * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
668         cfg if needed.
669
670 2004-09-28  Per Bothner  <per@bothner.com>
671
672         * profile.c (branch_prob): Pass correct value to output_location,
673         even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
674
675 2004-09-28  Richard Henderson  <rth@redhat.com>
676
677         PR 15089
678         * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
679         * tree-flow.h (may_propagate_copy_into_asm): Declare.
680         * tree-ssa-ccp.c (replace_uses_in): Use it.
681         * tree-ssa-dom.c (cprop_operand): Likewise.
682
683 2004-09-28 Jeff Law  <law@redhat.com>
684
685         * tree-ssa-threadupdate.c (create_block_for_threading):  Request
686         that no outgoing edges be left in the duplicate block.  Do no
687         update information on outgoing edges or PHI nodes in target
688         blocks here.
689         (remove_ctrl_stmt_and_useless_edges): Renamed from
690         remove_last_stmt_and_useless_edges.  Handle case where the
691         block is empty or has no control statements.  Do not update edge
692         flags here.
693         (thread_block): Create a template block rather than copying the
694         original block every time.  Create outgoing edges from the
695         duplicate blocks and update PHIs at the target of the outgoing
696         edges here.  Fix edge flags for the original block if necessary.
697         * cfghooks (duplicate_block): No longer assert that the original
698         block has incoming edges.
699
700 2004-09-29  Hans-Peter Nilsson  <hp@bitrange.com>
701
702         * doc/extend.texi (Extended Asm): Add blurb about using Explicit
703         Reg Vars to enforce register allocation with general constraints.
704         (Explicit Reg Vars): Clarify relation to asm statements.
705         (Local Reg Vars): Similar.
706
707 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
708
709         * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
710         TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
711         build_control_flow, new_edge): Remove.
712         (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
713         (bitlst, bitlst_table_last, bitlst_table): Remove.
714         (bblst): Store basic_block pointer instead of block index.
715         (bblst_table): Likewise.
716         (edgelst): Store edge pointer instead of edge index.
717         (edgelst_table, edgelst_last): New variables.
718         (extract_bitlst): Rename to ...
719         (extract_edgelst): ... this.  Return edge pointers, not indices.
720         (split_edges): Update call.
721         (rgn_edges): Store edge pointers instead of indices.
722         (edge_to_bit): Remove.
723         (EDGE_TO_BIT): Store per-region edge index in edge->aux.
724         (SET_EDGE_TO_BIT): New macro.
725         (is_cfg_nonregular): Check for simple cases of unreachable blocks.
726         (find_rgns): Remove edge_list parameter.  Traverse standard CFG
727         data structures instead of haifa_edge et al.  Use edge pointers
728         instead of edge indices everywhere.
729         (compute_dom_prob_ps): Use standard CFG data structures.  Account
730         for exit edges.
731         (compute_trg_info): Likewise.
732         (propagate_deps): Likewise.
733         (debug_candidate): Account for bblst data structure change.
734         (check_live_1, update_live_1, is_pfree): Likewise.
735         (IS_REACHABLE): Use standard CFG data structures.
736         (init_ready_list): Update bblst_table/edgelst_table allocation.
737         (schedule_region): Update alloc/cleanup code to data structure
738         changes.  Use edge->aux to store per-region edge index.
739         (init_regions): No longer call build_control_flow.  Do not
740         create edge list any more.
741
742 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
743
744         * cse.c (cse_insn): Avoid creating direct non-local jumps.
745         * combine.c (can_combine_p): Likewise.
746         * local-alloc. (update_equiv_regs): Likewise.
747
748 2004-09-28  Richard Henderson  <rth@redhat.com>
749
750         PR 17531
751         * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
752         Don't check VOIDmode here.  Force PLUS operands to common type.
753         (expand_expr_addr_expr): Do VOIDmode check earlier.  Force use of
754         Pmode if given a non pointer type.
755
756 2004-09-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
757
758         PR 17531
759         * optabs.c (expand_binop): Force constants to the correct mode.
760
761 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
762
763         * config/s390/s390.c (s390_adjust_cost): Remove.
764         (TARGET_SCHED_ADJUST_COST): Do not redefine.
765         (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
766         * config/s390/s390.md ("main_pool"): Use "larl" type
767         attribute if TARGET_CPU_ZARCH.
768
769 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
770
771         * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
772         variable.
773
774 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
775
776         * tree-ssa-loop.c (pass_record_bounds): Do not assign a
777         name to the pass.
778
779 2004-09-28  Steven Bosscher  <stevenb@suse.de>
780
781         * common.opt (flag_gcse_sm): Disable by default.
782         (flag_gcse_las): Likewise.
783         (flag_web): Likewise.  Create from this file.
784         * flags.h: Remove flag_web declaration.
785         * toplev.c (flag_web): Likewise.
786         (process_options): Never set flag_web.
787
788 2004-09-28  Steven Bosscher  <stevenb@suse.de>
789
790         * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
791         * tree-ssa-propagate.c: Include vec.h.
792         (interesting_ssa_edges, varying_ssa_edges): Make these VECs
793         instead of varrays.
794         (cfg_blocks_add): Assert the block is not already in the worklist.
795         Update uses of interesting_ssa_edges and varying_ssa_edges.
796         (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
797         ssa_propagate): Likewise.
798
799 2004-09-28  Joseph S. Myers  <jsm@polyomino.org.uk>
800
801         PR c/16409
802         * c-decl.c (start_decl): Check for initializing incomplete array
803         of VLAs.
804         (build_compound_literal): Check for TYPE being error_mark_node.
805         * c-parse.in (primary): Check for VLA compound literals.
806
807 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
808
809         * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
810         with --disable-checking.
811
812 2004-09-28  Devang Patel  <dpatel@apple.com>
813
814         * tree-pretty-print.c (dump_generic_node): Print vector types.
815
816 2004-09-28  Nick Clifton  <nickc@redhat.com>
817
818         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
819         invocation of the function sh_init_cumulative_args.
820         (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
821         (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
822         * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
823         * config/sh/sh.c (sh_init_cumulative_args): New function based
824         on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
825         heuristic added to determine the setting of force_mem when a
826         library function is being called.
827
828 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
829
830         * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
831         Skip constant arguments.
832
833 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
834
835         * tree-ssa-alias.c (create_name_tags): If PTR points to a
836         volatile type, mark the tag volatile.
837         (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
838         volatile.
839
840 2004-09-28  Andrew Pinski  <pinskia@physics.uc.edu>
841
842         * tree.def (vec_cond_expr): Fix. Change 'e'
843         to tcc_expression.
844
845 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
846
847         * basic-block.h: Fix a comment typo.
848
849 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
850
851         * optabs.c, optabs.h: Fix comment typos.
852
853 2004-09-28  Eric Botcazou  <ebotcazou@act-europe.fr>
854
855         * config/sparc/sparc.md (call_address_struct_value_sp32):
856         Properly mask the immediate field of the 'unimp' instruction.
857         (call_symbolic_struct_value_sp32): Likewise.
858
859 2004-09-28  Ben Elliston  <bje@au.ibm.com>
860             Steven Bosscher  <stevenb@suse.de>
861             Andrew Pinski  <pinskia@physics.uc.edu>
862
863         Merge from edge-vector-branch:
864         * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
865         (struct edge_def): Remove pred_next, succ_next members.
866         (struct basic_block_def): Remove pred, succ members.  Add preds
867         and succs members of type VEC(edge).
868         (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
869         (BRANCH_EDGE): Likewise.
870         (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
871         (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
872         (edge_iterator): New.
873         (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
874         (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
875         (FOR_EACH_EDGE): New.
876         * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
877         where applicable.
878         (rotate_loop): Likewise.
879         (find_traces_1_route): Likewise.
880         (bb_to_key): Likewise.
881         (connect_traces): Likewise.
882         (copy_bb_p): Likewise.
883         (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
884         (add_labels_and_missing_jumps): Likewise.
885         (fix_up_fall_thru_edges): Likewise.
886         (find_jump_block): Likewise.
887         (fix_crossing_conditional_branches): Likewise.
888         (fix_crossing_unconditional_branches): Likewise.
889         (add_reg_crossing_jump_notes): Likewise.
890         * bt-load.c (augment_live_range): Likewise.
891         * cfg.c (clear_edges): Likewise.
892         (unchecked_make_edge): Likewise.
893         (cached_make_edge): Likewise.
894         (make_single_succ_edge): Likewise.
895         (remove_edge): Likewise.
896         (redirect_edge_succ_nodup): Likewise.
897         (check_bb_profile): Likewise.
898         (dump_flow_info): Likewise.
899         (alloc_aux_for_edges): Likewise.
900         (clear_aux_for_edges): Likewise.
901         (dump_cfg_bb_info): Likewise.
902         * cfganal.c (forwarder_block_p): Likewise.
903         (can_fallthru): Likewise.
904         (could_fall_through): Likewise.
905         (mark_dfs_back_edges): Likewise.
906         (set_edge_can_fallthru_flag): Likewise.
907         (find_unreachable_blocks): Likewise.
908         (create_edge_list): Likewise.
909         (verify_edge_list): Likewise.
910         (add_noreturn_fake_exit_edges): Likewise.
911         (connect_infinite_loops_to_exit): Likewise.
912         (flow_reverse_top_sort_order_compute): Likewise.
913         (flow_depth_first_order_compute): Likewise.
914         (flow_preorder_transversal_compute): Likewise.
915         (flow_dfs_compute_reverse_execute): Likewise.
916         (dfs_enumerate_from): Likewise.
917         (compute_dominance_frontiers_1): Likewise.
918         * cfgbuild.c (make_edges): Likewise.
919         (compute_outgoing_frequencies): Likewise.
920         (find_many_sub_basic_blocks): Likewise.
921         (find_sub_basic_blocks): Likewise.
922         * cfgcleanup.c (try_simplify_condjump): Likewise.
923         (thread_jump): Likewise.
924         (try_forward_edges): Likewise.
925         (merge_blocks_move): Likewise.
926         (outgoing_edges_match): Likewise.
927         (try_crossjump_to_edge): Likewise.
928         (try_crossjump_bb): Likewise.
929         (try_optimize_cfg): Likewise.
930         (merge_seq_blocks): Likewise.
931         * cfgexpand.c (expand_gimple_tailcall): Likewise.
932         (expand_gimple_basic_block): Likewise.
933         (construct_init_block): Likewise.
934         (construct_exit_block): Likewise.
935         * cfghooks.c (verify_flow_info): Likewise.
936         (dump_bb): Likewise.
937         (delete_basic_block): Likewise.
938         (split_edge): Likewise.
939         (merge_blocks): Likewise.
940         (make_forwarder_block): Likewise.
941         (tidy_fallthru_edges): Likewise.
942         (can_duplicate_block_p): Likewise.
943         (duplicate_block): Likewise.
944         * cfglayout.c (fixup_reorder_chain): Likewise.
945         (fixup_fallthru_exit_predecessor): Likewise.
946         (can_copy_bbs_p): Likewise.
947         (copy_bbs): Likewise.
948         * cfgloop.c (flow_loops_cfg_dump): Likewise.
949         (flow_loop_entry_edges_find): Likewise.
950         (flow_loop_exit_edges_find): Likewise.
951         (flow_loop_nodes_find): Likewise.
952         (mark_single_exit_loops): Likewise.
953         (flow_loop_pre_header_scan): Likewise.
954         (flow_loop_pre_header_find): Likewise.
955         (update_latch_info): Likewise.
956         (canonicalize_loop_headers): Likewise.
957         (flow_loops_find): Likewise.
958         (get_loop_body_in_bfs_order): Likewise.
959         (get_loop_exit_edges): Likewise.
960         (num_loop_branches): Likewise.
961         (verify_loop_structure): Likewise.
962         (loop_latch_edge): Likewise.
963         (loop_preheader_edge): Likewise.
964         * cfgloopanal.c (mark_irreducible_loops): Likewise.
965         (expected_loop_iterations): Likewise.
966         * cfgloopmanip.c (remove_bbs): Likewise.
967         (fix_bb_placement): Likewise.
968         (fix_irreducible_loops): Likewise.
969         (remove_path): Likewise.
970         (scale_bbs_frequencies): Likewise.
971         (loopify): Likewise.
972         (unloop): Likewise.
973         (fix_loop_placement): Likewise.
974         (loop_delete_branch_edge): Likewise.
975         (duplicate_loop_to_header_edge): Likewise.
976         (mfb_keep_just): Likewise.
977         (create_preheader): Likewise.
978         (force_single_succ_latches): Likewise.
979         (loop_split_edge_with): Likewise.
980         (create_loop_notes): Likewise.
981         * cfgrtl.c (rtl_split_block): Likewise.
982         (rtl_merge_blocks): Likewise.
983         (rtl_can_merge_blocks): Likewise.
984         (try_redirect_by_replacing_jump): Likewise.
985         (force_nonfallthru_and_redirect): Likewise.
986         (rtl_tidy_fallthru_edge): Likewise.
987         (commit_one_edge_insertion): Likewise.
988         (commit_edge_insertions): Likewise.
989         (commit_edge_insertions_watch_calls): Likewise.
990         (rtl_verify_flow_info_1): Likewise.
991         (rtl_verify_flow_info): Likewise.
992         (purge_dead_edges): Likewise.
993         (cfg_layout_redirect_edge_and_branch): Likewise.
994         (cfg_layout_can_merge_blocks_p): Likewise.
995         (rtl_flow_call_edges_add): Likewise.
996         * cse.c (cse_cc_succs): Likewise.
997         * df.c (hybrid_search): Likewise.
998         * dominance.c (calc_dfs_tree_nonrec): Likewise.
999         (calc_dfs_tree): Likewise.
1000         (calc_idoms): Likewise.
1001         (recount_dominator): Likewise.
1002         * domwalk.c (walk_dominator_tree): Likewise.
1003         * except.c (emit_to_new_bb_before): Likewise.
1004         (connect_post_landing_pads): Likewise.
1005         (sjlj_emit_function_enter): Likewise.
1006         (sjlj_emit_function_exit): Likewise.
1007         (finish_eh_generation): Likewise.
1008         * final.c (compute_alignments): Likewise.
1009         * flow.c (calculate_global_regs_live): Likewise.
1010         (initialize_uninitialized_subregs): Likewise.
1011         (init_propagate_block_info): Likewise.
1012         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1013         * gcse.c (find_implicit_sets): Likewise.
1014         (bypass_block): Likewise.
1015         (bypass_conditional_jumps): Likewise.
1016         (compute_pre_data): Likewise.
1017         (insert_insn_end_bb): Likewise.
1018         (insert_store): Likewise.
1019         (remove_reachable_equiv_notes): Likewise.
1020         * global.c (global_conflicts): Likewise.
1021         (calculate_reg_pav): Likewise.
1022         * graph.c (print_rtl_graph_with_bb): Likewise.
1023         * ifcvt.c (mark_loop_exit_edges): Likewise.
1024         (merge_if_block): Likewise.
1025         (find_if_header): Likewise.
1026         (block_jumps_and_fallthru_p): Likewise.
1027         (find_if_block): Likewise.
1028         (find_cond_trap): Likewise.
1029         (block_has_only_trap): Likewise.
1030         (find_if_case1): Likewise.
1031         (find_if_case_2): Likewise.
1032         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
1033         (perfect_nestify): Likewise.
1034         * lcm.c (compute_antinout_edge): Likewise.
1035         (compute_laterin): Likewise.
1036         (compute_available): Likewise.
1037         (compute_nearerout): Likewise.
1038         * loop-doloop.c (doloop_modify): Likewise.
1039         * loop-init.c (loop_optimizer_init): Likewise.
1040         * loop-invariant.c (find_exits): Likewise.
1041         * loop-iv.c (simplify_using_initial_values): Likewise.
1042         (check_simple_exit): Likewise.
1043         (find_simple_exit): Likewise.
1044         * loop-unroll.c (peel_loop_completely): Likewise.
1045         (unroll_loop_constant_iterations): Likewise.
1046         (unroll_loop_runtime_iterations): Likewise.
1047         * loop-unswitch.c (may_unswitch_on): Likewise.
1048         (unswitch_loop): Likewise.
1049         * modulo-sched.c (generate_prolog_epilog): Likewise.
1050         (sms_schedule): Likewise.
1051         * postreload-gcse.c (eliminate_partially_redundant_load):
1052         Likewise.
1053         * predict.c (can_predict_insn_p): Likewise.
1054         (set_even_probabilities): Likewise.
1055         (combine_predictions_for_bb): Likewise.
1056         (predict_loops): Likewise.
1057         (estimate_probability): Likewise.
1058         (tree_predict_by_opcode): Likewise.
1059         (tree_estimate_probability): Likewise.
1060         (last_basic_block_p): Likewise.
1061         (propagate_freq): Likewise.
1062         (estimate_loops_at_level): Likewise.
1063         (estimate_bb_frequencies): Likewise.
1064         * profile.c (instrument_edges): Likewise.
1065         (get_exec_counts): Likewise.
1066         (compute_branch_probabilities): Likewise.
1067         (branch_prob): Likewise.
1068         * ra-build.c (live_in): Likewise.
1069         * ra-rewrite.c (rewrite_program2): Likewise.
1070         * ra.c (reg_alloc): Likewise.
1071         * reg-stack.c (reg_to_stack): Likewise.
1072         (convert_regs_entry): Likewise.
1073         (compensate_edge): Likewise.
1074         (convert_regs_1): Likewise,
1075         (convert_regs_2): Likewise.
1076         (convert_regs): Likewise.
1077         * regrename.c (copyprop_hardreg_forward): Likewise.
1078         * reload1.c (fixup_abnormal_edges): Likewise.
1079         * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
1080         (sbitmap_insersection_of_preds): Likewise.
1081         (sbitmap_union_of_succs): Likewise.
1082         (sbitmap_union_of_preds): Likewise.
1083         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
1084         (fix_basic_block_boundaries): Likewise.
1085         (sched_ebbs): Likewise.
1086         * sched-rgn.c (build_control_flow): Likewise.
1087         (find_rgns): Likewise.
1088         * tracer.c (find_best_successor): Likewise.
1089         (find_best_predecessor): Likewise.
1090         (tail_duplicate): Likewise.
1091         * tree-cfg.c (make_edges): Likewise.
1092         (make_ctrl_stmt_edges): Likewise.
1093         (make_goto_expr_edges): Likewise.
1094         (tree_can_merge_blocks_p): Likewise.
1095         (tree_merge_blocks): Likewise.
1096         (cfg_remove_useless_stmts_bb): Likewise.
1097         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
1098         (tree_block_forwards_to): Likewise.
1099         (cleanup_control_expr_graph): Likewise.
1100         (find_taken_edge): Likewise.
1101         (dump_cfg_stats): Likewise.
1102         (tree_cfg2vcg): Likewise.
1103         (disband_implicit_edges): Likewise.
1104         (tree_find_edge_insert_loc): Likewise.
1105         (bsi_commit_edge_inserts): Likewise.
1106         (tree_split_edge): Likewise.
1107         (tree_verify_flow_info): Likewise.
1108         (tree_make_forwarder_block): Likewise.
1109         (tree_forwarder_block_p): Likewise.
1110         (thread_jumps): Likewise.
1111         (tree_try_redirect_by_replacing_jump): Likewise.
1112         (tree_split_block): Likewise.
1113         (add_phi_args_after_copy_bb): Likewise.
1114         (rewrite_to_new_ssa_names_bb): Likewise.
1115         (dump_function_to_file): Likewise.
1116         (print_pred_bbs): Likewise.
1117         (print_loop): Likewise.
1118         (tree_flow_call_edges_add): Likewise.
1119         (split_critical_edges): Likewise.
1120         (execute_warn_function_return): Likewise.
1121         (extract_true_false_edges_from_block): Likewise.
1122         * tree-if-conv.c (tree_if_conversion): Likewise.
1123         (if_convertable_bb_p): Likewise.
1124         (find_phi_replacement_condition): Likewise.
1125         (combine_blocks): Likewise.
1126         * tree-into-ssa.c (compute_global_livein): Likewise.
1127         (ssa_mark_phi_uses): Likewise.
1128         (ssa_rewrite_initialize_block): Likewise.
1129         (rewrite_add_phi_arguments): Likewise.
1130         (ssa_rewrite_phi_arguments): Likewise.
1131         (insert_phi_nodes_for): Likewise.
1132         (rewrite_into_ssa): Likewise.
1133         (rewrite_ssa_into_ssa): Likewise.
1134         * tree-mudflap.c (mf_build_check_statement_for): Likewise.
1135         * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
1136         (rewrite_trees): Likewise.
1137         * tree-pretty-print.c (dump_bb_header): Likewise.
1138         (dump_implicit_edges): Likewise.
1139         * tree-sra.c (insert_edge_copies): Likewise.
1140         (find_obviously_necessary_stmts): Likewise.
1141         (remove_data_stmt): Likewise.
1142         * tree-ssa-dom.c (thread_across_edge): Likewise.
1143         (dom_opt_finalize_block): Likewise.
1144         (single_incoming_edge_ignoring_loop_edges): Likewise.
1145         (record_equivalences_from_incoming_edges): Likewise.
1146         (cprop_into_successor_phis): Likewise.
1147         * tree-ssa-live.c (live_worklist): Likewise.
1148         (calculate_live_on_entry): Likewise.
1149         (calculate_live_on_exit): Likewise.
1150         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
1151         (copy_loop_headers): Likewise.
1152         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
1153         (fill_always_executed_in): Likewise.
1154         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
1155         * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
1156         (compute_phi_arg_on_exit): Likewise.
1157         * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
1158         (get_loops_exit): Likewise.
1159         (split_loop_exit_edge): Likewise.
1160         (ip_normal_pos): Likewise.
1161         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
1162         Likewise.
1163         * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
1164         (replace_phi_with_stmt): Likewise.
1165         (value_replacement): Likewise.
1166         * tree-ssa-pre.c (compute_antic_aux): Likewise.
1167         (insert_aux): Likewise.
1168         (init_pre): Likewise.
1169         * tree-ssa-propagate.c (simulate_stmt): Likewise.
1170         (simulate_block): Likewise.
1171         (ssa_prop_init): Likewise.
1172         * tree-ssa-threadupdate.c (thread_block): Likewise.
1173         (create_block_for_threading): Likewise.
1174         (remove_last_stmt_and_useless_edges): Likewise.
1175         * tree-ssa.c (verify_phi_args): Likewise.
1176         (verify_ssa): Likewise.
1177         * tree_tailcall.c (independent_of_stmt_p): Likewise.
1178         (find_tail_calls): Likewise.
1179         (eliminate_tail_call): Likewise.
1180         (tree_optimize_tail_calls_1): Likewise.
1181         * tree-vectorizer.c (vect_transform_loop): Likewise.
1182         * var-tracking.c (prologue_stack_adjust): Likewise.
1183         (vt_stack_adjustments): Likewise.
1184         (vt_find_locations): Likewise.
1185         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
1186         * config/i386/i386.c (ix86_pad_returns): Likewise.
1187         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1188         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1189
1190 2004-09-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
1191
1192         PR target/16532
1193         * config/sparc/sparc.c (struct machine_function): New field
1194         'leaf_function_p' and 'prologue_data_valid_p'.
1195         (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
1196         to conveniently access the above fields.
1197         (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
1198         (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
1199         of the generic flavor 'current_function_uses_only_leaf_regs'.
1200         (eligible_for_sibcall_delay): Likewise.
1201         (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
1202         'sparc_prologue_data_valid_p'.  Use 'sparc_leaf_function_p'.
1203         (sparc_asm_function_prologue): Add sanity check for the assumption
1204         made in 'sparc_expand_prologue'.  Use 'sparc_leaf_function_p'.
1205         (sparc_can_use_return_insn_p): New function.
1206         (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
1207         (output_restore): Likewise.
1208         (output_sibcall): Likewise.
1209         (sparc_output_mi_thunk): Likewise.
1210         * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
1211         * config/sparc/sparc.md (return): New expander.
1212
1213         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
1214
1215 2004-09-27  Mark Mitchell  <mark@codesourcery.com>
1216
1217         PR c++/17642
1218         * stor-layout.c (layout_decl): Use fold_convert, not convert.
1219         (bit_from_pos): Likewise.
1220         (byte_from_pos): Likewise.
1221         (pos_from_bit): Likewise.
1222         (normalize_offset): Likewise.
1223         (place_field): Likewise.
1224         (finalize_type_size): Likewise.
1225         (layout_type): Likewise.
1226         * tree.c (build_index_type): Likewise.
1227
1228 2004-09-27  Devang Patel  <dpatel@apple.com>
1229
1230         * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
1231         * genopinit.c (optabs): New entry for vcond_gen_code and
1232         vcondu_gen_code.
1233         * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
1234         (get_rtx_code): New function.
1235         (vector_compare_rtx): New function.
1236         (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
1237         (expand_vec_cond_expr_p): New function.
1238         (expand_vec_cond_expr): New function.
1239         (get_vcond_icode): New function.
1240         * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
1241         (vcond_gen_code, vcondu_gen_code): Same.
1242
1243 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
1244
1245         * Makefile.in (STAGESTUFF): Split into ...
1246         (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
1247         (mostlyclean): Update.
1248         (stage1-start, stage2-start, stage3-start, stage4-start,
1249         stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
1250         Move the STAGEMOVESTUFF.
1251
1252 2004-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
1253
1254         * system.h (getpagesize): Return 'int' instead of 'long'.
1255
1256 2004-09-27  Michael Matz <matz@suse.de>
1257
1258         PR bootstrap/17698
1259         PR bootstrap/17702
1260         * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
1261         bmp_iter_and_init): Shift by bit_in_word.
1262
1263 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
1264
1265         * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
1266         * configure.ac: Don't sinclude it here.
1267         * configure: Regenerate.
1268
1269 2004-09-27  Dorit Naishlos  <dorit@il.ibm.com>
1270
1271         * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
1272         Handle AND pattern
1273
1274 2004-09-27  Joseph S. Myers  <jsm@polyomino.org.uk>
1275
1276         PR c/13804
1277         * c-typeck.c (build_component_ref): Name type involved in
1278         diagnostic for structure or union without a member of the given
1279         name.
1280
1281 2004-09-27  DJ Delorie  <dj@redhat.com>
1282
1283         * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
1284         .comm alignment is bytes, not bits.
1285
1286 2004-09-27  Devang Patel  <dpatel@apple.com>
1287
1288         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
1289         (print_call_name): Do not print VEC_COND_EXPR.
1290
1291 2004-09-27  Devang Patel  <dpatel@apple.com>
1292
1293         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
1294
1295 2004-09-27  Jan Hubicka  <jh@suse.cz>
1296
1297         * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
1298
1299 2004-09-27  Kazu Hirata  <kazu@cs.umass.edu>
1300
1301         * bitmap.h: Fix a comment typo.
1302
1303 2004-09-27  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1304
1305         * libgcc2.c (getpagesize): Change type of return value to int.
1306
1307 2004-09-26  Matt Austern  <austern@apple.com>
1308
1309         * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
1310         using mmap.
1311
1312 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1313
1314         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
1315         EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
1316         (bitmap_iterator): New type.
1317         (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
1318         bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
1319         bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
1320         bmp_iter_and_init, bmp_iter_and_next): New functions.
1321         * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
1322         EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
1323         use iterator-style EXECUTE_IF_IN_BITMAP macros.
1324         * bitmap.c (bitmap_print): Ditto.
1325         * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
1326         btr_def_live_range): Ditto.
1327         * cfganal.c (compute_dominance_frontiers_1) Ditto.
1328         * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
1329         Ditto.
1330         * ddg.c (build_inter_loop_deps): Ditto.
1331         * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
1332         Ditto.
1333         * except.c (remove_eh_handler): Ditto.
1334         * flow.c (reg_set_to_hard_reg_set): Ditto.
1335         * gcse.c (clear_modify_mem_tables): Ditto.
1336         * global.c (build_insn_chain): Ditto.
1337         * ifcvt.c (dead_or_predicable): Ditto.
1338         * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
1339         Ditto.
1340         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
1341         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
1342         detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
1343         * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
1344         tree_purge_all_dead_eh_edges): Ditto.
1345         * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
1346         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
1347         rewrite_ssa_into_ssa): Ditto.
1348         * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
1349         * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
1350         Ditto.
1351         * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
1352         compute_flow_sensitive_aliasing, maybe_create_global_var,
1353         dump_points_to_info_for): Ditto.
1354         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
1355         * tree-ssa-dse.c (dse_finalize_block): Ditto.
1356         * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
1357         calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
1358         Ditto.
1359         * tree-ssa-loop-ivopts.c (find_induction_variables,
1360         find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
1361         determine_use_iv_costs, determine_set_costs, find_best_candidate,
1362         set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
1363         Ditto.
1364         * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
1365         * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
1366         add_call_read_ops): Ditto.
1367         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
1368
1369 2004-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1370
1371         * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
1372         UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
1373
1374 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
1375
1376         * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
1377         reflect size of memory regions being compared.
1378
1379 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
1380
1381         * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
1382         expressions.  Always clear MEM_SIZE and alias set.
1383
1384 2004-09-26  Roger Sayle  <roger@eyesopen.com>
1385             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
1386
1387         PR middle-end/17112
1388         * stor-layout.c (compute_record_mode): For records with a single
1389         field, only use the field's mode if its size matches what we'd
1390         have choosen for the record ourselves.  This forces the use of
1391         BLKmode for packed records that don't completely fill a mode.
1392
1393 2004-09-26  Roger Sayle  <roger@eyesopen.com>
1394
1395         PR middle-end/17151
1396         * combine.c (force_to_mode): Remove dubious early return test that
1397         inhibits further optimization.
1398
1399 2004-09-26  Kazu Hirata  <kazu@cs.umass.edu>
1400
1401         * profile.c: Fix a comment typo.
1402
1403 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1404
1405         PR bootstrap/17591
1406         * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
1407         with varying offset.
1408         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
1409         (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
1410         ARRAY_REFS.
1411         (expr_invariant_in_loop_p): New function.
1412         (idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
1413         component_ref_field_offset for COMPONENT_REFs.  Do not allow
1414         ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
1415         (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
1416         MISALIGNED_INDIRECT_REFs.
1417         (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
1418         (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
1419         MISALIGNED_INDIRECT_REFs.
1420
1421 2004-09-26  Joseph S. Myers  <jsm@polyomino.org.uk>
1422
1423         PR c/11459
1424         * gcc.c (cpp_options, cc1_options): Preserve relative order of
1425         -std and -ansi options.
1426
1427 2004-09-26  Jan Hubicka  <jh@suse.cz>
1428
1429         * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
1430         for nested functions whose proper parent has not been output.
1431
1432         * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
1433         when re-constructing profile previously invalidated by loop.
1434
1435 2004-09-25  Dale Johannesen  <dalej@apple.com>
1436
1437         * tree-gimple.c:  Move GIMPLE definition...
1438         * doc/tree-ssa.texi:  here.
1439
1440 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
1441
1442         * tree-vectorizer.c: Fix a comment typo.
1443
1444 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
1445
1446         * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
1447         gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
1448         lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
1449         tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
1450
1451 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
1452
1453         * tree-ssa-loop-unswitch.c: Fix a comment typo.
1454
1455 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
1456
1457         * doc/passes.texi: Fix a typo.
1458
1459 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1460
1461         * tree-optimize.c (init_tree_optimization_passes): Add
1462         pass_record_bounds.
1463         * tree-pass.h (pass_record_bounds): Declare.
1464         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
1465         New pass.
1466
1467 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1468
1469         PR tree-optimization/17474
1470         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
1471         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
1472
1473 2004-09-25  Jan Hubicka  <jh@suse.cz>
1474
1475         * predict.c (counts_to_freqs): Make global.
1476         * predict.h (counts_to_freqa): Declare.
1477         * profile.c (compute_branch_probabilities): Compute frequencies
1478         * tree-profile.c (do_tree_profiling): Refine conditional on when
1479         tree profiling pass is needed.
1480
1481         * passes.c (rest_of_handle_cfg): Disable const/pure function
1482         detection when doing tree based profiling.
1483
1484         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
1485         conditional.
1486
1487 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
1488
1489         * config/mips/mips.h (struct mips_args): Clarify comments.
1490         * config/mips/mips.c (struct mips_arg_info): Likewise.
1491         (mips_arg_info): Don't allow fpr_p to affect the register or
1492         stack alignment.  Remove o64 silliness.
1493         (function_arg): Deal with the o32 float,float case specially.
1494
1495 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
1496
1497         * config/mips/mips.md (loadx, storex): Define for V2SF.
1498
1499 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
1500
1501         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
1502         * config/s390/s390.c (s390_back_chain_rtx): New function.
1503         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
1504         Call anti_adjust_stack.
1505         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
1506         only if compiling with back chain.
1507         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
1508         back chain only if back chain enabled.  Use s390_back_chain_rtx.
1509
1510 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
1511
1512         * doc/trouble.texi: Remove obsolete information.  Update
1513         information on how to regenerate fixincluded headers.
1514
1515 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
1516
1517         PR c/12951
1518         * doc/invoke.texi: Document that
1519         -Wno-error-implicit-function-declaration is not accepted.
1520
1521 2004-09-24  Richard Henderson  <rth@redhat.com>
1522
1523         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
1524         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
1525         on TARGET_MAX.
1526         (alpha_expand_mov): Allow unaligned vectors.
1527         (alpha_expand_unaligned_store): Use CONST0_RTX.
1528         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
1529
1530 2004-09-24 Jeff Law  <law@redhat.com>
1531
1532         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
1533         aliasing rules.
1534         (simplify_cond_and_lookup_avail_expr): Likewise.
1535
1536 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
1537
1538         PR c/12802
1539         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
1540         title.  Document interaction with -fms-extensions.
1541         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
1542         section.
1543
1544 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
1545
1546         PR c/12713
1547         * doc/extend.texi: Document interaction of attribute noreturn and
1548         longjmp.
1549
1550 2004-09-24  Richard Henderson  <rth@redhat.com>
1551
1552         PR rtl-opt/17503
1553         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
1554         (som_hash, som_eq): New.
1555         (init_subregs_of_mode, record_subregs_of_mode): New.
1556         (cannot_change_mode_set_regs): Rewrite for htab implementation.
1557         (invalid_mode_change_p): Likewise.
1558         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
1559         * flow.c (mark_used_regs): Likewise.
1560         (life_analysis): Use init_subregs_of_mode.
1561         * regs.h (subregs_of_mode): Remove.
1562         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
1563
1564 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
1565
1566         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
1567         type with the copy of the conditional.
1568
1569 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
1570
1571         PR tree-opt/16954
1572         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
1573         Prevent renaming if the aliasing sets of the type which the
1574         pointer points to are different.
1575
1576 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
1577
1578         PR c/17188
1579         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
1580         declarations of enumerators.
1581         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
1582         for redefinition.  Check for nested redefinition.
1583         (finish_struct): Don't check for nested redefinition.
1584         (start_enum): Check for nested redefinition.
1585
1586 2004-09-24  Devang Patel  <dpatel@apple.com>
1587
1588         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
1589         only when necesssary.
1590         (combine_blocks): Combine loop header and exit block.
1591
1592 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
1593
1594         * hooks.c (hook_tree_tree_bool_null): New.
1595         * hooks.h (hook_tree_tree_bool_null): Declare it.
1596         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
1597         * targhooks.c (default_fold_builtin): Remove.
1598         * targhooks.h (default_fold_builtin): Remove.
1599
1600 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1601
1602         PR rtl-optimization/17625
1603         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
1604
1605 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
1606
1607         PR tree-opt/17624
1608         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
1609         Reject if any of the operands occur in an abnormal PHI.
1610
1611 2004-09-24  Andreas Schwab  <schwab@suse.de>
1612
1613         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
1614         rules.
1615
1616 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1617
1618         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
1619         if the GNU assembler is used.
1620         (sparc-*-solaris2*): Likewise.
1621         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
1622         (dbxout_function_end): Protect N_ENSYM with it.
1623         (dbxout_begin_prologue): Protect N_BNSYM with it.
1624         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
1625         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
1626         * config/sparc/sol2-gas.h: New file.
1627
1628 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
1629
1630         PR bootstrap/17369
1631         * Makefile.in (@set_gcc_lib_path@): Added.
1632
1633         * configure.ac: Include ../config/gcc-lib-path.m4. Use
1634         TL_AC_GNU_MAKE_GCC_LIB_PATH.
1635         * configure: Regenerated.
1636
1637 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
1638
1639         PR c/6980
1640         * c-typeck.c (build_c_cast): Improve wording of
1641         -Wbad-function-cast diagnostic.
1642
1643 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
1644
1645         PR target/17626
1646         * config/cris/cris.md (moverside, movemside): Rename variable
1647         "reg" to "otherop".  To generate canonical RTX, check that otherop
1648         isn't constant instead of checking that operand 1 is a register.
1649
1650 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
1651
1652         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
1653
1654 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
1655             Jakub Jelinek  <jakub@redhat.com>
1656
1657         * tree-flow.h (find_new_referenced_vars): Add prototype.
1658         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
1659         Move to...
1660         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
1661         ... here.
1662         (mark_new_vars_to_rename): Walk through all operands.
1663         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
1664         (execute_fold_all_builtins): Use it.
1665         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
1666
1667 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
1668
1669         * gthr-tpf.h: New file.
1670         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
1671         * gthr.h: Use gthr-tpf.h on TPF OS.
1672
1673 2004-09-23 Jeff Law  <law@redhat.com>
1674
1675         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
1676         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
1677         (substitute_and_fold):  Likewise.
1678         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
1679         except invariants from SSA_NAME_VALUE.
1680         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
1681         and SET_SSA_NAME_EQUIV.
1682         (restore_vars_to_original_value, record_const_or_copy): Likewise.
1683         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
1684         (record_equality, cprop_into_successor_phis): Likewise.
1685         (record_equivalences_from_stmt, cprop_operand): Likewise.
1686         (lookup_avail_expr): Likewise.
1687         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
1688         from SSA_NAME_VALUE.
1689         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
1690         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
1691         annotation from the VALUE_HANDLE field.
1692
1693 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
1694
1695         PR c++/13989
1696         PR c++/9844
1697         * tree.c (reconstruct_complex_type): Remove extra "this".
1698         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
1699         Add V4SFmode to case statement.
1700
1701 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
1702
1703         PR c/16833
1704         * doc/extend.texi, doc/invoke.texi: Document interaction of
1705         -fno-builtin with format checks.  Note that built-in functions
1706         have effects beyond generating code that avoids calls to those
1707         functions.
1708
1709 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
1710
1711         PR tree-optimization/17533
1712         * dominance.c (verify_dominators): Tolerate even more incorrect
1713         dominance data during error message printing.
1714         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
1715         and edges more correctly.
1716
1717 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
1718
1719         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
1720         New tree-codes.
1721         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
1722         MISALIGNED_INDIRECT_REF.
1723         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
1724         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
1725         Likewise.
1726         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
1727         (find_interesting_uses_address): Likewise.
1728         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
1729         (build_fold_addr_expr_with_type): Likewise.
1730         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
1731         * print-rtl.c (print_mem_expr): Likewise.
1732         * tree-dump.c (dequeue_and_dump): Likewise.
1733         * tree-eh.c (tree_could_trap_p): Likewise.
1734         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
1735         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
1736         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
1737         Likewise.
1738         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1739         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
1740         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
1741         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
1742         (add_address_candidates, rewrite_address_base): Likewise.
1743         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
1744         Likewise.
1745         * tree.c (staticp, build1_stat): Likewise.
1746
1747         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
1748         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
1749         * tree-ssa-operands.c (get_expr_operands): Likewise.
1750         * expr.c (expand_expr_real_1): Likewise.
1751
1752         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
1753         optabs.
1754         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
1755         for the new optabs.
1756         (expand_ternary_op): New function.
1757         * genopinit.c (optabs): Handle the new optabs.
1758         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
1759         (init_optabs): Initialize vec_realign_load_optab.
1760         (expand_ternary_op): New functions.
1761
1762         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
1763         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
1764         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
1765         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
1766         * target.h (struct vectorize): New member for struct gcc_target.
1767         (misaligned_mem_ok): New member for targetm.vectorize.
1768         (builtin_mask_for_load): Likewise.
1769         (builtin_mask_for_store): Likewise.
1770         * targethooks.c (default_vect_misaligned_mem_ok): New function.
1771         * targethooks.h (default_vect_misaligned_mem_ok): New function.
1772
1773         * config/rs6000/altivec.md (build_vector_mask_for_load): New
1774         define_expand.
1775         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
1776         (vec_realign_load_v16qi): New define_insn.
1777         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
1778         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
1779         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
1780         (altivec_builtin_mask_for_store): New variables.
1781         (rs6000_builtin_mask_for_load): New function. Implements
1782         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
1783         (rs6000_builtin_mask_for_store): New function. Implements
1784         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
1785         (rs6000_expand_builtin): Expand the target builtins
1786         builtin_mask_for_load and builtin_mask_for_store.
1787         (altivec_init_builtins): Initialize the new target builtins.
1788         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
1789         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
1790
1791         * tree-vectorizer.c (vect_create_data_ref): Renamed to
1792         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
1793         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
1794         (vectorizable_store): Call vect_create_data_ref_ptr with additional
1795         arguments, and create an indirect_ref with its return value data_ref.
1796         Check aligned_access_p.
1797         (vectorizable_load): Handle misaligned loads, using software-pipelined
1798         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
1799         vec_realign_load_optab is supported, or using a scheme without
1800         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
1801         misaligned_mem_ok is supported.
1802
1803         (vect_finish_stmt_generation): Typo.
1804         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
1805         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
1806         presence of misaligned loads.
1807         (vect_analyze_data_ref_access): Add check for constant init.
1808         (vect_get_symbl_and_dr): Remove duplicate line.
1809         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
1810
1811 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
1812
1813         * builtins.c: Fix a comment typo.
1814
1815 2004-09-23  Jan Hubicka  <jh@suse.cz>
1816
1817         * profile.c (branch_prob): Do not verify flow info in the middle of the
1818         pass.
1819
1820 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1821
1822         * cfgloop.h (update_single_exits_after_duplication): Declare.
1823         (loopify, split_loop_bb): Declaration changed.
1824         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
1825         of rtx.
1826         (loopify): Added redirect_all_edges argument.
1827         (update_single_exits_after_duplication): Export.
1828         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
1829         * tree-flow.h (tree_duplicate_loop_to_header_edge,
1830         tree_ssa_loop_version): Declare.
1831         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
1832         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
1833         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
1834         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
1835
1836         * tree-ssa-loop-unswitch.c: New file.
1837         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
1838         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
1839         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
1840         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
1841         * tree-pass.h (pass_unswitch): Declare.
1842         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
1843         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
1844         * doc/passes.texi: Documen tree level loop unswitching.
1845
1846 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
1847
1848         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
1849
1850 2004-09-22  Eric Christopher  <echristo@redhat.com>
1851
1852         * builtins.c (simplify_builtin_va_start): Remove.
1853         (simplify_builtin): Ditto.
1854         (fold_builtin_strchr): Ditto.
1855         (simplify_builtin_*): Rename remainders to fold_builtin_*.
1856         (expand_builtin): Fix up for above changes.
1857         (fold_builtin_1): Add new folders. Change for above.
1858         (expand_builtin_va_start): Call fold_builtin_next_arg.
1859         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
1860         * tree.h: Remove prototype for simplify_builtin.
1861
1862 2004-09-23  Jan Hubicka  <jh@suse.cz>
1863
1864         PR debug/17389
1865         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
1866         of fully inlined functions.
1867         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
1868         inlined.
1869
1870         * cfgexpand.c (add_reg_br_prob_note): New function.
1871         (expand_gimple_cond_expr): Use it.
1872         (tree_expand_cfg): No longer kill the profile.
1873         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
1874         only if it is present.
1875         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
1876         * predict.c (combine_predictions_for_insn): Set the probabilities
1877         based on REG_BR_PROB note if present.
1878         * predict.c (branch_prob): Profile is read only with
1879         flag_branch_probabilities.
1880
1881 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
1882
1883         * aclocal.m4: Add in gettext's m4 includes.
1884         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
1885         * configure.ac: Add in check for iconv.h
1886         * configure: Regenerate.
1887
1888 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
1889
1890         * aclocal.m4: Update for rename of gettext-sister.m4.
1891
1892 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
1893
1894         Fix PR tree-optimization/17587
1895         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
1896         (insert_aux): Instead of here.
1897
1898 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
1899
1900         PR tree-optimization/16721
1901         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
1902         * tree-ssa-alias.c (create_memory_tag): Move setting of
1903         TREE_THIS_VOLATILE ...
1904         (get_tmt_for): ... here.
1905
1906 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1907
1908         * config/sparc/sparc.md (cmove splitter): Fix formatting.
1909         (conditional_trap expander): Reject inappropriate CCmodes.
1910         (conditional trap insn): Use V9 syntax if possible.
1911
1912 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1913
1914         PR c/16566
1915         * c-typeck.c (build_component_ref): Don't special-case
1916         COMPOUND_EXPR.
1917
1918 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
1919
1920         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
1921         returns NULL.
1922
1923 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
1924
1925         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
1926         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
1927         TRUTH_XOR_EXPR): Mention the restriction on types.
1928
1929 2004-09-22  Matt Austern  <austern@apple.com>
1930
1931         * config/darwin.c (darwin_make_decl_one_only):
1932         Allow coalesced symbol to appear in static archive's table of contents
1933
1934 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
1935
1936         PR tree-optimization/17512
1937         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
1938         special cases.
1939
1940 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
1941
1942         * dbxout.c (get_lang_number): Do not define if
1943         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
1944
1945 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
1946
1947         PR target/15583
1948         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
1949         builtin_define ("__USE_INIT_FINI__").
1950
1951 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
1952
1953         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
1954         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
1955         * config/s390/s390.h (TARGET_TPF): New macro.
1956         * config/s390/s390.md ("eh_return"): New expander.
1957         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
1958         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
1959         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
1960         * config/s390/tpf.h (TARGET_TPF): Define to 1.
1961         (STACK_POINTER_OFFSET): Increase to 448.
1962         (TARGET_DEFAULT): Set -mtpf-trace on as default.
1963         (TPF_LOC_DIFF_OFFSET): New macro.
1964         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
1965         encoding.
1966         (__isPATrange): Add prototype.
1967         (MD_FALLBACK_FRAME_STATE_FOR): Define.
1968         * config/s390/tpf-eh.c: New file.
1969
1970 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
1971
1972         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
1973         operands in an integer comparison.
1974         * tree-cfg.c (find_taken_edge): Call fold() to determine
1975         whether the predicate is known.
1976
1977 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
1978
1979         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
1980         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
1981         Create build and doc directories along with the language directories.
1982         Don't create doc directory separately.
1983         * configure: Regenerate.
1984         * Makefile.in: Create all object and executables files built
1985         with the build compiler in a build/ directory.
1986         (genobjnames): Add missing build objects.
1987         (STAGESTUFF): Don't stage the gen* programs.
1988         (ggc-none.o): Define dependencies for the target compiler.
1989         (build-print-rtl.o): Rename to build/print-rtl.o.
1990         (build-errors.o): Rename to build/errors.o.
1991         (build-varray.o): Rename to build/varray.o.
1992         (maintainerclean): Delete the contents of the build directory.
1993         ($(genobjs): %.o): Explicitly use -o.
1994         (build/insn-conditions.o): Delete specfic rule to use generic rule.
1995         (build/gengtype-lex.o): Likewise.
1996         (build/gengtype-yacc.o): Likewise.
1997         (build/gcov-iov.o): Likewise.
1998
1999 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
2000
2001         * vec.h (VEC_space): Return true if there _is_ space.
2002         (VEC_reserve): Adjust.
2003
2004 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
2005
2006         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
2007         use FPRs for scalar, complex and vector types only.
2008
2009 2004-09-21 Jeff Law  <law@redhat.com>
2010
2011         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
2012         the opt_stats_d structure.
2013         (vrp_data): Change from a varray into a hash table.
2014         (vrp_hash_elt): New structure for elements in the vrp hash table.
2015         (vrp_hash, vrp_eq):New functions for hashing and testing equality
2016         in the vrp hash table.
2017         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
2018         initialization slightly to make it easier to read.  No longer need
2019         to grow/clear the varray.  Instead empty and delete the hash table.
2020         (dom_opt_finalize_block): Update due to change of VRP_DATA from
2021         a varray to a hash table.
2022         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
2023
2024         * tree-ssa-ccp.c (get_default_value): If we have a constant
2025         value recorded for an SSA_NAME, then use that constant as
2026         the initial lattice value.
2027         (substitute_and_fold): Transfer equivalences discovered into
2028         SSA_NAME_EQUIV.
2029
2030         * tree.h (SSA_NAME_EQUIV): Add comments.
2031         (SET_SSA_NAME_EQUIV): Similarly.
2032
2033 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
2034
2035         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
2036
2037         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
2038
2039 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
2040
2041         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
2042         (finish_decl): Likewise.
2043
2044 2004-09-21  Devang Patel  <dpatel@apple.com>
2045
2046         * tree.def (VEC_COND_EXPR): New tree node.
2047         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
2048
2049 2004-09-21  Stan Shebs  <shebs@apple.com>
2050
2051         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
2052         * config/rs6000/darwin-world.asm: Likewise.
2053
2054 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
2055
2056         * tree-ssa.c (verify_def): Use print_generic_stmt,
2057         not debug_generic_stmt.
2058         (verify_use): Ditto.
2059         (verify_phi_args): Ditto.
2060         (verify_ssa): Ditto.
2061
2062 2004-09-21  Paul Brook  <paul@codesourcery.com>
2063
2064         * varasm.c (default_assemble_integer): Return false for values wider
2065         than the target word size.  Works around GAS bug.
2066
2067 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
2068
2069         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
2070         gets value 0.
2071         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
2072         if it has value 0.
2073
2074 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
2075
2076         * c-typeck.c (build_function_call): Give name of object
2077         we are attempting to call in error message.
2078         * c-objc-common.c (c_tree_printer): Call pp_expression,
2079         not return false, for 'E' case.
2080
2081 2004-09-21  Steven Bosscher  <stevenb@suse.de>
2082
2083         PR rtl-optimization/17482
2084         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
2085         load_killed_in_block_p): Clarify comments.
2086         (record_last_reg_set_info): Make static inline.
2087         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
2088         (record_opr_changes): New function to replace the above.
2089         (compute_hash_table): Clarify comments.  Use record_opr_changes.
2090         (reg_set_between_after_reload_p): Clean up.
2091         (reg_used_between_after_reload_p): Likewise.
2092         (eliminate_partially_redundant_load): Clarify comments.
2093
2094 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2095
2096         PR rtl-optimization/17266
2097         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
2098
2099 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
2100
2101         PR rtl-optimization/14851
2102         * rtlanal.c (commutative_operand_precedence): Calculate
2103         precedence of stripped constant.
2104
2105 2004-09-20 Jeff Law  <law@redhat.com>
2106            Jan Hubicka  <jh@suse.cz>
2107
2108         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
2109         initialize key elements here.
2110         (release_ssa_name): Zero the released SSA_NAME here.
2111         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
2112         (struct tree_ssa_name): Add new "equiv" field.
2113         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
2114         (tree_ssa_dominator_optimize): No longer allocate, resize or
2115         clear CONST_AND_COPIES.
2116         (get_value_for, set_value_for): Kill.
2117         (thread_across_edge): Get/set the equivalency using
2118         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
2119         (restore_vars_to_original_value): Likewise.
2120         (record_equivalences_from_phis): Likewise.
2121         (record_dominating_conditions): Likewise.
2122         (record_const_or_copy, record_equality): Likewise.
2123         (lookup_avail_expr): Likewise.
2124         (record_equivalences_from_stmt, cprop_operand): Likewise.
2125         (cprop_into_successor_phis): No longer need to pass around
2126         CONST_AND_COPIES.  Callers updated. Get equivalences via
2127         SSA_NAME_EQUIV.
2128         (cprop_into_phis): Likewise.
2129
2130 2004-09-20  Matt Austern <austern@apple.com>
2131             Zack Weinberg  <zack@codesourcery.com>
2132
2133         * c-common.c (fix_string_type): Build the unqualified array
2134         type unconditionally, then use c_build_qualified_type to get
2135         the proper const-qualified variant, and set its
2136         TYPE_MAIN_VARIANT to refer to the unqualified type.
2137         * c-lex.c (c_lex_return_raw_string): New global.
2138         (c_lex_with_flags): Honor it.
2139         * c-pragma.h: Declare it.
2140
2141 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
2142
2143         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
2144
2145 2004-09-21  Jan Hubicka  <jh@suse.cz>
2146
2147         PR middle-end/17126
2148         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
2149         (tree_rest_of_compilation): Cleanup.
2150
2151 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
2152
2153         * config/s390/s390.c (s390_select_rtx_section): Remove.
2154         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
2155
2156 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2157
2158         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
2159         note to pretend a direct save from the original register when an
2160         intermediate register is used for the save.
2161
2162 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2163
2164         * tsystem.h (alloca): Provide a default definition.
2165
2166         Revert:
2167         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2168             * unwind-dw2.c: Call __builtin_alloca, not alloca.
2169
2170 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
2171
2172         PR tree-opt/17558
2173         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
2174         aliasing sets are the same rather than just conflicting.
2175
2176 2004-09-20  Jan Hubicka  <jh@suse.cz>
2177
2178         PR middle-end/16460
2179
2180         * cgraph.c (cgraph_unnest_node): New function.
2181         (c_finalize): Rename to ....
2182         (c_warn_unused_result_recursivly): ... this one; do only the warning
2183         (finish_function): Finalize the toplevel function; do not lower nested tree.
2184         * cgraph.h (cgraph_unnest_node): Declare.
2185         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
2186         nestedness datastructure.
2187         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
2188         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
2189         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
2190
2191 2004-09-20  Richard Henderson  <rth@redhat.com>
2192
2193         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
2194         from some_small_symbolic_operand_1; export.
2195         (some_small_symbolic_operand): Remove.
2196         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
2197         extra C check.
2198         * config/alpha/predicates.md (some_small_symbolic_operand): New.
2199
2200 2004-09-20  Jan Hubicka  <jh@suse.cz>
2201
2202         * predict.c (return_prediction): New function.
2203         (apply_return_prediction): Likewise.
2204         (tree_bb_level_predictions): Likewise.
2205         (tree_estimate_probability): Add noreturn exit edges; call
2206         bb_level_predictions; fix logic of return heuristics.
2207         (predict_paths_leading_to):  Rescuesce from old CVS version of
2208         process_note_prediction function.
2209         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
2210
2211 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
2212
2213         * config/s390/s390.c (s390_frame_info): Added alignment statement for
2214         floating point register area on stack.
2215
2216 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
2217
2218         * predict.c (expr_expected_value): Use *_CLASS_P macros.
2219
2220 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
2221
2222         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
2223         generating useless garbage.
2224
2225 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
2226
2227         * builtins.c (fold_builtin): Call the new omonymous
2228         target hook for machine-dependent built-ins.
2229         * target-def.h (TARGET_FOLD_BUILTIN): New.
2230         * target.h (struct gcc_target): Add the fold_builtin hook.
2231         * targhooks.c (default_fold_builtin): New.
2232         * targhooks.h (default_fold_builtin): Declare it.
2233
2234 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
2235
2236         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
2237         comment typos.
2238
2239 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
2240
2241         PR target/17565
2242         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
2243
2244 2004-09-20  Jan Hubicka  <jh@suse.cz>
2245
2246         * predict.c (estimate_probability): Remove unnecesary code.
2247
2248 2004-09-19  Ira Rosen  <irar@il.ibm.com>
2249
2250         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
2251         (STMT_VINFO_VECT_DR_BASE): Declare.
2252         (VECT_SMODULO): Declare.
2253         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
2254         (vect_compute_array_base_alignment): New function.
2255         (vect_analyze_data_ref_access): Check array indices. Remove one
2256         dimensional arrays restriction.
2257         (vect_get_ptr_offset): New function.
2258         (vect_get_symbl_and_dr): New function.
2259         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
2260         (former name vect_get_base_decl_and_bit_offset).
2261         (vect_create_index_for_array_ref): Removed.
2262         (vect_create_index_for_vector_ref): New function.
2263         (vect_create_addr_base_for_vector_ref): New function.
2264         (vect_create_data_ref): Handle additional data refs. Call
2265         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
2266         (vect_compute_data_ref_alignment): Support the changes. Call
2267         vect_get_base_and_bit_offset.
2268         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
2269         data refs. Store vect_dr_base.
2270         (vect_analyze_data_ref_accesses): Support nonconstant init.
2271         (new_stmt_vec_info): Initialize vect_dr_base field.
2272         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
2273         (get_vectype_for_scalar_type): Check for BLKmode.
2274         * tree-chrec.h (initial_condition_in_loop_num): Declare.
2275         * tree-chrec.c (initial_condition_in_loop_num): New function.
2276         (chrec_component_in_loop_num): New function.
2277         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
2278         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
2279         to be pointer to varray_type.
2280
2281 2004-09-19  Jan Hubicka  <jh@suse.cz>
2282
2283         * basic-block.h (update_bb_profile_after_threading): Declare.
2284         * cfg.c (update_bb_profile_after_threading): Break out from ...
2285         * cfgcleanup.c (try_forward_edges): ... here; use it.
2286         * tree-ssa-dom.c (thread_across_edge): Use it.
2287         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
2288         profile of the new BB.
2289
2290 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
2291
2292         * tree-ssa-pre.c (insert_into_set): Don't put
2293         is_gimple_min_invariant values into the set.
2294
2295 2004-09-19  Andreas Jaeger  <aj@suse.de>
2296
2297         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
2298         prototype.
2299
2300 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
2301
2302         * config/cris/cris.h: Preserve the original spelling in a
2303         quote.
2304
2305 2004-09-18 Jeff Law  <law@redhat.com>
2306
2307         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
2308         global varrays to replace the block local varrays.
2309         (struct dom_walk_block_data): Remove, no longer used.
2310         (get_eq_expr_value): No longer need to pass around pointers to local
2311         varrays.  Callers updated.  Unused markers added to unused parameters.
2312         (record_range, record_equivalences_from_stmt): Likewise.
2313         (record_equivalences_from_incoming_edge): Likewise.
2314         (record_var_is_nonzero): Likewise.  Update now that we have a
2315         single global varray of SSA_NAMEs that need restoring.
2316         (dom_opt_initialize_block_local_data): Kill, no longer used.
2317         (tree_ssa_dominator_optimize): Initialize new global varrays.
2318         Update callbacks in dominator walker structure.
2319         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
2320         VRP_VARIABLES_STACK.
2321         (restore_nonzero_vars_to_original_value): Update now that we have
2322         a single global varray of SSA_NAMEs that need restoring.
2323         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
2324         Remove unused variables.
2325         (optimize_stmt): Remove unused variable.
2326
2327 2004-09-18  Jan Hubicka  <jh@suse.cz>
2328
2329         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
2330
2331         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
2332         verify_cgraph call.
2333
2334 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
2335
2336         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
2337         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
2338         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
2339         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
2340         tree-ssa-operands.c, tree-ssa-phiopt.c,
2341         tree-ssa-threadupdate.c: Fix comment typos.
2342
2343 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
2344
2345         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
2346         config/arm/README-interworking, config/arm/arm-cores.def,
2347         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
2348         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
2349         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
2350         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
2351         config/frv/frv.md, config/i386/winnt.c,
2352         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
2353         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
2354         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
2355         config/mcore/mcore.c, config/mips/mips.h,
2356         config/mn10300/mn10300.md, config/pa/pa.c,
2357         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
2358         config/rs6000/rs6000.c, config/sh/symbian.c,
2359         config/sparc/sparc.h: Fix comment typos.  Follow spelling
2360         conventions.
2361
2362 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
2363
2364         PR c/17424
2365         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
2366
2367 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
2368
2369         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
2370         remove TREE_ADDRESSABLE from RESULT_DECL.
2371
2372 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
2373
2374         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
2375
2376 2004-09-18  Jan Hubicka  <jh@suse.cz>
2377
2378         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
2379         NULL.
2380         * tree-ssa-alias.c (init_alias_info): Likewise.
2381         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
2382         (verify_ssa): Likewise.
2383         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
2384
2385 2004-09-18  Jan Hubicka  <jh@suse.cz>
2386
2387         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
2388         huge offset.
2389
2390 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2391
2392         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
2393         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2394         DW_EH_PE_sdata* for data.
2395         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2396
2397 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
2398
2399         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
2400         shared anyway.
2401
2402         PR pch/13361
2403         * c-typeck.c (constructor_asmspec): Delete.
2404         (struct initializer_stack): Delete field 'asmspec'.
2405         (start_init): Delete saving of asmspec.
2406         (finish_init): Don't update constructor_asmspec.
2407         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
2408         * stmt.c (expand_asm): Duplicate strings from tree.
2409         (expand_asm_operands): Likewise.
2410         * tree.c (tree_size): Update computation of size of STRING_CST.
2411         (make_node): Don't make STRING_CST nodes.
2412         (build_string): Allocate string with tree node.
2413         (tree_code_size): Clean up assertions, don't allow requests
2414         for "the size of a STRING_CST".
2415         * tree.def (STRING_CST): Update comment.
2416         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
2417         (tree_string): Place contents of string in tree node.
2418         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
2419         from tree.
2420
2421 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
2422
2423         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
2424         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
2425
2426 2004-09-17  Jones Desougi  <jones@ingate.com>
2427
2428         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
2429         * configure, config.in: Regenerate.
2430
2431 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
2432
2433         * tree.c, tree.h (tree_class_strings): Make array const.
2434         Reindent per coding convention.  Move asterisk to proper place
2435         per coding convention.
2436
2437 2004-09-18  Andreas Schwab  <schwab@suse.de>
2438
2439         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
2440         (tree-vectorizer.o): Likewise.
2441         (targhooks.o): Likewise.
2442
2443 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
2444             Zack Weinberg  <zack@codesourcery.com>
2445
2446         * alias.c (find_base_decl): Remove unreachable case '3' block.
2447         * expr.c (safe_from_p): Abort if passed a type.
2448         * tree-gimple.c (recalculate_side_effects): Abort if passed
2449         anything other than an expression.
2450         * tree-ssa-pre.c (phi_translate): Return expr immediately if
2451         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
2452         Abort on un-handled tree classes.
2453         (valid_in_set): Likewise.
2454         * tree.c (tree_code_class_strings): New static data.
2455
2456         * tree.h (enum tree_code_class): New.
2457         (tree_code_class_strings): Declare.
2458         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
2459         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
2460         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
2461         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
2462         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
2463
2464         * tree.def, c-common.def, objc/objc-tree.def: Use
2465         tree_code_class enumeration constants instead of code letters.
2466
2467         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
2468         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
2469         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
2470         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
2471         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
2472         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
2473         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
2474         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
2475         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
2476         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
2477         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
2478         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
2479         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
2480         Update to match.
2481
2482         * LANGUAGES: Add note about change.
2483
2484 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
2485
2486         PR tree-optimization/17319
2487         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
2488         examine pointers on the LHS of an assignment.
2489         (collect_points_to_info_r): Handle RETURN_EXPR.
2490
2491 2004-09-17 Jeff Law  <law@redhat.com>
2492
2493         * tree-ssa-dom.c (const_and_copies_stack): New.
2494         (dom_walk_block_data): Remove const_and_copies field.
2495         (record_const_or_copy): No longer need to pass in varray_type *.
2496         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
2497         Callers updated.
2498         (record_equality): Similarly.
2499         (restore_vars_to_original_value): Similarly.  Revamp to use new
2500         single global stack rather than per-block stacks.
2501         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
2502         (thread_across_edge): Remove now unused parameters.
2503         (dom_opt_initialize_block_local_data): No longer test the block
2504         local CONST_AND_COPIES.
2505         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
2506
2507 2004-09-17  Jan Hubicka  <jh@suse.cz>
2508
2509         PR tree-optimization/17509
2510         * tree-optimize.c (update_inlined_to_pointers): New function.
2511         (tree_rest_of_compilation): Use it.
2512
2513 2004-09-17  Devang Patel  <dpatel@apple.com>
2514
2515         * dbxout.c (get_lang_number): New.
2516         (dbxout_init): Include lang number in N_SO  stab.
2517         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
2518         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
2519
2520 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
2521
2522         PR tree-optimization/17273
2523         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
2524         replacement is a constant.
2525
2526 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2527
2528         * c-tree.h (enum c_typespec_keyword): New.
2529         (struct c_declspecs): Adjust description of "type".  Remove
2530         specbits, explicit_int_p and explicit_char_p.  Rename
2531         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
2532         short_p, signed_p, unsigned_p and complex_p.
2533         (finish_declspecs): New.
2534         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
2535         typename): Call finish_declspecs.
2536         * c-decl.c (finish_declspecs): New.
2537         (declspecs_add_type): Check for combinations which cannot occur in
2538         valid specifier lists.  Update comments.
2539         (shadow_tag_warned): Remove checks done in finish_declspecs.
2540         Don't report useless type name if type defaulted to int.
2541         (grokdeclarator): Remove checks and actions done in
2542         finish_declspecs.  Don't allow for type being NULL.  Update for
2543         datastructures changes.  Initialize decl_attr.
2544         (build_null_declspecs, quals_from_declspecs): Update for
2545         datastructures changes.
2546
2547 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
2548
2549         * doc/extend.texi: Fix duplicated word.
2550
2551 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
2552
2553         * doc/invoke.texi: Remove stray explanation on
2554         -freduce-all-givs and -fmove-all-movables.
2555
2556 2004-09-17  James Morrison  <phython@gcc.gnu.org>
2557
2558         * doc/cfg.texi: Use @smallexample.
2559         * doc/md.texi: Likewise.
2560         * doc/tree-ssa.texi: Likewise.
2561         * doc/extend.texi: Likewise.  Use @r{} in comments.
2562         * doc/trouble.texi: Use @r{} in comments.
2563
2564 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
2565
2566         * configure.ac (gcc_cv_gld_version): Handle whitespace before
2567         "VERSION=".
2568         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
2569         * configure: Regenerate.
2570
2571 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
2572
2573         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
2574         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
2575         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
2576         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
2577         slashes in substitutions.
2578         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
2579
2580 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
2581
2582         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
2583         gimplify.c, lambda-code.c, optabs.c, predict.c,
2584         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
2585         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
2586         conventions.
2587
2588 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
2589
2590         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
2591         doc/extend.texi, doc/install.texi, doc/invoke.texi,
2592         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
2593         doc/trouble.texi: Use @option around options.
2594
2595 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
2596
2597         * Makefile.in (gen-protos.o): Depend on errors.h.
2598
2599 2004-09-17  Steven Bosscher  <stevenb@suse.de>
2600
2601         PR tree-optimization/17513
2602         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
2603         for successors of the entry block.
2604
2605 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
2606
2607         PR rtl-optimization/15187
2608         * ifcvt.c (noce_try_cmove_arith): Exit early if total
2609         insn_rtx_cost of both branches > BRANCH_COST
2610
2611 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
2612
2613         PR tree-optimization/17528
2614         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
2615         erase the may-alias set for a tag when merging it with
2616         another.
2617
2618 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2619
2620         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
2621         for 32-bit TARGET_SHMEDIA.
2622         (call_value): Likewise.
2623
2624 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
2625
2626         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
2627         test apply only to TREE_STATIC and DECL_EXTERNAL.
2628
2629 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2630
2631         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
2632         * basic-block.h (get_dominated_by_region): Declare.
2633         * dominance.c (get_dominated_by_region): New function.
2634         * tree-cfg.c: Include cfglayout.h.
2635         (tree_duplicate_bb): Duplicate also phi nodes.
2636         (struct ssa_name_map_entry): New type.
2637         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
2638         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
2639         allocate_ssa_names, rewrite_to_new_ssa_names_def,
2640         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
2641         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
2642         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
2643         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
2644         rewrite_to_new_ssa_names, allocate_ssa_names,
2645         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
2646         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
2647         (copy_loop_headers): Use tree_duplicate_sese_region.
2648
2649 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
2650
2651         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
2652
2653 2004-09-16 Jeff Law  <law@redhat.com>
2654
2655         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
2656         (rewrite_block_data): Remove, no longer used.
2657         (rewrite_initialize_block_local_data): Remove, no longer used.
2658         (rewrite_initialize_block): Mark parameters as unused as needed.
2659         Change references to the block local block_defs to be block_defs_stack.
2660         Push a marker onto the block_defs_stack.
2661         (ssa_rewrite_initialize_block): Similarly.
2662         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
2663         (ssa_register_new_def): No longer needs varray argument.  Use
2664         block_defs_stack instead.  No longer handle possibly null block_defs
2665         varray.  Reverse order of items we push on the stack to make it
2666         easier to identify our marker.
2667         (register_new_def): No longer handle possibly null block_defs
2668         varray.
2669         (rewrite_finalize_block): Revamp to look for markers in the global
2670         block_defs_stack varray rather than wiping a block local varray.
2671         Mark arguments as unused as needed.
2672         (ssa_rewrite_finalize_block): Similarly.
2673         (rewrite_into_ssa): Update initialization of dom walker structure
2674         to reflect that we don't need block local data anymore.  Initialize
2675         the block_defs_stack varray.
2676         (rewrite_ssa_into_ssa): Similarly.
2677         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
2678         (struct dom_walk_data): Kill block_defs field.
2679         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
2680         (thread_across_edge): Use the global block_defs_stack instead of
2681         the old block_defs varray.
2682         (dom_opt_initialize_block_local_data): Update now that we don't have
2683         block_defs field to check anymore.
2684         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
2685         (restore_currdefs_to_original_value): Use the new block_defs_stack
2686         instead of a block local varray.
2687         (dom_opt_finalize_block): Similarly.
2688         (record_equivalencs_from_phis): Similarly.
2689         (optimize_stmt, register_definitions_for_stmt): Similarly.
2690
2691 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
2692
2693         PR tree-optimization/17517
2694         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
2695         coalesce same-root variables without checking for abnormal PHI usage.
2696
2697 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
2698
2699         * cfgloop.h (duplicate_loop):  Add prototype.
2700         * cfgloopmanip.c (duplicate_loop): Make non-static.
2701         * lambda-code.c (perfect_nestify): Factor out test whether
2702         we can handle this loop into separate function.
2703         Call it.
2704         (can_convert_to_perfect_nest): New function.
2705         (replace_uses_of_x_with_y): Add modify_stmt call.
2706         * tree-loop-linear.c (linear_transform_loops): Call
2707         rewrite_into_loop_closed_ssa and free_df.
2708
2709 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
2710
2711         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
2712         loop invariant as well.
2713         (perfect_nestify): new function.
2714         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
2715         upper bounds, and steps.
2716         Set outerinductionvar properly.
2717         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
2718         parameters.
2719         Return NULL if we need a perfect loop and can't make one.
2720         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
2721         (not_interesting_stmt): New function.
2722         (phi_loop_edge_uses_def): Ditto.
2723         (stmt_uses_phi_result): Ditto.
2724         (stmt_is_bumper_for_loop): Ditto.
2725         (perfect_nest_p): Ditto.
2726         (nestify_update_pending_stmts): Ditto.
2727         (replace_uses_of_x_with_y): Ditto.
2728         (stmt_uses_op): Ditto.
2729         (perfect_nestify): Ditto.
2730         * lambda-mat.c (lambda_matrix_id_p): New function.
2731         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
2732         * lambda.h: Update prototypes.
2733         * tree-loop-linear (linear_transform_loop): Use new
2734         perfect_nest_p. Detect and ignore identity transform.
2735         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
2736
2737 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
2738
2739         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
2740         Gather also strides of accessed data.  Pass in the data references
2741         array.
2742         (try_interchange_loops): Add a new heuristic for handling the temporal
2743         locality.  Pass in the data references array.
2744         (linear_transform_loops): Pass the data references array to
2745         try_interchange_loops.
2746
2747 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
2748
2749         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
2750
2751 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
2752
2753         * doc/c-tree.texi (Classes): Remove index entries for
2754         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
2755
2756 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2757
2758         * fold-const.c (fold): Fold difference of addresses.
2759         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
2760         get_inner_reference.
2761         * tree-ssa-loop-ivopts.c (peel_address): Removed.
2762         (ptr_difference_const): Moved to fold-const.c.
2763         (split_address_cost): Use get_inner_reference instead of peel_address.
2764         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
2765         * tree.h (ptr_difference_const): Export.
2766
2767         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
2768         variable type to the dump.  Fix indentation.
2769         (idx_find_step): Handle nonconstant array_ref_element_size and
2770         array_ref_low_bound.
2771         (idx_record_use): Handle array_ref_element_size and
2772         array_ref_low_bound.
2773         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
2774         statements correctly.
2775         (get_computation_at, iv_value): Do not unshare expressions here.
2776         (rewrite_use_outer): Unshare the expression before it is emitted
2777         to code.
2778         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
2779         Moved to tree.c.
2780         * tree.c (unsigned_type_for, signed_type_for): Moved from
2781         tree-ssa-loop-niter.c.  Use langhooks.
2782         * tree.h (signed_type_for): Export.
2783
2784 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
2785
2786         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
2787         prototype.
2788
2789 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
2790
2791         PR target/11572
2792         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
2793         Add two parameters to extra_includes.
2794         (C_INCPATH_INIT): Remove.
2795         * c-incpath.c (register_include_chains): Call extra_pre_includes
2796         before adding the standard include directory.
2797         Update call to extra_includes.
2798         (!defined TARGET_EXTRA_INCLUDES): Update
2799         hook_void_charptr_charptr_int and add !define
2800         TARGET_EXTRA_PRE_INCLUDES.
2801         (!define TARGET_EXTRA_INCLUDES): Define as
2802         hook_void_charptr_charptr_int.
2803         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
2804         (target_c_incpath): Always declare.
2805         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
2806         empty function.
2807         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
2808         * config/darwin.h: (darwin_register_frameworks): Update for
2809         the two new parameters.
2810         (darwin_register_objc_includes): Add prototype.
2811         (TARGET_EXTRA_PRE_INCLUDES): Define.
2812         * config/darwin-c.c (darwin_register_objc_includes): New function.
2813         (darwin_register_frameworks): Update for the two new parameters.
2814         (target_c_incpath): Remove.
2815         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
2816         the compile line.
2817         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
2818         parameters.
2819         (TARGET_EXTRA_PRE_INCLUDES): Document.
2820
2821         * gcc.c (spec_function): Add replace-outfile.
2822         (replace_outfile_spec_function): New function.
2823         * config/darwin.h (LINK_SPEC): Add replace
2824         -lobjc with -lobjc-gnu if -fgnu-runtime is
2825         supplied.
2826         * invoke.texi (replace-outfile): Document.
2827
2828 2004-09-13  Jan Hubicka  <jh@suse.cz>
2829
2830         * predict.c (expr_expected_value, strip_builtin_expect): New function.
2831         (tree_predict_by_opcode): Use it.
2832         (tree_estimate_probability): Add, for now disabled,
2833         strip_builtin_expect call.
2834
2835 2004-09-15  James E Wilson  <wilson@specifixinc.com>
2836
2837         PR target/17455
2838         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
2839         if current_function_decl is a sibcall.
2840
2841 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
2842
2843         * varasm.c (default_function_rdodata_section): Make sure to pass
2844         along a decl for a link-once section.
2845
2846 2004-09-15  Richard Henderson  <rth@redhat.com>
2847
2848         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
2849         warning with code disable.  Fix formatting.
2850
2851 2004-09-15  Steven Bosscher  <stevenb@suse.de>
2852
2853         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
2854         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
2855         after propagating into an ADDR_EXPR.
2856
2857 2004-09-15  Andrew Pinski  <apinski@apple.com>
2858
2859         PR rtl-opt/17427
2860         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
2861         Move it out of gcc_assert.
2862
2863 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2864
2865         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
2866         except.c, fold-const.c, function.c, langhooks.c, params.c,
2867         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
2868         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
2869         for quoting in diagnostics going through pretty-print.c.  Use ''
2870         for quoting in other diagnostic text.
2871         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
2872         translation.
2873         * Makefile.in (langhooks.o): Update dependencies.
2874         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
2875         formats.
2876
2877 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
2878
2879         * configure.ac: Check for COMDAT support.  Robustify check for
2880         SHF_MERGE support.
2881         * configure: Regenerated.
2882         * config.in: Likewise.
2883         * langhooks-def.h (lhd_comdat_group): New function.
2884         (LANG_HOOKS_COMDAT_GROUP): New macro.
2885         (LANG_HOOKS_DECLS): Use it.
2886         * langhooks.c (lhd_comdat_group): Define.
2887         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
2888         * output.h (named_section_flags): Make it a macro.
2889         (named_section_real): New function.
2890         (default_no_named_section): Add decl parameter.
2891         (default_elf_asm_named_section): Likewise.
2892         (default_coff_asm_named_section): Likewise.
2893         (default_pe_asm_named_section): Likewise.
2894         * target.h (gcc_target): Adjust type of named_section.
2895         * varasm.c (named_section_flags): Rename to named_section_real.
2896         Add decl parameter.
2897         (default_no_named_section): Add decl parameter.
2898         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
2899         with the case that ASM_COMMENT_START is "@".
2900         (default_coff_asm_named_section): Add decl parameter.
2901         (default_pe_asm_named_section): Likewise.
2902         * config/alpha/alpha.c (vms_asm_named_section): Add decl
2903         parameter.
2904         (unicosmk_asm_named_section): Likewise.
2905         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
2906         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
2907         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
2908         * config/cris/cris-protos.h (cris_target_asm_named_section):
2909         Likewise.
2910         * config/cris/cris.c (cris_target_asm_named_section):
2911         Likewise.
2912         * config/darwin/darwin-protos.h (darwin_asm_named_section):
2913         Likewise.
2914         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
2915         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
2916         * config/i386/i386-protos.h (i386_pe_asm_named_section):
2917         Likewise.
2918         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
2919         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
2920         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
2921         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
2922         Likewise.
2923         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
2924         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
2925         * cp/cp-tree.h (cxx_comdat_group): Declare.
2926         * cp/decl.c (cxx_comdat_group): New function.
2927
2928 2004-09-15  Jan Hubicka  <jh@suse.cz>
2929
2930         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
2931         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
2932
2933         * tree-cfg.c (remove_bb): Release SSA defs.
2934
2935 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
2936
2937         * doc/tm.texi: Follow spelling conventions.
2938
2939 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
2940
2941         * tree-ssa-dom.c: Fix comment typos.
2942
2943 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
2944
2945         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
2946         include ccr.
2947         (ppc_fallback_frame_state): Save location of CR.
2948
2949 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
2950
2951         * expr.c (string_constant): Handle also read-only variables
2952         initialized to string literals.
2953
2954         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
2955         into memcpy (x, y, 1) if memcpy can be expanded inline.
2956
2957 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2958
2959         PR tree-optimization/17468
2960         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
2961         definition inside a block precede uses.
2962         * tree-tailcall.c (adjust_return_value): Emit statements in the
2963         correct order.
2964
2965 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
2966
2967         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
2968
2969 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
2970
2971         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
2972
2973 2004-09-14 Jeff Law  <law@redhat.com>
2974
2975         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
2976         (struct dom_walk_block_data): Remove avail_exprs member.
2977         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
2978         (lookup_avail_expr): No longer need to pass in address of
2979         the block local available exprs stack.  All callers changed.
2980         (simplify_cond_and_lookup_avail_expr): Similarly.
2981         (simplify_switch_and_lookup_avail_expr): Similarly.
2982         (get_eq_expr_value, record_cond): Likewise.
2983         (record_dominating_conditions): Likewise.
2984         (update_rhs_and_lookup_avail_expr): Likewise.
2985         (record_equivalences_from_stmt): Likewise.
2986         (dom_opt_initialize_block_local_data): No longer test state of
2987         block local avail_exprs.
2988         (dom_opt_initialize_block): Mark unwind point in the global
2989         avail_expr stack.
2990         (remove_expressions_from_table): Update to unwind to the
2991         most recent unwind marker in the global avail_expr stack.
2992         All callers changed.
2993         (dom_opt_finalize_block): Mark unwind point in the global
2994         avail_expr stack as needed.
2995         (record_cond): Push elements into the global avail_exprs stack.
2996
2997         * tree-dfa.c (free_df_for_stmt): No longer static.
2998         (free_df): Update comments.
2999         * tree-flow.h (free_df_for_stmt): Prototype.
3000         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
3001         call release_defs.
3002
3003 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
3004
3005         PR tree-optimization/17252
3006         * tree-ssa-alias.c (may_alias_p): Don't assume that a
3007         pointer may not point to itself when using relaxed
3008         aliasing rules.
3009
3010 2004-09-14  Richard Henderson  <rth@redhat.com>
3011
3012         PR middle-end/17397
3013         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
3014         while folding <ADDR_EXPR <INDIRECT_REF X>>.
3015
3016 2004-09-14  Andrew Pinski  <apinski@apple.com>
3017
3018         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
3019         sets of the pointers but the aliasing sets of what they point to.
3020
3021 2004-09-14  Roger Sayle  <roger@eyesopen.com>
3022
3023         PR rtl-optimization/9771
3024         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
3025         conditional compilation in init_reg_sets_1.
3026         (init_reg_sets_1): Let global_regs[i] take priority over the frame
3027         (but not stack) pointer exceptions to regs_invalidated_by_call.
3028         (globalize_reg): Globalizing a fixed register may need to update
3029         regs_invalidated_by_call.
3030
3031 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
3032
3033         PR tree-optimization/15262
3034         * tree-dfa.c (dump_variable): Also print the type of the
3035         variable.
3036         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
3037         memory tags are of conflicting alias sets but have no aliased
3038         symbols in common, add one tag to the alias set of the other.
3039         (setup_pointers_and_addressables): Remove hack to deal with
3040         programs with no aliased symbols.
3041         (may_alias_p): Don't special case aggregate types.
3042
3043 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
3044
3045         PR c/15498
3046         * doc/invoke.texi (Environment Variables): Correct example locale.
3047
3048 2004-09-14  Jan Hubicka  <jh@suse.cz>
3049
3050         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
3051
3052 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
3053
3054         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
3055
3056 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
3057
3058         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
3059         restrict_p.
3060         (struct c_declarator): Change u.array.quals and pointer_quals to
3061         int.  Add u.array.attrs.
3062         (quals_from_declspecs): New.
3063         * c-decl.c (quals_from_declspecs): New.
3064         (shadow_tag_warned): Give more specific message for useless type
3065         qualifiers.
3066         (build_array_declarator, set_array_declarator_inner,
3067         grokdeclarator, make_pointer_declarator, build_null_declspecs,
3068         declspecs_add_qual): Update for changed structures.
3069
3070 2004-09-14  Jeff Law  <law@redhat.com>
3071
3072         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
3073         to a global varray.
3074         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
3075         (dom_opt_initialize_block_local_data): No longer test state
3076         of stmts_to_rescan.
3077         (dom_opt_finalize_block): Update due to change in scope of
3078         stmts_to_rescan.
3079         (optimize_stmt): Similarly.
3080
3081 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
3082
3083         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
3084         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
3085         comment typos.  Follow spelling conventions.
3086
3087 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
3088
3089         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
3090         config/i386/predicates.md, config/sparc/sparc.c: Follow
3091         spelling conventions.
3092
3093 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3094             Steven Bosscher  <stevenb@suse.de>
3095
3096         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
3097         * basic-block.h (struct reorder_block_def): Add copy_number field.
3098         * cfgloop.h (biv_p): Declare.
3099         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
3100         * common.opt (fsplit-ivs-in-unroller): New flag.
3101         * loop-iv.c (biv_p): New function.
3102         * loop-unroll.c: Include hashtab.h and recog.h.
3103         (struct iv_to_split, struct split_ivs_info): New types.
3104         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
3105         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
3106         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
3107         insert_base_initialization, split_iv): New functions.
3108         (peel_loop_completely, unroll_loop_constant_iterations,
3109         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
3110         Use them.
3111         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
3112
3113 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3114
3115         * tree-cfg.c (thread_jumps): Update dominators correctly in
3116         case destination of threaded edge dominates its source.
3117
3118 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3119
3120         * unroll.c: Removed.
3121         * loop.h: Removed.
3122         * Makefile.in (LOOP_H, unroll.o): Removed.
3123         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
3124         dependency.
3125         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
3126         reference.
3127         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
3128         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
3129         * loop.c: Do not include loop.h.
3130         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
3131         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
3132         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
3133         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
3134         struct loop_regs, struct loop_movables, struct loop_info): Moved
3135         from loop.h.
3136         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
3137         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
3138         find_common_reg_term, loop_iterations, final_giv_value): Moved
3139         from unroll.c.
3140         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
3141         loop_dump_stream, for_each_insn_in_loop, express_from,
3142         extend_value_for_giv, loop_iv_add_mult_emit_before,
3143         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
3144         loop_insn_first_p, get_condition_for_loop,
3145         loop_insn_emit_before, loop_insn_hoist,
3146         loop_insn_sink): Made static.
3147         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
3148         reference.
3149         (strength_reduce): Do not call unroller.
3150         (record_giv): Do not initialize unrolled field.
3151         (prescan_loop): Do not set loop_info->preconditioned.
3152         * passes.c: Do not include loop.h.
3153         (rest_of_handle_loop_optimize): Do not call unroller.
3154         * predict.c: Do not include loop.h.
3155         * rtl.h (NOTE_PRECONDITIONED): Removed.
3156         * stmt.c: Do not include loop.h.
3157         * toplev.c: Do not include loop.h.
3158         (process_options): Do not handle flag_old_unroll_loops.
3159
3160         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
3161         Documentation removed.
3162         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
3163
3164 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
3165
3166         * Makefile.in (STAGE1_CHECKING): New variable.
3167         (stage1_build): Use it.
3168         * tree-ssa.c (verify_ssa): Preserve state of dominance
3169         information.
3170
3171 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
3172
3173         * config/i386/i386.c (output_fp_compare): Add generation
3174         of ftst instruction.
3175         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
3176         Use output_fp_compare () function.
3177         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
3178         (fix_truncdi_memory): Remove operands[5] copy.
3179
3180 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
3181
3182         * config/m32r/m32r.md, config/m68k/m68kelf.h,
3183         config/mcore/mcore.md, config/rs6000/linux64.h,
3184         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
3185         typos.
3186
3187 2004-09-13  James E Wilson  <wilson@specifixinc.com>
3188
3189         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
3190         * gen-protos.c: Include errors.h.
3191         (progname): Delete.
3192
3193 2004-09-14  Jan Hubicka  <jh@suse.cz>
3194
3195         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
3196         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
3197         (predict_loops): Use number_of_iterations_exit to predict
3198         number of iterations on trees.
3199
3200 2004-09-13  Dale Johannesen  <dalej@apple.com>
3201
3202         PR 17408
3203         PR 17409
3204         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
3205         objects declared extern.
3206
3207 2004-09-14  Paul Brook  <paul@codesourcery.com>
3208
3209         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
3210         HOST_WIDE_INT.
3211
3212 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
3213
3214         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
3215         Only use TYPE_BINFO for aggregates.
3216
3217 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
3218
3219         * expmed.c (synth_mult): Initialize latency.  Check cost before
3220         checking ops count.
3221
3222 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
3223
3224         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
3225         add_call_clobber_ops and add_call_read_ops.
3226         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
3227         the number of vdefs and vuses inserted based on analysis of global
3228         variables across calls.  * tree-dfa.c (find_referenced_vars):
3229         Needed to reset static var maps before each function is compiled.
3230         * cgraphunit.c:
3231         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
3232         static_vars_info,functions_to_static_vars_info,module_statics_escape,
3233         all_module_statics,searchc_env,dfs_info): New fields to support
3234         analysis of static global variables.
3235         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
3236         cgraph_reset_static_var_maps, get_global_static_vars_info,
3237         get_global_statics_not_read, get_global_statics_not_written,
3238         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
3239         check_rhs_var, check_lhs_var, get_asm_expr_operands,
3240         process_call_for_static_vars, scan_for_static_refs,
3241         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
3242         clear_static_vars_maps, cgraph_propagate_bits,
3243         cgraph_characterize_statics): New. Functions to support analysis
3244         of static global variables.
3245         (cgraph_mark_local_and_external_functions): Renamed from:
3246         (cgraph_mark_local_functions)
3247         (cgraph_expand_all_functions): Remove call to
3248         cgraph_mark_local_and_external_functions.
3249         (cgraph_optimize): Added driver to analyze static variables whose
3250         scope is within the compilation unit.  * cgraph.h (struct
3251         cgraph_local_info, GTY): Added statics_read, statics_written,
3252         local, calls_read_all, calls_write_all, for_functions_valid.
3253         (struct cgraph_node): Added next_cycle.  * cgraph.c
3254         (dump_cgraph_node): Added print routines for new fields.  *
3255         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
3256         list.
3257
3258 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
3259
3260         * c-decl.c (grokdeclarator): Correct comments about where storage
3261         class specifiers are rejected by grammar and add corresponding
3262         asserts.  Diagnose typedefs and parameters declared inline.
3263         Change warning for inline main to a pedwarn.  Only diagnose inline
3264         main if hosted.
3265         (declspecs_add_scspec): Allow duplicate "inline".
3266
3267 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
3268
3269         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
3270         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
3271
3272 2004-09-13  Richard Henderson  <rth@redhat.com>
3273
3274         PR 17436
3275         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
3276         (tree_type): Replace spare with contains_placeholder_bits.
3277         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
3278         make static.  Remove seen_types list.
3279         (type_contains_placeholder_p): New.
3280
3281 2004-09-13  James E Wilson  <wilson@specifixinc.com>
3282
3283         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
3284         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
3285         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
3286         bdesc_arrays instead of mips_bdesc.
3287         (mips_init_builtins): Likewise.
3288         * config/mips/mips.h (TARGET_SB1): New.
3289         (HAVE_SQRT_P): Delete.
3290         * config/mips/mips.md (divide_condition): Support V2SF.
3291         (sqrt_condition, recip_condition): New.
3292         (div<mode>3): Use ANYF instead of SCALARF.
3293         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
3294         MODE.
3295         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
3296         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
3297         instead of MODE.
3298         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
3299         instead of SCALARF.  Use UNITMODE instead of MODE.
3300
3301 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
3302
3303         * config.in: Regenerate after removal of libbanshee.
3304
3305 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
3306
3307         PR tree-optimization/17400
3308         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
3309         coalesce partitions when one occurs in an abnormal PHI.
3310
3311 2004-09-13  Andrew Pinski  <apinski@apple.com>
3312
3313         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
3314         name to _new_size.
3315
3316 2004-09-13  Richard Henderson  <rth@redhat.com>
3317
3318         PR inline-asm/6806
3319         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
3320         (cselib_invalidate_rtx_note_stores): New.
3321         (cselib_record_sets, cselib_process_insn): Update to match.
3322         * cselib.h (cselib_invalidate_rtx): Declare.
3323         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
3324
3325 2004-09-13  Richard Henderson  <rth@redhat.com>
3326
3327         PR tree-opt/10528
3328         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
3329         after copying its argument.
3330
3331 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
3332
3333         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
3334         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
3335         in diagnostics.  Use %' for English apostrophes.
3336         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
3337         (pedwarn_c90, pedwarn_c99): Use it.
3338         * c-decl.c (lookup_label): Quote label name in diagnostic.
3339         * c-parse.in (yyprint): Use ' instead of ` for left quote.
3340         * c-typeck.c (warn_for_assignment): Likewise.
3341
3342 2004-09-13  Jan Hubicka  <jh@suse.cz>
3343
3344         * i386.c (x86_schedule): New global variable.
3345         (override_options): Disable scheduling when not supported.
3346         * i386.h (x86_schedule): Declare.
3347         (TARGET_SCHEDULE): New macro.
3348
3349 2004-09-12  Richard Henderson  <rth@redhat.com>
3350
3351         PR c++/16254
3352         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
3353         * tree.c, tree.h (has_cleanups): Remove.
3354
3355 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3356
3357         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
3358         arguments of the phi nodes correctly.
3359
3360 2004-09-12  Jan Hubicka  <jh@suse.cz>
3361
3362         * ggc-common.c (cmp_statistics): Fix sorting.
3363
3364 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
3365
3366         PR target/16795
3367         * expmed.c (expand_divmod): If cheap power of 2 divide is
3368         available, use it for negative constant as well.
3369
3370 2004-09-12  Andrew Pinski  <apinski@apple.com>
3371
3372         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
3373         size of 0.
3374
3375         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
3376
3377 2004-09-12  Richard Henderson  <rth@redhat.com>
3378
3379         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
3380         or minus one.
3381         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
3382         post-reload, and scratch NULL.
3383         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
3384         (x86_shift_adj_2): Use ix86_expand_clear.
3385         (ashldi3): Remove CMOVE expansion difference.
3386         (ashldi3_1): Remove.
3387         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
3388         add constraints for immediates.  New peephole for split-with-temp.
3389         Run splitter after peep2 pass.
3390         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
3391         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
3392         (setcc_2): Rename with *.
3393         * config/i386/predicates.md (reg_or_pm1_operand): New.
3394         (ashldi_input_operand): New.
3395
3396 2004-09-12  Richard Henderson  <rth@redhat.com
3397
3398         * print-rtl.c (print_decl_name): New.
3399         (print_mem_expr): Use it.
3400
3401 2004-09-12  Richard Henderson  <rth@redhat.com
3402
3403         PR 17186, part deux
3404         * except.c (sjlj_emit_function_exit): Fix logic locating
3405         sjlj_exit_after in final block.
3406
3407 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
3408
3409         * common.opt: Remove flags -fmove-all-movables and
3410         -freduce-all-givs.
3411         * loop-invariant.c (find_invariants_to_move):
3412         Remove all uses of flag_move_all_movables.
3413         * loop.c (move_movables): Remove all uses of
3414         flag_move_all_movables.
3415         (strength_reduce): Remove all uses of
3416         flag_reduce_all_givs.
3417         * doc/invoke.texi: Remove documentation of flags
3418         -fremove-all-movables and -freduce-all-givs.
3419
3420 2004-09-11  Roger Sayle  <roger@eyesopen.com>
3421
3422         PR middle-end/17411
3423         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
3424         change. elt->type may be a floating point type, so use fold_convert.
3425
3426 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
3427
3428         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
3429         the thing referenced as used, not the stub itself.
3430
3431 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
3432
3433         * c-tree.h (enum c_storage_class): New.
3434         (struct c_declspecs): Add storage_class, inline_p and thread_p.
3435         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
3436         declarations and "auto" or "register" in file scope empty
3437         declarations.  Give more specific warnings for other cases of
3438         storage class specifiers in empty declarations.