OSDN Git Service

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