OSDN Git Service

17a5627ca44136afccecd197087d1cee3a17c10b
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2
3         * reload1.c (reloads_conflict, gen_reload): Make them static.
4         * reload.h: Remove the corresponding prototypes.
5
6 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
7
8         * reload.c (refers_to_mem_for_reload_p,
9         refers_to_regno_for_reload_p): Make them static.
10         * reload.h: Remove the corresponding prototypes.
11
12 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
13             Eric Botcazou  <ebotcazou@libertysurf.fr>
14
15         PR target/18230
16         * doc/md.texi (SPARC constraints): Document 'Y' constraint.
17         * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
18         * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
19         (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
20         (fp_zero_operand): Accept MODE_VECTOR_INT modes.
21         (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
22         (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
23         (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
24         MODE_VECTOR_INT modes.
25         (sparc_extra_constraint_check): Add new constraint 'Y'.
26         * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
27         * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
28         (V64): New mode macro for 64-bit modes.
29         (movsf): Use V32 for mode instead of SF.
30         (movsf_insn_vis): Use V32 for mode instead of SF.  Add 'Y' constraint
31         alongside 'G' constraint.
32         (movdf): Use V64 for mode instead of DF.
33         (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
34         of DF.  Add 'Y' constraint alongside 'G' constraint.
35         (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
36         instead of DF.
37
38 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
39
40         * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
41         integer NEG and ABS.
42         * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
43         ("*negdi2_31"): Reimplement using a splitter.
44         ("*negdi2_cc", "*negdi2_cconly"): New insns.
45         ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
46         ("*negsi2_cc", "*negsi2_cconly"): Likewise.
47         ("*negdf2_cc", "*negdf2_cconly"): Likewise.
48         ("*negsf2_cc", "*negsf2_cconly"): Likewise.
49         ("*absdi2_cc", "*absdi2_cconly"): New insns.
50         ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
51         ("*abssi2_cc", "*abssi2_cconly"): Likewise.
52         ("*absdf2_cc", "*absdf2_cconly"): Likewise.
53         ("*abssf2_cc", "*abssf2_cconly"): Likewise.
54         ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
55         ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
56         ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
57         ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
58         ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
59
60 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
61
62         * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
63         when eliminating an UNSPEC_CMPINT.
64         (s390_secondary_input_reload_class): Fix test for CC register reload.
65         (s390_secondary_output_reload_class): Likewise.
66         (s390_expand_cmpmem): Swap operands.  Use gen_cmpint. 
67         * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
68         ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
69         insn patterns with splitters.
70
71 2004-11-09  David Edelsohn  <edelsohn@gnu.org>
72
73         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
74         * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
75
76 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
77
78         * tree-phinodes.c (phi_reverse): New.
79         * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
80         Use it.
81         * tree-flow.h: Add a prototype for phi_reverse.
82
83 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
84
85         * tree-ssa-loop-ivopts.c: Fix a comment typo.
86
87 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
88
89         PR pch/14940
90         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
91         definitions.
92
93 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
94
95         * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
96         instead of "arg" in diagnostics.
97
98 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
99
100         * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
101         c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
102         gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
103         tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
104         config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
105         config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
106         config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
107         config/iq2000/iq2000.c, config/m32r/m32r.c,
108         config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
109         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
110         config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
111         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
112         config/sh/symbian.c, config/stormy16/stormy16.c,
113         config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
114         and %> as appropriate.  Use %' as apostrophe in diagnostics where
115         applicable.  Use %< and %> in place of '' quotes where applicable.
116         Use %qs in place of %<%s%>.  Consistently quote __builtin function
117         names.
118
119 2004-11-09  Hans-Peter Nilsson  <hp@bitrange.com>
120
121         * gdbinit.in (pbb, pbm): New macros.
122
123 2004-11-08 Jeff Law  <law@redhat.com>
124
125         * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
126         implementing it inline.
127
128         * cfganal.c (find_edge): Search pred->succs or succ->preds,
129         whichever is shorter.
130
131 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
132
133         * passes.c (rest_of_handle_jump): Remove dead code.
134
135 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
136
137         * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
138         the last used element in the worklist.
139
140 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
141
142         * tree-inline.c (remap_save_expr): Make it static.
143         * tree-inline.h: Remove the corresponding prototype.
144
145 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
146
147         * tree-ssa-loop-niter.c (upper_bound_in_type,
148         lower_bound_in_type): Make them static.
149         * tree.h: Remove the corresponding prototypes.
150
151 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
152
153         * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
154         static.
155         * tree-ssa-live.h: Remove the corresponding prototypes.
156
157 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
158
159         * tree-if-conv.c (tree_if_conversion): Make it static.
160         * tree-flow.h: Remove the corresponding prototype.
161
162 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
163
164         * tree-ssa-operands.c (build_ssa_operands): Make it static.
165         * tree-flow.h: Remove the corresponding prototype.
166
167 2004-11-08  Andrew Pinski  <pinskia@physics.uc.edu>
168
169         PR tree-opt/18299
170         * tree-inline.c (copy_body_r): Change "t = t" to empty
171         statement instead of "t".
172
173 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
174
175         * modulo-sched.c (create_partial_schedule,
176         free_partial_schedule, reset_partial_schedule,
177         ps_add_node_check_conflicts, rotate_partial_schedule): Make
178         them static.
179
180 2004-11-08  Richard Henderson  <rth@redhat.com>
181
182         * expmed.c (extract_force_align_mem_bit_field): Correct handling at
183         the end of a page.
184
185 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
186
187         * sched-deps.c (add_insn_mem_dependence): Make it static.
188         * sched-int.h: Remove the corresponding prototypes.
189
190 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
191
192         * flow.c (allocate_bb_life_data): Make it static.
193         * basic-block.h: Remove the corresponding prototype.
194
195 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
196
197         * calls.c (split_complex_values, split_complex_types): Make
198         them static.
199         * expr.h: Remove the corresponding prototypes.
200
201 2004-11-08  Richard Earnshaw  <rearnsha@arm.com>
202
203         * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
204         with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
205
206 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
207
208         * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
209         statements that always trigger.
210
211 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
212
213         * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
214         tree-scalar-evolution.c, tree-ssa-loop-im.c,
215         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
216         tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
217         appropriate.
218
219 2004-11-08  Ben Elliston  <bje@au.ibm.com>
220
221         * cgraph.h (cgraph_calls_p): Remove.
222         * cgraph.c (cgraph_calls_p): Likewise.
223
224         * varray.h (varray_copy): Remove.
225         * varray.c (varray_copy): Likewise.
226
227 2004-11-07  Andrew Pinski  <pinskia@physics.uc.edu>
228
229         PR target/18269
230         * config/darwin.c (machopic_indirect_data_reference):
231         Call gen_macho_high and gen_macho_low instead of
232         checking the mode and calling gen_macho_high_di directly.
233         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
234         * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
235         to darwin.md.
236         (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
237         load_macho_picbase, macho_low, macho_high): Removed.
238         (builtin_setjmp_receiver): Call gen_macho_high and
239         gen_macho_low instead of checking the mode and calling
240         gen_macho_high_di directly.
241         * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
242         (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
243         Moved from rs6000.md.
244         (macho_high): New expander.
245         (macho_high_si): Renamed version of macho_high from rs6000.md.
246         (macho_low): New expander.
247         (macho_low_si): Renamed version of macho_low from rs6000.md.
248         (load_macho_picbase): New expander.
249         (load_macho_picbase_si): Renamed version of load_macho_picbase
250         from rs6000.md.
251         (macho_correct_pic): New expander.
252         (macho_correct_pic_si): Renamed version of macho_correct_pic
253         from rs6000.md.
254
255 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
256
257         * c-decl.c (finish_struct): Use complete sentences for diagnostic
258         for structures or unions with no members or named members.
259
260 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
261
262         * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
263         taking address of bit-field by assertion.
264
265 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
266
267         * config/s390/s390.md (attribute "op_type"): Default to "NN".
268         (attribute "atype"): Default to "agen".
269         (attribute "length"): Default to 6.
270         (define_asm_attibutes): Remove.
271         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
272         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
273         "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
274         Do not set type attribute to "cs" where already default.
275         ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
276         "*negdi2_31"):
277         Do not set type attribute to "other" where already default.
278         ("movti", "*movdi_64", "*movdi_31", "*movdf_31", 
279         "*strlendi", "*strlensi",
280         "*movmem_long_64", "*movmem_long_31",
281         "*clrmem_long_64", "*clrmem_long_31",
282         "*cmpmem_long_64", "*cmpmem_long_31",
283         "*cmpint_si", "*cmpint_di", 
284         "addti3", "*adddi3_31z", "*adddi3_31", 
285         "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
286         "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
287         "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
288         "*pool_entry", "pool_align", "pool_section_start",
289         "pool_section_end", "main_pool", "reload_base_31", "pool"):
290         Do not set op_type attribute to "NN" where already default.
291         ("*extractqi", "*extracthi", "*zero_extendhisi2_31", 
292         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
293         "fix_truncdfsi2_ibm", "floatsidf2_ibm"): 
294         Do not set atype attribute to "agen" where already default.
295         ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
296
297 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
298
299         * config/mips/t-iris6 (tp-bit.c): Fix target filename.
300
301 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
302
303         PR target/16830
304         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
305         R3000 and R4000 macros on IRIX.
306
307 2004-11-06  Andreas Schwab  <schwab@suse.de>
308
309         PR target/16286
310         * config/rs6000/altivec.h: Replace bool by __bool and pixel by
311         __pixel.
312
313 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
314
315         * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
316
317 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
318
319         * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
320         matches no insns already matched by other reservations.
321         * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
322         matches no insns already matched by other reservations.
323         ("x_ss"): Remove, replace by ...
324         ("x_cs"): ... this new reservation.  Check type instead of op_type.
325         Update bypasses to use x_cs instead of x_ss.
326         ("x_nn"): Remove, replace by ...
327         ("x_other"): ... this new reservation.  Check type instead of op_type.
328         Add x_other and x_branch to bypasses.
329         ("x_vs"): New reservation.
330         * config/s390/s390.md (attribute "type"): Default according to op_type.
331         ("*execute"): Set type to "cs".
332
333 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
334
335         * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
336         if we are in GIMPLE.
337
338 2004-11-06  Hans-Peter Nilsson  <hp@bitrange.com>
339
340         PR rtl-optimization/17933
341         * rtlanal.c (dead_or_set_regno_p): Break out common code to...
342         (covers_regno_p): New function.  Handle SETs of PARALLEL,
343         and defer the rest to...
344         (covers_regno_no_parallel_p): New function.
345
346 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
347
348         * config/sparc/sparc.c (function_arg_record_value_1): Skip
349         fields with zero length.
350         (function_arg_record_value_2): Likewise.
351         (function_arg_record_value_3): Use smallest_mode_for_size
352         instead of mode_for_size.
353         (function_arg_union_value): Return naked register for unions
354         with zero length.
355
356 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
357
358         * config/sparc/sparc.c (scan_record_type): Handle vector types.
359         (function_arg_slotno): Handle vector types specially.
360         (function_arg_record_value_1): Split fields with vector type and
361         BLKmode into their subparts.
362         (function_arg_record_value_2): Likewise.  Be prepared to handle
363         more than 2 registers per field.
364         (function_arg_union_value): Increment regno inside the loop.
365         (function_arg_vector_value): New function.
366         (function_arg): Use it to split fields with vector type and
367         BLKmode into their subparts and build a PARALLEL.  Treat
368         other vector types like floats.
369         (function_value): Likewise.
370         (sparc_pass_by_reference): Handle vector types.
371         (sparc_return_in_memory): Likewise.
372
373 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
374
375         * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
376         statement that never triggers.
377
378 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
379
380         * config/s390/2064.md ("z_o2", "z_o3"): Remove.
381         * config/s390/2084.md ("x_o2", "x_o3"): Remove.
382         ("x_fdivd"): Use also for fsqrtd type.
383         ("x_fdivs"): Use also for fsqrts type.
384         * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
385         ("fix_truncdfsi2_ieee"): Set type to "ftoi".
386         ("fix_truncdfsi2_ibm"): Set type to "other".
387         ("floatdidf2", "floatdisf2"): Do not clobber CC.
388         ("floatsidf2", "floatsidf2_ieee"): Likewise.
389         ("floatsisf2", "floatsisf2_ieee"): Likewise.
390         ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
391         ("truncdfsf2_ibm"): Only allow "nonimmediate_operand".  Use LER
392         instead of LRER. 
393         ("extendsfdf2_ibm"): Do not set atype.  Set type to "floads".
394         ("sqrtdf2"): Set type to "fsqrtd".
395         ("sqrtsf2"): Set type to "fsqrts".
396
397 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
398
399         * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
400         pointer to the last PHI node in the new PHI chain.
401
402 2004-11-06  Kaz Kojima  <kkojima@gcc.gnu.org>
403
404         * config/sh/sh.c (prepare_move_operands): Emit a use of r12
405         for non-PIC TLS_MODEL_INITIAL_EXEC case.
406
407 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
408
409         * expmed.c: Fix a comment typo.
410
411 2004-11-06  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
412
413         PR target/18106
414         * config/i386/cygming.h
415         [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
416
417 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
418
419         * config/sh/sh4a.md: Fix copyright.
420
421 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
422
423         * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
424         with GCC.
425
426 2004-11-05  David Edelsohn  <edelsohn@gnu.org>
427
428         * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
429         when carry not used.  Suggested by Torbjorn Granlund.
430
431         * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
432         operand[1] unnecessarily.  Suggested by Eric Christopher.
433         (rs6000_adjust_cost): Increase latency of store to wider load.
434         (rs6000_rtx_costs): mulli only allows 16-bit constants.
435
436 2004-11-05  Stan Shebs  <shebs@apple.com>
437
438         * config/rs6000/rs6000.c (machopic_output_stub): Output
439         ldu instead of lwzu for 64-bit stubs.
440
441 2004-11-05  Richard Henderson  <rth@redhat.com>
442
443         * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
444         size 2 with BWX.
445         (alpha_expand_unaligned_store): Likewise.
446
447 2004-11-05  Richard Henderson  <rth@redhat.com>
448
449         * expmed.c (extract_force_align_mem_bit_field): New.
450         (extract_split_bit_field): Call it.
451
452 2004-11-05  Richard Henderson  <rth@redhat.com>
453
454         * ia64.md (UNSPEC_SHRP): New.
455         (dshift_count_operand): New.
456         (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
457         * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
458
459 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
460
461         * c-typeck.c (output_init_element): Return early if value is
462         error_mark_node.
463
464 2004-11-05  James E Wilson  <wilson@specifixinc.com>
465
466         * invoke.texi (-fno-guess-branch-probability): Rewrite.
467
468         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
469         1 to UNSPEC_GR_SPILL.
470
471 2004-11-05  Andreas Krebbel  <krebbel1@de.ibm.com>
472
473         * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
474         (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
475
476 2004-11-05  Nathan Sidwell  <nathan@codesourcery.com>
477
478         * bitmap.h (enum bitmap_bits): Remove.
479         (bitmap_operation): Remove.
480         (bitmap_and, bitmap_and_into, bitmap_and_compl,
481         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
482         bitmap_xor_into): Prototype.
483         * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
484         (bitmap_operation): Remove.
485         (bitmap_and, bitmap_and_into, bitmap_and_compl,
486         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
487         bitmap_xor_into): New.
488         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
489
490         PR tree-optimization/18307
491         * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
492         and ORIG being the same node.
493
494 2004-11-04  Geoffrey Keating  <geoffk@apple.com>
495
496         * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
497         (install-mkheaders): Install the version built for the
498         host, not for the build machine.
499         * configure.ac: Always run fixincludes.
500         (all_outputs): Remove mkheaders.
501         * configure: Regenerate.
502         * fixinc.in: Move to fixincludes/.
503         * mkfixinc.sh: Likewise.
504         * mkheaders.in: Likewise.
505         * README-fixinc: Likewise.
506
507 2004-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
508
509         PR target/18263
510         * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
511         equivalent on the A4.
512
513 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
514
515         * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
516         doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
517         doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
518         doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
519         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
520         doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
521         doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
522         doc/trouble.texi: Correct end-of-sentence markup and markup of
523         "etc.", "e.g." and "i.e.".  Use @code in various places where
524         appropriate.
525
526 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
527
528         * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
529         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
530         doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
531         whitespace.
532
533 2004-11-04  Mark Mitchell  <mark@codesourcery.com>
534
535         * config/arm/arm.c (arm_handle_notshared_attribute): New function.
536         * doc/extend.texi: Document "notshared" attribute.
537         
538 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
539
540         * tree-phinodes.c (make_phi_node): Make it static.
541         * tree.h: Remove the prototypes for make_phi_node.
542
543 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
544
545         * stmt.c (expand_asm, expand_asm_operands): Make them static.
546         * tree.h: Remove the prototypes for expand_asm and
547         expand_asm_operands.
548
549 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
550
551         * passes.c (rest_of_compilation): Make it static.
552         * toplev.h: Remove the prototype for rest_of_compilation.
553
554 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
555
556         * jump.c (cleanup_barriers): Use delete_insn instead of
557         delete_barrier.
558         (delete_barrier): Remove.
559         * rtl.h: Remove the corresponding prototype.
560
561 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
562
563         * expr.c (mostly_zero_p): Make it static.
564         * tree.h: Remove the prototype for mostly_zeros_p.
565
566 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
567
568         * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
569
570 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
571
572         * builtins.c (expand_builtin_return_addr,
573         expand_builtin_longjmp, expand_builtin_trap): Make them static.
574         * expr.h: Remove the prototypes for expand_builtin_longjmp and
575         expand_builtin_trap.
576         * tree.h: Remove the prototype for expand_builtin_return_addr.
577
578 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
579
580         * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
581         * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
582         with VAL being NULL.
583
584 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
585
586         * cfghooks.c (delete_basic_block): Remove code to truncate
587         edge vectors.
588
589 2004-11-04  Andrew Pinski  <pinskia@physics.uc.edu>
590
591         * flow.c (init_propagate_block_info): Change the type of i to 
592         unsigned.
593
594 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
595
596         PR tree-optimization/18184
597         * c-typeck.c (comptypes): Do not treat pointers of different
598         modes or alias-all flags as equivalent.
599         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
600
601 2004-11-04  Joseph S. Myers  <joseph@codesourcery.com>
602
603         * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
604         reference specific C parser files in examples.
605
606 2004-11-04  Richard Sandiford  <rsandifo@redhat.com>
607
608         PR target/15342
609         * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
610         as OP_INOUT if the instruction is predicated.
611
612 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
613
614         * bitmap.h: Fix a comment typo.  Follow spelling conventions.
615         * tree-vectorizer.c: Fix a comment typo.
616
617 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
618
619         * sdbout.c (SDB_GENERATE_FAKE): Remove.
620         (gen_fake_label): Don't use SDB_GENERATE_FAKE.
621         * system.h: Poison SDB_GENERATE_FAKE.
622         * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
623
624 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
625
626         * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
627
628 2004-11-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
629
630         PR other/18277
631         * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
632         2004-10-29 patch
633
634 2004-11-04  Nathan Sidwell  <nathan@codesourcery.com>
635
636         * predict.c (propagate_freq): Make bitno unsigned. Move
637         npredecessors update out of loop.
638
639         * bitmap.h (bitmap_iterator): Remove word_bit and bit
640         fields. Rename others.
641         (bmp_iter_common_next_1, bmp_iter_single_next_1,
642         bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
643         bmp_iter_and_not_next_1, bmp_iter_and_not_init,
644         bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
645         bmp_iter_and_next): Remove.
646         (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
647         bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
648         New.
649         (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
650         EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
651
652         * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
653         * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
654         bitmap_and_into, bitmap_ior_into as appropriate.
655         * except.c (remove_eh_handler): Likewise.
656         * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
657         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
658         * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
659         * tree-ssa-live.h (live_merge_and_clear): Likewise.
660         * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
661         Likewise.
662
663         * bitmap.c (bitmap_print): Make bitno unsigned.
664         * bt-load.c (clear_btr_from_live_range,
665         btr_def_live_range): Likewise.
666         * caller-save.c (save_call_clobbered_regs): Likewise.
667         * cfganal.c (compute_dominance_frontiers_1): Likewise.
668         * cfgcleanup.c (thread_jump): Likewise.
669         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
670         * conflict.c (conflict_graph_compute): Likewise.
671         * ddg.c (add_deps_for_use): Likewise.
672         * df.c (df_refs_update): Likewise.
673         * except.c (remove_eh_handler): Likewise.
674         * flow.c (verify_local_live_at_start, update_life_info,
675         initialize_uninitialized_subregs, propagate_one_insn,
676         free_propagate_block_info, propagate_block, find_use_as_address,
677         reg_set_to_hard_reg_set): Likewise.
678         * gcse.c (clear_modify_mem_tables): Likewise.
679         * global.c (global_conflicts, build_insn_chain): Likewise.
680         * ifcvt.c (dead_or_predicable): Likewise.
681         * local-alloc.c (update_equiv_regs): Likewise.
682         * loop.c (load_mems): Likewise.
683         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
684         Likewise.
685         * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
686         Likewise.
687         * reload1.c (order_regs_for_reload, finish_spills): Likewise.
688         * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
689         * sched-rgn.c (propagate_deps
690         * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
691         * tree-dfa.c (dump_dfa_stats
692         tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
693         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
694         Likewise.
695         * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
696         free_temp_expr_table, find_replaceable_exprs): Likewise.
697         * tree-sra.c (scan_function, scalarize_parms): Likewise.
698         * tree-ssa-alias.c (init_alias_info,
699         compute_points_to_and_addr_escape,
700         compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
701         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
702         * tree-ssa-live.c (new_tree_live_info, live_worklist,
703         calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
704         sort_coalesce_list, build_tree_conflict_graph, dump_live_info
705         tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
706         tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
707         add_call_read_ops): Likewise.
708         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
709         * tree-ssa-live.h (num_var_partitions): Return unsigned.
710
711 2004-11-03  Dorit Naishlos  <dorit@il.ibm.com>
712
713         PR tree-optimization/18009
714         * tree-vectorizer.h (enum dr_alignment_support): New type.
715         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
716         (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
717         single data_reference (instead of a varray of references).
718         * tree-vectorizer.c (new_loop_vec_info): Likewise.
719         (vect_gen_niters_for_prolog_loop): Likewise.
720         (vect_update_inits_of_drs): Likewise.
721
722         (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
723         vect_enhance_data_refs_alignment.
724         (vect_do_peeling_for_alignment): Likewise.
725         (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
726         this functionality used to be in vect_analyze_data_refs_alignment.
727         Also update DR_MISALIGNMENT due to peeling; this functionality used to
728         be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
729         (vect_analyze_data_refs_alignment): Decision on whether and by how much
730         to peel moved to vect_enhance_data_refs_alignment. Call 
731         vect_supportable_dr_alignment.
732
733         (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
734         (vect_compute_data_refs_alignment): Return bool. Consider return value
735         of vect_compute_data_ref_alignment and return true/false accordingly.
736         (vect_enhance_data_refs_alignment): Consider return value of 
737         vect_compute_data_refs_alignment and return true/false accordingly.
738
739         (vect_supportable_dr_alignment): New function.
740         (vectorizable_store): Call vect_supportable_dr_alignment.
741         (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
742         support checks moved from here to vect_supportable_dr_alignment.
743
744         (vect_transform_loop): Avoid 80 columns overflow.
745
746 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
747
748         * timevar.c (timevar_enable): Change from
749         static.
750         (timevar_push): Rename to ...
751         (timevar_push_1): this and remove the
752         enabled check.
753         (timevar_pop): Rename to ...
754         (timevar_pop_1): this and remove the
755         enabled check.
756         * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
757         (timevar_pop): New macro.
758         (timevar_push): New macro.
759         (timevar_enable): Declare.
760
761 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
762
763         * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
764         libgcc for shared libraries.
765
766 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
767
768         * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
769         * config/s390/s390.c (s390_split_access_reg): New function.
770         (regclass_map): Add access registers.
771         (get_thread_pointer): Use access register instead of UNSPEC_TP.
772         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
773         (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
774         (TP_REGNUM): New define.
775         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
776         REG_ALLOC_ORDER): Add access registers.
777         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
778         CANNOT_CHANGE_MODE_CLASS): Support access registers.
779         (enum reg_class): Add ACCESS_REGS.
780         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
781         (REG_CLASS_FROM_LETTER): Add 't' constraint.
782         (REGISTER_NAMES): Add access registers.
783         * config/s390/s390.md (UNSPEC_TP): Remove.
784         ("*movdi_64"): Add access register alternatives.  Provide splitters
785         to split DImode access register <-> GPR moves into SImode moves.
786         ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
787         ("movstrictsi"): Likewise.
788         ("get_tp_64", "get_tp_31"): Reimplement using access registers.
789         ("set_tp_64", "set_tp_31"): Likewise.
790         ("*set_tp"): New insn.
791
792 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
793
794         * tree-phinodes.c (resize_phi_node): Copy only a portion of
795         the PHI node currently in use.
796
797 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
798
799         PR tree-opt/18231
800         * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
801         also.
802
803 2004-11-03  Andrew MacLeod  <amacleod@redhat.com>
804
805         PR tree-optimization/18270
806         * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
807         abnormal edges, commit all pending stmts on incoming edges.
808
809 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
810
811         * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
812         cause extra costs.  Generate canonical RTL.
813
814 2004-11-02  Daniel Berlin  <dberlin@dberlin.org>
815
816         * lambda-code.c (lambda_compute_auxillary_space): Update comments.
817         (lambda_compute_target_space). Ditto.
818         * lambda.h (lambda_trans_matrix): Ditto.
819         (lambda_linear_expression): Ditto.
820         (lambda_body_vector): Ditto.
821         (lambda_loopnest): Ditto.
822         * tree-loop-linear.c (gather_interchange_stats): Combine tests,
823         update comments, and remove pointless addition of 0.
824         (linear_transform_loops): Update comments.
825
826 2004-11-03  Sebastian Pop  <pop@cri.ensmp.fr>
827
828         * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
829         CEIL_MOD_EXPR.
830
831 2004-11-03 Jeff Law  <law@redhat.com>
832
833         * predict.c (struct block_info_def): Kill "tovisit" field.
834         (propagate_freq): Accept new "tovisit" parameter.  Change
835         read/write access methods for "tovisit" to check the "tovisit"
836         bitmap instead of a bit in block_info_def.
837         (estimate_loops_at_level): Allocate "tovisit" bitmap.  Pass
838         it to propagate_freq.
839
840         * stmt.c (expand_case): Speed up code to detect duplicate case
841         label targets and count unique case label targets.
842
843 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
844
845         * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
846
847 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
848
849         * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
850
851 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
852
853         * tree-cfg.c (find_taken_edge): Abort if we are given a
854         statement that is neither COND_EXPR nor SWITCH_EXPR.
855
856 2004-11-02  Zdenek Dvorak  <dvorakz@suse.cz>
857
858         * fold-const.c (fold): Reassociate also (x - mult) + mult and
859         (mult - x) + mult.  Cast operands of expression after applying
860         distributive law to the correct types.  Apply distributive law
861         to a * c - b * c for all non-float types.
862
863 2004-11-02  Geoffrey Keating  <geoffk@apple.com>
864
865         * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
866         because we don't want to run them now; instead, set them to
867         stmp-install-fixproto or stmp-install-fixinc.
868         * Makefile.in (stmp-install-fixproto): New.
869         (stmp-install-fixinc): New.
870         * configure: Regenerate.
871
872 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
873
874         * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
875         of bitmap_xor.
876
877 2004-11-02  Ziemowit Laski  <zlaski@apple.com>
878
879         * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
880         (c_types_compatible_p): Move function definition...
881         * c-objc-common.c (c_types_compatible_p): ...here.
882         * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
883         c-lang.c.
884
885 2004-11-02  Steven Bosscher  <stevenb@suse.de>
886
887         * cfgloop.h (struct loop): Update comment.
888         * cse.c (cse_main): Remove obsolete comment.
889
890         * expr.h (gen_cond_trap): Move prototype under functions provided
891         by optabs.c.
892         (canonicalize_condition, get_condition): Move to...
893         * rtl.h (canonicalize_condition, get_condition): ...here.
894         (branch_target_load_optimize): Add comment that this function is
895         in bt-load.c.
896         * loop.c (canonicalize_condition, get_condition): Move to...
897         * rtlanal.c (canonicalize_condition, get_condition): ...here.
898         * sched-deps.c (get_condition): Rename to sched_get_condition.
899         (add_dependence): Update this caller.
900  
901 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
902
903         PR tree-opt/16808
904         * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
905         that the vops get marked for renaming.
906
907 2004-11-02  Andreas Krebbel  <krebbel1@de.ibm.com>
908
909         * config/s390/s390.md ("movcc"): Set type attribute.
910
911 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
912
913         * tree-phinodes.c (add_phi_arg): Add an assertion that the
914         edge already exists.
915
916 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
917
918         * tree-phinodes.c (remove_phi_arg_num): Do not zero the
919         element that's being removed.
920
921 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
922
923         * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
924         arguments using PENDING_STMT.
925         (thread_block): Call copy_phis_to_block after redirecting an
926         edge.
927
928 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
929
930         * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
931         bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
932         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
933         (bitmap_ior_and_compl_into): Produce bool.
934         (bitmap_union_of_diff): Rename to ...
935         (bitmap_ior_and_compl): ... here. Produce bool.
936         * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
937         bitmap_operation directly.
938         (bitmap_union_of_diff): Rename to ...
939         (bitmap_ior_and_compl): ... here. Return bool, use
940         bitmap_operation directly.
941         * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
942         (df_ru_transfer_function, df_lr_transfer_function): Likewise.
943         * global.c (modify_bb_reg_pav): Likewise.
944
945         * bitmap.h (bitmap_equal_p): Return bool.
946         (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
947         * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
948         (bitmap_intersect_p, bitmap_intersect_compl_p): New.
949         * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
950         bitmap_intersect_compl_p.
951         * ifcvt (dead_or_predicable): Likewise.
952
953 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
954
955         PR rtl-optimization/17104
956         * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
957         loads in zero_extend.
958
959 2004-11-02  Danny Smith  <dannysmith@users.sourceforge.net>
960
961         PR debug/18242
962         * toplev.c (debug_type_names): Remove "dwarf-1".
963
964 2004-11-02  Ben Elliston  <bje@au.ibm.com>
965
966         * timevar.h (timevar_get): Remove. 
967         * timevar.c (timevar_get): Remove unused function.
968
969 2004-11-02  Joseph S. Myers  <joseph@codesourcery.com>
970
971         * doc/include/texinfo.tex: Update from Texinfo CVS.
972
973 2004-11-02  Ben Elliston  <bje@au.ibm.com>
974
975         * cppdefault.h (cpp_SYSROOT): Remove.
976         * cppdefault.c (cpp_SYSROOT): Likewise.
977
978 2004-11-01  Andrew MacLeod  <amacleod@redhat.com>
979
980         PR tree-optimization/16447
981         * tree-cfg.c (bsi_commit_one_edge_insert): Rename from 
982         bsi_commit_edge_inserts_1, and make funtion external.  Return new block.
983         (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
984         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
985         * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
986         * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
987         (same_stmt_list_p): New.  Return TRUE if edge is to be forwarded.
988         (identical_copies_p): New.  Return true is two copies are the same.
989         (identical_stmt_lists_p): New.  Return true if stmt lists are the same.
990         (analyze_edges_for_bb): New.  Determine how best to insert edge stmts 
991         for a basic block.
992         (perform_edge_inserts): New.  Determine what to do with all stmts that
993         have been inserted on edges.
994         (remove_ssa_form):  Analyze and commit edges from here.
995
996 2004-11-01  Andrew Pinski  <pinskia@physics.uc.edu>
997
998         PR bootstrap/18232
999         * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
1000         (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
1001         (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
1002         (EXECUTE_IF_AND_IN_BITMAP): Likewise.
1003
1004 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1005
1006         PR c/18239
1007         * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
1008         parameter declarations.
1009
1010 2004-11-01  Andreas Krebbel  <krebbel1@de.ibm.com>
1011
1012         * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
1013         (s390_secondary_input_reload_class)
1014         (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
1015         register.
1016         (s390_expand_cmpmem): Enable cmpmem implementation.
1017         * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
1018         Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
1019         (REG_CLASS_FROM_LETTER): New constraint 'c' added.
1020         * config/s390/s390.md ("movcc"): New insn pattern.
1021         * doc/md.texi: Document 'c' constraint for s390.
1022
1023 2004-11-01  Nathan Sidwell  <nathan@codesourcery.com>
1024
1025         PR c++/18064
1026         * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
1027         extension.
1028
1029 2004-10-16  Daniel Berlin  <dberlin@dberlin.org>
1030
1031         Fix PR tree-optimization/17672
1032         Fix PR tree-optimization/18168
1033         
1034         * lambda-code.c (lambda_lattice_compute_base): Fix reversed
1035         assert test.
1036         (gcc_tree_to_linear_expression): Add extra to existing constant.
1037         (depth_of_nest): Factor out function used in various places.
1038         (gcc_loop_to_lambda_loop): Clean up code a little bit. No
1039         functional changes.
1040         (find_induction_var_from_exit_cond): Stop guessing, and just
1041         get the right answer :).
1042         (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
1043         Print out message about result of attempt to create perfect nest.
1044         (lbv_to_gcc_expression): Add type argument, use it to do math
1045         and induction variable creation.
1046         (lle_to_gcc_expression): Ditto.
1047         (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
1048         oldiv. Pass type argument to lle_to_gcc_expression and 
1049         lbv_to_gcc_expression.
1050         Reset number of iterations after transformation.
1051         (perfect_nestify): Remove useless pre-allocation, and cleanup
1052         a small amount.
1053
1054         * tree-data-ref.c (build_classic_dist_vector): Return false for
1055         dependences completely outside of the loop nest we asked about.
1056         (build_classic_dir_vector): Ditto.
1057         (compute_data_dependences_for_loop): Only add dependence relations
1058         inside the loop we asked about.
1059         
1060         * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
1061         Compute immediate uses.
1062         
1063         * tree-optimize.c: Move linear_transform_loops to before ivcanon.
1064         
1065 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
1066
1067         * tree-cfg.c (thread_jumps): Fix a comment typo.
1068
1069 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
1070
1071         * tree-cfg.c (thread_jumps): Fix a comment typo.
1072
1073 2004-10-31  Nicolas Pitre <nico@cam.org>
1074
1075         * config/arm/ieee754-sf.S (floatdisf): Fix regression with
1076         values smaller than 2^32.
1077
1078 2004-10-31 Jeff Law  <law@redhat.com>
1079
1080         * cfgloop.h (struct loop): Remove unused "nodes" field.
1081         * timevar.def (TV_TREE_LOOP_BOUNDS): New.
1082         * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
1083         instead of calling flow_bb_inside_loop_p for every basic block
1084         in the function.
1085         * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
1086
1087 2004-10-31  Graham Stott <graham.stott@btinternet.com>
1088
1089         * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo.  Use
1090         INT_5_BITS instead of VAL_5_BITS_P.
1091
1092 2004-10-31  Roger Sayle  <roger@eyesopen.com>
1093
1094         PR middle-end/14521
1095         * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
1096         for consistent quoting in diagnostic messages.
1097         (expand_call_inline): Likewise.
1098         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1099         * tree-ssa.c (warn_uninitialized_var): Likewise.
1100         (warn_uninitialized_phi): Likewise.
1101
1102 2004-10-31  Richard Sandiford  <rsandifo@redhat.com>
1103
1104         * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
1105         mode check.
1106
1107 2004-10-31  Kazu Hirata  <kazu@cs.umass.edu>
1108
1109         * c-common.c: Fix a comment typo.
1110
1111 2004-10-31  Jason Merrill  <jason@redhat.com>
1112
1113         PR middle-end/17526
1114         * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
1115         aggregate types that are not BLKmode.
1116
1117 2004-10-30  Ziemowit Laski  <zlaski@apple.com>
1118
1119         * c-common.h (objc_lookup_ivar): Add second parameter to
1120         prototype.
1121         * c-typeck.c (build_external_ref): After looking up symbol,
1122         pass it to objc_lookup_ivar() to decide whether it or the
1123         ivar should be used, rather than deciding the issue locally.
1124         * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
1125         which is simply returned in the non-ObjC case.
1126
1127 2004-10-30  Danny Smith  <dannysmith@users.sourceforge.net>
1128
1129         * sdbout.c (sdbout_symbol): Do not output type .def statements
1130         for builtin types.
1131
1132 2004-10-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1133
1134         * c-common.c (catenate_strings): New.
1135         (c_parse_error): Use it.  Don't over-escape.
1136
1137 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1138
1139         * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
1140         modify the for loop expressions for it.  Remove unnecessary casts.
1141         (sh_expand_prologue): Declare reg as unsigned.
1142         (sh_gimplify_va_arg_expr): Initinalize lab_over.
1143         (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
1144
1145 2004-10-30  Geoffrey Keating  <geoffk@apple.com>
1146
1147         * doc/invoke.texi (Darwin Options): Improve description of
1148         how the subtype is chosen.
1149
1150 2004-10-30  Roger Sayle  <roger@eyesopen.com>
1151
1152         PR middle-end/18096
1153         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
1154         the stack adjustment, "size", is valid for Pmode.  If the stack
1155         frame is too large, generate a trap insn and issue a warning.
1156
1157 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
1158
1159         * tree-ssa-dom.c: Fix comment typos.
1160
1161 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1162
1163         * config/sh/sh.c (prepare_move_operands): Use operands[0]
1164         for the output rtl if no_new_pseudos is set.  Remove redundant
1165         line.
1166
1167 2004-10-30  Joseph S. Myers  <joseph@codesourcery.com>
1168
1169         PR c/16666
1170         * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
1171         determining whether to copy parameter types from a previous
1172         prototype declaration.
1173
1174 2004-10-29  Roger Sayle  <roger@eyesopen.com>
1175
1176         PR rtl-optimization/17581
1177         * cselib.c (cselib_process_insn): The last instruction of a libcall
1178         block, with the REG_RETVAL note, should be considered in the libcall.
1179         * gcse.c (do_local_cprop): Allow constants to be propagated outside
1180         of libcall blocks.
1181         (adjust_libcall_notes): Use simplify_replace_rtx instead of
1182         replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
1183
1184 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
1185
1186         * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
1187
1188 2004-10-29 Jeff Law  <law@redhat.com>
1189
1190         * tree-ssa-dom.c (struct edge_info): New structure holding
1191         edge equivalences and edge redirection information.
1192         (get_eq_expr_value, record_dominating_conditions): Kill.
1193         (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
1194         Call record_edge_info.
1195         (allocate_edge_info, free_edge_info): New.
1196         (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
1197         rather than cprop_into_phis.  Free all edge infos before threading
1198         jumps.
1199         (thread_across_edge): Allocate new edge info structures as needed
1200         and store the redirection target into the edge info structure
1201         instead of the edge's AUX field.
1202         (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
1203         (record_equivalence_from_incoming_edge): Lose unnecessary argument.
1204         Revamp code which finds and records equivalences associated with
1205         edges to use saved data in the edge_info structure.
1206         (record_equivalencs_from_phis): Similarly.
1207         (dom_opt_finalize_block): Revamp code which finds and records
1208         equivalences associated with edges to use saved data in the
1209         edge_info structure.
1210         (build_and_record_new_cond): New function.
1211         (record_conditions): Use build_and_record_new_cond to record
1212         dominating conditions.
1213         (record_edge_info): New function.
1214         (record_range): Tighten test for conditions which create
1215         useful range records.
1216
1217 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
1218
1219         * config/i386/darwin.h (ASM_SPEC): Simplify.
1220         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
1221         * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
1222         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
1223         * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
1224         (LINK_SPEC): Do pass -arch here.  Handle -force_cpusubtype_ALL
1225         in all cases.  Pass the right -arch or -arch_only based on -mcpu.
1226         (ASM_SPEC): Handle -force_cpusubtype_ALL.
1227         * doc/invoke.texi (Darwin Options): Improve documentation for
1228         Darwin linker (and libtool) switches.
1229
1230         * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
1231
1232 2004-10-29  Stan Shebs  <shebs@apple.com>
1233
1234         * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
1235
1236 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
1237
1238         * tree-phinodes.c (allocate_phi_node): New.
1239         (make_phi_node, resize_phi_node): Use it.
1240
1241 2004-10-29  David Edelsohn  <edelsohn@gnu.org>
1242
1243         * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
1244         * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
1245
1246 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
1247
1248         * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
1249         the whole PHI node.
1250         * tree.h (tree_phi_node): Tell the garbage collector to chase
1251         num_args arguments.
1252
1253 2004-10-29  Richard Earnshaw  <rearnsha@arm.com>
1254
1255         * opts.c (decode_options): Lower the crossjump threshold for -Os.
1256
1257 2004-10-29  Diego Novillo  <dnovillo@redhat.com>
1258
1259         * tree.h (struct tree_ssa_name): Remove field 'equiv'.
1260
1261 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
1262
1263         * bitmap.h (bitmap_empty_p): New.
1264         (bitmap_and, bitmap_and_into, bitmap_and_compl,
1265         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
1266         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
1267         operation macros.
1268         (bitmap_ior_and_compl): Rename to ...
1269         (bitmap_ior_and_compl_into): ... here.
1270         * bitmap.c (bitmap_equal_p): Use bitmap_xor.
1271         (bitmap_ior_and_compl): Rename to ...
1272         (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
1273         flag.
1274         (bitmap_union_of_diff): Use renamed bitmap functions.
1275         * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
1276         XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
1277         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
1278         * df.c (df_bb_rd_local_compute)
1279         * flow.c (calculate_global_regs_live,
1280         init_propagate_block_info): Likewise.
1281         * ifcvt.c (find_if_case_1, find_if_case_2,
1282         dead_or_predicable): Likewise.
1283         * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
1284         reset_conflicts, conflicts_between_webs): Likewise.
1285         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
1286         detect_web_parts_to_rebuild): Likewise.
1287         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
1288         * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
1289         * tree-sra.c (decide_instantiations): Likewise.
1290         * tree-ssa-alias.c (create_name_tags,
1291         merge_pointed_to_info): Likewise.
1292         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1293         * tree-ssa-loop-im.c (move_computations): Likewise.
1294         * tree-ssa-operands.c (get_call_expr_operands): Likewise.
1295         * tree-ssa-pre.c (fini_pre): Likewise.
1296         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
1297         * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
1298         * tree-vectorizer.c (vectorize_loops): Likewise.
1299
1300 2004-10-29  Nick Clifton  <nickc@redhat.com>
1301
1302         config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
1303         adding the PIC register to the fixed_regs array, also add it
1304         to the call_used_regs array.  
1305
1306 2004-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
1307
1308         * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
1309         with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
1310
1311 2004-10-28  Daniel Berlin  <dberlin@dberlin.org>
1312
1313         * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
1314         (rewrite_blocks): Modify argument, and use it to decide which
1315         function to call.
1316         (rewrite_def_def_chains): Call rewrite_blocks with true here.
1317         (rewrite_into_ssa): and call it with false here.
1318         
1319 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
1320
1321         * tree-phinodes.c (add_phi_arg): Turn an "if" that always
1322         triggers into gcc_assert.
1323
1324 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
1325
1326         PR tree-optimization/16728
1327         * tree-flow.h (get_ptr_info): Declare.
1328         * tree-ssa-alias.c (get_ptr_info): Make extern.
1329         * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
1330         alias information.
1331
1332 2004-10-28  Stan Shebs  <shebs@apple.com>
1333
1334         * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
1335         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
1336         case.
1337
1338 2004-10-28  Frank Ch. Eigler  <fche@redhat.com>
1339
1340         * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
1341         prevent their later unnecessary registration.
1342         (mf_build_check_statement_for): Remove "addr" argument, and
1343         related "__mf_value" generated code.  Update callers.
1344         (mf_decl_eligible_p): New function, factored from mx_register_decls.
1345         (mx_register_decls): Call it.
1346         (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
1347         to restore support for complex nested expressions.
1348         (mudflap_enqueue_decl): Simplify.  Move registration call emission
1349         out ...
1350         (mudflap_finish_file): ... to here.
1351         (mudflap_enqueue_constant): Remove dump code.
1352
1353 2004-10-28  Zack Weinberg  <zack@codesourcery.com>
1354
1355         PR 18199
1356         * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
1357         (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
1358         (dbxout_finish_complex_stabs): Update to match.
1359         (dbxout_symbol_location): Call emit_pending_bincls_if_required
1360         and FORCE_TEXT before DBX_STATIC_BLOCK_START.  Use
1361         dbxout_begin_complex_stabs_noforcetext.
1362         * xcoffout.h (DBX_FINISH_STABS): Restore special case for
1363         N_GSYM, using new SYM parameter.  Correct logic for special
1364         cases for N_FUN.
1365
1366         * varasm.c (function_section): If DECL is NULL_TREE, don't try
1367         to do anything else.  Do not call get_insns if cfun or
1368         cfun->emit are NULL.
1369
1370 2004-10-28  Adam Nemet  <anemet@lnxw.com>
1371
1372         PR middle-end/18160
1373         * c-typeck.c (c_mark_addressable): Issue error if address of a
1374         register variable is taken.  Use "%qD" to print DECL_NAME.
1375
1376 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
1377
1378         * opts.c (decode_options): Don't run PRE at -Os.
1379
1380 2004-10-28  Richard Henderson  <rth@redhat.com>
1381
1382         * config/alpha/alpha.md (movqicc_internal): Allow exactly one
1383         zero in the conditional.
1384         (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
1385
1386 2004-10-28  Richard Henderson  <rth@redhat.com>
1387
1388         * cse.c (memory_extend_rtx): Remove.
1389         (cse_main): Don't set it.
1390         (cse_insn): Use a local buffer instead.
1391
1392 2004-10-28  Andreas Krebbel  <krebbel1@de.ibm.com>
1393
1394         * profile.c (branch_prob): Call to init_edge_profiler added.
1395         * rtl-profile.c (rtl_init_edge_profiler): New function.
1396         (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
1397         call to safe_insert_insn_on_edge.
1398         (rtl_profile_hooks): rtl_init_edge_profiler added.
1399         * tree-profile.c (tree_init_edge_profiler): New function.
1400         (tree_profile_hooks): tree_init_edge_profiler added.
1401         * value-prof.h (profile_hooks) init_edge_profiler prototype added.
1402
1403 2004-10-28  Nick Clifton  <nickc@redhat.com>
1404
1405         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
1406         emit_jump_insn() to generate the return instruction.
1407
1408 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
1409
1410         * tree-phinodes.c: Remove trailing whitespace.
1411
1412 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
1413
1414         * tree-ssa-loop-ivopts.c: Fix a comment typo.
1415         * doc/invoke.texi: Fix a typo.
1416
1417 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
1418
1419         * Makefile.in (OBJS-common): Remove duplicates.
1420
1421 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
1422
1423         * lambda-code.c (nestify_update_pending_stmts): Remove.
1424         (perfect_nestify): Use flush_pending_stmts instead of
1425         nestify_update_pending_stmts.
1426         * tree-cfg.c (tree_make_forwarder_block): Use
1427         flush_pending_stmts.
1428         * tree-flow.h: Add a prototype for flush_pending_stmts.
1429         * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
1430         Use flush_pending_stmts.
1431         (lv_update_pending_stmts): Remove.
1432         (tree_ssa_loop_version): Use flush_pending_stmts instead of
1433         lv_update_pending_stmts.
1434         * tree-ssa.c (flush_pending_stmts): New.
1435
1436 2004-10-28  Ulrich Weigand  <uweigand@de.ibm.com>
1437
1438         PR target/15286
1439         * final.c (alter_subreg): Compute correct offset to use with
1440         paradoxical SUBREGs of memory operands.
1441         * recog.c (general_operand): Allow paradoxical SUBREGs of
1442         memory operands after reload.
1443         * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
1444         has failed when passed a hard register.
1445
1446 2004-10-28  Aldy Hernandez  <aldyh@redhat.com>
1447
1448         * function.c (assign_parm_setup_block): Handle parallels correctly.
1449
1450 2004-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
1451
1452         * final.c (shorten_branches): Initialize flags structure.
1453
1454 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
1455
1456         * tree.c (int_cst_node, int_cst_hash_table): New variables.
1457         (init_ttree): Initialize them.
1458         (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
1459         (build_int_cst_wide): Use hash table for oversized integers.
1460
1461 2004-10-28  Nick Clifton  <nickc@redhat.com>
1462
1463         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
1464         begin_label.
1465
1466 2004-10-27  Richard Henderson  <rth@redhat.com>
1467
1468         PR middle-end/18163
1469         * expr.c (emit_group_load): Don't go force temporary for memory
1470         or concat source.
1471         (emit_group_store): Similarly.
1472
1473 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
1474
1475         PR other/18186
1476         * common.opt (--param): Fix spelling of parameter.
1477
1478 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
1479
1480         PR tree-opt/17529
1481         * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
1482         Don't fold statement.
1483         <case ASM_EXPR>: Fold the statement.
1484
1485 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
1486
1487         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1488         <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
1489
1490 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
1491
1492         * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
1493         doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
1494         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
1495         doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
1496
1497 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
1498
1499         * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
1500         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
1501         punctuation outside quotes.
1502
1503 2004-10-27  David Mosberger  <davidm@hpl.hp.com>
1504             James E Wilson  <wilson@specifixinc.com>
1505
1506         PR target/13158
1507         * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
1508         sibcall alloc instruction.
1509         (process_set): Handle sibcall alloc instruction.
1510
1511 2004-10-27  Geoffrey Keating  <geoffk@apple.com>
1512
1513         * config/rs6000/rs6000.c (rs6000_attribute_table): Add
1514         SUBTARGET_ATTRIBUTE_TABLE.
1515         * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
1516         (SUBTARGET_ATTRIBUTE_TABLE): Define.
1517         * config/darwin.c (darwin_handle_weak_import_attribute): New.
1518         (HAVE_DEAD_STRIP): Delete.
1519         (no_dead_strip): Don't test HAVE_DEAD_STRIP.
1520         * config/darwin-protos.h (darwin_handle_weak_import_attribute):
1521         Prototype.
1522
1523         * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
1524
1525         * config/darwin.h (GTHREAD_USE_WEAK): Define.
1526
1527 2004-10-28  Ben Elliston  <bje@au.ibm.com>
1528
1529         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
1530         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
1531         * params.h (SRA_MAX_STRUCTURE_SIZE): New.
1532         (SRA_FIELD_STRUCTURE_RATIO): Likewise.
1533         * tree-sra.c: Include "params.h".
1534         (decide_block_copy): Use new parameters.
1535         * doc/invoke.texi (Optimize Options): Document new SRA pass
1536         parameters sra-max-structure-size and sra-field-structure-ratio.
1537
1538 2004-10-27  Nicolas Pitre <nico@cam.org>
1539
1540         * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
1541
1542 2004-10-27  Zdenek Dvorak  <dvorakz@suse.cz>
1543
1544         PR tree-optimization/18048
1545         * fold-const.c (try_move_mult_to_index): New function.
1546         (fold): Use try_move_mult_to_index.
1547         * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
1548         * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
1549         an all-ones unsigned constant without extra bits.
1550         * tree.c (build_low_bits_mask): New function.
1551         * tree.h (build_low_bits_mask): Declare.
1552
1553 2004-10-27  David Edelsohn  <edelsohn@gnu.org>
1554
1555         PR target/17956
1556         * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
1557         final condition.
1558         (minsf3): Same.
1559         (maxdf3): Same.
1560         (mindf3): Same.
1561
1562 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
1563
1564         * tree-cfg.c (thread_jumps): Speed up by reordering the two
1565         conditions for entering basic blocks into worklist.
1566
1567 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
1568
1569         * tree-cfg.c (thread_jumps): Speed up by pretending to have
1570         ENTRY_BLOCK_PTR in worklist.
1571
1572 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
1573
1574         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1575         <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
1576
1577 2004-10-27  Daniel Berlin <dberlin@dberlin.org>
1578
1579         Fix PR tree-optimization/17133
1580
1581         * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
1582         def kill operand.
1583
1584         * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
1585         (get_v_must_def_result_ptr): Modify for new structure of
1586         v_must_defs array.
1587         (get_v_must_def_kill_ptr): New.
1588         (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
1589         (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
1590         (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
1591         (op_iter_init): Initialize new mustu members.
1592         (op_iter_next_mustdef): New function.
1593         (op_iter_init_mustdef): Ditto.
1594
1595         * tree-flow.h (rewrite_def_def_chains): New function.
1596
1597         * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
1598         (ssa_mark_def_sites): Ditto.
1599         (rewrite_stmt): Ditto.
1600         (ssa_rewrite_stmt): Ditto.
1601         (rewrite_blocks): Factor out from rewrite_into_ssa.
1602         (mark_def_block_sites): Ditto.
1603         (rewrite_def_def_chains): New function, just rewrites def-def
1604         chains without phi node insertion.
1605
1606         * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
1607
1608         * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
1609
1610         * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
1611         they include the rhs now.
1612
1613         * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
1614         V_MUST_DEF_RESULT.
1615
1616         * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
1617         Update callers.
1618         (mark_really_necessary_kill_operand_phis): New function.
1619         (perform_tree_ssa_dce): Call it.
1620         (pass_dce): Add TODO_fix_def_def_chains.
1621         (pass_cd_dce): Ditto.
1622
1623         * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
1624         well.
1625         (rewrite_mem_refs): Ditto.
1626
1627         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
1628         as well.
1629
1630         * tree-ssa-operands.c (allocate_v_may_def_optype):
1631         v_may_def_operand_type_t became v_def_use_operand_type_t.
1632         (allocate_v_must_def_optype) Ditto.
1633         (finalize_ssa_v_must_defs): Update for new operand type, as well
1634         as setting the use portion as well.
1635         (copy_virtual_operands): Copy the kill operand as well.
1636         (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
1637         V_MUST_DEF_RESULT.
1638
1639         * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
1640         v_def_use_operand_type.
1641         (v_must_def_optype_d): Use v_def_use_operand_type.
1642         (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
1643         (V_MUST_DEF_KILL_*): New macros.
1644         (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
1645         members.
1646         Rename existing must_i and num_v_must members to mustd_i and
1647         num_v_mustd.
1648         (SSA_OP_VMUSTDEFKILL): New flag.
1649         (SSA_OP_VIRTUAL_KILLS): New flag.
1650         (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
1651         (SSA_OP_ALL_KILLS): New flag.
1652         (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
1653
1654         * tree-ssa.c (verify_ssa): Verify virtual kills as well.
1655
1656         * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
1657         became V_MUST_DEF_RESULT.
1658         (rename_variables_in_bb): Rename kill pointer as well.
1659
1660         * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
1661         immediate uses.
1662
1663 2004-10-27  Richard Sandiford  <rsandifo@redhat.com>
1664
1665         * dbxout.c (dbxout_source_line): Move declaration of begin_label to
1666         the block that needs it.
1667
1668 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
1669
1670         * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
1671         ATTRIBUTE_UNUSED.
1672
1673 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
1674
1675         * c-lex.c (cb_def_pragma): Clean up code for making location
1676         palatable to diagnostic.c.
1677
1678 2004-10-27  Steven Bosscher  <stevenb@suse.de>
1679
1680         PR tree-optimization/17757
1681         * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
1682         without any PHI arguments left.  Make sure the argument that
1683         we're supposed to remove exists at all.
1684
1685 2004-10-27  Paul Brook  <paul@codesourcery.com>
1686
1687         * configure.ac: Don't test for [build] __cxa_atexit when building a
1688         cross compiler.
1689         * configure: Regenerate.
1690
1691 2004-10-27  Paul Brook  <paul@codeosurcery.com>
1692
1693         * configure.ac: Use build_exeext not host_exeext when lookin for
1694         target tools.
1695         * configure: Regenerate.
1696
1697 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
1698
1699         * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
1700
1701 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
1702             patch originally created by Kelley Cook  <kcook@gcc.gnu.org>
1703
1704         PR middle-end/14684
1705         * opts.c (OPT_fprofile_generate): Default to -funroll-loops
1706         to match -fprofile-use.
1707
1708 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
1709
1710         * config/rs6000/rs6000.c: Fix a comment typo.
1711
1712 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
1713
1714         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
1715         counter.
1716
1717 2004-10-27  Andreas Schwab  <schwab@suse.de>
1718
1719         * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
1720         unused.
1721         (default_stabs_asm_out_constructor): Likewise.
1722
1723 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
1724
1725         * builtins.c (fold_builtin_unordered_cmp): Always bring both
1726         operands to the same type.
1727
1728 2004-10-26  James E Wilson  <wilson@specifixinc.com>
1729
1730         PR target/18010
1731         * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
1732
1733 2004-10-26  Zack Weinberg  <zack@codesourcery.com>
1734
1735         * dbxout.c: Include obstack.h.
1736         (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
1737         default definition.
1738         (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
1739         Default-define here.
1740         (DBX_CONTIN_LENGTH): Move definition with others.
1741         (DBX_FINISH_STABS): New target macro.
1742         (current_sym_code, current_sym_value, current_sym_addr)
1743         (current_sym_nchars, CHARS, dbxout_continue)
1744         (print_int_cst_octal, print_octal, print_wide_int)
1745         (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
1746         (stabstr_ob, stabstr_last_contin_point): New variables.
1747         (NUMBER_FMT_LOOP): New improper macro.
1748         (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
1749         (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
1750         (dbxout_stab_value_internal_label_diff, dbxout_stabd)
1751         (dbxout_begin_stabn, dbxout_begin_stabn_sline)
1752         (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
1753         (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
1754         (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
1755         (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
1756         New functions and/or proper function-like macros.
1757         (CONTIN): Use stabstr_continue, unconditionally.
1758         (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
1759         (dbxout_init): Initialize stabstr_ob.  Check
1760         NO_DBX_MAIN_SOURCE_DIRECTORY.  Only write out the Ltext label
1761         if it was used.  Use the new interfaces.
1762         (dbxout_source_file): Remove file argument; always write to
1763         asm_out_file.  Use the new interfaces.
1764         (dbxout_type_method_1): Remove second argument which is always
1765         DECL_ASSEMBLER_NAME of the first argument.  Use the new interfaces.
1766         (dbxout_type_methods): Remove write-only variables.  Use the
1767         new interfaces.
1768         (dbxout_parms): Refactor to remove code duplicated in each of
1769         several successive if-else-if blocks.  Use the new interfaces.
1770         (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
1771         (dbxout_source_line, dbxout_finish, dbxout_type_index)
1772         (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
1773         (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
1774         (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
1775         (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
1776         Use the new interfaces.
1777         * Makefile.in (dbxout.o): Update dependencies.
1778
1779         * defaults.h: Don't define ASM_STABD_OP.
1780         * output.h: Prototype new dbxout_* interfaces.
1781         * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
1782         * varasm.c: Don't define ASM_STABS_OP.
1783         (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
1784         Use the new dbxout.c interfaces.  Call sorry if neither
1785         DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
1786
1787         * xcoffout.h: Don't define ASM_STABS_OP.
1788         (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
1789         (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
1790         (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
1791         (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
1792         do { ... } while (0) idiom.
1793
1794         * config/alpha/alpha.c (num_source_filenames): Export.
1795         * config/alpha/alpha.h (num_source_filenames): Declare.
1796         (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
1797         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
1798         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
1799         Always use .debugsym.  Update commentary.
1800         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
1801         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
1802         * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
1803         Use new interfaces.
1804         * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
1805         (macho_branch_islands): Use new interfaces.
1806
1807         * doc/tm.texi: Update.
1808
1809 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
1810
1811         * expr.c (emit_group_store): Do not treat floats as BLKmode.
1812         (emit_group_load): Same.
1813
1814 2004-10-26  Joseph S. Myers  <jsm@polyomino.org.uk>
1815
1816         * c-parse.in (datadef): Use pedwarn rather than error and warning
1817         for diagnostic in case of no declaration specifiers.
1818
1819 2004-10-26  Richard Sandiford  <rsandifo@redhat.com>
1820
1821         PR bootstrap/15747
1822         * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
1823         reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
1824         can be used to work around this.
1825
1826 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
1827
1828         * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
1829         doubles.
1830
1831 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
1832
1833         * stmt.c (expand_case): Update a comment.
1834
1835 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
1836
1837         * stmt.c (expand_case): Put an assertion that index_expr is
1838         never INTEGER_CST.  Don't special case for constant
1839         index_expr.
1840
1841 2004-10-26  Andrew Pinski  <pinskia@physics.uc.edu>
1842
1843         PR 18162
1844         * c-parse.in (designator): Finish with a semi-colon.
1845
1846 2004-10-26  Fariborz Jahanian <fjahanian@apple.com>
1847
1848         * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
1849         into rotlsi3.
1850
1851 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
1852
1853         * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
1854         a default case only.
1855
1856 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
1857
1858         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
1859         e500 doubles.
1860         (spe_build_register_parallel): New.
1861         (rs6000_spe_function_arg): Handle e500 doubles.
1862         (function_arg): Same.
1863         (spe_func_has_64bit_regs_p): Same.
1864         (rs6000_function_value): Same.
1865         (rs6000_libcall_value): Same.
1866         (legitimate_lo_sum_address_p): Return false for e500 doubles.
1867
1868         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
1869         doubles.
1870         (DATA_ALIGNMENT): Same.
1871         (CANNOT_CHANGE_MODE_CLASS): Same.
1872
1873 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
1874
1875         * expr.c (emit_group_load): Handle floats.
1876         (emit_group_store): Same.
1877
1878 2004-10-26  Nathan Sidwell  <nathan@codesourcery.com>
1879
1880         * c-lex.c (get_nonpadding_token): Remove.
1881         (c_lex_with_flags): Push timevar and eat padding here.  Improve
1882         stray token diagnostic.
1883         (lex_string): Replace logic with switch statement, eat padding
1884         token here.
1885
1886 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
1887
1888         PR 18149
1889         * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
1890
1891 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
1892
1893         * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
1894         to 'non-weak'.
1895         (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
1896         (ASM_MAKE_LABEL_LINKONCE): Delete.
1897         (ASM_WEAKEN_DECL): New.
1898         (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
1899         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1900         (TEXT_SECTION_ASM_OP): Add a tab.
1901         (DATA_SECTION_ASM_OP): Likewise.
1902         (SECTION_FUNCTION): Add a tab.  Use fputs.  Don't call
1903         data_section on every section change.
1904         (EXTRA_SECTIONS): Add a bunch of new extra sections.
1905         (EXTRA_SECTION_FUNCTIONS): Likewise.
1906         (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
1907         (JCR_SECTION_NAME): Define.
1908         (TARGET_SECTION_TYPE_FLAGS): Don't define.
1909         * config/darwin.c (darwin_encode_section_info): A symbol is defined
1910         in this file if it is not weak.
1911         (textcoal_section): Delete.
1912         (datacoal_section): Delete.
1913         (darwin_make_decl_one_only): Delete.
1914         (machopic_select_section): Handle functions.
1915         (darwin_asm_named_section): Add a tab.
1916         (darwin_section_type_flags): Delete.
1917         (darwin_unique_section): Delete contents.
1918         (darwin_emit_unwind_label): Add a tab.  Make decls weak if
1919         DECL_WEAK is set.
1920         * config/darwin-protos.h (darwin_section_type_flags): Delete.
1921         (darwin_make_decl_one_only): Delete.
1922         (text_coal_section): New.
1923         (text_unlikely_section): New.
1924         (text_unlikely_coal_section): New.
1925         (const_coal_section): New.
1926         (data_coal_section): New.
1927         (const_data_coal_section): New.
1928         * varasm.c (function_section): Honour
1929         USE_SELECT_SECTION_FOR_FUNCTIONS.
1930         * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
1931         TARGET_USES_WEAK_UNWIND_INFO is in effect.
1932         * dbxout.c (dbxout_source_file): Don't change sections while
1933         a function is being output.
1934
1935 2004-10-25  David Ayers  <d.ayers@inode.at>
1936
1937         * c-common.h: Remove RID_ID.
1938         * c-parse.in: Remove OBJECTNAME and references to RID_ID.
1939         (typespec_reserved_attr): Add rule for TYPENAME
1940         non_empty_protocolrefs.
1941         (yylexname): Remove special handling of RID_ID.
1942
1943 2004-10-25  James E Wilson  <wilson@specifixinc.com>
1944
1945         * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
1946
1947 2004-10-25  Joseph S. Myers  <jsm@polyomino.org.uk>
1948
1949         PR c/16667
1950         * c-parse.in (array_designator): New.
1951         (designator): Use it.
1952         (initelt): Only permit array_designator without '=', not ".foo".
1953
1954 2004-10-25  Kenneth Zadeck <zadeck@naturalbridge.com>
1955         * gcc/Makefile.in: removed ggc for cgraphunit.
1956         * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
1957         * gcc/cgraph.h: removed static var analysis data structures and calls.
1958         * gcc/cgraphunit.c:
1959         cgraph_mark_local_and_external_functions:changed name to
1960                 cgraph_mark_local_functions
1961         (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
1962         cgraph_reset_static_var_maps,get_global_static_vars_info,
1963         get_global_statics_not_read,get_global_statics_not_written,searchc,
1964         cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
1965         check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
1966         scan_for_static_refs,cgraph_characterize_statics_local,
1967         clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
1968         removed.
1969         (cgraph_optimize,init_cgraph): removed calls to static vars analysis
1970         * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
1971         analysis
1972         * gcc/tree-flow.h static_vars_info: removed
1973         * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
1974         removed calls to static vars analysis.
1975         get_call_expr_operands: removed callee variable.
1976
1977 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
1978
1979         * cfg.c (unchecked_make_edge, redirect_edge_succ,
1980         redirect_edge_pred): Use VEC_safe_push instead of
1981         VEC_safe_insert.
1982         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1983
1984 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
1985
1986         * cfgloopmanip.c (loopify): Take two more arguments true_edge
1987         and false_edge.
1988         * cfgloop.h: Adjust the corresponding prototype.
1989         * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
1990         * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
1991
1992 2004-10-25  Jakub Jelinek  <jakub@redhat.com>
1993
1994         * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
1995         DECL_INCOMING_RTL is NULL.
1996
1997 2004-10-25  Steven Bosscher  <stevenb@suse.de>
1998
1999         * timevar.def (TV_FIND_REFERENCED_VARS): New.
2000         * tree-dfa.c (pass_referenced_var): Use it.
2001
2002 2004-10-25  Roger Sayle  <roger@eyesopen.com>
2003             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2004
2005         * cse.c: Change encoding of quantity numbers to avoid undefined
2006         pointer arithmetic on qty_table.
2007         (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
2008         (get_cse_reg_info): Initialize reg_qty to a unique negative value.
2009         (new_basic_block): Assign "real" quantity numbers from zero.
2010         (delete_reg_equiv): Do nothing if quantity is invalid.  Reset the
2011         REG_QTY to its unique negative value.
2012         (merge_equiv_classes): Calculate need_rehash if quantity is valid.
2013         (cse_main): Don't include max_reg when determining max_qty.
2014         (cse_basic_block): Avoid subtracting a large offset from qty_table,
2015         which causes undefined C99 behaviour.  Only allocate needed memory.
2016
2017 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
2018
2019         * stmt.c (expand_case): Remove an obsolete comment.
2020
2021 2004-10-25  Andrew Pinski  <pinskia@physics.uc.edu>
2022
2023         PR middle-end/17407
2024         * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
2025         layout_type as it is already done by build_array_type.
2026         * tree.c (build_array_type): Layout the type even
2027
2028 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
2029
2030         * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
2031
2032 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
2033
2034         * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
2035         with wider-than-32-bit HOST_WIDE_INTs.
2036
2037 2004-10-25  David Billinghurst <David.Billinghurst@riotinto.com>
2038
2039         * config/mips/mips.c(mips_output_filename): Remove unused
2040         array ltext_label_name
2041
2042 2004-10-24  Geoffrey Keating  <geoffk@geoffk.org>
2043
2044         * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
2045
2046 2004-10-25  Ben Elliston  <bje@au.ibm.com>
2047
2048         * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
2049
2050 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
2051
2052         * predict.c (predict_loops): Call scev_finalize instead of
2053         scev_reset.
2054
2055 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
2056
2057         * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
2058         config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
2059         config/sh/ushmedia.h, config/sparc/elf.h,
2060         config/sparc/sp64-elf.h: Update copyright.
2061
2062 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
2063
2064         * stmt.c (expand_case): Handle the default label outside of
2065         the for loop.  Remove code to handle a missing default label.
2066
2067 2004-10-23  Kazu Hirata  <kazu@cs.umass.edu>
2068
2069         * dbxout.c (dbxout_function_decl): Don't use
2070         DBX_OUTPUT_FUNCTION_END.
2071         * system.h: Poison DBX_OUTPUT_FUNCTION_END.
2072         * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
2073
2074 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
2075
2076         PR middle-end/17967
2077         * tree-cfg.c (remove_usless_stmts_cond):  Don't Fold statement.
2078
2079 2004-10-23  Daniel Berlin  <dberlin@dberlin.org>
2080
2081         * tree-ssa-dom.c (record_equality): Use loop depth to determine
2082         which way to record the equality as well.
2083         (loop_depth_of_name): New function.
2084
2085 2004-10-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2086
2087         PR middle-end/17793
2088         * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
2089         through the operand if it is a useless type conversion.
2090
2091 2004-10-23  Ben Elliston  <bje@au.ibm.com>
2092
2093         * cfg.c (remove_edge): Use VEC_unordered_remove.
2094         (redirect_edge_succ): Likewise.
2095         (redirect_edge_pred): Likewise.
2096         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2097
2098 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2099
2100         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
2101         beyond its end.
2102
2103 2004-10-22  Eric Christopher  <echristo@redhat.com>
2104
2105         * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
2106         saves.
2107
2108 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
2109
2110         * config/rs6000/spe.md (spe_extendsfdf2): New.
2111         (movdf_e500_double): New.
2112         (spe_truncdfsf2): New.
2113         (spe_absdf2): New.
2114         (spe_nabsdf2): New.
2115         (spe_negdf2): New.
2116         (sub_adddf3): New.
2117         (spe_subdf3): New.
2118         (spe_muldf3): New.
2119         (spe_floatsidf2): New.
2120         (spe_floatunssidf2): New.
2121         (fix_truncdfsi2): New.
2122         (spe_fixuns_truncdfsi2): New.
2123
2124         * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
2125         (fpr_truncdfsf2): New.
2126         (negdf2): Change to expander.
2127         (fpr_negdf2): New.
2128         (fpr_nabsdf2): Name pattern.
2129         (adddf3): Change to expander.
2130         (fpr_adddf3): Nem.
2131         (subdf3): Change to expander.
2132         (fpr_subdf3): New.
2133         (muldf3): Change to expander.
2134         (fpr_muldf3): New.
2135         (divdf3): Change to expander.
2136         (fpr_divdf3): New.
2137         (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
2138         (cmpdf): Allow for TARGET_E500_DOUBLE.
2139
2140 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2141
2142         * c-semantics.c (re_push_stmt_list): Remove.
2143         * c-common.h: Remove the corresponding prototype.
2144
2145 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2146
2147         * stmt.c (asm_op_is_mem_input): Remove.
2148         * tree.h: Remove the corresponding prototype.
2149
2150 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2151
2152         * tree-gimple.c (is_gimple_constructor_elt): Remove.
2153         * tree-gimple.h: Remove the corresponding prototype.
2154
2155 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2156
2157         * varasm.c (get_pool_mode_for_function, get_pool_offset):
2158         Remove.
2159         * rtl.h: Remove the corresponding prototypes.
2160
2161 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2162
2163         * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
2164         edge information when we commit ourselves to threading a
2165         particular jump.
2166
2167 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2168
2169         * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
2170         into worklist instead of their indexes.
2171
2172 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2173
2174         * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
2175         final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
2176         lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
2177         pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
2178         tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
2179         tree-scalar-evolution.c, tree-ssa-dom.c,
2180         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2181         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
2182         tree-vectorizer.c, vec.h: Fix comment formatting.
2183
2184 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2185
2186         * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
2187         libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
2188
2189 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2190
2191         * config/ptx4.h, config/mcore/mcore-pe.h,
2192         config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
2193
2194 2004-10-22  Peter Barada <peter@the-baradas.com>
2195
2196         * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
2197         * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
2198         renaming of non-live registers in interrupt functions.
2199         * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
2200
2201 2004-10-22  Zdenek Dvorak  <dvorakz@suse.cz>
2202
2203         * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
2204         Use integer for loop counter.
2205         (num_ending_zeros): New function.
2206         (number_of_iterations_cond): Use num_ending_zeros.
2207
2208 2004-10-21  Aldy Hernandez  <aldyh@redhat.com>
2209
2210         * config.gcc: Add support for --enable-e500_double.
2211
2212         * config/rs6000/e500-double.h: New file.
2213
2214         * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
2215         TARGET_E500_DOUBLE.
2216
2217         * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
2218         TARGET_E500_DOUBLE.
2219
2220         * config/rs6000/linuxspe.h: Same.
2221
2222         * doc/invoke.texi (Option Summary): Document new options for
2223         mfloat-gprs.
2224         (RS/6000 and PowerPC Options): Same.
2225
2226         * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
2227         function.
2228         (rs6000_override_options): Use it.  Use
2229         SUB3TARGET_OVERRIDE_OPTIONS.
2230         Add 8548 to processor_target_table.
2231         (rs6000_legitimate_address): Handle e500 doubles.
2232         (rs6000_legitimize_address): Same.
2233         (rs6000_legitimize_reload_address): Same.
2234         (rs6000_hard_regno_nregs): Same.
2235         (spe_func_has_64bit_regs_p): Same.
2236         (emit_frame_save): Same.
2237         (gen_frame_mem_offset): Same.
2238         (rs6000_dwarf_register_span): Same.
2239         (rs6000_generate_compare): Same.
2240         (easy_fp_constant): Same.
2241         (legitimate_offset_address_p): Same.
2242
2243         * config/rs6000/spe.md: (cmdfeq_gpr): New.
2244         (tstdfeq_gpr): New.
2245         (cmpdfgt_gpr): New.
2246         (tstdfgt_gpr): New.
2247         (tstdfgt_gpr): New.
2248         (cmpdflt_gpr): New.
2249         (tstdflt_gpr): New.
2250         Add new constants.
2251
2252 2004-10-21  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2253
2254         * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
2255
2256 2004-10-21  Zack Weinberg  <zack@codesourcery.com>
2257
2258         * dbxout.c: Remove unnecessary #undefs.
2259         (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
2260         (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
2261         definition into use sites.
2262         (cwd): Make local to dbxout_init.
2263         (dbxout_init): Restructure cwd-using logic for clarity.  Use
2264         IS_DIR_SEPARATOR.
2265         * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
2266         STABS_GCC_MARKER folded in here.
2267         * system.h: Poison now-unused macros.
2268         * doc/tm.texi: Remove documentation of now-unused macros.
2269
2270 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
2271
2272         PR c/17538
2273         * c-opts.c (push_command_line_include): Use the current file
2274         name instead of the main one.
2275
2276 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
2277
2278         PR objc/17923
2279         * tree.c (staticp): A CONST_DECL has static storage if either
2280         TREE_STATIC or DECL_EXTERNAL is set.
2281         * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
2282         have null names.
2283
2284 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
2285
2286         * expr.c (store_expr): Remove dont_store_target.
2287
2288 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
2289
2290         * tree-cfg.c (thread_jumps): Speed up by using a worklist.
2291
2292 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
2293
2294         * tree-cfg.c (thread_jumps): Move a part of it to ...
2295         (thread_jumps_from_bb): ... here.
2296
2297 2004-10-21  David Edelsohn  <edelsohn@gnu.org>
2298
2299         * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
2300         * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
2301
2302 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
2303
2304         * expr.c (store_expr): Clean up by renaming want_value to
2305         call_param_p.
2306
2307 2004-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
2308
2309         * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
2310         fixup pc here.
2311
2312 2004-10-21  Aldy Hernandez  <aldyh@redhat.com>
2313
2314         PR 18004.
2315         * expmed.c (store_bit_field): Pass original 'value' before
2316         recursing.
2317
2318 2004-10-21  Nicolas Pitre <nico@cam.org>
2319
2320         * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
2321         * config/arm/ieee754-df.S: Ditto.
2322
2323 2004-10-20  Zack Weinberg  <zack@codesourcery.com>
2324
2325         * dbxout.c (asmfile): Delete.  All uses changed to asm_out_file.
2326         (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
2327         Default to 0.
2328         (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
2329         When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
2330         an internal label and an N_SLINE .stabn whose value is the
2331         difference between that label and the function entry label.
2332         (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
2333         but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
2334         label and an N_SO stab with an empty string referring to it.
2335         (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
2336         of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
2337         (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
2338         (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
2339         macro is never defined.
2340         * sdbout.c (sdbout_source_line_counter): Delete.
2341         (PUT_SDB_SRC_FILE): Delete.  Uses replaced with sole definition.
2342         (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
2343         only two arguments.
2344         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
2345
2346         * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
2347         * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
2348         definitions (identical to default).
2349         * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
2350         * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
2351         Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
2352         DBX_OUTPUT_MAIN_SOURCE_FILE_END.
2353         * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
2354         * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
2355         Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
2356         * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
2357         * config/alpha/alpha.c: Move declaration of num_source_filenames up.
2358         (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
2359         (sym_lineno): Delete.
2360         (alpha_output_filename): Do not emit N_SOL stabs here.  Remove
2361         now-unused variable.
2362         (alpha_output_lineno): Delete.
2363         * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
2364         * config/mips/mips.c (mips_output_filename): Don't use
2365         ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
2366         (mips_output_lineno): Delete.
2367         (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
2368         * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
2369         SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
2370         * config/mips/mips.h: Likewise.  Don't define ASM_OUTPUT_FILENAME.
2371         * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
2372         * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
2373         * config/mmix/mmix.h: Likewise.
2374         * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
2375         * config/mmix/mmix-protos.h: Don't prototype it.
2376         * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
2377         no need to #undef ASM_OUTPUT_SOURCE_LINE.
2378         * config/arm/aout.h: Remove RISCiX-specific definition of
2379         DBX_OUTPUT_MAIN_SOURCE_FILENAME.
2380         * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
2381         ASM_OUTPUT_SOURCE_LINE.
2382         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
2383         DBX_OUTPUT_SOURCE_LINE.  Don't use current_function_func_begin_label.
2384         * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
2385
2386         * doc/tm.texi: Update.
2387
2388 2004-10-20  Richard Henderson  <rth@redhat.com>
2389
2390         * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
2391
2392 2004-10-20  Kelley Cook  <kcook@gcc.gnu.org>
2393
2394         * configure.ac: Revert my previous patch.
2395         * configure: Regenerate.
2396
2397 2004-10-20  Ben Elliston  <bje@au.ibm.com>
2398
2399         * config/rs6000/rs6000.c
2400         (rs6000_va_start): Use build_va_arg_indirect_ref.
2401         (rs6000_gimplify_va_arg): Likewise.
2402
2403 2004-10-20  Bryce McKinlay  <mckinlay@redhat.com>
2404
2405         PR java/15575
2406         * configure.ac: Declare AM_LANGINFO_CODESET.
2407         * aclocal.m4: Define AM_LANGINFO_CODESET.
2408         * configure, config.in: Rebuilt.
2409
2410 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
2411
2412         * expr.c (store_expr): Remove code that is run when
2413         want_value & 1 is nonzero.
2414
2415 2004-10-20  Mark Mitchell  <mark@codesourcery.com>
2416
2417         * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
2418         from function pointer to void *.
2419
2420 2004-10-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2421
2422         PR target/18032
2423         * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
2424         the frame pointer adjustment when exception handling is enabled.
2425
2426 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
2427
2428         * stor-layout.c: Fix a comment typo.
2429
2430 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
2431
2432         * expr.c (store_field): Remove two arguments value_mode and
2433         unsignedp.
2434         (expand_assignment, store_constructor_field,
2435         expand_expr_real_1): Adjust calls to store_field.
2436
2437 2004-10-18  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
2438
2439         * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
2440
2441         PR target/17317
2442         * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
2443         REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
2444         base and index register for loads.
2445
2446         * config/arc/t-arc: Fix multilib handling.
2447
2448 2004-10-20  Hans-Peter Nilsson  <hp@bitrange.com>
2449
2450         * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
2451         don't inspect BLOCK_FOR_INSN for barriers.
2452         * emit-rtl.c (emit_barrier_before): Revert last change.
2453         (emit_barrier_after, emit_barrier): Ditto.
2454
2455         * doc/extend.texi (Extended Asm): Warn and provide example
2456         solution for using a call-clobbered asm register.
2457         (Local Reg Vars): Similar.  Cross-reference example.
2458
2459 2004-10-19  Andrew Pinski  <pinskia@physics.uc.edu>
2460
2461         * tree-cfg.c (group_case_labels): Look at the second to last
2462         case statement for combing with the default case.
2463
2464 2004-10-19  Richard Hendeson  <rth@redhat.com>
2465
2466         PR 17962
2467         * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
2468
2469 2004-10-19  Richard Hendeson  <rth@redhat.com>
2470
2471         * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
2472         succeeds, only expand the result.
2473
2474 2004-10-19  Richard Hendeson  <rth@redhat.com>
2475
2476         PR middle-end/17885
2477         * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
2478         of INDIRECT_REF.
2479
2480 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
2481
2482         * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
2483         loop with goto.
2484
2485 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
2486
2487         * expr.c (expand_assignment): Remove the last argument.
2488         Change the return type to void.
2489         * expr.h: Update the prototype of expand_assignment.
2490         * function.c (assign_parm_setup_reg): Update a call to
2491         expand_assignment.
2492         * stmt.c (expand_asm_expr): Likewise.
2493
2494 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
2495
2496         * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
2497         unnecessary assignments to temp.  Return const0_rtx.
2498
2499 2004-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
2500
2501         * config/sh/sh.c (sh5_schedule_saves): Fix typo.
2502
2503 2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
2504
2505         * configure.ac (powerpc-*-darwin*): Require assembler to support
2506         .machine directive.
2507         * configure: Regenerate.
2508
2509 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
2510
2511         * reload1.c (ior_hard_reg_set): Remove.
2512         (finish_spills): Use IOR_HARD_REG_SET instead of
2513         ior_hard_reg_set.
2514
2515 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
2516
2517         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
2518         the currently visited word to right.
2519
2520 2004-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2521
2522         PR middle-end/18045
2523         * expmed.c (expand_smod_pow2): Handle modes whose size
2524         is greater than that of HOST_WIDE_INT.
2525
2526 2004-10-18  Ziemowit Laski  <zlaski@apple.com>
2527
2528         * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
2529
2530 2004-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2531             Roger Sayle  <roger@eyesopen.com>
2532
2533         PR middle-end/17813
2534         * dojump.c (discard_pending_stack_adjust): New function.
2535         (clear_pending_stack_adjust): Call it.
2536         * expr.h (discard_pending_stack_adjust): Declare it.
2537         * explow.c (emit_stack_save): Emit pending stack adjustments
2538         before saving the stack pointer.
2539         (emit_stack_restore): Discard pending stack adjustments before
2540         restoring the stack pointer.
2541
2542 2004-10-18  Richard Henderson  <rth@redhat.com>
2543
2544         * c-common.c (handle_mode_attribute): Allow scalar->vector
2545         type changes yet.
2546
2547 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
2548
2549         * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
2550         value to expand_assignment.
2551
2552 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
2553
2554         * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
2555         thread_jumps.
2556         (thread_jumps): Iterate until no new forwarder block arises.
2557
2558 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
2559
2560         * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
2561         (thread_jumps): Use forwardable as cache of
2562         tree_forwarder_block_p throughout the function.
2563
2564 2004-10-18  Andreas Krebbel  <krebbel1@de.ibm.com>
2565
2566         * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
2567
2568 2004-10-18  Andrew Pinski  <pinskia@physics.uc.edu>
2569
2570         PR middle-end/15014
2571         PR middle-end/16973
2572         * tree-cfg.c (remove_bb): If we have a label expression in the
2573         basic block and the label we have taken the address, move the
2574         label expression to the basic block which is previous in the
2575         linked list.
2576         (tree_verify_flow_info): Fix printing out the label name of the
2577         problematic label expression.
2578
2579 2004-10-18  Pat Haugen  <pthaugen@us.ibm.com>
2580
2581         PR rtl-optimization/18002
2582         * simplify-rtx.c (mode_signbit_p): Externalize function...
2583         * rtl.h (mode_signbit_p): ... to here.
2584         * combine.c (simplify_shift_const): Recognize PLUS signbit as
2585         canonical form of XOR signbit and move to outer op.
2586
2587 2004-10-18  Diego Novillo  <dnovillo@redhat.com>
2588
2589         * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
2590         Update all callers.
2591         * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
2592         Don't call fold_stmt more than once, use bsi_replace.
2593
2594 2004-10-18  Diego Novillo  <dnovillo@redhat.com>
2595
2596         PR tree-optimization/17656
2597         * tree-ssa.c (replace_immediate_uses): When replacing a
2598         constant, if the call to fold_stmt produced a different
2599         statement, get an appropriate statement pointer by scanning
2600         STMT's basic block.
2601
2602 2004-10-18  Richard Henderson  <rth@redhat.com>
2603
2604         * pointer-set.c (hash1): Don't use libm functions in fallback case.
2605
2606 2004-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2607
2608         PR bootstrap/17684
2609         * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
2610         (stage1-start): Remove and copy libunwind.a and
2611         libunwind*$(SHLIB_EXT) instead of libunwind*.
2612         (stage2-start): Likewise.
2613         (stage3-start): Likewise.
2614         (stage4-start): Likewise.
2615         (stageprofile-start): Likewise.
2616         (stagefeedback-start): Likewise.
2617
2618         * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
2619         the shared library to be created and don't remove the existing
2620         shared library.
2621         * config/arm/t-netbsd (SHLIB_LINK): Likewise.
2622         * config/i386/t-nwld (SHLIB_LINK): Likewise.
2623         * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
2624         * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
2625         * config/sh/t-linux (SHLIB_LINK): Likewise.
2626         * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
2627         * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
2628         * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
2629         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
2630
2631         * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
2632         files.
2633
2634 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
2635
2636         * basic-block.h (reg_set_iterator): New.
2637         (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
2638         (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
2639         (EXECUTE_IF_AND_IN_REG_SET): Likewise.
2640         * caller-save.c (save_call_clobbered_regs): Adjust to the new
2641         style.
2642         * cfgcleanup.c (thread_jump): Likewise.
2643         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2644         * conflict.c (conflict_graph_compute): Likewise.
2645         * flow.c (verify_local_live_at_start, update_life_info,
2646         initialize_uninitialized_subregs, propagate_one_insn,
2647         init_propagate_block_info, free_propagate_block_info,
2648         propagate_block, dump_regset): Likewise.
2649         * global.c (global_conflicts): Likewise.
2650         * graph.c (start_bb): Likewise.
2651         * local-alloc.c (update_equiv_regs): Likewise.
2652         * loop.c (load_mems): Likewise.
2653         * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
2654         find_reg, finish_spills): Likewise.
2655         * resource.c (mark_target_live_regs): Likewise.
2656         * sched-deps.c (sched_analyze_insn): Likewise.
2657         * sched-rgn.c (sched-rgn.c): Likewise.
2658         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2659
2660 2004-10-18  Jakub Jelinek  <jakub@redhat.com>
2661
2662         * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
2663         operand 1 instead of 2
2664
2665 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
2666
2667         * loop-unroll.c: Fix comment typos.
2668
2669 2004-10-18  Revital Eres  <eres@il.ibm.com>
2670
2671         * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
2672         * loop-unroll.c: Include varray.h.
2673         (struct var_to_expand, struct opt_info): Rename split_ivs_info to
2674         opt_info and expand it to support variable expansion.
2675         (analyze_insns_in_loop): Rename analyze_ivs_to_split and
2676         expand it to support variable expansion.
2677         (pt_info_start_duplication): Rename si_info_start_duplication.
2678         (apply_opt_in_copies): Rename split_ivs_in_copies and add support
2679         to the variable expansion optimization.
2680         (free_opt_info): Rename free_si_info.
2681         (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
2682         expand_var_during_unrolling, insert_var_expansion_initialization,
2683         combine_var_copies_in_loop_exit, release_var_copies,
2684         get_expansion): New functions.
2685         (peel_loop_completely, unroll_loop_constant_iterations,
2686         unroll_loop_runtime_iterations, peel_loop_simple,
2687         unroll_loop_stupid): Change uses of struct si_info
2688         to struct opt_info
2689         and add uses of fvariable-expansion-in-unroller flag.
2690         * params.def: Add parameter to restrict the number of expansions.
2691         * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
2692         the number of expansions.
2693         * common.opt: (fvariable-expansion-in-unroller): New flag.
2694         * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
2695
2696 2004-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
2697
2698         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
2699         __GXX_MERGED_TYPEINFO_NAMES to 0.
2700
2701 2004-10-17  Hans-Peter Nilsson  <hp@bitrange.com>
2702
2703         * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
2704         handle barriers in a bb by checking that it points to a NULL bb.
2705         * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
2706         (emit_barrier_after, emit_barrier): Ditto.
2707
2708 2004-10-18  Joseph S. Myers  <jsm@polyomino.org.uk>
2709
2710         * doc/extend.texi (Attribute Syntax): Clarify details of
2711         attributes on parameters.
2712
2713 2004-10-17  Zdenek Dvorak  <dvorakz@suse.cz>
2714
2715         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
2716         loop.
2717
2718 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
2719
2720         Revert:
2721         2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
2722
2723         * c-typeck.c (default_function_array_conversion): Always create
2724         &a[0] for array types.
2725         (build_unary_op): Do not fold &a[x] into a + x.
2726
2727 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
2728
2729         PR middle-end/17925
2730         * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
2731         block if there is a goto with a locus.
2732
2733 2004-10-17  Kazu Hirata  <kazu@cs.umass.edu>
2734
2735         * config/elfos.h, config/gofast.h, config/interix.h,
2736         config/netbsd.h, config/svr3.h, config/vxworks.h,
2737         config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
2738         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
2739         config/alpha/netbsd.h, config/arm/arm-modes.def,
2740         config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
2741         config/cris/aout.h, config/frv/frv-modes.def,
2742         config/i386/beos-elf.h, config/i386/gas.h,
2743         config/i386/i386-coff.h, config/i386/i386-modes.def,
2744         config/i386/linux.h, config/i386/linux64.h,
2745         config/i386/mingw32.h, config/i386/netbsd-elf.h,
2746         config/i386/netbsd64.h, config/i386/sco5.h,
2747         config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
2748         config/ia64/ia64-modes.def, config/ia64/itanium1.md,
2749         config/ia64/itanium2.md, config/m68k/m68k-modes.def,
2750         config/mips/mips-modes.def, config/mips/sdb.h,
2751         config/mips/vr.h, config/mips/vxworks.h,
2752         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
2753         config/pa/pa32-linux.h, config/rs6000/40x.md,
2754         config/rs6000/7450.md, config/rs6000/8540.md,
2755         config/rs6000/linuxspe.h, config/rs6000/power4.md,
2756         config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
2757         config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
2758         config/s390/s390-modes.def, config/sh/elf.h,
2759         config/sh/sh-modes.def, config/sh/sh64.h,
2760         config/sparc/ultra1_2.md, config/sparc/ultra3.md,
2761         config/stormy16/stormy16.md, config/v850/v850-protos.h,
2762         config/vax/vax.md: Update copyright.
2763
2764 2004-10-17  Kazu Hirata  <kazu@cs.umass.edu>
2765
2766         * expr.c (expand_expr_real_1): Remove an obsolete comment.
2767
2768 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
2769
2770         * c-typeck.c (default_function_array_conversion): Always create
2771         &a[0] for array types.
2772         (build_unary_op): Do not fold &a[x] into a + x.
2773
2774 2004-10-17  Jakub Jelinek  <jakub@redhat.com>
2775
2776         * pointer-set.c (hash1): Use integer part of 2^64 / phi
2777         instead 2^32 / phi if long is 64-bit.
2778
2779 2004-10-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2780
2781         * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
2782         RID_PTRVALUE.
2783         * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
2784         declarations.
2785         (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
2786         __ptrextent__, __ptrvalue and __ptrvalue__.
2787         (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
2788         entries.
2789
2790 2004-10-16  Dale Johannesen  <dalej@apple.com>
2791
2792         * c-common.c (c_common_get_alias_set):  Use GGC for type_hash_table.
2793
2794 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
2795
2796         PR tree-optimization/17766
2797         * basic-block.h (enum dom_state): DOM_CONS_OK removed.
2798         (dom_info_available_p): Declare.
2799         * cfghooks.c (split_block, make_forwarder_block): Use
2800         dom_info_available_p.
2801         * dominance.c (compute_dom_fast_query, calculate_dominance_info,
2802         free_dominance_info, verify_dominators): Ditto.
2803         (dom_info_available_p): New function.
2804         * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
2805         (thread_jumps): Use dom_info_available_p.
2806         * tree-complex.c (expand_complex_div_wide): Ditto.
2807         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
2808
2809 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
2810
2811         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
2812         (find_best_candidate): Take also important candidates into account.
2813         (find_optimal_iv_set): Initialize important_candidates bitmap.
2814
2815 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
2816
2817         PR tree-optimization/17560
2818         * predict.c (tree_estimate_probability): Mark irreducible
2819         loops.
2820
2821 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
2822
2823         PR rtl-optimization/17723
2824         * cfgcleanup.c (merge_memattrs): Handle case when
2825         MEM_SIZE == NULL_RTX.
2826
2827 2004-10-15  Andrew Pinski  <pinskia@physics.uc.edu>
2828
2829         * toplev.c (dump_file_name): Change type to be const.
2830
2831 2004-10-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2832
2833         * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
2834         non_lvalue to stop something being a null pointer constant.
2835
2836 2004-10-15  Aldy Hernandez  <aldyh@redhat.com>
2837
2838         * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
2839         available for TARGET_FPRS.
2840         (FUNCTION_VALUE_REGNO_P): Same.
2841
2842 2004-10-15  Geoffrey Keating  <geoffk@apple.com>
2843
2844         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2845         -maltivec in same style as other ISA options.
2846
2847 2004-10-15  Jon Grimm <jgrimm2@us.ibm.com>
2848
2849         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
2850         definition.
2851
2852 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
2853
2854         * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
2855         collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
2856         gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
2857         genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
2858         gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
2859         gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
2860         lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
2861         predict.def, predict.h, protoize.c, reload.h, resource.h,
2862         rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
2863         tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
2864         unwind-sjlj.c, value-prof.h: Update copyright.
2865
2866 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
2867
2868         * pointer-set.c, tree-vectorizer.c: Fix comment typos.
2869
2870 2004-10-15  Diego Novillo  <dnovillo@redhat.com>
2871
2872         * tree-optimize.c (execute_one_pass): Stop timer right after
2873         executing the pass.
2874
2875 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
2876
2877         Revert:
2878         2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
2879         PR middle-end/17967
2880         Revert:
2881                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
2882                 (remove_useless_stmts_1):  Fold trees we know how to fold.
2883
2884 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
2885
2886         * configure.ac: Add .machine power4 directive when testing for
2887         mfcr field.
2888         * configure: Regenerate.
2889
2890 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
2891
2892         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
2893
2894 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
2895
2896         * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
2897         always.
2898
2899 2004-10-14  Daniel Jacobowitz  <dan@codesourcery.com>
2900
2901         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
2902         for 'f' if !TARGET_FPRS.
2903
2904 2004-10-14  Richard Henderson  <rth@redhat.com>
2905
2906         PR debug/14492
2907         * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
2908
2909 2004-10-14  Richard Henderson  <rth@redhat.com>
2910
2911         PR c/17023
2912         * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
2913         as error_mark_node.
2914         * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
2915         instaed of current_function_decl non-null.
2916
2917 2004-10-14  Matt Austern  <austern@apple.com>
2918
2919         * pointer-set.c: New file, special-purpose hash table.
2920         * pointer-set.h: New file.
2921         * tree.h (struct pointer_set_t): Declare as opaque type.
2922         (tree_walk): Last argument is pointer_set_t* now.
2923         * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
2924         (walk_type_fields):
2925         (walk_tree): Convert from htab_t to pointer_set_t for keeping
2926         track of which nodes have already been visited.
2927         (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
2928         * cgraphunit.c (cgraph_create_edges): Likewise.
2929         (cgraph_characterize_statics_local): Likewise.
2930         * tree-dfa.c (collect_dfa_stats): Likewise.
2931         * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
2932         pointer_set_t* now.
2933         * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
2934         * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
2935         of walk_subtrees is pointer_set_t* now.
2936         * Makefile.in (OBJS-common): add pointer-set.o
2937         (tree-inline.o): Depends on pointer-set.h
2938         (tree-dfa.o): Likewise
2939         (cgraphunit.o): Likewise
2940
2941 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
2942
2943         * config/rs6000/darwin.h (ASM_SPEC): Delete.
2944         (TARGET_ASM_FILE_START): Define.
2945         * config/darwin.h (ASM_SPEC): Define.
2946         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
2947         -mlong-double-128, it's the default.  Update comment about reason
2948         for force_cpusubtype_ALL.
2949         * config/rs6000/darwin-vecsave.asm: Supply .machine.
2950         * config/rs6000/darwin-world.asm: Likewise.
2951         * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
2952         (symbolic_operand): Delete #if 0ed code.
2953
2954 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
2955
2956         * stmt.c (add_case_node): Make sure that we have integer
2957         constant before calling tree_int_cst_compare.
2958
2959 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
2960
2961         PR middle-end/17967
2962         Revert:
2963                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
2964                 (remove_useless_stmts_1):  Fold trees we know how to fold.
2965
2966 2004-10-14  Joseph S. Myers  <joseph@codesourcery.com>
2967
2968         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
2969         config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
2970         -m64.
2971
2972 2004-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
2973
2974         * reload.c (find_reloads): When reloading a PLUS with constant
2975         operand, make sure the constant is pushed to the constant pool
2976         if required.
2977         * config/s390/s390.c (s390_secondary_input_reload_class): Remove
2978         reload bug workaround.
2979         (s390_expand_plus_operand): Likewise.
2980
2981 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
2982
2983         * opts.c (common_handle_option): Do not enable
2984         flag_speculative_prefetching for -fprofile-generate/use.
2985
2986 2004-10-14  Devang Patel  <dpatel@apple.com>
2987
2988         PR 17635
2989         * tree-if-conv.c (process_phi_nodes): Process latch block.
2990         (combine_blocks): Process latch block and update loop structure.
2991
2992 2004-10-14  Olga Golovanevsky  <olga@il.ibm.com>
2993
2994         * tree-vectorizer.c (vect_generate_tmps_on_preheader):
2995         (vect_update_ivs_after_vectorizer):
2996         (vect_transform_for_unknown_loop_bound):
2997         (tree_duplicate_loop_to_edge):
2998         (allocate_new_names):
2999         (rename_use_op):
3000         (rename_def_op):
3001         (rename_variables_in_bb):
3002         (free_new_names):
3003         (rename_variables_in_loop):
3004         (copy_phi_nodes):
3005         (update_phis_for_duplicate_loop):
3006         (update_phi_nodes_for_guard):
3007         (make_loop_iterate_ntimes):
3008         (tree_duplicate_loop_to_edge_cfg):
3009         (add_loop_guard):
3010         (vect_analyze_loop_with_symbolic_num_of_iters):
3011         (verify_loop_for_duplication):
3012         (vect_gen_niters_for_prolog_loop):
3013         (vect_update_niters_after_peeling):
3014         (vect_update_inits_of_dr):
3015         (vect_update_inits_of_drs):
3016         (vect_build_loop_niters):
3017         (vect_do_peeling_for_alignment): New functions.
3018         (vect_transform_loop): Add unknown and known but indivisible loop
3019         bound support; add peeling for unalignment support.
3020         (vect_analyze_loop_form): Support symbolic number of iterations.
3021         (vect_transform_loop_bound): New input parameter.
3022         (vect_get_loop_niters): Change input parameter type.
3023         (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
3024         (vectorizable_store): Allow unaligned access.
3025         (vectorize_loops): Add rewrite_into_loop_closed_ssa.
3026         (vect_analyze_data_refs_alignment): Allowed one unaligned
3027         store.
3028         * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
3029         to use tree.
3030         (LOOP_VINFO_INT_NITERS): New macro.
3031         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
3032         (do_peeling_for_alignment):
3033         (unaligned_drs): New members of _loop_vec_info.
3034         (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
3035
3036 2004-10-14  Ranjit Mathew  <rmathew@hotmail.com>
3037
3038         * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
3039         (struct tree_string): Remove "const" qualifier for "str".
3040
3041 2004-10-14  Ira Rosen  <irar@il.ibm.com>
3042
3043         * tree-vectorizer.c (vect_analyze_data_refs): Call
3044         vect_get_base_and_bit_offset to get memory tag for array ref.
3045         (vect_create_addr_base_for_vector_ref): Remove redundant checks.
3046
3047 2004-10-14  Richard Earnshaw  <rearnsha@arm.com>
3048
3049         * configure.ac: Use $LN_S for creating symlinks (not $LN).
3050         * configure: Regenerate.
3051
3052 2004-10-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3053
3054         * doc/install.texi (*-*-solaris2*): Update with info about kernel
3055         patches to solve spurious testsuite failures.
3056
3057 2004-10-14  Dorit Naishlos  <dorit@il.bim.com>
3058
3059         * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
3060         Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
3061         (vect_analyze_operations): Make sure the vectorization factor > 1. Add
3062         gcc_assert under ENABLE_CHECKING.
3063         (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
3064         get_vectype_for_scalar_type).
3065
3066         (vect_get_vec_def_for_operand): Remove redundant variables.
3067         (vect_transform_loop): Likewise.
3068
3069 2004-10-14  Richard Sandiford  <rsandifo@redhat.com>
3070
3071         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
3072         global for -mcaller-super-interworking.
3073         (CALLER_INTERWORKING_SLOT_SIZE): New macro.
3074         * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
3075         CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
3076         not need a frame pointer.
3077         (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
3078         the soft frame pointer offset.
3079         (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
3080         * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
3081         _interwork_{r7,r11}_call_via_rN if some arguments are passed on
3082         the stack.  Use frame_pointer_needed to choose between them.
3083         * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
3084         (interwork_with_frame): New macro.
3085         (interwork): Add _interwork_{r7,r11}_call_via_rN().
3086
3087 2004-10-14  Ben Elliston  <bje@au.ibm.com>
3088
3089         PR other/17900
3090         * diagnostic.c (trim_filename): Fix logic bug in walking backwards
3091         up the filename looking for a previous directory separator.
3092
3093 2004-10-14  Joseph S. Myers  <jsm@polyomino.org.uk>
3094
3095         * c-tree.h (enum c_typespec_kind, struct c_typespec,
3096         parser_xref_tag): New.
3097         (struct c_declspecs): Add tag_defined_p.  Adjust definition of
3098         typedef_p.
3099         (declspecs_add_type): Adjust prototypes.
3100         * c-parse.in (%union): Add tstype.
3101         (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
3102         typespec_reserved_attr, typespec_nonreserved_nonattr,
3103         structsp_attr, structsp_nonattr): Change to tstype.  Update
3104         actions.
3105         * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
3106         (declspecs_add_type): Update to take struct c_typespec argument.
3107         Set tag_defined_p and typedef_p as appropriate.
3108         (xref_tag): Rename to parser_xref_tag and replace by wrapper.
3109         Update to return struct c_typespec.
3110         (shadow_tag_warned): Don't let empty declarations with qualifiers
3111         or storage class specifiers redeclare a tag if a previous
3112         declaration is visible.
3113
3114 2004-10-13  Richard Henderson  <rth@redhat.com>
3115
3116         PR debug/15860
3117         * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
3118         for DECL_INCOMING_RTL.
3119
3120 2004-10-14  Hans-Peter Nilsson  <hp@axis.com>
3121
3122         PR target/17984
3123         * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
3124         trunc_int_for_mode for constants used in shortened mode.
3125
3126 2004-10-13  Richard Henderson  <rth@redhat.com>
3127
3128         PR c/17384
3129         * c-common.c (handle_mode_attribute): Disallow mode changes that
3130         alter the CODE of the top-level type.
3131
3132         * crtstuff.c (__FRAME_END__): Remove mode attribute.  Find 32-bit
3133         integer from internal limits macros.
3134         * config/i386/mm3dnow.h (__v2sf): Fix base type.
3135
3136 2004-10-13  Richard Henderson  <rth@redhat.com>
3137
3138         PR debug/13841
3139         * function.c (instantiate_decl): Recurse for CONCAT.
3140
3141 2004-10-13  David Edelsohn  <edelsohn@gnu.org>
3142
3143         * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
3144         andi./andis.
3145         (anddi3): Same.
3146         (extzvdi_internal1): Add attribute "compare".
3147         (extzvdi_internal2): Same.
3148
3149 2004-10-12  Tom Tromey  <tromey@redhat.com>
3150
3151         * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
3152
3153 2004-10-13  Dale Johannesen  <dalej@apple.com>
3154
3155         * doc/extend.texi (Extended Asm):  Rewrite asm volatile description.
3156
3157 2004-10-13  Frank Ch. Eigler  <fche@redhat.com>
3158
3159         * toplev.c (compile_file): Call mudflap_finish_file from here ...
3160         * c-decl.c (c_write_global_declarations): ... instead of here ...
3161         * cp/decl.c (cp_finish_file): ... and here.
3162         * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
3163
3164 2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
3165
3166         * tree-ssa-dom.c (record_range): Free the element if we are not
3167         going to use it.
3168
3169 2004-10-13  Tom Tromey  <tromey@redhat.com>
3170
3171         PR java/15578:
3172         * gcc.c (option_map): Added --extdirs and --encoding.
3173
3174 2004-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3175
3176         PR target/14454
3177         * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
3178         sparc_can_output_mi_thunk.
3179         (sparc_output_mi_thunk): Simplify handling of delta offset.  Add
3180         handling of vcall offset.
3181         (sparc_can_output_mi_thunk): New predicate.
3182         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
3183         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
3184         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
3185
3186         * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
3187
3188         * config/sparc/sparc.md (movdi): Remove redundant test.
3189
3190 2004-10-13  Paolo Bonzini  <bonzini@gnu.org>
3191
3192         * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
3193         TDF_IPA from -fdump-tree-*-all.
3194
3195 2004-10-13  Paul Brook  <paul@codesourcery.com>
3196
3197         * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
3198         * config/arm/arm.c (thumb_find_work_register): Update comments.
3199         (arm_load_pic_register): Add argument for scratch register.
3200         (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
3201         * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
3202
3203 2004-10-13  Kazu Hirata  <kazu@cs.umass.edu>
3204
3205         * tree-data-ref.c: Fix comment typos.
3206
3207 2004-10-13  Jakub Jelinek  <jakub@redhat.com>
3208             Zdenek Dvorak  <dvorakz@suse.cz>
3209
3210         PR tree-optimization/17724
3211         * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
3212
3213 2004-10-13  Dorit Naishlos  <dorit@il.ibm.com>
3214
3215         * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
3216         (altivec_builtin_mask_for_store): Likewise.
3217         (altivec_init_builtins): Use lang_hooks.builtin_function to
3218         create the decls for builtin_altivec_mask_for_load/store.
3219
3220 2004-10-13  Nick Clifton  <nickc@redhat.com>
3221
3222         * config/c4x/c4x.c: Remove inclusion of loop.h.
3223
3224 2004-10-12  Ben Elliston  <bje@au.ibm.com>
3225
3226         * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
3227         (ei_container): New; renamed.
3228         (ei_start, ei_last): New macros.
3229         (ei_start_1, ei_last_1): Renamed from ei_start.
3230         (ei_last_1, ei_end_p): Use ei_container() where applicable.
3231         (ei_one_before_end_p, ei_next, ei_edge): Likewise.
3232         * gcse.c (remove_reachable_equiv_notes): Use ei_container().
3233
3234 2004-10-11  Sebastian Pop  <pop@cri.ensmp.fr>
3235
3236         * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
3237         * cfgloop.c (initialize_loops_parallel_p): New.
3238         (flow_loops_find): Initialize the parallel_p field to true for all
3239         the loops.
3240         * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
3241         (estimate_numbers_of_iterations_loop): Infers the loop bounds from
3242         the size of the data accessed in the loop.
3243         (struct nb_iter_bound): Moved...
3244         * cfgloop.h (struct nb_iter_bound): ... here.
3245         (estimated_nb_iterations, parallel_p): New fields in struct loop.
3246         (record_estimate): Declare extern here.
3247         * tree-chrec.c: Fix comments.
3248         (nb_vars_in_chrec): New function.
3249         * tree-chrec.h (nb_vars_in_chrec): Declared here.
3250         * tree-data-ref.c: Don't include lambda.h, that is already included
3251         in tree-data-ref.h.
3252         (tree_fold_divides_p): Don't check for integer_onep.
3253         (tree_fold_bezout): Removed.
3254         (gcd): New static duplicated function.
3255         (int_divides_p, dump_subscript): New.
3256         (dump_data_dependence_relation): Use dump_subscript.
3257         (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
3258         estimate_niter_from_size_of_data): New.
3259         (analyze_array_indexes, analyze_array): Call
3260         estimate_niter_from_size_of_data during the detection of array
3261         references.  Pass in a pointer to the statement that contains the
3262         array reference.
3263         (all_chrecs_equal_p): New.
3264         (compute_distance_vector): Renamed compute_subscript_distance.
3265         Deal with multivariate conflict functions.
3266         (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
3267         DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
3268         (non_affine_dependence_relation): New.
3269         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
3270         analyze_siv_subscript, analyze_miv_subscript,
3271         analyze_overlapping_iterations, subscript_dependence_tester):
3272         Initialize and return last_conflicts function.
3273         (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
3274         compute_overlap_steps_for_affine_1_2): New.
3275         (analyze_siv_subscript_affine_cst): Removed.
3276         (analyze_subscript_affine_affine): Disprove dependences based on the
3277         iteration domains.  Solve the univariate dependence case as before,
3278         but use lambda_matrix_right_hermite instead of tree_fold_bezout.
3279         Implement the multivariate case of 2 versus 1 variables.
3280         (build_classic_dist_vector, build_classic_dir_vector): Implement some
3281         unhandled cases.
3282         (find_data_references_in_loop): Compute and initialize
3283         loop->estimated_nb_iterations and loop->parallel_p.
3284         (analyze_all_data_dependences): Modify the debug dump order.
3285         * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
3286         subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
3287         (SUB_LAST_CONFLICT, subscript->last_conflict,
3288         data_dependence_relation->affine_p, data_dependence_relation->size_vect,
3289         DDR_AFFINE_P, DDR_SIZE_VECT): New.
3290         (find_data_references_in_loop, initialize_data_dependence_relation,
3291         dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
3292
3293 2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>
3294
3295         * configure: Regenerate.
3296
3297 2004-10-12  Fariborz Jahanian <fjahanian@apple.com>
3298
3299         PR 17892
3300         * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
3301         (simplify_rhs_and_lookup_avail_expr): Disallow associativity
3302         and constant folding of floating point MULT_EXPR/PLUS_EXPR
3303         expressions.
3304
3305 2004-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
3306
3307         * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
3308         (s390_gimplify_va_arg): Likewise.
3309
3310 2004-10-12  Daniel Jacobowitz  <dan@debian.org>
3311
3312         * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
3313         (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
3314         (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
3315         * regclass.c (record_address_regs): Remove ifdef.  Use
3316         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
3317         * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
3318         definition.
3319         (scan_rtx_address, replace_oldest_value_addr): Use
3320         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
3321         * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
3322         unnecessary definitions.
3323         (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
3324         and MODE_BASE_REG_REG_CLASS.
3325         * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
3326         (MODE_BASE_REG_REG_CLASS): Define.
3327         (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
3328         (REG_MODE_OK_FOR_REG_BASE_P): Define.
3329         * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
3330         REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
3331
3332 2004-10-12  Daniel Berlin <dberlin@dberlin.org>
3333
3334         * tree-ssa-alias.c (verify_name_tags): New function.
3335         (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
3336         (verify_alias_info): Call verify_name_tags.
3337
3338 2004-10-12  Kazu Hirata  <kazu@cs.umass.edu>
3339
3340         PR rtl-optimization/17931
3341         * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
3342         ZERO_EXTRACT in it.
3343
3344 2004-10-12  Richard Earnshaw  <rearnsha@arm.com>
3345
3346         * arm.c (arm_print_operand): Use output_operand_lossage where possible
3347         rather than aborting.
3348
3349 2004-10-12  Paul Brook  <paul@coudesourcery.com>
3350
3351         * config.gcc: Add armv6{k,z,zk}
3352         * config/arm/arm-cores.def: Add arm1176 and mpcore.
3353         * config/arm/tune.md: Regenerate.
3354         * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
3355         Define.
3356         (all_architectures): Add armv6k, armv6z, armv6zk.
3357         * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
3358         * doc/invoke.texi: Document new arch and cpu values.
3359
3360 2004-10-12  Paul Brook  <paul@coodesourcery.com>
3361
3362         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
3363         meabi=4.
3364
3365 2004-10-12  Paul Brook  <paul@codesourcery.com>
3366
3367         * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
3368         Handle negative constants.
3369
3370 2004-10-12  Joseph S. Myers  <jsm@polyomino.org.uk>
3371
3372         PR c/17301
3373         * c-typeck.c (convert_arguments): Return error_mark_node if there
3374         are too few arguments.
3375         (build_function_call): Handle error_mark_node return from
3376         convert_arguments.
3377
3378 2004-10-06  Paolo Bonzini  <bonzini@gnu.org>
3379
3380         * configure.ac (symbolic_link): Replace with $LN_S.
3381         (Assembler/Linker): Hard link from gas and binutils trees.
3382         * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
3383         * configure: Regenerate.
3384
3385 2004-10-12  Paul Brook  <paul@codesourcery.com>
3386
3387         * configure.ac: Don't look for host assembler when building a canadian
3388         cross.
3389         * configure: Regenerate.
3390
3391 2004-10-11  Roger Sayle  <roger@eyesopen.com>
3392
3393         PR other/17361
3394         * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
3395         (c_common_init_options): Remove #ifdef CL_F77 code.  Scan command
3396         line options for "-lang-asm" and if found allow any of the C-family
3397         front-end options.
3398         (c_common_handle_option): Remove last use of permit_fortran_options.
3399
3400 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
3401
3402         * config/s390/s390.c (print_operand): Support 'S' format flag.
3403         * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
3404         ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
3405         ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
3406         ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
3407         ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
3408         ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
3409         ("*movstricthi"): Likewise.
3410         ("*load_multiple_di", "*load_multiple_si"): Likewise.
3411         ("*store_multiple_di", "*store_multiple_si"): Likewise.
3412         ("*sethiqisi", "*sethihisi"): Likewise.
3413         ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
3414         ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
3415         ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
3416         ("*xorqi3", "*xc", "*xc_zero"): Likewise.
3417         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
3418
3419         ("*tmhi_full"): Fix incorrect op_type attribute.
3420
3421         ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
3422         ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
3423         ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
3424         ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
3425
3426 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu
3427
3428         PR middle-end/16266
3429         * function.c (temp_slots_at_level): Fix typo which creates too
3430         many temp stack slots levels.
3431
3432 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
3433
3434         * config/s390/s390.c (s390_trampoline_template): Generate shorter
3435         trampoline code.
3436         (s390_trampoline_instantiate): Adapt.
3437         * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
3438
3439 2004-10-11  Roger Sayle  <roger@eyesopen.com>
3440
3441         PR middle-end/17657
3442         * stmt.c (add_case_node): Add additional type argument.  Declare
3443         as static to match prototype.  Convert the upper and lower bounds
3444         to the specified index type.  Optimize away case ranges/values
3445         that are outside the index type's bounds.  Truncate case ranges
3446         that span the index type's bounds.
3447         (expand_case): Avoid unnessary computation and memory allocation
3448         when index type is error_mark_node.  Pass index_type as required
3449         by change to add_case_node API.  No need to convert case range
3450         bounds to index_type, this is now done by add_case_node.
3451
3452 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
3453
3454         * config/s390/s390-protos.h (s390_offset_p): Add prototype.
3455         * config/s390/s390.c (s390_offset_p): New function.
3456         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
3457         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
3458         transform Q->Q alternatives to *clc pattern.
3459         ("*clc"): Move.
3460         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
3461         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
3462         to transform Q->Q alternatives to *mvc pattern.
3463         ("*mvc"): Move.  Add peephole to merge adjacent MVCs.
3464         ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
3465         "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
3466         transform Q->Q alternatives to *nc pattern.
3467         ("*nc"): New insn.  New peephole to merge adjacent NCs.
3468         ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
3469         "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
3470         transform Q->Q alternatives to *oc pattern.
3471         ("*oc"): New insn.  New peephole to merge adjacent OCs.
3472         ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
3473         transform Q->Q alternatives to *xc pattern.
3474         ("*xc"): New insn.  New peephole to merge adjacent XCs.
3475         ("*xc_zero"): Move.  Add peephole to merge adjacent XCs.
3476
3477 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
3478
3479         * gimplify.c (gimple_push_condition): Make sure that we don't
3480         have any saved condition cleanup if we were at the top level.
3481
3482 2004-10-11  Richard Sandiford  <rsandifo@redhat.com>
3483
3484         * config/frv/frv.md (*adddi3_internal): Change name to...
3485         (adddi3): ...replacing the exisiting define_expand.  Combine
3486         alternatives.  Fix the range of the constant constraints ('J' instead
3487         of 'NOP').  Remove bogus operands[2] check.  Use simplify_gen_subreg
3488         to extract the lower and upper halves of the DImode operands.
3489         Always use addi3_lower and adddi3_upper, not the subdi3 forms.
3490         (adddi3_lower): Fix the range of the constant constraints and
3491         remove the bogus operands[2] check.
3492         (adddi3_upper): Use gpr_or_int10_operand as the predicate for
3493         operand 2.  Use addxi to handle constant operands.
3494         (subdi3_lower, subdi3_upper): Don't handle constant operands.
3495
3496 2004-10-11  Nathan Sidwell  <nathan@codesourcery.com>
3497
3498         * gengtype-lex.l: Add commented } & ) characters to unconfuse
3499         editor's paren matching. Allow #define inside a struct.
3500
3501 2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>
3502
3503         PR middle-end/17703
3504         part of PR c++/17657
3505         * fold-const.c (fold_build_cleanup_point_expr): New function.
3506         * tree.h (fold_build_cleanup_point_expr): Prototype.
3507
3508 2004-10-10  Eric Christopher  <echristo@redhat.com>
3509
3510         * dwarf2out.c: Move attribute to subprogram declaration
3511         instead of subroutine type.
3512
3513 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
3514
3515         * basic-block.h: Remove the prototypes for can_hoist_insn_p,
3516         hoist_insn_after, and hoist_insn_to_edge.
3517         * rtl.h: Remove the prototypes for reg_referenced_between_p,
3518         no_jumps_between_p, and insn_dependent_p.
3519         * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
3520         insn_dependent_p, insn_dependent_p_1, hoist_test_store,
3521         can_hoist_insn_p, hoist_update_store, hoist_insn_after,
3522         hoist_insn_to_edge): Remove.
3523
3524 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
3525
3526         PR c/17881
3527         * c-decl.c (grokparms): Don't warn for parameters of incomplete
3528         type in declarations that are not definitions except for the case
3529         of parameters of void type.
3530
3531 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
3532
3533         * tree-cfg.c: Fix comment typos.
3534
3535 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
3536
3537         PR c/17301
3538         * builtins.c (expand_builtin_va_start): Check for too few
3539         arguments to va_start.
3540
3541 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
3542
3543         PR c/17189
3544         * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
3545         fields a pedwarn.  Pedwarn here for unnamed structs/unions if
3546         pedantic.
3547         * c-parse.in (component_decl): Don't pedwarn here for unnamed
3548         fields.
3549
3550 2004-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
3551
3552         PR tree-optimization/17906
3553         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
3554         copy non-gimple reg arguments.
3555
3556 2004-10-09  Roger Sayle  <roger@eyesopen.com>
3557
3558         PR rtl-optimization/17853
3559         * simplify-rtx.c (simplify_relational_operation): Correct comment.
3560         Reorganize handling of comparison operations with floating point
3561         results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
3562         Likewise, introduce support for comparison operations with vector
3563         result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
3564
3565         * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
3566         * doc/tm.texi: Likewise.
3567
3568 2004-10-09  Steven Bosscher  <stevenb@suse.de>
3569
3570         * regs.h (struct reg_info_def): Remove the last_node_uid and
3571         changes_mode fields.
3572         (REGNO_LAST_NOTE_UID): Don't define.
3573         * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
3574         * regmove.c (copy_src_to_dest): Likewise.
3575
3576 2004-10-09  Roger Sayle  <roger@eyesopen.com>
3577
3578         PR middle-end/17894
3579         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
3580         relational comparison operator op needs to be swapped/reversed when
3581         C1 is negative.  i.e. X/-10 < 1 becomes X >= -9, not X < -9.
3582
3583 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
3584
3585         PR tree-opt/17902
3586         * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
3587         instead of bsi_start.
3588         (value_replacement): Likewise.
3589         (abs_replacement): Likewise
3590
3591 2004-10-09  Steven Bosscher  <stevenb@suse.de>
3592
3593         * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
3594         (expand_gimple_cond_expr, expand_gimple_tailcall,
3595         expand_gimple_basic_block): Use it to dump RTL for each stmt.
3596         (tree_expand_cfg): Announce full RTL function dump.
3597         * tree-optimize.c (execute_one_pass): Use normal RTL printing,
3598         not the graph version.
3599         * tree-pretty-print.c (dump_generic_node): Allow empty statements
3600         in the arms of a COND_EXPR for lowered nodes.
3601
3602 2004-10-08  Joseph S. Myers  <joseph@codesourcery.com>
3603
3604         * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
3605         atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
3606         strtoufix16, strtoufix32, strtoufix64): Declare.
3607
3608 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
3609
3610         * c-lex.c (interpret_float): Give a pedwarn rather than a warning
3611         for an out-of-range floating point constant.
3612         * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
3613         warning if the target format does not support infinities.
3614
3615 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
3616
3617         * emit-rtl.c (last_label_num, base_label_num): Remove.
3618         (max_label_num): Always return label_num.
3619         (set_new_last_label_num, restore_emit_status): Remove.
3620         (init_emit): Don't initialize last_label_num.
3621         * function.c (pop_function_context_from): Don't call
3622         restore_emit_status.
3623         * function.h: Remove the prototype for restore_emit_status.
3624         * rtl.h: Remove the prototype for set_new_last_label_num.
3625
3626 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
3627
3628         * stmt.c (expand_decl_init): Remove.
3629         * tree.h: Remove the corresponding prototype.
3630
3631 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
3632
3633         * integrate.c (try_constants, subst_constants, mark_stores):
3634         Remove.
3635         * integrate.h: Remove the prototype for try_constants.
3636
3637 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
3638
3639         * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
3640         (convert_for_assignment): Handle ic_argpass_nonproto.  Add
3641         comments about its relevance to errors.
3642         (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
3643
3644 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
3645
3646         PR c/16999
3647         * c-ppoutput.c (cb_ident): Don't quote string as it is already
3648         quoted.
3649
3650 2004-10-08  Diego Novillo  <dnovillo@redhat.com>
3651
3652         * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
3653         reference_node_pool.
3654
3655 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
3656
3657         * tree-cfg.c: Fix a comment typo.
3658
3659 2004-10-08  Andreas Krebbel  <krebbel1@de.ibm.com>
3660
3661         * config/s390/s390.c (s390_register_info): Don't save fprs for
3662         -msoft-float.
3663         (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
3664
3665 2004-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
3666
3667         * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
3668         (TARGET_DEFAULT): Use symbolic values.
3669         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
3670         (TARGET_DEFAULT): Use symbolic values.
3671         * config/s390/s390.c (s390_backchain_string): Initialize to
3672         TARGET_DEFAULT_BACKCHAIN.
3673
3674 2004-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3675
3676         * builtins.c (expand_builtin_mempcpy): Move tree handling code to
3677         fold_builtin_mempcpy.  Accept a type parameter.  Delete duplicate
3678         code.
3679         (expand_builtin_strcat): Accept a type parameter.
3680         (fold_builtin_mempcpy): Accept a type and endp parameter.
3681
3682         * builtins.c (expand_builtin_strncpy): Delete duplicate code.
3683         Accept an `exp' instead of an `arglist'.
3684
3685 2004-10-08  Nathan Sidwell  <nathan@codesourcery.com>
3686
3687         * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
3688         reverting my 2004-09-07 patch to use build_int_cst.
3689
3690 2004-10-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
3691
3692         PR target/17245
3693         * config/sparc/sparc.c (input_operand): Remove redundant code
3694         for handling LO_SUM.
3695         (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
3696         <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
3697         Otherwise only accept it for TFmode if quad move insns are available.
3698
3699 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
3700
3701         * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
3702         common cases will be caught earlier than others.
3703
3704 2004-10-08  Michael Matz  <matz@suse.de>
3705
3706         * loop-doloop.c (doloop_optimize): Extend count.
3707
3708 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3709
3710         * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
3711         (prefetch): Convert to expander.
3712
3713 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3714
3715         * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
3716         first argument of CALL.
3717         (tls_local_dynamic): Likewise.
3718
3719 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
3720
3721         * c-typeck.c (enum impl_conv): New.
3722         (convert_for_assignment): Use it.  Take tree for function called
3723         instead of its name.  Handle ObjC selectors for diagnostics at
3724         start of function.  Select diagnostic text within the function
3725         using full sentences for diagnsotics.  Use %qE to name functions
3726         in diagnostics.
3727         (convert_arguments, build_modify_expr,
3728         c_convert_parm_for_inlining, digest_init, c_finish_return): Update
3729         callers to convert_for_assignment.
3730         (warn_for_assignment): Remove.
3731
3732 2004-10-08  Nick Clifton  <nickc@redhat.com>
3733
3734         * config/sh/symbian.c (symbian_possibly_export_base_class):
3735         Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
3736         TYPE_CONTAINS_VPTR_P.
3737
3738 2004-10-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3739
3740         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
3741         fixed registers form all_used_regs. Update call_really_used_regs.
3742         (CALL_REALLY_USED_REGISTERS): Define.
3743         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
3744         with call_really_used_regs.
3745
3746 2004-10-08  Alan Modra  <amodra@bigpond.net.au>
3747
3748         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
3749         for -profile as well as -p and -pg.
3750
3751 2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>
3752
3753         * libgcc2.c (__moddi3): Cast &w to UDWtype*.
3754
3755 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
3756
3757         * tree-cfg.c (tree_block_forwards_to): Remove.
3758         * tree-flow.h: Remove the corresponding prototype.
3759
3760 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
3761
3762         * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
3763         for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
3764
3765 2004-10-07  Geoffrey Keating  <geoffk@apple.com>
3766
3767         Radar 3813796
3768         * config/rs6000/rs6000.c (rs6000_generate_compare): When
3769         flag_trapping_math is in effect, don't generate subtract
3770         instructions.
3771
3772 2004-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
3773
3774         * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
3775         * config/s390/s390.c (s390_narrow_logical_operator): New function.
3776         (s390_extra_constraint_str): Add 'A' constraints.
3777         (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
3778         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
3779         (CONSTRAINT_LEN): Likewise.
3780         * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
3781         ("*andsi3_zarch", "*andsi3_esa"): Likewise.
3782         ("*andhi3_zarch", "*andhi3_esa"): Likewise.
3783         ("*iordi3"): Add OI alternative and splitter.
3784         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
3785         ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
3786         ("*xordi3"): Add XI alternative and splitter.
3787         ("*xorsi3", "*xorhi3"): Likewise.
3788
3789 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
3790
3791         * config/mips/mips.c (mips_function_rodata_section): New function.
3792         (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
3793
3794 2004-10-07  Devang Patel  <dpatel@apple.com>
3795
3796         * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
3797         UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
3798         UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
3799         UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
3800         UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
3801         UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
3802         UNSPEC_VCONDU_V16QI): New constant defines.
3803         (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
3804         vconduv16qi): New patterns.
3805         * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
3806         * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
3807         (get_vec_cmp_insn): Same.
3808         (get_vsel_insn): Same.
3809         (rs6000_emit_vector_compare): Same.
3810         (rs6000_emit_vector_select): Same.
3811         (INSN_NOT_AVAILABLE): New.
3812
3813 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
3814
3815         PR tree-optimization/17749
3816         * tree-tailcall.c (find_tail_calls): Check that parameter is
3817         a gimple_reg.
3818
3819 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
3820
3821         * config/ia64/ia64.c: Fix a comment typo.
3822
3823 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3824
3825         * doc/install.texi (*-*-solaris2*): Fix marker for URL.
3826
3827 2004-10-07  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3828
3829         PR c++/17115
3830         * tree-inline.c (expand_call_inline): Do not warn for functions
3831         marked with attribute noinline.
3832
3833 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3834
3835         PR target/17862
3836         * config/sparc/sparc.c (sparc_output_mi_thunk): Set
3837         current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
3838
3839         * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
3840         of 0 as 4th argument to pass_by_reference.
3841         Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
3842
3843 2004-10-06  Eric Christopher  <echristo@redhat.com>
3844
3845         * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
3846         attribute.
3847
3848 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
3849
3850         PR target/17770
3851         * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
3852
3853 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
3854
3855         PR rtl-optimization/17791
3856         * loop-doloop.c (doloop_modify): Take number of iterations as
3857         argument.
3858         (doloop_optimize): Extend or shorten the number of iterations
3859         when changing mode of counter register.
3860         * loop-iv.c (lowpart_subreg): Export.
3861         * rtl.h (lowpart_subreg): Declare.
3862
3863 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
3864
3865         PR tree-optimization/17806
3866         * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
3867         * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
3868         flags moved to split_edge.
3869
3870 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3871
3872         PR middle-end/17835
3873         * expmed.c (expand_sdiv_pow2): Force a stack adjustment
3874         before tentatively building the conditional move sequence.
3875
3876 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
3877
3878         PR target/16815
3879         * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
3880         check.
3881         * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
3882         function_arg_padding.
3883
3884 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
3885
3886         PR bootstrap/17857
3887         * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
3888
3889 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
3890
3891         * hooks.c (hook_int_void_1, hook_void_int): Remove.
3892         * hooks.h: Remove the corresponding prototypes.
3893
3894 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
3895
3896         PR middle-end/17849
3897         * tree-nested.c (walk_stmt_info): Add changed field.
3898         (convert_nonlocal_reference): Set changed to when we
3899         change a decl to unnested decl.
3900         <case ADDR_EXPR>: Instead of checking if the immediate part
3901         of the ADDR_EXPR changed, check the field changed.
3902         Use recompute_tree_invarant_for_addr_expr instead of unsetting
3903         TREE_INVARIANT.
3904         (convert_local_reference):  Set changed to when we
3905         change a decl to unnested decl.
3906         <case ADDR_EXPR>: Instead of checking if the immediate part
3907         of the ADDR_EXPR changed, check the field changed.
3908         Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
3909
3910 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
3911
3912         * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
3913         * dwarf2out.c (dwarf2out_init): Remove references to
3914         DWARF2_GENERATE_TEXT_SECTION_LABEL.
3915         * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
3916         * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
3917
3918 2004-10-06  Joseph S. Myers  <jsm@polyomino.org.uk>
3919
3920         * c-typeck.c (convert_arguments): Take expression for called
3921         function rather than its name.  Handle ObjC selectors directly
3922         rather than relying on warn_for_assignment to do so.  Call warning
3923         directly rather than warn_for_assignment.  Use %qE in diagnostics.
3924         Say "argument" rather than "arg" in diagnostics.
3925         (build_function_call): Update call to convert_arguments.
3926
3927 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
3928
3929         PR debug/17787
3930         * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
3931         ENUMs specially instead of just saying we do.
3932
3933 2004-10-06  Eric Christopher  <echristo@redhat.com>
3934
3935         * dwarf2.h: Sync with include/elf/dwarf2.h
3936
3937 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
3938
3939         * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
3940         and TREE_VEC nodes.
3941
3942 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
3943
3944         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
3945         to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
3946
3947 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
3948
3949         * lambda-code.c (compute_nest_using_fourier_motzkin): New
3950         function.
3951         (lambda_compute_auxillary_space): Split from here.
3952
3953 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
3954
3955         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
3956         * tree-flow.h: Add prototype.
3957         * lambda-code.c (invariant_in_loop_and_outer_loops): Use
3958         expr_invariant_in_loop.
3959
3960 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
3961
3962         * tree-cfg.c (thread_jumps): Remove a duplicate check for
3963         EXIT_BLOCK_PTR.
3964
3965 2004-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
3966
3967         * config/s390/s390-protos.h (s_imm_operand): Remove.
3968         (s390_pool_operand): Add prototype.
3969         * config/s390/s390.c (general_s_operand): Remove.
3970         (s_imm_operand): Remove.
3971         (s_operand): Merge contents of general_s_operand.
3972         (s390_pool_operand): New function.
3973         * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
3974         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
3975         ("*cmpdi_ccu"): Merge Q->Q alternative.
3976         ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
3977         ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
3978         ("*cli"): Remove.
3979         ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
3980         ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
3981         ("*movstricthi"): Use memory_operand instead of s_imm_operand.
3982
3983 2004-10-06  Steve Ellcey  <sje@cup.hp.com>
3984
3985         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
3986         call ia64_function_arg_boundary.
3987         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
3988         * config/ia64/ia64.c (ia64_function_arg_boundary): New.
3989         (ia64_function_arg_advance): Do not put 128 bit floats into
3990         FP registers.
3991
3992 2004-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3993
3994         * builtins.c (expand_builtin_strcpy): Delete duplicate code.
3995         Accept an expression instead of an arglist.
3996         (expand_builtin_stpcpy): Accept an expression instead of an
3997         arglist.
3998
3999 2004-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4000
4001         PR target/16007
4002         * doc/install.texi (*-*-solaris2*): Mention potential problem
4003         with Sun assembler + GNU linker and C++ programs.
4004         Document status of binutils 2.15 release.
4005
4006 2004-10-06  Jan Hubicka  <jh@suse.cz>
4007
4008         * cse.c (cse_main): Kill push/pop context.
4009
4010 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
4011
4012         * pretty-print.c: Include tree.h.
4013         (pp_base_prepare_to_format): New function, logic from
4014         text_specifies_location.
4015         (pp_base_format_text): Use gcc_assert.
4016         * pretty-print.h (pp_prepare_to_format): New macro.
4017         (pp_base_prepare_to_format): Prototype.
4018         * diagnostic.c (text_specifies_location): Delete.
4019         (bug_report_request): Delete.
4020         (diagnostic_set_info): Don't call text_specifies_location.
4021         (diagnostic_action_after_output): Put text from
4022         bug_report_request inline here.  Use gcc_unreachable.
4023         (diagnostic_report_current_function): Fix comment.
4024         (diagnostic_report_diagnostic): Clarify logic for error recursion.
4025         Call pp_prepare_to_format before diagnostic_starter.
4026         (trim_filename): Use IS_DIR_SEPARATOR.
4027         (fatal_error, internal_error): Use gcc_unreachable.
4028         (error_recursion): Call diagnostic_action_after_output to
4029         issue the bug_report_request message and exit.
4030         * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
4031
4032         * c-parse.in: Add list of diagnostic messages to insulate
4033         translation template from version of yacc/bison used to
4034         compile the grammar.
4035
4036 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
4037
4038         PR 16406
4039         * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
4040
4041 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4042
4043         * basic-block.h: Remove the prototype for
4044         flow_preorder_transversal_compute.
4045         * cfganal.c (dfst_node): Remove.
4046         (flow_preorder_transversal_compute): Likewise.
4047         * rtl.h: Remove the prototype for get_jump_table_offset.
4048         * rtlanal.c (get_jump_table_offset): Remove.
4049
4050 2004-10-05  Richard Henderson  <rth@redhat.com>
4051
4052         PR 17756
4053         * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
4054
4055 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
4056
4057         PR bootstrap/17817
4058         * Makefile.in: Stage the build directory too.
4059
4060 2004-10-05  Aldy Hernandez  <aldyh@redhat.com>
4061
4062         * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
4063
4064         * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
4065         (frv_emit_move): Same.
4066
4067         * config/frv/frv.c (frv_emit_move): New.
4068         (frv_legitimize_address): New.
4069
4070         * config/frv/frv.md ("movsi"): Call frv_emit_move.
4071         ("movqi"): Same.
4072         ("movhi"): Same.
4073         ("movdi"): Same.
4074         ("movsf"): Same.
4075         ("movdf"): Same.
4076
4077 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
4078
4079         * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
4080         system headers.
4081
4082 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
4083
4084         * c-decl.c (pushdecl): When an extern declaration at block scope
4085         refers to a visible entity with internal linkage, use the old DECL
4086         rather than the new one.
4087
4088 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4089
4090         * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
4091         comments.
4092
4093 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4094
4095         * tree-cfg.c (thread_jumps): Remove a duplicate check for
4096         an infinite loop.
4097
4098 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4099
4100         * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
4101         of FOR_BB_BETWEEN.  Remove a useless check for unreachable
4102         blocks.
4103
4104 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4105
4106         * tree-cfg.c (cleanup_tree_cfg): Don't call
4107         delete_unreachable_blosk() after thread_jumps().
4108         (thread_jumps): Always remove basic blocks as they become
4109         unreachable.
4110
4111 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4112
4113         * tree-cfg.c (cleanup_tree_cfg): Remove variable
4114         something_changed.  Simplify the while loop.
4115
4116 2004-10-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4117
4118         * builtins.c (expand_builtin_memmove): Delete duplicate code
4119         and accept a tree type for the result.
4120         (expand_builtin_bcopy): Accept a tree type for the result.
4121         (fold_builtin_memmove): Accept an arglist and tree type for
4122         the result.
4123
4124 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
4125
4126         * config/s390/s390.c (s390_dump_pool): Remove return value.
4127         Use gen_pool_align, gen_pool_section_start/end instead of
4128         gen_pool_start/end_31/64.
4129         * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
4130         (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
4131         ("pool_start_31", "pool_end_31"): Remove.
4132         ("pool_start_64", "pool_end_64"): Likewise.
4133         ("pool_align", "pool_section_start", "pool_section_end": New insns.
4134
4135         * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
4136         (TARGET_CANNOT_COPY_INSN_P): Define.
4137         (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
4138         (struct constant_pool): New member 'execute'.
4139         (s390_add_execute, s390_find_execute): New functions.
4140         (s390_execute_label, s390_execute_target): Likewise.
4141         (s390_dump_pool): Output in-pool execute target templates.
4142         (s390_dump_execute): New function.
4143         (s390_alloc_pool, s390_free_pool): Handle execute templates.
4144         (s390_mainpool_start, s390_mainpool_finish): Likewise.
4145         (s390_chunkify_start, s390_chunkify_finish): Likewise.
4146         * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
4147         ("*execute"): New insn pattern.
4148         ("movmem_short", "*movmem_short"): Use splitters to generate
4149         explicit execute pattern, remove embedded execute.
4150         ("clrmem_short", "*clrmem_short"): Likewise.
4151         ("cmpmem_short", "*cmpmem_short"): Likewise.
4152
4153 2004-10-05  Daniel Berlin  <dberlin@dberlin.org>
4154
4155         * tree-ssa.c (verify_ssa): Verify phi arguments only
4156         contain renamed names.
4157
4158 2004-10-05  Alan Modra  <amodra@bigpond.net.au>
4159
4160         * config/rs6000/linux.h: Formatting, whitespace.
4161         * config/rs6000/linux64.h: Likewise.
4162         * config/rs6000/rs6000-protos.h: Likewise.
4163         * config/rs6000/rs6000.c: Likewise.
4164         (easy_vector_splat_const): Add fall thru comments.
4165         (output_vec_const_move): Likewise.
4166
4167 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
4168
4169         * Makefile.in: Update -Wno-error exceptions for move to build dir.
4170
4171 2004-10-05  Chao-Ying Fu  <fu@mips.com>
4172             Richard Sandiford  <rsandifo@redhat.com>
4173
4174         * doc/invoke.texi (-mpaired-single): Link to the new description of the
4175         built-in functions.  Document dependencies.
4176         (-mips3d): Add link here too.
4177         * doc/extend.texi (MIPS Paired-Single Support): New section.
4178
4179 2004-10-04  Chao-ying Fu  <fu@mips.com>
4180
4181         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
4182
4183 2004-10-04  Diego Novillo  <dnovillo@redhat.com>
4184
4185         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
4186         Initialize OPT_STATS to 0.
4187
4188 2004-10-04  Kazu Hirata  <kazu@cs.umass.edu>
4189
4190         * tree-data-ref.c: Fix comment typos.
4191
4192 2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>
4193
4194         * tree-data-ref.c (array_base_name_differ_p): Fix comments.  When
4195         the predicate cannot be computed, don't initialize the result to
4196         false.
4197
4198 2004-10-01  Eric Christopher  <echristo@redhat.com>
4199
4200         * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
4201         locally defined enum.
4202         * dwarf2out.c (add_calling_convention_attribute): Don't
4203         emit DW_CC_normal.
4204
4205 2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>
4206
4207         PR c/17178, PR c/17820
4208         * c-decl.c (pop_scope): Do not warn about unused static
4209         variables as they warned in the middle-end.
4210
4211 2004-10-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4212
4213         * builtins.c (expand_builtin_memcpy): Delete duplicate code
4214         and make the first parameter the expression not the arglist.
4215
4216 2004-10-03  Ulrich Weigand  <uweigand@de.ibm.com>
4217
4218         * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
4219         as valid modes to expand address expressions.
4220
4221 2004-10-03  Joseph S. Myers  <jsm@polyomino.org.uk>
4222
4223         * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
4224         c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
4225         c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
4226         code formatting conventions.
4227
4228 2004-10-03  Richard Sandiford  <rsandifo@redhat.com>
4229
4230         * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
4231
4232 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
4233
4234         PR tree-optimization/16632
4235         * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
4236         fold (A & C) == D into 0, fold ~C.  Similarly, for the case
4237         where | is used instead of &.
4238
4239 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
4240
4241         * ginclude/stddef.h: Fix a comment typo.
4242
4243 2004-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4244
4245         PR target/17443
4246         * config.gcc (i?86-*-solaris2*): Restore correct logic
4247         for --enable-threads option.
4248         (sparc64-*-solaris2*): Likewise.
4249         (sparc-*-solaris2*): Likewise.
4250
4251 2004-10-03  Alan Modra  <amodra@bigpond.net.au>
4252
4253         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
4254         (OS_MISSING_POWERPC64): Move, and comment.
4255         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
4256         (OS_MISSING_POWERPC64): Move, and comment.
4257
4258 2004-10-02  Ian Lance Taylor  <ian@wasabisystems.com>
4259
4260         * arm.c (output_call_mem): Add missing \t.
4261
4262 2004-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4263
4264         * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
4265         expand_builtin_strncmp): Delete duplicate code.
4266
4267 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
4268
4269         * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
4270         take check-base and -limit arguments.
4271         (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
4272         check ranges for ARRAY_REF and COMPONENT_REF.
4273         (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
4274         instrumentation.
4275
4276 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
4277
4278         * c-objc-common.c (c_tree_printer): Correct description of %E.
4279         Don't fall through after printing an expression.
4280
4281 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
4282
4283         * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
4284
4285 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
4286
4287         * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
4288         delete_unrechable_blocks() only when necessary.
4289
4290 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
4291
4292         * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
4293         (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
4294         (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
4295         __gthread_recursive_mutex_unlock): New functions.
4296
4297 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
4298
4299         * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
4300         * config/s390/tpf-eh.c: Remove file.
4301         * config/s390/tpf-unwind.h: New file.
4302         * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
4303         (MD_UNWIND_SUPPORT): Define.
4304
4305 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
4306
4307         * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
4308
4309 2004-10-01  Ulrich Weigand  <uweigand@de.ibm.com>
4310
4311         * config/s390/s390-protos.h (s390_comparison): Add prototype.
4312         * config/s390/s390.c (s390_comparison): New function.
4313         (s390_branch_condition_mask): Return -1 for invalid comparisons.
4314         (s390_branch_condition_mnemonic): Assert valid comparison.
4315         * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
4316         * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
4317         "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
4318         s390_comparison instead of comparison_operator.
4319
4320         * config/s390/s390.md (UNSPEC_CMPINT): New constant.
4321         ("cmpmemdi"): Remove.
4322         ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
4323         ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
4324         ("cmpint_si"): Rename to ...
4325         ("*cmpint_si"): ... this.  Use UNSPEC_CMPINT.
4326         ("cmpint_di", "*cmpint_di"): Likewise.
4327         * config/s390/s390.c (s390_canonicalize_comparison): Remove
4328         redundant UNSPEC_CMPINT conversions.
4329         (s390_expand_cmpmem): Adapt to cmpint pattern changes.
4330
4331 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
4332
4333         * collect2.c (COLLECT_PARSE_FLAG): Remove.
4334         (main): Remove a reference to COLLECT_PARSE_FLAG
4335         * system.h: Poison COLLECT_PARSE_FLAG.
4336         * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
4337
4338 2004-10-01  Paul Brook  <paul@codesourcery.com>
4339
4340         * config/arm/crti.asm: Give _init and _fini function type.
4341
4342 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
4343
4344         * common.opt (ftree-loop-ivcanon): Enable by default.
4345         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4346         Enable complete loop unrolling.
4347         (canonicalize_induction_variables, tree_unroll_loops_completely):
4348         Reset scev info.
4349
4350 2004-10-01  Paul Brook  <paul@codesourcery.com>
4351
4352         * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
4353         not register number.
4354         (thumb_find_work_register): Search full register range.
4355
4356 2004-10-01  Andrew Pinski  <pinskia@physics.uc.edu>
4357
4358         PR tree-opt/17343
4359         * tree-cfg.c (group_case_labels): Get the label and not
4360         the case expr for the default case.
4361         When the label we looking at is the default, decrement the
4362         new_size.
4363
4364 2004-10-01  Jan Hubicka  <jh@suse.cz>
4365
4366         * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
4367         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4368         * toplev.h (tree_rest_of_compilation): Update prototype.
4369         * tree-optimize.c (tree_rest_of_compilation):  Kill nested_p argument.
4370
4371 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
4372
4373         * tree-cfg.c (cleanup_tree_cfg): Pull a call to
4374         cleanup_control_flow() out of the while loop.
4375
4376 2004-10-01  Paolo Bonzini  <bonzini@gnu.org>
4377
4378         * tree-vectorizer.c (vectorizable_operation): Fail unless
4379         the mode for the vector type is indeed a vector mode.
4380
4381 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
4382
4383         * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
4384         chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
4385         of convert.
4386         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
4387         add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
4388         follow_ssa_edge_in_rhs): Ditto.
4389         * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
4390         (dump_iv): Dump base_object.
4391         (dump_use, dump_cand): Use dump_iv.
4392         (determine_base_object): New function.
4393         (alloc_iv): Initialize base_object field.
4394         (record_use): Clear the ssa_name field of iv.
4395         (get_computation_cost_at): Do not use difference of addresses of
4396         two different objects.
4397         (may_eliminate_iv): Do not require the loop to have just single exit.
4398         * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
4399         (nonzero_p): New function.
4400         (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
4401         tree_simplify_using_condition, simplify_using_initial_conditions,
4402         loop_niter_by_eval, find_loop_niter_by_eval,
4403         estimate_numbers_of_iterations_loop, compare_trees,
4404         upper_bound_in_type, lower_bound_in_type,
4405         can_count_iv_in_wider_type_bound): Use buildN instead of build.  Use
4406         fold_convert or build_int_cst_type instead of convert.  Use (non)zero_p
4407         instead of integer_(non)zerop.
4408
4409 2004-10-01  Jakub Jelinek  <jakub@redhat.com>
4410
4411         Revert
4412         2004-09-29  Jakub Jelinek  <jakub@redhat.com>
4413
4414         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
4415         and TI_VA_LIST_FPR_COUNTER_FIELD.
4416         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
4417         * tree-pass.h (pass_stdarg): Add.
4418         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
4419         * tree-stdarg.c: New file.
4420         * Makefile.in (OBJS-common): Add tree-stdarg.o.
4421         (tree-stdarg.o): Add dependencies.
4422         * function.h (struct function): Add va_list_gpr_size and
4423         va_list_fpr_size fields.
4424         * function.c (allocate_struct_function): Initialize them.
4425
4426         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
4427         va_list_{g,f}pr_counter_field.
4428         (ix86_setup_incoming_varargs): Don't do anything if reg_save
4429         area will not be used.  Only save registers that tree-stdarg.c
4430         detected they need saving.
4431         (ix86_va_start): Don't set up fields that won't be used.
4432
4433         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
4434         va_list_{g,f}pr_counter_field.
4435         (setup_incoming_varargs): Don't do anything if reg_save
4436         area will not be used.  Only save registers that tree-stdarg.c
4437         detected they need saving.
4438         (rs6000_va_start): Don't set up fields that won't be used.
4439
4440 2004-09-30  Eric Christopher  <echristo@redhat.com>
4441
4442         * dwarf2.h (dwarf_calling_convention): Add enum for renesas
4443         sh abi.
4444         * dwarf2out.c (add_calling_convention_attribute): New function.
4445         (gen_subroutine_type_die): Use.
4446         * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
4447         * target.h (gcc_target): Add dwarf_calling_convention.
4448         * hooks.c (hook_int_tree_0): New function.
4449         * hooks.h: Prototype.
4450         * config/sh/sh.c: Include dwarf2.h.
4451         (sh_dwarf_calling_convention): New function.
4452         (TARGET_DWARF_CALLING_CONVENTION): Use.
4453         * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
4454
4455 2004-09-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4456
4457         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
4458         expand_builtin_strrchr, expand_builtin_strpbrk,
4459         expand_builtin_strncat, expand_builtin_strspn,
4460         expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
4461         code.
4462
4463 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
4464
4465         * config/s390/s390-protos.h (s390_expand_logical_operator): Add
4466         prototype.
4467         (s390_logical_operator_ok_p): Likewise.
4468         * config/s390/s390.c (s390_expand_logical_operator): New function.
4469         (s390_logical_operator_ok_p): Likewise.
4470         * config/s390/s390.md ("anddi3"): New expander.
4471         ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
4472         ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
4473         ("andsi3"): Use s390_expand_logical_operator.
4474         ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
4475         ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
4476         ("andhi3"): New expander.
4477         ("*andhi3_zarch", "*andhi3_esa"): New patterns.
4478         ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
4479         ("andqi3"): New expander.
4480         ("*andqi3_zarch", "*andqi3_esa"): New patterns.
4481         ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
4482         ("iordi3"): New expander.
4483         ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
4484         ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
4485         ("iorsi3"): Use s390_expand_logical_operator.
4486         ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
4487         ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
4488         ("iorhi3"): New expiorer.
4489         ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
4490         ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
4491         ("iorqi3"): New expiorer.
4492         ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
4493         ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
4494         ("xordi3"): New expander.
4495         ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
4496         ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
4497         ("xorsi3"): New expander.
4498         ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
4499         ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
4500         ("xorhi3"): New expander.
4501         ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
4502         ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
4503         ("xorqi3"): New expander.
4504         ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
4505         ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
4506
4507 2004-09-30  Roger Sayle  <roger@eyesopen.com>
4508
4509         * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
4510         (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
4511         machine mode as the result.
4512
4513 2004-09-30  Ben Elliston  <bje@au.ibm.com>
4514
4515         PR bootstrap/17761
4516         * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
4517         FOR_EACH_EDGE macros.
4518
4519 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
4520
4521         * c-tree.h (readonly_error): Remove.
4522         * c-typeck (enum lvalue_use): New.
4523         (lvalue_or_else, readonly_error): Use it.  All callers changed.
4524         (readonly_error): Make static.
4525
4526 2004-09-30  Jan Hubicka  <jh@suse.cz>
4527
4528         PR debug/13974
4529         * cfgrtl.c (try_redirect_by_replacing_jump,
4530         force_nonfallthru_and_redirect, commit_one_edge_insertion,
4531         cfg_layout_merge_blocks):  Do not attach any line number information
4532         to newly inserted instructions.
4533         * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
4534         emit_insn_*_noloc.
4535         (emit_*insn_before, emit_insn*_after): New.
4536         (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
4537         existing locators.
4538         * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
4539         (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
4540
4541 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
4542
4543         * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
4544         (s390_return_address_offset): Remove.
4545         (s390_can_eliminate): Add prototype.
4546         (s390_initial_elimination_offset): Add prototype.
4547         * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
4548         (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
4549         * config/s390/s390.c (s390_arg_frame_offset): Remove.
4550         (s390_return_address_offset): Remove.
4551         (s390_can_eliminate, s390_initial_elimination_offset): New functions.
4552         (struct machine_function): New member split_branches_pending_p.
4553         (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
4554         (s390_mainpool_finish): Likewise.  Clear base_reg if pool empty.
4555         (s390_optimize_prologue): Remove base_used argument.  Call
4556         s390_update_frame_layout instead of s390_register_info.  Handle
4557         prologue/epilogue insns that touch only RETURN_REGNUM.
4558         (s390_reorg): Remove base_used.  Clear split_branches_pending_p.
4559         (s390_register_info): Remove base_used and return_addr_used
4560         arguments, compute special register usage inline.  Return live
4561         register data to caller.
4562         (s390_frame_info): Remove arguments, do not call s390_register_info.
4563         (s390_init_frame_layout): New function.
4564         (s390_update_frame_layout): Likewise.
4565         (s390_emit_prologue): Call s390_update_frame_layout; some code
4566         move to there.  Do not emit pool placeholder insn if unnecessary.
4567
4568 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
4569
4570         * config/s390/s390.c (legitimate_reload_constant_p): Remove
4571         floating point constant workaround.
4572         (s390_secondary_input_reload_class): Handle PLUS reloads
4573         with too-large constant.
4574         (s390_expand_plus_operand): Likewise.
4575         * config/s390/s390.md ("movdi"): Do not call force_const_mem.
4576         ("movsi"): Likewise.  Also, remove workaround for non-general
4577         operands.
4578         ("movdf"): Do not call force_const_mem.
4579         ("movsf"): Likewise.  Merge expander with *movsf insn.
4580         ("*movsf"): Remove, merge with movsf expander.
4581
4582 2004-09-30  Paul Brook  <paul@codesourcery.com>
4583
4584         * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
4585         (ENDFILE_SPEC): Define.
4586         * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
4587
4588 2004-09-30  Richard Henderson  <rth@redhat.com>
4589
4590         * config/alpha/qrnnd.asm: Mark for noexecstack.
4591
4592 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
4593
4594         * protoize.c, tree-cfg.c: Fix comment typos.
4595
4596 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
4597
4598         PR c/17730
4599         * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
4600
4601 2004-09-30  Diego Novillo  <dnovillo@redhat.com>
4602
4603         * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
4604         expressions...
4605         (add_pointed_to_expr): ... here.
4606         Call add_pointed_to_expr for variables with DECL_INITIAL set.
4607         * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
4608         pointer variable, if set.
4609
4610 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
4611
4612         * config/sh/sh.c: Follow spelling conventions.
4613
4614 2004-09-29  Richard Henderson  <rth@redhat.com>
4615
4616         * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
4617         * doc/tm.texi (DWARF_ZERO_REG): New.
4618
4619         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
4620         alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
4621         * config/alpha/alpha.h (DWARF_ZERO_REG): New.
4622
4623 2004-09-29  Ulrich Weigand  <uweigand@de.ibm.com>
4624
4625         * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
4626         with a PLUS as source operand.
4627         (expand_movstr): Likewise.
4628         (expand_builtin_stpcpy): Likewise.
4629
4630 2004-09-29  Richard Henderson  <rth@redhat.com>
4631
4632         PR 17739
4633         * tree-gimple.c (is_gimple_reg): Reject hard registers.
4634         (is_gimple_asm_val): New.
4635         * tree-gimple.h (is_gimple_asm_val): Declare.
4636         * gimplify.c (gimplify_asm_expr): Use it.
4637         * tree-pretty-print.c (print_declaration): Dump hard regs.
4638         * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
4639         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
4640         * tree-ssa-pre.c (is_undefined_value): Likewise.
4641         * tree-ssa-copy.c (may_propagate_copy): Likewise.
4642         (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
4643         * tree-ssa.c (warn_uninit): Likewise.
4644         * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
4645
4646 2004-09-29  Fariborz Jahanian <fjahanian@apple.com>
4647
4648         * c-decl.c (merge_decls): Use comptype when comparing
4649         types to decide on DECL_SIZE save of olddecl.
4650
4651 2004-09-29  Daniel Berlin  <dberlin@dberlin.org>
4652
4653         * tree.h (INDIRECT_REF_P): New macro.
4654         * alias.c (get_alias_set): Use it
4655         (nonoverlapping_memrefs_p): Ditto.
4656         * emit-rtl.c (mem_expr_equal_p): Ditto.
4657         (set_mem_attributes_minus_bitpos): Ditto.
4658         (is_gimple_addressable): Ditto.
4659         (get_base_address): Ditto.
4660         * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
4661         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
4662         * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
4663         * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
4664         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
4665         (add_address_candidates): Ditto.
4666         (rewrite_address_base): Ditto.
4667
4668 2004-09-30  Ben Elliston  <bje@au.ibm.com>
4669
4670         * tree-flow.h (struct bb_ann_d): Remove num_preds member.
4671         * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
4672         (rewrite_ssa_into_ssa): Likewise.
4673         * tree-phinodes.c (create_phi_node): Access the number of
4674         predecessor edges using EDGE_COUNT() and not num_preds.
4675
4676 2004-09-29  Joseph S. Myers  <jsm@polyomino.org.uk>
4677
4678         PR c/7425
4679         * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
4680
4681 2004-09-29  Eric Christopher  <echristo@redhat.com>
4682
4683         * fold-const.c (tree_swap_operands_p): Remove duplicated code.
4684
4685 2004-09-29  Hans-Peter Nilsson  <hp@axis.com>
4686
4687         * config/cris/cris.md (moverside, movemside): With MEM, make sure
4688         the address is (plus reg mem).
4689
4690 2004-09-29  David Edelsohn  <edelsohn@gnu.org>
4691
4692         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
4693
4694 2004-09-29  Nathan Sidwell  <nathan@codesourcery.com>
4695
4696         * tree.c (make_node_stat): Fix uninitialized warning.  Replace
4697         cascaded if ... else if with a switch.
4698
4699 2004-09-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4700
4701         * read-rtl.c (apply_macro_to_string): Replace index with strchr.
4702
4703 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
4704
4705         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
4706         and TI_VA_LIST_FPR_COUNTER_FIELD.
4707         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
4708         * tree-pass.h (pass_stdarg): Add.
4709         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
4710         * tree-stdarg.c: New file.
4711         * Makefile.in (OBJS-common): Add tree-stdarg.o.
4712         (tree-stdarg.o): Add dependencies.
4713         * function.h (struct function): Add va_list_gpr_size and
4714         va_list_fpr_size fields.
4715         * function.c (allocate_struct_function): Initialize them.
4716
4717         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
4718         va_list_{g,f}pr_counter_field.
4719         (ix86_setup_incoming_varargs): Don't do anything if reg_save
4720         area will not be used.  Only save registers that tree-stdarg.c
4721         detected they need saving.
4722         (ix86_va_start): Don't set up fields that won't be used.
4723
4724         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
4725         va_list_{g,f}pr_counter_field.
4726         (setup_incoming_varargs): Don't do anything if reg_save
4727         area will not be used.  Only save registers that tree-stdarg.c
4728         detected they need saving.
4729         (rs6000_va_start): Don't set up fields that won't be used.
4730
4731 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
4732
4733         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
4734         BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
4735         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
4736         BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
4737         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
4738         ATTR_NONNULL_1_4): New.
4739
4740 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
4741
4742         PR tree-optimization/17697
4743         * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
4744         cfg if needed.
4745
4746 2004-09-28  Per Bothner  <per@bothner.com>
4747
4748         * profile.c (branch_prob): Pass correct value to output_location,
4749         even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
4750
4751 2004-09-28  Richard Henderson  <rth@redhat.com>
4752
4753         PR 15089
4754         * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
4755         * tree-flow.h (may_propagate_copy_into_asm): Declare.
4756         * tree-ssa-ccp.c (replace_uses_in): Use it.
4757         * tree-ssa-dom.c (cprop_operand): Likewise.
4758
4759 2004-09-28 Jeff Law  <law@redhat.com>
4760
4761         * tree-ssa-threadupdate.c (create_block_for_threading):  Request
4762         that no outgoing edges be left in the duplicate block.  Do no
4763         update information on outgoing edges or PHI nodes in target
4764         blocks here.
4765         (remove_ctrl_stmt_and_useless_edges): Renamed from
4766         remove_last_stmt_and_useless_edges.  Handle case where the
4767         block is empty or has no control statements.  Do not update edge
4768         flags here.
4769         (thread_block): Create a template block rather than copying the
4770         original block every time.  Create outgoing edges from the
4771         duplicate blocks and update PHIs at the target of the outgoing
4772         edges here.  Fix edge flags for the original block if necessary.
4773         * cfghooks (duplicate_block): No longer assert that the original
4774         block has incoming edges.
4775
4776 2004-09-29  Hans-Peter Nilsson  <hp@bitrange.com>
4777
4778         * doc/extend.texi (Extended Asm): Add blurb about using Explicit
4779         Reg Vars to enforce register allocation with general constraints.
4780         (Explicit Reg Vars): Clarify relation to asm statements.
4781         (Local Reg Vars): Similar.
4782
4783 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
4784
4785         * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
4786         TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
4787         build_control_flow, new_edge): Remove.
4788         (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
4789         (bitlst, bitlst_table_last, bitlst_table): Remove.
4790         (bblst): Store basic_block pointer instead of block index.
4791         (bblst_table): Likewise.
4792         (edgelst): Store edge pointer instead of edge index.
4793         (edgelst_table, edgelst_last): New variables.
4794         (extract_bitlst): Rename to ...
4795         (extract_edgelst): ... this.  Return edge pointers, not indices.
4796         (split_edges): Update call.
4797         (rgn_edges): Store edge pointers instead of indices.
4798         (edge_to_bit): Remove.
4799         (EDGE_TO_BIT): Store per-region edge index in edge->aux.
4800         (SET_EDGE_TO_BIT): New macro.
4801         (is_cfg_nonregular): Check for simple cases of unreachable blocks.
4802         (find_rgns): Remove edge_list parameter.  Traverse standard CFG
4803         data structures instead of haifa_edge et al.  Use edge pointers
4804         instead of edge indices everywhere.
4805         (compute_dom_prob_ps): Use standard CFG data structures.  Account
4806         for exit edges.
4807         (compute_trg_info): Likewise.
4808         (propagate_deps): Likewise.
4809         (debug_candidate): Account for bblst data structure change.
4810         (check_live_1, update_live_1, is_pfree): Likewise.
4811         (IS_REACHABLE): Use standard CFG data structures.
4812         (init_ready_list): Update bblst_table/edgelst_table allocation.
4813         (schedule_region): Update alloc/cleanup code to data structure
4814         changes.  Use edge->aux to store per-region edge index.
4815         (init_regions): No longer call build_control_flow.  Do not
4816         create edge list any more.
4817
4818 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
4819
4820         * cse.c (cse_insn): Avoid creating direct non-local jumps.
4821         * combine.c (can_combine_p): Likewise.
4822         * local-alloc. (update_equiv_regs): Likewise.
4823
4824 2004-09-28  Richard Henderson  <rth@redhat.com>
4825
4826         PR 17531
4827         * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
4828         Don't check VOIDmode here.  Force PLUS operands to common type.
4829         (expand_expr_addr_expr): Do VOIDmode check earlier.  Force use of
4830         Pmode if given a non pointer type.
4831
4832 2004-09-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4833
4834         PR 17531
4835         * optabs.c (expand_binop): Force constants to the correct mode.
4836
4837 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
4838
4839         * config/s390/s390.c (s390_adjust_cost): Remove.
4840         (TARGET_SCHED_ADJUST_COST): Do not redefine.
4841         (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
4842         * config/s390/s390.md ("main_pool"): Use "larl" type
4843         attribute if TARGET_CPU_ZARCH.
4844
4845 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
4846
4847         * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
4848         variable.
4849
4850 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
4851
4852         * tree-ssa-loop.c (pass_record_bounds): Do not assign a
4853         name to the pass.
4854
4855 2004-09-28  Steven Bosscher  <stevenb@suse.de>
4856
4857         * common.opt (flag_gcse_sm): Disable by default.
4858         (flag_gcse_las): Likewise.
4859         (flag_web): Likewise.  Create from this file.
4860         * flags.h: Remove flag_web declaration.
4861         * toplev.c (flag_web): Likewise.
4862         (process_options): Never set flag_web.
4863
4864 2004-09-28  Steven Bosscher  <stevenb@suse.de>
4865
4866         * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
4867         * tree-ssa-propagate.c: Include vec.h.
4868         (interesting_ssa_edges, varying_ssa_edges): Make these VECs
4869         instead of varrays.
4870         (cfg_blocks_add): Assert the block is not already in the worklist.
4871         Update uses of interesting_ssa_edges and varying_ssa_edges.
4872         (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
4873         ssa_propagate): Likewise.
4874
4875 2004-09-28  Joseph S. Myers  <jsm@polyomino.org.uk>
4876
4877         PR c/16409
4878         * c-decl.c (start_decl): Check for initializing incomplete array
4879         of VLAs.
4880         (build_compound_literal): Check for TYPE being error_mark_node.
4881         * c-parse.in (primary): Check for VLA compound literals.
4882
4883 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
4884
4885         * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
4886         with --disable-checking.
4887
4888 2004-09-28  Devang Patel  <dpatel@apple.com>
4889
4890         * tree-pretty-print.c (dump_generic_node): Print vector types.
4891
4892 2004-09-28  Nick Clifton  <nickc@redhat.com>
4893
4894         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
4895         invocation of the function sh_init_cumulative_args.
4896         (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
4897         (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
4898         * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
4899         * config/sh/sh.c (sh_init_cumulative_args): New function based
4900         on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
4901         heuristic added to determine the setting of force_mem when a
4902         library function is being called.
4903
4904 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
4905
4906         * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
4907         Skip constant arguments.
4908
4909 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
4910
4911         * tree-ssa-alias.c (create_name_tags): If PTR points to a
4912         volatile type, mark the tag volatile.
4913         (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
4914         volatile.
4915
4916 2004-09-28  Andrew Pinski  <pinskia@physics.uc.edu>
4917
4918         * tree.def (vec_cond_expr): Fix. Change 'e'
4919         to tcc_expression.
4920
4921 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
4922
4923         * basic-block.h: Fix a comment typo.
4924
4925 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
4926
4927         * optabs.c, optabs.h: Fix comment typos.
4928
4929 2004-09-28  Eric Botcazou  <ebotcazou@act-europe.fr>
4930
4931         * config/sparc/sparc.md (call_address_struct_value_sp32):
4932         Properly mask the immediate field of the 'unimp' instruction.
4933         (call_symbolic_struct_value_sp32): Likewise.
4934
4935 2004-09-28  Ben Elliston  <bje@au.ibm.com>
4936             Steven Bosscher  <stevenb@suse.de>
4937             Andrew Pinski  <pinskia@physics.uc.edu>
4938
4939         Merge from edge-vector-branch:
4940         * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
4941         (struct edge_def): Remove pred_next, succ_next members.
4942         (struct basic_block_def): Remove pred, succ members.  Add preds
4943         and succs members of type VEC(edge).
4944         (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
4945         (BRANCH_EDGE): Likewise.
4946         (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
4947         (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
4948         (edge_iterator): New.
4949         (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
4950         (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
4951         (FOR_EACH_EDGE): New.
4952         * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
4953         where applicable.
4954         (rotate_loop): Likewise.
4955         (find_traces_1_route): Likewise.
4956         (bb_to_key): Likewise.
4957         (connect_traces): Likewise.
4958         (copy_bb_p): Likewise.
4959         (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
4960         (add_labels_and_missing_jumps): Likewise.
4961         (fix_up_fall_thru_edges): Likewise.
4962         (find_jump_block): Likewise.
4963         (fix_crossing_conditional_branches): Likewise.
4964         (fix_crossing_unconditional_branches): Likewise.
4965         (add_reg_crossing_jump_notes): Likewise.
4966         * bt-load.c (augment_live_range): Likewise.
4967         * cfg.c (clear_edges): Likewise.
4968         (unchecked_make_edge): Likewise.
4969         (cached_make_edge): Likewise.
4970         (make_single_succ_edge): Likewise.
4971         (remove_edge): Likewise.
4972         (redirect_edge_succ_nodup): Likewise.
4973         (check_bb_profile): Likewise.
4974         (dump_flow_info): Likewise.
4975         (alloc_aux_for_edges): Likewise.
4976         (clear_aux_for_edges): Likewise.
4977         (dump_cfg_bb_info): Likewise.
4978         * cfganal.c (forwarder_block_p): Likewise.
4979         (can_fallthru): Likewise.
4980         (could_fall_through): Likewise.
4981         (mark_dfs_back_edges): Likewise.
4982         (set_edge_can_fallthru_flag): Likewise.
4983         (find_unreachable_blocks): Likewise.
4984         (create_edge_list): Likewise.
4985         (verify_edge_list): Likewise.
4986         (add_noreturn_fake_exit_edges): Likewise.
4987         (connect_infinite_loops_to_exit): Likewise.
4988         (flow_reverse_top_sort_order_compute): Likewise.
4989         (flow_depth_first_order_compute): Likewise.
4990         (flow_preorder_transversal_compute): Likewise.
4991         (flow_dfs_compute_reverse_execute): Likewise.
4992         (dfs_enumerate_from): Likewise.
4993         (compute_dominance_frontiers_1): Likewise.
4994         * cfgbuild.c (make_edges): Likewise.
4995         (compute_outgoing_frequencies): Likewise.
4996         (find_many_sub_basic_blocks): Likewise.
4997         (find_sub_basic_blocks): Likewise.
4998         * cfgcleanup.c (try_simplify_condjump): Likewise.
4999         (thread_jump): Likewise.
5000         (try_forward_edges): Likewise.
5001         (merge_blocks_move): Likewise.
5002         (outgoing_edges_match): Likewise.
5003         (try_crossjump_to_edge): Likewise.
5004         (try_crossjump_bb): Likewise.
5005         (try_optimize_cfg): Likewise.
5006         (merge_seq_blocks): Likewise.
5007         * cfgexpand.c (expand_gimple_tailcall): Likewise.
5008         (expand_gimple_basic_block): Likewise.
5009         (construct_init_block): Likewise.
5010         (construct_exit_block): Likewise.
5011         * cfghooks.c (verify_flow_info): Likewise.
5012         (dump_bb): Likewise.
5013         (delete_basic_block): Likewise.
5014         (split_edge): Likewise.
5015         (merge_blocks): Likewise.
5016         (make_forwarder_block): Likewise.
5017         (tidy_fallthru_edges): Likewise.
5018         (can_duplicate_block_p): Likewise.
5019         (duplicate_block): Likewise.
5020         * cfglayout.c (fixup_reorder_chain): Likewise.
5021         (fixup_fallthru_exit_predecessor): Likewise.
5022         (can_copy_bbs_p): Likewise.
5023         (copy_bbs): Likewise.
5024         * cfgloop.c (flow_loops_cfg_dump): Likewise.
5025         (flow_loop_entry_edges_find): Likewise.
5026         (flow_loop_exit_edges_find): Likewise.
5027         (flow_loop_nodes_find): Likewise.
5028         (mark_single_exit_loops): Likewise.
5029         (flow_loop_pre_header_scan): Likewise.
5030         (flow_loop_pre_header_find): Likewise.
5031         (update_latch_info): Likewise.
5032         (canonicalize_loop_headers): Likewise.
5033         (flow_loops_find): Likewise.
5034         (get_loop_body_in_bfs_order): Likewise.
5035         (get_loop_exit_edges): Likewise.
5036         (num_loop_branches): Likewise.
5037         (verify_loop_structure): Likewise.
5038         (loop_latch_edge): Likewise.
5039         (loop_preheader_edge): Likewise.
5040         * cfgloopanal.c (mark_irreducible_loops): Likewise.
5041         (expected_loop_iterations): Likewise.
5042         * cfgloopmanip.c (remove_bbs): Likewise.
5043         (fix_bb_placement): Likewise.
5044         (fix_irreducible_loops): Likewise.
5045         (remove_path): Likewise.
5046         (scale_bbs_frequencies): Likewise.
5047         (loopify): Likewise.
5048         (unloop): Likewise.
5049         (fix_loop_placement): Likewise.
5050         (loop_delete_branch_edge): Likewise.
5051         (duplicate_loop_to_header_edge): Likewise.
5052         (mfb_keep_just): Likewise.
5053         (create_preheader): Likewise.
5054         (force_single_succ_latches): Likewise.
5055         (loop_split_edge_with): Likewise.
5056         (create_loop_notes): Likewise.
5057         * cfgrtl.c (rtl_split_block): Likewise.
5058         (rtl_merge_blocks): Likewise.
5059         (rtl_can_merge_blocks): Likewise.
5060         (try_redirect_by_replacing_jump): Likewise.
5061         (force_nonfallthru_and_redirect): Likewise.
5062         (rtl_tidy_fallthru_edge): Likewise.
5063         (commit_one_edge_insertion): Likewise.
5064         (commit_edge_insertions): Likewise.
5065         (commit_edge_insertions_watch_calls): Likewise.
5066         (rtl_verify_flow_info_1): Likewise.
5067         (rtl_verify_flow_info): Likewise.
5068         (purge_dead_edges): Likewise.
5069         (cfg_layout_redirect_edge_and_branch): Likewise.
5070         (cfg_layout_can_merge_blocks_p): Likewise.
5071         (rtl_flow_call_edges_add): Likewise.
5072         * cse.c (cse_cc_succs): Likewise.
5073         * df.c (hybrid_search): Likewise.
5074         * dominance.c (calc_dfs_tree_nonrec): Likewise.
5075         (calc_dfs_tree): Likewise.
5076         (calc_idoms): Likewise.
5077         (recount_dominator): Likewise.
5078         * domwalk.c (walk_dominator_tree): Likewise.
5079         * except.c (emit_to_new_bb_before): Likewise.
5080         (connect_post_landing_pads): Likewise.
5081         (sjlj_emit_function_enter): Likewise.
5082         (sjlj_emit_function_exit): Likewise.
5083         (finish_eh_generation): Likewise.
5084         * final.c (compute_alignments): Likewise.
5085         * flow.c (calculate_global_regs_live): Likewise.
5086         (initialize_uninitialized_subregs): Likewise.
5087         (init_propagate_block_info): Likewise.
5088         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5089         * gcse.c (find_implicit_sets): Likewise.
5090         (bypass_block): Likewise.
5091         (bypass_conditional_jumps): Likewise.
5092         (compute_pre_data): Likewise.
5093         (insert_insn_end_bb): Likewise.
5094         (insert_store): Likewise.
5095         (remove_reachable_equiv_notes): Likewise.
5096         * global.c (global_conflicts): Likewise.
5097         (calculate_reg_pav): Likewise.
5098         * graph.c (print_rtl_graph_with_bb): Likewise.
5099         * ifcvt.c (mark_loop_exit_edges): Likewise.
5100         (merge_if_block): Likewise.
5101         (find_if_header): Likewise.
5102         (block_jumps_and_fallthru_p): Likewise.
5103         (find_if_block): Likewise.
5104         (find_cond_trap): Likewise.
5105         (block_has_only_trap): Likewise.
5106         (find_if_case1): Likewise.
5107         (find_if_case_2): Likewise.
5108         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
5109         (perfect_nestify): Likewise.
5110         * lcm.c (compute_antinout_edge): Likewise.
5111         (compute_laterin): Likewise.
5112         (compute_available): Likewise.
5113         (compute_nearerout): Likewise.
5114         * loop-doloop.c (doloop_modify): Likewise.
5115         * loop-init.c (loop_optimizer_init): Likewise.
5116         * loop-invariant.c (find_exits): Likewise.
5117         * loop-iv.c (simplify_using_initial_values): Likewise.
5118         (check_simple_exit): Likewise.
5119         (find_simple_exit): Likewise.
5120         * loop-unroll.c (peel_loop_completely): Likewise.
5121         (unroll_loop_constant_iterations): Likewise.
5122         (unroll_loop_runtime_iterations): Likewise.
5123         * loop-unswitch.c (may_unswitch_on): Likewise.
5124         (unswitch_loop): Likewise.
5125         * modulo-sched.c (generate_prolog_epilog): Likewise.
5126         (sms_schedule): Likewise.
5127         * postreload-gcse.c (eliminate_partially_redundant_load):
5128         Likewise.
5129         * predict.c (can_predict_insn_p): Likewise.
5130         (set_even_probabilities): Likewise.
5131         (combine_predictions_for_bb): Likewise.
5132         (predict_loops): Likewise.
5133         (estimate_probability): Likewise.
5134         (tree_predict_by_opcode): Likewise.
5135         (tree_estimate_probability): Likewise.
5136         (last_basic_block_p): Likewise.
5137         (propagate_freq): Likewise.
5138         (estimate_loops_at_level): Likewise.
5139         (estimate_bb_frequencies): Likewise.
5140         * profile.c (instrument_edges): Likewise.
5141         (get_exec_counts): Likewise.
5142         (compute_branch_probabilities): Likewise.
5143         (branch_prob): Likewise.
5144         * ra-build.c (live_in): Likewise.
5145         * ra-rewrite.c (rewrite_program2): Likewise.
5146         * ra.c (reg_alloc): Likewise.
5147         * reg-stack.c (reg_to_stack): Likewise.
5148         (convert_regs_entry): Likewise.
5149         (compensate_edge): Likewise.
5150         (convert_regs_1): Likewise,
5151         (convert_regs_2): Likewise.
5152         (convert_regs): Likewise.
5153         * regrename.c (copyprop_hardreg_forward): Likewise.
5154         * reload1.c (fixup_abnormal_edges): Likewise.
5155         * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
5156         (sbitmap_insersection_of_preds): Likewise.
5157         (sbitmap_union_of_succs): Likewise.
5158         (sbitmap_union_of_preds): Likewise.
5159         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
5160         (fix_basic_block_boundaries): Likewise.
5161         (sched_ebbs): Likewise.
5162         * sched-rgn.c (build_control_flow): Likewise.
5163         (find_rgns): Likewise.
5164         * tracer.c (find_best_successor): Likewise.
5165         (find_best_predecessor): Likewise.
5166         (tail_duplicate): Likewise.
5167         * tree-cfg.c (make_edges): Likewise.
5168         (make_ctrl_stmt_edges): Likewise.
5169         (make_goto_expr_edges): Likewise.
5170         (tree_can_merge_blocks_p): Likewise.
5171         (tree_merge_blocks): Likewise.
5172         (cfg_remove_useless_stmts_bb): Likewise.
5173         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
5174         (tree_block_forwards_to): Likewise.
5175         (cleanup_control_expr_graph): Likewise.
5176         (find_taken_edge): Likewise.
5177         (dump_cfg_stats): Likewise.
5178         (tree_cfg2vcg): Likewise.
5179         (disband_implicit_edges): Likewise.
5180         (tree_find_edge_insert_loc): Likewise.
5181         (bsi_commit_edge_inserts): Likewise.
5182         (tree_split_edge): Likewise.
5183         (tree_verify_flow_info): Likewise.
5184         (tree_make_forwarder_block): Likewise.
5185         (tree_forwarder_block_p): Likewise.
5186         (thread_jumps): Likewise.
5187         (tree_try_redirect_by_replacing_jump): Likewise.
5188         (tree_split_block): Likewise.
5189         (add_phi_args_after_copy_bb): Likewise.
5190         (rewrite_to_new_ssa_names_bb): Likewise.
5191         (dump_function_to_file): Likewise.
5192         (print_pred_bbs): Likewise.
5193         (print_loop): Likewise.
5194         (tree_flow_call_edges_add): Likewise.
5195         (split_critical_edges): Likewise.
5196         (execute_warn_function_return): Likewise.
5197         (extract_true_false_edges_from_block): Likewise.
5198         * tree-if-conv.c (tree_if_conversion): Likewise.
5199         (if_convertable_bb_p): Likewise.
5200         (find_phi_replacement_condition): Likewise.
5201         (combine_blocks): Likewise.
5202         * tree-into-ssa.c (compute_global_livein): Likewise.
5203         (ssa_mark_phi_uses): Likewise.
5204         (ssa_rewrite_initialize_block): Likewise.
5205         (rewrite_add_phi_arguments): Likewise.
5206         (ssa_rewrite_phi_arguments): Likewise.
5207         (insert_phi_nodes_for): Likewise.
5208         (rewrite_into_ssa): Likewise.
5209         (rewrite_ssa_into_ssa): Likewise.
5210         * tree-mudflap.c (mf_build_check_statement_for): Likewise.
5211         * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
5212         (rewrite_trees): Likewise.
5213         * tree-pretty-print.c (dump_bb_header): Likewise.
5214         (dump_implicit_edges): Likewise.
5215         * tree-sra.c (insert_edge_copies): Likewise.
5216         (find_obviously_necessary_stmts): Likewise.
5217         (remove_data_stmt): Likewise.
5218         * tree-ssa-dom.c (thread_across_edge): Likewise.
5219         (dom_opt_finalize_block): Likewise.
5220         (single_incoming_edge_ignoring_loop_edges): Likewise.
5221         (record_equivalences_from_incoming_edges): Likewise.
5222         (cprop_into_successor_phis): Likewise.
5223         * tree-ssa-live.c (live_worklist): Likewise.
5224         (calculate_live_on_entry): Likewise.
5225         (calculate_live_on_exit): Likewise.
5226         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5227         (copy_loop_headers): Likewise.
5228         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
5229         (fill_always_executed_in): Likewise.
5230         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
5231         * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
5232         (compute_phi_arg_on_exit): Likewise.
5233         * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
5234         (get_loops_exit): Likewise.
5235         (split_loop_exit_edge): Likewise.
5236         (ip_normal_pos): Likewise.
5237         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
5238         Likewise.
5239         * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
5240         (replace_phi_with_stmt): Likewise.
5241         (value_replacement): Likewise.
5242         * tree-ssa-pre.c (compute_antic_aux): Likewise.
5243         (insert_aux): Likewise.
5244         (init_pre): Likewise.
5245         * tree-ssa-propagate.c (simulate_stmt): Likewise.
5246         (simulate_block): Likewise.
5247         (ssa_prop_init): Likewise.
5248         * tree-ssa-threadupdate.c (thread_block): Likewise.
5249         (create_block_for_threading): Likewise.
5250         (remove_last_stmt_and_useless_edges): Likewise.
5251         * tree-ssa.c (verify_phi_args): Likewise.
5252         (verify_ssa): Likewise.
5253         * tree_tailcall.c (independent_of_stmt_p): Likewise.
5254         (find_tail_calls): Likewise.
5255         (eliminate_tail_call): Likewise.
5256         (tree_optimize_tail_calls_1): Likewise.
5257         * tree-vectorizer.c (vect_transform_loop): Likewise.
5258         * var-tracking.c (prologue_stack_adjust): Likewise.
5259         (vt_stack_adjustments): Likewise.
5260         (vt_find_locations): Likewise.
5261         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5262         * config/i386/i386.c (ix86_pad_returns): Likewise.
5263         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5264         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5265
5266 2004-09-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
5267
5268         PR target/16532
5269         * config/sparc/sparc.c (struct machine_function): New field
5270         'leaf_function_p' and 'prologue_data_valid_p'.
5271         (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
5272         to conveniently access the above fields.
5273         (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
5274         (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
5275         of the generic flavor 'current_function_uses_only_leaf_regs'.
5276         (eligible_for_sibcall_delay): Likewise.
5277         (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
5278         'sparc_prologue_data_valid_p'.  Use 'sparc_leaf_function_p'.
5279         (sparc_asm_function_prologue): Add sanity check for the assumption
5280         made in 'sparc_expand_prologue'.  Use 'sparc_leaf_function_p'.
5281         (sparc_can_use_return_insn_p): New function.
5282         (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
5283         (output_restore): Likewise.
5284         (output_sibcall): Likewise.
5285         (sparc_output_mi_thunk): Likewise.
5286         * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
5287         * config/sparc/sparc.md (return): New expander.
5288
5289         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
5290
5291 2004-09-27  Mark Mitchell  <mark@codesourcery.com>
5292
5293         PR c++/17642
5294         * stor-layout.c (layout_decl): Use fold_convert, not convert.
5295         (bit_from_pos): Likewise.
5296         (byte_from_pos): Likewise.
5297         (pos_from_bit): Likewise.
5298         (normalize_offset): Likewise.
5299         (place_field): Likewise.
5300         (finalize_type_size): Likewise.
5301         (layout_type): Likewise.
5302         * tree.c (build_index_type): Likewise.
5303
5304 2004-09-27  Devang Patel  <dpatel@apple.com>
5305
5306         * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
5307         * genopinit.c (optabs): New entry for vcond_gen_code and
5308         vcondu_gen_code.
5309         * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
5310         (get_rtx_code): New function.
5311         (vector_compare_rtx): New function.
5312         (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
5313         (expand_vec_cond_expr_p): New function.
5314         (expand_vec_cond_expr): New function.
5315         (get_vcond_icode): New function.
5316         * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
5317         (vcond_gen_code, vcondu_gen_code): Same.
5318
5319 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
5320
5321         * Makefile.in (STAGESTUFF): Split into ...
5322         (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
5323         (mostlyclean): Update.
5324         (stage1-start, stage2-start, stage3-start, stage4-start,
5325         stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
5326         Move the STAGEMOVESTUFF.
5327
5328 2004-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
5329
5330         * system.h (getpagesize): Return 'int' instead of 'long'.
5331
5332 2004-09-27  Michael Matz <matz@suse.de>
5333
5334         PR bootstrap/17698
5335         PR bootstrap/17702
5336         * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
5337         bmp_iter_and_init): Shift by bit_in_word.
5338
5339 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
5340
5341         * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
5342         * configure.ac: Don't sinclude it here.
5343         * configure: Regenerate.
5344
5345 2004-09-27  Dorit Naishlos  <dorit@il.ibm.com>
5346
5347         * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
5348         Handle AND pattern
5349
5350 2004-09-27  Joseph S. Myers  <jsm@polyomino.org.uk>
5351
5352         PR c/13804
5353         * c-typeck.c (build_component_ref): Name type involved in
5354         diagnostic for structure or union without a member of the given
5355         name.
5356
5357 2004-09-27  DJ Delorie  <dj@redhat.com>
5358
5359         * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
5360         .comm alignment is bytes, not bits.
5361
5362 2004-09-27  Devang Patel  <dpatel@apple.com>
5363
5364         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
5365         (print_call_name): Do not print VEC_COND_EXPR.
5366
5367 2004-09-27  Devang Patel  <dpatel@apple.com>
5368
5369         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
5370
5371 2004-09-27  Jan Hubicka  <jh@suse.cz>
5372
5373         * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
5374
5375 2004-09-27  Kazu Hirata  <kazu@cs.umass.edu>
5376
5377         * bitmap.h: Fix a comment typo.
5378
5379 2004-09-27  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
5380
5381         * libgcc2.c (getpagesize): Change type of return value to int.
5382
5383 2004-09-26  Matt Austern  <austern@apple.com>
5384
5385         * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
5386         using mmap.
5387
5388 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5389
5390         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
5391         EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
5392         (bitmap_iterator): New type.
5393         (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
5394         bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
5395         bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
5396         bmp_iter_and_init, bmp_iter_and_next): New functions.
5397         * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
5398         EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
5399         use iterator-style EXECUTE_IF_IN_BITMAP macros.
5400         * bitmap.c (bitmap_print): Ditto.
5401         * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
5402         btr_def_live_range): Ditto.
5403         * cfganal.c (compute_dominance_frontiers_1) Ditto.
5404         * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
5405         Ditto.
5406         * ddg.c (build_inter_loop_deps): Ditto.
5407         * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
5408         Ditto.
5409         * except.c (remove_eh_handler): Ditto.
5410         * flow.c (reg_set_to_hard_reg_set): Ditto.
5411         * gcse.c (clear_modify_mem_tables): Ditto.
5412         * global.c (build_insn_chain): Ditto.
5413         * ifcvt.c (dead_or_predicable): Ditto.
5414         * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
5415         Ditto.
5416         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
5417         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
5418         detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
5419         * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
5420         tree_purge_all_dead_eh_edges): Ditto.
5421         * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
5422         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
5423         rewrite_ssa_into_ssa): Ditto.
5424         * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
5425         * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
5426         Ditto.
5427         * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
5428         compute_flow_sensitive_aliasing, maybe_create_global_var,
5429         dump_points_to_info_for): Ditto.
5430         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
5431         * tree-ssa-dse.c (dse_finalize_block): Ditto.
5432         * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
5433         calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
5434         Ditto.
5435         * tree-ssa-loop-ivopts.c (find_induction_variables,
5436         find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
5437         determine_use_iv_costs, determine_set_costs, find_best_candidate,
5438         set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
5439         Ditto.
5440         * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
5441         * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
5442         add_call_read_ops): Ditto.
5443         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
5444
5445 2004-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5446
5447         * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
5448         UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
5449
5450 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
5451
5452         * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
5453         reflect size of memory regions being compared.
5454
5455 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
5456
5457         * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
5458         expressions.  Always clear MEM_SIZE and alias set.
5459
5460 2004-09-26  Roger Sayle  <roger@eyesopen.com>
5461             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5462
5463         PR middle-end/17112
5464         * stor-layout.c (compute_record_mode): For records with a single
5465         field, only use the field's mode if its size matches what we'd
5466         have choosen for the record ourselves.  This forces the use of
5467         BLKmode for packed records that don't completely fill a mode.
5468
5469 2004-09-26  Roger Sayle  <roger@eyesopen.com>
5470
5471         PR middle-end/17151
5472         * combine.c (force_to_mode): Remove dubious early return test that
5473         inhibits further optimization.
5474
5475 2004-09-26  Kazu Hirata  <kazu@cs.umass.edu>
5476
5477         * profile.c: Fix a comment typo.
5478
5479 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5480
5481         PR bootstrap/17591
5482         * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
5483         with varying offset.
5484         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
5485         (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
5486         ARRAY_REFS.
5487         (expr_invariant_in_loop_p): New function.
5488         (idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
5489         component_ref_field_offset for COMPONENT_REFs.  Do not allow
5490         ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
5491         (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
5492         MISALIGNED_INDIRECT_REFs.
5493         (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
5494         (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
5495         MISALIGNED_INDIRECT_REFs.
5496
5497 2004-09-26  Joseph S. Myers  <jsm@polyomino.org.uk>
5498
5499         PR c/11459
5500         * gcc.c (cpp_options, cc1_options): Preserve relative order of
5501         -std and -ansi options.
5502
5503 2004-09-26  Jan Hubicka  <jh@suse.cz>
5504
5505         * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
5506         for nested functions whose proper parent has not been output.
5507
5508         * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
5509         when re-constructing profile previously invalidated by loop.
5510
5511 2004-09-25  Dale Johannesen  <dalej@apple.com>
5512
5513         * tree-gimple.c:  Move GIMPLE definition...
5514         * doc/tree-ssa.texi:  here.
5515
5516 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
5517
5518         * tree-vectorizer.c: Fix a comment typo.
5519
5520 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
5521
5522         * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
5523         gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
5524         lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
5525         tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
5526
5527 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
5528
5529         * tree-ssa-loop-unswitch.c: Fix a comment typo.
5530
5531 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
5532
5533         * doc/passes.texi: Fix a typo.
5534
5535 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5536
5537         * tree-optimize.c (init_tree_optimization_passes): Add
5538         pass_record_bounds.
5539         * tree-pass.h (pass_record_bounds): Declare.
5540         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
5541         New pass.
5542
5543 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5544
5545         PR tree-optimization/17474
5546         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
5547         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
5548
5549 2004-09-25  Jan Hubicka  <jh@suse.cz>
5550
5551         * predict.c (counts_to_freqs): Make global.
5552         * predict.h (counts_to_freqa): Declare.
5553         * profile.c (compute_branch_probabilities): Compute frequencies
5554         * tree-profile.c (do_tree_profiling): Refine conditional on when
5555         tree profiling pass is needed.
5556
5557         * passes.c (rest_of_handle_cfg): Disable const/pure function
5558         detection when doing tree based profiling.
5559
5560         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
5561         conditional.
5562
5563 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
5564
5565         * config/mips/mips.h (struct mips_args): Clarify comments.
5566         * config/mips/mips.c (struct mips_arg_info): Likewise.
5567         (mips_arg_info): Don't allow fpr_p to affect the register or
5568         stack alignment.  Remove o64 silliness.
5569         (function_arg): Deal with the o32 float,float case specially.
5570
5571 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
5572
5573         * config/mips/mips.md (loadx, storex): Define for V2SF.
5574
5575 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
5576
5577         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
5578         * config/s390/s390.c (s390_back_chain_rtx): New function.
5579         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
5580         Call anti_adjust_stack.
5581         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
5582         only if compiling with back chain.
5583         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
5584         back chain only if back chain enabled.  Use s390_back_chain_rtx.
5585
5586 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
5587
5588         * doc/trouble.texi: Remove obsolete information.  Update
5589         information on how to regenerate fixincluded headers.
5590
5591 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
5592
5593         PR c/12951
5594         * doc/invoke.texi: Document that
5595         -Wno-error-implicit-function-declaration is not accepted.
5596
5597 2004-09-24  Richard Henderson  <rth@redhat.com>
5598
5599         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
5600         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
5601         on TARGET_MAX.
5602         (alpha_expand_mov): Allow unaligned vectors.
5603         (alpha_expand_unaligned_store): Use CONST0_RTX.
5604         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
5605
5606 2004-09-24 Jeff Law  <law@redhat.com>
5607
5608         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
5609         aliasing rules.
5610         (simplify_cond_and_lookup_avail_expr): Likewise.
5611
5612 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
5613
5614         PR c/12802
5615         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
5616         title.  Document interaction with -fms-extensions.
5617         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
5618         section.
5619
5620 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
5621
5622         PR c/12713
5623         * doc/extend.texi: Document interaction of attribute noreturn and
5624         longjmp.
5625
5626 2004-09-24  Richard Henderson  <rth@redhat.com>
5627
5628         PR rtl-opt/17503
5629         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
5630         (som_hash, som_eq): New.
5631         (init_subregs_of_mode, record_subregs_of_mode): New.
5632         (cannot_change_mode_set_regs): Rewrite for htab implementation.
5633         (invalid_mode_change_p): Likewise.
5634         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
5635         * flow.c (mark_used_regs): Likewise.
5636         (life_analysis): Use init_subregs_of_mode.
5637         * regs.h (subregs_of_mode): Remove.
5638         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
5639
5640 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
5641
5642         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
5643         type with the copy of the conditional.
5644
5645 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
5646
5647         PR tree-opt/16954
5648         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
5649         Prevent renaming if the aliasing sets of the type which the
5650         pointer points to are different.
5651
5652 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
5653
5654         PR c/17188
5655         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
5656         declarations of enumerators.
5657         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
5658         for redefinition.  Check for nested redefinition.
5659         (finish_struct): Don't check for nested redefinition.
5660         (start_enum): Check for nested redefinition.
5661
5662 2004-09-24  Devang Patel  <dpatel@apple.com>
5663
5664         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
5665         only when necesssary.
5666         (combine_blocks): Combine loop header and exit block.
5667
5668 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
5669
5670         * hooks.c (hook_tree_tree_bool_null): New.
5671         * hooks.h (hook_tree_tree_bool_null): Declare it.
5672         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
5673         * targhooks.c (default_fold_builtin): Remove.
5674         * targhooks.h (default_fold_builtin): Remove.
5675
5676 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5677
5678         PR rtl-optimization/17625
5679         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
5680
5681 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
5682
5683         PR tree-opt/17624
5684         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
5685         Reject if any of the operands occur in an abnormal PHI.
5686
5687 2004-09-24  Andreas Schwab  <schwab@suse.de>
5688
5689         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
5690         rules.
5691
5692 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
5693
5694         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
5695         if the GNU assembler is used.
5696         (sparc-*-solaris2*): Likewise.
5697         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
5698         (dbxout_function_end): Protect N_ENSYM with it.
5699         (dbxout_begin_prologue): Protect N_BNSYM with it.
5700         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
5701         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
5702         * config/sparc/sol2-gas.h: New file.
5703
5704 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
5705
5706         PR bootstrap/17369
5707         * Makefile.in (@set_gcc_lib_path@): Added.
5708
5709         * configure.ac: Include ../config/gcc-lib-path.m4. Use
5710         TL_AC_GNU_MAKE_GCC_LIB_PATH.
5711         * configure: Regenerated.
5712
5713 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
5714
5715         PR c/6980
5716         * c-typeck.c (build_c_cast): Improve wording of
5717         -Wbad-function-cast diagnostic.
5718
5719 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
5720
5721         PR target/17626
5722         * config/cris/cris.md (moverside, movemside): Rename variable
5723         "reg" to "otherop".  To generate canonical RTX, check that otherop
5724         isn't constant instead of checking that operand 1 is a register.
5725
5726 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
5727
5728         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
5729
5730 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
5731             Jakub Jelinek  <jakub@redhat.com>
5732
5733         * tree-flow.h (find_new_referenced_vars): Add prototype.
5734         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
5735         Move to...
5736         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
5737         ... here.
5738         (mark_new_vars_to_rename): Walk through all operands.
5739         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
5740         (execute_fold_all_builtins): Use it.
5741         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
5742
5743 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
5744
5745         * gthr-tpf.h: New file.
5746         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
5747         * gthr.h: Use gthr-tpf.h on TPF OS.
5748
5749 2004-09-23 Jeff Law  <law@redhat.com>
5750
5751         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
5752         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
5753         (substitute_and_fold):  Likewise.
5754         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
5755         except invariants from SSA_NAME_VALUE.
5756         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
5757         and SET_SSA_NAME_EQUIV.
5758         (restore_vars_to_original_value, record_const_or_copy): Likewise.
5759         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
5760         (record_equality, cprop_into_successor_phis): Likewise.
5761         (record_equivalences_from_stmt, cprop_operand): Likewise.
5762         (lookup_avail_expr): Likewise.
5763         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
5764         from SSA_NAME_VALUE.
5765         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
5766         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
5767         annotation from the VALUE_HANDLE field.
5768
5769 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
5770
5771         PR c++/13989
5772         PR c++/9844
5773         * tree.c (reconstruct_complex_type): Remove extra "this".
5774         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
5775         Add V4SFmode to case statement.
5776
5777 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
5778
5779         PR c/16833
5780         * doc/extend.texi, doc/invoke.texi: Document interaction of
5781         -fno-builtin with format checks.  Note that built-in functions
5782         have effects beyond generating code that avoids calls to those
5783         functions.
5784
5785 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
5786
5787         PR tree-optimization/17533
5788         * dominance.c (verify_dominators): Tolerate even more incorrect
5789         dominance data during error message printing.
5790         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
5791         and edges more correctly.
5792
5793 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
5794
5795         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
5796         New tree-codes.
5797         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
5798         MISALIGNED_INDIRECT_REF.
5799         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
5800         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
5801         Likewise.
5802         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
5803         (find_interesting_uses_address): Likewise.
5804         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
5805         (build_fold_addr_expr_with_type): Likewise.
5806         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
5807         * print-rtl.c (print_mem_expr): Likewise.
5808         * tree-dump.c (dequeue_and_dump): Likewise.
5809         * tree-eh.c (tree_could_trap_p): Likewise.
5810         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
5811         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
5812         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
5813         Likewise.
5814         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5815         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
5816         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
5817         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
5818         (add_address_candidates, rewrite_address_base): Likewise.
5819         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
5820         Likewise.
5821         * tree.c (staticp, build1_stat): Likewise.
5822
5823         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
5824         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
5825         * tree-ssa-operands.c (get_expr_operands): Likewise.
5826         * expr.c (expand_expr_real_1): Likewise.
5827
5828         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
5829         optabs.
5830         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
5831         for the new optabs.
5832         (expand_ternary_op): New function.
5833         * genopinit.c (optabs): Handle the new optabs.
5834         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
5835         (init_optabs): Initialize vec_realign_load_optab.
5836         (expand_ternary_op): New functions.
5837
5838         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
5839         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
5840         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
5841         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
5842         * target.h (struct vectorize): New member for struct gcc_target.
5843         (misaligned_mem_ok): New member for targetm.vectorize.
5844         (builtin_mask_for_load): Likewise.
5845         (builtin_mask_for_store): Likewise.
5846         * targethooks.c (default_vect_misaligned_mem_ok): New function.
5847         * targethooks.h (default_vect_misaligned_mem_ok): New function.
5848
5849         * config/rs6000/altivec.md (build_vector_mask_for_load): New
5850         define_expand.
5851         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
5852         (vec_realign_load_v16qi): New define_insn.
5853         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
5854         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
5855         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
5856         (altivec_builtin_mask_for_store): New variables.
5857         (rs6000_builtin_mask_for_load): New function. Implements
5858         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
5859         (rs6000_builtin_mask_for_store): New function. Implements
5860         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
5861         (rs6000_expand_builtin): Expand the target builtins
5862         builtin_mask_for_load and builtin_mask_for_store.
5863         (altivec_init_builtins): Initialize the new target builtins.
5864         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
5865         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
5866
5867         * tree-vectorizer.c (vect_create_data_ref): Renamed to
5868         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
5869         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
5870         (vectorizable_store): Call vect_create_data_ref_ptr with additional
5871         arguments, and create an indirect_ref with its return value data_ref.
5872         Check aligned_access_p.
5873         (vectorizable_load): Handle misaligned loads, using software-pipelined
5874         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
5875         vec_realign_load_optab is supported, or using a scheme without
5876         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
5877         misaligned_mem_ok is supported.
5878
5879         (vect_finish_stmt_generation): Typo.
5880         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
5881         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
5882         presence of misaligned loads.
5883         (vect_analyze_data_ref_access): Add check for constant init.
5884         (vect_get_symbl_and_dr): Remove duplicate line.
5885         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
5886
5887 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
5888
5889         * builtins.c: Fix a comment typo.
5890
5891 2004-09-23  Jan Hubicka  <jh@suse.cz>
5892
5893         * profile.c (branch_prob): Do not verify flow info in the middle of the
5894         pass.
5895
5896 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5897
5898         * cfgloop.h (update_single_exits_after_duplication): Declare.
5899         (loopify, split_loop_bb): Declaration changed.
5900         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
5901         of rtx.
5902         (loopify): Added redirect_all_edges argument.
5903         (update_single_exits_after_duplication): Export.
5904         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
5905         * tree-flow.h (tree_duplicate_loop_to_header_edge,
5906         tree_ssa_loop_version): Declare.
5907         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
5908         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
5909         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
5910         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
5911
5912         * tree-ssa-loop-unswitch.c: New file.
5913         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
5914         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
5915         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
5916         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
5917         * tree-pass.h (pass_unswitch): Declare.
5918         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
5919         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
5920         * doc/passes.texi: Documen tree level loop unswitching.
5921
5922 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
5923
5924         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
5925
5926 2004-09-22  Eric Christopher  <echristo@redhat.com>
5927
5928         * builtins.c (simplify_builtin_va_start): Remove.
5929         (simplify_builtin): Ditto.
5930         (fold_builtin_strchr): Ditto.
5931         (simplify_builtin_*): Rename remainders to fold_builtin_*.
5932         (expand_builtin): Fix up for above changes.
5933         (fold_builtin_1): Add new folders. Change for above.
5934         (expand_builtin_va_start): Call fold_builtin_next_arg.
5935         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
5936         * tree.h: Remove prototype for simplify_builtin.
5937
5938 2004-09-23  Jan Hubicka  <jh@suse.cz>
5939
5940         PR debug/17389
5941         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
5942         of fully inlined functions.
5943         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
5944         inlined.
5945
5946         * cfgexpand.c (add_reg_br_prob_note): New function.
5947         (expand_gimple_cond_expr): Use it.
5948         (tree_expand_cfg): No longer kill the profile.
5949         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
5950         only if it is present.
5951         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
5952         * predict.c (combine_predictions_for_insn): Set the probabilities
5953         based on REG_BR_PROB note if present.
5954         * predict.c (branch_prob): Profile is read only with
5955         flag_branch_probabilities.
5956
5957 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
5958
5959         * aclocal.m4: Add in gettext's m4 includes.
5960         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
5961         * configure.ac: Add in check for iconv.h
5962         * configure: Regenerate.
5963
5964 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
5965
5966         * aclocal.m4: Update for rename of gettext-sister.m4.
5967
5968 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
5969
5970         Fix PR tree-optimization/17587
5971         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
5972         (insert_aux): Instead of here.
5973
5974 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
5975
5976         PR tree-optimization/16721
5977         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
5978         * tree-ssa-alias.c (create_memory_tag): Move setting of
5979         TREE_THIS_VOLATILE ...
5980         (get_tmt_for): ... here.
5981
5982 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
5983
5984         * config/sparc/sparc.md (cmove splitter): Fix formatting.
5985         (conditional_trap expander): Reject inappropriate CCmodes.
5986         (conditional trap insn): Use V9 syntax if possible.
5987
5988 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
5989
5990         PR c/16566
5991         * c-typeck.c (build_component_ref): Don't special-case
5992         COMPOUND_EXPR.
5993
5994 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
5995
5996         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
5997         returns NULL.
5998
5999 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
6000
6001         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
6002         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
6003         TRUTH_XOR_EXPR): Mention the restriction on types.
6004
6005 2004-09-22  Matt Austern  <austern@apple.com>
6006
6007         * config/darwin.c (darwin_make_decl_one_only):
6008         Allow coalesced symbol to appear in static archive's table of contents
6009
6010 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
6011
6012         PR tree-optimization/17512
6013         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
6014         special cases.
6015
6016 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
6017
6018         * dbxout.c (get_lang_number): Do not define if
6019         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
6020
6021 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
6022
6023         PR target/15583
6024         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
6025         builtin_define ("__USE_INIT_FINI__").
6026
6027 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
6028
6029         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
6030         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
6031         * config/s390/s390.h (TARGET_TPF): New macro.
6032         * config/s390/s390.md ("eh_return"): New expander.
6033         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
6034         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
6035         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
6036         * config/s390/tpf.h (TARGET_TPF): Define to 1.
6037         (STACK_POINTER_OFFSET): Increase to 448.
6038         (TARGET_DEFAULT): Set -mtpf-trace on as default.
6039         (TPF_LOC_DIFF_OFFSET): New macro.
6040         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
6041         encoding.
6042         (__isPATrange): Add prototype.
6043         (MD_FALLBACK_FRAME_STATE_FOR): Define.
6044         * config/s390/tpf-eh.c: New file.
6045
6046 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
6047
6048         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
6049         operands in an integer comparison.
6050         * tree-cfg.c (find_taken_edge): Call fold() to determine
6051         whether the predicate is known.
6052
6053 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
6054
6055         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
6056         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
6057         Create build and doc directories along with the language directories.
6058         Don't create doc directory separately.
6059         * configure: Regenerate.
6060         * Makefile.in: Create all object and executables files built
6061         with the build compiler in a build/ directory.
6062         (genobjnames): Add missing build objects.
6063         (STAGESTUFF): Don't stage the gen* programs.
6064         (ggc-none.o): Define dependencies for the target compiler.
6065         (build-print-rtl.o): Rename to build/print-rtl.o.
6066         (build-errors.o): Rename to build/errors.o.
6067         (build-varray.o): Rename to build/varray.o.
6068         (maintainerclean): Delete the contents of the build directory.
6069         ($(genobjs): %.o): Explicitly use -o.
6070         (build/insn-conditions.o): Delete specfic rule to use generic rule.
6071         (build/gengtype-lex.o): Likewise.
6072         (build/gengtype-yacc.o): Likewise.
6073         (build/gcov-iov.o): Likewise.
6074
6075 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
6076
6077         * vec.h (VEC_space): Return true if there _is_ space.
6078         (VEC_reserve): Adjust.
6079
6080 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
6081
6082         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
6083         use FPRs for scalar, complex and vector types only.
6084
6085 2004-09-21 Jeff Law  <law@redhat.com>
6086
6087         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
6088         the opt_stats_d structure.
6089         (vrp_data): Change from a varray into a hash table.
6090         (vrp_hash_elt): New structure for elements in the vrp hash table.
6091         (vrp_hash, vrp_eq):New functions for hashing and testing equality
6092         in the vrp hash table.
6093         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
6094         initialization slightly to make it easier to read.  No longer need
6095         to grow/clear the varray.  Instead empty and delete the hash table.
6096         (dom_opt_finalize_block): Update due to change of VRP_DATA from
6097         a varray to a hash table.
6098         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
6099
6100         * tree-ssa-ccp.c (get_default_value): If we have a constant
6101         value recorded for an SSA_NAME, then use that constant as
6102         the initial lattice value.
6103         (substitute_and_fold): Transfer equivalences discovered into
6104         SSA_NAME_EQUIV.
6105
6106         * tree.h (SSA_NAME_EQUIV): Add comments.
6107         (SET_SSA_NAME_EQUIV): Similarly.
6108
6109 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
6110
6111         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
6112
6113         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
6114
6115 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
6116
6117         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
6118         (finish_decl): Likewise.
6119
6120 2004-09-21  Devang Patel  <dpatel@apple.com>
6121
6122         * tree.def (VEC_COND_EXPR): New tree node.
6123         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
6124
6125 2004-09-21  Stan Shebs  <shebs@apple.com>
6126
6127         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
6128         * config/rs6000/darwin-world.asm: Likewise.
6129
6130 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
6131
6132         * tree-ssa.c (verify_def): Use print_generic_stmt,
6133         not debug_generic_stmt.
6134         (verify_use): Ditto.
6135         (verify_phi_args): Ditto.
6136         (verify_ssa): Ditto.
6137
6138 2004-09-21  Paul Brook  <paul@codesourcery.com>
6139
6140         * varasm.c (default_assemble_integer): Return false for values wider
6141         than the target word size.  Works around GAS bug.
6142
6143 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
6144
6145         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
6146         gets value 0.
6147         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
6148         if it has value 0.
6149
6150 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
6151
6152         * c-typeck.c (build_function_call): Give name of object
6153         we are attempting to call in error message.
6154         * c-objc-common.c (c_tree_printer): Call pp_expression,
6155         not return false, for 'E' case.
6156
6157 2004-09-21  Steven Bosscher  <stevenb@suse.de>
6158
6159         PR rtl-optimization/17482
6160         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
6161         load_killed_in_block_p): Clarify comments.
6162         (record_last_reg_set_info): Make static inline.
6163         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
6164         (record_opr_changes): New function to replace the above.
6165         (compute_hash_table): Clarify comments.  Use record_opr_changes.
6166         (reg_set_between_after_reload_p): Clean up.
6167         (reg_used_between_after_reload_p): Likewise.
6168         (eliminate_partially_redundant_load): Clarify comments.
6169
6170 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
6171
6172         PR rtl-optimization/17266
6173         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
6174
6175 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
6176
6177         PR rtl-optimization/14851
6178         * rtlanal.c (commutative_operand_precedence): Calculate
6179         precedence of stripped constant.
6180
6181 2004-09-20 Jeff Law  <law@redhat.com>
6182            Jan Hubicka  <jh@suse.cz>
6183
6184         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
6185         initialize key elements here.
6186         (release_ssa_name): Zero the released SSA_NAME here.
6187         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
6188         (struct tree_ssa_name): Add new "equiv" field.
6189         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
6190         (tree_ssa_dominator_optimize): No longer allocate, resize or
6191         clear CONST_AND_COPIES.
6192         (get_value_for, set_value_for): Kill.
6193         (thread_across_edge): Get/set the equivalency using
6194         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
6195         (restore_vars_to_original_value): Likewise.
6196         (record_equivalences_from_phis): Likewise.
6197         (record_dominating_conditions): Likewise.
6198         (record_const_or_copy, record_equality): Likewise.
6199         (lookup_avail_expr): Likewise.
6200         (record_equivalences_from_stmt, cprop_operand): Likewise.
6201         (cprop_into_successor_phis): No longer need to pass around
6202         CONST_AND_COPIES.  Callers updated. Get equivalences via
6203         SSA_NAME_EQUIV.
6204         (cprop_into_phis): Likewise.
6205
6206 2004-09-20  Matt Austern <austern@apple.com>
6207             Zack Weinberg  <zack@codesourcery.com>
6208
6209         * c-common.c (fix_string_type): Build the unqualified array
6210         type unconditionally, then use c_build_qualified_type to get
6211         the proper const-qualified variant, and set its
6212         TYPE_MAIN_VARIANT to refer to the unqualified type.
6213         * c-lex.c (c_lex_return_raw_string): New global.
6214         (c_lex_with_flags): Honor it.
6215         * c-pragma.h: Declare it.
6216
6217 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
6218
6219         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
6220
6221 2004-09-21  Jan Hubicka  <jh@suse.cz>
6222
6223         PR middle-end/17126
6224         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
6225         (tree_rest_of_compilation): Cleanup.
6226
6227 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
6228
6229         * config/s390/s390.c (s390_select_rtx_section): Remove.
6230         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
6231
6232 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6233
6234         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
6235         note to pretend a direct save from the original register when an
6236         intermediate register is used for the save.
6237
6238 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6239
6240         * tsystem.h (alloca): Provide a default definition.
6241
6242         Revert:
6243         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6244             * unwind-dw2.c: Call __builtin_alloca, not alloca.
6245
6246 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
6247
6248         PR tree-opt/17558
6249         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
6250         aliasing sets are the same rather than just conflicting.
6251
6252 2004-09-20  Jan Hubicka  <jh@suse.cz>
6253
6254         PR middle-end/16460
6255
6256         * cgraph.c (cgraph_unnest_node): New function.
6257         (c_finalize): Rename to ....
6258         (c_warn_unused_result_recursivly): ... this one; do only the warning
6259         (finish_function): Finalize the toplevel function; do not lower nested tree.
6260         * cgraph.h (cgraph_unnest_node): Declare.
6261         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
6262         nestedness datastructure.
6263         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
6264         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
6265         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
6266
6267 2004-09-20  Richard Henderson  <rth@redhat.com>
6268
6269         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
6270         from some_small_symbolic_operand_1; export.
6271         (some_small_symbolic_operand): Remove.
6272         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
6273         extra C check.
6274         * config/alpha/predicates.md (some_small_symbolic_operand): New.
6275
6276 2004-09-20  Jan Hubicka  <jh@suse.cz>
6277
6278         * predict.c (return_prediction): New function.
6279         (apply_return_prediction): Likewise.
6280         (tree_bb_level_predictions): Likewise.
6281         (tree_estimate_probability): Add noreturn exit edges; call
6282         bb_level_predictions; fix logic of return heuristics.
6283         (predict_paths_leading_to):  Rescuesce from old CVS version of
6284         process_note_prediction function.
6285         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
6286
6287 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6288
6289         * config/s390/s390.c (s390_frame_info): Added alignment statement for
6290         floating point register area on stack.
6291
6292 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
6293
6294         * predict.c (expr_expected_value): Use *_CLASS_P macros.
6295
6296 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
6297
6298         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
6299         generating useless garbage.
6300
6301 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
6302
6303         * builtins.c (fold_builtin): Call the new omonymous
6304         target hook for machine-dependent built-ins.
6305         * target-def.h (TARGET_FOLD_BUILTIN): New.
6306         * target.h (struct gcc_target): Add the fold_builtin hook.
6307         * targhooks.c (default_fold_builtin): New.
6308         * targhooks.h (default_fold_builtin): Declare it.
6309
6310 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
6311
6312         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
6313         comment typos.
6314
6315 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
6316
6317         PR target/17565
6318         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
6319
6320 2004-09-20  Jan Hubicka  <jh@suse.cz>
6321
6322         * predict.c (estimate_probability): Remove unnecesary code.
6323
6324 2004-09-19  Ira Rosen  <irar@il.ibm.com>
6325
6326         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
6327         (STMT_VINFO_VECT_DR_BASE): Declare.
6328         (VECT_SMODULO): Declare.
6329         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
6330         (vect_compute_array_base_alignment): New function.
6331         (vect_analyze_data_ref_access): Check array indices. Remove one
6332         dimensional arrays restriction.
6333         (vect_get_ptr_offset): New function.
6334         (vect_get_symbl_and_dr): New function.
6335         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
6336         (former name vect_get_base_decl_and_bit_offset).
6337         (vect_create_index_for_array_ref): Removed.
6338         (vect_create_index_for_vector_ref): New function.
6339         (vect_create_addr_base_for_vector_ref): New function.
6340         (vect_create_data_ref): Handle additional data refs. Call
6341         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
6342         (vect_compute_data_ref_alignment): Support the changes. Call
6343         vect_get_base_and_bit_offset.
6344         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
6345         data refs. Store vect_dr_base.
6346         (vect_analyze_data_ref_accesses): Support nonconstant init.
6347         (new_stmt_vec_info): Initialize vect_dr_base field.
6348         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
6349         (get_vectype_for_scalar_type): Check for BLKmode.
6350         * tree-chrec.h (initial_condition_in_loop_num): Declare.
6351         * tree-chrec.c (initial_condition_in_loop_num): New function.
6352         (chrec_component_in_loop_num): New function.
6353         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
6354         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
6355         to be pointer to varray_type.
6356
6357 2004-09-19  Jan Hubicka  <jh@suse.cz>
6358
6359         * basic-block.h (update_bb_profile_after_threading): Declare.
6360         * cfg.c (update_bb_profile_after_threading): Break out from ...
6361         * cfgcleanup.c (try_forward_edges): ... here; use it.
6362         * tree-ssa-dom.c (thread_across_edge): Use it.
6363         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
6364         profile of the new BB.
6365
6366 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
6367
6368         * tree-ssa-pre.c (insert_into_set): Don't put
6369         is_gimple_min_invariant values into the set.
6370
6371 2004-09-19  Andreas Jaeger  <aj@suse.de>
6372
6373         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
6374         prototype.
6375
6376 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
6377
6378         * config/cris/cris.h: Preserve the original spelling in a
6379         quote.
6380
6381 2004-09-18 Jeff Law  <law@redhat.com>
6382
6383         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
6384         global varrays to replace the block local varrays.
6385         (struct dom_walk_block_data): Remove, no longer used.
6386         (get_eq_expr_value): No longer need to pass around pointers to local
6387         varrays.  Callers updated.  Unused markers added to unused parameters.
6388         (record_range, record_equivalences_from_stmt): Likewise.
6389         (record_equivalences_from_incoming_edge): Likewise.
6390         (record_var_is_nonzero): Likewise.  Update now that we have a
6391         single global varray of SSA_NAMEs that need restoring.
6392         (dom_opt_initialize_block_local_data): Kill, no longer used.
6393         (tree_ssa_dominator_optimize): Initialize new global varrays.
6394         Update callbacks in dominator walker structure.
6395         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
6396         VRP_VARIABLES_STACK.
6397         (restore_nonzero_vars_to_original_value): Update now that we have
6398         a single global varray of SSA_NAMEs that need restoring.
6399         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
6400         Remove unused variables.
6401         (optimize_stmt): Remove unused variable.
6402
6403 2004-09-18  Jan Hubicka  <jh@suse.cz>
6404
6405         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
6406
6407         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
6408         verify_cgraph call.
6409
6410 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
6411
6412         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
6413         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
6414         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
6415         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
6416         tree-ssa-operands.c, tree-ssa-phiopt.c,
6417         tree-ssa-threadupdate.c: Fix comment typos.
6418
6419 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
6420
6421         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
6422         config/arm/README-interworking, config/arm/arm-cores.def,
6423         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
6424         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
6425         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
6426         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
6427         config/frv/frv.md, config/i386/winnt.c,
6428         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
6429         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
6430         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
6431         config/mcore/mcore.c, config/mips/mips.h,
6432         config/mn10300/mn10300.md, config/pa/pa.c,
6433         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
6434         config/rs6000/rs6000.c, config/sh/symbian.c,
6435         config/sparc/sparc.h: Fix comment typos.  Follow spelling
6436         conventions.
6437
6438 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
6439
6440         PR c/17424
6441         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
6442
6443 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
6444
6445         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
6446         remove TREE_ADDRESSABLE from RESULT_DECL.
6447
6448 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
6449
6450         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
6451
6452 2004-09-18  Jan Hubicka  <jh@suse.cz>
6453
6454         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
6455         NULL.
6456         * tree-ssa-alias.c (init_alias_info): Likewise.
6457         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
6458         (verify_ssa): Likewise.
6459         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
6460
6461 2004-09-18  Jan Hubicka  <jh@suse.cz>
6462
6463         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
6464         huge offset.
6465
6466 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6467
6468         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
6469         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
6470         DW_EH_PE_sdata* for data.
6471         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6472
6473 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
6474
6475         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
6476         shared anyway.
6477
6478         PR pch/13361
6479         * c-typeck.c (constructor_asmspec): Delete.
6480         (struct initializer_stack): Delete field 'asmspec'.
6481         (start_init): Delete saving of asmspec.
6482         (finish_init): Don't update constructor_asmspec.
6483         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
6484         * stmt.c (expand_asm): Duplicate strings from tree.
6485         (expand_asm_operands): Likewise.
6486         * tree.c (tree_size): Update computation of size of STRING_CST.
6487         (make_node): Don't make STRING_CST nodes.
6488         (build_string): Allocate string with tree node.
6489         (tree_code_size): Clean up assertions, don't allow requests
6490         for "the size of a STRING_CST".
6491         * tree.def (STRING_CST): Update comment.
6492         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
6493         (tree_string): Place contents of string in tree node.
6494         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
6495         from tree.
6496
6497 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
6498
6499         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
6500         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
6501
6502 2004-09-17  Jones Desougi  <jones@ingate.com>
6503
6504         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
6505         * configure, config.in: Regenerate.
6506
6507 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
6508
6509         * tree.c, tree.h (tree_class_strings): Make array const.
6510         Reindent per coding convention.  Move asterisk to proper place
6511         per coding convention.
6512
6513 2004-09-18  Andreas Schwab  <schwab@suse.de>
6514
6515         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
6516         (tree-vectorizer.o): Likewise.
6517         (targhooks.o): Likewise.
6518
6519 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
6520             Zack Weinberg  <zack@codesourcery.com>
6521
6522         * alias.c (find_base_decl): Remove unreachable case '3' block.
6523         * expr.c (safe_from_p): Abort if passed a type.
6524         * tree-gimple.c (recalculate_side_effects): Abort if passed
6525         anything other than an expression.
6526         * tree-ssa-pre.c (phi_translate): Return expr immediately if
6527         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
6528         Abort on un-handled tree classes.
6529         (valid_in_set): Likewise.
6530         * tree.c (tree_code_class_strings): New static data.
6531
6532         * tree.h (enum tree_code_class): New.
6533         (tree_code_class_strings): Declare.
6534         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
6535         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
6536         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
6537         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
6538         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
6539
6540         * tree.def, c-common.def, objc/objc-tree.def: Use
6541         tree_code_class enumeration constants instead of code letters.
6542
6543         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
6544         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
6545         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
6546         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
6547         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
6548         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
6549         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
6550         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
6551         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
6552         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
6553         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
6554         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
6555         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
6556         Update to match.
6557
6558         * LANGUAGES: Add note about change.
6559
6560 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
6561
6562         PR tree-optimization/17319
6563         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
6564         examine pointers on the LHS of an assignment.
6565         (collect_points_to_info_r): Handle RETURN_EXPR.
6566
6567 2004-09-17 Jeff Law  <law@redhat.com>
6568
6569         * tree-ssa-dom.c (const_and_copies_stack): New.
6570         (dom_walk_block_data): Remove const_and_copies field.
6571         (record_const_or_copy): No longer need to pass in varray_type *.
6572         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
6573         Callers updated.
6574         (record_equality): Similarly.
6575         (restore_vars_to_original_value): Similarly.  Revamp to use new
6576         single global stack rather than per-block stacks.
6577         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
6578         (thread_across_edge): Remove now unused parameters.
6579         (dom_opt_initialize_block_local_data): No longer test the block
6580         local CONST_AND_COPIES.
6581         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
6582
6583 2004-09-17  Jan Hubicka  <jh@suse.cz>
6584
6585         PR tree-optimization/17509
6586         * tree-optimize.c (update_inlined_to_pointers): New function.
6587         (tree_rest_of_compilation): Use it.
6588
6589 2004-09-17  Devang Patel  <dpatel@apple.com>
6590
6591         * dbxout.c (get_lang_number): New.
6592         (dbxout_init): Include lang number in N_SO  stab.
6593         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
6594         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
6595
6596 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
6597
6598         PR tree-optimization/17273
6599         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
6600         replacement is a constant.
6601
6602 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
6603
6604         * c-tree.h (enum c_typespec_keyword): New.
6605         (struct c_declspecs): Adjust description of "type".  Remove
6606         specbits, explicit_int_p and explicit_char_p.  Rename
6607         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
6608         short_p, signed_p, unsigned_p and complex_p.
6609         (finish_declspecs): New.
6610         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
6611         typename): Call finish_declspecs.
6612         * c-decl.c (finish_declspecs): New.
6613         (declspecs_add_type): Check for combinations which cannot occur in
6614         valid specifier lists.  Update comments.
6615         (shadow_tag_warned): Remove checks done in finish_declspecs.
6616         Don't report useless type name if type defaulted to int.
6617         (grokdeclarator): Remove checks and actions done in
6618         finish_declspecs.  Don't allow for type being NULL.  Update for
6619         datastructures changes.  Initialize decl_attr.
6620         (build_null_declspecs, quals_from_declspecs): Update for
6621         datastructures changes.
6622
6623 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
6624
6625         * doc/extend.texi: Fix duplicated word.
6626
6627 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
6628
6629         * doc/invoke.texi: Remove stray explanation on
6630         -freduce-all-givs and -fmove-all-movables.
6631
6632 2004-09-17  James Morrison  <phython@gcc.gnu.org>
6633
6634         * doc/cfg.texi: Use @smallexample.
6635         * doc/md.texi: Likewise.
6636         * doc/tree-ssa.texi: Likewise.
6637         * doc/extend.texi: Likewise.  Use @r{} in comments.
6638         * doc/trouble.texi: Use @r{} in comments.
6639
6640 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
6641
6642         * configure.ac (gcc_cv_gld_version): Handle whitespace before
6643         "VERSION=".
6644         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
6645         * configure: Regenerate.
6646
6647 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
6648
6649         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
6650         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
6651         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
6652         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
6653         slashes in substitutions.
6654         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
6655
6656 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
6657
6658         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
6659         gimplify.c, lambda-code.c, optabs.c, predict.c,
6660         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
6661         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
6662         conventions.
6663
6664 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
6665
6666         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
6667         doc/extend.texi, doc/install.texi, doc/invoke.texi,
6668         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
6669         doc/trouble.texi: Use @option around options.
6670
6671 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
6672
6673         * Makefile.in (gen-protos.o): Depend on errors.h.
6674
6675 2004-09-17  Steven Bosscher  <stevenb@suse.de>
6676
6677         PR tree-optimization/17513
6678         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
6679         for successors of the entry block.
6680
6681 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
6682
6683         PR rtl-optimization/15187
6684         * ifcvt.c (noce_try_cmove_arith): Exit early if total
6685         insn_rtx_cost of both branches > BRANCH_COST
6686
6687 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
6688
6689         PR tree-optimization/17528
6690         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
6691         erase the may-alias set for a tag when merging it with
6692         another.
6693
6694 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
6695
6696         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
6697         for 32-bit TARGET_SHMEDIA.
6698         (call_value): Likewise.
6699
6700 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
6701
6702         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
6703         test apply only to TREE_STATIC and DECL_EXTERNAL.
6704
6705 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6706
6707         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
6708         * basic-block.h (get_dominated_by_region): Declare.
6709         * dominance.c (get_dominated_by_region): New function.
6710         * tree-cfg.c: Include cfglayout.h.
6711         (tree_duplicate_bb): Duplicate also phi nodes.
6712         (struct ssa_name_map_entry): New type.
6713         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
6714         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
6715         allocate_ssa_names, rewrite_to_new_ssa_names_def,
6716         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
6717         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
6718         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
6719         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
6720         rewrite_to_new_ssa_names, allocate_ssa_names,
6721         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
6722         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
6723         (copy_loop_headers): Use tree_duplicate_sese_region.
6724
6725 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
6726
6727         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
6728
6729 2004-09-16 Jeff Law  <law@redhat.com>
6730
6731         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
6732         (rewrite_block_data): Remove, no longer used.
6733         (rewrite_initialize_block_local_data): Remove, no longer used.
6734         (rewrite_initialize_block): Mark parameters as unused as needed.
6735         Change references to the block local block_defs to be block_defs_stack.
6736         Push a marker onto the block_defs_stack.
6737         (ssa_rewrite_initialize_block): Similarly.
6738         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
6739         (ssa_register_new_def): No longer needs varray argument.  Use
6740         block_defs_stack instead.  No longer handle possibly null block_defs
6741         varray.  Reverse order of items we push on the stack to make it
6742         easier to identify our marker.
6743         (register_new_def): No longer handle possibly null block_defs
6744         varray.
6745         (rewrite_finalize_block): Revamp to look for markers in the global
6746         block_defs_stack varray rather than wiping a block local varray.
6747         Mark arguments as unused as needed.
6748         (ssa_rewrite_finalize_block): Similarly.
6749         (rewrite_into_ssa): Update initialization of dom walker structure
6750         to reflect that we don't need block local data anymore.  Initialize
6751         the block_defs_stack varray.
6752         (rewrite_ssa_into_ssa): Similarly.
6753         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
6754         (struct dom_walk_data): Kill block_defs field.
6755         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
6756         (thread_across_edge): Use the global block_defs_stack instead of
6757         the old block_defs varray.
6758         (dom_opt_initialize_block_local_data): Update now that we don't have
6759         block_defs field to check anymore.
6760         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
6761         (restore_currdefs_to_original_value): Use the new block_defs_stack
6762         instead of a block local varray.
6763         (dom_opt_finalize_block): Similarly.
6764         (record_equivalencs_from_phis): Similarly.
6765         (optimize_stmt, register_definitions_for_stmt): Similarly.
6766
6767 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
6768
6769         PR tree-optimization/17517
6770         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6771         coalesce same-root variables without checking for abnormal PHI usage.
6772
6773 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
6774
6775         * cfgloop.h (duplicate_loop):  Add prototype.
6776         * cfgloopmanip.c (duplicate_loop): Make non-static.
6777         * lambda-code.c (perfect_nestify): Factor out test whether
6778         we can handle this loop into separate function.
6779         Call it.
6780         (can_convert_to_perfect_nest): New function.
6781         (replace_uses_of_x_with_y): Add modify_stmt call.
6782         * tree-loop-linear.c (linear_transform_loops): Call
6783         rewrite_into_loop_closed_ssa and free_df.
6784
6785 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
6786
6787         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
6788         loop invariant as well.
6789         (perfect_nestify): new function.
6790         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
6791         upper bounds, and steps.
6792         Set outerinductionvar properly.
6793         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
6794         parameters.
6795         Return NULL if we need a perfect loop and can't make one.
6796         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
6797         (not_interesting_stmt): New function.
6798         (phi_loop_edge_uses_def): Ditto.
6799         (stmt_uses_phi_result): Ditto.
6800         (stmt_is_bumper_for_loop): Ditto.
6801         (perfect_nest_p): Ditto.
6802         (nestify_update_pending_stmts): Ditto.
6803         (replace_uses_of_x_with_y): Ditto.
6804         (stmt_uses_op): Ditto.
6805         (perfect_nestify): Ditto.
6806         * lambda-mat.c (lambda_matrix_id_p): New function.
6807         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
6808         * lambda.h: Update prototypes.
6809         * tree-loop-linear (linear_transform_loop): Use new
6810         perfect_nest_p. Detect and ignore identity transform.
6811         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
6812
6813 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
6814
6815         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
6816         Gather also strides of accessed data.  Pass in the data references
6817         array.
6818         (try_interchange_loops): Add a new heuristic for handling the temporal
6819         locality.  Pass in the data references array.
6820         (linear_transform_loops): Pass the data references array to
6821         try_interchange_loops.
6822
6823 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
6824
6825         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
6826
6827 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
6828
6829         * doc/c-tree.texi (Classes): Remove index entries for
6830         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
6831
6832 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6833
6834         * fold-const.c (fold): Fold difference of addresses.
6835         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
6836         get_inner_reference.
6837         * tree-ssa-loop-ivopts.c (peel_address): Removed.
6838         (ptr_difference_const): Moved to fold-const.c.
6839         (split_address_cost): Use get_inner_reference instead of peel_address.
6840         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
6841         * tree.h (ptr_difference_const): Export.
6842
6843         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
6844         variable type to the dump.  Fix indentation.
6845         (idx_find_step): Handle nonconstant array_ref_element_size and
6846         array_ref_low_bound.
6847         (idx_record_use): Handle array_ref_element_size and
6848         array_ref_low_bound.
6849         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
6850         statements correctly.
6851         (get_computation_at, iv_value): Do not unshare expressions here.
6852         (rewrite_use_outer): Unshare the expression before it is emitted
6853         to code.
6854         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
6855         Moved to tree.c.
6856         * tree.c (unsigned_type_for, signed_type_for): Moved from
6857         tree-ssa-loop-niter.c.  Use langhooks.
6858         * tree.h (signed_type_for): Export.
6859
6860 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
6861
6862         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
6863         prototype.
6864
6865 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
6866
6867         PR target/11572
6868         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
6869         Add two parameters to extra_includes.
6870         (C_INCPATH_INIT): Remove.
6871         * c-incpath.c (register_include_chains): Call extra_pre_includes
6872         before adding the standard include directory.
6873         Update call to extra_includes.
6874         (!defined TARGET_EXTRA_INCLUDES): Update
6875         hook_void_charptr_charptr_int and add !define
6876         TARGET_EXTRA_PRE_INCLUDES.
6877         (!define TARGET_EXTRA_INCLUDES): Define as
6878         hook_void_charptr_charptr_int.
6879         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
6880         (target_c_incpath): Always declare.
6881         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
6882         empty function.
6883         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
6884         * config/darwin.h: (darwin_register_frameworks): Update for
6885         the two new parameters.
6886         (darwin_register_objc_includes): Add prototype.
6887         (TARGET_EXTRA_PRE_INCLUDES): Define.
6888         * config/darwin-c.c (darwin_register_objc_includes): New function.
6889         (darwin_register_frameworks): Update for the two new parameters.
6890         (target_c_incpath): Remove.
6891         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
6892         the compile line.
6893         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
6894         parameters.
6895         (TARGET_EXTRA_PRE_INCLUDES): Document.
6896
6897         * gcc.c (spec_function): Add replace-outfile.
6898         (replace_outfile_spec_function): New function.
6899         * config/darwin.h (LINK_SPEC): Add replace
6900         -lobjc with -lobjc-gnu if -fgnu-runtime is
6901         supplied.
6902         * invoke.texi (replace-outfile): Document.
6903
6904 2004-09-13  Jan Hubicka  <jh@suse.cz>
6905
6906         * predict.c (expr_expected_value, strip_builtin_expect): New function.
6907         (tree_predict_by_opcode): Use it.
6908         (tree_estimate_probability): Add, for now disabled,
6909         strip_builtin_expect call.
6910
6911 2004-09-15  James E Wilson  <wilson@specifixinc.com>
6912
6913         PR target/17455
6914         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
6915         if current_function_decl is a sibcall.
6916
6917 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
6918
6919         * varasm.c (default_function_rdodata_section): Make sure to pass
6920         along a decl for a link-once section.
6921
6922 2004-09-15  Richard Henderson  <rth@redhat.com>
6923
6924         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
6925         warning with code disable.  Fix formatting.
6926
6927 2004-09-15  Steven Bosscher  <stevenb@suse.de>
6928
6929         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
6930         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
6931         after propagating into an ADDR_EXPR.
6932
6933 2004-09-15  Andrew Pinski  <apinski@apple.com>
6934
6935         PR rtl-opt/17427
6936         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
6937         Move it out of gcc_assert.
6938
6939 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
6940
6941         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
6942         except.c, fold-const.c, function.c, langhooks.c, params.c,
6943         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
6944         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
6945         for quoting in diagnostics going through pretty-print.c.  Use ''
6946         for quoting in other diagnostic text.
6947         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
6948         translation.
6949         * Makefile.in (langhooks.o): Update dependencies.
6950         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
6951         formats.
6952
6953 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
6954
6955         * configure.ac: Check for COMDAT support.  Robustify check for
6956         SHF_MERGE support.
6957         * configure: Regenerated.
6958         * config.in: Likewise.
6959         * langhooks-def.h (lhd_comdat_group): New function.
6960         (LANG_HOOKS_COMDAT_GROUP): New macro.
6961         (LANG_HOOKS_DECLS): Use it.
6962         * langhooks.c (lhd_comdat_group): Define.
6963         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
6964         * output.h (named_section_flags): Make it a macro.
6965         (named_section_real): New function.
6966         (default_no_named_section): Add decl parameter.
6967         (default_elf_asm_named_section): Likewise.
6968         (default_coff_asm_named_section): Likewise.
6969         (default_pe_asm_named_section): Likewise.
6970         * target.h (gcc_target): Adjust type of named_section.
6971         * varasm.c (named_section_flags): Rename to named_section_real.
6972         Add decl parameter.
6973         (default_no_named_section): Add decl parameter.
6974         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
6975         with the case that ASM_COMMENT_START is "@".
6976         (default_coff_asm_named_section): Add decl parameter.
6977         (default_pe_asm_named_section): Likewise.
6978         * config/alpha/alpha.c (vms_asm_named_section): Add decl
6979         parameter.
6980         (unicosmk_asm_named_section): Likewise.
6981         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
6982         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
6983         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
6984         * config/cris/cris-protos.h (cris_target_asm_named_section):
6985         Likewise.
6986         * config/cris/cris.c (cris_target_asm_named_section):
6987         Likewise.
6988         * config/darwin/darwin-protos.h (darwin_asm_named_section):
6989         Likewise.
6990         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
6991         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
6992         * config/i386/i386-protos.h (i386_pe_asm_named_section):
6993         Likewise.
6994         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
6995         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
6996         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
6997         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
6998         Likewise.
6999         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
7000         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
7001         * cp/cp-tree.h (cxx_comdat_group): Declare.
7002         * cp/decl.c (cxx_comdat_group): New function.
7003
7004 2004-09-15  Jan Hubicka  <jh@suse.cz>
7005
7006         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
7007         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
7008
7009         * tree-cfg.c (remove_bb): Release SSA defs.
7010
7011 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
7012
7013         * doc/tm.texi: Follow spelling conventions.
7014
7015 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
7016
7017         * tree-ssa-dom.c: Fix comment typos.
7018
7019 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
7020
7021         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
7022         include ccr.
7023         (ppc_fallback_frame_state): Save location of CR.
7024
7025 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
7026
7027         * expr.c (string_constant): Handle also read-only variables
7028         initialized to string literals.
7029
7030         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
7031         into memcpy (x, y, 1) if memcpy can be expanded inline.
7032
7033 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7034
7035         PR tree-optimization/17468
7036         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
7037         definition inside a block precede uses.
7038         * tree-tailcall.c (adjust_return_value): Emit statements in the
7039         correct order.
7040
7041 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
7042
7043         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
7044
7045 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
7046
7047         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
7048
7049 2004-09-14 Jeff Law  <law@redhat.com>
7050
7051         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
7052         (struct dom_walk_block_data): Remove avail_exprs member.
7053         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
7054         (lookup_avail_expr): No longer need to pass in address of
7055         the block local available exprs stack.  All callers changed.
7056         (simplify_cond_and_lookup_avail_expr): Similarly.
7057         (simplify_switch_and_lookup_avail_expr): Similarly.
7058         (get_eq_expr_value, record_cond): Likewise.
7059         (record_dominating_conditions): Likewise.
7060         (update_rhs_and_lookup_avail_expr): Likewise.
7061         (record_equivalences_from_stmt): Likewise.
7062         (dom_opt_initialize_block_local_data): No longer test state of
7063         block local avail_exprs.
7064         (dom_opt_initialize_block): Mark unwind point in the global
7065         avail_expr stack.
7066         (remove_expressions_from_table): Update to unwind to the
7067         most recent unwind marker in the global avail_expr stack.
7068         All callers changed.
7069         (dom_opt_finalize_block): Mark unwind point in the global
7070         avail_expr stack as needed.
7071         (record_cond): Push elements into the global avail_exprs stack.
7072
7073         * tree-dfa.c (free_df_for_stmt): No longer static.
7074         (free_df): Update comments.
7075         * tree-flow.h (free_df_for_stmt): Prototype.
7076         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
7077         call release_defs.
7078
7079 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
7080
7081         PR tree-optimization/17252
7082         * tree-ssa-alias.c (may_alias_p): Don't assume that a
7083         pointer may not point to itself when using relaxed
7084         aliasing rules.
7085
7086 2004-09-14  Richard Henderson  <rth@redhat.com>
7087
7088         PR middle-end/17397
7089         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
7090         while folding <ADDR_EXPR <INDIRECT_REF X>>.
7091
7092 2004-09-14  Andrew Pinski  <apinski@apple.com>
7093
7094         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
7095         sets of the pointers but the aliasing sets of what they point to.
7096
7097 2004-09-14  Roger Sayle  <roger@eyesopen.com>
7098
7099         PR rtl-optimization/9771
7100         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
7101         conditional compilation in init_reg_sets_1.
7102         (init_reg_sets_1): Let global_regs[i] take priority over the frame
7103         (but not stack) pointer exceptions to regs_invalidated_by_call.
7104         (globalize_reg): Globalizing a fixed register may need to update
7105         regs_invalidated_by_call.
7106
7107 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
7108
7109         PR tree-optimization/15262
7110         * tree-dfa.c (dump_variable): Also print the type of the
7111         variable.
7112         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
7113         memory tags are of conflicting alias sets but have no aliased
7114         symbols in common, add one tag to the alias set of the other.
7115         (setup_pointers_and_addressables): Remove hack to deal with
7116         programs with no aliased symbols.
7117         (may_alias_p): Don't special case aggregate types.
7118
7119 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
7120
7121         PR c/15498
7122         * doc/invoke.texi (Environment Variables): Correct example locale.
7123
7124 2004-09-14  Jan Hubicka  <jh@suse.cz>
7125
7126         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
7127
7128 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
7129
7130         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
7131
7132 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
7133
7134         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
7135         restrict_p.
7136         (struct c_declarator): Change u.array.quals and pointer_quals to
7137         int.  Add u.array.attrs.
7138         (quals_from_declspecs): New.
7139         * c-decl.c (quals_from_declspecs): New.
7140         (shadow_tag_warned): Give more specific message for useless type
7141         qualifiers.
7142         (build_array_declarator, set_array_declarator_inner,
7143         grokdeclarator, make_pointer_declarator, build_null_declspecs,
7144         declspecs_add_qual): Update for changed structures.
7145
7146 2004-09-14  Jeff Law  <law@redhat.com>
7147
7148         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
7149         to a global varray.
7150         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
7151         (dom_opt_initialize_block_local_data): No longer test state
7152         of stmts_to_rescan.
7153         (dom_opt_finalize_block): Update due to change in scope of
7154         stmts_to_rescan.
7155         (optimize_stmt): Similarly.
7156
7157 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
7158
7159         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
7160         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
7161         comment typos.  Follow spelling conventions.
7162
7163 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
7164
7165         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
7166         config/i386/predicates.md, config/sparc/sparc.c: Follow
7167         spelling conventions.
7168
7169 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7170             Steven Bosscher  <stevenb@suse.de>
7171
7172         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
7173         * basic-block.h (struct reorder_block_def): Add copy_number field.
7174         * cfgloop.h (biv_p): Declare.
7175         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
7176         * common.opt (fsplit-ivs-in-unroller): New flag.
7177         * loop-iv.c (biv_p): New function.
7178         * loop-unroll.c: Include hashtab.h and recog.h.
7179         (struct iv_to_split, struct split_ivs_info): New types.
7180         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
7181         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
7182         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
7183         insert_base_initialization, split_iv): New functions.
7184         (peel_loop_completely, unroll_loop_constant_iterations,
7185         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
7186         Use them.
7187         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
7188
7189 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7190
7191         * tree-cfg.c (thread_jumps): Update dominators correctly in
7192         case destination of threaded edge dominates its source.
7193
7194 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7195
7196         * unroll.c: Removed.
7197         * loop.h: Removed.
7198         * Makefile.in (LOOP_H, unroll.o): Removed.
7199         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
7200         dependency.
7201         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
7202         reference.
7203         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
7204         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
7205         * loop.c: Do not include loop.h.
7206         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
7207         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
7208         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
7209         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
7210         struct loop_regs, struct loop_movables, struct loop_info): Moved
7211         from loop.h.
7212         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
7213         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
7214         find_common_reg_term, loop_iterations, final_giv_value): Moved
7215         from unroll.c.
7216         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
7217         loop_dump_stream, for_each_insn_in_loop, express_from,
7218         extend_value_for_giv, loop_iv_add_mult_emit_before,
7219         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
7220         loop_insn_first_p, get_condition_for_loop,
7221         loop_insn_emit_before, loop_insn_hoist,
7222         loop_insn_sink): Made static.
7223         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
7224         reference.
7225         (strength_reduce): Do not call unroller.
7226         (record_giv): Do not initialize unrolled field.
7227         (prescan_loop): Do not set loop_info->preconditioned.
7228         * passes.c: Do not include loop.h.
7229         (rest_of_handle_loop_optimize): Do not call unroller.
7230         * predict.c: Do not include loop.h.
7231         * rtl.h (NOTE_PRECONDITIONED): Removed.
7232         * stmt.c: Do not include loop.h.
7233         * toplev.c: Do not include loop.h.
7234         (process_options): Do not handle flag_old_unroll_loops.
7235
7236         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
7237         Documentation removed.
7238         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
7239
7240 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
7241
7242         * Makefile.in (STAGE1_CHECKING): New variable.
7243         (stage1_build): Use it.
7244         * tree-ssa.c (verify_ssa): Preserve state of dominance
7245         information.
7246
7247 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
7248
7249         * config/i386/i386.c (output_fp_compare): Add generation
7250         of ftst instruction.
7251         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
7252         Use output_fp_compare () function.
7253         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
7254         (fix_truncdi_memory): Remove operands[5] copy.
7255
7256 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
7257
7258         * config/m32r/m32r.md, config/m68k/m68kelf.h,
7259         config/mcore/mcore.md, config/rs6000/linux64.h,
7260         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
7261         typos.
7262
7263 2004-09-13  James E Wilson  <wilson@specifixinc.com>
7264
7265         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
7266         * gen-protos.c: Include errors.h.
7267         (progname): Delete.
7268
7269 2004-09-14  Jan Hubicka  <jh@suse.cz>
7270
7271         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
7272         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
7273         (predict_loops): Use number_of_iterations_exit to predict
7274         number of iterations on trees.
7275
7276 2004-09-13  Dale Johannesen  <dalej@apple.com>
7277
7278         PR 17408
7279         PR 17409
7280         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
7281         objects declared extern.
7282
7283 2004-09-14  Paul Brook  <paul@codesourcery.com>
7284
7285         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
7286         HOST_WIDE_INT.
7287
7288 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
7289
7290         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
7291         Only use TYPE_BINFO for aggregates.
7292
7293 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
7294
7295         * expmed.c (synth_mult): Initialize latency.  Check cost before
7296         checking ops count.
7297
7298 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
7299
7300         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
7301         add_call_clobber_ops and add_call_read_ops.
7302         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
7303         the number of vdefs and vuses inserted based on analysis of global
7304         variables across calls.  * tree-dfa.c (find_referenced_vars):
7305         Needed to reset static var maps before each function is compiled.
7306         * cgraphunit.c:
7307         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
7308         static_vars_info,functions_to_static_vars_info,module_statics_escape,
7309         all_module_statics,searchc_env,dfs_info): New fields to support
7310         analysis of static global variables.
7311         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
7312         cgraph_reset_static_var_maps, get_global_static_vars_info,
7313         get_global_statics_not_read, get_global_statics_not_written,
7314         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
7315         check_rhs_var, check_lhs_var, get_asm_expr_operands,
7316         process_call_for_static_vars, scan_for_static_refs,
7317         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
7318         clear_static_vars_maps, cgraph_propagate_bits,
7319         cgraph_characterize_statics): New. Functions to support analysis
7320         of static global variables.
7321         (cgraph_mark_local_and_external_functions): Renamed from:
7322         (cgraph_mark_local_functions)
7323         (cgraph_expand_all_functions): Remove call to
7324         cgraph_mark_local_and_external_functions.
7325         (cgraph_optimize): Added driver to analyze static variables whose
7326         scope is within the compilation unit.  * cgraph.h (struct
7327         cgraph_local_info, GTY): Added statics_read, statics_written,
7328         local, calls_read_all, calls_write_all, for_functions_valid.
7329         (struct cgraph_node): Added next_cycle.  * cgraph.c
7330         (dump_cgraph_node): Added print routines for new fields.  *
7331         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
7332         list.
7333
7334 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
7335
7336         * c-decl.c (grokdeclarator): Correct comments about where storage
7337         class specifiers are rejected by grammar and add corresponding
7338         asserts.  Diagnose typedefs and parameters declared inline.
7339         Change warning for inline main to a pedwarn.  Only diagnose inline
7340         main if hosted.
7341         (declspecs_add_scspec): Allow duplicate "inline".
7342
7343 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
7344
7345         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
7346         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
7347
7348 2004-09-13  Richard Henderson  <rth@redhat.com>
7349
7350         PR 17436
7351         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
7352         (tree_type): Replace spare with contains_placeholder_bits.
7353         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
7354         make static.  Remove seen_types list.
7355         (type_contains_placeholder_p): New.
7356
7357 2004-09-13  James E Wilson  <wilson@specifixinc.com>
7358
7359         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
7360         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
7361         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
7362         bdesc_arrays instead of mips_bdesc.
7363         (mips_init_builtins): Likewise.
7364         * config/mips/mips.h (TARGET_SB1): New.
7365         (HAVE_SQRT_P): Delete.
7366         * config/mips/mips.md (divide_condition): Support V2SF.
7367         (sqrt_condition, recip_condition): New.
7368         (div<mode>3): Use ANYF instead of SCALARF.
7369         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
7370         MODE.
7371         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
7372         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
7373         instead of MODE.
7374         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
7375         instead of SCALARF.  Use UNITMODE instead of MODE.
7376
7377 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
7378
7379         * config.in: Regenerate after removal of libbanshee.
7380
7381 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
7382
7383         PR tree-optimization/17400
7384         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7385         coalesce partitions when one occurs in an abnormal PHI.
7386
7387 2004-09-13  Andrew Pinski  <apinski@apple.com>
7388
7389         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
7390         name to _new_size.
7391
7392 2004-09-13  Richard Henderson  <rth@redhat.com>
7393
7394         PR inline-asm/6806
7395         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
7396         (cselib_invalidate_rtx_note_stores): New.
7397         (cselib_record_sets, cselib_process_insn): Update to match.
7398         * cselib.h (cselib_invalidate_rtx): Declare.
7399         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
7400
7401 2004-09-13  Richard Henderson  <rth@redhat.com>
7402
7403         PR tree-opt/10528
7404         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
7405         after copying its argument.
7406
7407 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
7408
7409         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
7410         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
7411         in diagnostics.  Use %' for English apostrophes.
7412         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
7413         (pedwarn_c90, pedwarn_c99): Use it.
7414         * c-decl.c (lookup_label): Quote label name in diagnostic.
7415         * c-parse.in (yyprint): Use ' instead of ` for left quote.
7416         * c-typeck.c (warn_for_assignment): Likewise.
7417
7418 2004-09-13  Jan Hubicka  <jh@suse.cz>
7419
7420         * i386.c (x86_schedule): New global variable.
7421         (override_options): Disable scheduling when not supported.
7422         * i386.h (x86_schedule): Declare.
7423         (TARGET_SCHEDULE): New macro.
7424
7425 2004-09-12  Richard Henderson  <rth@redhat.com>
7426
7427         PR c++/16254
7428         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
7429         * tree.c, tree.h (has_cleanups): Remove.
7430
7431 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7432
7433         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
7434         arguments of the phi nodes correctly.
7435
7436 2004-09-12  Jan Hubicka  <jh@suse.cz>
7437
7438         * ggc-common.c (cmp_statistics): Fix sorting.
7439
7440 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
7441
7442         PR target/16795
7443         * expmed.c (expand_divmod): If cheap power of 2 divide is
7444         available, use it for negative constant as well.
7445
7446 2004-09-12  Andrew Pinski  <apinski@apple.com>
7447
7448         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
7449         size of 0.
7450
7451         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
7452
7453 2004-09-12  Richard Henderson  <rth@redhat.com>
7454
7455         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
7456         or minus one.
7457         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
7458         post-reload, and scratch NULL.
7459         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
7460         (x86_shift_adj_2): Use ix86_expand_clear.
7461         (ashldi3): Remove CMOVE expansion difference.
7462         (ashldi3_1): Remove.
7463         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
7464         add constraints for immediates.  New peephole for split-with-temp.
7465         Run splitter after peep2 pass.
7466         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
7467         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
7468         (setcc_2): Rename with *.
7469         * config/i386/predicates.md (reg_or_pm1_operand): New.
7470         (ashldi_input_operand): New.
7471
7472 2004-09-12  Richard Henderson  <rth@redhat.com
7473
7474         * print-rtl.c (print_decl_name): New.
7475         (print_mem_expr): Use it.
7476
7477 2004-09-12  Richard Henderson  <rth@redhat.com
7478
7479         PR 17186, part deux
7480         * except.c (sjlj_emit_function_exit): Fix logic locating
7481         sjlj_exit_after in final block.
7482
7483 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
7484
7485         * common.opt: Remove flags -fmove-all-movables and
7486         -freduce-all-givs.
7487         * loop-invariant.c (find_invariants_to_move):
7488         Remove all uses of flag_move_all_movables.
7489         * loop.c (move_movables): Remove all uses of
7490         flag_move_all_movables.
7491         (strength_reduce): Remove all uses of
7492         flag_reduce_all_givs.
7493         * doc/invoke.texi: Remove documentation of flags
7494         -fremove-all-movables and -freduce-all-givs.
7495
7496 2004-09-11  Roger Sayle  <roger@eyesopen.com>
7497
7498         PR middle-end/17411
7499         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
7500         change. elt->type may be a floating point type, so use fold_convert.
7501
7502 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
7503
7504         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
7505         the thing referenced as used, not the stub itself.
7506
7507 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
7508
7509         * c-tree.h (enum c_storage_class): New.
7510         (struct c_declspecs): Add storage_class, inline_p and thread_p.
7511         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
7512         declarations and "auto" or "register" in file scope empty
7513         declarations.  Give more specific warnings for other cases of
7514         storage class specifiers in empty declarations.
7515         (grokdeclarator): Update for new structures.  Don't check for
7516         multiple storage classes.  Diagnose file-scope "register" if
7517         pedantic.
7518         (build_null_declspecs): Update.
7519         (declspecs_add_scspec): Update.  Diagnose multiple storage class
7520         specifiers and invalid uses of "__thread".
7521
7522 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
7523
7524         * tree.c (tree_code_size): New function, bulk of code from tree_size.
7525         (tree_size, make_node): Use it.
7526         * tree-ssa-pre.c (init_pre): Use it.
7527         * tree.h: Prototype it.
7528
7529 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7530
7531         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
7532         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
7533         redirect_immediate_use): Use PHI_DF.
7534         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
7535         (bb_for_stmt): Use PHI_BB.
7536         (get_immediate_uses): Use PHI_DF.
7537         * tree-ssa-dse.c (max_stmt_uid): New variable.
7538         (get_stmt_uid): New function.
7539         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
7540         node annotations.
7541         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
7542         (max_uid): Renamed to max_stmt_uid.
7543         (get_stmt_uid): New function.
7544         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
7545         phi node annotations.
7546         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
7547         * tree.h (PHI_BB, PHI_DF): New accessor functions.
7548         (struct tree_phi_node): Add bb and df fields.
7549
7550 2004-09-11  Richard Henderson  <rth@redhat.com>
7551
7552         PR middle-end/17416
7553         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
7554         in conflict loop.
7555
7556 2004-09-11  Jan Hubicka  <jh@suse.cz>
7557
7558         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
7559         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
7560         * i386.md (i387_cw): Add 'uninitialized' mode.
7561
7562         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
7563         (output_location): Break out from ....
7564         (branch_prob): ... here; handle gcov output on trees.
7565         * toplev.c (process_options): No longer be sorry about coverage for
7566         trees.
7567
7568 2004-09-11  Steven Bosscher  <stevenb@suse.de>
7569
7570         PR c++/17412
7571         * fold-const.c (fold): Do not try to fold the operand of a
7572         CLEANUP_POINT_EXPR if that operand does itself not have any
7573         operands.
7574
7575         PR middle-end/17417
7576         * langhooks.c (lhd_decl_printable_name): Make sure that this
7577         function is called with is a decl node that has an identifier.
7578         * tree-pretty-print.c (dump_function_name): New function to
7579         wrap PRINT_FUNCTION_NAME and dump_decl_name.
7580         (print_call_name): Use it.
7581
7582 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
7583
7584         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
7585         "config.h" if not.
7586
7587 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
7588
7589         * tree-ssa-alias.c (collect_points_to_info_r): Handle
7590         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
7591         to OFFSET.
7592
7593 2004-09-11  Richard Henderson  <rth@redhat.com>
7594
7595         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
7596         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
7597         operand of the ADDR_EXPR.
7598         (expand_expr_real_1): Update to match.
7599
7600 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
7601
7602         PR target/17277
7603         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
7604         choose 64-bit version.
7605
7606 2004-09-11  Richard Henderson  <rth@redhat.com>
7607
7608         PR c/17396
7609         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
7610
7611 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
7612
7613         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
7614         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
7615         Insert @: after i.e. or e.g.
7616
7617 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
7618
7619         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
7620         D.xxx rather than <Dxxx>.
7621
7622 2004-09-10  Adam Nemet  <anemet@lnxw.com>
7623
7624         * configure.ac (AC_MSG_CHECKING(what linker to use)):
7625         in_tree_ld_is_elf should be true for LynxOS.
7626         * configure: Regenerate.
7627
7628 2004-09-10  Adam Nemet  <anemet@lnxw.com>
7629
7630         * Makefile.in (all.cross): Add srcextra.
7631
7632 2004-09-10  Roger Sayle  <roger@eyesopen.com>
7633
7634         PR middle-end/17024
7635         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
7636         floating point comparison operators.  Change aborts to gcc_asserts.
7637
7638 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
7639
7640         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
7641
7642 2004-09-10  James E Wilson  <wilson@specifixinc.com>
7643
7644         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
7645         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
7646
7647         * convert.c (convert_to_vector): Replace recursive call with
7648         error_mark_node.
7649
7650         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
7651         Add integer argument named constant.  Use const_tiny_rtx instead of
7652         CONST0_RTX.
7653         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
7654         and CONST1_RTX.
7655         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
7656         vector types.
7657         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
7658         of gen_rtx_raw_CONST_VECTOR.
7659
7660 2004-09-10  Eric Christopher  <echristo@redhat.com>
7661
7662         PR c/16046
7663         * c-parse.in (attribute): Add NULL_TREE for error case
7664         for error recovery.
7665
7666 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
7667
7668         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
7669         (extract_interface_info): Delete prototype.
7670         * c-decl.c (extract_interface_info): Delete stub.
7671         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
7672         it's not already been done ...
7673         (init_c_lex): ... not here.
7674         (fe_file_change): Don't call extract_interface_info.
7675
7676 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
7677
7678         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
7679         typedef_p and typedef_signed_p.
7680         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
7681         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
7682         Check typedef_p and typedef_signed_p, not typedef_decl.
7683         (grokfield): Check typedef_p, not typedef_decl.
7684         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
7685         not typedef_decl.
7686         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
7687         typedef_decl.
7688
7689 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
7690
7691         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
7692
7693 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
7694
7695         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
7696         temporary variables.
7697
7698         * dbxout.c (dbxout_block): Update for
7699         current_function_func_begin_label a string.
7700         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
7701         * except.c (dw2_output_call_site_table): Likewise.
7702         * toplev.c (current_function_func_begin_label): Likewise.
7703         * tree.h (current_function_func_begin_label): Likewise.
7704         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
7705
7706         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
7707         loop.
7708
7709         * config/darwin.c: Include target.h.
7710         (struct machopic_indirection): Make ptr_name a string.
7711         (machopic_indirection_hash): Update for ptr_name a string.
7712         (machopic_indirection_eq): Likewise.
7713         (machopic_indirection_name): Likewise.
7714         (machopic_output_indirection): Likewise.
7715         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
7716         string.  Don't expect stub names to be in the identifier hash table.
7717         Do call strip_name_encoding before looking up entry in ID hash table.
7718         * config/t-darwin (darwin.o): Add target.h to dependencies.
7719
7720         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
7721         of fprintf for register names.
7722
7723         * output.h (unlikely_section_label): Delete declaration.
7724         (unlikely_text_section_name): Likewise.
7725         * varasm.c (unlikely_section_label_printed): Make static.
7726         (unlikely_section_label): Likewise.
7727         (unlikely_text_section_name): Likewise.
7728         (assemble_start_function): Use reconcat.
7729
7730         * rtl.def (REG): Add comment to describe third field.
7731
7732 2004-09-10  Andrew Pinski  <apinski@apple.com>
7733
7734         * config/darwin.c (machopic_mcount_stub_name): Call
7735         machopic_indirection_name instead of making the string
7736         ourselves.
7737
7738 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
7739
7740         Revert
7741
7742         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
7743
7744             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
7745             memory tag is call clobbered, so are its aliases.
7746             (group_aliases): When two memory tags being grouped, if one is
7747             call clobbered, so are the other and its aliases.
7748             (add_may_alias): Remove call-clobbering stuff.
7749             (replace_may_alias): Likewise.
7750             (merge_pointed_to_info): Merge pt_global_mem
7751
7752 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
7753
7754         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
7755         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
7756         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
7757         tree-scalar-evolution.c, tree-ssa-copyrename.c,
7758         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
7759
7760 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
7761
7762         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
7763         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
7764         pair.  Remove match_dup from inputs.  Remove masaccs handling.
7765         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
7766         (masaccs, mdasaccs): Turn into define_insns.
7767
7768 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
7769
7770         * tree-tailcall.c (process_assignment): Only do accumulator transforms
7771         for floating-point types if flag_unsafe_math_optimizations.
7772
7773 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
7774
7775         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
7776         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
7777         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
7778         config/h8300/h8300.md, config/i386/gmm_malloc.h,
7779         config/ia64/ia64.md, config/ip2k/libgcc.S,
7780         config/mips/mips-ps-3d.md, config/mips/mips.c,
7781         config/rs6000/rs6000.c, config/s390/s390.c,
7782         config/sh/symbian.c: Fix comment typos.
7783
7784 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
7785
7786         * config/s390/s390.c (s390_emit_prologue): Added missing
7787         "{}" brackets.
7788
7789 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
7790
7791         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
7792         typos.  Follow spelling conventions.
7793
7794 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
7795
7796         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
7797         in diagnostic.  Don't dereference NULL TYPE_NAME.
7798
7799 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
7800
7801         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
7802         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
7803         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
7804         value-prof.c: Fix comment typos.  Follow spelling conventions.
7805
7806 2004-09-10  Jan Hubicka  <jh@suse.cz>
7807
7808         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
7809         * tree-split_edge.c (tree_split_edge): Likewise.
7810         (thread_jumps): Likewise.
7811
7812 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
7813
7814         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
7815         typos.
7816
7817 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
7818
7819         * cgraph.h (cgraph_dump_file): Do not declare.
7820         * cgraphunit.c (cgraph_dump_file): Declare as static.
7821         (init_cgraph): New.
7822         * toplev.c (cgraph_dump_file): Do not declare.
7823         (compile_file): Call init_cgraph.
7824         * tree-dump.c (dump_files): Add IPA dump file, remove
7825         XML dump of call graph.
7826         (get_dump_file_name): Support IPA dump file naming scheme.
7827         * tree.h (enum tree_dump_index): Add IPA dump file, remove
7828         XML dump of call graph.
7829         * doc/invoke.texi (Debugging Options): Document the new options.
7830
7831 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
7832
7833         * doc/extend.texi: Document the FR-V built-in functions.
7834
7835 2004-09-09  James E Wilson  <wilson@specifixinc.com>
7836
7837         * doc/sourcebuild.texi: Delete libbanshee reference.
7838
7839 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
7840
7841         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
7842
7843 2004-09-09  James E Wilson  <wilson@specifixinc.com>
7844
7845         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
7846         before calling vector_types_convertible_p.
7847         (digest_init): Check that inside_init has VECTOR_TYPE before calling
7848         vector_types_convertible_p.  Don't give another error if
7849         convert_for_assignment returns error_mark_node.
7850
7851 2004-09-09  Roger Sayle  <roger@eyesopen.com>
7852
7853         PR middle-end/17055
7854         * fold-const.c (build_zero_vector): New function to construct a
7855         vector (either floating point or integer) of zeros.
7856         (fold_convert): Internally, enable conversions of integer zero
7857         to arbitrary vector types, using the new build_zero_vector.
7858
7859 2004-09-09  Roger Sayle  <roger@eyesopen.com>
7860
7861         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
7862         expand a left shift by an immediate constant as either an ashl or
7863         a sequence of additions.
7864         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
7865         instead of calling gen_ashlsi3 with a constant directly.
7866
7867 2004-09-09  Roger Sayle  <roger@eyesopen.com>
7868
7869         * config/i386/i386.c (ix86_split_long_move): When optimizing for
7870         size, and the low and high parts of a DImode constant are equal,
7871         copy one register to another instead of loading the same immediate
7872         value twice.
7873
7874 2004-09-09  Richard Henderson  <rth@redhat.com>
7875
7876         PR middle-end/17367
7877         * function.c (assign_parm_setup_block): Only put PARALLELs into
7878         a register if use_register_for_decl.
7879
7880 2004-09-09  Eric Christopher  <echristo@redhat.com>
7881
7882         * ra-colorize.c (reset_lists): Move variable declaration inside
7883         ENABLE_CHECKING to avoid unused variable warnings when
7884         not --enable-checking.
7885         (check_colors): Ditto.
7886
7887 2004-09-09  Mike Stump  <mrs@apple.com>
7888
7889         * version.c (version_string): Bump to 4.0.0.
7890         * doc/include/gcc-common.texi (version-GCC): Likewise.
7891
7892 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
7893
7894         * doc/extend.texi (nothrow attribute): The attribute is not
7895         implemented in 3.2 and earlier.
7896
7897 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
7898
7899         * genrecog.c (compute_predicate_codes): Use op0_codes
7900         instead of codes.
7901
7902 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
7903
7904         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
7905         implementation changes.
7906
7907 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
7908
7909         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
7910         a PARALLEL instead of a SET due to added clobbers.
7911
7912 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
7913
7914         * reload.c (find_reloads_address): Pass correct operand to
7915         maybe_memory_address_p.
7916
7917 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
7918
7919         * Makefile.in: Remove libbanshee, tree-alias-*.
7920         Remove tree-alias-common.h dependencies.
7921         * common.opt: Remove -ftree-points-to.
7922         * configure.ac: Remove libbanshee.
7923         * flags.h: Remove pta_type, flag_tree_points_to.
7924         * gengtype.c (open_base_files): Remove tree-alias-type.h.
7925         * opts.c (OPT_ftree_points_to): Remove.
7926         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
7927         * tree-dfa.c: Remove tree-alias-common.h
7928         * tree-into-ssa.c: Ditto.
7929         * tree-outof-ssa.c: Ditto.
7930         * tree-ssa-copyrename.c: Ditto.
7931         * tree-ssa-live.c: Ditto.
7932         * tree-optimize.c: Ditto.
7933         * tree-ssa.c: Ditto.
7934         Remove pass_build_pta, pass_del_pta.
7935         * tree-pass.h: Ditto.
7936         * tree-ssa-alias.c: Remove tree-alias-common.h.
7937         (struct alias_stats_d): Remove pta_queries, pta_resolved.
7938         (pass_may_alias): Remove PROP_pta requirement.
7939         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
7940         (get_tmt_for): Ditto.
7941         (dump_alias_stats): Ditto.
7942         * doc/passes.texi: Remove blurb about points-to analysis.
7943         * fortran/Make-lang.in: Remove tree-alias-*.o.
7944
7945 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
7946
7947         * genattrtab.c (write_insn_cases): New function, split out from
7948         write_attr_case.  Correctly handle define_peepholes when printing
7949         the instruction name.
7950         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
7951
7952 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
7953
7954         PR target/17377
7955         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
7956         * config/cris/cris.c (cris_return_address_on_stack): New function.
7957         * config/cris/cris.md ("return"): For location of return address,
7958         also check cris_return_address_on_stack.
7959
7960 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
7961
7962         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
7963         calling phi_ssa_name_p.
7964
7965 2004-09-09  Richard Henderson  <rth@redhat.com>
7966
7967         PR c/17322
7968         * c-typeck.c (valid_compound_expr_initializer): Use only
7969         initializer_constant_valid_p, and not TREE_CONSTANT.
7970         (digest_init): Likewise.
7971         (output_init_element): Likewise.
7972
7973 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
7974
7975         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
7976         live_out_1, prune_hardregs_for_mode, init_one_web_common,
7977         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
7978         record_conflict, compare_and_free_webs, init_webs_defs_uses,
7979         parts_to_webs_1, parts_to_webs, reset_conflicts,
7980         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
7981         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
7982         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
7983         put_move, remove_move, combine, select_spill, colorize_one_web,
7984         try_recolor_web, insert_coalesced_conflicts, check_colors,
7985         break_precolored_alias, restore_conflicts_from_coalesce,
7986         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
7987         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
7988         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
7989         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
7990         check_df): Likewise.
7991         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
7992         real_arithmetic, real_compare, real_exponent, real_ldexp,
7993         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
7994         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
7995         real_digit, real_nan, real_maxval, round_for_format, real_convert,
7996         real_to_target, real_from_target, real_hash, encode_ieee_single,
7997         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
7998         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
7999         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
8000         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
8001         extract_insn, peep2_next_insn, peep2_reg_dead_p,
8002         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
8003         if_test_bypass_p): Likewise.
8004         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
8005         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
8006         emit_swap_insn, swap_to_top, move_for_stack_reg,
8007         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
8008         compensate_edge, convert_regs_1): Likewise.
8009         * regclass.c (init_reg_sets, init_reg_sets_1,
8010         memory_move_secondary_cost): Likewise.
8011         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
8012         Likewise.
8013         * reload.c (push_secondary_reload, find_valid_class, push_reload,
8014         operands_match_p, decompose, immune_p, find_reloads,
8015         find_reloads_toplev, find_reloads_address_1, subst_reloads,
8016         copy_replacements, refers_to_regno_for_reload_p,
8017         reg_overlap_mentioned_for_reload_p): Likewise.
8018         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
8019         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
8020         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
8021         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
8022         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
8023         do_output_reload, fixup_abnormal_edges): Likewise.
8024         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
8025         fill_slots_from_thread, relax_delay_slots): Likewise.
8026         * resource.c (mark_referenced_resources, mark_set_resources):
8027         Likewise.
8028         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
8029         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
8030         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
8031         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
8032         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
8033         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
8034         * rtlhooks.c (gen_lowpart_general): Likewise.
8035         * sbitmap.c (sbitmap_difference): Likewise.
8036         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
8037         sched_analyze, add_forward_dependence): Likewise.
8038         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
8039         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
8040         schedule_insns): Likewise.
8041         * sched-vis.c (print_pattern): Likewise.
8042         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
8043         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
8044         simplify_const_relational_operation, simplify_ternary_operation,
8045         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
8046         Likewise.
8047         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
8048         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
8049         resolve_operand_name_1, expand_return, expand_decl,
8050         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
8051         * stor-layout.c (put_pending_size, smallest_mode_for_size,
8052         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
8053         set_sizetype, get_mode_bounds): Likewise.
8054
8055 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
8056
8057         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
8058         * config/arm/pecoff.h, config/i386/beos-elf.h
8059         * config/i386/cygming.h, config/i386/i386-interix.h:
8060         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
8061         comment cloned from manual.
8062         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
8063
8064 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
8065
8066         * builtins.c (build_va_arg_indirect_ref): New function.
8067         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
8068         build_fold_indirect_ref.
8069         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
8070         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
8071         * tree.h: Declare new function.
8072
8073 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8074
8075         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
8076         dumping for development builds.
8077         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
8078         development builds only.
8079         * genattrtab.c (write_eligible_delay): Fix typo in previous
8080         commit.
8081         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
8082         gcc_assert.
8083
8084 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8085
8086         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
8087         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
8088         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
8089         hoist_code, extract_mentioned_regs_helper, compute_store_table,
8090         insert_store): Use gcc_assert and gcc_unreachable.
8091         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
8092         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
8093         ggc_record_overhead): Likewise.
8094         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
8095         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
8096         ggc_pop_context, clear_marks, validate_free_objects,
8097         ggc_pch_read): Likewise.
8098         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
8099         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
8100         ggc_push_context, check_cookies, ggc_collect,
8101         ggc_print_statistics): Likewise.
8102         * gimple-low.c (lower_function_body, lower_stmt,
8103         lower_bind_expr): Likewise.
8104         * gimplify.c (gimple_tree_eq, push_gimplify_context,
8105         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
8106         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
8107         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
8108         gimplify_case_label_expr, gimplify_exit_block_expr,
8109         canonicalize_component_ref, gimplify_compound_lval,
8110         gimplify_self_mod_expr, gimplify_call_expr,
8111         gimplify_init_ctor_eval, gimplify_init_constructor,
8112         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
8113         gimplify_expr, check_pointer_types_r,
8114         force_gimple_operand): Likewise.
8115         * global.c (global_alloc, build_insn_chain): Likewise.
8116         * graph.c (clean_graph_dump_file,
8117         finish_graph_dump_file): Likewise.
8118         gcov-io.c (gcov_open): Use GCOV_CHECK.
8119
8120 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
8121
8122         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
8123
8124 2004-09-09  Jan Hubicka  <jh@suse.cz>
8125
8126         middle-end/17128
8127         * tree-inline.c (expand_call_inline): Make overactive sanity check
8128         happy.
8129
8130 2004-09-09  Jan Hubicka  <jh@suse.cz>
8131
8132         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
8133         VIEW_CONVERT_EXPR.
8134
8135 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8136
8137         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
8138         (gengtype.o): Depend on errors.h.
8139         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
8140         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
8141         attr_alt_subset_p, attr_alt_subset_of_compl_p,
8142         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
8143         write_test_expr, write_attr_value, write_eligible_delay,
8144         make_internal_attr, make_numeric_value): Likewise.
8145         * genautomata.c (regexp_name, get_str_vect,
8146         gen_presence_absence_set, automaton_decl_hash,
8147         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
8148         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
8149         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
8150         test_unit_reserv, it_is_empty_reserv_sets,
8151         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
8152         reserv_sets_and, output_cycle_reservs, get_free_state,
8153         intersected_state_reservs_p, states_union, remove_arc,
8154         copy_insn_regexp, transform_1, transform_2, transform_3,
8155         regexp_transform_func, store_alt_unit_usage,
8156         check_regexp_units_distribution, process_seq_for_forming_states,
8157         process_alts_for_forming_states, make_automaton,
8158         form_arcs_marked_by_insn, create_composed_state,
8159         set_out_arc_insns_equiv_num, partition_equiv_class,
8160         process_insn_equiv_class, set_insn_equiv_classes,
8161         units_to_automata_heuristic_distr, form_regexp,
8162         longest_path_length, output_dfa_max_issue_rate, add_vect,
8163         out_state_arcs_num, add_vect_el, output_trans_table,
8164         output_state_alts_table, output_dead_lock_vect,
8165         output_max_insn_queue_index_def,
8166         output_min_insn_conflict_delay_func,
8167         output_internal_insn_latency_func, output_print_reservation_func,
8168         output_cpu_unit_reservation_p, output_state_arcs,
8169         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
8170         make_default_insn_latency_attr,
8171         form_important_insn_automata_lists): Likewise.
8172         * genemit.c (gen_exp, output_add_clobbers,
8173         output_added_clobbers_hard_reg_p): Likewise.
8174         * genextract.c (print_path, main): Likewise.
8175         * genflags.c (gen_macro): Likewise.
8176         * gengenrtl.c: Include errors.h
8177         (type_from_format, accessor_from_format): Likewise.
8178         * gengtype.c (get_file_basename, output_mangled_typename,
8179         walk_type, write_types_process_field,
8180         write_types_local_process_field): Likewise.
8181         * genmodes.c (complete_mode): Likewise.
8182         * genopinit.c (gen_insn): Likewise.
8183         * genoutput.c (output_insn_data, check_constraint_len,
8184         constraint_len): Likewise.
8185         * genpreds.c (add_mode_tests):Likewise.
8186         * gen-protos.c (add_hash): Likewise.
8187         * genrecog.c (find_operand, find_matching_operand,
8188         validate_pattern, add_to_sequence, maybe_both_true,
8189         nodes_identical_1, merge_trees, write_switch, write_cond,
8190         write_action, is_unconditional, make_insn_sequence,
8191         debug_decision_2): Likewise.
8192         * gensupport.c (is_predicable, collect_insn_data,
8193         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
8194
8195 2004-09-09  Jan Hubicka  <jh@suse.cz>
8196
8197         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
8198         * cfgbuild.c (compute_outgoing_frequencies): When probability is
8199         missing, guess it.
8200         (find_many_sub_basic_blocks): Do update profile only when it is
8201         present.
8202         * predict.c (set_even_probabilities): Break out from ...
8203         (combine_predictions_for_insn): ... here; deal with
8204         !can_predict_insn_p insns.
8205         (combine_predictions_for_bb): Use set_even_probabilities.
8206         (bb_estimate_probability_locally): Break out from ....
8207         (estimate_probability): ... here.
8208         (guess_outgoing_edge_probabilities): New entry point.
8209
8210 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8211
8212         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
8213         handle_braces, process_brace_body, main, used_arg,
8214         set_multilib_dir, print_multilib_info): Use fatal, not abort.
8215
8216         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
8217
8218         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
8219         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
8220         Morgan's theorem in last checkin.
8221
8222 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
8223             Nathan Sidwell  <nathan@codesourcery.com>
8224
8225         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
8226         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
8227         * timevar.c (timevar_push, timevar_pop, timevar_start,
8228         timevar_stop): Likewise.
8229         * toplev.c (default_pch_valid_p): Likewise.
8230         * tracer.c (tail_duplicate): Likewise.
8231         * tree-alias-common.c (get_alias_var_decl,
8232         get_values_from_constructor, create_alias_var, delete_alias_vars,
8233         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
8234         Likewise.
8235         * tree.c (tree_size, make_node_stat, copy_node_stat,
8236         build_int_cst_wide, integer_all_onesp, list_length, chainon,
8237         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
8238         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
8239         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
8240         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
8241         build_method_type_directly, decl_type_context, get_callee_fndecl,
8242         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
8243         tree_fold_gcd): Likewise.
8244         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
8245         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
8246         cleanup_control_expr_graph, find_taken_edge,
8247         find_taken_edge_switch_expr, phi_alternatives_equal,
8248         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
8249         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
8250         tree_split_edge, tree_verify_flow_info, thread_jumps,
8251         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
8252         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
8253         chrec_fold_multiply_poly_poly): Likewise.
8254         * tree-complex.c (extract_component, expand_complex_division,
8255         expand_complex_comparison, expand_complex_operations_1,
8256         build_replicated_const, expand_vector_operations_1): Likewise.
8257         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
8258         build_classic_dir_vector): Likewise.
8259         * tree-dfa.c (compute_immediate_uses_for_phi,
8260         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
8261         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
8262         * tree-dump.c (dequeue_and_dump): Likewise.
8263         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
8264         record_in_finally_tree, replace_goto_queue_1,
8265         maybe_record_in_goto_queue, verify_norecord_switch_expr,
8266         do_return_redirection): Likewise.
8267         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
8268         add_to_dst_predicate_list, find_phi_replacement_condition,
8269         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
8270         Likewise.
8271         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
8272         initialize_inlined_parameters, declare_return_variable,
8273         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
8274         optimize_inline_calls, copy_tree_r): Likewise.
8275         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
8276         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
8277         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
8278         tsi_split_statement_list_after, tsi_split_statement_list_before):
8279         Likewise.
8280         * tree-mudflap.c (mf_varname_tree): Likewise.
8281         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
8282         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
8283         * tree-optimize.c (tree_rest_of_compilation): Likewise.
8284         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
8285         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
8286         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
8287         Likewise.
8288         * tree-phinodes.c (resize_phi_node, add_phi_arg,
8289         remove_all_phi_nodes_for): Likewise.
8290         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
8291         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
8292         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
8293         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
8294         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
8295         generate_one_element_ref, generate_element_copy,
8296         generate_element_zero, scalarize_copy, scalarize_init,
8297         scalarize_ldst): Likewise.
8298         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
8299         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
8300         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
8301         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
8302         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
8303         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
8304         widen_bitfield, ccp_fold_builtin): Likewise.
8305         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
8306         replace_exp_1, propagate_tree_value): Likewise.
8307         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
8308         * tree-ssa-dce.c (set_control_dependence_map_bit,
8309         find_control_dependence, find_pdom, mark_operand_necessary,
8310         mark_stmt_if_obviously_necessary,
8311         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
8312         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
8313         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
8314         eliminate_redundant_computations, avail_expr_eq): Likewise.
8315         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
8316         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
8317         duplicate_blocks): Likewise.
8318         * tree-ssa-loop-im.c (for_each_index, set_level,
8319         is_call_clobbered_ref): Likewise.
8320         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
8321         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
8322         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
8323         peel_address, ptr_difference_cost, may_replace_final_value,
8324         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
8325         rewrite_use, rewrite_uses): Likewise.
8326         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
8327         check_loop_closed_ssa_use): Likewise.
8328         * tree-ssanames.c (make_ssa_name): Likewise.
8329         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
8330         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
8331         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
8332         get_indirect_ref_operands, add_stmt_operand): Likewise.
8333         * tree-ssa-pre.c (value_exists_in_set_bitmap,
8334         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
8335         phi_translate, valid_in_set, compute_antic,
8336         find_or_generate_expression, create_expression_by_pieces, insert_aux,
8337         create_value_expr_from, eliminate): Likewise.
8338         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
8339         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
8340         Likewise.
8341         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
8342         eliminate_tail_call): Likewise.
8343         * tree-vectorizer.c (vect_create_index_for_array_ref,
8344         vect_align_data_ref, vect_create_data_ref,
8345         vect_create_destination_var, vect_get_vec_def_for_operand,
8346         vect_finish_stmt_generation, vect_transform_stmt,
8347         vect_transform_loop_bound, vect_transform_loop,
8348         vect_analyze_operations): Likewise.
8349         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
8350         Likewise.
8351         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
8352         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
8353         bsi_after_labels, bsi_last): Likewise.
8354         * tree-ssa-live.c (var_union, change_partition_var,
8355         create_ssa_var_map, calculate_live_on_entry, root_var_init,
8356         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
8357         Likewise.
8358         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
8359         tpa_find_tree): Likewise.
8360         (register_ssa_partition_check): Declare.
8361         (register_ssa_partition): use it.
8362         * tree-ssa-live.c: Include errors.h.
8363         (register_ssa_partition_check): New.
8364         * tree-ssa-operands.c: Include errors.h.
8365         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
8366
8367 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
8368             Catherine Moore  <clm@redhat.com>
8369
8370         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
8371         (FRV_CPU_FR405): New processor enums.
8372         (frv_issue_rate, frv_acc_group): Declare.
8373         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
8374         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
8375         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
8376         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
8377         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
8378         handled by CPP_SPEC.
8379         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
8380         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
8381         (ACC_MASK): New macro.
8382         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
8383         (TARGET_MEDIA_FR450): New macro.
8384         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
8385         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
8386         (LABEL_ALIGN_AFTER_BARRIER): Define.
8387         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
8388         (IACC_FIRST, IACC_LAST): New pair of SPRs.
8389         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
8390         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
8391         (REGISTER_NAMES): Add entries for new registers.
8392         (REG_CLASS_CONTENTS): Update for new register ranges.
8393         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
8394         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
8395         (PACKING_FLAG_USED_P): Delete.
8396         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
8397         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
8398         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
8399         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
8400         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
8401         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
8402         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
8403         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
8404         (CPU_UNITS_QUERY): Define to 1.
8405         * config/frv/frv.c: Include gt-frv.h
8406         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
8407         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
8408         (frv_insn_group): New enumeration.
8409         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
8410         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
8411         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
8412         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
8413         gap left by REGSTATE_LIVE.
8414         (regstate_t): New typedef.
8415         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8416         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
8417         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
8418         Initialize frv_unit_codes[] and frv_type_to_unit[].
8419         (frv_conditional_register_usage): Remove redundant fixing of
8420         accumulator registers.
8421         (frv_insn_packing_flag): Update specification.
8422         (frv_function_prologue): Don't set frv_insn_packing_flag here.
8423         Zero out frv_nops[].
8424         (frv_expand_epilogue): Remove comments about the no-longer-present
8425         SIBCALL_P argument.
8426         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
8427         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
8428         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
8429         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
8430         packing is disabled and if INSN can only issue to M1.
8431         (call_operand): Check TARGET_LONG_CALLS.
8432         (acc_operand, even_acc_operand, quad_acc_operand)
8433         (accg_operand): Simplify.  Don't accept pseudo registers.
8434         (output_move_single): Handle SPR<-zero moves.
8435         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
8436         (frv_registers_update, frv_registers_used_p): Delete.
8437         (frv_registers_set_p): Delete.
8438         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
8439         (frv_issues_to_branch_unit_p): New function.
8440         (frv_packet): New structure.
8441         (frv_cond_flags, frv_regstate_conflict_p): New functions.
8442         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
8443         (frv_registers_update_1, frv_registers_update): New functions.
8444         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
8445         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
8446         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
8447         (frv_sort_insn_group, frv_reorder_packet): New functions.
8448         (frv_pack_insns): Use frv_reorder_packet.
8449         (frv_packet_address): New variable.
8450         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
8451         (frv_register_nop, frv_reorg): New functions.
8452         (bdesc_1arg): Add __SCUTSS.
8453         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
8454         __SUBSS, __SLASS and __SCAN.
8455         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
8456         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
8457         (frv_init_builtins): Register the above builtins.
8458         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
8459         registers.  Turn the referenced accumulators into global registers.
8460         (frv_read_iacc_argument): New function.
8461         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
8462         (frv_split_iacc_move): New function.
8463         (frv_expand_builtin): Handle the new builtins.
8464         * config/frv/frv.md: Replace old schedulers with new order-independent
8465         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
8466         packing algorithm.
8467         (cpu): Add fr550, fr450 and fr405.
8468         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
8469         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
8470         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
8471         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
8472         (fnop, mnop): New patterns.
8473         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
8474         New constants.
8475         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
8476         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
8477         registers.
8478         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
8479         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
8480         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
8481         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
8482         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
8483         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
8484         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
8485         (frv_prefetch0, frv_prefetch): New patterns.
8486         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
8487         -mcpu=simple.  Add -mcpu=fr550.
8488         (MULTILIB_DIRNAMES): Update accordingly.
8489         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
8490         -mcpu=fr450.
8491         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
8492         -mlong-calls and -malign-labels options for FR-V.
8493
8494 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
8495
8496         PR c/8420
8497         * c-tree.h (struct c_declspecs): New.
8498         (struct c_declarator, struct c_type_name, struct c_parm): Update
8499         element types.
8500         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
8501         start_function, start_decl, build_c_parm,
8502         make_pointer_declarator): Update prototypes.
8503         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
8504         declspecs_add_scspec, declspecs_add_attrs): New.
8505         (split_specs_attrs): Remove.
8506         * c-parse.in (%union): Add dsptype.
8507         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
8508         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
8509         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
8510         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
8511         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
8512         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
8513         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
8514         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
8515         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
8516         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
8517         maybe_type_quals_attrs): Change to dsptype.
8518         (struct c_declspec_stack): New.
8519         (current_declspecs, declspec_stack): Change type.
8520         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
8521         structures.
8522         (extdefs): Likewise.
8523         (setspecs): Likewise.
8524         (fndef): Use current_declspecs for empty declspecs list.
8525         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
8526         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
8527         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
8528         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
8529         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
8530         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
8531         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
8532         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
8533         structures and helper functions.  Update comments.
8534         (typespec_nonattr): Correct comment.
8535         (maybe_type_quals_attrs, typename): Update to new structures.
8536         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
8537         shadow_tag, shadow_tag_warned, start_function, start_decl,
8538         build_c_parm, make_pointer_declarator,
8539         set_array_declarator_inner, groktypename): Update to new
8540         structures.
8541         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
8542         declspecs_add_scspec, declspecs_add_attrs): New.
8543         (split_specs_attrs): Remove.
8544         (shadow_tag_warned): Make warning for useless type names a
8545         pedwarn.  Give hard error for long, short, signed, unsigned or
8546         _Complex used with struct, union or enum in empty declaration.
8547         Make found_tag a bool.
8548         (grokdeclarator): Remove checks now done at parse time.
8549
8550 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
8551
8552         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
8553         c_declarator, struct c_type_name, struct c_parm): New.
8554         (build_array_declarator, set_array_declarator_inner,
8555         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
8556         start_function, start_decl, build_c_parm, build_attrs_declarator,
8557         build_function_declarator, make_pointer_declarator, c_cast_expr,
8558         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
8559         (build_id_declarator): New.
8560         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
8561         structures.
8562         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
8563         ARG_INFO_OTHERS): Remove.
8564         (build_id_declarator): New.
8565         (build_array_declarator, set_array_declarator_inner, groktypename,
8566         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
8567         grokfield, start_function, store_parm_decls_newstyle,
8568         store_parm_decls_oldstyle, store_parm_decls,
8569         build_c_parm, build_attrs_declarator, build_function_declarator,
8570         make_pointer_declarator, grokdeclarator): Update to new
8571         structures.
8572         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
8573         parmtype.
8574         (declarator, notype_declarator, after_type_declarator,
8575         parm_declarator, parm_declarator_starttypename,
8576         parm_declarator_nostarttypename, array_declarator, typename,
8577         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
8578         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
8579         parmlist_1, parmlist_2, parmlist_or_identifiers,
8580         parmlist_or_identifiers_1): Use these types.
8581         (primary, after_type_declarator, parm_declarator_starttypename,
8582         notype_declarator, component_decl, component_declarator,
8583         component_notype_declarator, typename, absdcl,
8584         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
8585         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
8586
8587 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
8588
8589         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
8590         in_typeof, record_maybe_used_decl, pop_maybe_used,
8591         c_expr_sizeof_expr, c_expr_sizeof_type): New.
8592         * c-decl.c (parser_obstack): New.
8593         (c_init_decl_processing): Initialize parser_obstack.
8594         (c_write_global_declarations_1): Check for used but undefined
8595         static functions.
8596         * c-parse.in (%union): Add otype.
8597         (save_obstack_position): New.
8598         (extdefs): Use it.
8599         (unary_expr): Update in_sizeof and in_alignof.  Use
8600         c_expr_sizeof_expr and c_expr_sizeof_type.
8601         (sizeof): Update in_sizeof.
8602         (alignof): Update in_alignof.
8603         (typeof): Update in_typeof.
8604         (typespec_nonreserved_nonattr): Call pop_maybe_used.
8605         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
8606         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
8607         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
8608         (build_external_ref): Set C_DECL_USED or call
8609         record_maybe_used_decl if appropriate.
8610         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
8611
8612 2004-09-08  Eric Christopher  <echristo@redhat.com>
8613
8614         * builtins.c: Fix prototype for fold_builtin_atan.
8615
8616 2004-09-08  Eric Christopher  <echristo@redhat.com>
8617
8618         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
8619         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
8620         fold_builtin_atan): New functions. Migrate function bodies...
8621         (fold_builtin_1): ... from here.
8622
8623 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
8624
8625         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
8626         save_size.
8627
8628 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
8629
8630         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
8631         * config/rs6000/power5.md (power5-lmul): Same.
8632
8633 2004-09-08  Richard Henderson  <rth@redhat.com>
8634
8635         PR rtl-opt/17186
8636         * function.c (expand_function_end): Have fall-off-the-end
8637         return path jump around return register setup.
8638
8639 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
8640
8641         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
8642         (output_return): Do not test for the presence of the 'unimp' insn.
8643         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
8644         as predicates instead of custom ones.  Return raw strings when
8645         possible.
8646         (output_sibcall): Likewise.  Concatenate strings.
8647         (output_ubranch): Remove kludge for TurboSPARC.
8648         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
8649         (output_v9branch): Likewise.
8650         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
8651         <#>: Set sparc_indent_opcode if the delay slot is filled.
8652         <(>: Likewise.
8653         <)>: New operand to emit the displacement from the saved PC on return.
8654         <@>: Remove.
8655         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
8656         (ASM_OUTPUT_OPCODE): New macro.
8657         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
8658         * config/sparc/sparc.md (normal_branch, inverted_branch,
8659         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
8660         inverted_fpe_branch): Adjust call to output_cbranch.
8661         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
8662         call to output_v9branch.
8663         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
8664         (output_v9branch): Likewise.
8665
8666 2004-09-08  Devang Patel  <dpatel@apple.com>
8667
8668         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
8669         -segs_read_only_addr and -segs_read_write_addr.
8670         (WORD_SWITCH_TAKES_ARG): Same.
8671         (LINK_SPEC): Same.
8672         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
8673         -segs_read_write_addr.
8674
8675 2004-09-08  Richard Henderson  <rth@redhat.com>
8676
8677         * function.c (reference_callee_copied): New.
8678         (assign_parm_setup_reg): Use it.
8679         * calls.c (initialize_argument_information): Likewise.
8680         (emit_library_call_value_1): Likewise.
8681         * function.h (reference_callee_copied): Declare.
8682
8683         * target.h (struct gcc_target): Add callee_copies.
8684         * target-def.h (TARGET_CALLEE_COPIES): New.
8685         (TARGET_PASS_BY_REFERENCE): Update default.
8686         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8687         * targhooks.c (hook_callee_copies_named): New.
8688         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
8689         hook_pass_by_reference_false.
8690         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
8691         * targhooks.h: Update decls.
8692         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
8693         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8694         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
8695         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
8696         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8697         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
8698         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8699         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
8700         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8701         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
8702         (mips_callee_copies): New.
8703         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8704         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
8705         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8706         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
8707         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8708         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
8709         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8710         * config/sh/sh.c (sh_callee_copies): New.
8711         (TARGET_CALLEE_COPIES): New.
8712         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8713         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
8714         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8715         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
8716         for FUNCTION_ARG_CALLEE_COPIES.
8717         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
8718
8719 2004-09-08  Devang Patel  <dpatel@apple.com>
8720
8721         * tree-if-conv.c (find_phi_replacement_condition): Return true
8722         edge block.
8723         (replace_phi_with_cond_modify_expr): Select conditional expr args
8724         based on true edge basic block.
8725
8726 2004-09-08  Jan Hubicka  <jh@suse.cz>
8727
8728         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
8729         variables being alias set.
8730
8731 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
8732
8733         * final.c (shorten_branches, final, get_insn_template,
8734         output_alternate_entry_point, final_scan_insn, alter_subreg,
8735         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
8736         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
8737         * fix-header.c (lookup_std_proto): Likewise.
8738         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
8739         verify_local_live_at_start, update_life_info, mark_reg,
8740         calculate_global_regs_live, allocate_reg_life_data,
8741         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
8742         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
8743         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
8744         * fold-const.c (force_fit_type, div_and_round_double,
8745         may_negate_without_overflow_p, int_const_binop, const_binop,
8746         size_binop, size_diffop, fold_convert_const, fold_convert,
8747         invert_tree_comparison, swap_tree_comparison,
8748         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
8749         range_binop, make_range, fold_cond_expr_with_comparison,
8750         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
8751         fold_abs_const, fold_not_const, fold_relational_const, round_up,
8752         round_down): Likewise.
8753         * function.c (find_function_data, assign_stack_temp_for_type,
8754         instantiate_virtual_regs_lossage, aggregate_value_p,
8755         assign_parm_find_entry_rtl, assign_parm_setup_block,
8756         expand_function_start, expand_function_end, keep_stack_depressed,
8757         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
8758
8759 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
8760
8761         * Makefile.in (tree-loop-linear.o): Added.
8762         (OBJS-common): Add tree-loop-linear.o
8763         * common.opt: New flag, ftree-loop-linear.
8764         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
8765         * tree-flow.h: Add prototype for linear_transform_loops.
8766         * tree-optimize.c: Add linear transform after vectorization.
8767         * tree-pass.h: Add struct pass_linear_transform.
8768         * tree-ssa-loop.c: Add pass_linear_transform.
8769         * tree-loop-linear.c: New file.
8770         * lambda-code.c: gcc_assertify.
8771         (gcc_loop_to_lambda_loop): Handle all exit tests.
8772         Handle case where we have (invariant >= induction var).
8773         (find_induction_var_from_exit_cond): Ditto.
8774
8775 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
8776
8777         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
8778         memory tag is call clobbered, so are its aliases.
8779         (group_aliases): When two memory tags being grouped, if one is
8780         call clobbered, so are the other and its aliases.
8781         (add_may_alias): Remove call-clobbering stuff.
8782         (replace_may_alias): Likewise.
8783         (merge_pointed_to_info): Merge pt_global_mem
8784
8785 2004-09-08  Jan Hubicka  <jh@suse.cz>
8786
8787         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
8788         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
8789         (cgraph_expand_function): Remove stale cgraph edges of currently
8790         compiled function; fix non-unit-at-a-time code copying function
8791         node for later reuse.
8792
8793 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
8794
8795         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
8796         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
8797         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
8798         (vec_gc_free, vec_heap_free): New.
8799         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
8800         (DEF_VEC_P): Add allocator argument. Adjust.
8801         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
8802         (DEF_VEC_O): Add allocator argument. Adjust.
8803         (VEC(free)): New.
8804
8805         * tree.h (tree): Define a GC'd vector.
8806         * lamba-code.c (lambda_loop): Likewise.
8807         * value-prof.h (histogram_value): Likewise.
8808
8809 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
8810
8811         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
8812         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
8813         gen_lowpart_common, gen_highpart, gen_highpart_mode,
8814         subreg_highpart_offset, operand_subword, operand_subword_force,
8815         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
8816         set_mem_alias_set, change_address_1, verify_rtx_sharing,
8817         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
8818         try_split, add_insn_after, add_insn_before, remove_insn,
8819         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
8820         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
8821         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
8822         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
8823         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
8824         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
8825         record_path_before_1, check_path_after_1, check_path_after): Likewise.
8826         * except.c (gen_eh_region, resolve_one_fixup_region,
8827         remove_unreachable_regions, convert_from_eh_region_ranges_1,
8828         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
8829         connect_post_landing_pads, sjlj_emit_function_exit,
8830         remove_exception_handler_label, remove_eh_handler,
8831         reachable_next_level, collect_one_action_chain,
8832         output_function_exception_table): Likewise.
8833         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
8834         optimize_save_area_alloca, allocate_dynamic_stack_space,
8835         probe_stack_range, hard_function_value): Likewise.
8836         * expmed.c (mode_for_extraction, store_bit_field,
8837         store_fixed_bit_field, extract_bit_field, expand_shift,
8838         expand_mult_const, expand_mult, choose_multiplier,
8839         expand_mult_highpart, expand_divmod, emit_store_flag,
8840         do_cmp_and_jump): Likewise.
8841         * expr.c (convert_move, convert_modes, move_by_pieces,
8842         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
8843         move_block_from_reg, gen_group_rtx, emit_group_load,
8844         emit_group_move, emit_group_store, use_reg, use_regs,
8845         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
8846         emit_move_insn, emit_move_insn_1, emit_push_insn,
8847         expand_assignment, store_expr, count_type_elements,
8848         store_constructor, store_field, safe_from_p, expand_var,
8849         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
8850
8851 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
8852
8853         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
8854         gcc_assert and gcc_unreachable.
8855         * ddg.c (create_ddg_dependence, add_deps_for_def,
8856         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
8857         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
8858         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
8859         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
8860         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
8861         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
8862         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
8863         dataflow_set_copy, hybrid_search, diagnostic.c,
8864         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
8865         * dojump.c (do_jump): Likewise.
8866         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
8867         compute_dom_fast_query, calculate_dominance_info,
8868         free_dominance_info, get_immediate_dominator,
8869         set_immediate_dominator, get_dominated_by,
8870         redirect_immediate_dominators, nearest_common_dominator,
8871         dominated_by_p, verify_dominators, recount_dominator,
8872         iterate_fix_dominators, add_to_dominance_info,
8873         delete_from_dominance_info): Likewise.
8874         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
8875         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
8876         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
8877         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
8878         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
8879         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
8880         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
8881         output_call_frame_info, output_loc_operands, build_cfa_loc,
8882         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
8883         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
8884         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
8885         splice_child_die, attr_checksum, same_dw_val_p,
8886         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
8887         unmark_dies, value_format, output_loc_list, output_die,
8888         output_pubnames, output_aranges, base_type_die, is_base_type,
8889         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
8890         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
8891         field_byte_offset, add_data_member_location_attribute,
8892         add_const_value_attribute, rtl_for_decl_location,
8893         add_location_or_const_value_attribute, add_byte_size_attribute,
8894         add_bit_offset_attribute, add_bit_size_attribute,
8895         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
8896         decl_start_label, gen_formal_parameter_die,
8897         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
8898         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
8899         force_decl_die, force_type_die, gen_decl_die,
8900         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
8901         dwarf2out_finish): Likewise.
8902
8903 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
8904
8905         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
8906         * builtins.c: Include tree-mudflap.h.
8907
8908 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
8909
8910         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
8911         force operand 0.0 into register in XFmode. Also do not force
8912         operand 0.0 into register if !TARGET_CMOVE.
8913         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
8914         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
8915         implement ftst x87 instruction.
8916         (*fp_jcc_7): New insn pattern. Change corresponding split
8917         pattern to handle "general_operand" instead of
8918         "nonimmediate_operand".
8919
8920 2004-09-08  Ben Elliston  <bje@au.ibm.com>
8921
8922         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
8923
8924 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
8925
8926         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
8927         generated from standard va_arg expansion.
8928         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
8929         marked nodes.
8930         (mf_varname_tree, mf_file_function_line_tree): Add some support
8931         for column numbers if compiled with USE_MAPPED_LOCATION.
8932
8933 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
8934
8935         * c-decl.c (groktypename_in_parm_context): Remove function.
8936         * c-tree.h (groktypename_in_parm_context): Remove prototype.
8937
8938 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
8939
8940         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
8941         * c-parse.in: Include c-common.h instead of objc-act.h.
8942         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
8943         myparms, myparm): Remove %type declarations.
8944         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
8945         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
8946         declarations.
8947         (objc_inherit_code, objc_public_flag): Remove.
8948         (typespec_nonreserved_nonattr): Call
8949         objc_get_protocol_qualified_type() instead of get_static_reference()
8950         and get_protocol_reference().
8951         (stmt_nocomp): Call grokparm() on @catch parameter.
8952         (objcdef): Move semantic action to objc_finish_implementation().
8953         (classdef): Move semantic action to objc_start_class_interface(),
8954         objc_continue_interface(), objc_finish_interface(),
8955         objc_start_class_implementation(), objc_continue_implementation(),
8956         objc_start_category_interface() and
8957         objc_start_category_implementation().
8958         (protocoldef): Move semantic actions to objc_start_protocol() and
8959         objc_finish_interface().
8960         (ivar_decl_list): Remove nonterminal.
8961         (visibility_spec): Move semantic actions to objc_set_visibility().
8962         (ivar_decls): Remove assignment to $$.
8963         (ivar_decl): Rephrase in terms of component_decl; call
8964         objc_add_instance_variable().
8965         (ivars, ivar_declarator): Remove nonterminals.
8966         (opt_semi): New nonterminal.
8967         (methodtype): Remove semantic actions.
8968         (methoddef): Move semantic actions to objc_set_method_type(),
8969         objc_start_method_definition() and objc_finish_method_definition().
8970         (methodproto): Move semantic actions to objc_set_method_type() and
8971         objc_add_method_declaration().
8972         (methoddecl): Use objc_typename instead of typename; move semantic
8973         actions to objc_build_method_signature().
8974         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
8975         (optparmlist): Express in terms of optparms and optellipsis.
8976         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
8977         nonterminals.
8978         (keyworddecl): Use objc_typename instead of typename.
8979         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
8980         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
8981
8982 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
8983
8984         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
8985         (MD_FALLBACK_FRAME_STATE_FOR): Update.
8986         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
8987         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
8988         (MD_FROB_UPDATE_CONTEXT): Remove default.
8989         (uw_update_context_1): Instead #ifdef invocation.
8990         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
8991         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
8992         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
8993         (MD_UNWIND_SUPPORT): Undefine this instead.
8994         * config/i386/gnu.h: Likewise.
8995         * config/alpha/linux-unwind.h: New file, macro converted to
8996         function, extracted from..
8997         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
8998         (MD_UNWIND_SUPPORT): Define.
8999         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
9000         * config/i386/linux-unwind.h, config/i386/linux.h,
9001         config/i386/linux64.h: Likewise.
9002         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
9003         MD_HANDLE_UNWABI too.
9004         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
9005         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
9006         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
9007         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
9008         * config/sparc/linux-unwind.h, config/sparc/linux.h,
9009         config/sparc/linux64.h: Likewise.
9010         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
9011         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
9012         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
9013         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
9014         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
9015
9016 2004-09-07  Jan Hubicka  <jh@suse.cz>
9017
9018         * cse.c (fold_rtx):  Avoid building of
9019         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
9020
9021         * tree-ssa-pre.c (grand_bitmap_obstack): New.
9022         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
9023         (init_pre): Initialize obstack.
9024         (fini_pre): Free obstack.
9025
9026 2004-09-07  David Daney  <ddaney@avtrex.com>
9027
9028         * config.gcc: Added support for --with-divide=[breaks|traps] for
9029         mips targets.
9030         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
9031         (TARGET_DIVIDE_TRAPS): New macro.
9032         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
9033         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
9034         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
9035         GENERATE_DIVIDE_TRAPS.
9036         (mips_output_division): Emit conditional trap if
9037         GENERATE_DIVIDE_TRAPS is set.
9038         * doc/install.texi: Document --with-divide.
9039         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
9040
9041 2004-09-07  Caroline Tice  <ctice@apple.com>
9042
9043         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
9044         EDGE_CROSSING, to flags test case.
9045
9046 2004-09-07  Jan Hubicka  <jh@suse.cz>
9047
9048         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
9049         class too.
9050
9051 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
9052
9053         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
9054         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
9055         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
9056         or gcc_unreachable.
9057         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
9058         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
9059         alloc_aux_for_edges, free_aux_for_edges): Likewise.
9060         * cfgcleanup.c (try_forward_edges,
9061         merge_blocks_move_predecessor_nojumps,
9062         merge_blocks_move_successor_nojumps): Likewise.
9063         * cfgexpand.c (expand_gimple_cond_expr,
9064         expand_gimple_tailcall): Likewise.
9065         * cfghooks.c (duplicate_block): Likewise.
9066         * cfglayout.c (record_effective_endpoints,
9067         insn_locators_initialize, change_scope, fixup_reorder_chain,
9068         verify_insn_chain, fixup_fallthru_exit_predecessor,
9069         duplicate_insn_chain, cfg_layout_finalize): Likewise.
9070         * cfgloopanal.c (check_irred): Likewise.
9071         * cfgloop.c (superloop_at_depth, flow_loops_free,
9072         flow_loop_entry_edges_find, flow_loops_find,
9073         flow_loop_outside_edge_p, get_loop_body,
9074         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
9075         get_loop_exit_edges, num_loop_branches, cancel_loop,
9076         verify_loop_structure): Likewise.
9077         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
9078         duplicate_loop_to_header_edge, create_preheader,
9079         create_loop_notes): Likewise.
9080         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
9081         edirect_branch_edge, force_nonfallthru_and_redirect,
9082         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
9083         commit_edge_insertions, commit_edge_insertions_watch_calls,
9084         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
9085         cfg_layout_redirect_edge_and_branch_force,
9086         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
9087         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
9088         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
9089         cgraph_varpool_node): Likewise.
9090         * cgraphunit.c (cgraph_finalize_function,
9091         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
9092         cgraph_expand_function, cgraph_remove_unreachable_nodes,
9093         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9094         cgraph_mark_inline, cgraph_expand_all_functions,
9095         cgraph_build_static_cdtor): Likewise.
9096         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
9097         simplify_logical, distribute_notes, insn_cuid): Likewise.
9098         * conflict.c (conflict_graph_add, print_conflict): Likewise.
9099         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
9100         coverage_checksum_string): Likewise.
9101         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
9102         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
9103         cse_cc_succs, cse_condition_code_reg): Likewise.
9104         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
9105         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
9106         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
9107         cselib_record_set): Likewise.
9108
9109 2004-09-07  Jan Hubicka  <jh@suse.cz>
9110
9111         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
9112
9113 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
9114
9115         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
9116         fold_convert.
9117         (fold_builtin_strpbrk): Likewise.
9118         * expr.c (array_ref_low_bound): Likewise.
9119         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
9120         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
9121         * tree-sra.c (generate_element_zero): Likewise.
9122         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
9123         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
9124         add_old_iv_candidates, add_iv_candidates): Likewise.
9125         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
9126
9127 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
9128
9129         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
9130         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
9131         c_expand_expr, boolean_increment, nonnull_check_p,
9132         check_function_arguments_recurse, fold_offsetof_1): Likewise.
9133         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
9134         builtin_define_type_max): Likewise.
9135         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
9136         implicit_decl_warning, builtin_function, build_compound_literal,
9137         complete_array_type, grokdeclarator, get_parm_info,
9138         start_function, store_parm_decls_oldstyle,
9139         c_write_global_declarations): Likewise.
9140         * c-format.c (get_constant, decode_format_attr,
9141         maybe_read_dollar_number, get_flag_spec, check_format_arg,
9142         check_format_types, format_type_warning,
9143         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
9144         init_dynamic_diag_info, handle_format_attribute): Likewise.
9145         * c-gimplify.c (push_context, pop_context, finish_bc_block):
9146         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
9147         * c-objc-common.c (c_tree_printer): Likewise.
9148         * c-pch.c (pch_init): Likewise.
9149         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
9150         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
9151         * c-typeck.c (c_incomplete_type_error, composite_type,
9152         common_pointer_type, common_type, same_translation_unit_p,
9153         tagged_types_tu_compatible_p, finish_init, pop_init_level,
9154         set_designator, set_nonincremental_init_from_string,
9155         process_init_element, c_finish_if_stmt): Likewise.
9156         * caller-save.c (init_caller_save, save_call_clobbered_regs,
9157         insert_restore, insert_save, insert_one_insn): Likewise.
9158         * calls.c (emit_call_1, compute_argument_block_size,
9159         precompute_arguments, expand_call, emit_library_call_value_1,
9160         store_one_arg): Likewise.
9161
9162 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
9163
9164         * configure.ac (enable-checking): Add release option. Reorganize
9165         to avoid repetition.
9166         * configure: Rebuilt.
9167         * doc/install.texi (enable-checking): Amend documentation.
9168
9169 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9170
9171         PR bootstrap/17313
9172         * Makefile.in (specs.ready): Depend on cc1$(exeext).
9173
9174 2004-09-06  James E Wilson  <wilson@specifixinc.com>
9175
9176         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
9177         movdf_hardfloat_32bit): Split fG into two alternatives.
9178         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
9179
9180         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
9181
9182 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
9183
9184         * final.c (output_in_slot): Delete.
9185         (final_scan_insn): Revert 2004-09-03 change.
9186         (output_asm_insn): Likewise.
9187         * config/sparc/sparc.c (output_return): Likewise.
9188         (output_sibcall): Likewise.
9189
9190 2004-09-06  Jan Hubicka  <jh@suse.cz>
9191
9192         * loop.c (loop_dump_aux): Do not print RTL when not available.
9193         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
9194         frontend specific type nodes.
9195         (produce_memory_decl_rtl): Break out from ...
9196         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
9197         (get_computation_at): Avoid random tree sharing.
9198         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
9199
9200 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
9201
9202         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
9203         unnecessary commands.
9204
9205 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
9206
9207         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
9208         (bitmap.o): Likewise.
9209
9210 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
9211
9212         Unify the management of RTL and tree-level dump files.
9213
9214         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
9215         Don't print function name to the dump file, the pass manager
9216         would do this for us. Add code from the top of
9217         rest_of_compilation, up to the initial RTL dump.
9218         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
9219         close the DFI_sibling dump file.
9220         (rest_of_compilation): Don't do that here.  Remove code up to the
9221         initial RTL dump.
9222         (init_optimization_passes): Remove.
9223         (pass_rest_of_compilation): Change pass name to NULL.
9224         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
9225         Do not call init_optimization_passes.
9226         * toplev.h (init_optimization_passes): Remove.
9227
9228         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9229         finish_graph_dump_file): Remove SUFFIX parameter.
9230         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
9231         finish_graph_dump_file): Likewise.
9232
9233         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
9234         * cfgexpand.c (pass_expand): Adjust.
9235         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
9236         * passes.c (pass_rest_of_compilation): Adjust.
9237         * predict.c (pass_profile): Adjust.
9238         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
9239         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
9240         pass_split_crit_edges, pass_warn_function_return): Adjust.
9241         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
9242         * tree-dfa.c (pass_referenced_vars): Adjust.
9243         * tree-eh.c (pass_lower_eh): Adjust.
9244         * tree-if-conv.c (pass_build_ssa): Adjust.
9245         * tree-into-ssa.c (pass_build_ssa): Adjust.
9246         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
9247         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
9248         * tree-nrv.c (pass_nrv): Adjust.
9249         * tree-optimize.c (pass_gimple, pass_all_optimizations,
9250         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
9251         pass_init_datastructures): Adjust.
9252         * tree-outof-ssa.c (pass_del_ssa): Adjust.
9253         * tree-profile.c (pass_tree_profile): Adjust.
9254         * tree-sra.c (pass_sra): Adjust.
9255         * tree-ssa-alias.c (pass_may_alias): Adjust.
9256         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
9257         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
9258         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
9259         * tree-ssa-dom.c (pass_dominator): Adjust.
9260         * tree-ssa-dse.c (pass_dse): Adjust.
9261         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
9262         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
9263         * tree-ssa-loop-ch.c (pass_ch): Adjust.
9264         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
9265         pass_loop_done, pass_complete_unroll, pass_iv_canon,
9266         pass_iv_optimize, pass_vectorize): Adjust.
9267         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
9268         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
9269         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
9270         pass_late_warn_uninnitialized): Adjust.
9271         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
9272
9273         * Makefile.in (tree-dump.o): Add new dependencies.
9274         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
9275         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
9276         Likewise.
9277         * toplev.c (dump_file_name): New.
9278         * tree-dump.c (dump_enable_all): Add LETTER parameter.
9279         (struct dump_file_info): Add NUM and LETTER fields.
9280         (dump_files): Adjust and add RTL dump files.
9281         (dump_register): Add NUM and LETTER fields.
9282         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
9283         (dump_begin): Use get_dump_file_name.
9284         (dump_switch_p_1): Adjust call to dump_enable_all.
9285         * tree-dump.h (dump_register): Adjust prototype.
9286         * tree-optimize.c (register_one_dump_file): Take dump file index.
9287         Support flags for RTL dumps.
9288         (register_dump_files): Fill in NUM field of struct dump_file_info.
9289         Track properties both when the gate is executed and when it is not.
9290         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
9291         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
9292         dumps of RTL.
9293         * tree-pass.h (dump_file_name): New.
9294         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
9295         New.
9296
9297         * Makefile.in (passes.o): Add new dependencies.
9298         * passes.c (struct dump_file_info, enum dump_file_index,
9299         dump_file_tbl, init_optimization_passes): Remove.
9300         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
9301         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
9302         dump_enabled_p.
9303         (finish_optimization_passes): Update finish_graph_dump_file loop.
9304         (enable_rtl_dump_file): Remove.
9305         * tree-dump.c (dump_files): Adjust and add RTL dump files.
9306         (enable_rtl_dump_file): Add here.
9307         * tree.h (enum tree_dump_index): Add RTL dump file indices.
9308         * doc/invoke.texi (Debugging options): Document new RTL debugging
9309         options.  Update.
9310
9311 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
9312
9313         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
9314         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
9315         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
9316         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
9317         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
9318         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
9319         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
9320         vec.h: Fix comment formatting.
9321
9322 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
9323
9324         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
9325         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
9326         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
9327         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
9328         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
9329         tree-ssa-loop-niter.c, tree-ssa-operands.c,
9330         tree-ssa-operands.h, tree-ssa-propagate.c,
9331         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
9332         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
9333
9334 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
9335
9336         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
9337         vectorizer is enabled.
9338
9339 2004-09-05  Andreas Jaeger  <aj@suse.de>
9340
9341         * tree-if-conv.c: Spell check comments and clean up whitespace.
9342
9343 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9344
9345         * tree-ssa-loop-ivopts.c: New file.
9346         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
9347         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
9348         target_pres_cost, target_spill_cost): Declare.
9349         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
9350         spill_cost): Renamed to ...
9351         (target_avail_regs, target_res_regs, target_small_cost,
9352         target_pres_cost, target_spill_cost): ... and exported.
9353         (init_set_costs, global_cost_for_size): Work with renamed variables.
9354         * common.opt (flag_ivopts): New flag.
9355         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
9356         REF_ORIGINAL.
9357         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
9358         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
9359         generating SSA form.
9360         (force_gimple_operand): New function.
9361         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
9362         * tree-cfg.c (stmt_bsi): New function.
9363         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
9364         PARAM_IV_MAX_CONSIDERED_USES): New.
9365         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
9366         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
9367         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
9368         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
9369         * tree-nested.c (build_addr): Export.
9370         * tree-optimize.c (init_tree_optimization_passes): Add
9371         pass_iv_optimize.
9372         * tree-pass.h (pass_iv_optimize): Declare.
9373         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
9374         IMAGPART_EXPR.
9375         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
9376         as a phi node argument.
9377         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
9378         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
9379         functions.
9380         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
9381         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
9382         pass_iv_optimize): New pass.
9383         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
9384         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
9385         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
9386         * tree.h (REF_ORIGINAL): New macro.
9387         (build_int_cst_type, unsigned_type_for, zero_p,
9388         cst_and_fits_in_hwi, build_addr): Declare.
9389         * doc/invoke.texi (-fivopts): Document.
9390         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
9391         PARAM_IV_MAX_CONSIDERED_USES): Document.
9392         * doc/passes.texi: Document induction variable optimizations pass.
9393
9394 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9395
9396         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
9397         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
9398         * c-common.c (c_common_attribute_table): Accept parameters to
9399         sentinel attribute.
9400         (check_function_sentinel, handle_sentinel_attribute): Likewise.
9401         * doc/extend.texi: Update accordingly.
9402
9403 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9404
9405         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
9406         New.
9407         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
9408         attribute.
9409         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
9410         New functions.
9411         (c_common_attribute_table): Add `sentinel' attribute.
9412         (check_function_arguments): Handle `sentinel' attribute.
9413         * doc/extend.texi: Document `sentinel' attribute.
9414
9415 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
9416
9417         * configure: Regenerated.
9418
9419 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9420
9421         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
9422
9423         * tree.c (save_expr): No longer TREE_READONLY.
9424
9425 2004-09-04  Jan Hubicka  <jh@suse.cz>
9426
9427         * passes.c (rest_of_clean_state):  Fix merge conflict made during
9428         commiting the patch.
9429
9430 2004-09-04  Jan Hubicka  <jh@suse.cz>
9431
9432         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
9433
9434 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
9435
9436         * doc/md.texi (shift patterns): New anchor.  Add reference to
9437         TARGET_SHIFT_TRUNCATION_MASK.
9438         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
9439         * target.h (shift_truncation_mask): New target hook.
9440         * targhook.h (default_shift_truncation_mask): Declare.
9441         * targhook.c (default_shift_truncation_mask): Define.
9442         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
9443         (TARGET_INITIALIZER): Include it.
9444         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
9445         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
9446         reject all out-of-range values.  Fix sign-extension code for modes
9447         whose width is smaller than HOST_BITS_PER_WIDE_INT.
9448         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
9449         (expand_superword_shift, expand_subword_shift): Likewise.
9450         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
9451         (expand_binop): Use them to implement double-word shifts.
9452         * config/arm/arm.c (arm_shift_truncation_mask): New function.
9453         (TARGET_SHIFT_TRUNCATION_MASK): Define.
9454
9455 2004-09-04  Jan Hubicka  <jh@suse.cz>
9456
9457         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
9458         (mix): New macro copied from hashtab.c
9459         (iterative_hash_hashval_t, iterative_hash_pointer,
9460         iterative_hash_host_wide_int): New functions based on hashtab.c
9461         implementation.
9462
9463 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
9464
9465         * config/mips/mips.md (mask): New mode attribute.
9466         (zero_extendsidi2): Add memory alternative.
9467         (*zero_extendsidi2_mem): Delete.
9468         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
9469         memory_operand in the TARGET_MIPS16 check.
9470         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
9471         Redefine using :GPR and :SHORT.
9472         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
9473
9474 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
9475
9476         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
9477         using rint_optab.
9478         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
9479         expand_builtin_mathfn.
9480         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
9481         btrunc?f patterns for btrunc_optab. Implement rint_optab using
9482         rint?f patterns.
9483         * optabs.c (init_optabs): Initialize rint_optab.
9484         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
9485         Add new OTI_rint.
9486         (btrunc_optab): Rename macro from trunc_optab.
9487         (rint_optab): Define corresponding macro.
9488
9489         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
9490         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
9491
9492         * config/i386/i386-protos.h (emit_i387_cw_initialization):
9493         Change prototype. Add new int parameter.
9494         * config/i386/i386.c (emit_i387_cw_initialization):
9495         Handle new rounding modes.
9496
9497         * config/i386/i386.h (enum fp_cw_mode): Delete.
9498         (MODE_NEEDED): Handle new rounding modes.
9499         (EMIT_MODE_SET): Change condition to handle new rounding modes.
9500
9501         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
9502         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
9503         represent different rounding modes of frndint insn.
9504         (type): Add frndint type.
9505         (i387, length, memory): Handle this type.
9506         (i387_cw): New attribute definition.
9507         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
9508         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
9509         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
9510         Add "i387_cw" attribute defined to "trunc".
9511         (x86_fnstcw_1): Remove comment.
9512         (*frndintxf2): Rename insn definition to frndintxf2. Move
9513         insn definition near rint?f2 expanders.
9514         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
9515         rintf and rintl built-ins as inline x87 intrinsics.
9516         (frndintxf2_floor): New pattern to implement floor rounding
9517         mode with frndint x87 instruction.
9518         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
9519         floorf and floorl built-ins as inline x87 intrinsics.
9520         (frndintxf2_ceil): New pattern to implement ceil rounding
9521         mode with frndint x87 instruction.
9522         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
9523         ceilf and ceill built-ins as inline x87 intrinsics.
9524         (frndintxf2_trunc): New pattern to implement trunc rounding
9525         mode with frndint x87 instruction.
9526         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
9527         truncf and truncl built-ins as inline x87 intrinsics.
9528         (frndintxf2_mask_pm): New pattern to implement rounding
9529         mode with exceptions with frndint x87 instruction.
9530         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
9531         implement nearbyint, nearbyintf and nearbyintl built-ins as
9532         inline x87 intrinsics.
9533
9534 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
9535
9536         * config/mips/mips.md (SHORT): New mode macro.
9537         (size): New mode attribute.
9538         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
9539         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
9540         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
9541         !ISA_HAS_SEB_SEH.
9542         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
9543         *extend[qh]isi2_hw patterns and extending them to di.
9544         (extendqihi2): Implement as define_insn_and_split that produces
9545         extendqisi2 after reload.
9546
9547 2004-09-03  Devang Patel  <dpatel@apple.com>
9548
9549         * Makefile.in (OBJS-common): Add tree-if-conv.o
9550         (tree-if-conv.o): New rule.
9551         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
9552         (get_loop_body_in_bfs_order): New.
9553         * cfgloop.h (get_loop_body_in_bfs_order): New.
9554         * tree-flow.h (enum move_pos): Move here from ..
9555         * tree-ssa-loop-im.c (enum move_pos): here.
9556         (movement_possibility): Make externally visible.
9557         * tree-optimize.c (init_tree_optimization_passes): New entry for
9558         if conversion pass.
9559         * tree-pass.h (pass_if_conversion): New.
9560         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
9561         * tree-if-conv.c: New file.
9562         * doc/passes.texi: Document tree if-conversion pass.
9563         * doc/tree-ssa.texi: Same.
9564
9565 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
9566
9567         PR target/14925:
9568         Makefile.in (LIB2ADDEHSTATIC): New.
9569         (LIB2ADDEHSHARED): New.
9570         (LIBUNWIND): New.
9571         (LIBUNWINDDEP): New.
9572         (SHLIBUNWIND_LINK): New.
9573         (SHLIBUNWIND_INSTALL): New.
9574         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
9575         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
9576         (clean): Remove libunwind*
9577         (stage1-start): Remove and copy stage1/libunwind*.
9578         (stage2-start): Remove and copy stage2/libunwind*.
9579         (stage3-start): Remove and copy stage3/libunwind*.
9580         (stage4-start): Remove and copy stage4/libunwind*.
9581         (stageprofile-start): Remove and copy stageprofile/libunwind*.
9582         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
9583
9584         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
9585         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
9586         tmake_file if --with-system-libunwind isn't used.
9587
9588         * config/ia64/t-glibc-libunwind: New file.
9589         * config/t-libunwind-elf: Likewise.
9590         * unwind-compat.c: Likewise.
9591         * unwind-compat.h: Likewise.
9592         * unwind-dw2-fde-compat.c: Likewise.
9593
9594         * config/ia64/t-glibc (LIB2ADDEH): Updated.
9595         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
9596
9597         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
9598         aliases if needed.
9599         * unwind-dw2-fde-glibc.c: Likewise.
9600         * unwind-dw2.c: Likewise.
9601
9602         * config/t-libunwind (LIB2ADDEH): Updated.
9603         (LIB2ADDEHSTATIC): New.
9604         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
9605         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
9606
9607         * configure.ac: Change --enable-libunwind-exceptions to
9608         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
9609         * configure: Regenerated.
9610         * config.in: Updated.
9611
9612         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
9613         above and mention --with-system-libunwind.
9614         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
9615         removed in gcc 3.4.3 and later.
9616
9617         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
9618         USE_LIBUNWIND_EXCEPTIONS is defined.
9619
9620         * mklibgcc.in: Support libunwind.
9621
9622 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
9623
9624         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
9625         m_NOCONA.
9626
9627 2004-09-03  Richard Henderson  <rth@redhat.com>
9628
9629         PR middle-end/9997
9630         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
9631         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
9632         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
9633         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
9634         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
9635         resize_stack_vars_conflict, add_stack_var_conflict,
9636         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
9637         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
9638         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
9639         expand_one_static_var, expand_one_hard_reg_var,
9640         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
9641         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
9642         (expand_used_vars): Rewrite.
9643         * Makefile.in (cfgexpand.o): Update dependencies.
9644
9645 2004-09-04  Jan Hubicka  <jh@suse.cz>
9646
9647         * cfg.c (free_edge): Use ggc_free.
9648         (expunge_block): Use ggc_free.
9649         * passes.c (rest_of_clean_state): Free after compilation.
9650         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
9651         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
9652
9653 2004-09-03  James E Wilson  <wilson@specifixinc.com>
9654
9655         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
9656         DECL_EXTERNAL check.
9657
9658 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
9659
9660         * final.c (output_in_slot): New global variable.
9661         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
9662         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
9663         'output_in_slot' before invoking output_asm_insn.
9664         (output_asm_insn): Add a space after the tab if 'output_in_slot'
9665         is set.
9666         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
9667         final_scan_insn.
9668         (output_sibcall): Likewise.
9669
9670 2004-09-03  Jan Hubicka  <jh@suse.cz>
9671
9672         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
9673         * tree-ssanames (init_ssanames): Likewise.
9674
9675 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
9676
9677         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
9678         objc_declare_protocols, objc_start_protocol,
9679         objc_start_class_interface, objc_start_category_interface,
9680         objc_continue_interface, objc_finish_interface,
9681         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
9682         objc_start_class_implementation, objc_start_category_implementation,
9683         objc_continue_implementation, objc_finish_implementation,
9684         objc_add_method_declaration, objc_start_method_definition,
9685         objc_finish_method_definition, objc_build_keyword_decl,
9686         objc_build_method_signature, objc_build_encode_expr,
9687         objc_build_protocol_expr, objc_build_selector_expr,
9688         objc_build_message_expr, objc_build_string_object,
9689         objc_get_class_reference, objc_get_protocol_qualified_type,
9690         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
9691
9692 2004-09-03  James E Wilson  <wilson@specifixinc.com>
9693
9694         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
9695
9696         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
9697         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
9698         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
9699         (mips_recip1_<fmt>): Use frdiv1 type.
9700         (mips_recip2_<fmt>): Use frdiv2 type.
9701         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
9702         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
9703         and frsqrt1.
9704         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
9705
9706 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
9707
9708         * reload.c (find_reloads): Swap operand_loc pointers for
9709         find_dummy_reload if we have swapped two operands.
9710
9711 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
9712
9713         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
9714         to get the tablejump-insn before the jump-table label.
9715
9716 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
9717
9718         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
9719         objc_declare_protocols, objc_build_message_expr,
9720         objc_finish_message_expr, objc_build_selector_expr,
9721         objc_build_protocol_expr, objc_build_encode_expr,
9722         objc_build_string_object, objc_get_protocol_qualified_type,
9723         objc_get_class_reference, objc_get_class_ivars,
9724         objc_start_class_interface, objc_start_category_interface,
9725         objc_start_protocol, objc_continue_interface, objc_finish_interface,
9726         objc_start_class_implementation, objc_start_category_implementation,
9727         objc_continue_implementation, objc_finish_implementation,
9728         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
9729         objc_add_method_declaration, objc_start_method_definition,
9730         objc_finish_method_definition, objc_add_instance_variable,
9731         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
9732         objc_finish_try_stmt, objc_begin_catch_clause,
9733         objc_finish_catch_clause, objc_build_finally_clause,
9734         objc_build_synchronized, objc_static_init_needed_p,
9735         objc_generate_static_init_call): New prototypes.
9736
9737 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
9738
9739         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
9740         is only one reg.
9741         (ia64_function_value): Ditto.
9742
9743 2004-09-03  Jan Beulich  <jbeulich@novell.com>
9744
9745         * config.gcc: Resurrect NetWare as a target. Handle special case of
9746         Novell linker to be used (specified through --with-ld=) and threading
9747         model of either Posix (default) or NKS.
9748         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
9749         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
9750         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
9751         * config/i386/netware.c, config/i386/netware.h: New.
9752         * config/i386/nwld.c, config/i386/nwld.h: New.
9753         * config/i386/netware-crt0.c: New.
9754         * config/i386/netware-libgcc.c: New.
9755         * config/i386/netware-libgcc.def: New.
9756         * config/i386/netware-libgcc.exp: New.
9757         * config/i386/t-netware, config/i386/t-nwld: New.
9758         * gthr-nks.h: New.
9759         * doc/install.texi: Document NKS threading model.
9760
9761 2004-09-03  Jan Beulich  <jbeulich@novell.com>
9762
9763         PR c/7054
9764         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
9765         * tree.h (initial_max_fld_align): Declare
9766         * stor-layout.c (initial_max_fld_align): Define and initialize.
9767         (maximum_field_alignment): Initialize to the same value.
9768         * common.opt: Add -fpack-struct= variant of switch.
9769         * opts.c: Handle -fpack-struct= variant of switch.
9770         * c-pragma.c: Change #pragma pack() handling so that it becomes
9771         compatible to other compilers: accept individual 'push' argument,
9772         make final pop restore (command line) default, correct interaction
9773         of push/pop and sole specification of a new alignment (so that the
9774         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
9775         to #pragma pack(push, <n>).
9776         * doc/extend.texi: New node "Structure-Packing Pragmas" under
9777         "Pragmas", describing #pragma pack.
9778         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
9779         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
9780         Document new TARGET_DEFAULT_PACK_STRUCT.
9781
9782 2004-09-03  Devang Patel  <dpatel@apple.com>
9783
9784         * dwarf2out.c (gen_field_die). Equate decl number to die.
9785
9786 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
9787
9788         PR target/15832
9789         * global.c (modify_reg_pav): New function.
9790         (make_accurate_live_analysis): Call the new function.  Move pavin
9791         modification by earlyclobber set into the new function.
9792
9793 2004-09-03  Andreas Schwab  <schwab@suse.de>
9794
9795         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
9796         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
9797         extended.
9798
9799 2004-09-02  Jan Beulich  <jbeulich@novell.com>
9800
9801         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
9802         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
9803         not unwind code specific ones.
9804         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
9805         Remove unwind code specific dependencies.
9806         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
9807         Remove gbl-ctors.h.
9808         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
9809         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
9810         * tsystem.h: Declare memcpy and memset when inhibit_libc.
9811
9812 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
9813
9814         * combine.c (try_combine): Delay modifying of insns which cannot
9815         be easily undone.
9816
9817 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
9818
9819         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
9820         tree-loop-im.
9821         * gcc/tree-ssa-loop.c: Ditto
9822         * gcc/tree-ssa-loop-ivcanon.c: Ditto
9823         * gcc/doc/invoke.texi: Ditto.
9824
9825 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
9826
9827         * c-decl.c (store_parm_decls_newstyle): Make static.
9828         (store_parm_decls_from): New function.
9829         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
9830         (store_parm_decls_from): New prototype.
9831
9832 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
9833
9834         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
9835         HImode with STRICT_ALIGNMENT.
9836
9837 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
9838
9839         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
9840         (TARGET_OS_CPP_BUILTINS): Likewise.
9841         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
9842         TARGET_BPABI_CPP_BUILTINS.
9843
9844 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
9845
9846         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
9847
9848 2004-09-02  Eric Christopher  <echristo@redhat.com>
9849
9850         * builtins.c (expand_builtin_cabs): Delete.
9851         (expand_builtin): If unable to fold the values do a normal
9852         library call for builtin_cab*.
9853         (fold_builtin_cabs): Depend on optimize and optimize_size.
9854         * optabs.c (expand_cmplxdiv_straight): Delete.
9855         (expand_cmplxdiv_wide): Ditto.
9856         (expand_vector_binop): Ditto.
9857         (expand_vector_unop): Ditto.
9858         (expand_complex_abs): Delete.
9859         (expand_binop): Remove calls to above functions.
9860         Remove open coding of complex arithmetic.
9861         (expand_unop): Ditto.
9862         * optabs.h: Remove prototypes.
9863
9864 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
9865
9866         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
9867         * c-tree.h (store_parm_decls_newstyle): New prototype.
9868
9869 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
9870
9871         * config/rs6000/rs6000.c (expand_block_clear): Use vector
9872         instructions if available.
9873         (expand_block_move): Likewise.
9874
9875 2004-09-03  Jan Hubicka  <jh@suse.cz>
9876
9877         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
9878
9879 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
9880
9881         * config/arm/symbian.h (LIB_SPEC): Define to empty.
9882         * config/arm/t-symbian (SHLIB_LC): Likewise.
9883
9884 2004-09-02  Paul Brook  <paul@codesourcery.com>
9885
9886         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
9887
9888 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
9889
9890         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
9891         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
9892         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
9893         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
9894         (mips_issue_rate): Remove unreachable abort.
9895         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
9896         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
9897         (mips_block_move_straight, print_operand_address, mips_file_start)
9898         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
9899         (mips_output_conditional_branch, mips_expand_builtin_direct)
9900         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
9901         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
9902         with gcc_assert.
9903
9904 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
9905
9906         * config/mips/mips.md (*lea_high64): Change split condition to
9907         flow2_completed.  Add a peephole2 to generate a more parallel version.
9908
9909 2004-09-02  Jan Hubicka  <jh@suse.cz>
9910
9911         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
9912         GGC.
9913
9914         * ggc-page.c: include tree-flow.h.
9915         (extra_order_size_table): Add stmt_ann_d.
9916         (STAT_LABEL): Rename from ....
9917         (LABEL): ... this one.
9918         * Makefile.in (ggc-page.o): Add dependency.
9919
9920         * ggc-common.c (ggc_force_collect): New global variable.
9921         (loc_description): Add fields "freed", "collected"
9922         (ptr_hash): New static hash
9923         (ptr_hash_entry): New structure.
9924         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
9925         (ggc_record_overhead): Take ptr argument, record it
9926         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
9927         (cmp_statistics): Imrove sorting.
9928         (dump_ggc_loc_statistics): Output newly collected statistics
9929         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
9930         (ggc_free): Call ggc_free_overhead.
9931         (ggc_collect): Force collection when asked to be forced.
9932         (ggc_collect): Call ggc_prune_overhead_list.
9933         * ggc.h (ggc_force_collect): Declare
9934         (ggc_record_overhead): Update prototype.
9935         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
9936
9937 2004-09-02  James E Wilson  <wilson@specifixinc.com>
9938
9939         * common.opt (ftrapping-math): Default to on.
9940
9941 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
9942
9943         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
9944
9945 2004-09-02  Denis Chertykov  <denisc@overta.ru>
9946
9947         PR target/16884
9948         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
9949         match_scratch.
9950         (*movmemqi_insn): Likewise.
9951         (*movmemhi): Likewise.
9952         (clrmemhi): Likewise.
9953         (*clrmemqi): Likewise.
9954         (*clrmemhi): Likewise.
9955
9956 2004-09-02  Paul Brook  <paul@codesourcery.com>
9957
9958         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
9959         default_use_cxa_atexit=yes.
9960
9961 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
9962
9963         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
9964         (struct kernel_old_ucontext): Delete.
9965         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
9966         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
9967         when IN_LIGGCC2.
9968
9969 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
9970
9971         * toplev.c (process_options): Fix typo.
9972
9973 2004-09-01  Richard Henderson  <rth@redhat.com>
9974
9975         PR middle-end/17258
9976         * calls.c (initialize_argument_information): Tighten pass-through
9977         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
9978         Use build_fold_addr_expr.
9979         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
9980         that assumes ADDR_EXPR allocates stack space.
9981         * fold-const.c (build_fold_addr_expr_with_type): Look through
9982         WITH_SIZE_EXPR.
9983
9984 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
9985
9986         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
9987         * ggc.h (ggc_alloc_rtx): Delete.
9988
9989 2004-09-01  Roger Sayle  <roger@eyesopen.com>
9990
9991         * expmed.c (enum alg_code): Remove long unused enumeration values.
9992         (struct mult_cost): New structure to hold the "score" of a synthetic
9993         multiply sequence, including both a rtx_cost and a latency field.
9994         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
9995         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
9996         (struct algorithm): Change type of cost field to be mult_cost.
9997         (synth_mult): Change type of cost_limit argument to be a
9998         pointer to a mult_cost.  Update all cost comparisons to use the
9999         new mult_cost infrastructure.  For alg_add_factor and
10000         alg_sub_factor operations, latency is lower than the rtx_cost.
10001         (choose_mult_variant):  Update calls to synth_mult.  Perform
10002         cost comparisons using the new mult_cost infrastructure.
10003         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
10004         to optain the total rtx_cost of a synth_mult "algorithm".
10005
10006 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
10007
10008         * config/rs6000/power4.md: Increase store latency to 12.
10009         * config/rs6000/power5.md: Same.
10010
10011 2004-09-01  James E Wilson  <wilson@specifixinc.com>
10012
10013         PR target/14064
10014         * config/avr/avr.c (avr_unique_section): Delete prototype and
10015         definition.
10016         (TARGET_ASM_UNIQUE_SECTION): Delete.
10017
10018 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
10019
10020         * c-parse.in (primary): Call objc_build_message_expr(),
10021         objc_build_selector_expr(), objc_build_protocol_expr(),
10022         objc_build_encode_expr() and objc_build_string_object() instead of
10023         build_message_expr(), build_selector_expr(), build_protocol_expr(),
10024         build_encode_expr() and build_objc_string_object(), respectively.
10025         (component_decl_list2): Call objc_get_class_ivars() instead of
10026         get_class_ivars_from_name().
10027         (keyworddecl): Call objc_build_keyword_decl() instead of
10028         build_keyword_decl().
10029         (receiver): Call objc_get_class_reference() instead of
10030         get_class_reference().
10031         (reswords): Add blank line before @@ifobjc section, for clarity.
10032
10033 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
10034
10035         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
10036         to Altivec vetors.
10037
10038 2004-09-01  Wu Yongwei  <adah@sh163.net>
10039             Danny Smith  <dannysmith@users.sourceforge.net>
10040
10041         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
10042         not Windows 'DWORD'.
10043         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
10044         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
10045         (__gthr_win32_recursive_mutex_init_function): Add prototype for
10046         __GTHREAD_HIDE_WIN32API case..
10047         (__gthr_win32_recursive_mutex_lock): Likewise.
10048         (__gthr_win32_recursive_mutex_trylock): Likewise.
10049         (__gthr_win32_recursive_mutex_unlock): Likewise.
10050         (__gthread_recursive_mutex_init_function); Add definition for
10051         __GTHREAD_HIDE_WIN32API case.
10052         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
10053         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
10054         call to InterlockedDecrement.
10055
10056 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10057
10058         * tree-tailcall.c (find_tail_calls): Also fail is statement has
10059         volatile operands.
10060
10061         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
10062
10063         * doc/c-tree.texi: Document new operands for ARRAY_REF and
10064         COMPONENT_REF.
10065
10066 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10067
10068         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
10069         * common.opt (fspeculative-prefetching): New.
10070         * flags.h (flag_speculative_prefetching_set): Declare.
10071         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
10072         values.
10073         * opts.c (flag_sepculative_prefetching_set): New variable.
10074         (common_handle_option): Handle -fspeculative-prefetching.
10075         * passes.c (rest_of_compilation): Ditto.
10076         * profile.c (instrument_values, compute_value_histograms, branch_prob):
10077         Use vectors instead of arrays.
10078         * toplev.c (process_options): Handle -fspeculative-prefetching.
10079         * rtl-profile.c: Include ggc.h.
10080         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
10081         rtl_gen_one_value_profiler_no_edge_manipulation,
10082         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
10083         argument changed.
10084         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
10085         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
10086         argument changed.
10087         * value-prof.c: Include ggc.h.
10088         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
10089         macros.
10090         (insn_prefetch_values_to_profile, find_mem_reference_1,
10091         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
10092         speculative_prefetching_transform): New.
10093         (value_profile_transformations): Call speculative_prefetching_transform.
10094         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
10095         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
10096         tree_find_values_to_profile, find_values to profile): Use vectors
10097         instead of arrays.
10098         (free_profiled_values): Removed.
10099         * value-prof.h (struct histogram_value): Renamed to
10100         struct histogram_value_t.
10101         (histogram_value, histogram_values): New types.
10102         (find_values_to_profile): Declaration changed.
10103         (free_profiled_values): Removed.
10104         (struct profile_hooks): Type of argument of the hooks changed to
10105         histogram_value.
10106         * doc/invoke.texi (-fspeculative-prefetching): Document.
10107
10108 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10109
10110         PR rtl-optimization/16408
10111         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
10112
10113 2004-09-01  Richard Henderson  <rth@redhat.com>
10114
10115         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
10116         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
10117
10118 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
10119
10120         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
10121
10122 2004-09-01  Mike Stump  <mrs@apple.com>
10123
10124         * config/darwin.c (machopic_symbol_defined_p): In addition to
10125         being SYMBOL_REF_LOCAL_P, a symbol must also be
10126         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
10127         defined in this output file, or translation unit in the case
10128         of IMA not being used.
10129         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
10130         never need .indirect_symbol when indirecting.
10131
10132 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
10133
10134         * Makefile.in (bb-reorder.o): Add several dependencies.
10135
10136 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
10137
10138         * fold-const.c (operand_equal_p): Require equal sign also for
10139         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
10140
10141 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
10142
10143         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
10144         for use in configargs.h.  Put the cname in a separate variable.  Use
10145         that to set target_cpu_default2.
10146
10147 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
10148             Nick Clifton  <nickc@redhat.com>
10149
10150         * config/sh/sh.md ("length"): Increase branch length when
10151         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
10152         constant, 2 byte for aligning the constant.
10153
10154 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
10155
10156         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
10157         CPU.
10158         (arm7tdmi-s): New CPU name.
10159         * arm/arm.c (ARM_CORE): Update for new format.
10160         * arm/arm.h (ARM_CORE): Likewise.
10161         * arm/gentune.sh: Update for extra field.
10162         * config.gcc: Likewise.
10163         * arm/arm-tune.md: Regenerate.
10164         * doc/invoke.texi: Document the real processor names for ARM cpus.
10165
10166 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
10167
10168         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
10169         (floatdidf): New functions.
10170         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
10171         (floatdisf): New functions.
10172         * t-arm-elf: Use them.
10173
10174 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
10175
10176         * c-common.h (lookup_interface): Remove prototype.
10177         (is_class_name): Rename to objc_is_class_name.
10178         (lookup_objc_ivar): Rename to objc_lookup_ivar.
10179         (get_current_scope): Rename to objc_get_current_scope.
10180         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
10181         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
10182         (yylexname): Call objc_is_class_name() instead of is_class_name().
10183         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
10184         instead of lookup_objc_ivar().
10185         * stub-objc.c (lookup_interface): Remove stub.
10186         (is_class_name): Rename to objc_is_class_name.
10187         (lookup_objc_ivar): Rename to objc_lookup_ivar.
10188
10189 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
10190
10191         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
10192         * config/arm/lib1funcs.asm: Do not include supplemental .S files
10193         when compiling for Symbian.
10194         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
10195         (TARGET_OS_CPP_BUILTINS): Likewise.
10196         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
10197
10198 2004-08-31  Stan Shebs  <shebs@apple.com>
10199
10200         * toplev.c (process_options): Ensure debug_hooks is initialized.
10201
10202 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
10203
10204         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
10205         * target.h (cxx): Add export_class_data.
10206         * config/arm/arm.c (arm_cxx_export_class_data): New function.
10207         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
10208         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
10209
10210 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
10211
10212         * config/sh/sh.c (output_branch): Check the insn length possibly
10213         in the delayed slot.
10214
10215 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10216
10217         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
10218         blank after ')'.
10219         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
10220
10221         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
10222         (c_sizeof_of_alignof_type): Likewise.
10223         * expr.c (array_ref_element_size): Likewise.
10224         (highest_pow2_factor_for_target): Likewise.
10225         * gimplify.c (canonicalize_addr_expr): Likewise.
10226         (gimplify_compound_lval): Likewise.
10227         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
10228         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
10229         * varasm.c (assemble_variable): Likewise.
10230         (output_constant_def_contents): Alignments are unsigned.
10231
10232 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10233             Jeff Law  <law@redhat.com>
10234
10235         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
10236         gets modified.
10237
10238 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
10239
10240         * hooks.c (hook_bool_void_true): New function.
10241         * hooks.h (hook_bool_void_true): Declare.
10242         * target-def.h (TARGET_CXX): Add
10243         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
10244         * target.h (struct cxx): Add key_method_may_be_inline.
10245         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
10246         function.
10247         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
10248         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
10249         __THUMB_INTERWORK.
10250
10251 2004-08-31  Denis Chertykov  <denisc@overta.ru>
10252
10253         PR target/15417
10254         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
10255         frame pointer register only in Pmode while reload in progress.
10256
10257 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
10258
10259         PR target/15334
10260         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
10261         because it breaks the 32-bit shift patterns that rely on a match_dup.
10262
10263 2004-08-31  Matt Austern  <austern@apple.com>
10264
10265         * config/darwin.c (darwin_make_decl_one_only): Allocate section
10266         names once per compilation, instead of once per symbol.
10267
10268 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
10269
10270         * Makefile.in (build_subdir): New substitution.
10271         (fixinc.sh): Simplify heavily since fixincludes is already built.
10272         (stmp-fixinc): Depend on specs.ready.
10273         (install-mkheaders): Use new location of fixincludes.
10274         (clean): Do not descend into fixinc.
10275         (FORBUILD): Replace with ../$(build_subdir).
10276         * configure.ac (build_subdir): Substitute.
10277         (FORBUILD): Do not set.
10278         (all_outputs): Remove fixinc/Makefile.
10279         (default commands): Do not create links in fixinc.
10280         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
10281         the fixincludes configuration steps and substituting
10282         @FIXINCL@ in fixinc.in.
10283         * fixinc.in: New, from fixinc/fixincl.sh.
10284
10285         * fixinc/*: Removed.
10286
10287 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
10288
10289         * attribs.c (strip_attrs): Remove.
10290         (split_specs_attrs): Move ...
10291         * c-decl.c: ... to here.
10292         * tree.h (split_specs_attrs, strip_attrs): Remove.
10293         * c-tree.h (split_specs_attrs): Declare.
10294
10295 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
10296
10297         * read-rtl.c: Disable RTL checking.
10298         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
10299
10300 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
10301
10302         * config/mips/mips.md (fcond): New code macro and attribute.
10303         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
10304         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
10305         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
10306
10307 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
10308
10309         Revert:
10310         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
10311         PR rtl-optimization/16590
10312         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
10313
10314 2004-08-30  Andrew Pinski  <apinski@apple.com>
10315
10316         * hard-reg-set.h:
10317         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
10318         * ChangeLog: Fix previous ChangeLog entry.
10319
10320         PR rtl-opt/13987
10321         * config.host (use_long_long_for_widest_fast_int): New, default is
10322         off.
10323         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
10324         * configure.ac: If use_long_long_for_widest_fast_int, then
10325         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
10326         * configure: Regenerate.
10327         * config.in: Regenerate.
10328         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
10329         New: widest integer type supported efficiently in hardware for the
10330         host.
10331         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
10332         HOST_BITS_PER_WIDEST_FAST_INT.
10333         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
10334         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
10335         HOST_WIDEST_FAST_INT
10336         instead of HOST_WIDE_INT.
10337         (HARD_REG_SET_LONGS): Likewise.
10338         (UHOST_BITS_PER_WIDE_INT): Likewise.
10339         Change the checks for the fast cases to be based on
10340         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
10341
10342 2004-08-30  Steven Bosscher  <stevenb@suse.de>
10343
10344         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
10345         not the pointers.
10346
10347 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
10348
10349         PR 12738
10350         PR 17205
10351         Radar 3460526
10352         Radar 3775729
10353         * c-decl.c (grokdeclarator): Produce error for 'static' on local
10354         function declaration.
10355
10356 2004-08-30  Richard Henderson  <rth@redhat.com>
10357
10358         * expr.c (array_ref_element_size): Force aligned_size back to
10359         sizetype.
10360         (component_ref_field_offset): Similarly for aligned_offset.
10361         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
10362         low-bound, element-size, field-offset fields rather than
10363         computed values.
10364
10365 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
10366
10367         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
10368         redundant code.
10369
10370 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
10371
10372         * c-tree.h (struct language_function): Add arg_info element.
10373         * c-decl.c (current_function_arg_info): New.
10374         (grokdeclarator, store_parm_decls): Use it instead of
10375         DECL_ARGUMENTS.
10376         (c_push_function_context, c_pop_function_context): Save and
10377         restore it.
10378
10379 2004-08-30  Richard Henderson  <rth@redhat.com>
10380
10381         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
10382         COMPONENT_REF to pointer arithmetic.
10383         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
10384         constant "c" as a valid constant initializer.  Allow narrowing of
10385         differences against the same base object, for any base object.
10386
10387 2004-08-30  Richard Henderson  <rth@redhat.com>
10388
10389         * expr.c (expand_expr_addr_expr): New.
10390         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
10391
10392 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
10393
10394         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
10395         (mips_fp_condition): New enum.
10396         (mips_fp_conditions): New array.
10397         (print_fcc_operand): Delete.
10398         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
10399         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
10400         (builtin_description): Add "cond" field.
10401         (DIRECT_BUILTIN): Initialize it.
10402         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
10403         into INSN and CODE.  Initialize the "cond" field.
10404         (CMP_BUILTINS): Update accordingly.
10405         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
10406         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
10407         mips_fp_condition as argument.  Make it the final operand of the
10408         comparison instruction.
10409         (mips_expand_builtin): Update accordingly.
10410         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
10411         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
10412         the gaps.
10413         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
10414         Don't use the 'Q' operand prefix; just print the operand normally.
10415         (mips_cabs_*, mips_c_*): Delete, replacing with...
10416         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
10417         patterns.  Split the 4s versions into 2 ps patterns after reload.
10418
10419 2004-08-30  Richard Henderson  <rth@redhat.com>
10420
10421         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
10422         assuming an ADDR_EXPR is non-null.
10423
10424 2004-08-30  Jason Merrill  <jason@redhat.com>
10425
10426         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
10427
10428 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
10429
10430         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
10431         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
10432         gcc_assert and gcc_unreachable instead of abort.
10433         * alloc-pool.c (abort, fancy_abort): Remove.
10434         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
10435         gcc_assert or gcc_unreachable.
10436         * attribs.c (init_attributes, decl_attributes): Likewise.
10437         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
10438         mark_bb_for_unlikely_executed_section,
10439         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
10440         fix_crossing_unconditional_branches):  Likewise.
10441         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
10442         bitmap_operation):  Likewise.
10443         * bt-load.c (insn_sets_btr_p, augment_live_range,
10444         move_btr_def):  Likewise.
10445         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
10446         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
10447         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
10448         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
10449         expand_builtin_memcmp, expand_builtin_args_info,
10450         std_gimplify_va_arg_expr, expand_builtin_unop,
10451         expand_builtin_fputs, expand_builtin_profile_func,
10452         expand_builtin_fork_or_exec, fold_builtin_bitop,
10453         fold_builtin_classify, fold_builtin_fputs): Likewise.
10454
10455 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
10456
10457         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
10458         * gcov.c (abort): Remove undef.
10459
10460         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
10461         (struct tree_binfo): Remove primary field.
10462
10463 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
10464
10465         * fixinc/Makefile.in (machname.h): Remove.
10466         (fixincl.x): Do not pass $@ to genfixes.
10467         * fixinc/genfixes: Remove code to produce machname.h.
10468         * fixinc/fixincl.sh: Move it here instead.
10469         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
10470         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
10471         return a bool indicating whether pz_mn_name_pat is NULL.
10472         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
10473         Declare extern C variables for the ENV_TABLE.
10474         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
10475         instead use the result of mn_get_regexps.
10476         * fixinc/fixtests.c: Likewise.
10477
10478 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
10479
10480         * configure.ac: Do not run fixincludes after stage1 during
10481         toplevel bootstrap.
10482         * configure: Regenerate.
10483
10484 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
10485
10486         * sched-deps.c (get_condition): Partially revert previous, by never
10487         trying to extract the condition from a condjump.
10488
10489 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
10490
10491         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
10492         (handle_visibility_attribute, c_determine_visibility): Likewise.
10493         * c-common.h (my_friendly_assert): Remove.
10494
10495 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
10496
10497         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
10498         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
10499         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
10500         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
10501         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
10502
10503 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
10504
10505         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
10506         in COMPONENT_REF nodes.
10507
10508 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10509
10510         PR c++/15378
10511         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
10512         global_dc->warning_as_error_requested.
10513         * diagnostic.c (diagnostic_initialize): Tidy.
10514         * diagnostic.h (diagnostic_context::x_data): Remove
10515         (diagnostic_context::issue_warnings_are_errors_message): Rename
10516         from warnings_are_errors_message.
10517         (diagnostic_context::warning_as_error_requested): New.
10518
10519 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
10520
10521         * sched-deps.c (get_condition): Fix breakage in previous patch.
10522
10523 2004-08-30  Paul Brook  <paul@codesourcery.com>
10524
10525         * doc/install.texi: Fix broken mpfr link.
10526
10527 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
10528
10529         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
10530         other FreeBSD platforms.
10531
10532 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
10533
10534         * arm.h (REVERSE_CONDITION): Define.
10535         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
10536
10537 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
10538
10539         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
10540         just the codes, call reversed_comparison_code ().
10541         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
10542         (not_reg_cond): Use reversed_comparison_code.
10543         (and_reg_cond): Likewise.
10544         * ifcvt.c (cond_exec_process_if_block): Likewise.
10545         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
10546
10547 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
10548
10549         * sched-deps.c (get_condition): Rewrite using jump support functions.
10550         Use reversed_comparison_code.
10551         (conditions_mutex_p): Use reversed_comparison_code.
10552
10553 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
10554
10555         * config/mips/mips.c (override_options): Disable hot/cold partitioning
10556         for MIPS16.
10557
10558 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
10559
10560         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
10561         (mips_function_type): Move to mips.c.
10562         * config/mips/mips.c (mips_builtin_type): New enum.
10563         (builtin_description): Replace code and ftype with builtin_type
10564         and function_type.
10565         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
10566         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
10567         (CODE_FOR_mips_abs_ps): Define.
10568         (mips_bdesc): Use new macros.
10569         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
10570         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
10571         (mips_expand_builtin_direct): New function.
10572         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
10573         builtin.  Replace boolean parameter with builtin_type.
10574         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
10575         (mips_expand_4s_compare_builtin): Delete, replacing with...
10576         (mips_expand_builtin_compare): ...this new function.
10577
10578 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
10579
10580         PR rtl-optimization/16590
10581         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
10582
10583 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
10584
10585         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
10586         * tree-ssa-propagate.c: Fix documentation.
10587
10588 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
10589
10590         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
10591         (mov[sd]fcc): Likewise.
10592
10593 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
10594
10595         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
10596
10597 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
10598
10599         * config/mips/mips.md (divide_condition): New mode attribute.
10600         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
10601         (sqrt[sd]f3): Redefine using SCALARF.
10602         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
10603         patterns.
10604
10605 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
10606
10607         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
10608         (loadx, storex, fmt, UNITMODE): New mode attributes.
10609         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
10610         (mul[sd]f3): Redefine using :SCALARF.
10611         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
10612         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
10613         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
10614         Check TARGET_FUSED_MADD for V2SF too.
10615         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
10616         were already named.
10617         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
10618         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
10619
10620 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
10621
10622         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
10623         V2SF_type_node if it will be needed.
10624
10625 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
10626
10627         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
10628         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
10629         (mips_prepare_builtin_target): New function.
10630         (mips_expand_builtin): Use them.  Update calls to subroutines.
10631         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
10632         cmp_choice with a boolean argument to select between movt and movf.
10633         Take the comparison's icode as an argument, not the function's fcode.
10634         (mips_expand_compare_builtin): New function.  Rename existing function
10635         to mips_expand_scalar_compare_builtin.
10636         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
10637         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
10638         comparison's icode as an argument, not the builtin's fcode.
10639
10640 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
10641
10642         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
10643         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
10644         registers are false and -1 if all registers are true.
10645         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
10646         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
10647         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
10648         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
10649         (bc1any2t, bc1any2f): Likewise CCV2.
10650         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
10651
10652 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
10653
10654         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
10655         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
10656         UNSPEC rather than an IF_THEN_ELSE.
10657         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
10658         mips_cond_move_tf_ps by name.
10659
10660 2004-08-29  Chao-ying Fu  <fu@mips.com>
10661             James E Wilson  <wilson@specifixinc.com>
10662
10663         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
10664         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
10665         * config/mips/mips-ps-3d.md: New file.
10666         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
10667         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10668         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
10669         (mips_output_move): Emit "mov.ps" for V2SFmode.
10670         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
10671         MODE_VECTOR_FLOAT.
10672         (override_options): Check if TARGET_MIPS3D and there was an explicit
10673         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
10674         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
10675         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
10676         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
10677         and allow CCV2 and CCV4 to occupy two and four CC registers.
10678         (print_fcc_operand): New function.
10679         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
10680         %Z to call print_fcc_operand.
10681         (mips_function_value): Handle MODE_VECTOR_FLOAT.
10682         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
10683         (mips_vector_mode_supported_p): New function.
10684         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
10685         (builtin_description): New struct.
10686         (mips_bdesc): New array of struct builtin_description.
10687         (mips_expand_builtin, mips_init_builtins,
10688         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
10689         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
10690         functions.
10691         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
10692         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
10693         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
10694         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
10695         "-mips3d", and "-mno-mips3d".
10696         (ASM_SPEC): Map -mips3d to -mips3d in gas.
10697         (EXTRA_CONSTRAINT_Y): New macro.
10698         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
10699         multi-letter constraint 'Y'.
10700         (CONSTRAINT_LEN): New macro.
10701         (enum mips_builtins): New for MIPS builtin functions.
10702         (enum mips_function_type): New for the types of MIPS builtin functions.
10703         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
10704         * config/mips/mips.md: New constants for paired single and MIPS-3D
10705         instructions.  Include the new mips-ps-3d.md file.
10706         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
10707         movv2sf_hardfloat_64bit): New named patterns.
10708         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
10709         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
10710         sdxc1_v2sf_di): New unnamed patterns.
10711         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
10712         const_vector support.
10713         (const_0_or_1_operand): New predicate.
10714         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
10715
10716 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
10717
10718         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
10719         (tree-ssa-propagate.o): New rule.
10720         (GTFILES): Add tree-ssa-propagate.c.
10721         * tree-flow.h (struct stmt_ann_d): Remove field
10722         in_ccp_worklist.
10723         * tree-ssa-propagate.c: New file.
10724         * tree-ssa-propagate.h: New file.
10725         * tree-ssa-ccp.c: Re-write to use the routines from
10726         tree-ssa-propagate.c.
10727
10728 2004-08-28  Andrew Pinski  <apinski@apple.com>
10729
10730         * tree-ssa-loop.c: Remove extra include of basic-block.h.
10731
10732 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
10733
10734         * c-common.h: Update comments about ObjC/ObjC++ entry points.
10735         (objc_is_reserved_word): New prototype.
10736         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
10737         separate section; these are call-backs.
10738         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
10739         ObjC/ObjC++ "@" keywords.
10740         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
10741         prototypes; they already live in c-common.h.
10742         * stub-objc.c: Update copyright notice.
10743         (objc_is_reserved_word): New stub.
10744
10745 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
10746
10747         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
10748         even when not checking.
10749
10750 2004-08-27  Jason Merrill  <jason@redhat.com>
10751
10752         PR c++/13684
10753         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
10754         (gimple_push_cleanup): Add eh_only parm.
10755         (gimplify_target_expr): Pass it.
10756         * c.opt (-fno-threadsafe-statics): New option.
10757         * c-opts.c (c_common_handle_option): Handle it.
10758         * c-common.h (flag_threadsafe_statics): Declare it.
10759         * c-common.c (flag_threadsafe_statics): Record it.
10760         * doc/invoke.texi: Document it.
10761         * tsystem.h (_GNU_SOURCE): Define.
10762         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
10763         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
10764         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
10765         (__gthread_recursive_mutex_init_function): New fn.
10766         (__gthread_recursive_mutex_lock): New fn.
10767         (__gthread_recursive_mutex_trylock): New fn.
10768         (__gthread_recursive_mutex_unlock): New fn.
10769         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
10770         * gthr-win32.h, gthr-vxworks.h: Likewise.
10771         * gthr.h: Document.
10772
10773 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
10774
10775         * config/rs6000/rs6000.c (rs6000_override_options): Increase
10776         maximum skip to 15.  Set function alignment, jump alignment, and
10777         loop alignment to 16 for processors that form dispatch groups.
10778         (rs6000_rtx_costs): outer_code is used.
10779
10780 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
10781
10782         * stor-layout.c (sizetype_set): Remove.
10783         (set_sizetype): Don't test or set it.
10784
10785         * tree.h (size_int_type): Remove.
10786         * fold-const.c: Do not #include gt-fold-const.h.
10787         (size_htab_hash, size_htab_eq): Remove.
10788         (size_int_kind): Use build_int_cst.
10789         (new_const, size_htab): Remove.
10790         (size_int_type): Remove.
10791         (round_up): Use build_int_cst.
10792         (round_down): Likewise. Remove spurious constant build.
10793
10794 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
10795
10796         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
10797         Add is_release variable, use it for --enable-werror and
10798         --enable-checking defaults.
10799         * system.h (gcc_assert, gcc_unreachable): New.
10800         * doc/install.texi (--enable-checking): Update.
10801         * configure, config.in: Rebuilt.
10802
10803 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
10804
10805         * rtl.h (read_rtx): Change prototype.
10806         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
10807         line number.  Return true on success.
10808         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
10809         callers accordingly.
10810
10811 2004-08-26  Richard Henderson  <rth@redhat.com>
10812
10813         * c-typeck.c (build_offsetof): Remove.
10814         * c-tree.h (build_offsetof): Remove.
10815         * c-common.c (fold_offsetof_1, fold_offsetof): New.
10816         * c-common.h (fold_offsetof): Declare.
10817         * c-parse.in (offsetof_base): New.
10818         (offsetof_member_designator): Use it.  Build references, not just
10819         a tree list.
10820         (primary): Use fold_offsetof, not build_offsetof.
10821
10822 2004-08-26  Richard Henderson  <rth@redhat.com>
10823
10824         * tree.c (staticp): Return the static object.
10825         * tree.h (staticp): Update decl.
10826         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
10827         * langhooks.c (lhd_staticp): Return NULL_TREE.
10828         * langhooks-def.h (lhd_staticp): Update decl.
10829         * c-common.c (c_staticp): Return the static object.
10830         * c-common.h (c_staticp): Update decl.
10831
10832 2004-08-26  Richard Henderson  <rth@redhat.com>
10833
10834         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
10835         modes.
10836
10837 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
10838
10839         PR c/13801
10840         * c-decl.c (struct c_binding): Add type and inner_comp fields.
10841         (bind): Set type and inner_comp fields.
10842         (pop_scope): Restore type of decl to the correct type from an
10843         outer scope.  Give error when popping file scope for incomplete
10844         arrays completed incompatibly with default initialization in an
10845         inner scope.
10846         (diagnose_mismatched_decls): Handle externs with initializers at
10847         block scope.
10848         (pushdecl): Set type of external declaration at block scope based
10849         only on the visible declarations.  Save type when changing the
10850         type of a declaration.  Merge an external declaration at block
10851         scope with a visible static declaration at file scope.
10852         (implicitly_declare): Give recycled old declaration the new type
10853         except for incompatible declarations of built-in functions, saving
10854         the old type.
10855
10856 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
10857
10858         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
10859
10860 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
10861
10862         * tree-alias-common.c (gate_pta): New function.
10863         (pass_build_pta): Use it.
10864         (pass_del_pta): Use it.
10865         (delete_alias_vars): Don't check flag_tree_points_to.
10866
10867 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
10868
10869         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
10870         TFmode as additional register mode cloberred by call.
10871
10872 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
10873
10874         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
10875         parallel pattern for library call returning DImode in
10876         mixed mode.
10877
10878 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
10879
10880         * config/rs6000/rs6000.c (function_arg): Generate parallel
10881         pattern for more split args.
10882
10883 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
10884
10885         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
10886         either gen_movdi_di_update or gen_movdi_si_update depending on
10887         target mode.
10888         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
10889         to generate two versions.
10890
10891 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
10892
10893         * Makefile.in (lambda-code.o): New.
10894         (lambda-trans.o): Ditto.
10895         (TREE_DATA_REF_H): Ditto.
10896         (LAMBDA_H): Ditto.
10897         (lambda-mat.o): Use LAMBDA_H.
10898         (tree-data-ref.o): Ditto.
10899         * lambda-code.c: New file.  Lambda code generation algorithm.
10900         * lambda-trans.c: Ditto. Lambda transformation matrix support.
10901         * lambda.h: Add lambda loop structures.
10902         Add lambda loopnest structures.
10903         Add lambda body vector structure.
10904         Add lambda linear expression structures.
10905         Add prototypes for functions in new files.
10906         * lambda-mat.c: Include tree.h
10907
10908 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
10909             Sebastian Pop  <pop@cri.ensmp.fr>
10910
10911         * tree-data-ref.h: Include lambda.h
10912         (free_dependence_relation): Declared here.
10913         (free_dependence_relations): Ditto.
10914         (free_data_refs): Ditto.
10915         * tree-data-ref.c (free_dependence_relation): New function.
10916         (free_dependence_relations): Ditto.
10917         (free_data_refs): Ditot.
10918         (analyze_all_data_dependences): Free datarefs and dependence_relations.
10919         (build_classic_dist_vector): Store in the dependence_relations the
10920         information. Each arc in the dependence_relations graph is labelled
10921         with the distance and direction vectors.
10922         (build_classic_dir_vector): Ditto.
10923         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
10924         Now computes again the whole dependence graph including read-read
10925         relations.
10926         (compute_data_dependences_for_loop): Now dependence_relations contains
10927         all the data, and thus it doesn't need to initialize the classic_dir
10928         and classic_dist vectors.
10929         (analyze_all_data_dependences): Adjusted for using the new interface of
10930         compute_data_dependences_for_loop.  Remove the statistics dump.
10931
10932 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
10933
10934         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
10935         (xtensa_expand_block_move): Update comment.
10936         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
10937
10938 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
10939
10940         PR target/13506
10941         * toplev.c (crash_signal): If we crashed while emitting
10942         a user asm, then die more gracefully.
10943
10944 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10945
10946         PR target/17119.
10947         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
10948         checking for a valid constant, regardless of sign.
10949
10950 2004-08-25  Richard Henderson  <rth@redhat.com>
10951
10952         PR target/16974
10953         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
10954         if the constant satisfies add_operand.
10955
10956 2004-08-25  Richard Henderson  <rth@redhat.com>
10957
10958         PR debug/10695
10959         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
10960         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
10961         unwind info for >16-bit frames.
10962
10963 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
10964
10965         PR target/17171
10966         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
10967
10968 2004-08-25  Richard Henderson  <rth@redhat.com>
10969
10970         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
10971         (TARGET_CANNOT_FORCE_CONST_MEM): New.
10972
10973 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
10974
10975         * doc/tree-ssa.texi: Document new operand iterator.
10976
10977 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
10978
10979         PR target/16480
10980         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
10981         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
10982         as PLUS base regs.
10983
10984 2005-08-28  Paul Brook  <paul@codesourcery.com>
10985
10986         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
10987         -mfpu=vfp -march=armv5t
10988         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
10989
10990 2004-08-25  Richard Henderson  <rth@redhat.com>
10991
10992         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
10993         * target.h (struct gcc_target): Add scalar_mode_supported_p.
10994         * targhooks.c (default_scalar_mode_supported_p): New.
10995         * targhooks.h (default_scalar_mode_supported_p): Declare.
10996         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
10997
10998         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
10999         before attempting to create types.  Tidy.
11000         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
11001
11002         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
11003         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11004
11005 2004-08-25  Richard Henderson  <rth@redhat.com>
11006
11007         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
11008         set REAL_MODE_FORMAT for TFmode.
11009
11010 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
11011
11012         * c-decl.c (grokparm): New function.
11013         * c-tree.h (grokparm): New prototype.
11014
11015 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
11016
11017         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
11018         iterator controlling structure.
11019         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
11020         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
11021         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
11022         iterator flags.
11023         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
11024         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
11025         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
11026         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
11027         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
11028         Empty operand pointers.
11029         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
11030         (op_iter_next_use): New.  Return next use_operand_p.
11031         (op_iter_next_def): New.  Return next def_operand_p.
11032         (op_iter_next_tree): New.  Return next operands as a tree.
11033         (op_iter_init): New.  Initialize an iterator structure.
11034         (op_iter_init_use): New.  Initialize structure and get the first use.
11035         (op_iter_init_def): New.  Initialize structure and get the first def.
11036         (op_iter_init_tree): New.  Initialize structure and get the first tree.
11037         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
11038         (op_iter_init_maydef): New.  Initialize structure and get the first
11039         V_MAY_DEF operands.
11040         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
11041         * tree-dfa.c (compute_immediate_uses_for_stmt,
11042         redirect_immediate_uses): Use new operand iterator.
11043         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
11044         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
11045         operands instead of using *_disappeared_p routines.
11046         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
11047         ssa_rewrite_stmt): Use new operand iterator.
11048         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
11049         rewrite_trees): Use new operand iterator.
11050         * tree-pretty-print.c (dump_vops): Use new operand iterator.
11051         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
11052         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
11053         dump_points_to_info): Use new operand iterator.
11054         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
11055         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
11056         operand iterator.
11057         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
11058         propagate_necessity): Use new operand iterator.
11059         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
11060         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
11061         a parameter instead of a stmt_ann_t.
11062         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
11063         build_tree_conflict_graph): Use new operand iterator.
11064         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
11065         rewrite_mem_refs): Use new operand iterator.
11066         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
11067         check_loop_closed_ssa_use): Use new operand iterator.
11068         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
11069         * tree-ssanames.c (release_defs): Use new operand iterator.
11070         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
11071
11072 2004-08-25  Adam Nemet  <anemet@lnxw.com>
11073
11074         * tlink.c (initial_cwd): New variable.
11075         (tlink_init): Initialize it.
11076         (recompile_files): Use tlink_execute() instead of system().  Don't
11077         duplicate verbose output of collect_execute.  Restore initial_cwd.
11078         Update comment before the function.
11079
11080 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
11081
11082         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
11083         accept) a cast from one Objective-C pointer type to another.
11084
11085 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
11086
11087         * doc/install.texi: Document that libstdc++-v3 requires
11088         now automake 1.9.1.
11089
11090 2004-08-25  Caroline Tice  <ctice@apple.com>
11091
11092         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
11093         to comments at start of function.
11094         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
11095         comment.
11096         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
11097         merge_blocks_move_predecessor_nojumps,
11098         merge_blocks_move_successor_nojumps, merge_blocks_move,
11099         try_crossjump_to_edge, try_crossjump_bb): Likewise.
11100         * cfglayout.c (fixup_reorder_chain): Likewise.
11101         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
11102         cfg_layout_can_merge_blocks_p):  Likewise.
11103         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
11104         * passes.c (rest_of_compilation): Update comments for calling
11105         optimization that partitions hot/cold basic blocks.
11106         * doc/invoke.texi:  Update documentation of
11107         freorder-blocks-and-partition flag.
11108
11109 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
11110
11111         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
11112         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
11113
11114 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
11115
11116         * config/mips/mips.md (any_shift): New code macro.
11117         (optab, insn): New code attributes.
11118         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
11119         Use the standard rather than internal patterns for the MIPS16
11120         double-shift optimization.
11121         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
11122         Redefine using :GPR and any_shift.
11123         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
11124         to cover all three shifts.
11125         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
11126         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
11127         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
11128
11129 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
11130
11131         * gimplify.c (lookup_tmp_var): Separate temporaries when not
11132         optimizing.
11133
11134 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11135
11136         PR libstdc++/17005 (fix for HP-UX 11.11)
11137         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
11138         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
11139         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
11140         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
11141         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
11142         (LINK_SPEC): Handle march=1.0 option.
11143         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
11144         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
11145         (SUBTARGET_OPTIONS): New define.
11146         (LINK_SPEC): Handle march=1.0 option.
11147         (STARTFILE_SPEC): New define.
11148         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
11149         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
11150         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
11151         (SUBTARGET_OPTIONS): New define.
11152         (LINK_SPEC): Handle march=1.0 option.
11153         (STARTFILE_SPEC): New define.
11154         * config/pa/pa.c (override_options): Add code to process -munix= option.
11155         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
11156         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
11157         defines.
11158         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
11159         (SUBTARGET_OPTIONS): Provide default define.
11160         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
11161         STANDARD_STARTFILE_PREFIX_2): New defines.
11162         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
11163         (ENDFILE_SPEC): Use %O.
11164         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
11165         Mention issue caused by changing namespace and runtime to UNIX 95/98.
11166         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
11167         Document -munix=std option.
11168
11169 2004-08-25  Steven Bosscher  <stevenb@suse.de>
11170
11171         * cse.c (cse_around_loop, cse_check_loop_start,
11172         cse_set_around_loop): Remove.
11173         (cse_basic_block): Remove the around_loop argument.
11174         (cse_end_of_basic_block): Remove the after_loop argument.
11175         (cse_main): Likewise.
11176         * rtl.h (cse_main): Update prototype.
11177         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
11178         rest_of_handle_gcse): Update cse_main calls.
11179
11180 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
11181
11182         * tree.h  (build_int_cst): New, sign extended constant.
11183         (build_int_cstu): New, zero extended constant.
11184         (build_int_cst_wide): Renamed from build_int_cst.
11185         * tree.c (build_int_cst, build_int_cstu): New.
11186         (build_int_cst_wide): Renamed from build_int_cst.
11187         (make_vector_type, build_common_tree_nodes,
11188         build_common_tree_nodes_2): Adjust build_int_cst calls.
11189         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
11190         expand_builtin_strpbrk, expand_builtin_fputs,
11191         build_string_literal, expand_builtin_printf,
11192         expand_builtin_sprintf, fold_builtin_classify_type,
11193         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
11194         fold_builtin_toascii, fold_builtin_isdigit,
11195         simplify_builtin_strstr, simplify_builtin_strpbrk,
11196         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
11197         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
11198         DEF_ATTR_INT): Likewise.
11199         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
11200         Likewise.
11201         * c-lex.c (interpret_integer, lex_charconst): Likewise.
11202         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
11203         * c-pretty-print.c (pp_c_integer_constant): Likewise.
11204         * c-typeck.c (really_start_incremental_init, push_init_level,
11205         set_nonincremental_init_from_string): Likewise.
11206         * calls.c (load_register_parameters): Likewise.
11207         convert.c (convert_to_pointer): Likewise.
11208         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
11209         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
11210         build_gcov_info): Likewise.
11211         * except.c (init_eh, assign_filter_values): Likewise.
11212         * expmed.c (store_fixed_bit_field, extract_bit_field,
11213         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
11214         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
11215         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
11216         * expr.c (convert_move, emit_group_load, emit_group_store,
11217         expand_assignment, store_constructor, store_field,
11218         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
11219         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
11220         invert_truthvalue, optimize_bit_field_compare,
11221         decode_field_reference, all_ones_mask_p, constant_boolean_node,
11222         fold_div_compare, fold, fold_read_from_constant_string,
11223         fold_negate_const, fold_abs_const, fold_not_const, round_up,
11224         round_down): Likewise.
11225         * function.c (assign_parm_setup_block): Likewise.
11226         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
11227         Likewise.
11228         * stor-layout.c (layout_type, initialize_sizetypes,
11229         set_min_and_max_values_for_integral_type): Likewise.
11230         * tree-chrec.c (chrec_fold_multiply_poly_poly,
11231         reset_evolution_in_loop): Likewise.
11232         * tree-chrec.h (build_polynomial_chrec): Likewise.
11233         * tree-complex.c (build_replicated_const): Likewise.
11234         * tree-eh.c (honor_protect_cleanup_actions,
11235         lower_try_finally_onedest, lower_try_finally_copy,
11236         lower_try_finally_switch): Likewise.
11237         * tree-mudflap.c (mf_build_string, mx_register_decls,
11238         mudflap_register_call, mudflap_enqueue_constant): Likewise.
11239         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
11240         * tree-pretty-print.c (dump_generic_node): Likewise.
11241         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
11242         Likewise.
11243         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
11244         * tree-ssa-loop-niter.c (number_of_iterations_cond,
11245         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
11246         Likewise.
11247         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
11248         canonicalize_loop_induction_variables): Likewise.
11249         * tree-vectorizer.c (vect_create_index_for_array_ref,
11250         vect_transform_loop_bound, vect_compute_data_ref_alignment):
11251         Likewise.
11252
11253         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
11254         alpha_gimplify_va_arg_1): Likewise.
11255         * config/arm/arm.c (arm_get_cookie_size): Likewise.
11256         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
11257         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
11258         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
11259         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
11260         mips_gimplify_va_arg_expr): Likewise.
11261         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11262         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
11263         add_compiler_branch_island): Likewise.
11264         * config/s390/s390.c (s390_va_start): Likewise.
11265         * config/sh/sh.c (sh_va_start): Likewise.
11266         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
11267         Likewise.
11268         * config/xtensa/xtensa.c (xtensa_va_start,
11269         xtensa_gimplify_va_arg_expr): Likewise.
11270
11271         * objc/objc-act.c (build_objc_string_object,
11272         build_objc_symtab_template, init_def_list, init_objc_symtab,
11273         init_module_descriptor, generate_static_references,
11274         build_selector_translation_table, get_proto_encoding,
11275         build_typed_selector_reference, build_selector_reference,
11276         build_next_objc_exception_stuff,
11277         build_method_prototype_list_template, generate_descriptor_table,
11278         generate_protocols, build_protocol_initializer,
11279         build_ivar_list_template, build_method_list_template,
11280         build_ivar_list_initializer, generate_ivars_list,
11281         generate_dispatch_table, generate_protocol_list,
11282         build_category_initializer, build_shared_structure_initializer,
11283         generate_shared_structures, handle_impent,
11284         generate_objc_image_info): Likewise.
11285
11286 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
11287
11288         * cfglayout.c (duplicate_insn_chain): Remove references to
11289         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
11290         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
11291         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
11292         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
11293         and NOTE_INSN_LOOP_CONT.
11294         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
11295         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
11296         and NOTE_INSN_LOOP_CONT.
11297         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
11298         check_dbra_loop, loop_dump_aux): Remove references to removed notes
11299         and fields.
11300         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
11301         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
11302         references to removed notes and fields.
11303         (subtract_reg_term, ujump_to_loop_cont): Remove.
11304
11305 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
11306
11307         * doc/install.texi: Document that libcpp does not require
11308         Automake any longer.  Document that Automake 1.9.1 should
11309         work everywhere.
11310
11311 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
11312
11313         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
11314         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
11315         DWARF_DEBUGGING_INFO from choice-of-definition chain;
11316         restructure using C89 features (#elif, #error).
11317         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
11318         * config/sh/sh.h: Remove references to DWARF_DEBUG.
11319         * doc/invoke.texi: Remove references to DWARF version 1;
11320         clarify why -gdwarf-2<n> doesn't work.
11321
11322 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
11323
11324         * basic-block.h (BB_SET_PARTITION): Clear old value first.
11325         * cfg.c (clear_bb_flags): Don't clear partition setting.
11326         * ifcvt.c (find_if_case_1): Remove ??? comment.
11327
11328 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
11329
11330         PR target/17052
11331         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
11332         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
11333         current_function_stdarg in place of sysv_varargs_p.
11334         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
11335         sysv_varargs_p.
11336
11337 2004-08-24  Richard Henderson  <rth@redhat.com>
11338
11339         PR target/16298
11340         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
11341         random codes within CONST.
11342
11343 2004-08-24  James E Wilson  <wilson@specifixinc.com>
11344
11345         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
11346         -freorder-blocks-and-partition.
11347
11348 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11349
11350         PR middle-end/17044
11351         * tree-ssa-threadupdate.c (redirection_data): Make static.
11352         (thread_block): Use ggc_alloc_cleared to allocate struct
11353         redirection_data.  Don't free elements in redirection_data.
11354
11355 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
11356
11357         * config/mips/predicates.md (small_data_pattern): Match prefetches.
11358
11359 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11360
11361         PR tree-optimization/17016
11362         * tree-ssa-loop-niter.c (number_of_iterations_cond,
11363         number_of_iterations_exit): Use POINTER_TYPE_P instead
11364         of testing for POINTER_TYPE.
11365
11366 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11367
11368         * tree-ssa-loop-ivcanon.c: New file.
11369         * tree-ssa-loop-manip.c (create_iv): New function.
11370         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
11371         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
11372         * cfgloop.c (mark_single_exit_loops): New function.
11373         (verify_loop_structure): Verify single-exit loops.
11374         * cfgloop.h (struct loop): Add single_exit field.
11375         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
11376         (mark_single_exit_loops): Declare.
11377         (tree_num_loop_insns): Declare.
11378         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
11379         (duplicate_loop_to_header_edge): Use it.
11380         * common.opt (fivcanon): New flag.
11381         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
11382         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
11383         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
11384         (bsi_insert_on_edge_immediate): New function.
11385         * tree-flow.h (bsi_insert_on_edge_immediate,
11386         canonicalize_induction_variables, tree_unroll_loops_completely,
11387         create_iv): Declare.
11388         * tree-optimize.c (init_tree_optimization_passes): Add
11389         pass_iv_canon and pass_complete_unroll.
11390         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
11391         * tree-scalar-evolution.c (get_loop_exit_condition,
11392         get_exit_conditions_rec, number_of_iterations_in_loop,
11393         scev_initialize): Use single_exit information.
11394         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
11395         missing assumptions.
11396         (loop_niter_by_eval):  Return number of iterations as unsigned
11397         int.
11398         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
11399         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
11400         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
11401         New passes.
11402         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
11403         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
11404         the defining statement is ready.
11405         * tree-vectorizer.c (vect_create_iv_simple): Removed.
11406         (vect_create_index_for_array_ref, vect_transform_loop_bound):
11407         Use create_iv.
11408         (vect_transform_loop_bound): Use single_exit information.
11409         (vect_analyze_loop_form): Cleanup bogus tests.
11410         (vectorize_loops): Do not call flow_loop_scan.
11411         * tree.h (may_negate_without_overflow_p): Declare.
11412         * fold-const.c (may_negate_without_overflow_p): Split out from ...
11413         (negate_expr_p): ... this function.
11414         (tree_expr_nonzero_p): Handle overflowed constants correctly.
11415         * doc/invoke.texi (-fivcanon): Document.
11416         * doc/passes.texi: Document canonical induction variable creation.
11417
11418 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
11419
11420         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
11421         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
11422         using the mode of the operand to decide between them.
11423         * config/mips/mips.md (MOVECC): New mode macro.
11424         (ccreg): New mode attribute.
11425         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
11426         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
11427         (mov[sd]icc): Redefine using :GPR.
11428
11429 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
11430
11431         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
11432         (mips_prefetch_cookie): New function.
11433         * config/mips/mips.c (print_operand_address): Fix handling of
11434         ADDRESS_CONST_INT.
11435         (mips_emit_prefetch): Delete.
11436         (mips_prefetch_cookie): New function.
11437         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
11438         mode of QImode for the address_operand.  Use mips_prefetch_cookie
11439         to calculate the first "pref" operand.
11440         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
11441         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
11442
11443 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
11444
11445         * arm.md: Include predicates.md.
11446         * predicates.md: New file.
11447         * arm.c (s_register_operand, arm_hard_register_operand)
11448         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
11449         (arm_immediate_operand, arm_neg_immediate_operand)
11450         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
11451         (arm_add_operand, arm_addimm_operand, arm_not_operand)
11452         (offsettable_memory_operand, alignable_memory_operand)
11453         (arm_reload_memory_operand, arm_float_rhs_operand)
11454         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
11455         (index_operand, shiftable_operator, logical_binary_operator)
11456         (shift_operator, equality_operator, arm_comparison_operator)
11457         (minmax_operator, cc_register, dominant_cc_register)
11458         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
11459         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
11460         (const_shift_operand, load_multiple_operation)
11461         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
11462         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
11463         (cirrus_register_operand, cirrus_fp_register)
11464         (cirrus_shift_const): Delete, replaced with equivalents in
11465         predicates.md.
11466         (shift_op): Handle ROTATE.
11467         * arm-protos.h: Delete declarations for above.
11468         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
11469         * t-arm (MD_INCLUDES): Add predicates.md.
11470         (s-preds): Depends on MD_INCLUDES.
11471
11472 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
11473
11474         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
11475         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
11476         patterns.  Redefine using :GPR.  Give the match_operator a mode.
11477         Use '%2' rather than '%z2' for operand 2.
11478
11479 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
11480
11481         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
11482         attribute.
11483
11484 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
11485
11486         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
11487         of internal patterns.
11488         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
11489         Redefine using :P.
11490         (tablejump): Use expand_binop to calculate address.  Adjust names
11491         of internal patterns.
11492         (tablejump[sd]i): Renamed from tablejump_internal[12].
11493         Redefine using :P.
11494         (tablejump_mips16[12]): Delete.
11495
11496 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
11497
11498         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
11499         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
11500         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
11501         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
11502         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
11503
11504 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
11505
11506         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
11507         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
11508         using :GPR.
11509         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
11510         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
11511         (*branch_equality[sd]i_inverted): Likewise
11512         branch_equality{,_di}_inverted.
11513         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
11514         Redefine using :GPR.
11515
11516 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
11517
11518         * rtl.def: Reorganize, placing all codes used only in machine
11519         descriptions at the end.
11520
11521         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
11522         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
11523         rtx_name, rtx_format arrays by direct reference to rtl.def,
11524         first undefining GENERATOR_FILE.  Define enum insn_note and
11525         note_insn_name array by direct reference to insn-notes.def.
11526         (adjust_field_rtx_def): Remove local definition of rtx_name.
11527         Use symbolic names for insn notes.
11528         * Makefile.in (gengtype.o): Update dependencies.
11529
11530 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
11531
11532         * basic-block.h (struct basic_block_def): Reorder fields to
11533         eliminate interior padding.  Remove 'partition' field.
11534         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
11535         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
11536         (BB_COPY_PARTITION): New macros.
11537         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
11538         Replace all references to the 'partition' field of a basic
11539         block with new macros.
11540
11541         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
11542         * final.c (final_scan_insn): Don't handle it.
11543         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
11544         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
11545         * sched-rgn.c (sched_is_disabled_for_current_region_p):
11546         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
11547
11548 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
11549
11550         * c-decl.c (c_init_decl_processing): Adjust
11551         build_common_tree_nodes call.
11552         * expmed.c (const_mult_add_overflow_p): Use
11553         build_distinct_type_copy.
11554         * stor-layout.c (early_type_list): Remove.
11555         (layout_type): Don't append to early_type_list.
11556         (initialize_sizetypes): Add signed_p argument.
11557         (set_sizetype): Overwrite the stub type nodes directly.
11558         * tree.c (copy_node_stat): Clear a type's value cache here ...
11559         (build_distinct_type): ... not here.
11560         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
11561         * tree.h (initialize_sizetypes): Add signed_p argument.
11562         (build_common_tree_nodes): Likewise.
11563
11564         * objc/objc-act.c (get_static_reference): Use
11565         build_variant_type_copy.
11566         (get_protocol_reference): Likewise.
11567         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
11568
11569 2004-08-24  Richard Henderson  <rth@redhat.com>
11570             Andrew Pinski  <apinski@apple.com>
11571
11572         * gimplify.c (gimplify_array_ref_to_plus): Delete.
11573         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
11574         for ARRAY_REF.
11575
11576         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
11577         ARRAY_REF also to get to the STRING_CST.
11578
11579 2004-08-24  Paul Brook  <paul@codesourcery.com>
11580
11581         * config/arm/arm.c (arm_override_options): Update error message.
11582         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
11583         TARGET_HARD_FLOAT_ABI.
11584         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
11585         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
11586
11587 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
11588
11589         PR target/17093
11590         * config/m32r.md (movsi_sda): Add SI mode specification to
11591         UNSPEC.
11592
11593 2004-08-24  Nick Clifton  <nickc@redhat.com>
11594
11595         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
11596         of seth_add3_operand.
11597
11598 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
11599
11600         * Makefile.in (PROTO_OBJS): Add errors.o.
11601         * protoize.c (fancy_abort): Remove.
11602         * mips-tfile.c (fancy_abort): Add parameters.
11603
11604 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
11605
11606         * doc/trouble.texi (C++ misunderstandings): Fix example code.
11607
11608 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
11609
11610         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
11611         (host-default.o): Add dependency on HOOKS_H.
11612         * config/x-linux: Likewise.
11613         * config/x-solaris: Likewise.
11614         * config/i386/x-mingw32: Likewise.
11615         * config/rs6000/x-darwin: Likewise.
11616
11617 2004-08-23  James E Wilson  <wilson@specifixinc.com>
11618
11619         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
11620         DEF_REG_NOTE.
11621
11622 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
11623
11624         PR c/14492
11625         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
11626
11627 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
11628
11629         * cfg.c (check_bb_profile): Fix typos.
11630         * function.c (assign_parm_is_stack_parm): Likewise.
11631         * tree-nested.c: Likewise.
11632
11633 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
11634
11635         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
11636         Remove TYPECODE.
11637         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
11638
11639 2004-08-23  Eric Christopher  <echristo@redhat.com>
11640
11641         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
11642         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
11643         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
11644         * target.h: Ditto.
11645         * hooks.h: Include machmode.h.
11646         (hook_bool_mode_false): Declare.
11647         * hooks.c (hook_bool_mode_false): Define.
11648         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
11649         * stor-layout.c (layout_type): Ditto.
11650         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
11651         Define to target macro.
11652         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
11653         * config/arm/arm.c: Ditto. Use.
11654         * config/arm/arm.h: Ditto.
11655         * config/arm/arm-protos.h: Ditto.
11656         * config/i386/i386.c: Ditto.
11657         * config/i386/i386.h: Ditto.
11658         * config/rs6000/rs6000.c: Ditto.
11659         * config/rs6000/rs6000.h: Ditto.
11660         * config/sh/sh.c: Ditto.
11661         * config/sh/sh.h: Ditto.
11662         * config/sh/sh-protos.h: Ditto.
11663         * config/sh/sh.md: Use.
11664         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
11665         to TARGET_VECTOR_MODE_SUPPORTED_P.
11666
11667 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
11668
11669         * Makefile.in (BUILD_ERRORS): Set to build-errors.
11670         (errors.o): New target for host.
11671         (build-errors.o): New target for build.
11672         (genobjs): Replace errors.o with build-errors.
11673         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
11674         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
11675         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
11676         (fix-header.o): Add errors.h
11677         * collect2.c (fancy_abort): Add parameters.
11678         * collect2.h (fancy_abort): Don't declare.
11679         * errors.h (fancy_abort): Don't declare.
11680         * errors.c: Include either bconfig.h or config.h.
11681         (fancy_abort): Trim filename.
11682         * fix-header.c (v_fatal, fatal): Remove.
11683         (progname): Remove definition.
11684         (main): Set progname here.
11685         * gcc.c (fancy_abort): Add parameters.
11686         * gcc.h (fancy_abort): Remove declaration.
11687         * gcov.c (fancy_abort): Remove.
11688         * rtl.h (fancy_abort): Don't declare.
11689         (abort): Don't define.
11690         * tree.h (fancy_abort): Don't declare.
11691         (abort): Don't define.
11692         * system.h (fancy_abort): Declare.
11693         (abort): Define to fancy_abort.
11694         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
11695
11696         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
11697         (usize_type, ubitsizetype): Remove.
11698         * stor-layout.c (set_sizetype): Don't initialize usizetype,
11699         ubitsizetype.
11700         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
11701
11702         * tree.h (build_distinct_type_copy): New.
11703         (build_type_copy): ... here.  Rename to ...
11704         (build_variant_type_copy): ... here.
11705         * tree.c (build_qualified_type): Rename build_type_copy call.
11706         (build_distinct_type_copy): New, broken out of ...
11707         (build_type_copy): ... here.  Rename to ...
11708         (build_variant_type_copy): ... here.  Use
11709         build_distinct_type_copy.
11710         (build_common_tree_nodes_2): Rename build_type_copy call.
11711         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
11712         call.
11713         (handle_packed_attribute, handle_unused_attribute,
11714         handle_transparanet_union_attribute, handle_aligned_attribute,
11715         handle_deprecated_attribute): Likewise.
11716         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
11717         Likewise.
11718         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
11719         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
11720         build_distinct_type_copy.
11721
11722 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11723
11724         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
11725         attribute.
11726
11727 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11728
11729         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
11730         loads and stores.
11731         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
11732         formerly unnamed patterns.  Redefine using :P for the address.  Remove
11733         explicit length attributes.
11734
11735 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11736
11737         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
11738         New functions.
11739         (single_reachable_address): Use them.
11740         (schedule_sm): Add dump.
11741         (is_call_clobbered_ref): New function.
11742         (determine_lsm_reg): Check whether the reference is call clobbered.
11743         Only work for gimple_reg_type values.
11744
11745 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11746
11747         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
11748         $31 store insns.  Redefine using :GPR.
11749
11750 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11751
11752         * config/mips/mips.md (P): New mode macro.
11753         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
11754         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
11755         Add mode attributes.
11756
11757 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11758
11759         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
11760         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
11761         later constants to cover the gap.
11762         (load, store): New mode attributes.
11763         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
11764         Use new unspec constants.
11765
11766 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11767
11768         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
11769         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
11770         to use register_operand rather than uns_arith_operand as the predicate
11771         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
11772         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
11773         Redefine using :GPR.  Make same predicate change here.  Extend the
11774         commutativity of operands 1 and 2 from the SImode version to the
11775         DImode one.
11776         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
11777         but with no predicate changes.
11778         (*nor[sd]i3): Redefine using :GPR.
11779
11780 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11781
11782         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
11783         noreturn functions.
11784
11785 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11786
11787         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
11788         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
11789         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
11790         rather than "%z2" (with a fake const0_rtx for operand 2).
11791         (ffs[sd]i2): Redefine using :GPR.
11792         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
11793
11794 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11795
11796         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
11797
11798 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11799
11800         * config/mips/mips.md (any_extend): New code macro.
11801         (u, su): New code attributes.
11802         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
11803         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
11804         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
11805         (*{s,u}mul_acc_di): Redefine using any_extend.
11806         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
11807         to reflect real insn names.
11808         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
11809         with an any_extend template.
11810         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
11811         Add '*' to name.
11812
11813 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11814
11815         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
11816         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
11817         (mul[sd]i3_r4000): Redefine using :GPR.
11818         (mulsi3_mult3): Don't check TARGET_MAD separately.
11819         (muldi3_mult3): Moved after mulsi_mult3.
11820
11821 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11822
11823         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
11824         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
11825         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
11826         (TARGET_GAS, TARGET_MIPS_AS): Delete.
11827         (TARGET_GPWORD): Define to true for n32 on IRIX.
11828         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
11829         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
11830         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
11831         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
11832         (MDEBUG_ASM_SPEC): Delete, folding into...
11833         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
11834         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
11835         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
11836         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
11837         to define asm_abi_default_spec.
11838         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
11839         (TARGET_ASM_SELECT_SECTION): Delete.
11840         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
11841         for non-mips16 code, removing previous workaround for SGI assemblers.
11842         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
11843         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
11844         (override_options): Remove !TARGET_GAS and !have_named_sections code.
11845         (print_operand): Fold TARGET_GAS conditionals into asm strings.
11846         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
11847         ASM_STABS_OP and ASM_STABN_OP.
11848         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
11849         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
11850         (mips_output_function_prologue): Remove !TARGET_GAS code.
11851         (mips_select_rtx_section): Remove !have_named_sections code.
11852         (mips_select_section): Delete.
11853         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
11854         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
11855         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
11856         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
11857         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
11858         * config/mips/windiss.h (ASM_SPEC): Likewise.
11859
11860 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11861
11862         * read-rtl.c (map_value, mapping, macro_group): New structures.
11863         (BELLWETHER_CODE): New macro.
11864         (modes, codes, bellwether_codes): New variables.
11865         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
11866         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
11867         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
11868         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
11869         (add_map_value, initialize_macros): New functions.
11870         (def_hash, def_hash_eq_p): Generalize to anything that points to,
11871         or starts with, a char * field.
11872         (find_macro, read_mapping, check_code_macro): New functions.
11873         (read_rtx_1): New, split out from read_rtx.  Handle the new
11874         define_{mode,code}_{macro,attr} constructs.  Use find_macro
11875         to parse the name of a code or mode.  Use BELLWETHER_CODE to
11876         extract the format and to choose a suitable code for rtx_alloc.
11877         Modify recursive invocations to use read_rtx_1.
11878         (read_rtx): Call initialize_macros.  Apply code and mode macros
11879         to the rtx returned by read_rtx_1.  Cache everything after the
11880         first macro expansion for subsequent read_rtx calls.
11881         * doc/md.texi: Document new .md constructs.
11882         * config/mips/mips.md (GPR): New mode macro.
11883         (d, si8_di5): New mode attributes.
11884         (any_cond): New code macro.
11885         (add[sd]i3): Redefine using :GPR.
11886         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
11887         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
11888         previously unnamed MIPS16 patterns.
11889         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
11890         lines.  Don't match (plus (const_int 0) ...).
11891         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
11892         Use a define_split to generate the addition.
11893         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
11894         (subsi3_internal): Delete.
11895         (*subsi3_extended): Renamed from subsi3_internal_2.
11896         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
11897         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
11898         using an any_cond template.
11899
11900 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11901
11902         * read-rtl.c (read_rtx): Tidy use of format_ptr.
11903
11904 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
11905
11906         * read-rtl.c (string_obstack): New file-scope variable.
11907         (read_string, read_quoted_string, read_braced_string)
11908         (read_escape): Remove obstack parameter and use string_obstack instead.
11909         (read_rtx): Remove function-local rtl_obstack and initialize
11910         string_obstack instead.  Update call to read_string.
11911
11912 2004-08-22  Andrew Pinski  <apinski@apple.com>
11913
11914         PR c/15262
11915         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
11916         expression is not constant.
11917         (c_finish_return): Do not go through INDIRECT_REF when looking
11918         for the inner expression of an ADDR_EXPR for warning about.
11919
11920 2004-08-22  Richard Henderson  <rth@redhat.com>
11921
11922         PR 17075
11923         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
11924         create new blocks and fall through.
11925         (expand_gimple_basic_block): Update to match.
11926
11927 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
11928
11929         * reload.c (find_reloads_address): Make return value tri-state.
11930         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
11931         (find_reloads): Assume that reloaded addresses match 'o' or
11932         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
11933         returned 1 (not -1).  Omit optional reloads for address operands
11934         only if find_reloads_address returned 1 (not -1).
11935
11936         * config/s390/s390.c (legitimize_reload_address): New function.
11937         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
11938         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
11939         legitimize_reload_address.
11940
11941 2004-08-22  Richard Hendersion  <rth@redhat.com>
11942
11943         * tree.h (SAVE_EXPR_RESOLVED_P): New.
11944         * gimplify.c (gimplify_save_expr): Use it.
11945         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
11946         on the temporary variable.
11947
11948 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
11949
11950         * fold-const.c (rtl_expr_nonnegative_p): Delete.
11951         * tree.h (rtl_expr_nonnegative_p): Remove.
11952
11953 2004-08-22  Steven Bosscher  <stevenb@suse.de>
11954
11955         * config/i386/ppro.md (ppro_complex_insn): Add missing check
11956         for cpu==pentiumpro.
11957
11958         * combine.c (struct reg_stat): Fix comment typo.
11959
11960 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
11961
11962         * c-tree.h (c_sizeof_nowarn): Remove.
11963
11964 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
11965
11966         * c-decl.c (set_array_declarator_type): Rename to
11967         set_array_declarator_inner.
11968         (build_c_parm, build_attrs_declarator, build_function_declarator):
11969         New functions.
11970         (make_pointer_declarator): Call build_attrs_declarator.
11971         * c-tree.h (set_array_declarator_type): Rename to
11972         set_array_declarator_inner.
11973         (build_c_parm, build_attrs_declarator, build_function_declarator):
11974         New prototypes.
11975         * c-parse.in (after_type_declarator,
11976         parm_declarator_starttypename, parm_declarator_nostarttypename,
11977         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
11978         firstparm): Use these functions
11979
11980 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
11981
11982         * c-decl.c (build_array_declarator, set_array_declarator_type,
11983         start_decl, grokdeclarator, grokparms): Change boolean parameters
11984         to type bool.
11985         * c-tree.h (build_array_declarator, set_array_declarator_type,
11986         start_decl): Update prototypes.
11987         * c-decl.c, c-parse.in: All callers changed.
11988
11989 2004-08-21  Mike Stump  <mrs@apple.com>
11990
11991         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
11992         (darwin_fix_and_continue): Likewise.
11993         (darwin_fix_and_continue_switch): Likewise.
11994         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
11995         (darwin_fix_and_continue): Likewise.
11996         (darwin_fix_and_continue_switch): Likewise.
11997
11998 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
11999
12000         PR  c++/16030
12001         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
12002         Remove, merging into ...
12003         (gen_stdcall_or_fastcall_suffix): New function, returning tree
12004         rather than const char*, and accepting additional parameter.
12005         Don't add suffix to '*'-prefixed symbols or variadic functions.
12006         (i386_pe_encode_section_info): Adjust for call to new function.
12007         Call change_decl_assembler_name.
12008
12009 2004-08-20  Mike Stump  <mrs@apple.com>
12010
12011         * config/darwin.c (machopic_indirect_data_reference): Mark
12012         stubs as defined.
12013         * config/386/386.c (darwin_local_data_pic): Add.
12014         (legitimate_constant_p): Reorder so that PLUS handling runs
12015         before darwin_local_data_pic to match the ordering in
12016         legitimate_pic_address_disp_p and so that MINUS runs after
12017         darwin_local_data_pic as otherwise the darwin_local_data_pic
12018         logic can be skipped, which would be very bad.
12019         (legitimate_pic_address_disp_p): Move from from here to
12020         darwin_local_data_pic so it can be reused.
12021
12022 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
12023
12024         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
12025         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
12026         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
12027         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
12028         (RS6000_ABI_NAME): Define as "linux".
12029         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
12030         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
12031         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
12032         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
12033         * config/rs6000/rs6000.c (dot_symbols): New global var.
12034         (rs6000_output_function_entry): New function, modified for
12035         !DOT_SYMBOLS..
12036         (print_operand <case 'z'>): ..extracted from here.
12037         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
12038         (rs6000_output_function_epilogue): Likewise.
12039         (rs6000_elf_declare_function_name): Likewise.
12040         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
12041         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
12042         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
12043         * configure: Regenerate.
12044         * config.in: Regenerate.
12045
12046 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
12047
12048         * reload.c (find_reloads_address): Fix thinko in previous change.
12049
12050         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
12051         a CONST_INT.
12052
12053 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
12054
12055         PR rtl-optimization/17099
12056         * combine.c (force_to_mode): Check if inner_mask has any bits set
12057         outside of GET_MODE (x) instead of op_mode.
12058
12059 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
12060
12061         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
12062         fragment.
12063         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
12064         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
12065         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
12066         architecture.
12067         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
12068         configurations.
12069         * config/arm/t-symbian: New file.
12070
12071 2004-08-20  Andrew Pinski  <apinski@apple.com>
12072
12073         * regrename.c (kill_value_regno): ANSIfy.
12074
12075 2004-08-20  Dale Johannesen  <dalej@apple.com>
12076
12077         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
12078
12079 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
12080
12081         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
12082         (kill_value_regno): New function, derived from kill_value.
12083         (kill_value): Update.
12084         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
12085
12086 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
12087
12088         Fix PR tree-optimization/17111
12089         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
12090         of non-value_handles.
12091         (bitmap_set_contains): All constants are in every set.
12092
12093 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
12094
12095         * fold-const.c (round_up, round_down): Use build_int_cst.
12096         Optimize common case.
12097
12098 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
12099             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12100
12101         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
12102         one_only_data_section): Rename to som_readonly_data_section,
12103         som_one_only_readonly_data_section and som_one_only_data_section.
12104         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
12105         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
12106         conditional defines.
12107         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
12108         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
12109         string values.
12110         (pa_select_section): Use renamed section functions.
12111         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
12112         SOM_READONLY_DATA_SECTION_FUNCTION,
12113         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
12114         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
12115         Define here ...
12116         * config/pa/som.h: ... not here.
12117         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
12118         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
12119         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
12120         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
12121         (READONLY_DATA_SECTION): Use som_readonly_data_section.
12122
12123 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
12124
12125         * fold-const.c (int_const_binop): Don't generate non-overflowing
12126         size-types specially.
12127         (fold_convert_const): Likewise.
12128
12129         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
12130         clear cache on copied sizetype.
12131
12132 2004-08-20  Ben Elliston  <bje@au.ibm.com>
12133
12134         * configure.ac: Don't escape apostrophe in --enable-coverage help.
12135         * configure: Regenerate.
12136
12137 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
12138
12139         PR 5620
12140         * gcc.c (struct stat input_stat): Don't define if
12141         HOST_LACKS_INODE_NUMBERS
12142         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
12143         than stat to determine if temp file is same as input file.
12144         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
12145         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
12146
12147 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
12148
12149         * configure.ac (mips*-*-*): Print an error if not using GAS.
12150         * configure: Regenerated.
12151         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
12152         comments about buggy MIPSpro assemblers.
12153         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
12154         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
12155         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
12156         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
12157         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
12158         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
12159         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
12160         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
12161         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
12162         of more general IRIX 6 definitions.
12163         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
12164         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
12165         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
12166         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
12167         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
12168         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
12169         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
12170         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
12171         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
12172         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
12173         (LINK_SPEC): Move most of definition to iris.h.
12174         (SUBTARGET_LINK_SPEC): New macro.
12175         (IRIX_STARTFILE_SPEC): Fold into...
12176         (STARTFILE_SPEC): ...here.
12177         (IRIX_ENDFILE_SPEC): Fold into...
12178         (ENDFILE_SPEC): ...here.
12179         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
12180         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
12181         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
12182         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
12183         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
12184         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
12185         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
12186         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
12187         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
12188         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
12189         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
12190         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
12191         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
12192         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
12193         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
12194         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
12195         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
12196         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
12197         (TARGET_IRIX6): Define to 1.
12198         (DRIVER_SELF_SPECS): Define.
12199         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
12200         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
12201         (SUBTARGET_LINK_SPEC): New macro.
12202         (IRIX_STARTFILE_SPEC): Fold into...
12203         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
12204         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
12205         (LIB_SPEC, LIBGCC_SPEC): Use them.
12206         (LIB_SPEC): Remove !mabi=* case.
12207         (IRIX_ENDFILE_SPEC): Fold into...
12208         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
12209         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
12210         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
12211         (TARGET_IRIX6): New macro.
12212         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
12213         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
12214         (LABEL_AFTER_LOC): Delete.
12215         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
12216         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
12217         (mips_build_builtin_va_list): Check TARGET_IRIX6.
12218         (override_options): Remove TARGET_SGI_O32_AS-related code.
12219         (irix_output_external_libcall): Make static.
12220         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
12221         LABEL_AFTER_LOC.
12222         (mips_file_start): Tidy guard for ABI sections.  Remove use of
12223         ABICALLS_ASM_OP; use .abicalls instead.
12224         (mips_output_aligned_decl_common, mips_declare_object_name)
12225         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
12226         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
12227         .globl foo .text directives.
12228         (irix_asm_named_section_1, irix_asm_named_section)
12229         (irix_section_align_entry, irix_section_align_htab)
12230         (irix_orig_asm_out_file, irix_section_align_entry_eq)
12231         (irix_section_align_entry_hash, irix_asm_output_align)
12232         (irix_file_start, irix_section_align_1, copy_file_data)
12233         (irix_file_end, irix_section_type_flags): Delete.
12234         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
12235         Use standard section syntax.  Remove protective "jr $31".
12236         (__gcc_fini): Likewise .gcc_fini.
12237         * config/mips/irix-crtn.asm: Adjust sections accordingly.
12238         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
12239         iris5gas.h.
12240         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
12241         from t-irix-gld.
12242         (EXTRA_MULTILIB_PARTS): Define.
12243         * config/mips/t-iris6: Remove bogus comment.
12244         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
12245         * config/mips/iris5gas.h, config/mips/iris5gld.h,
12246         config/mips/iris6gas.h, config/mips/iris6gld.h,
12247         config/mips/t-iris5-as, config/mips/t-iris5-gas
12248         config/mips/t-irix-gld: Delete.
12249         * config/mips/iris.h: New file.
12250         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
12251
12252 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
12253
12254         * postreload.c (reload_cse_move2add): Allow any condjump, but check
12255         that the implicit set isn't clobbered in the jump insn.
12256
12257 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
12258
12259         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
12260         * optabs.c (init_optabs): Don't check it.
12261         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
12262         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
12263
12264 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
12265
12266         * config/s390/s390.md (s390_warn_framesize_string)
12267         (s390_warn_dynamic_string, s390_stack_size_string)
12268         (s390_stack_guard_string): New global string variables.
12269         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
12270         (s390_stack_guard): New global variables.
12271         (override_options): Added checks for the new options.
12272         (s390_emit_prologue): Emit stack check and trap code and perform
12273         compile time stack size checking.
12274
12275         * config/s390/s390.h (TARGET_OPTIONS): Added new options
12276         "warn-framesize", "warn-dynamicstack", "stack-size" and
12277         "stack-guard".
12278
12279         * doc/invoke.texi: Added documentation for the new options.
12280
12281 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
12282
12283         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
12284         to eliminate warning.
12285         (linear_search_fdes): Declare p as unsigned.
12286         (binary_search_mixed_encoding_fdes): Likewise.
12287         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
12288         to eliminate warning.
12289         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
12290         type cast.
12291
12292 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
12293
12294         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
12295         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
12296         instead of one.  Check for strictly legitimate address.
12297         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
12298         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
12299
12300 2004-08-19  Eric Christopher  <echristo@redhat.com>
12301
12302         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
12303         * langhooks.h (unsave_expr_now): Ditto.
12304         * tree.h (unsave_expr_1): Remove prototype.
12305         (lhd_unsave_expr_now): Rename to unsave_expr_now.
12306         * tree-inline.c (unsave_expr_1): Move here
12307         from tree.c. Make static.
12308         (unsave_expr_now): Rename from lhd_unsave_expr_now.
12309         * tree-sra.c: Fix up for rename.
12310         * tree-ssa-copy.c: Ditto.
12311         * tree-eh.c: Ditto.
12312         * tree.c (unsave_expr_1): Move to tree-inline.c.
12313
12314 2004-08-19  Caroline Tice  <ctice@apple.com>
12315
12316         * config/i386/cygming.h (switch_to_section):  Fix typo (change
12317         in_unlikely_text_section to in_unlikely_executed_text).
12318
12319 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
12320
12321         * vec.h (VEC_lower_bound): New macro.
12322
12323 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
12324
12325         PR target/16446
12326         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
12327         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
12328         treat each ABI separately.  Deal with n32/n64 complex float arguments.
12329         (function_arg): Add associated complex handling here.
12330
12331 2004-08-19  Richard Henderson  <rth@redhat.com>
12332
12333         * config/arm/arm.c (arm_gen_load_multiple): Use
12334         adjust_automodify_address.  Take base memory and offset instead
12335         of unchanging/struct/scalar bits.
12336         (arm_gen_store_multiple): Likewise.
12337         (arm_gen_movmemqi): Use adjust_automodify_address.
12338         * config/arm/arm-protos.h: Update decls.
12339         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
12340         (store_multiple): Similarly.
12341
12342 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
12343
12344         * regclass.c (globalize_reg): Update call_really_used_regs.
12345
12346 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
12347
12348         * doc/invoke.texi (integer-share-limit): Document.
12349
12350         * tree.h (TYPE_CACHED_VALUES_P): New.
12351         (TYPE_CACHED_VALUES): New.
12352         (TYPE_ORIG_SIZE_TYPE): Adjust.
12353         * tree.def (INTEGER_CST): Update documentation.
12354         * tree.c: Inlcude params.h.
12355         (build_int_cst): Cache small values.
12356         (build_type_copy): Do not copy the value cache.
12357         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
12358         unneeded zeroing.
12359         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
12360         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
12361         cache.
12362         * fold-const.c (force_fit_type): Copy value when setting
12363         overflows.
12364         (int_const_binop): Likewise.
12365         * stor-layout.c: Include params.h
12366         (set_sizetype): Create values cache.
12367         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
12368         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
12369         * params.h (INTEGER_SHARE_LIMIT): New.
12370         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
12371
12372 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
12373
12374         * gimplify.c (gimplify_minimax_expr): Remove.
12375         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
12376
12377 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
12378
12379         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
12380         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
12381
12382 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
12383
12384         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
12385
12386 2004-08-18  Andrew Pinski  <apinski@apple.com>
12387
12388         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
12389
12390 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
12391
12392         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
12393         (__aeabi_ul2f): Likewise.
12394
12395 2004-08-18  Richard Henderson  <rth@redhat.com>
12396
12397         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
12398         move to rtl completely.
12399         (struct meminsnbuf, xtensa_emit_block_move): Remove.
12400         (xtensa_find_mode_for_size): Remove.
12401         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
12402         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
12403
12404 2004-08-18  Richard Henderson  <rth@redhat.com>
12405
12406         * config/mcore/mcore.c (mode_from_align): Remove DImode.
12407         (block_move_sequence): Rewrite to use adjust_address.
12408         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
12409         Return boolean indicating success/failure.
12410         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
12411         * config/mcore/mcore.md (movmemsi): Update to match.
12412
12413 2004-08-18  Mike Stump  <mrs@apple.com>
12414
12415         * doc/invoke.texi (-mfix-and-continue): Add support for
12416         fast turn around debugging.
12417         (-ffix-and-continue): Likewise.
12418         (-mindirect-data): Likewise.
12419         (-findirect-data): Likewise.
12420         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
12421         (indirect_data): Likewise.
12422         (machopic_data_defined_p): Likewise.
12423         (machopic_output_indirection): Likewise.
12424         (darwin_encode_section_info): Likewise.
12425         (darwin_fix_and_continue): Likewise.
12426         (darwin_fix_and_continue_switch): Likewise.
12427         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
12428         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
12429         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
12430         (SUBTARGET_OPTIONS): Likewise.
12431         (darwin_fix_and_continue): Likewise.
12432         (darwin_fix_and_continue_switch): Likewise.
12433         (TARGET_FIX_AND_CONTINUE): Likewise.
12434         * config/rs6000.c (rs6000_emit_prologue): Likewise.
12435
12436 2004-08-19  Steven Bosscher  <stevenb@suse.de>
12437
12438         * basic-block.h (struct edge_def): Remove crossing_edge.
12439         (EDGE_CROSSING): New define.
12440         (EDGE_ALL_FLAGS): Update.
12441         * bb-reorder.c (find_traces_1_round, better_edge_p,
12442         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
12443         find_jump_block, fix_crossing_conditional_branches,
12444         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
12445         Replace all occurences of crossing_edge with an edge flag check
12446         or set/reset.
12447         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12448         try_crossjump_bb): Likewise.
12449         * cfglayout.c (fixup_reorder_chain): Likewise.
12450         * cfgrtl.c (force_nonfallthru_and_redirect,
12451         commit_one_edge_insertion): Likewise.
12452
12453         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
12454         * tree-flow.h (compute_dominance_frontiers): Move prototype...
12455         * basic-block.h:  ...here.
12456         * tree-cfg.c (compute_dominance_frontiers_1,
12457         compute_dominance_frontiers): Move from here...
12458         * cfganal.c: ...to here.  Include timevar.h.
12459
12460 2004-08-18  James E Wilson  <wilson@specifixinc.com>
12461
12462         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
12463         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
12464
12465         * config/mips/mips.md (type): Add frdiv.
12466         (divsf3+1, divsf3+2): Change type to frdiv.
12467         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
12468         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
12469
12470         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
12471         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
12472         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
12473         * config/mips/5000.md (r5k_fdiv_single): Likewise.
12474         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
12475         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
12476         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
12477         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
12478         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
12479         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
12480         Likewise.
12481         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
12482
12483 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
12484
12485         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
12486         get regression tester working again.
12487
12488 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
12489
12490         * insn-notes.def, reg-notes.def: New files.
12491         * rtl.h: Use them to define enum insn_note and enum reg_note.
12492         * rtl.c: Use them to define note_insn_name and reg_note_name.
12493         * Makefile.in (RTL_BASE_H): Update.
12494
12495         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
12496         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
12497
12498 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
12499
12500         * arm.c (arm_size_rtx_costs): New function.
12501         (arm_override_options): Use it if optimizing for space.
12502
12503 2004-08-18  Richard Henderson  <rth@redhat.com>
12504
12505         * emit-rtl.c (gen_const_mem): New.
12506         * rtl.h (gen_const_mem): Declare.
12507         * expr.c (do_tablejump): Use it.
12508         * varasm.c (force_const_mem): Likewise.
12509         * config/darwin.c (machopic_indirect_data_reference): Likewise.
12510         (machopic_legitimize_pic_address): Likewise.
12511         * config/arm/arm.c (legitimize_pic_address): Likewise.
12512         * config/i386/i386.c (legitimize_pic_address): Likewise.
12513         (legitimize_tls_address): Likewise.
12514         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
12515         * config/ia64/ia64.md (load_fptr): Likewise.
12516         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
12517         * config/pa/pa.c (legitimize_pic_address): Likewise.
12518         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
12519         (rs6000_emit_move): Likewise.
12520         * config/s390/s390.c (legitimize_pic_address): Likewise.
12521         (legitimize_tls_address): Likewise.
12522         * config/s390/s390.md (casesi): Likewise.
12523         * config/sh/sh.c (sh_reorg): Likewise.
12524         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
12525         * config/v850/v850.md (casesi): Likewise.
12526
12527         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
12528         * config/sh/sh.c (prepare_move_operands): Remove incorrect
12529         use of MEM_READONLY_P.
12530
12531 2004-08-18  Steven Bosscher  <stevenb@suse.de>
12532
12533         * Makefile.in (OBJS-common): Add postreload-gcse.c.
12534         Add new postreload-gcse.o.
12535         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
12536         (lookup_as_function, insert, rehash_using_reg, use_related_value,
12537         equiv_constant): Use SAFE_HASH instead of safe_hash.
12538         (exp_equiv_p): Export.  Add for_gcse argument when comparing
12539         for GCSE.
12540         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
12541         find_comparison_args, fold_rtx, cse_insn): Update callers.
12542         (hash_rtx): New function derived from old canon_hash and bits
12543         from gcse.c hash_expr_1.
12544         (canon_hash_string): Rename to hash_rtx_string.
12545         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
12546         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
12547         (cselib_lookup): Update this caller.
12548         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
12549         Make static.
12550         (hash_expr): Call hash_rtx.
12551         (ldst_entry): Likewise.
12552         (expr_equiv_p): Call exp_equiv_p.
12553         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
12554         reg_used_on_edge, reg_set_between_after_reload_p,
12555         reg_used_between_after_reload_p, get_avail_load_store_reg,
12556         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
12557         get_bb_avail_insn, hash_scan_set_after_reload,
12558         compute_hash_table_after_reload,
12559         eliminate_partially_redundant_loads, gcse_after_reload,
12560         get_bb_avail_insn, gcse_after_reload_main): Remove.
12561         * postreload-gcse.c: New file, reincarnating most of the above.
12562         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
12563         (gcse_after_reload_main): Update prototype.
12564         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
12565         * passes.c (rest_of_handle_gcse2): Use it.
12566
12567 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
12568
12569         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
12570         (pass_loop_done): Likewise.
12571
12572 2004-08-18  Andrew Pinski  <apinski@apple.com>
12573
12574         * config/rs6000/darwin.md: Delete the altivec patterns which are
12575         handled differently now.
12576         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
12577         (macho_correct_pic_di): Likewise.
12578         (call_indirect_nonlocal_darwin64): Likewise.
12579         Delete the save world/saveFP/saveVec patterns.
12580
12581         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
12582         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
12583         * config/rs6000/rs6000.md: Include darwin.md.
12584         (builtin_setjmp_receiver): Add DImode case.
12585         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
12586         Darwin bits.
12587
12588 2004-08-18  Matt Austern  <austern@apple.com>
12589
12590         Dead code stripping
12591         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
12592         * darwin.c (darwin_file_end): Mark file as potentially strippable.
12593
12594 2004-08-18  Richard Henderson  <rth@redhat.com>
12595
12596         * alias.c (readonly_fields_p): Remove.
12597         (objects_must_conflict_p): Don't call it.
12598         * tree.h (readonly_fields_p): Remove.
12599         * langhooks.h (struct lang_hooks): Remove honor_readonly.
12600         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
12601
12602 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
12603
12604         * tree-dfa.c (add_referenced_var): Only global variables are
12605         call-clobbered.
12606         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
12607         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
12608         all pointers dereferenced if the statement dereferences them.
12609         (create_name_tags): Do not create memory tags for pointers
12610         that have PT_ANYTHING set.
12611         Also check if PT_VARS is not empty before creating a name tag.
12612         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
12613         variables that share the same alias set with a pointer that
12614         may point anywhere.
12615         (add_may_alias): Add FIXME comment to remove clobbering
12616         aliased variables and tags.
12617         (replace_may_alias): Likewise.
12618         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
12619         (merge_pointed_to_info): If the original variable has not
12620         points-to information, call set_pt_anything.
12621         (add_pointed_to_var): Do not prevent adding a pointed-to
12622         variable if the pointers is PT_ANYTHING.
12623         If the variable is a global, set PT_GLOBAL_MEM.
12624         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
12625         pointer type only come in PTR+OFFSET flavours.
12626         Always call merge_pointed_to_info on PHI arguments that are
12627         SSA_NAMEs.
12628         (get_nmt_for): Mark call-clobbered tags whose pointer points
12629         to global memory.
12630         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
12631         values.
12632         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
12633         FLAGS.
12634         (add_stmt_operand): Abort if the caller tried to add a killing
12635         definition for a memory tag.
12636         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
12637         unnecessary checks.
12638
12639 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
12640
12641         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
12642         from call_used_regs.  Update call_really_used_regs.
12643         (CALL_REALLY_USED_REGISTERS): Define.
12644         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
12645         Replace call_used_regs with call_really_used_regs.
12646         (calc_live_regs, sh_media_register_for_return): Likewise.
12647         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
12648         * sh.md (return_media): Likewise.
12649
12650 2004-08-18  Andrew Pinski  <apinski@apple.com>
12651
12652         * config/darwin.c (machopic_legitimize_pic_address): Only set
12653         MEM_READONLY_P in the non TARGET_TOC case.
12654
12655 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
12656
12657         * rtl.def (NIL): Delete.
12658         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
12659         Tighten the syntax a little.
12660
12661         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
12662         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
12663         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
12664         * config/i386/predicates.md, config/m32r/m32r.h
12665         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
12666         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
12667         * config/sparc/sparc.h, doc/tm.texi:
12668         Replace all occurrences of NIL with UNKNOWN.
12669
12670 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
12671
12672         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
12673         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
12674         sequence inline.  Move drop_through_label code into this
12675         block, being the only place it is used.  Adjust comments.
12676
12677 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
12678
12679         * config/rs6000/altivec.md: Add new patterns for calls to
12680         save_world/rest_world functions.
12681
12682         * config/rs6000/rs6000-protos.h: (save_world_operation,
12683         restore_world_operation) new declarations.
12684
12685         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
12686         field added.
12687         (rs6000_stack_info): Set world_save_p field.
12688         (save_world_operation): New function.
12689         (restore_world_operation): New function.
12690         (compute_save_world_info): New function.
12691         (rs6000_stack_info): Call compute_save_world_info.
12692         (rs6000_emit_prologue): Check for world_save_p and generate
12693         pattern to call save_world for saving all non-volatile and
12694         special registers.
12695         (rs6000_emit_epilogue): Check for world_save_p and generate
12696         pattern to call rest_world to restore saved registers.
12697
12698         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
12699         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
12700         (rs6000_reg_names): New entries added for save_world_operation and
12701         restore_world_operation.
12702
12703 2004-08-18  Caroline Tice  <ctice@apple.com>
12704
12705         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
12706         "-freorder-blocks-and-partition" to the flags used in second
12707         stage of profiledbootstrap.
12708         * bb-reorder.c (push_to_next_round_p): Add new variable,
12709         next_round_is_last; set and use variable to make sure, when
12710         partitioning, that the last trace construction round consists
12711         of all (and only) cold basic blocks.
12712         (rotate_loop): Don't copy blocks that end in a section
12713         crossing jump.
12714         (copy_bb): Correctly initialize "partition" of duplicated bb.
12715         (add_unlikely_executed_notes): Add a comment.
12716         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
12717         to make sure, if function contains hot blocks, that the
12718         successors of ENTRY_BLOCK_PTR are hot; also, only look for
12719         crossing edges if the architecture supports named sections.
12720         (mark_bb_for_unlikely_executed_section): Modify to always
12721         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
12722         the basic block note insn.
12723         (fix_crossing_unconditional_branches): Remove extra space.
12724         (fix_edges_for_rarely_executed_code): Modify to only do
12725         partitioning work if the architecture supports named sections.
12726         (reorder_basic_blocks): Modify to only add
12727         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
12728         supports named sections.
12729         * c-common.c (handle_section_attribute): Initialize new global
12730         variable, user_defined_section_attribute, to true if user has
12731         specified one.
12732         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
12733         forward edges that cross section boundaries.
12734         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
12735         partitioning information if the architecture supports named
12736         sections.
12737         * cfgrtl.c (target.h): Add statement to include this.
12738         (rtl_split_block): Make sure newly created bb gets correct
12739         partition.
12740         (try_redirect_by_replacing_jump): Make sure redirection isn't
12741         attempting to cross section boundaries.
12742         (force_nonfallthru_and_redirect): Only do partition fix up if
12743         architecture supports named sections.
12744         (rtl_split_edge): Make sure newly created bb ends up in
12745         correct partition.
12746         (commit_one_edge_insertion): Remove code that incorrectly
12747         updated basic block partition; Make sure partition fix up only
12748         happens if architecture supports named sections and it's not
12749         already done.
12750         (rtl_verify_flow_info_1): Fix if-condition on test/error
12751         condition that fallthru edges are not allowed to cross section
12752         boundaries.
12753         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
12754         * final.c (final_scan_insn): Remove redundant test from if-statement;
12755         change calls to text_section into calls to function_section; add code
12756         to only to partitioning fix up if architecture supports named
12757         sections.
12758         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
12759         partition.
12760         (if_convert): Add targetm.have_named_sections to test.
12761         * output.h (unlikely_section_label): Extern declaration for new global
12762         variable.
12763         (unlikely_text_section_name): Likewise.
12764         * opts.c (decode_options): If both partitioning and DWARF debugging
12765         are turned on, issue a warning that this doesn't work, and change
12766         partitiong to basic block reordering (without hot/cold partitions).
12767         * passes.c (rest_of_handle_final): Re-set new global variable,
12768         user_defined_section_attribute, to false.
12769         (rest_of_compilation): Change options for calling partitioning
12770         function: Don't call if the user defined the section attribute, and
12771         don't call if DECL_ONE_ONLY is true for the current function.
12772         * predict.c (choose_function_section): Return immediately if we
12773         are doing hot/cold partitioning (i.e. let the basic block partitioning
12774         determine where the function belongs).
12775         * reg-stack.c (emit_swap_insn): Add condition to step over
12776         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
12777         * toplev.c (user_defined_section_attribute): New global variable.
12778         * toplev.h (user_defined_section_attribute): Extern declaration
12779         for new global variable.
12780         * varasm.c (unlikely_section_label): New global variable.
12781         (unlikely_text_section_name): New global variable.
12782         (unlikely_text_section): Add code to initialize
12783         unlikely_text_section_name if necessary; modify to use
12784         unlikely_text_section_name and unlikely_section_label; also to use
12785         named_section properly.
12786         (in_unlikely_text_section):  Modify to work correctly with
12787         named_section and to use unlikely_text_section_name.
12788         (named_section):  Add code to work properly with cold section.
12789         (function_section): Clean up if-statement.
12790         * config/darwin.c (darwin_asm_named_section): Return to original
12791         code, removing use of SECTION_FORMAT_STRING.
12792         * config/arm/pe.h (switch_to_section):  Add case for
12793         in_unlikely_executed_text to switch statement.
12794         * config/i386/cygming.h (switch_to_section): Likewise.
12795         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
12796         (SECTION_FORMAT_STRING): Likewise.
12797         * config/mcore/mcore.h (switch_to_section): Likewise.
12798         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
12799         (SECTION_FORMAT_STRING): Remove.
12800
12801 2004-08-18  Roger Sayle  <roger@eyesopen.com>
12802
12803         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
12804         -ffixed-reg safe, by preserving the meanings of zero and one.
12805         (CALL_USED_REGISTERS): Likewise.
12806         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
12807
12808 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12809
12810         * config/sh/sh.c (split_branches): Check the result of
12811         next_active_insn.
12812         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
12813         Call rtl_register_cfg_hooks.
12814
12815 2004-08-18  Richard Henderson  <rth@redhat.com>
12816
12817         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
12818         * alias.c (true_dependence): Update to match new semantics.
12819         (canon_true_dependence, write_dependence_p): Likewise.
12820         (anti_dependence, output_dependence): Update write_dependence_p args.
12821         (unchanging_anti_dependence): Remove.
12822         * calls.c (purge_mem_unchanging_flag): Remove.
12823         (fixup_tail_calls): Don't call it.
12824         (expand_call): Don't add unchanging memory to function usage.
12825         * expr.c (emit_block_move_via_libcall): Likewise.
12826         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
12827         (get_subtarget): Don't use RTX_UNCHANGING_P.
12828         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
12829         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
12830         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
12831         * cse.c (insert): Don't use RTX_UNCHANGING_P.
12832         (cse_insn, canon_hash): Use MEM_READONLY_P.
12833         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
12834         instead of RTX_UNCHANGING_P.
12835         * explow.c (maybe_set_unchanging): Remove.
12836         * expr.h (maybe_set_unchanging): Remove.
12837         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
12838         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
12839         (assign_parm_setup_reg, expand_function_start): Likewise.
12840         * integrate.c (copy_rtx_and_substitute): Likewise.
12841         * ra-rewrite.c (emit_colors): Likewise.
12842         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
12843         (fixup_match_1): Likewise.
12844         * reload1.c (reload, alter_reg): Likewise.
12845         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
12846         not RTX_UNCHANGING_P.
12847         (equiv_init_varies_p): Likewise.
12848         * loop-invariant.c (check_maybe_invariant): Likewise.
12849         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
12850         * loop.c (note_addr_stored): Likewise.
12851         (prescan_loop): Likewise. Don't check function usage for clobbered
12852         unchanging memory.
12853         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
12854         not RTX_UNCHANGING_P.
12855         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
12856         * varasm.c (force_const_mem): Likewise.
12857         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
12858         * web.c (entry_register): Likewise.
12859         * tree-gimple.h (get_base_address): Move decl ...
12860         * tree.h: ... here.
12861         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
12862
12863         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
12864         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
12865         (alpha_set_memflags): Update to match.
12866
12867         * config/darwin.c (machopic_indirect_data_reference): Set
12868         MEM_READONLY_P instead of RTX_UNCHANGING_P.
12869         (machopic_indirect_call_target): Likewise.
12870         (machopic_legitimize_pic_address): Likewise.
12871         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
12872         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
12873         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
12874         * config/frv/frv.md (symGOT2reg): Likewise.
12875         * config/i386/i386.c (legitimize_pic_address,
12876         legitimize_tls_address, ix86_split_to_parts): Likewise.
12877         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
12878         * config/ia64/ia64.md (load_fptr): Likewise.
12879         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
12880         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
12881         * config/mcore/mcore.c (block_move_sequence): Likewise.
12882         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
12883         * config/pa/pa.c (legitimize_pic_address): Likewise.
12884         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
12885         (rs6000_emit_move): Likewise.
12886         * config/s390/s390.c (legitimize_pic_address): Likewise.
12887         (legitimize_tls_address): Likewise.
12888         * config/s390/s390.md (casesi): Likewise.
12889         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
12890         * config/sh/sh.md (symGOT2reg): Likewise.
12891         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
12892         * config/v850/v850.md (casesi): Likewise.
12893
12894         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
12895         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
12896         * config/mips/mips.c (mips_restore_gp): Likewise.
12897         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
12898         * config/sh/sh.c (sh_reorg): Likewise.
12899
12900 2004-08-18  Richard Henderson  <rth@redhat.com>
12901
12902         * tree.h (struct tree_decl): Add gimple_formal_temp.
12903         (DECL_GIMPLE_FORMAL_TEMP_P): New.
12904         * gimplify.c (pop_gimplify_context): Clear it.
12905         (lookup_tmp_var): Set it, if is_formal.
12906         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
12907         Use is_gimple_val for VECTOR.  Simplify return value.
12908         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
12909         (gimplify_expr): Likewise.
12910         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
12911         is_gimple_tmp_rhs for clarity.  Update all callers.
12912         (is_gimple_reg_rhs): Simplify logic.
12913         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
12914         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
12915         (is_gimple_formal_tmp_reg): Similarly.
12916         * tree-gimple.h: Update decls.
12917         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
12918         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
12919         * tree-ssa-live.c (var_union, type_var_init): Likewise.
12920
12921 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
12922
12923         * c4x.c (legitimize_operands): Remove calls to
12924         preserve_subexpressions_p.
12925
12926 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
12927
12928         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
12929         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
12930
12931 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
12932
12933         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
12934         Objective-C++ extensions.
12935         * gengtype.c (get_file_basename): Match entire subdirectory name
12936         ('cp', 'objc', 'objcp') rather than just its suffix.
12937         (get_base_file_bitmap): Allow for files to belong to more than one
12938         language.
12939         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
12940         used by more than one front-end.
12941
12942 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
12943
12944         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
12945         avoid use of preserve_subexpressions_p.
12946
12947 2004-08-17  Richard Henderson  <rth@redhat.com>
12948
12949         PR 17051
12950         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
12951
12952 2004-08-17  DJ Delorie  <dj@redhat.com>
12953
12954         * doc/extend.texi: Document new xstormy16 attribute.
12955
12956         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
12957         (xstormy16_splittable_below100_or_register): New.
12958         (combine_bnp): New.
12959         (xstormy16_reorg): New.
12960         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12961
12962         * config/stormy16/stormy16.md (movqi_internal): Make name public.
12963         (movhi_internal): Likewise.
12964         (cbhranchhi): Likewise.
12965         (cbhranchhi_neg): Likewise.
12966         (andhi3): Only allow splittable below100 operands.
12967         (iorhi3): Likewise.
12968         (peephole2): New and/zero_extend->and peephole.
12969         (peephole2): New load/ior/save->set1 peephole.
12970         (peephole2): New load/and/save->clr1 peephole.
12971         (bclrx, bclrx2, bclr7, bclr15): New.
12972         (bsetx, bsetx2, bset7, bset15): New.
12973
12974         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
12975         liberal about acceptable 'B' masks.
12976
12977         * config/stormy16/stormy16-protos.h
12978         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
12979         xstormy16_below100_operand, xstormy16_below100_or_register,
12980         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
12981         (PREDICATE_CODES): Add new predicates.
12982
12983         * config/stormy16/stormy16.c
12984         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
12985         xstormy16_below100_operand, xstormy16_below100_or_register,
12986         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
12987         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
12988         (xstormy16_legitimate_address_p): Allow below100 symbols.
12989         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
12990         (xstormy16_expand_move): Leave below100 operands as-is.
12991         (xstormy16_encode_section_info): Encode below100 symbols.
12992         (xstormy16_strip_name_encoding): New.
12993         (xstormy16_print_operand): Print 'b' as shift mask.
12994         (xstormy16_attribute_table): Add below100 attributes.
12995         (xstormy16_handle_below100_attribute): New.
12996
12997         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
12998         (XSTORMY16_SECTION_FUNCTION): New.
12999         (EXTRA_SECTION_FUNCTIONS): Define using the above.
13000         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13001         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
13002         (ASM_OUTPUT_LABELREF): Define.
13003
13004         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
13005         (movhi_internal): Add below100 support.
13006         (andhi3): Add below100 support.
13007         (iorhi3): Add below100 support.
13008         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
13009
13010 2004-08-17  James E Wilson  <wilson@specifixinc.com>
13011
13012         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
13013         of VOIDmode for comparison code mode.
13014         * config/mips/mips.md: For conditional move patterns, use mode of
13015         first compare operand for comparison mode, instead of VOIDmode.
13016
13017         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
13018         normal and -ffast-math code.
13019
13020 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
13021
13022         PR c++/15871
13023         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
13024
13025 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
13026
13027         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
13028
13029 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
13030
13031         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
13032         for non Darwin targets.
13033         (*call_value_nonlocal_darwin64): Likewise.
13034
13035 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
13036
13037         * config/rs6000/rs6000.c (rs6000_function_value): Check for
13038         altivec mode for altivec return register.
13039
13040 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
13041
13042         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
13043         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
13044         * config/rs6000/rs6000.md: Include darwin.md.
13045         (builtin_setjmp_receiver): Add DImode case.
13046         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
13047         Darwin bits.
13048
13049 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
13050
13051         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
13052         trees.
13053         * tree-vectorizer.h: New File: Same.
13054         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
13055         * common.opt (ftree-vectorize): New flag to enable vectorization.
13056         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
13057         vectorization pass.
13058         * tree-data-ref.h (init_data_ref): Additional argument.
13059         (array_base_name_differ_p): Moved to tree-data-ref.c.
13060         * tree-data-ref.c (array_base_name_differ_p): Revised.
13061         (initialize_data_dependence_relation): Call array_base_name_differ_p
13062         with an extra argument.
13063         (analyze_all_data_dependences): Same.
13064         (init_data_ref): Additional argument is_read to set DR_IS_READ.
13065         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
13066         file.
13067         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
13068         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
13069         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
13070         vectorization pass.
13071         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
13072         (tree_ssa_loop_done): Call scev_finalize.
13073         (tree_vectorize): Define the new vectorization pass.
13074         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
13075         size of the vector they support (until support for multiple vector
13076         sizes is added to the vectorizer).
13077         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
13078         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
13079         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
13080         documentation.
13081
13082 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
13083
13084         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
13085         usage.
13086         (generate_protocol_list, handle_impent): Likewise.
13087
13088 2004-08-17  Roger Sayle  <roger@eyesopen.com>
13089
13090         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
13091         ensure that call_used_regs is a superset of both fixed_regs and
13092         call_really_used_regs.
13093
13094 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
13095
13096         PR target/17019
13097         * arm.md (addsi3_cbranch_scratch): Correct case labels.
13098
13099 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
13100
13101         PR middle-end/17036
13102         * fold-const.c (fold): Check for integer operand when
13103         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
13104         Pinski  <pinskia@physics.uc.edu>.
13105
13106 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
13107
13108         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
13109         No need to check if in a cross configuration.
13110         * configure: Regenerate.
13111
13112         * calls.c (precompute_register_parameters):
13113         Inline preserve_subexpressions_p ().
13114         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
13115         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
13116         Likewise.
13117         * expr.c (get_subtarget): Likewise.
13118         * rtl.h (preserve_subexpressions_p): Remove.
13119         * stmt.c (preserve_subexpressions_p): Remove.
13120
13121         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
13122         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
13123         Abort on gimplified cases.
13124
13125 2004-08-16  James E Wilson  <wilson@specifixinc.com>
13126
13127         * tree.h (VECTOR_FLOAT_TYPE_P): New.
13128         (FLOAT_TYPE_P): Use it.
13129         * c-typeck.c (build_binary_op): After convert calls, check for
13130         check for ERROR_MARK operands.
13131
13132 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
13133
13134         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
13135         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
13136         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
13137         (genobjs static pattern rule): Remove %.c dependency.
13138         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
13139         Rename rules; delete commands; fix dependencies.
13140         (mostlyclean): Do not delete temporary source copies.
13141         * configure.ac: Delete all references to BUILD_PREFIX and
13142         BUILD_PREFIX_1.
13143         * configure: Regenerate.
13144
13145         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
13146         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
13147         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
13148         with #ifndef GENERATOR_FILE so that nothing from those headers
13149         is used.
13150
13151         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
13152
13153 2004-08-16  Adam Nemet  <anemet@lnxw.com>
13154
13155         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
13156
13157 2004-08-16  Andrew Pinski  <apinski@apple.com>
13158
13159         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
13160         extraneous semicolon.
13161
13162 2004-08-16  Devang Patel  <dpatel@apple.com>
13163
13164         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
13165         * print-tree.c (print_node): Print DECL_PRESERVE_P.
13166         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
13167         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
13168         * target.h (struct gcc_target): New member, mark_decl_preserved.
13169         * hooks.c (hook_void_charptr): Rename to ...
13170         (hook_void_constcharptr): ... new name.
13171         * hooks.h (hook_void_charptr): Rename to ..
13172         (hook_void_constcharptr): ... new name.
13173         * tree.h (DECL_PRESERVE_P): New #define.
13174         (struct tree_decl): New member, preserve_flag.
13175         * varasm.c (assemble_start_function): Mark decl preserved.
13176         (assemble_variable): Same.
13177         * darwin.c (darwin_mark_decl_preserved): New function.
13178         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
13179         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
13180         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
13181
13182 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
13183
13184         * c-decl.c (grokdeclarator): Allow for function definition where
13185         innermost declarator has attributes.
13186
13187 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
13188
13189         * except.c (get_exception_filter, build_post_landing_pads,
13190         dw2_build_landing_pads): Use target-specific mode for 'filter'.
13191         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
13192         * target.h (eh_return_filter_mode): New field added.
13193         * targhooks.c (default_eh_return_filter_mode): Defined.
13194         * targhooks.h (default_eh_return_filter_mode): Declared.
13195         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
13196
13197 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
13198
13199         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
13200         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
13201         * configure: Regenerate.
13202
13203 2004-08-16  Stan Shebs  <shebs@apple.com>
13204
13205         Basic support for 64-bit Darwin.
13206         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
13207         (machopic_legitimize_pic_address): Similarly, plus use Pmode
13208         instead of SImode.
13209         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
13210         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
13211         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
13212         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
13213         (PROCESSOR_DEFAULT64): Define.
13214         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
13215         Darwin.
13216         * config/rs6000/rs6000.md: Include darwin.md.
13217         (builtin_setjmp_receiver): Add DImode case.
13218         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
13219         Darwin.
13220         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
13221         (rs6000_emit_move): Add DImode case to Darwin bits.
13222         (machopic_output_stub): Use .quad if 64-bit.
13223         * invoke.texi: Document -m32 and -m64.
13224
13225 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
13226
13227         * doc/extend.texi (AltiVec builtins): Document additional differences
13228         from the Motorola AltiVec PIM.
13229
13230 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
13231
13232         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
13233         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
13234         (struct tree_common): Update public_flag documentation.
13235
13236 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
13237
13238         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13239         Check for artificial variables, not is_gimple_tmp_var.
13240         * tree-ssa-live.c (var_union): Likewise.
13241
13242 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
13243
13244         * calls.c (load_register_parameters): Remove spurious FIXME token.
13245
13246 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
13247
13248         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
13249         (c-lang.o): Depend on c-objc-common.h.
13250         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
13251         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
13252         * c-lang.c: Include c-objc-common.h.
13253         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
13254         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
13255         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
13256         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
13257         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
13258         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
13259         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
13260         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
13261         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
13262         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
13263         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
13264         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
13265         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
13266         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
13267         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
13268         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
13269         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
13270         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
13271         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
13272         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
13273         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
13274         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
13275         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
13276         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
13277         Move to c-objc-common.h.
13278         * c-objc-common.c: Include c-objc-common.h.
13279         * c-objc-common.h: New file.
13280
13281 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
13282             Andrew Pinski  <pinskia@physics.uc.edu>
13283
13284         PR target/14931
13285         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
13286         style.
13287
13288 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
13289
13290         * tree.h (build_int_cst): New.
13291         (build_int_2): Remove.
13292         * tree.c (build_int_2): Remove.
13293         (build_int_cst): New.
13294         (make_vector_type, build_common_tree_nodes,
13295         build_common_tree_nodes_2): Use build_int_cst.
13296         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
13297         expand_builtin_strpbrk, expand_builtin_fputs,
13298         build_string_literal, expand_builtin_printf,
13299         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
13300         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
13301         fold_builtin_isdigit, simplify_builtin_strstr,
13302         simplify_builtin_strpbrk, fold_builtin_fputs,
13303         simplify_builtin_sprintf): Use build_int_cst.
13304         * c-common.c (start_fname_decls, fix_string_type,
13305         c_common_nodes_and_builtins, c_init_attributes,
13306         shorten_compare): Likewise.
13307         * c-decl.c (complete_array_type,
13308         check_bitfield_type_and_width): Likewise.
13309         * c-lex.c (interpret_integer, lex_charconst): Likewise.
13310         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
13311         * c-pretty-print.c (pp_c_integer_constant): Likewise.
13312         * c-typeck.c (really_start_incremental_init, push_init_level,
13313         set_nonincremental_init_from_string): Likewise.
13314         * calls.c (load_register_parameters): Likewise.
13315         * convert.c (convert_to_pointer): Likewise.
13316         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
13317         build_fn_info_type, build_ctr_info_value, build_gcov_info):
13318         Likewise.
13319         * except.c (init_eh, assign_filter_values, assign_filter_values):
13320         Likewise.
13321         * expmed.c (store_fixed_bit_field, extract_bit_field,
13322         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
13323         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
13324         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
13325         * expr.c (convert_move, emit_group_load, emit_group_store,
13326         expand_assignment, store_constructor, store_field,
13327         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
13328         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
13329         invert_truthvalue, optimize_bit_field_compare,
13330         decode_field_reference, all_ones_mask_p, constant_boolean_node,
13331         fold_div_compare, fold, fold_read_from_constant_string,
13332         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
13333         * function.c (assign_parm_setup_block): Likewise.
13334         * stmt.c (shift_return_value, expand_end_case_type,
13335         estimate_case_costs): Likewise.
13336         * stor-layout.c (layout_type, initialize_sizetypes,
13337         set_min_and_max_values_for_integral_type): Likewise.
13338         * tree-chrec.c (chrec_fold_multiply_poly_poly,
13339         reset_evolution_in_loop): Likewise.
13340         * tree-chrec.h (build_polynomial_chrec): Likewise.
13341         * tree-complex.c (build_replicated_const): Likewise.
13342         * tree-eh.c (honor_protect_cleanup_actions,
13343         lower_try_finally_onedest, lower_try_finally_copy,
13344         lower_try_finally_switch): Likewise.
13345         * tree-mudflap.c (mf_build_string, mx_register_decls,
13346         mudflap_register_call, mudflap_enqueue_constant): Likewise.
13347         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
13348         * tree-pretty-print.c (dump_generic_node): Likewise.
13349         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
13350         Likewise.
13351         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
13352         * tree-ssa-loop-niter.c (number_of_iterations_cond,
13353         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
13354         Likewise.
13355
13356         * config/alpha/alpha.c (alpha_initialize_trampoline,
13357         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
13358         * config/arm/arm.c (arm_get_cookie_size): Likewise.
13359         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
13360         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
13361         * config/i860/i860.c (i860_va_start): Likewise.
13362         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13363         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
13364         mips_gimplify_va_arg_expr): Likewise.
13365         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13366         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
13367         add_compiler_branch_island): Likewise.
13368         * config/s390/s390.c (s390_va_start): Likewise.
13369         * config/sh/sh.c (sh_va_start): Likewise.
13370         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
13371         Likewise.
13372         * config/xtensa/xtensa.c (xtensa_va_start,
13373         xtensa_gimplify_va_arg_expr): Likewise.
13374
13375         * objc/objc-act.c (build_objc_string_object,
13376         build_objc_symtab_template, init_def_list, init_objc_symtab,
13377         init_module_descriptor, generate_static_references,
13378         build_selector_translation_table, get_proto_encoding,
13379         build_typed_selector_reference, build_selector_reference,
13380         build_next_objc_exception_stuff,
13381         build_method_prototype_list_template, generate_descriptor_table,
13382         generate_protocols, build_protocol_initializer,
13383         build_ivar_list_template, build_method_list_template,
13384         build_ivar_list_initializer, generate_ivars_list,
13385         generate_dispatch_table, generate_protocol_list,
13386         build_category_initializer, build_shared_structure_initializer,
13387         generate_shared_structures, handle_impent,
13388         generate_objc_image_info): Use build_int_cst.
13389
13390 2004-08-15  Ben Elliston  <bje@au.ibm.com>
13391
13392         * vec.h: Comment improvements.
13393
13394 2004-08-14  Roger Sayle  <roger@eyesopen.com>
13395
13396         * c-common.c (shorten_compare, pointer_int_sum,
13397         c_common_truthvalue_conversion, boolean_increment): Replace calls
13398         to build with calls to buildN.
13399         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
13400         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
13401         gimplify_switch_stmt): Likewise.
13402         * c-typeck.c (default_function_array_conversion,
13403         build_component_ref, build_array_ref, build_function_call,
13404         pointer_diff, build_unary_op, build_conditional_expr,
13405         build_compound_expr, build_modify_expr, c_finish_goto_label,
13406         c_finish_goto_ptr, c_finish_return, c_finish_loop,
13407         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
13408         build_binary_op): Likewise.
13409
13410 2004-08-15  Steven Bosscher  <stevenb@suse.de>
13411
13412         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
13413
13414 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13415
13416         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
13417         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
13418         * fixinc/fixincl.x: Rebuilt.
13419
13420 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
13421
13422         * config/mips/mips-protos.h (mips_symbolic_constant_p)
13423         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
13424         (mips_small_data_pattern_p): Declare.
13425         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
13426         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
13427         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
13428         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
13429         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
13430         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
13431         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
13432         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
13433         (pc_or_label_operand, call_insn_operand, move_operand)
13434         (consttable_operand, symbolic_operand, general_symbolic_operand)
13435         (global_got_operand, local_got_operand, stack_operand)
13436         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
13437         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
13438         (mips_small_data_pattern_p): Replace previous small_data_pattern
13439         predicate.  Turn into a bool () (rtx) function.
13440         * config/mips/predicates.md: New file.
13441         * config/mips/mips.md: Include it.  Use the target-independent
13442         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
13443         trap_comparison_operator and equality_op to equality_operator.
13444         Replace uses of small_int with the equivalent const_arith_operand.
13445         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
13446         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
13447         to fcc_reload_operand.
13448         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
13449
13450 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13451
13452         PR libstdc++/17005 partial fix.
13453         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
13454         except when generating ANSI/C89 code.
13455
13456 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
13457
13458         * c-common.c (shorten_compare): Use force_fit_type directly.
13459
13460 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
13461             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
13462             Dave Korn  <dk@artimi.com>
13463
13464         * doc/install.texi (Building): Avoid duplicate reference to GNU
13465         make requirement.
13466         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
13467
13468 2004-08-14  Richard Henderson  <rth@redhat.com>
13469
13470         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
13471         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
13472
13473 2004-08-13  Richard Henderson  <rth@redhat.com>
13474
13475         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
13476         for constant_call_address_operand.
13477         (call_value_pop_1, call_value_1): Likewise.
13478         (sibcall_value_1, call_value_1_rex64): Likewise.
13479
13480 2004-08-13  James E Wilson  <wilson@specifixinc.com>
13481
13482         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
13483         Correct mode from SFmode to DFmode.
13484
13485 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
13486
13487         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
13488         __cstring_object and __image_info sections with the no_dead_strip
13489         attribute.
13490
13491 2004-08-13  Roger Sayle  <roger@eyesopen.com>
13492             David Billinghurst  <David.Billinghurst@riotinto.com>
13493
13494         PR libgfortran/15930
13495         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
13496         * fixinc/fixincl.x: Regenerate.
13497         * fixinc/tests/base/internal/math_core.h: New file.
13498
13499 2004-08-13  Richard Henderson  <rth@redhat.com>
13500
13501         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
13502         (dbxout_function_end): Remove ifdefs for it.
13503         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
13504
13505 2004-08-13  Richard Henderson  <rth@redhat.com>
13506
13507         * Makefile.in (insn-preds.o): Depend on TREE_H.
13508         * genpreds.c (write_insn_preds_c): Include tree.h.
13509         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
13510         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
13511         const48_operand, and_operand, or_operand, mode_width_operand,
13512         mode_mask_operand, mul8_operand, const0_operand,
13513         hard_fp_register_operand, hard_int_register_operand,
13514         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
13515         samegp_function_operand, direct_call_operand, small_symbolic_operand,
13516         global_symbolic_operand, call_operand, symbolic_operand,
13517         dtp16_symbolic_operand, dtp32_symbolic_operand,
13518         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
13519         gottp_symbolic_operand, alpha_comparison_operator,
13520         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
13521         signed_comparison_operator, alpha_fp_comparison_operator,
13522         divmod_operator, fix_operator, aligned_memory_operand,
13523         unaligned_memory_operand, reg_or_unaligned_mem_operand,
13524         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
13525         reg_no_subreg_operand, addition_operation): Move to predicates.md.
13526         (reg_or_const_int_operand): Remove.  Replace all users with
13527         reg_or_cint_operand.
13528         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
13529         (resolve_reload_operand): Split out of aligned_memory_operand.
13530         * config/alpha/alpha-protos.h: Update for exports.
13531         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
13532         * config/alpha/alpha.md: Include predicates.md.
13533         * config/alpha/predicates.md: New file.
13534
13535 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
13536
13537         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
13538         fields with a pointer to the instruction definition.
13539         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
13540         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
13541         (write_attr_case, write_const_num_delay_slots): Update accordingly.
13542         (write_attr_case, write_const_num_delay_slots): Write the name of
13543         an insn next to its case statement.
13544         * genoutput.c (data): Add a filename field.
13545         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
13546         (output_insn_data): Print the location of each insn definition.
13547         * genrecog.c (write_action): Print the name of an insn above
13548         the statement that returns its code.
13549
13550 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
13551
13552         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
13553         * config/libgloss.h: Likewise.
13554         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
13555         * c4x/c4x-modes.def: Likewise.
13556         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
13557         (c4x_rptb_nop_p): Likewise.
13558         (c4x_rptb_valid_p): Likewise.
13559         (c4x_rptb_insert): Likewise.
13560         (c4x_address_conflict): Likewise.
13561         * config/c4x/c4x.md: Likewise.
13562         * config/frv/frv.md: Likewise.
13563         * config/i386/athlon.md: Likewise.
13564         * config/i386/i386.md: Likewise.
13565         * config/i386/predicates.md: Likewise.
13566         * config/ia64/ia64.c: Likewise.
13567         * config/ia64/itanium1.md: Likewise.
13568         * config/ia64/itanium2.md: Likewise.
13569         * config/iq2000/iq2000.md: Likewise.
13570         * config/mcore/mcore.c: Likewise.
13571         * config/mips/mips.c: Likewise.
13572         * config/mips/r3900.h: Likewise.
13573         * config/mips/sb1.md: Likewise.
13574         * config/pa/milli64.S: Likewise.
13575         * config/pa/pa.c: Likewise.
13576         * config/pa/pa.h: Likewise.
13577         * config/rs6000/8540.md: Likewise.
13578
13579 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
13580
13581         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
13582
13583 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
13584
13585         * sh.md (cbranch define_delay) Use cond_delay_slot for
13586         non-anulled condition too.
13587
13588 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
13589
13590         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
13591         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
13592         any_parallel_operand, lmw_operation, stmw_operation,
13593         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
13594         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
13595         any_parallel_operand.
13596         (return_and_restore_fpregs_{si,di}): Same.
13597
13598 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
13599
13600         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
13601         if pred->singleton != PARALLEL, issue a warning and pretend it was.
13602         Also issue a warning for any predicate we don't know about.
13603
13604 2004-08-12  Richard Henderson  <rth@redhat.com>
13605
13606         * config/i386/i386.c (internal_label_prefix): Export.
13607         (internal_label_prefix_len, struct ix86_address,
13608         ix86_decompose_address, maybe_get_pool_constant,
13609         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
13610         memory_address_length): Export.
13611         (any_fp_register_operand, fp_register_operand,
13612         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
13613         x86_64_general_operand, x86_64_szext_general_operand,
13614         x86_64_nonmemory_operand, x86_64_movabs_operand,
13615         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
13616         x86_64_zext_immediate_operand, const_int_1_31_operand,
13617         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
13618         tls_symbolic_operand, global_dynamic_symbolic_operand,
13619         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
13620         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
13621         constant_call_address_operand, const0_operand, const1_operand,
13622         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
13623         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
13624         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
13625         general_no_elim_operand, nonmemory_no_elim_operand,
13626         index_register_operand, q_regs_operand, flags_reg_operand,
13627         non_q_regs_operand, zero_extended_scalar_load_operand,
13628         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
13629         ix86_comparison_operator, ix86_carry_flag_operator,
13630         fcmov_comparison_operator, promotable_binary_operator,
13631         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
13632         mult_operator, div_operator, arith_or_logical_operator,
13633         memory_displacement_operand, cmpsi_operand, long_memory_operand,
13634         aligned_operand): Move to predicates.md as define_predicates.
13635         (tls_symbolic_operand_1): Remove.
13636         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
13637         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
13638         (legitimize_address): Merge tls_symbolic_operand contents.
13639         (ix86_expand_move): Likewise.
13640         * config/i386/i386-protos.h: Update for exports.
13641         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
13642         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
13643         * config/i386/i386.md: Include predicates.md.
13644         * config/i386/predicates.md: New file.
13645
13646 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
13647
13648         PR c++/16924
13649         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
13650         SYMBOL_REF_DECL.
13651         (i386_pe_mark_dllimport): Likewise.
13652         (i386_pe_encode_section_info): Likewise, when overriding
13653         dllimport attribute.
13654
13655 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
13656
13657         * configure.ac: When testing for flex, nm, ar, and bison, check
13658         that they will actually be built.
13659         * configure: Regenerate.
13660
13661 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
13662
13663         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
13664         (MOVE_MAX_PIECES): Define.
13665
13666 2004-08-12  Devang patel  <dpatel@apple.com>
13667
13668         * dbxout.c (dbxout_begin_prologue): New function.
13669         (dbx_debug_hooks): Use new begin prologue hook.
13670         (dbxout_function_end): Emit N_ENSYM.
13671         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
13672
13673 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
13674
13675         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
13676         argument is float*.
13677
13678         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
13679         for vec_dss.
13680
13681         * doc/extend.texi (AltiVec builtins): Fix description for recent
13682         changes.  Update operation list to match current support.
13683
13684 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
13685
13686         * config/s390/s390.c (struct s390_frame_layout): New struct as element
13687         of struct machine_function.
13688         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
13689         changed all uses.
13690         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
13691         changed all uses.
13692         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
13693         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
13694         (s390_frame_area, s390_register_info): New functions.
13695         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
13696         for base register.
13697         (s390_return_addr_rtx, s390_return_address_offset)
13698         (s390_va_start, s390_gimplify_va_arg)
13699         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
13700         layouts.
13701         (s390_frame_info): Functionality partly moved to s390_register_info.
13702         Made adaptions for new stack layout.
13703         (save_gprs, restore_gprs): Changed meaning of second parameter and
13704         adapted all callers.
13705
13706         * config/s390/s390.h (s390_backchain_string): New global variable.
13707         (MASK_BACKCHAIN): Removed definition.
13708         (TARGET_BACKCHAIN): Changed check.
13709         (TARGET_KERNEL_BACKCHAIN): New macro.
13710         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
13711         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
13712         "kernel-backchain".
13713         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
13714
13715         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
13716         as condition.  Adjusted for new stack layout.
13717
13718         * doc/invoke.texi: Added documentation for new option
13719         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
13720         "-mno-backchain".
13721
13722 2004-08-12  Paul Brook  <paul@codesourcery.com>
13723
13724         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
13725         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
13726
13727 2004-08-12  David Daney  <ddaney@avtrex.com>
13728
13729         * java/gcj.texi:  Add subsection on signal usage.
13730
13731 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
13732
13733         * expr.c (move_by_pieces): Set alignment for move to minimum of
13734         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
13735         alignment, but not less than the original alignment.
13736         (move_by_pieces_ninsns): Same.
13737         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
13738         (store_by_pieces_1): Same.
13739
13740 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
13741
13742         PR tree-optimization/16867
13743         * tree.c (is_global_var): New function.
13744         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
13745         Call is_global_var.
13746         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
13747         Update all users.
13748         (is_global_var): Declare.
13749         * tree-dfa.c (dump_variable): Display global and addressable
13750         attributes.
13751         (add_referenced_var): Clarify documentation when marking
13752         variables call-clobbered.
13753         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
13754         instead of needs_to_live_in_memory.
13755         (mark_call_clobbered): If the variable is a tag, mark it
13756         DECL_EXTERNAL.
13757         * tree-gimple.c (is_gimple_reg): Don't check for
13758         TREE_ADDRESSABLE.
13759         (is_gimple_non_addressable): Likewise.
13760         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
13761         needs to be marked call-clobbered.
13762         (setup_pointers_and_addressables): Call is_global_var instead
13763         of needs_to_live_in_memory.
13764         * tree-ssa-dce.c (need_to_preserve_store): Remove.
13765         Update all users with is_global_var.
13766         (mark_stmt_if_obviously_necessary): Fix processing of aliased
13767         stores.  Don't check the virtual definitions.  Rather, check
13768         whether the store is going into global memory.
13769         (find_obviously_necessary_stmts): Get the symbol from the PHI
13770         result.
13771         * tree-ssa-operands.c (get_call_expr_operands): Do not add
13772         clobbering may-defs if the call does not have side effects.
13773
13774 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
13775
13776         PR c++/16276
13777         * output.h (default_function_rodata_section,
13778         default_no_function_rodata_section): New prototypes.
13779         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
13780         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
13781         (TARGET_ASM_OUT): Add it.
13782         * varasm.c (default_function_rodata_section,
13783         default_no_function_rodata_section): New functions.
13784         * final.c (final_scan_insn): Call
13785         targetm.asm_out.function_rodata_section instead of
13786         readonly_data_section.
13787         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
13788         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
13789         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
13790         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
13791         Likewise.
13792         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
13793         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
13794         Likewise.
13795         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
13796         Likewise.
13797         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
13798         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
13799         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
13800
13801 2004-08-12  Paul Brook  <paul@codesourcery.com>
13802
13803         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
13804         frame info.
13805         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
13806         DWARF2_UNWIND_INFO.
13807
13808 2004-08-12  Ben Elliston  <bje@au.ibm.com>
13809
13810         PR target/16286
13811         * config/rs6000/altivec.h: Change vector to __vector throughout.
13812         (Except for the `vector' macro itself).
13813
13814 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
13815
13816         * genpreds.c: Add capability to generate predicate bodies as
13817         well as function prototypes.  Write function prototypes for
13818         the generic predicates too.
13819         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
13820         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
13821         (write_match_code, write_predicate_expr, write_one_predicate_function)
13822         (parse_option): New functions.
13823         (output_predicate_decls): Delete.
13824         (main): Read the machine description, process DEFINE_PREDICATE or
13825         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
13826         as appropriate.
13827
13828         * genrecog.c (struct decision_test): Replace index with
13829         struct pred_data pointer.
13830         (next_index): Remove, unused.
13831         (pred_table, preds, special_mode_pred_table): Delete.
13832         (compute_predicate_codes, process_define_predicate): New functions.
13833         (validate_pattern, add_to_sequence, write_switch): Update for
13834         new data structures.
13835         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
13836         Check both error_count and have_error.
13837
13838         * gensupport.c (in_fname, first_predicate): New globals.
13839         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
13840         (predicate_table, last_predicate, old_pred_table)
13841         (old_special_pred_table): New statics.
13842         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
13843         (add_predicate, init_predicate_table): New functions.
13844         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
13845         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
13846         it or max_include_len.  Call init_predicate_table.
13847         (read_rtx): Run the predicate queue after the attribute queue
13848         but before all the others.
13849         * gensupport.h (in_fname, struct pred_data, first_predicate)
13850         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
13851         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
13852         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
13853         * dummy-conditions.c: Don't include bconfig.h, system.h,
13854         coretypes.h, tm.h, or system.h.  Do include stddef.h.
13855         Duplicate declaration of struct c_test from gensupport.h.
13856
13857         * Makefile.in (OBJS-common): Add insn-preds.o.
13858         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
13859         (insn-preds.c, insn-preds.o): New rules.
13860         (s-preds): Also generate insn-preds.c.
13861         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
13862         Update dependencies.
13863         (print-rtl.o, print-rtl1.o): Correct dependencies.
13864
13865         * recog.h: Delete prototypes of predicate functions.
13866
13867         * doc/md.texi (Predicates): New section with complete
13868         documentation of operand/operator predicates.  Remove some
13869         incomplete documentation of predicates from other places.
13870         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
13871         PREDICATE_CODES; indicate that both are deprecated in favor
13872         of define_predicate/define_special_predicate.
13873
13874         * config/ia64/ia64.c: All predicate function definitions moved
13875         to ia64.md, except
13876         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
13877         (ia64_expand_load_address, ia64_expand_move):
13878         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
13879
13880         * config/ia64/ia64.md: All predicates now defined here.
13881         (symbolic_operand): Is now a special predicate.
13882
13883         * config/ia64/ia64.h: Declare ia64_section_threshold.
13884         (PREDICATE_CODES): Delete.
13885
13886 2004-08-12  Richard Henderson  <rth@redhat.com>
13887
13888         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
13889         * c-semantics.c (add_stmt): Set it.
13890         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
13891         before instantiating a variable sized type.
13892
13893 2004-08-12  Richard Henderson  <rth@redhat.com>
13894
13895         * stor-layout.c (round_up, round_down): Move ...
13896         * fold-const.c (round_up, round_down): ... here.  Use
13897         multiple_of_p to avoid any arithmetic at all.
13898
13899 2004-08-12  Richard Henderson  <rth@redhat.com>
13900
13901         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
13902         (gimplify_init_ctor_preeval_1): New.
13903         (gimplify_init_ctor_preeval): New.
13904         (gimplify_init_ctor_eval): New.
13905         (gimplify_init_constructor): Use them.  Always gimplify the LHS
13906         object first.
13907
13908 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
13909
13910         (This patch is part of merge of objc-improvements-branch
13911         into mainline.)
13912
13913         * doc/frontends.texi: Mention Objective-C++ in addition to
13914         Objective-C.
13915         * doc/install.texi: Add 'obj-c++' to list of configurable
13916         languages.
13917         * doc/invoke.texi: Rename Objective-C option headings to
13918         indicate they also apply to Objective-C++.  List file
13919         extensions for Objective-C++ sources.  Mention that
13920         ObjC and ObjC++ compilations may also use C and C++ options,
13921         respectively.  Point users to doc/standards.texi for
13922         further info on ObjC and ObjC++.
13923         * doc/sourcebuild.texi: Mention the objcp/ directory and
13924         the Objective-C++ sources it contains.
13925         * doc/standards.texi: Update link to Apple ObjC site;
13926         add link to gcc readings.html WWW doc.
13927
13928 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
13929
13930         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
13931         and 2004-07-14 changes.
13932
13933 2004-08-12  Paul Brook  <paul@codesourcery.com>
13934
13935         * doc/invoke.texi: Fix typo.
13936
13937 2004-08-11 Devang Patel  <dpatel@apple.com>
13938
13939         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
13940         and -no_dead_strip_inits_and_terms.
13941         (LINK_SPEC): Same.
13942         * doc/invoke.texi (Darwin Options): Document -dead_strip and
13943         -no_dead_strip_inits_and_terms.
13944
13945 2004-08-11  Paul Brook  <paul@codesourcery.com>
13946
13947         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
13948         (arm_load_pic_register): ... to this.
13949         * config/arm/arm.c (arm_finalize_pic): Rename ...
13950         (arm_load_pic_register): ... to this.  Always output insns at the
13951         current location.  Load via low reg in thumb mode.
13952         (arm_expand_prologue): Call arm_load_pic_register.
13953         (thumb_expand_prologue): Ditto.
13954         * config/arm/arm.h (FINALIZE_PIC): Remove.
13955         * config/arm/arm.md (builtin_setjmp_receiver): Call
13956         arm_load_pic_register.
13957
13958 2004-08-11  Paul Brook  <paul@codesourcery.com>
13959
13960         * arm.c (thumb_force_lr_save): Add prototype.
13961         (thumb_compute_save_reg_mask): New function.
13962         (thumb_find_work_register): New function.
13963         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
13964         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
13965         Don't clobber r3 when removing pretend args.
13966         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
13967         (thumb_output_function_prologue): Use new functions.
13968         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
13969         * arm.h (THUMB_REG_PUSHED_P): Remove.
13970
13971 2004-08-11  James E Wilson  <wilson@specifixinc.com>
13972
13973         PR rtl-optimization/16490
13974         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
13975         global_live_at_end for new basic block if already set for other blocks.
13976
13977 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
13978
13979         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
13980
13981         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
13982         (mfcr rlwinm rlwinm patterns): Set length to 12.
13983
13984 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
13985
13986         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
13987         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
13988         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
13989         (start_ssa_stmt_operands): Delete.
13990         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
13991         struct stmt_operands_d.
13992         (build_ssa_operands): New extern entry point.
13993         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
13994         building code, replace with create_ssa_artficial_load_stmt().
13995         * tree-ssa-operands.c (struct voperands_d): Delete.
13996         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
13997         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
13998         (free_uses, free_defs, free_vuses, free_v_may_defs,
13999         free_v_must_defs): Remove dealloc parameter.
14000         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
14001         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
14002         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
14003         vector comparisons, ssa_name reuse, and allocations here.
14004         (verify_start_operands): Delete.
14005         (finalize_ssa_stmt_operands): Set new operands by calling finalize
14006         routines.
14007         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
14008         (append_def, append_usei): Simplify to simple accumulation.
14009         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
14010         duplicates and simple accumulation.
14011         (free_ssa_operands): Free vectors in a stmt_operand structure.
14012         (build_ssa_operands): New. Create a new stmt_operand structure from
14013         a stmt and an old set of stmt_operands.
14014         (get_stmt_operands): Simplify and call build_ssa_operands.
14015         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
14016         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
14017         add_call_read_ops): Don't pass prev_vops around anymore.
14018         (note_addressable): Return if no stmt annotation.
14019         (copy_virtual_operands): Access v_may_def operands through a struct.
14020         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
14021         hash tables without treating the stmt as a real stmt.
14022         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
14023         v_may_def def and use through a struct instead of 2 array elements.
14024         (struct v_may_def_optype_d): Use v_may_def_operand_type.
14025         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
14026
14027 2004-08-11  Nick Clifton  <nickc@redhat.com>
14028
14029         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
14030         this funciton's behaviour.  Return true when the current function
14031         has a section attribute and -mlong-calls is in effect.
14032         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
14033         short-call marker when -mlong-calls is in effect and the function
14034         has a section attribute.
14035
14036 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
14037
14038         * stmt.c (expand_return): If asked to return the RESULT_DECL,
14039         just call expand_value_return on result_rtl.
14040
14041 2004-08-10  Richard Henderson  <rth@redhat.com>
14042
14043         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
14044         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
14045         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
14046         (add_location_or_const_value_attribute): ... not here.  Use
14047         loc_descriptor_from_tree if possible.
14048         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
14049         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
14050         values specially.
14051         (loc_descriptor_from_tree): New.  Update callers.
14052         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
14053         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
14054         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
14055         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
14056         and BUILT_IN_STACK_RESTORE.
14057         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
14058         * stmt.c (expand_stack_alloc): Remove.
14059         * tree-mudflap.c (mx_register_decls): Don't look for
14060         BUILT_IN_STACK_ALLOC.
14061         * tree-nested.c (convert_local_reference): Likewise.
14062         * tree.h (DECL_VALUE_EXPR): New.
14063
14064 2004-08-10  Richard Henderson  <rth@redhat.com>
14065
14066         * stor-layout.c (round_up): Check for 0/1 before dividing.
14067         (round_down): Likewise.
14068
14069         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
14070
14071 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
14072
14073         * config.gcc (arm*-*-eabi*): New target.
14074         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
14075         (TARGET_LIB_INT_CMP_BIASED): Likewise.
14076         * expmed.c (expand_divmod): Try a two-valued divmod function as a
14077         last resort.
14078         * gthr.h: Remove bogus tokens at end of #pragma.
14079         * optabs.c (expand_twoval_binop_libfunc): New function.
14080         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
14081         (prepare_float_lib_cmp): Try reversing the condition.
14082         (debug_optab_libfuncs): New function.
14083         * optabs.h (expand_twoval_binop_libfunc): Declare.
14084         * config/arm/arm.c (arm_init_libfuncs): New function.
14085         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
14086         (TARGET_INIT_LIBFUNCS): Define it.
14087         * config/arm/arm.h (TARGET_BPABI): New macro.
14088         * config/arm/arm-protos.h
14089         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
14090         * config/arm/bpabi.S: New file.
14091         * config/arm/bpabi.c: Likewise.
14092         * config/arm/bpabi.h: Likewise.
14093         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
14094         (__aeabi_drsub): Likewise.
14095         (__aeabi_dsub): Likewise.
14096         (__aeabi_dadd): Likewise.
14097         (__aeabi_ui2d): Likewise.
14098         (__aeabi_i2d): Likewise.
14099         (__aeabi_f2d): Likewise.
14100         (__aeabi_dmul): Likewise.
14101         (__aeabi_ddiv): Likewise.
14102         (__aeabi_cdrcmple): Likewise.
14103         (__aeabi_cdcmpeq): Likewise.
14104         (__aeabi_cdcmple): Likewise.
14105         (__aeabi_dcmpeq): Likewise.
14106         (__aeabi_dcmplt): Likewise.
14107         (__aeabi_dcmple): Likewise.
14108         (__aeabi_dcmpge): Likewise.
14109         (__aeabi_dcmpgt): Likewise.
14110         (__aeabi_dcmpun): Likewise.
14111         (__aeabi_d2iz): Likewise.
14112         (__aeabi_d2uiz): Likewise.
14113         (__aeabi_d2f): Likewise.
14114         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
14115         (__aeabi_frsub): Likewise.
14116         (__aeabi_fsub): Likewise.
14117         (__aeabi_fadd): Likewise.
14118         (__aeabi_ui2f): Likewise.
14119         (__aeabi_i2f): Likewise.
14120         (__aeabi_fmul): Likewise.
14121         (__aeabi_fdiv): Likewise.
14122         (__aeabi_cfrcmple): Likewise.
14123         (__aeabi_cfcmpeq): Likewise.
14124         (__aeabi_cfcmple): Likewise.
14125         (__aeabi_fcmpeq): Likewise.
14126         (__aeabi_fcmplt): Likewise.
14127         (__aeabi_fcmple): Likewise.
14128         (__aeabi_fcmpge): Likewise.
14129         (__aeabi_fcmpgt): Likewise.
14130         (__aeabi_fcmpun): Likewise.
14131         (__aeabi_f2iz): Likewise.
14132         (__aeabi_f2uiz): Likewise.
14133         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
14134         (__aeabi_uidivmod): New function or alias.
14135         (__aeabi_idivmod): Likewise.
14136         (__aeabi_idiv0): Likewise.
14137         (__aeabi_ldiv0): Likewise.
14138         (__aeabi_llsr): Likewise.
14139         (__aeabi_lasr): Likewise.
14140         (__aeabi_llsl): Likewise.
14141         (bpabi.S): Include it.
14142         * config/arm/libgcc-bpabi.ver: New file.
14143         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
14144         (LINK_SPEC): Remove.
14145         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
14146         __aeabi_ulcmp.
14147         * config/arm/t-bpabi: New file.
14148         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
14149         (TARGET_LIB_INT_CMP_BIASED): Likewise.
14150
14151 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
14152
14153         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
14154         * config/rs6000/rs6000.md (clrmemsi): New pattern.
14155         * config/rs6000/rs6000.c (expand_block_clear): New function.
14156         (expand_block_move): Convert alignment to bits.  Use SImode and
14157         HImode for unaligned addresses if not STRICT_ALIGNMENT.
14158
14159 2004-08-10  Caroline Tice  <ctice@apple.com>
14160
14161         * varasm.c (unlikely_section_label): New global variable.
14162         (unlikely_text_section_name): New global variable.
14163         (text_section):  Remove alignment statement.
14164         (unlikely_text_section): Remove alignment statement; use
14165         unlikely_section_label rather than hard-coded string.
14166         (assemble_start_function): Initialize unlikely_section_label and
14167         unlikely_text_section_name;  make sure cold section is properly
14168         aligned at start of function; output unlikely_section_label if
14169         appropriate.
14170
14171 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
14172
14173         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
14174         * config/s390/s390.c (s390_canonicalize_comparison): New function.
14175         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
14176         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
14177         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
14178         ("*tmqi_mem"): Remove SUBREG from pattern.
14179         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
14180         ("*andsi3_cconly"): Likewise.
14181
14182 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
14183
14184         PR target/16909
14185         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
14186
14187 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
14188
14189         * doc/sourcebuild.texi (compat testing): Document available test
14190         framework commands.  Use the preferred spelling of DejaGnu.
14191
14192 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
14193
14194         * lambda.h: Add matrix type, and prototypes for remainder of
14195         matrix and vector functions.
14196         (lambda_vector_mult_const): New function.
14197         (lambda_vector_negate): Ditto.
14198         (lambda_vector_add): Ditto.
14199         (lambda_vector_add_mc): Ditto.
14200         (lambda_vector_copy): Ditto.
14201         (lambda_vector_zerop): Ditto.
14202         (lambda_vector_equal): Ditto.
14203         (lambda_vector_min_nz): Ditto.
14204         (lambda_vector_first_nz): Ditto.
14205         (lambda_vector_matrix_mult): Ditto.
14206         * lambda-mat.c: New file.
14207         * Makefile.in (lambda-mat.o): New.
14208
14209 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
14210
14211         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
14212         after linking stmt into the program.
14213         (bsi_remove): Don't call modify_stmt.
14214         * tree-complex.c (update_complex_assignment,
14215         expand_complex_comparison): Call modify_stmt after changing the stmt.
14216         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
14217         removing the stmt.
14218         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
14219         the stmt, and only if needed.
14220         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
14221         expression.
14222         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
14223         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
14224         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
14225         (eliminate_redundant_computations): Don't pass an annotation. Call
14226         modify_stmt rather than setting the annotation directly.
14227         (record_equivalences_from_stmt): Remove unused local 'j'.
14228         (cprop_operand): Take a stmt rather than an annotation as a parameter.
14229         Call modify_stmt.
14230         (cprop_into_stmt): Pass stmt rather than annotation.
14231         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
14232         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
14233         modify_stmt.
14234         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
14235
14236 2004-08-10  Jason Merrill  <jason@redhat.com>
14237
14238         PR middle-end/16948
14239         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
14240         the RESULT_DECL.
14241
14242 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
14243
14244         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
14245         hash function.
14246
14247 2004-08-10  Roger Sayle  <roger@eyesopen.com>
14248
14249         * config/mips/mips.md: New reciprocal square root patterns that
14250         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
14251
14252 2004-08-10  Paul Brook  <paul@codesourcery.com>
14253
14254         * config/arm/arm-protos.h (arm_set_return_address,
14255         thumb_set_return_address): Add prototypes.
14256         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
14257         * config/arm/arm.c (arm_compute_func_type,
14258         use_return_insn, arm_compute_save_reg0_reg12_mask,
14259         arm_compute_save_reg_mask, arm_output_function_prologue,
14260         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
14261         current_function_calls_eh_return.
14262         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
14263         old eh code.
14264         (arm_set_return_address, thumb_set_return_address): New functions.
14265         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
14266         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
14267         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
14268         (epilogue): Use the stackadj register.
14269         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
14270
14271 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
14272
14273         PR target/3144
14274         * expr.c (move_by_pieces_ninsns): Add max_size argument.
14275         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
14276         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
14277         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
14278         but using MOVE_RATIO.
14279         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
14280         (can_store_by_pieces): Change max_size type to unsigned int.
14281         (store_by_pieces_1): Likewise.  Pass max_size to
14282         move_by_pieces_ninsns.
14283         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
14284         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
14285         to move_by_pieces_ninsns.
14286         (STORE_BY_PIECES_P): Define.
14287         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
14288         to move_by_pieces_ninsns.
14289         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
14290
14291         * config/i386/i386.h (CLEAR_RATIO): Define.
14292
14293 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
14294
14295         * expr.c (expand_expr_real_1): Add back code that was not dead.
14296
14297 2004-08-09  Andrew Pinski  <apinski@apple.com>
14298
14299         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
14300         which is found to be compatible before returning the aliasing set.
14301
14302 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
14303
14304         * ggc-zone.c (struct alloc_zone): Add statistics counters.
14305         (always_collect): New flag.
14306         (ggc_alloc_zone_1): Update statistics support.  Don't include
14307         overhead in allocated counter.
14308         (sweep_pages): Update allocated counter for large pages.  Don'y
14309         include overhead.
14310         (ggc_collect_1): Always collect.
14311         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
14312         whether to collect.
14313         (SCALE, LABEL): New macros.
14314         (ggc_print_statistics): Add statistics support.
14315
14316 2004-08-09  Roger Sayle  <roger@eyesopen.com>
14317
14318         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
14319         (init_expmed): Fix potential overrun problem with "all.reg".
14320         (expand_sdiv2_pow2): Add an alternate implementation for signed
14321         division, if the target provides a suitable conditional move insn.
14322
14323 2004-08-09  Paul Brook  <paul@codesourcery.com>
14324         Richard Henderson  <rth@redhat.com>
14325
14326         * unwind-dw2.c (uw_install_context_1): Update target saved stack
14327         pointer.
14328
14329 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
14330
14331         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
14332         Check DATA limit only if there's no AS limit.  Ignore insanely
14333         low DATA limits.
14334         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
14335         but take care that the AS limit isn't overrun.
14336         * doc/invoke.texi: Update documentation of min-heapsize parameter.
14337
14338 2004-08-09  Jeff Law  <law@redhat.com>
14339
14340         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
14341         (tree-ssa-threadupdate.o): Add dependencies.
14342         * tree-ssa-threadupdate.c: New file.
14343         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
14344         (rewrite_vars_out_of_ssa): Remove prototype.
14345         (cleanup_tree_cfg): Returns a bool.
14346         * tree.h (thread_through_all_blocks): Prototype.
14347         * tree-outof-ssa.c  (SSANORM_*): Move into here.
14348         (remove_ssa_form): Now static.
14349         (rewrite_vars_out_of_ssa): Kill.
14350         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
14351         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
14352         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
14353         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
14354         anything was changed.
14355         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
14356         from the PHI's annotation rather than the edge associated with
14357         the new argument.
14358         * tree-ssa-dom.c (redirection_edges): Kill.
14359         (redirect_edges_and_update_ssa_graph): Kill.
14360         (tree_ssa_dominator_optimize): Do not reset forwardable flag
14361         for blocks anymore.  Do not initialize redirection_edges.
14362         Call thread_through_all_blocks.  Simplify code for cleanup
14363         of the CFG and iterating.  No longer call cleanup_tree_cfg
14364         outside the iteration loop.
14365         (thread_across_edge): No longer mess with forwardable blocks.
14366
14367 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
14368
14369         * explow.c (memory_address): Use memory_address_p.
14370         * recog.c (general_operand): Likewise.
14371         * regrename.c: No need to define REG_OK_STRICT.
14372
14373 2004-08-09  Steven Bosscher  <stevenb@suse.de>
14374
14375         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
14376         New timers.
14377         * gcse.c: Include timevar.h.
14378         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
14379         and global_copy_prop_count.
14380         (local_const_prop_count, local_copy_prop_count): New static globals.
14381         (gcse_main): Set the right timevar for each pass.
14382         (cprop_jump): Increment global_const_prop_count when a constant is
14383         propagated.  Add "GLOBAL" to dump output.
14384         (cprop_insn): Increment global_const_prop_count when a constant is
14385         propagated, or global_copy_prop_count when a copy is propagated.
14386         (do_local_cprop): Likewise for local_const_prop_count and
14387         local_copy_prop_count.
14388         (one_cprop_pass): Initialize const/cprop counters to zero.
14389         Print out results of local and global const/cprop separately.
14390         (bypass_block): Break over-length line.
14391         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
14392         for bb-reorder.o and tracer.o.
14393
14394 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
14395
14396         * Makefile.in (GTFILES): Remove stmt.c
14397         (stmt.o): Do not depend on gt-stmt.h.
14398         * emit-rtl.c (emit_line_note): Do not call
14399         set_file_and_line_for_stmt.
14400         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
14401         do everything.
14402         * function.c (free_after_parsing): Do not free STMT field.
14403         (allocate_struct_function): Do not call init_stmt_for_function.
14404         (assign_stack_temp_for_type): Do not accept values of keep
14405         other than 0 or 1.
14406         (init_temp_slots): Do not initialize removed variables.
14407         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
14408         and X_VAR_TEMP_SLOT_LEVEL fields.
14409         * rtl.h (set_file_and_line_for_stmt): Remove.
14410         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
14411         struct stmt_status, cond_stack, case_stack, nesting_stack,
14412         nesting_depth, emit_locus, set_file_and_line_for_stmt,
14413         same_case_target_p, init_stmt_for_function, emit_nop,
14414         expand_start_cond, expand_start_elseif, expand_start_else,
14415         expand_elseif, expand_end_cond): Remove.
14416         (preserve_subexpressions_p): Remove references to CFUN->STMT.
14417         (expand_start_case, expand_end_case_type): Remove, merge into...
14418         (expand_case): ... this one, including other bits from
14419         expand_expr_real_1.  Inline same_case_target_p.  Turn members
14420         of CASE_STACK into local variables.
14421         (emit_case_bit_tests): Inline same_case_target_p.
14422         (add_case_node): Add HEAD argument, return new head of the list,
14423         do not handle default label here.
14424         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
14425         expand_start_elseif, current_nesting_level, expand_start_case,
14426         expand_end_case_type, expand_end_case, add_case_node,
14427         init_stmt_for_function, expand_elseif): Remove prototypes.
14428         (expand_case): Add prototype.
14429
14430 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
14431
14432         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
14433
14434 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
14435
14436         * expr.c (var_rtx): Remove.
14437         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
14438         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
14439         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
14440         Abort.
14441         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
14442         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
14443         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
14444
14445 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
14446         Ayal Zaks <zaks@il.ibm.com>
14447
14448         * common.opt (freschedule-modulo-scheduled-loops): New flag.
14449         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
14450         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
14451         when -freschedule-modulo-scheduled-loops flag is not specified.
14452         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
14453         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
14454         More accurate placing of insn in row of partial schedule.
14455         (ps_insn_find_column): New function.
14456         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
14457         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
14458         (schedule_region): Use sched_is_disabled_for_current_region_p.
14459         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
14460
14461 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
14462
14463         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
14464         change.
14465
14466 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
14467
14468         * config/i386/i386.c (ix86_expand_clrmem): Properly call
14469         gen_strset for 64bit target.
14470
14471 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
14472
14473         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
14474
14475 2004-08-07  Jason Merrill  <jason@redhat.com>
14476
14477         Make return in memory explicit.
14478         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
14479         (assign_parm_find_data_types): Remove code for old front end
14480         invisible reference handling.
14481         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
14482         (expand_function_end): Likewise.
14483         * gimplify.c (gimplify_return_expr): Handle a dereferenced
14484         RESULT_DECL.
14485         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
14486         (declare_return_variable): Handle DECL_BY_REFERENCE.
14487         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
14488         (cp_genericize_r): Use convert_from_reference.
14489         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
14490         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
14491
14492         * c-common.c (c_warn_unused_result): Check TREE_USED before
14493         warning about a CALL_EXPR with an unused value.
14494
14495 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
14496
14497         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
14498         to the compiler.  Use -fshort-wchar by default.
14499
14500 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
14501
14502         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
14503         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
14504         threshhold.
14505         * doc/invoke.texi (param): Document min-crossjump-insns.
14506
14507 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
14508
14509         PR c/13282
14510         * c.opt (Wmissing-field-initializers): New option.
14511         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
14512         * c-typeck.c (pop_init_level): Guard the missing field warning with
14513         warn_missing_field_initializers rather than extra_warnings.
14514         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
14515         some of the explanation from...
14516         (-Wextra): ...here.  Say that the missing field warning can be
14517         seperately controlled by -Wmissing-field-initializers.
14518
14519 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
14520
14521         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
14522         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
14523         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
14524         * tree.def (ENTRY_VALUE_EXPR): Remove.
14525
14526 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
14527
14528         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
14529         the places where it is actually needed.  Don't use repz; stosb
14530         for -Os with sufficiently small constant sizes.
14531         For sufficiently small repz; stos{l,q} repeat counts use a sequence
14532         of stos{l,q} instructions instead.
14533
14534 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14535
14536         PR tree-optimization/16807
14537         * loop-iv.c (dump_iv_info): Dump invariants correctly.
14538         (iv_subreg, iv_extend): Express value of invariant purely in
14539         base field.
14540
14541 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
14542
14543         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
14544         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
14545
14546 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
14547
14548         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
14549         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
14550         pre_dec_operand.
14551         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
14552         pattern until reload is finished to allow better code generation
14553         and split them completely into separate instrunctions.
14554         (*andsi3_split): New pattern.
14555
14556 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
14557
14558         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
14559         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
14560         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
14561         * tree.h (handle_dll_attribute): Declare.  Test
14562         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
14563         * c-common.h (c_determine_visibility): Declare.
14564         * c-common.c (c_determine_visibility): New function.
14565         * c-decl.c (finish_decl): Use it.
14566         (finish_function): Likewise.
14567         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
14568         zero, by default.  Use #if, not #ifdef, to test it.
14569         * config/arm/arm.c (arm_attribute_table): Use
14570         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
14571         #if.
14572         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
14573         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
14574         to 1.
14575         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
14576         * config/i386/i386.c (ix86_attribute_table): Use
14577         handle_dll_attribute for dllimport/dllexport.  Test
14578         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
14579         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
14580         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
14581         it to 1.
14582         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
14583         with #if.
14584         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
14585         it to 1.
14586         * doc/extend.texi (dllexport): Clarify and correct documentation.
14587         (dllimport): Likewise.
14588         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
14589         handle_dll_attribute.
14590
14591 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14592
14593         * tree-ssa-loop-manip.c: New file.
14594         * Makefile.in (tree-ssa-loop-manip.o): Add.
14595         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
14596         Declare.
14597         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
14598         form.
14599         (tree_ssa_loop_done): Verify loop closed ssa form.
14600         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
14601
14602 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14603
14604         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
14605         pa_asm_output_aligned_local): New functions.
14606         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
14607         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
14608         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
14609         pa_asm_output_aligned_common.
14610         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
14611         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
14612         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
14613         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
14614         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
14615         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
14616         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
14617         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
14618         common data.
14619
14620 2004-08-05  Andrew Pinski  <apinski@apple.com>
14621
14622         * objc/objc-act.c (build_objc_string_object): Mark the address
14623         expression as constant.
14624
14625 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
14626
14627         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
14628         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
14629         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
14630
14631 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
14632
14633         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
14634         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
14635         out, and associated obsolete comments.
14636
14637 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
14638
14639         * tree.h (force_fit_type): Return a tree, take three flags.
14640         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
14641         TREE_CONSTANT_OVERFLOW here.
14642         (int_const_binop, const_binop): Adjust.
14643         (size_int_type): Do sign extension here.
14644         (fold_convert_const, optimize_bit_field_compare,
14645         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
14646         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
14647         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
14648
14649 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14650
14651         PR tree-optimization/16864
14652         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
14653         for ssa names without default_def.
14654
14655 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
14656
14657         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
14658         frame pointer, restore eax with an ebp-relative address.
14659
14660 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
14661
14662         PR 14516
14663         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
14664         * c-common.h (make_rtl_for_local_static): Delete.
14665         * c-decl.c (shadow_tag_warned): Clean up comment.
14666         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
14667         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
14668         * c-semantics.c (make_rtl_for_local_static): Delete.
14669         * expr.c (init_block_move_fn): Use set_user_assembler_name.
14670         (init_block_clear_fn): Likewise.
14671         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
14672         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
14673         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
14674         * tree.h (make_decl_rtl): Remove second parameter.
14675         (set_user_assembler_name): New.
14676         * varasm.c (set_user_assembler_name): New.
14677         (make_decl_rtl): Remove second parameter.  Update callers in many
14678         files.
14679
14680 2004-08-05  Adam Nemet  <anemet@lnxw.com>
14681
14682         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
14683         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
14684         to LynxOS 4.0.
14685         * gthr-lynx.h: New file.
14686         * config/lynx-ng.h: Remove file.
14687         * config/lynx.h: Update to LynxOS 4.0.
14688         * config/t-lynx: New file.
14689         * config/i386/lynx-ng.h: Remove file.
14690         * config/i386/lynx.h: Update to LynxOS 4.0.
14691         * config/rs6000/lynxbase.h: Remove file.
14692         * config/rs6000/lynx.h: Update to LynxOS 4.0.
14693         * config/rs6000/t-lynx: New file.
14694         * doc/install.texi (Options specification): Remove reference to
14695         LynxOS from systems where --with-gnu-as makes a difference.
14696
14697 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
14698
14699         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
14700         __UINTMAX_TYPE__.
14701         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
14702         __INTMAX_MAX__.
14703         (c_cpp_builtins): Call it.
14704         * doc/cpp.texi: Update.
14705
14706 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
14707
14708         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
14709         cost.
14710
14711 2004-08-04  Jan Hubicka  <jh@suse.cz>
14712
14713         * basic-block.h (profile_staus): New global variable.
14714         * cfg.c (profile_status): Declare.
14715         (check_bb_profile): Break out from ....; use profile_status
14716         (dump_flow_info): ... here.
14717         * cfgbuild.c (find_basic_blocks): Set profile_status.
14718         * cfgexpand.c (tree_expand_cfg): Likewise.
14719         * predict.c (estimate_probability): Likewise.
14720         * profile.c (branch_prob): Likewise.
14721         * tree-cfg.c (build_tree_cfg): Likewise.
14722         (dump_function_to_file): Use check_bb_profile.
14723         * tree-pretty-print (dump_bb_header): Likewise.
14724         * tree-profile.c (do_tree_profiling): Cleanup.
14725
14726 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
14727
14728         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
14729         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
14730         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
14731         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
14732         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
14733         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
14734         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
14735         (ggc-none.o, errors.o): Move rule to generators section;
14736         correct dependencies.
14737         (min-insn-modes.o): Move rule to generators section; remove
14738         unnecessary explicit command; correct dependencies.
14739         (print-rtl.o, print-rtl1.o): Correct dependencies.
14740         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
14741         (mostlyclean): Update.
14742
14743         * errors.c: Include bconfig.h not config.h.  Correct comment.
14744         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
14745         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
14746         * print-rtl.c: Don't include tm_p.h.
14747
14748         * rtl.h: Move forward-decl of struct function down where it's
14749         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
14750         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
14751
14752 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14753             Jeff Law  <law@redhat.com>
14754
14755         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
14756         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
14757         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
14758         manipulate the duplicated ssa names.
14759         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
14760         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
14761         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
14762         New functions.
14763         (release_ssa_name): Do not release ssa names that may have multiple
14764         definitions.
14765         * tree.h (release_ssa_name_force, mark_for_rewrite,
14766         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
14767         marked_ssa_names): Declare.
14768         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
14769         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
14770         Update call to rewrite_ssa_into_ssa.
14771
14772 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
14773
14774         * defaults.h (TARGET_DECLSPEC): New macro.
14775         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
14776         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
14777         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
14778         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
14779         __declspec support.
14780         (TARGET_DECLSPEC): Define.
14781         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
14782         __declspec support.
14783         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
14784         __declspec support.
14785         (TARGET_DECLSPEC): Define.
14786         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
14787         __declspec support.
14788         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
14789         support.
14790         * doc/tm.texi (TARGET_DECLSPEC): Document.
14791
14792         * doc/extend.texi: Fix typo in comment.
14793
14794 2004-08-04  Paul Brook  <paul@codesourcery.com>
14795
14796         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
14797         (TARGET_CXX): Use it.
14798         * target.h (struct gcc_target): Add cdtor_returns_this.
14799         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
14800         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
14801         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
14802
14803 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
14804
14805         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
14806         low/high pair. Do range checking directly.
14807         (interpret_integer): Adjust.
14808
14809 2004-08-04  Nick Clifton  <nickc@redhat.com>
14810
14811         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
14812         GCC ABI.
14813         * doc/invoke.texi: Document this new switch and also the -mrenesas
14814         switch.
14815
14816 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
14817
14818         * cfglayout.c (insn_locators_initialize): Update the current
14819         location before initializing a location.
14820
14821 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
14822
14823         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
14824         (dbxout_function_end): Return after emitting the "Lscope" symbol
14825         under the same conditions that this function formerly wasn't called.
14826         Add explanatory comments.
14827
14828         PR 14860
14829         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
14830         on the new decl.
14831
14832         PR 13956
14833         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
14834         functions, broken out of dbxout_block.
14835         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
14836         stabs too, if it contains symbols.  Use the begin_label and
14837         the Lscope label (emitted by dbxout_function_end) for the
14838         range of this block.
14839
14840 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
14841
14842         * doc/install.texi: Update autoconf version requirements.
14843
14844 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
14845
14846         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
14847         * recog.c (general_operand, immediate_operand, nonmemory_operand)
14848         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
14849         * regclass.c (record_reg_classes): Likewise.
14850         * reload.c (find_reloads): Likewise.
14851         * reload1.c (reload): Likewise.
14852
14853 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
14854
14855         * gensupport.c (init_md_reader_args_cb): Renamed from
14856         init_md_reader_args.  Add third option, callback function for
14857         parsing program-specific options.  Add diagnosis of incorrect
14858         number of input files.
14859         (init_md_reader): Fold into init_md_reader_args_cb.
14860         (init_md_reader_args): Now a thin wrapper around
14861         init_md_reader_args_cb.
14862         * gensupport.h: Update prototypes.
14863
14864         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
14865         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
14866         * genrecog.c: No need to diagnose lack of an input file;
14867         init_md_reader_args will handle it.
14868         * genconditions.c: Likewise, and use init_md_reader_args.
14869         * genconstants.c: Likewise, and no need to call read_md_rtx.
14870
14871 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
14872
14873         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
14874         declarations.
14875
14876 2004-08-03  Mike Stump  <mrs@apple.com>
14877
14878         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
14879         for frameworks.
14880         * doc/invoke.texi (Darwin Options): Update to reflect above.
14881
14882 2004-08-03  Roger Sayle  <roger@eyesopen.com>
14883
14884         PR middle-end/16790
14885         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
14886         truncations, not just global truncations.
14887
14888 2004-08-03  Andrew Pinski  <apinski@apple.com>
14889
14890         PR bootstrap/16865
14891         * loop-iv.c (simplify_using_assignment): Initialize lhs.
14892
14893 2004-08-03  Paul Brook  <paul@codesourcery.com>
14894
14895         * gcc/doc/install.texi: Document MPFR requirement.
14896
14897 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
14898
14899         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
14900         and mmap() explicitly instead of relying on preset autoconf cache
14901         variables.
14902         * configure: Regenerate.
14903
14904 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
14905
14906         PR target/16570
14907         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
14908         to tmake_file.
14909         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
14910         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
14911         to tmake_file.
14912
14913         * config/i386/t-gmm_malloc: New file.
14914         * config/i386/t-pmm_malloc: Likewise.
14915
14916         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
14917
14918 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
14919             Tanguy Fautrà <tfautre@pandora.be>
14920
14921         * config/i386/pmm_malloc.h: New file.
14922
14923 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
14924
14925         * config/i386/gmm_malloc.h: New file.
14926
14927 2004-08-03  Dale Johannesen  <dalej@apple.com>
14928
14929         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
14930         * c-common.c: Include opts.h.
14931         (c_common_get_alias_set): Fix check for a single input file.
14932         * toplev.c: Remove current_file_decl.
14933         * tree.h: Ditto.
14934
14935 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
14936
14937         * config.gcc (arm*-*-symbianelf*): New target.
14938         * config/arm/symbian.h: New file.
14939
14940         * gthr-gnat.c: Add visibility #pragmas.
14941         * gthr-gnat.h : Likewise.
14942         * gthr.h: Likewise.
14943         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
14944         (__ffsDI2): Likewise.
14945         (__clzSI2): Likewise.
14946         (__ctzSI2): Likewise.
14947         (__ctzDI2): Likewise.
14948         (__popcountSI2): Likewise.
14949         (__popcountDI2): Likewise.
14950         (__paritySI2): Likewise.
14951         (__parityDI2): Likewise.
14952         * libgcc2.h: Add visibility #pragmas.
14953         (__clzDI2): Add prototype.
14954         (__clzSI2): Likewise.
14955         (__ctzSI2): Likewise.
14956         (__ffsDI2): Likewise.
14957         (__ffsSI2): Likewise.
14958         (__ctzDI2): Likewise.
14959         (__popcountSI2): Likewise.
14960         (__popcountDI2): Likewise.
14961         (__paritySI2): Likewise.
14962         (__parityDI2): Likewise.
14963         * unwind-dw2-fde.h: Add visibility #pragmas.
14964         * unwind.h: Likewise.
14965
14966 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
14967             Dale Johannesen  <dalej@apple.com>
14968             Roger Sayle  <roger@eyesopen.com>
14969
14970         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
14971         constants more accurately.  Adjust costs for FMA instructions.
14972         Add cases for most logical and float operations.  Recurse into
14973         most operands.
14974
14975 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
14976
14977         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
14978
14979 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
14980
14981         * ra-build.c (conflicts_between_webs): For webs that cross a call add
14982         conflicts to regs_invalidated_by_call.
14983
14984 2004-08-03  Paul Brook  <paul@codesourcery.com>
14985
14986         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
14987
14988 2004-08-03  Jan Hubicka  <jh@suse.cz>
14989
14990         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
14991         ARRAY_REF argument.
14992
14993 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
14994
14995         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
14996         arm968es, arm10e, arm1020e, arm1022e.
14997         * invoke.texi: Update list of ARM cores.
14998         * arm-tune.md: Regenerate.
14999
15000 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
15001
15002         * arm/gentune.sh: New file.
15003         * arm/t-arm: New file.
15004         * arm/arm-tune.md: New file (autogenerated).
15005         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
15006         * arm.md (attribute tune): Delete.  Include arm-tune.md.
15007
15008 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
15009
15010         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
15011         penultimate parameter.  All callers adjusted.
15012         (struct prefix_list): Remove used_flag_ptr.
15013         (find_a_file): Do not set *pl->used_flag_ptr.
15014         (warn_B, warn_std_ptr): Remove.
15015
15016 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
15017             Mostafa Hagog <mustafa@il.ibm.com>
15018
15019         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
15020
15021 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
15022
15023         * dwarf2out.c (output_call_frame_info): Don't change data format
15024         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
15025         label.  Use 'true' not '1'.
15026         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
15027         required.
15028
15029 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15030
15031         * gdbinit.in: Reflect previous changes to rtunion_def.
15032
15033 2004-08-02  Roger Sayle  <roger@eyesopen.com>
15034
15035         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
15036         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
15037
15038 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15039
15040         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
15041         vec_p_reserve.
15042         * langhooks.h (lang_hooks::builtin_function): Rename parameter
15043         from "class" to "bt_class".
15044
15045 2004-08-02  Paul Brook  <paul@codesourcery.com>
15046
15047         PR rtl-optimization/15068
15048         * flow.c (init_propagate_block_info): Check condition is reversible.
15049
15050 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15051
15052         * gengtype.h (options::info): Change type to const char *.
15053         (enum gc_used_enum): Move out of struct type scope.
15054         * gengtype.c (create_option): Convert initializer for option::info to
15055         appropiate type.
15056         (adjust_field_type, walk_type, write_func_for_structure,
15057         write_root, write_roots): Remove pointless cast.
15058
15059 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
15060
15061         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
15062
15063 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15064
15065         * rtl.h (union rtunion_def): Have all members  start with the
15066         prefix "rt_".
15067         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
15068         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
15069         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
15070         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
15071         access.
15072         * gengtype.c (adjust_field_rtx_def): Likewise.
15073         * rtlanal.c (loc_mentioned_in_p): Likewise.
15074
15075 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
15076
15077         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
15078         Replace uses of mips/elf64.h with mips/elf.h
15079         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
15080         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
15081         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
15082         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
15083         (HANDLE_SYSV_PRAGMA): Delete.
15084         (ASM_OUTPUT_DEF): Fix formatting.
15085         * config/mips/elf64.h: Delete.
15086
15087 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
15088
15089         * config/ia64/ia64.c (got_symbolic_operand): Do require a
15090         symbol+offset operand to have its offset be zero mod 0x3fff
15091         when GOT entries are in use.  Clarify logic in SYMBOL_REF
15092         case.  Clarify comments.
15093         (ia64_expand_load_address): Split a symbol+offset load when
15094         the offset is nonzero mod 0x3fff, not 0x1fff.
15095
15096 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
15097
15098         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
15099         if trying to *store* to a non-offsettable address.
15100         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
15101         a nonoffsettable address.
15102         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
15103         Clean up.
15104         (movti_string): Don't move GPRs to a nonoffsettable address.
15105         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
15106
15107 2004-08-02  Ben Elliston  <bje@au.ibm.com>
15108
15109         PR target/16155
15110         * config/rs6000/altivec.h: Replace typeof with __typeof__.
15111
15112 2004-08-01  Richard Henderson  <rth@redhat.com>
15113
15114         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
15115         variable sized types.
15116
15117 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
15118
15119         * doc/invoke.texi: In the MIPS options section, remove the passage
15120         saying that -mexplicit-relocs is usually disabled for -mabicalls
15121         -fno-unit-at-a-time.
15122         * config/mips/mips.c (override_options): Remove the code that enforced
15123         this rule.
15124
15125 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
15126
15127         * config/mips/mips.md (cprestore): Provide two alternatives, one for
15128         an in-range offset and one for an out-of-range offset.  Wrap the latter
15129         in .set macro/.set nomacro if it's inside a .set nomacro block.
15130
15131 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
15132
15133         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
15134         (mips_restore_gp): Declare.
15135         * config/mips/mips.c (mips_add_offset): Add a scratch register
15136         argument.  Reimplement in rtl only, reusing MIPS16 logic from
15137         mips_output_mi_thunk.
15138         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
15139         to mips_add_offset.
15140         (mips_gp_save_slot): Delete.
15141         (mips_restore_gp): New function.
15142         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
15143         * config/mips/mips.md (exception_receiver): Turn into a
15144         define_insn_and_split.  Use mips_restore_gp to do the split.
15145         (call_internal, call_value_internal, call_value_multiple_internal): Use
15146         mips_restore_gp to restore $gp.
15147
15148 2004-07-31  Andrew Pinski  <apinski@apple.com>
15149
15150         PR other/16842
15151         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
15152
15153 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
15154
15155         * c-decl.c (diagnose_mismatched_decls): Give error for external
15156         redeclaration of identifier declared with no linkage, not just
15157         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
15158         error for redeclaration with no linkage.
15159
15160 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
15161             Fariborz Jahanian <fjahanian@apple.com>
15162
15163         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
15164         non-offsettable addresses even for DImode.
15165         (rs6000_split_multireg_move): Cope with non-offsettable addresses
15166         being moved into multiple GPRs.
15167
15168         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
15169         to 64.
15170         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
15171         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
15172         to 128.
15173         * config/rs6000/darwin-ldouble.c (isless): New macro.
15174         (inf): New macro.
15175         (nonfinite): New macro.
15176         (FPKINF): Delete.
15177         (_xlqadd): Completely rewrite.
15178         (_xlqmul): Correct overflow handling.
15179         (_xlqdiv): Correct overflow handling.
15180         * config/rs6000/darwin-ldouble-format: New file.
15181
15182 2004-07-30  Roger Sayle  <roger@eyesopen.com>
15183             Richard Henderson  <rth@redhat.com>
15184
15185         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
15186         9 into the equivalent lea instruction.
15187
15188 2004-07-30  Richard Henderson  <rth@redhat.com>
15189
15190         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
15191         with DECL_INITIAL if fb_lvalue.
15192         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
15193         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
15194         with <Cxxx>.
15195         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
15196
15197 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
15198
15199         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
15200         pointer escapes through a function call, assume that the
15201         callee will dereference it.
15202         (add_pointed_to_var): Assume that VALUE is always an
15203         ADDR_EXPR.
15204         (collect_points_to_info_r): Only call add_pointed_to_var if
15205         the value is an ADDR_EXPR.
15206
15207 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
15208
15209         * tree-ssa-alias.c (create_alias_map_for): Do not get the
15210         alias set of the inner type of ARRAY_TYPEs.
15211
15212 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
15213
15214         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
15215         setting a non-register to UNDEFINED right before the call to
15216         set_lattice_value.
15217
15218 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
15219
15220         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
15221
15222 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
15223
15224         * tree-ssa.c (verify_flow_sensitive_alias_info): When
15225         comparing points-to sets of different pointers, make sure the
15226         second pointer is actually referenced in the code.
15227
15228 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
15229
15230         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
15231         (got_symbolic_operand): Remove unreachable code.
15232         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
15233         setjmp_operand; add entry for tls_symbolic_operand.
15234         * config/ia64/ia64-protos.h: Remove all prototypes of
15235         predicate functions.
15236
15237 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
15238
15239         * c-common.h (lang_post_pch_load): New variable.
15240         * c-pch.c (lang_post_pch_load): Define it.
15241         (c_common_read_pch): Use it.
15242         * cgraphunit.c (record_call_1): Give the front end a chance to
15243         record additional needed entities when a variable is marked as
15244         needed.
15245         * tlink.c (recompile_files): Robustify.
15246         (scan_linker_output): If a symbol is assigned to a file,
15247         but after recompilation is not present there, issue an error
15248         message.
15249
15250 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15251
15252         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
15253         Take orig_loop argument and pass it to set_level.
15254         (schedule_sm): Pass the correct orig_loop to force_move_till.
15255
15256 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15257
15258         * cfgloop.c (update_latch_info): Update dominator of the new block.
15259         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
15260         info.
15261         * dominance.c (verify_dominators): Check that the dominance tree is
15262         connected.
15263         (recount_dominator): Ignore unreachable blocks.
15264         (iterate_fix_dominators): Cleanup old dominance information before
15265         recomputing it.
15266
15267 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
15268
15269         * tree-ssa-operands.c (get_expr_operands): Revert changes
15270         to ADDR_EXPR processing introduced by:
15271             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15272             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
15273
15274 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
15275
15276         * doc/implement-c.texi: Add C90 subclause references.  Point to
15277         preprocessor documentation instead of duplicating it.  Add points
15278         only present in C90.  Fill in documentation for all points.
15279
15280 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15281
15282         * pa.c (output_movb): Correct typo.
15283
15284 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
15285
15286         * ra.h (single_reg_in_regclass): Declare.
15287         * ra.c (single_reg_in_regclass): Define.
15288         (first_hard_reg): New.
15289         (init_ra): Initialize single_reg_in_regclass.
15290         * ra-colorize.c (ok_class): New.
15291         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
15292
15293 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
15294
15295         * gcov-io.h: Allow zero tag as EOF indicator.
15296         (gcov_is_eof): Remove.
15297         (gcov_truncate): Remove.
15298         * gcov-io.c (gcov_seek): Always SEEK_SET.
15299         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
15300         EOF tag.
15301         * coverage.c (read_counts_file): Don't use gcov_is_eof.
15302         * gcov-dump.c (dump_file): Likewise.
15303         * gcov.c (read_graph_file, read_count_file): Likewise.
15304
15305         * c-decl.c (complete_array_type): Don't gratuitously copy
15306         maxindex.  Check it always has a type.
15307
15308 2004-07-29  Steven Bosscher  <stevenb@suse.de>
15309
15310         * rtl.c (currently_expanding_to_rtl): New.
15311         * rtl.h (currently_expanding_to_rtl): Export it.
15312         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
15313
15314         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
15315         inliner hack.
15316         * config/sh/sh.c: Replace rtx_equal_function_value_matters
15317         with currently_expanding_to_rtl.
15318         * config/sh/sh.md: Likewise.
15319         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
15320
15321 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
15322
15323         Introduce sh2a support.
15324         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
15325         * config.gcc: Build multilibs for sh2a and sh2a-single by
15326         default.
15327         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
15328         default.  Split their tests out of the corresponding SH4
15329         multilibs.
15330         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
15331         multilibs for SH2a.
15332         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
15333         * config.gcc: Handle sh2a multilibs and cpu selection.
15334         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
15335         * config/sh/t-mlib-sh2a: New.
15336         * config/sh/t-mlib-sh2a-nofpu: New.
15337         * config/sh/t-mlib-sh2a-single: New.
15338         * config/sh/t-mlib-sh2a-single-only: New.
15339         2004-07-09  Nick Clifton  <nickc@redhat.com>
15340         Issue 43400
15341         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
15342         -ml and -m2a are used together.
15343         2004-03-23  DJ Delorie  <dj@redhat.com>
15344         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
15345         when we have a double-sized FPU.
15346         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
15347         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
15348         is set.
15349         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
15350         -msh2a-single and -msh2a-single-only
15351         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
15352         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
15353         is set.
15354         2004-02-20  DJ Delorie  <dj@delorie.com>
15355         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
15356         2004-02-20  Fred Fish <fnf@redhat.com>,
15357         Corinna Vinschen <vinschen@redhat.com>
15358         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
15359         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
15360         2004-02-18  DJ Delorie  <dj@redhat.com>
15361         * config/sh/sh.c (broken_move): Add support for movi20.
15362         * config/sh/sh.h: Likewise.
15363         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
15364         * config/sh/sh.md (udivsi3_sh2a): New.
15365         (udivsi3): Call it.
15366         (divsi3_sh2a): New.
15367         (divsi3): Call it.
15368         (mul_r): New.
15369         (ashlsi3_sh2a): New.
15370         (ashrsi3_sh2a): New.
15371         (lshrsi3_sh2a): New.
15372         (movsi_i): Disable for sh2a.
15373         (movsi_ie): Add movi20.
15374         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
15375         sh2a, for -m2a-nofpu mode.
15376         2004-02-13  DJ Delorie  <dj@redhat.com>
15377         * config/sh/lib1funcs.asm: Handle double vs single better.
15378         * config/sh/sh.h: Likewise.
15379         2004-02-09  DJ Delorie  <dj@redhat.com>
15380         * config/sh/crt1.asm: Add support for sh2a.
15381         * config/sh/elf.h: Likewise.
15382         * config/sh/lib1funcs.asm: Likewise.
15383         * config/sh/sh.c: Likewise.
15384         * config/sh/sh.md: Likewise.
15385         * config/sh/sh.h: Likewise.
15386         * config/sh/t-sh: Likewise.
15387
15388 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
15389
15390         * config/frv/frv.md (movqi_internal, movhi_internal,
15391         movsi_internal): Add backup alternatives for memory inputs.
15392
15393 2004-07-28  Matt Austern  <austern@apple.com>
15394
15395         * config/darwin.c (darwin_one_byte_bool): New global variable.
15396         * config/darwin.h (darwin_one_byte_bool): Declare.
15397         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
15398         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
15399         value of darwin_one_byte_bool.
15400         * doc/invoke.texi: Document -mone-byte-bool flag.
15401
15402 2004-07-28  Eric Christopher  <echristo@redhat.com>
15403
15404         * c-common.c (c_common_unsafe_for_reeval): Delete.
15405         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
15406         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
15407         * calls.c (fix_unsafe_tree): Delete.
15408         (expand_call): Delete code which used above.
15409         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
15410         * expr.c (expand_expr_real_1): Ditto.
15411         * fold-const.c (non_lvalue): Ditto.
15412         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
15413         (lhd_unsafe_for_reeval): Ditto.
15414         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
15415         * langhooks.h (unsafe_for_reeval): Ditto.
15416         (unsave_expr_now): Adjust comment.
15417         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
15418         (estimate_num_insns_1): Ditto.
15419         * tree-pretty-print.c (dump_generic_node): Ditto.
15420         * tree.c (expr_align): Ditto.
15421         (unsave_expr): Delete.
15422         (unsafe_for_reeval): Ditto.
15423         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
15424         * tree.def (UNSAVE_EXPR): Delete.
15425         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
15426
15427 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
15428
15429         * tree.h (enum tls_model): Move ...
15430         * coretypes.h: ... here.
15431
15432 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
15433
15434         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
15435
15436 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
15437
15438         * cse.c (validate_canon_reg): New function, split out from...
15439         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
15440
15441 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
15442
15443         * tree-ssa-alias.c (maybe_create_global_var): Don't just
15444         return if .GLOBAL_VAR has been created.
15445
15446 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
15447
15448         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
15449         every variable that may have aliases, not just tags.
15450
15451 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
15452
15453         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
15454         move_from_CR_eq_bit.
15455         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
15456
15457
15458         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
15459         e500_flip_eq_bit.
15460
15461         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
15462         output_e500_flip_eq_bit.
15463
15464         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
15465         output_e500_flip_eq_bit.
15466         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
15467         output_e500_flip_eq_bit.
15468         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
15469         (print_operand): case D.  Get to EQ bit.
15470
15471 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
15472
15473         * gcov.c (function_summary): Add missing \n.
15474
15475 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
15476
15477         Introduce sh4a support.
15478         * config.gcc: Handle sh4a multilibs and cpu selection.
15479         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
15480         * config/sh/t-mlib-sh4a: New.
15481         * config/sh/t-mlib-sh4al: New.
15482         * config/sh/t-mlib-sh4a-nofpu: New.
15483         * config/sh/t-mlib-sh4a-single: New.
15484         * config/sh/t-mlib-sh4a-single-only: New.
15485         2004-02-20  DJ Delorie  <dj@redhat.com>
15486         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
15487         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
15488         2003-08-22  Eric Christopher  <echristo@redhat.com>
15489         * config/sh/sh4a.md: Update for chip errata.
15490         2003-08-07  Eric Christopher  <echristo@redhat.com>
15491         * config/sh/sh4a.md: New file. sh4a processor description.
15492         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
15493         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
15494         of -m4a-nofpu.
15495         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
15496         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
15497         * doc/invoke.texi (SH Options): Document -m4al.
15498         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
15499         * config/sh/sh.c (expand_block_move): Remove commented-out code
15500         checked in by mistake.
15501         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
15502         single elements from SFmode vectors.
15503         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
15504         register.
15505         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
15506         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
15507         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
15508         sh_fsca_int2sf): Remove variable declarations.
15509         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
15510         sh_fsca_int2sf): New functions.
15511         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
15512         sh_fsca_int2sf_rtx): New static variables.
15513         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
15514         sh_fsca_int2sf): Declare.
15515         * config/sh/sh.md: Adjust.
15516         * doc/invoke.texi (SH Options): Document new options.
15517         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
15518         compatibility from SH4 code.
15519         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
15520         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
15521         early.
15522         (memory_movsrc_operand): Renamed to...
15523         (unaligned_load_operand): ... this.  Simplified.
15524         * config/sh/sh.h (PREDICATE_CODES): Adjust.
15525         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
15526         input operand to SImode, and adjust the others.  Introduce
15527         post-increment by peephole.
15528         * config/sh/sh.c (expand_block_move): Give the target address the
15529         same mode as the temp reg.
15530         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
15531         copying.
15532         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
15533         Introduce support for SH4a.
15534         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
15535         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
15536         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
15537         sh_fsca_int2sf): New.
15538         (sh_init_builtins): Initialize them.
15539         (print_operand): Support `d'.
15540         (expand_block_move): Use movua if src is misaligned.
15541         (memory_movsrc_operand): New.
15542         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
15543         and one of the SH4 macros.
15544         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
15545         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
15546         SELECT_SH4A_SINGLE): New.
15547         (TARGET_NONE): Add SH4A_BIT.
15548         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
15549         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
15550         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
15551         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
15552         (enum processor_type): Added PROCESSOR_SH4A.
15553         (PREDICATE_CODES): Add memory_movsrc_operand.
15554         * config/sh/sh.md: Removed unused variables.
15555         (attr cpu): Add sh4a.
15556         (attr type): Add movua, fsrra and fsca.
15557         (prefetch): New, for SH4.
15558         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
15559         (toggle_sz): Set type to fp.
15560         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
15561         (movua, extv, extzv): New.
15562         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
15563         and 4a-single-only.
15564
15565 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
15566
15567         * tree-optimize.c (init_tree_optimization_passes): Schedule
15568         pass_may_alias right after the program is renamed into SSA.
15569         * tree-pass.h (PROP_alias): Define.
15570         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
15571         * tree-sra.c (pass_sra): Likewise.
15572         * tree-ssa-ccp.c (pass_ccp): Likewise.
15573         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
15574         * tree-ssa-dce.c (pass_dce): Likewise.
15575         * tree-ssa-dom.c (pass_dominator): Likewise.
15576         * tree-ssa-dse.c (pass_dse): Likewise.
15577         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
15578         * tree-ssa-loop-ch.c (pass_ch): Likewise.
15579         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
15580         * tree-ssa-pre.c (pass_pre): Likewise.
15581         * tree-tailcall.c (pass_tail_recursion): Likewise.
15582         * tree-ssa.c (pass_redundant_phi): Likewise.
15583         * tree-ssa-alias.c (aliases_computed_p): Remove.
15584         Update all users.
15585         (init_alias_info): Do not mark all type tags for renaming
15586         unconditionally.
15587         Clear may_aliases from every symbol.
15588         (setup_pointers_and_addressables): If a pointer has not been
15589         dereferenced and it had a type tag, clear it and mark the old
15590         tag for renaming.
15591
15592 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
15593
15594         PR tree-optimization/16705
15595         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
15596         .GLOBAL_VAR.
15597
15598 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15599
15600         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
15601         check.
15602
15603         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
15604         don't make another one.
15605
15606         PR optimization/15077
15607         * function.h (struct function): Add field saved_static_chain_decl.
15608         Fix comment for static_chain_decl.
15609         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
15610         * tree-inline.h (save_body): Add new arg.
15611         * tree-optimize.c (tree_rest_of_compilation): Handle saving
15612         static_chain_decl.
15613
15614 2004-07-27  Richard Henderson  <rth@redhat.com>
15615
15616         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
15617         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
15618         is_gimple_addressable.
15619         * tree-gimple.c (is_gimple_addressable): Rename from
15620         is_gimple_addr_expr_arg; accept INDIRECT_REF.
15621         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
15622         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
15623         rename to is_gimple_addressable.
15624
15625 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
15626
15627         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
15628
15629 2004-07-27  Richard Henderson  <rth@redhat.com>
15630
15631         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
15632         before rounding.
15633
15634 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
15635
15636         * libgcc2.c: Change all conditionals testing
15637         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
15638         * libgcc2.h: Likewise.
15639         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
15640         TYPE_PRECISION of float80_type to 80.
15641         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
15642         of fpreg_type and float80_type to 80.
15643         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
15644         * config/m68k/netbsd-elf.h:
15645         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
15646         to evaluate to 80 whenever they would formerly have evaluated to 96.
15647         * config/i386/sco5.h: Remove unnecessary redefinition of
15648         LONG_DOUBLE_TYPE_SIZE.
15649         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
15650         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
15651         XFmode, with a bitsize of 80.  Update commentary.
15652         * config/ia64/ia64-modes.def: Likewise.
15653         * config/m68k/m68k-modes.def: Likewise.
15654
15655 2004-07-27  Steven Bosscher  <stevenb@suse.de>
15656
15657         * cfgexpand.c (tree_expand_cfg): Fix comment.
15658
15659         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
15660         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
15661         Remove.
15662         (prepare_function_start): Don't set rtx_equal_function_value_matters.
15663         * integrate.c (copy_rtx_and_substitute): Don't test for it.
15664         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
15665         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
15666         here again.  Update leading comment.
15667         * rtl.c (rtx_equal_function_value_matters): Remove.
15668         (rtx_equal_p): Don't test for it.
15669         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
15670         Likewise.
15671
15672         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
15673         * rtl.c (note_insn_name): Likewise.
15674         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
15675         * final.c (final_scan_insn): Likewise.
15676
15677         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
15678         * passes.c (rest_of_handle_eh): Do it here.
15679
15680         * stmt.c (struct nesting): Remove struct nesting block member.
15681         (struct stmt_status): Remove x_block_start_count field.
15682         (current_block_start_count): Remove.
15683
15684 2004-07-27  Brian Booth  <bbooth@redhat.com>
15685
15686         * tree-optimize.c (register_one_dump_file): Update condition that uses
15687         static_pass_number.
15688         (dup_pass_1): Replace with...
15689         (next_pass_1): This.
15690         (NEXT_PASS): Call next_pass_1.
15691         (DUP_PASS): Remove.
15692         (init_tree_optimization_passes): Remove uses of DUP_PASS.
15693         (execute_one_pass): Update condition that uses
15694         static_pass_number.
15695         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
15696         integer.
15697
15698 2004-07-27  Nick Clifton  <nickc@redhat.com>
15699
15700         * config/m32r/m32r.c: Include integrate.h in order to get the
15701         prototype for get_hard_reg_initial_val().
15702
15703         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
15704         and tidy up indentation.
15705         (final_presence_set): Use absence_set instead, so that if there is
15706         nothing in the "o" pipe the "s" pipe can be scheduled.
15707
15708 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
15709
15710         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
15711         don't have PT_VARS nor PT_MALLOC set.
15712         Clear name tag from pointers that have not been dereferenced.
15713         (set_pt_anything, set_pt_malloc): Forward declare.
15714         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
15715         not type compatibility when determining if a pointer can be
15716         copy propagated.
15717
15718 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
15719
15720         * expr.h (canonicalize_condition, get_condition): Add an int argument.
15721         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
15722         it to check whether the condition is still valid at the jump insn.
15723         * ifcvt.c (noce_get_condition): Likewise.
15724         (noce_get_alt_condition): Update call to canonicalize_condition.
15725         * loop-iv.c (simplify_using_initial_values): Update call to
15726         get_condition.  Remove FIXME.
15727         (check_simple_exit): Update call to get_condition.
15728         * loop-unswitch.c (may_unswitch_on): Likewise.
15729         * loop.c (check_dbra_loop): Likewise.
15730         (canonicalize_condition, get_condition): Add an argument to say whether
15731         the condition must still be valid at INSN.
15732         (get_condition_for_loop): Update call to get_condition.  Require that
15733         the condition be valid at INSN.
15734         * predict.c (estimate_probability): Update call to get_condition.
15735         Remove unused earliest parameter.
15736         (expected_value_to_br_prob): Update call to canonicalize_condition.
15737
15738 2004-07-26  Eric Christopher  <echristo@redhat.com>
15739
15740         * tree-dfa.c (add_referenced_var): Register initializers of global
15741         variables.
15742
15743 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
15744
15745         * config/i386/i386.c (function_arg): Always treat 8-
15746         and 16-byte wide vectors the same, even if MMX/SSE
15747         are disabled.
15748         (contains_128bit_aligned_vector_p): Add comment.
15749
15750 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
15751
15752         * ra.h (enum node_type): Rename to:
15753         (enum ra_node_type).
15754         * ra-colorize.c: Likewise.
15755
15756 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
15757
15758         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
15759         after simplifying the jump.
15760
15761 2004-06-26  Richard Henderson  <rth@redhat.com>
15762
15763         * calls.c (combine_pending_stack_adjustment_and_call): Make
15764         preferred_unit_stack_boundary argument unsigned.  Make
15765         unadjusted_alignment unsigned.
15766         (expand_call): Make preferred_stack_boundary and
15767         preferred_unit_stack_boundary variables unsigned.
15768         * function.c (assign_stack_local_1): Make alignment unsigned.
15769         * function.h (struct function): Make stack_alignment_needed,
15770         preferred_stack_boundary unsigned.
15771         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
15772         (ix86_compute_frame_layout): Make stack_alignment_needed,
15773         preferred_alignment variables unsigned.
15774         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
15775
15776 2004-07-26  Tom Tromey  <tromey@redhat.com>
15777
15778         * tree.h: Fix typo in comment.
15779
15780 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
15781
15782         PR bootstrap/12804
15783         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
15784         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
15785         (ggc_free): Remove incorrect freeing.
15786         (sweep_pages): Advance PP for large pages.  Fix indentation.
15787
15788 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
15789
15790         PR rtl-optimization/16643
15791         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
15792         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
15793         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
15794         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
15795         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
15796         * function.c (thread_prologue_and_epilogue_insns): Likewise.
15797         * rtl.h (tracer): Add a flags parameter.
15798         * tracer.c (tracer): Pass it to cfg_layout_initialise.
15799         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
15800         (rest_of_handle_reorder_blocks): Update calls to tracer and
15801         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
15802         (rest_of_handle_tracer): Pass 0 to tracer.
15803         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
15804
15805 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
15806
15807         PR target/16239
15808         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
15809         f->f.
15810
15811 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
15812
15813         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
15814         (BINFO_BASE_ACCESS): Adjust.
15815         (BINFO_BASE_ACCESS_APPEND): New.
15816         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
15817         * dbxout.c (dbxout_type): Adjust binfo access accessing.
15818         * dwarf2out.c (gen_member_die): Likewise.
15819         * tree-dump.c (deque_and_dump): Likewise.
15820
15821 2004-07-26  Falk Hueffner  <falk@debian.org>
15822
15823         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
15824         costs.
15825
15826 2004-07-25  Roger Sayle  <roger@eyesopen.com>
15827
15828         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
15829         value off of the stack if TARGET_USE_FFREEP.
15830
15831 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
15832
15833         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
15834         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
15835         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
15836         check on invocation of XRESIZEVEC ().
15837
15838 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
15839
15840         * c-common.c (disable_builtin_function): Rename variable n to
15841         new_disabled_builtin.
15842         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
15843         Rename local variable old to old_decl.
15844         * gensupport.c (shift_output_template): Rename parameter old to src.
15845         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
15846         old_rtx and newx to new_rtx.
15847
15848 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
15849
15850         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
15851         of c-pragma.h.
15852         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
15853         enum cpp_ttype.
15854         * c-lex.c: Likewise.
15855
15856 2004-07-25  Roger Sayle  <roger@eyesopen.com>
15857
15858         * fold-const.c (constant_boolean_node): Make extern.
15859         (make_range): Wrap long lines.
15860         (fold_cond_expr_with_comparison): Remove unnecessary call to
15861         pedantic_non_lvalue.  Add missing calls to fold_convert.
15862         (fold_truthop): Add missing calls to fold_convert.
15863         (fold): Likewise.
15864         * tree.h (constant_boolean_node): Add prototype here.
15865         * builtins.c (expand_builtin_strncmp): Add missing calls to
15866         fold_convert.
15867         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
15868         Call fold_convert and constant_boolean_node to correct types.
15869         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
15870         missing call to fold_convert to correct types.
15871
15872 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
15873             Brian Ryner  <bryner@brianryner.com>
15874
15875         PR c++/9283
15876         PR c++/15000
15877         * c-common.c (c_common_attribute_table): Allow
15878         handle_visibility_attribute to be called for types.
15879         (handle_visibility_attribute) When given a type, set the visibility
15880         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
15881         so that we can check later whether the attribute was present. Added
15882         warning if attribute applied to non class type.
15883         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
15884         decls and checking that they are consistent.
15885         * common.opt: Added -fvisibility.
15886         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
15887         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
15888         * flags.h, tree.h: Added assorted support defines for overall patch
15889         * opts.c: Added parsing support for -fvisibility.
15890         * tree.c (build_decl): Set visibility for all decls to be whatever
15891         is in force at that time.
15892         * varasm.c (default_binds_local_p_1): Reworked logic determining
15893         when to make a symbol locally bound.
15894         * doc/invoke.texi: Added documentation for -fvisibility and
15895         -fvisibility-inlines-hidden.
15896
15897 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
15898
15899         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
15900         * c-common.c: Add missing casts from void * to other types.
15901         * c-decl.c: Likewise.
15902         * c-format.c: Likewise.
15903         * c-lex.c: Likewise.
15904         * c-pragma.c: Likewise.
15905         * c-typeck.c: Likewise.
15906         * defaults.h: Likewise.
15907         * genconstants.c: Likewise.
15908         * gengtype-lex.l: Likewise.
15909         * genmodes.c: Likewise.
15910         * read-rtl.c: Likewise.
15911         * rtl.c: Likewise.
15912
15913 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
15914
15915         * bitmap.c: Use type-safe memory allocation macros from libiberty.
15916         * c-common.c: Likewise.
15917         * c-decl.c: Likewise.
15918         * c-lang.c: Likewise.
15919         * c-lex.c: Likewise.
15920         * c-opts.c: Likewise.
15921         * c-parse.in: Likewise.
15922         * c-typeck.c: Likewise.
15923         * genconditions.c: Likewise.
15924         * gengtype-lex.l: Likewise.
15925         * gengtype-yacc.y: Likewise.
15926         * gengtype.c: Likewise.
15927         * genmodes.c: Likewise.
15928         * gensupport.c: Likewise.
15929         * read-rtl.c: Likewise.
15930         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
15931         htab_find_slot().
15932
15933 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
15934
15935         * c-decl.c (groktypename, groktypename_in_param_context): Rename
15936         variable typename to type_name.
15937         * c-lex.c (interpret_float): Likewise.
15938
15939 2004-07-25  Roger Sayle  <roger@eyesopen.com>
15940
15941         * convert.c (convert_to_real, convert_to_integer,
15942         convert_to_complex): Replace calls to build with calls to buildN.
15943         * coverage.c (tree_coverage_counter_ref): Likewise.
15944         * dojump.c (do_jump): Likewise.
15945         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
15946         * emit-rtl.c (component_ref_for_mem_expr,
15947         set_mem_attributes_minus_bitpos): Likewise.
15948         * explow.c (update_nonlocal_goto_save_area): Likewise.
15949         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
15950         expand_mult_add): Likewise.
15951         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
15952         store_constructor, get_inner_reference, expand_expr_real_1,
15953         try_casesi, try_tablejump): Likewise.
15954         * function.c (expand_function_start): Likewise.
15955         * stmt.c (emit_case_bit_tests, expand_end_case_type,
15956         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
15957         * stor-layout.c (place_union_field, layout_type): Likewise.
15958         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
15959         * varasm.c (copy_constant): Likewise.
15960
15961 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
15962
15963         * c-common.c: Rename all identifiers named `new'.
15964         * c-decl.c: Likewise.
15965         * gensupport.c: Likewise.
15966         * simplify-rtx.c: Likewise.
15967         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
15968         with XNEW().
15969         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
15970         with XNEWVEC().
15971
15972 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
15973
15974         PR c/15360
15975         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
15976         declarations until after calling pushdecl.
15977         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
15978         "extern" and not on whether the declaration is initialized.
15979
15980 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
15981
15982         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
15983         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
15984         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
15985         "cpplib.h", "c-pragma.h", "c-common.h".
15986         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
15987         (solaris_register_pragmas): New functions.
15988         * config/sol2-protos.h: New file.
15989         * config/sol2.c: New file.
15990         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
15991         (REGISTER_TARGET_PRAGMAS): New macros.
15992         (solaris_pending_aligns, solaris_pending_inits)
15993         (solaris_pending_finis): New variables.
15994         * config/t-sol2 (sol2-c.o): Update dependencies.
15995         (sol2.o): New rule.
15996         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
15997         SUBTARGET_INSERT_ATTRIBUTES.
15998         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
15999         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
16000         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
16001         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
16002         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
16003         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
16004         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
16005         * config/sparc/sparc.c (sparc_attribute_table): New.
16006         (TARGET_INSERT_ATTRIBUTES): Define in terms of
16007         SUBTARGET_INSERT_ATTRIBUTES.
16008         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
16009         is defined.
16010         * doc/extend.texi (Solaris Pragmas): New section.
16011
16012 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
16013
16014         * c-common.c: Rename all identifiers named `class' to `cl'.
16015         * c-common.h: Likewise.
16016         * c-parse.in: Likewise.
16017         * c-typeck.c: Likewise.
16018         * genmodes.c: Likewise.
16019         * real.c: Likewise.
16020         * real.h: Likewise.
16021         * recog.c: Likewise.
16022         * recog.h: Likewise.
16023         * regrename.c: Likewise.
16024         * tree.h: Likewise.
16025         * c-common.c (builtin_function_2): Change type of 5th parameter from
16026         int to enum built_in_function. Change type of 8th parameter from int
16027         to bool.
16028         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
16029         with GGC_CNEW().
16030         * c-typeck.c (convert_arguments): Change type of formal_prec from
16031         int to unsigned int.
16032         * genmodes.c (blank_mode): Make a few negative constants unsigned.
16033         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
16034         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
16035         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
16036         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
16037         iterator to for_all_modes () instead of an enum because enums can't
16038         be incremented in C++.
16039
16040
16041 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
16042
16043         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
16044         hard registers.
16045
16046 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16047
16048         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
16049         Handle ARRAY_RANGE_REF like ARRAY_REF.
16050
16051 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
16052
16053         * c-typeck.c (digest_init): Don't allow arrays of signed or
16054         unsigned variants of wchar_t to be initialized by wide string
16055         constants.  Do allow arrays of enumerated types compatible with
16056         wchar_t to be initialized by wide string constants.  Refine tests
16057         distinguishing wide and narrow strings and arrays.  Give specific
16058         error for arrays of other integer types initialized by string
16059         constants.
16060         (output_init_element, process_init_element): Check for
16061         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
16062         initializing with string constants.
16063
16064 2004-07-25  Richard Henderson  <rth@redhat.com>
16065
16066         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
16067         on the RESULT_DECL.
16068         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
16069         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
16070         DECL_IGNORED_P to new decl.
16071
16072 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
16073
16074         * config/ia64/ia64.c (general_xfmode_operand)
16075         (destination_xfmode_operand): Delete.
16076         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
16077         * config/ia64/ia64.md (*movxf_internal): Use general_operand
16078         and destination_operand.
16079
16080 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
16081
16082         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
16083         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
16084
16085 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
16086             Zack Weinberg  <zack@codesourcery.com
16087
16088         PR 16684
16089         * c-decl.c (diagnose_mismatched_decls): Don't issue a
16090         redundant-declaration warning the first time a builtin is
16091         declared explicitly.
16092
16093 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
16094
16095         * tree.h (staticp): Change return type to bool.
16096
16097 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
16098
16099         * c-common.c (c_staticp): Last episode of the staticp saga.
16100
16101 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
16102
16103         * c-common.h (c_staticp): Change return type from int to bool.
16104         * tree.c (staticp): Likewise.
16105         * langhooks.h (staticp): Likewise.
16106
16107 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
16108
16109         * langhooks-def.h (lhd_staticp): Change return type from int to
16110         bool in prototype to match definition.
16111
16112 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
16113
16114         * system.h (bool, true, false): Don't redefine as preprocessor macros
16115         in C++.
16116
16117 2004-07-24  Roger Sayle  <roger@eyesopen.com>
16118
16119         * expmed.c (init_expmed): A signed modulus by a power of two is
16120         considered cheap if its less than or equal to four instructions.
16121
16122 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
16123
16124         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
16125         GGC_CNEWVAR): New macros.
16126
16127 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
16128
16129         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
16130         lists.
16131         * c-decl.c: Likewise.
16132         * c-format.c: Likewise.
16133         * c-lex.c: Likewise.
16134         * c-opts.c: Likewise.
16135         * c-pragma.c: Likewise.
16136         * c-typeck.c: Likewise.
16137         * gencheck.c: Likewise.
16138         * genconditions.c: Likewise.
16139         * genconfig.c: Likewise.
16140         * genflags.c: Likewise.
16141         * gengtype.c: Likewise.
16142         * gensupport.c: Likewise.
16143         * ggc-none.c: Likewise.
16144         * langhooks.c: Likewise.
16145         * statistics.h: Likewise.
16146         * stub-objc.c: Likewise.
16147         * java/decl.c: Likewise.
16148
16149 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
16150
16151         * config/m68k/m68k.c (output_scc_di): Fix coding style.
16152         (symbolic_operand): Fix prototype.
16153         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
16154         * config/m68k/m68k.md: Add constants for registers a0 and sp and
16155         use them, change from the "{...}" syntax to the simpler {...}
16156         syntax.
16157         (*cfv4_extendqisi2): Fix destination predicate.
16158         * config/m68k/m68k-protos.h: Remove various declarations also
16159         generated via PREDICATE_CODES.
16160
16161 2004-07-23  Mike Stump  <mrs@apple.com>
16162
16163         * c-typeck.c (convert_for_assignment): Tightened up pointer
16164         converstions that differ in signedness.
16165
16166 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
16167
16168         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
16169
16170 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16171
16172         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
16173         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
16174
16175         * gimplify.c (gimplify_compound_lval): Check for no handled
16176         operations, rather than checking for explicit list of nodes.
16177         (is_gimple_addr_expr_arg_or_indirect): New function.
16178         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
16179         redundant setting of TREE_INVARIANT.
16180         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
16181         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
16182
16183 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
16184
16185         PR tree-optimization/16688
16186         PR tree-optimization/16689
16187         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
16188         unnecessary initialization of 'tag'.
16189         (get_tmt_for): Check that the new type tag has the same alias
16190         set as the pointed-to type.
16191         (group_aliases): Only regular variables need to be removed
16192         from the alias set of a name tag.
16193         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
16194         propagation if the two types are not compatible.
16195         (merge_alias_info): Rename from replace_ssa_names_ann.
16196         Add more checking.
16197         (replace_exp_1): If both arguments are SSA_NAMEs, check that
16198         the propagation can be done.
16199         Only call merge_alias_info on pointers.
16200         (propagate_value): Likewise.
16201         * tree-ssa-copyrename.c: Include langhooks.h.
16202         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
16203         to do the merging.
16204         Do not coalesce variables with incompatible types.
16205         (rename_ssa_copies): Call replace_ssa_name_symbol.
16206         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
16207         the same type as the underlying _DECL.
16208         * tree-ssanames.c (replace_ssa_name_symbol): New function.
16209         * tree.h (replace_ssa_name_symbol): Declare.
16210
16211 2004-07-23  Richard Henderson  <rth@redhat.com>
16212
16213         PR c++/16277
16214         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
16215         unshare it properly.
16216         (gimplify_modify_expr_rhs): Push assignment from a conditional into
16217         the conditional for all non-register types.
16218
16219 2004-07-23  Richard Henderson  <rth@redhat.com>
16220
16221         * expr.c (expand_expr_real_1): Don't handle non-local variables.
16222         * expr.h (fix_lexical_addr): Remove.
16223         * function.c (NEED_SEPARATE_AP): Remove.
16224         (fix_lexical_addr): Remove.
16225         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
16226         not null decl_function_context.
16227         (create_alias_vars): Likewise.
16228         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
16229         (simple_goto_p): Likewise.
16230         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
16231         * tree-ssa-ccp.c (get_default_value): Likewise.
16232         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
16233         * tree.c (needs_to_live_in_memory): Likewise.
16234         * tree-flow-inline.h (may_be_aliased): Move...
16235         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
16236         when TREE_STATIC variables may be addressable.
16237
16238 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
16239
16240         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
16241
16242 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
16243
16244         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
16245         bitmap contents if GENERATOR_FILE is defined.
16246         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
16247         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
16248
16249 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
16250
16251         * c-decl.c (start_function): Form composite type of function types
16252         rather than copying type from previous prototype declaration.
16253
16254 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
16255
16256         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
16257         the const qualifier for the second argument in the C++ functions.
16258
16259         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
16260         specific pointer types.
16261
16262         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
16263         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
16264         for vector bool and/or vector pixel, add C++ and C missing support.
16265         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
16266         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
16267         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
16268         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
16269         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
16270         missing C++ and C support for vector bool and/or vector pixel.
16271         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
16272         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
16273         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
16274         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
16275         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
16276         C++ and C types used for vector bool and/or vector pixel.
16277         (vec_st, vec_stl): Add C++ support for vector pixel.
16278         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
16279         (vec_all_ne): Add C++ support for vector pixel.
16280
16281         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
16282         (vec_vmulesb): Add missing C++ function.
16283         (vec_perm): Fix type of third argument in C++ function.
16284         (vec_vsum4shs): Fix C++ function name.
16285         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
16286         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
16287         argument passed to the error handler in C macro.
16288         (vec_nmsub): Remove extra parens around argument names in C macro.
16289         (vec_packpx): Add missing parens in C macro.
16290
16291 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
16292
16293         * machmode.def: Remove vector modes.
16294         * config/alpha/alpha-modes.def: Add supported vector modes.
16295         * config/arm/arm-modes.def: Likewise.
16296         * config/frv/frv-modes.def: Likewise.
16297         * config/i386/i386-modes.def: Likewise.
16298         * config/rs6000/rs6000-modes.def: Likewise.
16299         * config/sh/sh-modes.def: Likewise.
16300
16301 2004-07-23  Matthias Klose  <doko@debian.org>
16302
16303         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
16304         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
16305         * config.h: Regenerate.
16306         * configure: Likewise.
16307
16308 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
16309
16310         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
16311         generated SYMBOL_REFs for labels.
16312         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
16313         Change prototype.
16314         (machopic_stub_name): Remove.
16315         (machopic_indirection_name): New function.
16316         (machopic_mcount_stub_name): Likewise.
16317         (machopic_classify_name): Remove.
16318         (machopic_function_base_sym): New function.
16319         (machpoic_classify_symbol): Likewise.
16320         (machopic_classify_ident): Remove.
16321         (machopic_define_ident): Likewise.
16322         (machopic_define_name): Likewise.
16323         (machopic_name_defined_p): Likewise.
16324         (machopic_ident_defined_p): Likewise.
16325         (darwin_strip_name_encoding): Likewise.
16326         (machopic_define_symbol): New function.
16327         * config/darwin.c (hashtab.h): Include.
16328         (machopic_defined_list): Remove.
16329         (machopic_classify_ident): Likewise.
16330         (machopic_classify_name): Likewise.
16331         (machopic_ident_defined_p): Likewise.
16332         (machopic_define_ident): Likewise.
16333         (machopic_define_name): Likewise.
16334         (machopic_symbol_defined_p): New function.
16335         (machopic_classify_symbol): Likewise.
16336         (machopic_data_defined_p): Use machopic_classify_symbol.
16337         (machopic_define_symbol): New function.
16338         (machopic_function_base_sym): New function.
16339         (machopic_non_lazy_pointers): Remove.
16340         (machopic_non_lazy_ptr_name): Likewise.
16341         (machopic_stubs): Likewise.
16342         (machopic_stub_name): Likewise.
16343         (NON_LAZY_POINTER_SUFFIX): New macro.
16344         (STUB_SUFFIX): Likewise.
16345         (machopic_indirection): New structure.
16346         (machopic_indirections): New variable.
16347         (machopic_indirection_hash): New function.
16348         (machopic_indirection_eq): Likewise.
16349         (machopic_indirection_name): Likewise.
16350         (machopic_mcount_stub_name): New function.
16351         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
16352         hash table.
16353         (machopic_indirect_data_reference): Rework to use new functions.
16354         (machopic_indirect_call_target): Likewise.
16355         (machopic_legitimize_pic_address): Likewise.
16356         (machopic_output_indirection): New function.
16357         (machopic_finish): Use it.
16358         (machopic_operand_p): Rework to use new functions.
16359         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
16360         (darwin_strip_name_encoding): Remove.
16361         (update_non_lazy_ptrs): Remove.
16362         (update_stubs): Likewise.
16363         (darwin_non_lazy_pcrel): Use new functions.
16364         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
16365         (ASM_OUTPUT_LABELREF): Likewise.
16366         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
16367         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
16368         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
16369         (TARGET_STRIP_NAME_ENCODING): Do not use
16370         darwin_strip_name_encoding.
16371         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
16372         darwin_strip_name_encoding.
16373         * config/i386/darwin.h (FUNCTION_PROFILER): Use
16374         machopic_mcount_stub_name.
16375         * config/i386/i386.c (x86_output_mi_thunk): Use
16376         machopic_indirection_name, not machopic_stub_name.
16377         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
16378         machopic_function_base_sym.
16379         (print_operand): Use machopic_classify_symbol.
16380         (rs6000_emit_prologue): Use machopic_function_base_sym.
16381         (output_profile_hook): Do not use machopic_stub_name.
16382         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
16383
16384 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
16385
16386         PR c/7284
16387         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
16388         as multiplication.
16389
16390 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
16391
16392         * doc/implement-c.texi: New file.
16393         * doc/extend.texi (C Implementation): Move to there.
16394         * doc/gcc.texi: Include implement-c.texi.
16395         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
16396
16397 2004-07-22  Jason Merrill  <jason@redhat.com>
16398
16399         * integrate.c (copy_decl_for_inlining): Remove invisible reference
16400         handling.
16401         * tree-inline.c (setup_one_parameter): Likewise.
16402
16403 2004-07-22  Brian Booth  <bbooth@redhat.com>
16404
16405         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
16406         (substitute_and_fold): Propigate into VUSE operands when possible.
16407         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
16408         (cp_lattice_meet): Handle merging of latticevalues when
16409         UNKNOWN_VAL is present.
16410         (visit_stmt): Visit assignments with V_MUST_DEFs.
16411         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
16412         (ccp_fold): Deal with RHS' that are constant and virtual.
16413         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
16414         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
16415         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
16416         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
16417         computing immediate uses.
16418         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
16419         transition.
16420         (replace_vuse_in): New function.
16421         (likely_value): Add check of vuse operands.
16422         (get_default_value): Set the default value of virtually defined
16423         variables to UKNOWN_VAL instead of VARYING.
16424
16425 2004-07-22  Richard Henderson  <rth@redhat.com>
16426
16427         * expr.c (emit_push_insn): Don't use set_mem_attributes.
16428
16429 2004-07-22  Richard Henderson  <rth@redhat.com>
16430
16431         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
16432         variables due to conditional compilation.
16433
16434 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
16435
16436         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
16437         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
16438         Release SSA names that have been re-renamed.
16439         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
16440         variable.
16441         * tree-ssa-alias.c (init_alias_info): If aliases have been
16442         computed before, clear existing alias information.
16443         (create_name_tags): Do no fixup PT_ANYTHING pointers.
16444         If the new name tag for a pointer is different than the one it
16445         had before, mark the old tag for renaming.
16446         (replace_may_alias): New function.
16447         (group_aliases): Call it.
16448         (setup_pointers_and_addressables): Always call get_tmt_for.
16449         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
16450         once.
16451         (set_pt_anything): New local function.
16452         (set_pt_malloc): New local function.
16453         (merge_pointed_to_info): Don't merge pointed-to variables from
16454         the original pointer if the destination is pointing to an
16455         unknown location.
16456         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
16457         (add_pointed_to_var): Do not add a variable to the points-to
16458         set if the pointer is already pointing to anywhere.
16459         (collect_points_to_info_r): If the defining statement is a PHI
16460         node, only merge pointed-to information if the argument has
16461         already been visited.
16462         (get_tmt_for): Only create a new tag if the pointer didn't
16463         have one already.
16464         (dump_alias_info): Emit more information.
16465         (dump_points_to_info_for): Likewise.
16466         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
16467         try to get the annotation of an SSA_NAME.
16468         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
16469         alias sets when checking is enabled.
16470         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
16471         (eliminate): Mark basic blocks that will need
16472         EH information cleaned up.
16473         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
16474         predecessor.
16475         Initialize need_eh_cleanup.
16476         (fini_pre): Call tree_purge_all_dead_eh_edges and
16477         cleanup_tree_cfg if needed.
16478         Free need_eh_cleanup.
16479         * tree-ssa.c (verify_ssa_name): New function.
16480         (verify_def): Call it.
16481         Re-arrange to avoid printing too many error messages.
16482         (verify_use): Likewise.
16483         (verify_phi_args): Likewise.
16484         (verify_flow_insensitive_alias_info): New function.
16485         (verify_flow_sensitive_alias_info): New function.
16486         (verify_alias_info): New function.
16487         (verify_ssa): Call verify_alias_info.
16488         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
16489         program.
16490         Re-arrange to avoid printing too many error messages.
16491         * tree-ssanames.c (make_ssa_name): Clear
16492         SSA_NAME_IN_FREE_LIST.
16493         (release_ssa_name): Never release a default definition.
16494         (release_defs): New function.
16495         * tree.h: Declare it.
16496         * tree-ssa-dce.c (remove_dead_stmt): Call it.
16497
16498 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
16499
16500         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
16501         If true, do a depth-first search.  Do a breadht-first search,
16502         otherwise.
16503         (walk_use_def_chains): Add new argument IS_DFS.
16504         Update all users.
16505         * tree-flow.h (walk_use_def_chains): Update prototype.
16506
16507 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
16508
16509         * config/cris/cris.md: Tweak formatting.
16510         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
16511         (mover2side, moverside, movemside, movei, op3, andu): Replace
16512         live define_peephole:s with define_peephole2 near-equivalents.
16513         Delete the rest.
16514         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
16515         word-size modes.
16516         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
16517         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
16518         "*mov_sidesi_mem" respectively.
16519
16520 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
16521
16522         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
16523         (gimplify_build1): Move from tree-complex.c do_unop.
16524         (gimplify_build2): Move from tree-complex.c do_binop.
16525         (gimplify_build3): New.
16526         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
16527         Adjust throughout to call the functions above.
16528         * tree-flow.h: Declare the functions above.
16529         * tree-nested.c (gimplify_val): Rename to...
16530         (tsi_gimplify_val): ... this.
16531
16532         * Makefile.in (tree_complex.o): Update dependencies.
16533         (stor-layout.o): Depend on regs.h.
16534         * c-common.c (handle_vector_size_attribute): Update for
16535         vector types without corresponding vector modes.
16536         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
16537         a corresponding vector mode is not available.
16538         * print-tree.c (print_node): Print nunits for vector types
16539         * regclass.c (have_regs_of_mode): New.
16540         (init_reg_sets_1): Initialize it and use it instead
16541         of allocatable_regs_of_mode.
16542         * regs.h (have_regs_of_mode): Declare it.
16543         * stor-layout.c (layout_type): Pick a mode for vector types.
16544         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
16545         build_replicated_const, do_unop, do_binop, do_plus_minus,
16546         do_negate, expand_vector_piecewise, expand_vector_parallel,
16547         expand_vector_addition, expand_vector_operations_1,
16548         expand_vector_operations, tree_lower_operations,
16549         pass_lower_vector_ssa, pass_pre_expand): New.
16550         (expand_complex_operations, pass_lower_complex): Remove.
16551         * tree-optimize.c (init_tree_optimization_passes): Adjust
16552         pass ordering for changes in tree-complex.c.
16553         * tree-pass.h: Declare new passes.
16554         * tree.c (finish_vector_type): Remove.
16555         (make_vector_type): New.
16556         (build_vector_type_for_mode, build_vector_type): Rewritten.
16557         * tree.def (VECTOR_TYPE): Document where the number of
16558         subparts is stored.
16559         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
16560         (make_vector): Remove declaration.
16561
16562 2004-07-21  Richard Henderson  <rth@redhat.com>
16563
16564         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
16565         TREE_THIS_VOLATILE, may_aliases, or optimization level.
16566         (remove_useless_vars): Dump debugging info.
16567         (expand_used_vars): Move ...
16568         * cfgexpand.c (expand_used_vars): ... here.  Make static.
16569         * tree-flow-inline.h (set_is_used): New.
16570         (set_default_def): Use get_var_ann.
16571         * tree-flow.h: Update decls.
16572         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
16573         (create_ssa_var_map): Use it.
16574         * tree-ssa.c (set_is_used): Remove.
16575
16576 2004-07-22  Ben Elliston  <bje@au.ibm.com>
16577
16578         * gdbinit.in: Set a breakpoint on internal_error.
16579
16580 2004-07-21  Richard Henderson  <rth@redhat.com>
16581
16582         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
16583         to create a new basic block.
16584
16585 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
16586
16587         PR c/15052
16588         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
16589         return type on function definitions.  Move other warnings for
16590         qualified return type to -Wreturn-type.  Do not condition any such
16591         warnings on -pedantic.  Update comments.
16592         (start_function): Only copy function type from previous prototype
16593         declaration if return types are compatible.
16594         * c-typeck.c (function_types_compatible_p): Don't condition
16595         warning for incompatibility of volatile qualifiers on the return
16596         type on -pedantic.  Update comment.
16597         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
16598
16599 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
16600
16601         * c-typeck.c (set_init_index): Require designator to be of integer
16602         type.
16603
16604 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
16605
16606         PR c/11250
16607         * c-parse.in (init): Change to exprtype.
16608         (primary): Set original_code for STRING to STRING_CST.
16609         Call maybe_warn_string_init for compound literals.
16610         (initdcl, notype_initdcl): Call maybe_warn_string_init.
16611         (initval): Update.
16612         * c-tree.h (maybe_warn_string_init): New.
16613         (pop_init_level, process_init_element): Use struct c_expr.
16614         (struct c_expr): Update comment.
16615         * c-typeck.c (maybe_warn_string_init): New function.
16616         (digest_init): Call it.  Additional parameter strict_string.  All
16617         callers changed.
16618         (output_init_element): Likewise.
16619         (struct constructor_stack): Use struct c_expr for
16620         replacement_value.
16621         (really_start_incremental_init, push_init_level): Update.
16622         (pop_init_level): Update.  Return struct c_expr.
16623         (process_init_level): Update.  Take struct c_expr argument.
16624
16625 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
16626
16627         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
16628         commit.
16629
16630 2004-07-21  Eric Christopher  <echristo@redhat.com>
16631
16632         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
16633         removal.
16634         * c-decl.c (pop_scope): Ditto.
16635         * calls.c (expand_call): Remove call to current_nesting_level,
16636         update comment accordingly. Remove calls to expand_start_target_temps
16637         and expand_end_target_temps.
16638         * cfgexpand.c (construct_init_block): Remove call to
16639         expand_start_bindings_and_block.
16640         (construct_exit_block): Remove call to expand_end_bindings.
16641         * expr.c (safe_from_p): Remove BIND_EXPR handling.
16642         (expand_expr_real_1): Ditto. Fix formatting.
16643         (expand_vars): Delete.
16644         * stmt.c (POPSTACK): Remove block_stack.
16645         (stmt_status): Remove x_block_stack.
16646         (block_stack): Delete.
16647         (expand_start_bindings_and_block): Ditto.
16648         (expand_start_target_temps): Ditto.
16649         (expand_end_target_temps): Ditto.
16650         (current_nesting_level): Ditto.
16651         (warn_about_unused_variables): Ditto.
16652         (expand_end_bindings): Ditto.
16653         * tree.h: Remove declarations for above.
16654
16655 2004-07-21  Steven Bosscher  <stevenb@suse.de>
16656
16657         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
16658         * rtl.c (note_insn_name): Likewise.
16659         * print-rtl.c (print_rtx): Don't print it.
16660         * cfgrtl.h (can_delete_note_p): Don't handle it.
16661         (rtl_delete_block): Likewise.
16662         * passes.c (rest_of_handle_guess_branch_prob): Remove.
16663         (rest_of_compilation): Don't call it.
16664         * predict.c (process_note_predictions, process_note_prediction,
16665         note_prediction_to_br_prob): Remove.
16666         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
16667         * stmt.c (return_prediction): Remove.
16668         (expand_value_return): Don't call it.  Don't add prediction
16669         notes for return statements.
16670
16671 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
16672
16673         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
16674         once.
16675
16676 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
16677
16678         * c-common.c (vector_types_convertible_p): Use vector types'
16679         TYPE_SIZE and TREE_TYPE instead of their mode.
16680         * convert.c (convert_to_integer): Likewise.
16681         (convert_to_vector): Likewise.
16682         * fold-const.c (fold_convert): Likewise.
16683         * varasm.c (output_constant): Likewise.
16684         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
16685         Allow a VECTOR_TYPE initializer to be made of several vectors.
16686         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
16687         of cleared and need_to_clear, and use fold_convert.
16688         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
16689         integer vectors.
16690
16691 2004-07-20  Richard Henderson  <rth@redhat.com>
16692
16693         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
16694         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
16695
16696 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
16697
16698         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
16699         enormous cost if not TARGET_HARD_MUL.
16700
16701 2004-07-20  Andrew Pinski  <apinski@apple.com>
16702
16703         PR target/16557
16704         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
16705         (ASM_SPEC): here.
16706
16707 2004-07-21  Paul brook  <paul@codesourcery.com>
16708
16709         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
16710
16711 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16712
16713         * fold-const.c (operand_equal_p): Temporarily support NULL args.
16714         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
16715         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
16716
16717 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
16718
16719         * rtl.h (plus_constant): Delete.
16720         (plus_constant_wide): Rename to plus_constant.
16721         (plus_constant_for_output_wide): Delete vestigial prototype.
16722         (GEN_INT): Remove unnecessary cast.
16723         * tree.h (build_int_2, size_int_type): Delete.
16724         (build_int_2_wide): Rename to build_int_2.
16725         (size_int_wide): Rename to size_int_kind.
16726         (size_int_type_wide): Rename to size_int_type.
16727         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
16728         Remove unnecessary cast.
16729         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
16730         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
16731         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
16732         (size_int_type_wide): Rename size_int_type.
16733         (int_const_binop): Use size_int_type.
16734         * c-lex.c (interpret_integer): Use build_int_2.
16735         * final.c (split_double): Remove unnecessary casts.
16736         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
16737
16738 2004-07-20  Richard Henderson  <rth@redhat.com>
16739
16740         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
16741         (gimplify_compound_lval): Use is_gimple_tmp_reg.
16742         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
16743         (is_gimple_tmp_reg): New.
16744         * tree-gimple.h (is_gimple_tmp_reg): Declare.
16745
16746 2004-07-20  Richard Henderson  <rth@redhat.com>
16747
16748         * tree-pretty-print.c (dump_generic_node): Dump
16749         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
16750
16751 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
16752
16753         * tree-mudflap.c (mf_set_options_fndecl): New tree.
16754         (mudflap_init): Set it.
16755         (mudflap_register_call): Remove __mf_init call.
16756         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
16757         to pass "-ignore-reads" option to libmudflap if needed.
16758
16759 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
16760
16761         PR c++/14607
16762         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
16763         (MAKE_DECL_ONE_ONLY): Undefine.
16764         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
16765         readonly_data, one_only_data_section, forget_section): New prototypes.
16766         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
16767         functions.
16768         (pa_select_section): Add one-only (COMDAT) support.
16769         * pa.h (struct machine_function): Define.
16770         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
16771         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
16772         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
16773         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
16774         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
16775         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
16776         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
16777         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
16778         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
16779         for EXTRA_SECTION_FUNCTIONS.
16780         * doc/install.texi: Update binutils requirements.
16781
16782 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
16783
16784         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
16785         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
16786         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
16787         size_t.
16788         (struct VEC): Use unsigned for num and alloc.
16789         * vec.c (struct vec_prefix): Likewise.
16790         (vec_o_reserve): Adjust.
16791
16792         * dbxout.c (dbxout_type): Fix printf format.
16793
16794         * tree.h (binfo_member): Remove.
16795         * tree.c (binfo_member): Remove.
16796
16797 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
16798
16799         * tree.h: Include vec.h
16800         (DEF_VEC_P(tree)): New type.
16801         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
16802         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
16803         (BINFO_LANG_SLOT): Remove.
16804         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
16805         (struct tree_binfo): Turn base_binfos into a trailing
16806         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
16807         (binfo_lang_slots): Remove.
16808         * tree.c (binfo_lang_slots): Remove.
16809         (make_tree_binfo_stat): Take a base binfo count, not a
16810         lang slot count.  Adjust.
16811         * Makefile.in (TREE_H): Add vec.h
16812         * alias.c (record_component_aliases): Adjust BINFO access.
16813         * dbxout.c (dbxout_type): Likewise.
16814         * dwarf2out.c (gen_member_die): Likewise.
16815         * sdbout.c (sdbout_one_type): Likewise.
16816         * tree-dump.c (deque_and_dump): Likewise.
16817         * config/i386/i386.c (classify_argument,
16818         contains_128bit_aligned_vector_p): Likewise.
16819         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
16820         * doc/c-tree.texi (Classes): Update BINFO documentation.
16821
16822 2004-07-20  Steven Bosscher  <stevenb@suse.de>
16823
16824         * c-common.h (check_case_value): Remove prototype.
16825         (c_add_case_label): Adjust prototype.
16826         * c-common.c (check_case_value): Make static.
16827         (check_case_bounds): New function.
16828         (c_add_case_label): Use it.  Take new argument orig_type.
16829         * c-typeck.c (struct c_switch): New orig_type field.
16830         (c_start_case): Set it.
16831         (do_case): Pass it to c_add_case_label.
16832         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
16833         cases from here.  Add the labels in reverse order.
16834         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
16835         (add_case_node): Return nothing, don't check for duplicate cases.
16836         Insert new case nodes in a list, not in an AVL tree.
16837         (expand_end_case_type): Don't turn a case tree into a case list.
16838         (case_tree2list): Remove.
16839         * tree.h (add_case_node): Adjust prototype.
16840
16841 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
16842
16843         * genattr.c (struct range, struct function_unit,
16844         write_units, extend_range, init_range): Remove them.
16845         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
16846         Output "#define INSN_SCHEDULING" here.
16847         * genattrtab.c (struct range, struct function_unit_op,
16848         struct function_unit, struct dimension, enum operator,
16849         operate_exp, expand_units, simplify_knowing,
16850         encode_units_mask, simplify_by_exploding,
16851         find_and_mark_used_attributes, unmark_used_attributes,
16852         add_values_to_cover, increment_current_value,
16853         test_for_current_value, simplify_with_current_value,
16854         simplify_with_current_value_aux, gen_unit,
16855         write_unit_name, write_function_unit_info,
16856         write_complex_function, write_toplevel_expr,
16857         find_single_value, extend_range): Remove.
16858         (write_attr_get): Do not handle common_av->value
16859         being an FFS.
16860         (struct attr_desc): Remove func_units_p and blockage_p.
16861         (write_attr_valueq): Do not handle them.
16862         (find_attr): Do not clear them.
16863         (make_internal_attr): Do not initialize them.
16864         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
16865         * sched-vis.c (init_target_units, insn_print_units,
16866         init_block_visualization, print_block_visualization,
16867         visualize_scheduled_insns, visualize_no_unit,
16868         visualize_stall_cycles, visualize_alloc,
16869         visualize_free, target_units, get_visual_tbl_length,
16870         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
16871         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
16872         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
16873         * haifa-sched.c (blockage_range, clear_units,
16874         schedule_unit, actual_hazard, potential_hazard,
16875         insn_unit, unit_last_insn, unit_tick,
16876         actual_hazard_this_instance, potential_hazard,
16877         schedule_unit, max_insn_queue_index_value): Remove.
16878         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
16879         max_insn_queue_index.
16880         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
16881         * doc/md.texi (Processor pipeline description): Remove
16882         references to old pipeline descriptions.
16883         (Automaton pipeline description): Merge with the above.
16884         (Old pipeline description, Comparison of the two descriptions):
16885         Remove.
16886
16887         * bt-load.c (migrate_btr_def): Remove references to
16888         use_pipeline_interface.
16889         * haifa-sched.c (insn_cost, schedule_insn,
16890         schedule_block, advance_one_cycle, sched_init,
16891         queue_to_ready, sched_finish): Likewise.
16892         * modulo-sched.c (sms_schedule, advance_one_cycle,
16893         ps_has_conflicts): Likewise.
16894         * sched-rgn.c (init_ready): Likewise.
16895         (debug_dependencies): Likewise, and remove an "if (1)".
16896         * target.h (use_dfa_pipeline_interface): Remove.
16897         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16898         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16899         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16900         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16901         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16902         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16903         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16904         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16905         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16906         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16907         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16908         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16909         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16910         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16911         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16912         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16913         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16914         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16915         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16916
16917 2004-07-19  Roger Sayle  <roger@eyesopen.com>
16918
16919         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
16920
16921 2004-07-19  Jeff Law  <law@redhat.com>
16922
16923         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
16924         (get_eq_expr_value): Use it.  Simplify slightly.
16925
16926 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
16927
16928         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
16929         (umulsidi3_32bit_r4000): Likewise.
16930
16931 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
16932
16933         * vec.h: Propagate location information properly.
16934         (VEC_T_iterate): Add result pointer parameter.
16935         (VEC_T_space): New.
16936         (VEC_T_reserve): Use it.
16937
16938 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
16939
16940         * Makefile.in (c-format.o): Depend on c-format.h.
16941         * c-format.h: New file.
16942         (struct format_char_info): Add CHAIN member.
16943         * c-format.c: Move some types and constants to c-format.h.
16944         (format_type_error): Set to -1.
16945         (struct function_format_info): Use an int for format_type.
16946         (decode_format_type): Return an int.  Return format_type_error
16947         on error.
16948         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
16949         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
16950         (scan_char_table, time_char_table, monetary_char_table): Initialize
16951         CHAIN to NULL.
16952         (n_format_types): New variable.
16953         (check_format_info_main): Handle CHAIN in format_char_info.
16954         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
16955         TARGET_N_FORMAT_TYPES.
16956         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
16957         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
16958         * config/sol2-c.c: New file.
16959         * config/t-sol2: New file.
16960         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
16961         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
16962         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
16963
16964         * doc/extend.texi (Target Format Checks): New section.
16965         (Function Attributes): Mention it.
16966         * doc/invoke.texi: Mention target format checks.
16967         * doc/sourcebuild.texi: Mention target format checks.
16968         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
16969         TARGET_FORMAT_TYPES.
16970
16971 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
16972
16973         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
16974         added.
16975         * config/s390/s390.c (regclass_map initializer): Register 35 added to
16976         ADDR_REGS.
16977         (load_multiple_operation, store_multiple_operation): Removed
16978         pointless sanity check.
16979         (s390_decompose_address): Added check for return_address_pointer_rtx.
16980         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
16981         (s390_return_address_offset): New function.
16982         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
16983         (FRAME_REGNO_P): Added check for register 35.
16984         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
16985         REG_ALLOC_ORDER): Appended entry for register 35.
16986         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
16987         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
16988         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
16989         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
16990         is eliminable using stack pointer or hard frame pointer.
16991         (REGISTER_NAMES): Added name for register 35.
16992         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
16993         pointless sanity check.
16994
16995 2004-07-19  Roger Sayle  <roger@eyesopen.com>
16996
16997         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
16998         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
16999         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
17000         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
17001         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
17002         (fold_relational_const): Tidy up handling of floating point
17003         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
17004         transformation; fold_relational_const assumes constant operands.
17005
17006 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
17007
17008         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
17009         directory.
17010
17011 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
17012
17013         * c-tree.h (struct c_expr): Define.
17014         (C_SET_EXP_ORIGINAL_CODE): Remove.
17015         (parser_build_binary_op, build_compound_expr): Update prototypes.
17016         * c-parse.in (%union): Add exprtype.
17017         (FUNC_NAME): Mark as ttype.
17018         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
17019         exprtype.
17020         (expr): Update.  Define directly in terms of expr_no_commas
17021         instead of using nonnull_exprlist.
17022         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
17023         offsetof_member_designator, typespec_nonreserved_nonattr, init,
17024         initval, designator, component_declarator,
17025         component_notype_declarator, enumerator, array_declarator,
17026         condition, exexpr, switch_statement, stmt_nocomp, stmt,
17027         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
17028         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
17029         where appropriate.
17030         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
17031         * c-common.c (c_common_truthvalue_conversion): Don't check
17032         C_EXP_ORIGINAL_CODE.
17033         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
17034         Don't use C_EXP_ORIGINAL_CODE.
17035         (default_conversion, default_function_array_conversion): Don't use
17036         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
17037         (internal_build_compound_expr): Merge into build_compound_expr.
17038         (build_compound_expr): Take two operands instead of a TREE_LIST.
17039         * objc/objc-act.c (get_super_receiver): Update calls to
17040         build_compound_expr.
17041
17042 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
17043
17044         * config/sh/sh.c (sh_use_dfa_interface): Remove.
17045         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
17046         hook_int_void_1.
17047         * config/sh/sh.md: Extract pipeline descriptions
17048         into separate files.
17049         * config/sh/sh1.md: New file, extracted from sh.md.
17050         * config/sh/sh4.md: New file, extracted from sh.md.
17051         * config/sh/shmedia.md: New file, extracted from sh.md
17052         and rewritten using new-style pipeline description.
17053
17054 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
17055
17056         * config/pa/pa.md: Delete the two remaining define_peephole
17057         patterns.
17058
17059 2004-07-18  Steven Bosscher  <stevenb@suse.de>
17060             Joseph S. Myers  <jsm@polyomino.org.uk>
17061
17062         * c-common.c (c_common_truthvalue_conversion): Don't warn if
17063         TREE_NO_WARNING is set.
17064
17065 2004-07-18  Roger Sayle  <roger@eyesopen.com>
17066
17067         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
17068         simplify_builtin_strncmp): Delete.
17069         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
17070         Change argument to accept an arglist instead of an "exp".  Assume
17071         that the return type is always integer_type_node.  Copy missing
17072         transformations from their now obsolete simplify_builtin_*
17073         equivalents.
17074         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
17075         fold_builtin_strcmp and fold_builtin_strncmp.
17076         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
17077         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
17078         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
17079
17080 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
17081
17082         * Makefile.in (tree-alias-common.o): Update dependencies.
17083
17084 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
17085
17086         * cfgloop.c (flow_loop_nested_p): Fix comment.
17087
17088 2004-07-17  Jason Merrill  <jason@redhat.com>
17089
17090         PR c++/16115
17091         * stor-layout.c (relayout_decl): New fn.
17092         * tree.h: Declare it.
17093         (DECL_BY_REFERENCE): New macro.
17094
17095 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
17096
17097         * libgcc2.c (__enable_execute_stack): New symbol.
17098         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
17099         and declare __enable_execute_stack.
17100         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
17101         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
17102         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
17103         ENABLE_EXECUTE_STACK.
17104         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
17105         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
17106         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
17107         ENABLE_EXECUTE_STACK.
17108         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
17109         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
17110         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
17111         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
17112         ENABLE_EXECUTE_STACK.
17113         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
17114         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
17115         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
17116         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
17117         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
17118         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
17119         (sparc64_initialize_trampoline): Likewise.
17120         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
17121
17122 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
17123
17124         * langhooks.h (builtin_function): New langhook.
17125         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
17126         (LANG_HOOKS_INITIALIZER): Update.
17127         * tree.h (builtin_function): Remove.
17128         * doc/tm.texi: Update.
17129         * c-tree.h (builtin_function): Declare.
17130         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
17131         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
17132         config/ia64/ia64.c, config/iq2000/iq2000.c,
17133         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
17134         config/stormy16/stormy16.c: All callers of builtin_function
17135         changed.
17136
17137 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
17138
17139         PR target/16556
17140         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
17141         Remove white space after the backslash.
17142
17143 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
17144
17145         PR rtl-optimization/16294
17146         * resource.c (return_insn_p): New predicate.
17147         (mark_target_live_regs): Use it.  Special-case return insns.
17148         (init_resource_info): Use it.  Don't scan the epilogue past
17149         a return.
17150
17151 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17152
17153         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
17154         destroy dominance information.
17155         * passes.c (rest_of_handle_loop2):  Free dominance information.
17156         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
17157         jump threading.
17158         (thread_jumps): Update dominance information and remove unreachable
17159         blocks.
17160         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
17161         information and remove the unreachable block.
17162
17163 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
17164
17165         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
17166
17167 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
17168
17169         * doc/sourcebuild.texi: Remove libf2c entry.
17170
17171 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
17172
17173         * config/i386/i386.md (movv16qi_internal): Fix typo.
17174
17175 2004-07-17  Steven Bosscher  <stevenb@suse.de>
17176
17177         * final.c (final_scan_insn): Fix broken commit from previous
17178         patch.
17179
17180 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
17181
17182         * c-typeck.c (parser_build_binary_op): Condition warnings for
17183         X<=Y<=Z on -Wparentheses instead of -Wextra.
17184         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
17185         supported for C only.
17186
17187 2004-07-17  Steven Bosscher  <stevenb@suse.de>
17188
17189         * cfgcleanup.c (try_simplify_condjump): Don't remove line
17190         notes to avoid unreachable code warnings.
17191         * toplev.c (backend_init): Don't emit line notes for
17192         unreachable code warnings.
17193
17194         * combine.c (distribute_notes): Don't distribute a
17195         REG_VTABLE_REF note.
17196         * final.c (final_scan_insn): Don't handle it.
17197         * rtl.c (reg_note_name): Remove it.
17198         * rtl.h (enum reg_node): Dito.
17199
17200         * emit-rtl.c (force_line_numbers, restore_line_number_status):
17201         Remove.
17202         * rtl.h (force_line_numbers, restore_line_number_status):
17203         Remove prototypes.
17204
17205         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
17206         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
17207         (using_eh_for_cleanups): Also moved here.
17208
17209         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
17210         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
17211         to expand_start_case and add_case_node.
17212         * stmt.c (struct nesting): Cleanup unused fields condition_code,
17213         last_unconditional_cleanup, nominal_type, printname, and
17214         line_number_status.
17215         (struct fixup_goto): Remove.
17216         (struct stmt_status): Remove x_goto_fixup_chain field.
17217         (goto_fixup_chain): Remove.
17218         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
17219         pushcase, pushcase_range): Remove.
17220         (expand_start_bindings_and_block): Don't set unused fields in
17221         the nesting stack.
17222         (expand_start_case, add_case_node): Cleanup unused formal arguments.
17223         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
17224         instead of emit_jump_if_reachable.
17225         (emit_case_nodes): Likewise.
17226         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
17227         static.
17228         (update_eh_label): Work around left-over exception handing regions.
17229         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
17230         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
17231         (pass_cleanup_cfg_post_optimizing): New pass.
17232         (init_tree_optimization_passes): Run the new pass after all
17233         optimizations.
17234         * tree.h (pushcase, pushcase_range): Remove prototypes.
17235         (expand_start_case, add_case_node): Update prototypes.
17236
17237 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
17238
17239         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
17240
17241 2004-07-16  Richard Henderson  <rth@redhat.com>
17242
17243         * builtins.c (std_expand_builtin_va_arg): Remove.
17244         (expand_builtin_va_arg): Remove.
17245         * expr.h: Don't declare them.
17246         * gimplify.c (mark_decls_volatile_r): Remove.
17247         (copy_if_shared_r): Don't call it.
17248         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
17249         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
17250         * gimple-low.c (lower_stmt): Likewise.
17251         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
17252         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
17253         * tree-ssa-operands.c (get_expr_operands): Likewise.
17254         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
17255         EXPAND_BUILTIN_VA_ARG.
17256         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
17257         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
17258         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
17259         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
17260
17261 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
17262
17263         * tree-ssa-pre.c (insert_aux): Break out if we hit
17264         a critical edge.
17265
17266 2004-07-16  Richard Henderson  <rth@redhat.com>
17267
17268         * basic-block.h (remove_fake_exit_edges): Declare.
17269         * cfganal.c (remove_fake_predecessors): Rename from
17270         remove_fake_successors; iterate over predecessors.
17271         (remove_fake_exit_edges): New.
17272         * cfgcleanup.c (try_optimize_cfg): Use it.
17273         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
17274         * predict.c (estimate_probability): Likewise.
17275         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
17276         * tree-cfg.c (make_edges): Likewise.
17277         * tree-ssa-pre.c (fini_pre): Likewise.
17278         * profile.c (instrument_edges): Don't remove_fake_edges.
17279         (branch_prob): Do it earlier here.
17280
17281 2004-07-16  Richard Henderson  <rth@redhat.com>
17282
17283         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
17284         switchification wrt CONSTRUCTOR.  Document the reason.
17285
17286 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
17287
17288         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
17289         that prevented descriptive __mf_check source location strings.
17290
17291 2004-07-16  Richard Henderson  <rth@redhat.com>
17292
17293         * tree-def (WITH_SIZE_EXPR): New.
17294         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
17295         * expr.c (expand_expr_real_1): Likewise.
17296         * gimplify.c (maybe_with_size_expr): New.
17297         (gimplify_arg, gimplify_modify_expr): Use it.
17298         (gimplify_modify_expr_to_memcpy): Take size parameter.
17299         (gimplify_modify_expr_to_memset): Likewise.
17300         (gimplify_expr): Handle WITH_SIZE_EXPR.
17301         * tree-alias-common.c (find_func_aliases): Likewise.
17302         * tree-eh.c (tree_could_trap_p): Likewise.
17303         (tree_could_throw_p): Likewise.
17304         * tree-gimple.c (is_gimple_lvalue): Likewise.
17305         (get_call_expr_in): Likewise.
17306         * tree-inline.c (estimate_num_insns_1): Likewise.
17307         (expand_calls_inline): Likewise.
17308         * tree-nested.c (convert_call_expr): Likewise.
17309         * tree-pretty-print.c (dump_generic_node): Likewise.
17310         * tree-sra.c (sra_walk_expr): Likewise.
17311         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
17312         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
17313         * tree-ssa-operands.c (get_expr_operands): Likewise.
17314         * tree-tailcall.c (find_tail_calls): Likewise.
17315
17316         * calls.c (expand_call): Reset old_stack_allocated after
17317         calling emit_stack_restore.
17318
17319 2004-07-16  Richard Henderson  <rth@redhat.com>
17320
17321         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
17322         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
17323         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
17324         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
17325         copy_res_decl_for_inlining.
17326
17327         * tree-inline.c (declare_return_variable): New modify_dest argument.
17328         Use it as the return value, when possible or manditory.  Handle
17329         TREE_ADDRESSABLE types.
17330         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
17331         replacement of CALL_EXPR.
17332
17333 2004-07-16  Richard Henderson  <rth@redhat.com>
17334
17335         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
17336         * gimple-low.c (expand_var_p): Don't check it.
17337         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
17338         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
17339         * tree-ssa-operands.c (add_stmt_operand): Likewise.
17340         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
17341         (find_referenced_vars): Don't call them.
17342         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
17343
17344 2004-07-16  Richard Henderson  <rth@redhat.com>
17345
17346         * function.c (pass_by_reference): True for all variable sized types.
17347
17348 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
17349
17350         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
17351         * tree-pretty-print.c: Include tree-chrec.h.
17352         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
17353         and POLYNOMIAL_CHREC nodes.
17354
17355 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
17356
17357         * builtins.c (expand_builtin_stpcpy): Do not create temporary
17358         reg with VOIDmode.
17359
17360 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
17361
17362         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
17363
17364 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
17365
17366         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
17367         to BASE_REGNUM.
17368         * config/s390/s390.c: Likewise.
17369         * config/s390/s390.h: Likewise.
17370
17371 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
17372
17373         * config/mips/mips.md (addsi3, adddi3): Remove special handling
17374         of $sp adds.  Remove REGNO checks from mips16 patterns.
17375
17376 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
17377
17378         * config/mips/mips.md: Delete outdated comment.
17379
17380 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
17381
17382         * config/mips/mips.c (get_float_compare_codes): Delete.
17383         (mips_emit_compare): New function, mostly extracted from
17384         get_float_compare_codes and gen_conditional_branch.
17385         (gen_conditional_branch, gen_conditional_move): Use it.
17386
17387 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
17388
17389         * genautomata.c (add_vect): Speedup by using integers as
17390         bit-vectors for walking through the comb_vect and finding
17391         a match.
17392
17393 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
17394
17395         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
17396         operand is an uns_arith_operand; use subtraction otherwise.
17397         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
17398         not just arith_operands.
17399
17400 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
17401
17402         * config/mips/mips-protos.h (gen_int_relational): Delete.
17403         (mips_emit_scc): Declare.
17404         * config/mips/mips.c (internal_test): Delete.
17405         (sle_operand, sleu_operand): New functions.
17406         (map_test_to_internal_test, gen_int_relational): Delete.
17407         (mips_emit_binary, mips_relational_operand_ok_p)
17408         (mips_emit_int_relational, mips_zero_if_equal)
17409         (mips_emit_scc): New functions.
17410         (gen_conditional_branch): Rework to use mips_emit_int_relational.
17411         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
17412         sleu_operand.
17413         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
17414         (sltu, sleu): Use mips_emit_scc.
17415         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
17416         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
17417         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
17418
17419 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
17420
17421         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
17422
17423 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
17424
17425         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
17426         (*sne_[sd]i): Likewise sne_[sd]i_zero.
17427         (*sgt_[sd]i): ...and sgt_[sd]i.
17428         (*slt_[sd]i): ...and slt_[sd]i.
17429         (*sgtu_[sd]i): ...and sgtu_[sd]i.
17430         (*sltu_[sd]i): ...and sltu_[sd]i.
17431         (*sleu_[sd]i): ...and sleu_[sd]i_const.
17432         Name previously unnamed mips16 patterns.  Formatting fixes.
17433
17434 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
17435
17436         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
17437         (branch_type): Delete.
17438         (gen_conditional_branch, gen_conditional_move)
17439         (mips_gen_conditional_trap): Update after name change.  Get the
17440         comparison mode from cmp_operands[0].
17441         * config/mips/mips.h (cmp_type, branch_type): Delete.
17442         (cmp_operands): Renamed from branch_cmp.
17443         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
17444         name change.  Don't set branch_type.
17445         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
17446         mode class of cmp_operands[0] rather than branch_type.  Update after
17447         name change.
17448
17449 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
17450
17451         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
17452         of 0...255 to 0 when inside a SET.
17453
17454 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
17455
17456         * config/mips/mips.md: Remove mips16 define_peepholes.
17457
17458 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
17459
17460         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
17461         (fini_pre): Remove fake edges.
17462
17463 2004-07-15  Richard Henderson  <rth@redhat.com>
17464
17465         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
17466         (get_indirect_ref_operands, get_call_expr_operands): ... these.
17467
17468 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
17469
17470         * vec.h (VEC_address): New function.
17471
17472 2004-07-14  Jason Merrill  <jason@redhat.com>
17473
17474         PR middle-end/15885
17475         * gimplify.c (gimplify_arg): New fn, split out from...
17476         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
17477
17478 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
17479
17480         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
17481         generate code which is generated by pushqi1 now
17482         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
17483
17484 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
17485
17486         * combine.c (simplify_set): match the mode of the constant 0 with
17487         the tested operand to match the compare behaviour and the
17488         simplify_relational_operation() expectation.
17489
17490 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
17491
17492         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
17493         ("bordered"): Same.
17494
17495 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
17496
17497         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
17498         unconditionally.
17499         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
17500
17501 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
17502
17503         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
17504         calls in mips16 code.
17505
17506 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
17507
17508         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
17509         the destination of the li as well as for the neg.
17510
17511 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
17512
17513         g++/15861
17514         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
17515         * cgraph.h: Update declaration.
17516         * c-decl.c (build_cdtor): Update call with default priority.
17517         * coverage.c (create_coverage): Ditto.
17518         * tree-mudflap.c (mf_init_fndecl): New tree.
17519         (mudflap_init): Set it.
17520         (mudflap_register_call): Arrange to call __mf_init before the first
17521         __mf_register call.
17522         (mudflap_finish_file): Mark the mudflap static initializer as extra
17523         high priority, to beat all C++ static constructors.
17524
17525 2004-07-15  Jeff Law  <law@redhat.com>
17526
17527         * loop.c (check_insn_for_givs): Restore check for code labels that was
17528         accidentally deleted by a recent checkin.
17529
17530 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
17531
17532         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
17533         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
17534
17535 2004-07-14  Richard Henderson  <rth@redhat.com>
17536
17537         * print-tree.c (print_node): Fix casts last change.
17538
17539 2004-07-15  Paul Brook  <paul@codesourcery.com>
17540
17541         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
17542         to TARGET_UNWIND_INFO.
17543         * except.c (output_function_exception_table): Ditto.
17544         * except.h: Ditto.
17545         * opts.c (decode_options): Ditto.
17546         * passes.c (rest_of_handle_final): Ditto.
17547         * final.c (final_start_function): Ditto.
17548         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
17549         target hook.
17550         * targhooks.h (default_unwind_emit): Declare.
17551         * targhooks.c (default_unwind_emit): New function.
17552         * target-def.h: Define and use TARGET_UNWIND_EMIT.
17553         * target.h (struct gcc_target): Add unwind_emit.
17554         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
17555         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
17556         Remove IA64_UNWIND_EMIT.
17557         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
17558
17559 2004-07-14  Richard Henderson  <rth@redhat.com>
17560
17561         * print-tree.c (print_node): Handle SSA_NAME.
17562
17563 2004-07-14  James E Wilson  <wilson@specifixinc.com>
17564
17565         PR target/16325
17566         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
17567         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
17568
17569 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
17570
17571         * expr.c (expand_assignment): Reenable bitfield += optimizations.
17572         Use alias set 0 for memory, do proper mode calculations and adjust
17573         address for memories.
17574
17575 2004-07-14  Per Bothner  <per@bothner.com>
17576
17577         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
17578         structure with extra column field.
17579         * tree.c (expand_location):  Also fill in column field.
17580         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
17581         gets confused by the two conditionally-compiled definitions.
17582
17583 2004-07-14  Eric Christopher  <echristo@redhat.com>
17584
17585         * calls.c (expand_call): Fix typo in comment.
17586
17587 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
17588
17589         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
17590         comparision of TFmode.
17591
17592 2004-07-14  Richard Henderson  <rth@redhat.com>
17593
17594         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
17595         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
17596         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
17597         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
17598         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
17599         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17600         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
17601         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
17602         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
17603
17604 2004-07-14  Mike Stump  <mrs@apple.com>
17605
17606         * config/darwin.h (WINT_TYPE): Define to be int to match
17607         system header files.
17608
17609 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
17610
17611         * config/xtensa/xtensa.c (function_arg_advance): Check for args
17612         that must be passed in the stack.
17613         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
17614         arguments if the size is not a constant.
17615
17616 2004-07-14  Per Bothner  <per@bothner.com>
17617
17618         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
17619         instead of EXPR_LOCUS in a boolean context, which is always true
17620         if --enable-mapped-location.
17621         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
17622
17623 2004-07-14  Richard Henderson  <rth@redhat.com>
17624
17625         * dominance.c (struct dom_info): Add fake_exit_edge.
17626         (init_dom_info): Allocate it.
17627         (free_dom_info): Free it.
17628         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
17629         in two passes.
17630         (calc_idoms): Honor fake_exit_edge.
17631
17632 2004-07-13  Jason Merrill  <jason@redhat.com>
17633
17634         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
17635         (rhs_test_for): New fn.
17636         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
17637         * tree-gimple.h: Declare them.
17638         * gimplify.c (gimplify_modify_expr): Use the new fns.
17639
17640 2004-07-14  Richard Henderson  <rth@redhat.com>
17641
17642         * config/arm/arm-protos.h (arm_va_arg): Remove.
17643         * config/arm/arm.c (arm_va_arg): Remove.
17644         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
17645         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
17646
17647 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17648
17649         * pa.c (fix_range): New function to mark a range(s) of registers as
17650         fixed registers.
17651         (override_options): Call fix_range if the -mfixed-range option string
17652         is not empty.
17653         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
17654         * doc/invoke.texi (-mfixed-range): Document new option.
17655
17656 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
17657
17658         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
17659         for TARGET_64BIT.
17660         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
17661
17662 2004-07-14  Roger Sayle  <roger@eyesopen.com>
17663
17664         * expmed.c (expand_sdiv_pow2): New function to expand signed division
17665         by a positive power of two, split out from expand_divmod.  Provide
17666         an alternate implementation when shifts are expensive.  Lower the
17667         threshold for using a branchless implementation to BRANCH_COST >= 2.
17668         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
17669
17670 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
17671
17672         * tree-dfa.c (make_rename_temp): *Really* work just
17673         like create_tmp_var if called while outside SSA form.
17674
17675 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
17676
17677         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
17678         for division by zero.
17679         ("umodsi3"): Likewise.
17680
17681 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
17682
17683         * config/mips/mips.c (mips_output_move): When generating mips16 code,
17684         force loads of negative constants to be split.
17685         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
17686         Generalize SImode li/neg splitter to cope with other modes.
17687
17688 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
17689
17690         * expmed.c: Remove more references to QUEUED in the comments.
17691         * expr.c: Likewise.
17692
17693 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
17694
17695         Revert:
17696         2004-07-13  Richard Henderson  <rth@redhat.com>
17697         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
17698         correctly.
17699
17700 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
17701
17702         * tree-dfa.c (make_rename_temp): Work just like
17703         create_tmp_var if called while outside SSA form.
17704
17705 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
17706
17707         * expr.c (enqueue_insn, finish_expr_for_function,
17708         protect_from_queue, queued_subexp_p, mark_queue,
17709         emit_insns_enqueued_after_mark, emit_queue,
17710         expand_increment): Remove.
17711         (store_constructor): Expand increment as an assignment.
17712         (expand_expr_real_1 <case PREINCREMENT_EXPR,
17713         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
17714         case POSTDECREMENT_EXPR>): Abort.
17715         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
17716         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
17717         protect_from_queue, emit_queue, queued_subexp_p): Remove.
17718         * function.h (pending_chain, x_pending_chain): Remove.
17719         * rtl.def (QUEUED): Remove.
17720
17721         * emit-rtl.c (copy_insn_1, copy_most_rtx,
17722         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
17723         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
17724         encode_units_mask): Likewise.
17725         * local-alloc.c (equiv_init_varies_p): Likewise.
17726         * rtl.c (copy_rtx): Likewise.
17727         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
17728         * simplify-rtx.c (simplify_gen_subreg): Likewise.
17729         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
17730
17731         * builtins.c (expand_builtin, expand_builtin_apply,
17732         expand_builtin_mathfn, expand_builtin_mathfn_2,
17733         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
17734         Remove calls to emit_queue and protect_from_queue.
17735         * calls.c (expand_call, precompute_arguments,
17736         precompute_register_parameters, rtx_for_function_call,
17737         store_one_arg): Likewise.
17738         * dojump.c (do_compare_and_jump, do_jump): Likewise.
17739         * explow.c (memory_address): Likewise.
17740         * expmed.c (clear_by_pieces_1, clear_storage,
17741         clear_storage_via_libcall, emit_group_load,
17742         emit_group_store, emit_store_flag,
17743         expand_expr_real_1, store_by_pieces,
17744         store_constructor, store_expr, try_casesi,
17745         try_tablejump): Likewise.
17746         * function.c (expand_pending_sizes): Likewise.
17747         * optabs.c (emit_cmp_and_jump_insns,
17748         emit_conditional_add, emit_conditional_move,
17749         expand_fix, expand_float, prepare_cmp_insn): Likewise.
17750         * stmt.c (emit_case_bit_tests,
17751         expand_asm_expr, expand_computed_goto,
17752         expand_decl_init, expand_end_case_type,
17753         expand_end_stmt_expr, expand_expr_stmt_value,
17754         expand_return, expand_start_case,
17755         optimize_tail_recursion): Likewise.
17756         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
17757         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
17758
17759 2004-07-14  Ben Elliston  <bje@au.ibm.com>
17760
17761         * vec.h: Comment fix.
17762
17763 2004-07-13  Richard Henderson  <rth@redhat.com>
17764
17765         * target.h (struct gcc_target): Add calls.pass_by_reference.
17766         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
17767         * function.c (pass_by_reference): Use the hook.
17768         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
17769         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
17770         (hook_pass_by_reference_must_pass_in_stack): New.
17771         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
17772         (alpha_pass_by_reference): New.
17773         (TARGET_PASS_BY_REFERENCE): New.
17774         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17775         * config/arc/arc.c (arc_pass_by_reference): New.
17776         (TARGET_PASS_BY_REFERENCE): New.
17777         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17778         (FUNCTION_ARG_CALLEE_COPIES): True.
17779         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
17780         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
17781         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
17782         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17783         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17784         * config/cris/cris.c (cris_pass_by_reference): New.
17785         (TARGET_PASS_BY_REFERENCE): New.
17786         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
17787         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
17788         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17789         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
17790         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17791         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
17792         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
17793         (frv_function_arg_pass_by_reference): Remove.
17794         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17795         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
17796         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
17797         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
17798         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17799         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
17800         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
17801         (ia64_pass_by_reference): Rename from
17802         ia64_function_arg_pass_by_reference.
17803         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17804         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17805         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
17806         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
17807         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
17808         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17809         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
17810         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
17811         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
17812         (m32r_pass_by_reference): Adjust prototype.  Make static.
17813         Handle mode sizes correctly.
17814         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17815         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
17816         (m68hc11_function_arg_pass_by_reference): Remove.
17817         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17818         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
17819         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
17820         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17821         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
17822         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
17823         (mips_va_arg): Use pass_by_reference.
17824         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
17825         Handle mode sizes correctly.
17826         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17827         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
17828         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
17829         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
17830         (mmix_pass_by_reference): Rename from
17831         mmix_function_arg_pass_by_reference.
17832         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17833         (FUNCTION_ARG_CALLEE_COPIES): True.
17834         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
17835         (mn10300_pass_by_reference): New.
17836         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17837         (FUNCTION_ARG_CALLEE_COPIES): True.
17838         * config/pa/pa.c (pa_pass_by_reference): New.
17839         (TARGET_PASS_BY_REFERENCE): New.
17840         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17841         (FUNCTION_ARG_CALLEE_COPIES): True.
17842         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
17843         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
17844         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
17845         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17846         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
17847         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
17848         (s390_pass_by_reference): Rename from
17849         s390_function_arg_pass_by_reference.
17850         (s390_function_arg_advance): Don't query pass-by-ref.
17851         (s390_function_arg): Likewise.
17852         (s390_gimplify_va_arg): Use pass_by_reference.
17853         (s390_call_saved_register_used): Likewise.
17854         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17855         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
17856         (shcompact_byref, sh_pass_by_reference): New.
17857         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17858         (SHCOMPACT_BYREF): Remove.
17859         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
17860         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
17861         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
17862         (sparc_gimplify_va_arg): Use pass_by_reference.
17863         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17864         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17865         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
17866         (v850_pass_by_reference): New.
17867         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17868         (FUNCTION_ARG_CALLEE_COPIES): True.
17869         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
17870         FUNCTION_ARG_PASS_BY_REFERENCE docs.
17871
17872 2004-07-14  Richard Henderson  <rth@redhat.com>
17873             Richard Sandiford  <rsandifo@redhat.com>
17874
17875         * config/mips/mips-protos.h (mips_va_arg): Delete.
17876         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
17877         * config/mips/mips.c: Include tree-gimple.h.
17878         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
17879         (mips_arg_info): Remove special handling of must_pass_in_stck args.
17880         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
17881         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
17882
17883 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
17884
17885         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
17886         arguments for COND_EXPR in big-endian adjustment code.
17887
17888 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17889
17890         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
17891         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
17892         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
17893         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
17894
17895 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
17896
17897         PR tree-optimization/16443
17898         * tree-ssa-alias.c: Add more description for
17899         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
17900         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
17901         clobbering of call-clobbered and addressable variables.  If
17902         there are any before aliases have been computed, add them.
17903
17904 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
17905
17906         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
17907         verification.
17908
17909 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
17910
17911         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
17912         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
17913         to the same type.
17914
17915 2004-07-13  Per Bothner  <per@bothner.com>
17916
17917         * collect2.c (main):  Handle --no-demangle and --demangle flags.
17918
17919 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
17920
17921         * Makefile.in (OBJS-common): Add tree-data-ref.o.
17922         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
17923         (tree-data-ref.o): New rule.
17924         * lambda.h: New file.
17925         * tree-data-ref.c: New file.
17926         * tree-data-ref.h: New file.
17927         * tree.c (int_cst_value, tree_fold_gcd): New functions.
17928         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
17929
17930 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
17931
17932         PR target/13926
17933         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
17934         * config/sparc/sparc.c (output_ubranch): New function.
17935         * config/sparc/sparc.md (jump pattern): Use it.
17936
17937 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
17938
17939         PR target/16494
17940         * config/sparc/sparc.c (output_cbranch): Properly guard
17941         the code handling far branches with TARGET_V9.
17942         * config/sparc/sparc.md (length attribute): Document the
17943         side-effect of having a length greater or equal to 3.
17944
17945 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
17946             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
17947
17948         PR target/15186
17949         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
17950         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
17951
17952 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
17953             Martin Sebor  <sebor@roguewave.com>
17954
17955         PR target/12602
17956         * doc/invoke.texi (SPARC options): Document -threads
17957         and -pthreads on Solaris.
17958
17959 2004-07-13  Richard Henderson  <rth@redhat.com>
17960
17961         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
17962         by reference.
17963         (ind_gimplify_va_arg_expr): Remove.
17964         * tree.h (ind_gimplify_va_arg_expr): Remove.
17965         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
17966         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
17967         argsp to be null.
17968
17969         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
17970         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
17971         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
17972         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
17973         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
17974
17975 2004-07-13  Richard Henderson  <rth@redhat.com>
17976
17977         * function.c (pass_by_reference): New.
17978         (assign_parm_find_data_types): Use it.
17979         * calls.c (initialize_argument_information): Likewise.
17980         (emit_library_call_value_1): Likewise.
17981         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17982         * function.h (pass_by_reference): Declare.
17983
17984 2004-07-13  Richard Henderson  <rth@redhat.com>
17985
17986         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
17987         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
17988         * expr.h (MUST_PASS_IN_STACK): Remove.
17989         * system.h (MUST_PASS_IN_STACK): Poison.
17990         * tree.h (must_pass_in_stack_var_size): Declare.
17991         (must_pass_in_stack_var_size_or_pad): Declare.
17992         * calls.c (must_pass_in_stack_var_size): New.
17993         (must_pass_in_stack_var_size_or_pad): Rename from
17994         default_must_pass_in_stack.
17995         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
17996         (TARGET_MUST_PASS_IN_STACK): New.
17997         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
17998         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
17999         (TARGET_MUST_PASS_IN_STACK): New.
18000         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
18001         * config/frv/frv.c (frv_must_pass_in_stack): New.
18002         (TARGET_MUST_PASS_IN_STACK): New.
18003         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
18004         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
18005         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
18006         (ix86_must_pass_in_stack): Make static.
18007         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
18008         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
18009         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
18010         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
18011         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
18012         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
18013         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
18014         (mcore_must_pass_on_stack): Remove.
18015         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
18016         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
18017         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
18018         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
18019         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
18020         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
18021         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
18022         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
18023         (TARGET_MUST_PASS_IN_STACK): New.
18024         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
18025         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
18026         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
18027         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
18028         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
18029         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
18030         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
18031         MUST_PASS_IN_STACK.
18032
18033         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
18034         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
18035         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
18036         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
18037         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
18038         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
18039         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
18040         config/xtensa/xtensa.c: Use target hook.
18041
18042 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
18043
18044         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
18045         * configure: Rebuilt.
18046
18047 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
18048
18049         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
18050         * config/mips/mips.h (mips_reg_names): Don't declare.
18051         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
18052         (TARGET_NAME_REGS): Delete.
18053         (TARGET_SWITCHES): Remove -mrnames.
18054         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
18055         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
18056         in REGISTER_NAMES.
18057         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
18058         (override_options): Remove handling of TARGET_NAME_REGS.
18059
18060 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
18061
18062         * config/mips/mips.h (TARGET_*): Boolify.
18063
18064 2004-07-12  Nick Clifton  <nickc@redhat.com>
18065
18066         * config.gcc: Add sh-*-symbianelf target.
18067         * config/sh/sh.c: Add new target macros:
18068         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
18069         TARGET_CXX_IMPORT_EXPORT_CLASS.
18070         (sh_file_start): Create a definition of the .directive section.
18071         (sh_attribute): Add dllimport and dllexport attributes.
18072         * config/sh/symbian-pre.h: New file.
18073         * config/sh/symbian-post.h: New file.
18074         * config/sh/symbian.c: New file. Contains Symbian specific
18075         functions.
18076         * config/sh/sh-protos.h: Add prototypes for new functions
18077         provided by symbian.c.
18078         * config/sh/t-symbian: New file.
18079         * doc/extend.texi: Document support for dllimport and dllexport
18080         attributes by the sh-symbianelf target.
18081
18082 2004-07-12  James E Wilson  <wilson@specifixinc.com>
18083
18084         * Makefile.in (AR): Use @AR@ not ar.
18085         (NM): New.
18086         (AR_FOR_TARGET): Use $(AR) not ar for native.
18087         (NM_FOR_TARGET): Use $(NM) not nm for native.
18088         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
18089         * configure: Regenerate.
18090
18091 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
18092
18093         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
18094         special case.
18095         (ashldi3_sp64): Likewise.
18096
18097 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18098
18099         PR target/16477
18100         * pa.c (function_arg): Update comment.
18101         * pa.h (BLOCK_REG_PADDING): Define.
18102
18103 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18104
18105         PR tree-optimization/16461
18106         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
18107         arguments of phi nodes.
18108
18109 2004-07-12  Devang Patel  <dpatel@apple.com>
18110
18111         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
18112
18113 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
18114
18115         * function.c (expand_function_start): Ensure r_save is in Pmode.
18116         * calls.c (prepare_call_address): Ensure static_chain_value is
18117         in Pmode.
18118         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
18119         r_save_area are in Pmode.
18120         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
18121         fnaddr, and static_chain are in Pmode.
18122
18123 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
18124
18125         PR target/16445
18126         * config/ia64/ia64.c (bundling): Don't count ignored insns.
18127
18128 2004-07-12  Richard Henderson  <rth@redhat.com>
18129
18130         * target.h (struct gcc_target): Move gimplify_va_arg_expr
18131         next to build_builtin_va_list.
18132         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
18133         * builtins.c (gimplify_va_arg_expr): Likewise.
18134         * gimplify.c (copy_if_shared_r): Likewise.
18135
18136 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
18137
18138         * passes.c (rest_of_decl_compilation): Don't defer call of
18139         assemble_variable if its DECL_RTL is already set.
18140
18141 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
18142
18143         * cfgloop.h (struct loop): Add nb_iterations field.
18144         (current_loops): Declare.
18145         * tree-chrec.c (chrec_not_analyzed_yet,
18146         chrec_dont_know, chrec_known, count_ev_in_wider_type,
18147         chrec_contains_symbols_defined_in_loop): Remove the temporary
18148         hooks.
18149         * tree-flow-inline.h (loop_containing_stmt): New function.
18150         * tree-scalar-evolution.c: Add implementation.
18151         * tree-scalar-evolution.h: Add declarations.
18152
18153 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
18154
18155         PR rtl-optimization/15921
18156         * Makefile.in (global.o): Add recog.h.
18157
18158         * global.c (recog.h): Add the include-clause.
18159         (bb_info): New member earlyclobber.
18160         (allocate_bb_info, free_bb_info): Initialize/finish the new
18161         member.
18162         (earlyclobber_regclass, earlyclobber_regclass_length): The new
18163         global variables.
18164         (check_earlyclobber, regclass_intersect,
18165         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
18166         New functions.
18167         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
18168         (make_accurate_live_analysis): Modify pavin.
18169
18170 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
18171
18172         * tree-cfg.c (find_taken_edge): Statically compute the truth
18173         value of a predicate comparing an SSA_NAME to itself.
18174
18175 2004-07-12  Roger Sayle  <roger@eyesopen.com>
18176
18177         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
18178         rs6000 doesn't have shift-and-add or shift-and-sub instructions
18179         by returning the cost of a multiplication plus an addition.
18180
18181 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
18182
18183         PR tree-optimization/14107
18184         * gimplify.c (gimplify_return_expr): Accept a
18185         RETURN_EXPR with an error argument.
18186         * tree-optimize.c (init_tree_optimization_passes):
18187         Run pass_warn_function_return at -O0.
18188
18189 2004-07-12  Roger Sayle  <roger@eyesopen.com>
18190
18191         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
18192         index entry.
18193
18194 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
18195
18196         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
18197         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
18198         * config/mips/3000.md: Add copyright notice.  Remove automota and
18199         function units; use generic ones instead.  Only define reservations
18200         for things that are different from generic.md.  Extend each clause
18201         to include r3900.
18202         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
18203         * config/mips/mips.md: Include them. Remove define_function_units.
18204         (alu, imuldiv): New automata and units.
18205
18206 2004-07-12  Ben Elliston  <bje@au.ibm.com>
18207
18208         * doc/invoke.texi (Optimize Options): Document -frename-registers
18209         not being enabled by default at -O3.
18210
18211 2004-07-11  Roger Sayle  <roger@eyesopen.com>
18212
18213         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
18214         floating point additions, to keep real immediate constant positive.
18215         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
18216         into X + C, and leave positive real constants as X - C.
18217
18218 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18219
18220         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
18221
18222 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18223
18224         PR tree-optimization/15654
18225         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
18226
18227 2004-07-11  Roger Sayle  <roger@eyesopen.com>
18228
18229         * builtins.c (fold_builtin_fputs): Don't bother converting the
18230         return type to integer_type_node, as we've already checked that
18231         the result will be ignored.
18232
18233         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
18234         that signed addition, subtraction, multiplication, division,
18235         remainder, negation and absolute value may potentially trap.
18236
18237         * fold-const.c (fold_ignored_result): New function to strip
18238         non-side-effecting tree nodes from an expression whose result
18239         is ignored.
18240         (fold_convert): Call fold_ignored_result when casting a value
18241         to VOID_TYPE.
18242         (omit_one_operand):  Call fold_ignored_result on the "omitted"
18243         operand when building a COMPOUND_EXPR.
18244         (pedantic_omit_one_operand): Likewise.
18245         * tree.h (fold_ignored_result): Prototype here.
18246         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
18247         when we're going to ignore the result.
18248
18249 2004-07-11  Richard Henderson  <rth@redhat.com>
18250
18251         PR tree-opt/16383
18252         * tree-ssa-ccp.c (fold_stmt_r): Split out...
18253         * tree.c (fields_compatible_p, find_compatible_field): ... new.
18254         * tree.h (fields_compatible_p, find_compatible_field): Declare.
18255         * tree-sra.c (sra_hash_tree): Hash fields by offset.
18256         (sra_elt_eq): Use fields_compatible_p.
18257         (generate_one_element_ref): Use find_compatible_field.
18258
18259 2004-07-11  Richard Henderson  <rth@redhat.com>
18260
18261         PR tree-opt/16422
18262         * tree-sra.c (generate_one_element_init): New.
18263         (generate_element_init): Use it.
18264         (scalarize_init): Push/pop gimplify context around it.
18265         (find_new_referenced_vars_1, find_new_referenced_vars): New.
18266         * gimplify.c (gimplify_expr): Allow SSA_NAME.
18267
18268 2004-07-11  Roger Sayle  <roger@eyesopen.com>
18269
18270         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
18271         combine.c's combine_insn_cost.
18272         * rtl.h (insn_rtx_cost): Prototype here.
18273         * combine.c (combine_insn_cost): Delete function.
18274         (combine_validate_cost): Update callers of combine_insn_cost to
18275         call insn_rtx_cost instead.
18276         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
18277         requesting the rtx_cost of call and/or jump instructions.
18278
18279         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
18280         rtx_cost directly.  Don't request/use the cost of call or jump
18281         instructions.  Return -1 if the cost of any instruction can't be
18282         determined (or the BB contains a function call).
18283         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
18284         -1 (i.e. can't determine the cost of any instruction or the basic
18285         block contains a subroutine call).
18286         (find_if_case_2): Likewise.
18287
18288 2004-07-11  Roger Sayle  <roger@eyesopen.com>
18289
18290         * rs6000.c (struct processor_costs): Change semantics of fields to
18291         include the COST_N_INSNS scaling, and update all initializers.
18292         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
18293         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
18294         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
18295         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
18296
18297 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
18298
18299         * LANGUAGES: Remove obsolete information.
18300
18301 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
18302
18303         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
18304         SIGBUS signal frames, the PSW address points *to* the faulting
18305         instruction, not after it.
18306
18307 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
18308
18309         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
18310         added to TLS symbol addresses.
18311
18312 2004-07-11  Richard Henderson  <rth@redhat.com>
18313
18314         * expmed.c (init_expmed): Use stack-local structures for
18315         temporary rtl.  Don't recognize shifts.
18316
18317 2004-07-11  Richard Henderson  <rth@redhat.com>
18318
18319         * expr.c (store_expr): Don't fiddle subreg promotion for types
18320         with precision smaller than the mode.
18321
18322 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
18323
18324         * tree.h (all_types_permanent): Remove.
18325
18326 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
18327
18328         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
18329         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
18330         * langhooks.c (lhd_clear_binding_stack): Remove.
18331         * langhooks-def.h (lhd_clear_binding_stack,
18332         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
18333         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
18334         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
18335         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
18336         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
18337         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
18338         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
18339         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
18340         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
18341         * tree.h (poplevel): Don't declare.
18342         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
18343         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
18344         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
18345         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
18346         Remove.
18347
18348 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
18349
18350         PR tree-optimization/16437
18351         * c-common.c (shorten_compare): Don't mark result of conversion to
18352         narrower signed type as overflowing.
18353         * fold-const.c (decode_field_reference): Determine whether
18354         signedness comes from outer type using precision rather than size.
18355
18356 2004-07-11  Phil Edwards  <phil@codesourcery.com>
18357
18358         * configure.ac:  Alphabetize --enable-checking list, add
18359         missing valgrind entry.
18360         * configure:  Regenerate.
18361
18362 2004-07-11  Phil Edwards  <phil@codesourcery.com>
18363
18364         * doc/install.texi (Testing):  Fix syntax in "make check" example.
18365
18366 2004-07-10  James E Wilson  <wilson@specifixinc.com>
18367
18368         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
18369
18370 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18371
18372         PR rtl-optimization/16001
18373         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
18374         niter_expr.
18375
18376 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
18377
18378         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
18379
18380 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
18381             James Morrison  <phython@gcc.gnu.org>
18382
18383         * doc/contrib.texi (Contributors): Add gfortran contributors and
18384         fix a couple of typos.
18385
18386 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18387
18388         PR rtl-optimization/15387
18389         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
18390         to incoming args space correctly.
18391
18392 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18393
18394         * pa.c (output_indirect_call): Only use %r2 as the link register in
18395         indirect calls with the long PA 2.0 pc-relative branch.
18396
18397 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
18398
18399         * config/i386/i386.c (override_options): Pick a 64-bit CPU
18400         for the default tuning if TARGET_64BIT.
18401
18402 2004-07-10  Richard Henderson  <rth@redhat.com>
18403
18404         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
18405         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
18406
18407 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
18408
18409         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
18410         * expmed.c (store_bit_field, extract_bit_field): Remove last
18411         argument.
18412         * builtins.c (expand_builtin_signbit): Adjust callers.
18413         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
18414         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
18415         * ifcvt.c (noce_emit_move_insn): Likewise.
18416         * stmt.c (expand_return): Likewise.
18417         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
18418         store_field, expand_expr_real_1): Likewise.
18419
18420 2004-07-10  Richard Henderson  <rth@redhat.com>
18421
18422         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
18423
18424 2004-07-09  Mike Stump  <mrs@apple.com>
18425
18426         * config/darwin.c (no_dead_strip): Add.
18427         (HAVE_DEAD_STRIP): Add.
18428         (darwin_emit_unwind_label): Ensure that we don't dead code strip
18429         the .eh label.
18430
18431 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18432
18433         * tree-ssa-loop-im.c: New file.
18434         * Makefile.in (tree-ssa-loop-im.o): Add.
18435         * cfgloop.c (superloop_at_depth): New function.
18436         * cfgloop.h (superloop_at_depth): Declare.
18437         * common.opt (ftree-lim): New flag.
18438         * expr.c (array_ref_up_bound): New function.
18439         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
18440         * timevar.def (TV_LIM): New timevar.
18441         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
18442         computing immediate uses of a phi node.
18443         * tree-flow.h (struct tree_ann_common_d): Add aux field.
18444         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
18445         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
18446         * tree-pass.h (pass_lim): Declare.
18447         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
18448         functions.
18449         (pass_lim): New pass structure.
18450         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
18451         * tree.c (in_array_bounds_p): New function.
18452         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
18453         (in_array_bounds_p, array_ref_up_bound): Declare.
18454         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
18455         * doc/passes.texi (tree-ssa-loop-im.c): Document.
18456
18457 2004-07-09  Richard Henderson  <rth@redhat.com>
18458
18459         * builtins.c (expand_builtin_stpcpy): Don't modify len.
18460
18461         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
18462         with prejudice.
18463
18464 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
18465
18466         * flags.h: Delete redundant prototypes that are being generated
18467         in options.h from common.opt.
18468         * common.opt: Add in the expository comments formerly in flags.h.
18469
18470 2004-07-09  Jan Beulich  <jbeulich@novell.com>
18471
18472         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
18473         available for use only when TARGET_MMX/_SSE is set, and check for
18474         variable argument function if any register count is non-zero.
18475         (function_arg): Correctly suppress repeated warnings for passing SSE
18476         vectors are arguments without SSE enabled.
18477         (ix86_function_arg_boundary): Without SSE enabled, the use of what
18478         would be SSE register modes does no longer influence the alignment.
18479
18480 2004-07-09  Richard Henderson  <rth@redhat.com>
18481
18482         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
18483         Always align upward to arg boundary.  Use size_in_bytes/round_up.
18484         Maintain type-correctness of constants.
18485         * stor-layout.c (round_up, round_down): Special-case powers of 2.
18486
18487 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
18488
18489         * config/sparc/sparc.c (*_costs): Scale instruction costs
18490         by COSTS_N_INSNS.
18491         (sparc_rtx_costs): Adjust as appropriate.
18492
18493 2004-07-09  Jan Beulich  <jbeulich@novell.com>
18494
18495         * config/i386/mm3dnow.h: New.
18496         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
18497
18498 2004-07-09  Richard Henderson  <rth@redhat.com>
18499
18500         * simplify-rtx.c (simplify_const_relational_operation): Only
18501         look at bounds of scalar integers.
18502
18503 2004-07-09  Jan Beulich  <jbeulich@novell.com>
18504
18505         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
18506
18507 2004-07-09  Andrew Pinski  <apinski@apple.com>
18508
18509         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
18510         always referenced.
18511         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
18512         UOBJC_METACLASS_decl.
18513
18514 2004-07-09  James E Wilson  <wilson@specifixinc.com>
18515
18516         PR target/16364
18517         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
18518         do return a parallel if hfa_mode == XFmode and mode == TImode.
18519
18520 2004-07-09  Jan Beulich  <jbeulich@novell.com>
18521
18522         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
18523         permissible for unary plus.
18524
18525 2004-07-09  Jan Beulich  <jbeulich@novell.com>
18526
18527         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
18528         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
18529         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
18530         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
18531         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
18532         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
18533         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
18534         (BUILTIN_xxxIMAX): New.
18535         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
18536         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
18537         BUILT_IN_PARITYIMAX.
18538
18539 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
18540
18541         * config/sparc/sparc.h (processor_costs): Define.
18542         (sparc_costs): Declare.
18543         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
18544         hypersparc_costs, sparclet_costs, ultrasparc_costs,
18545         ultrasparc3_costs): New.
18546         (sparc_override_options): Set sparc_costs as appropriate.
18547         (sparc_rtx_costs): Use sparc_costs instead of messy
18548         conditionals.
18549
18550 2004-07-09  Steven Bosscher  <stevenb@suse.de>
18551
18552         * doc/md.texi (Processor pipeline description): Mention that
18553         the old pipeline description is deprecated.
18554
18555         * config/rs6000/7450.md (automaton ppc7450): Split up, move
18556         mciu_7450 function unit to...
18557         (automaton ppc7450mciu): ...new automaton.
18558
18559         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
18560         (schedule_block): Don't consider inserting bubbles.
18561         (sched_init): Don't initialize DFA bubbles.
18562         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
18563         TARGET_SCHED_DFA_BUBBLE): Remove.
18564         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
18565         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
18566         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
18567
18568         * stmt.c (conditional_context): Remove prototype.
18569         * tree.h (conditional_context): Remove.
18570         * tree-cfg.c (pre_insert_on_edge): Remove.
18571
18572         * c-common.h (c_expand_asm_operands): Remove prototype.
18573         * c-typeck.c (c_expand_asm_operands): Remove.
18574
18575 2004-07-09  Jan Beulich  <jbeulich@novell.com>
18576
18577         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
18578         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
18579         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
18580         and V8QI are class SSE. All sufficiently small remaining vector modes
18581         must be passed in one or two integer registers.
18582         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
18583         returned in memory.
18584         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
18585         __builtin_ia32_pmuludq128 have non-uniform argument and return types
18586         and must thus be handled explicitly.
18587         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
18588         MMX and XMM regs.
18589         (movv8qi_internal, movv4hi_internal, movv2si_internal,
18590         movv2sf_internal): Permit moving between MMX and XMM registers (since
18591         MMX areguments and return values are passed in XMM registers).
18592         (sse2_umulsidi3): Correct type and mode.
18593
18594 2004-07-09  Richard Henderson  <rth@redhat.com>
18595
18596         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
18597
18598 2004-07-09  Eric Christopher  <echristo@redhat.com>
18599
18600         * config/rs6000/40x.md: Split into two automatons.
18601
18602 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
18603             Andrew Pinski  <apinski@apple.com>
18604
18605         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
18606         on when we have more than one input file.
18607         (c_common_parse_file): Restore loop over all input files.
18608         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
18609
18610         * c-decl.c (set_type_context): New function.
18611         (pop_scope): Use it to set context of types.  When we
18612         encounter a TYPE_DECL, set the context of the attached type too.
18613         (pop_file_scope): Don't call cpp_undef_all here.
18614         (diagnose_mismatched_decls): Do not complain about a second
18615         definition of an 'extern inline' function if it's not in the
18616         same translation unit.  Do not complain about inline
18617         declaration after use if the use was in a different
18618         translation unit.
18619         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
18620         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
18621         the external scope.
18622         (pushdecl_top_level): Likewise.
18623         (grokdeclarator): Clarify what is going on with setting
18624         DECL_EXTERNAL on function types, a little.
18625         (c_write_global_declarations): Don't do anything if
18626         -fsyntax-only or errors have been encountered.
18627
18628 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
18629
18630         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
18631
18632 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18633
18634         PR target/16459
18635         * pa.c (output_indirect_call): Use %r2 as the link register when
18636         calling $$dyncall with a pc-relative branch.
18637
18638 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
18639
18640         * doc/install.texi (Binaries): Mention OpenPKG.
18641
18642 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
18643
18644         Fix PR tree-optimization/15555
18645         * tree-dfa.c (dump_variable): If the variable is a pointer
18646         SSA_NAME, also dump its points-to information.
18647         * tree-flow.h (struct ptr_info_def): Add field
18648         is_dereferenced.
18649         (dump_points_to_info_for): Declare.
18650         (debug_points_to_info_for): Declare.
18651         * tree-optimize.c (init_tree_optimization_passes): Add a
18652         second alias analysis pass after DOM2.
18653         Move pass_del_pta to a later spot.
18654         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
18655         create a name tags when we find a dereferenced pointer.  Just
18656         mark the pointer dereferenced.
18657         (collect_points_to_info_for): Move code to clear points-to
18658         information to create_name_tags.
18659         (create_name_tags): New function.
18660         (compute_flow_sensitive_aliasing): Call it.
18661         (setup_pointers_and_addressables): Mark type tags for renaming
18662         here instead of ...
18663         (create_memory_tag): ... here.
18664         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
18665         (dump_points_to_info_for): Declare extern.
18666         (debug_points_to_info_for): New function.
18667
18668 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
18669
18670         * config/arc/arc.md: Switch to DFA-based scheduler description.
18671         * config/arc/arc.c: Switch to DFA-based scheduler description.
18672
18673 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
18674
18675         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
18676         pointer.
18677
18678 2004-07-09  Richard Henderson  <rth@redhat.com>
18679
18680         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
18681         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18682         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
18683         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
18684
18685         * config/v850/v850-protos.h (v850_va_arg): Remove.
18686         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18687         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
18688         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
18689         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
18690         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
18691
18692 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
18693
18694         PR target/12133
18695         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
18696         and DImode to use +/-4k offset.
18697
18698 2004-07-09  Richard Henderson  <rth@redhat.com>
18699
18700         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
18701         Remove.
18702         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18703         (xstormy16_gimplify_va_arg_expr): Rewrite from
18704         xstormy16_expand_builtin_va_arg.
18705         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
18706
18707         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
18708         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
18709
18710         * config/sh/sh-protos.h (sh_va_arg): Remove.
18711         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18712         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
18713         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
18714
18715         * config/pa/pa-protos.h (hppa_va_arg): Remove.
18716         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18717         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
18718         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
18719
18720         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
18721         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18722         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
18723         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
18724
18725 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
18726
18727         * config/sparc/sparc.md (return): Rewrite length formula.
18728         * config/sparc/sparc.c (output_return): Pass 1 as 5th
18729         argument to final_scan_insn when in a delay slot.
18730         (output_sibcall): Likewise.
18731
18732 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
18733
18734         * arm.c (arm_cpp_interwork): New variable.
18735         (arm_override_options): Set it if TARGET_INTERWORK was on the command
18736         line.
18737         * arm.h (arm_cpp_interwork): Declare it.
18738         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
18739         __THUMB_INTERWORK__ in the preprocessor.
18740
18741 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
18742
18743         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
18744
18745 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
18746
18747         PR target/16416
18748         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
18749         Override default settings to account for -m32 and -m64.
18750
18751 2004-07-08  Randolph Chung  <tausq@debian.org>
18752
18753         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
18754
18755 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
18756
18757         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
18758         before comparing it as such.
18759
18760 2004-07-08  Richard Henderson  <rth@redhat.com>
18761
18762         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
18763         temporary.  Use bit arithmetic to align.
18764
18765 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
18766
18767         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
18768         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
18769         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
18770         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
18771         add_labels_and_missing_jumps, find_jump_block,
18772         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
18773         Likewise.
18774         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
18775         link_btr_uses, move_btr_def): Likewise.
18776         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
18777         expand_builtin_expect_jump): Likewise.
18778         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
18779         * calls.c (expand_call, emit_library_call_value_1): Likewise.
18780         * cfganal.c (forwarder_block_p): Likewise.
18781         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
18782         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
18783         find_bb_boundaries): Likewise.
18784         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
18785         merge_blocks_move_predecessor_nojumps,
18786         merge_blocks_move_successor_nojumps, insns_match_p,
18787         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
18788         try_optimize_cfg): Likewise.
18789         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
18790         * cfglayout.c (skip_insns_after_block, label_for_bb,
18791         record_effective_endpoints, insn_locators_initialize,
18792         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
18793         * cfgmainloop.c (create_loop_notes): Likewise.
18794         * cfgrtl.c (delete_insn, delete_insn_chain,
18795         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
18796         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
18797         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
18798         redirect_branch_edge, force_nonfallthru_and_redirect,
18799         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
18800         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
18801         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
18802         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
18803         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
18804         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
18805         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
18806         * combine.c (combine_instructions, can_combine_p, try_combine,
18807         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
18808         distribute_notes, distribute_links, insn_cuid): Likewise.
18809         * cse.c (fold_rtx, cse_insn, cse_around_loop,
18810         invalidate_skipped_block, cse_set_around_loop,
18811         cse_end_of_basic_block, cse_main, cse_basic_block,
18812         cse_condition_code_reg): Likewise.
18813         * cselib.c (cselib_process_insn): Likewise.
18814         * ddg.c (create_ddg): Likewise.
18815         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
18816         Likewise.
18817         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
18818         gen_label_die, dwarf2out_var_location): Likewise.
18819         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
18820         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
18821         last_call_insn, active_insn_p, next_label, prev_label,
18822         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
18823         add_insn_before, remove_insn, add_function_usage_to,
18824         reorder_insns, find_line_note, remove_unnecessary_notes,
18825         emit_insn_after_1, classify_insn): Likewise.
18826         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
18827         connect_post_landing_pads, sjlj_mark_call_sites,
18828         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
18829         can_throw_internal, can_throw_external, set_nothrow_function_flags,
18830         convert_to_eh_region_ranges): Likewise.
18831         * explow.c (optimize_save_area_alloca): Likewise.
18832         * expr.c (expand_expr_real): Likewise.
18833         * final.c (insn_current_reference_address, compute_alignments,
18834         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
18835         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
18836         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
18837         propagate_block_delete_insn, propagate_one_insn,
18838         init_propagate_block_info, propagate_block, libcall_dead_p,
18839         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
18840         Likewise.
18841         * function.c (instantiate_virtual_regs, reorder_blocks_1,
18842         expand_function_start, expand_function_end, contains,
18843         thread_prologue_and_epilogue_insns,
18844         reposition_prologue_and_epilogue_notes): Likewise.
18845         * gcse.c (constprop_register, bypass_conditional_jumps,
18846         insert_insn_end_bb, gcse_after_reload): Likewise.
18847         * genemit.c (gen_expand, gen_split): Likewise.
18848         * genpeep.c (gen_peephole, main): Likewise.
18849         * global.c (build_insn_chain): Likewise.
18850         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
18851         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
18852         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
18853         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
18854         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
18855         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
18856         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
18857         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
18858         dead_or_predicable): Likewise.
18859         * integrate.c (try_constants): Likewise.
18860         * jump.c (rebuild_jump_labels, cleanup_barriers,
18861         purge_line_number_notes, init_label_info, mark_all_labels,
18862         squeeze_notes, get_label_before, get_label_after,
18863         reversed_comparison_code_parts, simplejump_p, pc_set,
18864         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
18865         delete_barrier, delete_prior_computation, delete_computation,
18866         delete_related_insns, delete_for_peephole, redirect_jump):
18867         Likewise.
18868         * lcm.c (optimize_mode_switching): Likewise.
18869         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
18870         Likewise.
18871         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
18872         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
18873         * loop-iv.c (simplify_using_assignment): Likewise.
18874         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
18875         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
18876         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
18877         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
18878         check_insn_for_givs, check_final_value, update_giv_derive,
18879         basic_induction_var, product_cheap_p, check_dbra_loop,
18880         loop_insn_first_p, last_use_this_basic_block,
18881         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
18882         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
18883         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
18884         sms_schedule_by_order): Likewise.
18885         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
18886         * postreload.c (reload_cse_simplify_operands, reload_combine,
18887         reload_cse_move2add): Likewise.
18888         * predict.c (can_predict_insn_p, estimate_probability,
18889         expected_value_to_br_prob, process_note_predictions): Likewise.
18890         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
18891         * profile.c (branch_prob): Likewise.
18892         * ra-build.c (live_out_1, livethrough_conflicts_bb,
18893         detect_webs_set_in_cond_jump): Likewise.
18894         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
18895         ra_print_rtl_with_bb): Likewise.
18896         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
18897         * recog.c (next_insn_tests_no_inequality, find_single_use,
18898         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
18899         * reg-stack.c (next_flags_user, record_label_references,
18900         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
18901         compensate_edge, convert_regs_1): Likewise.
18902         * regclass.c (scan_one_insn): Likewise.
18903         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
18904         regmove_optimize, fixup_match_1, single_set_for_csa,
18905         combine_stack_adjustments_for_block): Likewise.
18906         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
18907         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
18908         find_equiv_reg): Likewise.
18909         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
18910         reload_as_needed, emit_input_reload_insns, do_output_reload,
18911         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
18912         Likewise.
18913         * reorg.c (find_end_label, emit_delay_sequence,
18914         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
18915         get_jump_flags, rare_destination, mostly_true_jump,
18916         try_merge_delay_insns, redundant_insn, own_thread_p,
18917         fill_simple_delay_slots, fill_slots_from_thread,
18918         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
18919         dbr_schedule): Likewise.
18920         * resource.c (find_basic_block, next_insn_no_annul,
18921         find_dead_or_set_registers, mark_target_live_regs): Likewise.
18922         * rtl.h (RTX_PREV): Likewise.
18923         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
18924         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
18925         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
18926         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
18927         tablejump_p, computed_jump_p, insns_safe_to_move_p,
18928         find_first_parameter_load, can_hoist_insn_p): Likewise.
18929         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
18930         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
18931         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
18932         schedule_ebbs): Likewise.
18933         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
18934         is_conditionally_protected, can_schedule_ready_p,
18935         add_branch_dependences, debug_dependencies): Likewise.
18936         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
18937         Likewise.
18938         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
18939         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
18940         set_dominates_use, ujump_to_loop_cont): Likewise.
18941         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
18942         * varasm.c (output_constant_pool_1): Likewise.
18943
18944 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18945
18946         * tree-scalar-evolution.c: New file.
18947         * tree-scalar-evolution.h: New file.
18948         * tree-ssa-loop-niter.c: New file.
18949         * Makefile.in (SCEV_H): New.
18950         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
18951         * cfgloop.h (struct loop): Add bounds field.
18952         * tree-flow.h (struct tree_niter_desc): New type.
18953         (number_of_iterations_cond, number_of_iterations_exit,
18954         loop_niter_by_eval, find_loop_niter_by_eval,
18955         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
18956         free_numbers_of_iterations_estimates): Declare.
18957         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
18958         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
18959         * doc/invoke.texi (max-iterations-to-track): Document.
18960
18961 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18962
18963         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
18964         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
18965         (MODE_AFTER): Add cast appropriately.
18966         * config/sh/sh.md (movdi splitter): Likewise.
18967         (casesi_worker_2): Add const qualifier appropriately.
18968         (eh_return): Remove unused variable.
18969         (insv): Initialize v;
18970
18971 2004-07-08  Richard Henderson  <rth@redhat.com>
18972
18973         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
18974         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18975         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
18976         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
18977         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
18978
18979         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
18980         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18981         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
18982         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
18983
18984         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
18985         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18986         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
18987         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
18988
18989         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
18990         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18991         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
18992         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
18993
18994         * config/i860/i860-protos.h (i860_va_arg): Remove.
18995         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18996         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
18997         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
18998
18999 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
19000
19001         * system.h: Prototype getpagesize if missing.
19002         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
19003         * configure: Regenerate.
19004         * config.in: Regenerate.
19005
19006 2004-07-08  Richard Henderson  <rth@redhat.com>
19007
19008         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
19009         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19010         (fr30_gimplify_va_arg_expr): New.
19011         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
19012         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
19013
19014 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
19015
19016         PR target/16414
19017         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
19018         of asm_noperands result.
19019
19020 2004-07-08  Richard Henderson  <rth@redhat.com>
19021
19022         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
19023         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19024         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
19025         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
19026
19027 2004-07-08  Richard Henderson  <rth@redhat.com>
19028
19029         * builtins.c (ind_gimplify_va_arg_expr): New.
19030         * tree.h (ind_gimplify_va_arg_expr): Declare.
19031         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
19032
19033 2004-07-08  Jan Beulich  <jbeulich@novell.com>
19034
19035         * expmed.c (extract_bit_field): Correct condition to use vec_extract
19036         patterns also on vector elements other than the first one.
19037         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
19038         break statements.
19039
19040 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
19041
19042         * config/rs6000/darwin-ldouble.c: Correct reference
19043         to the Linnainmaa paper.
19044
19045 2004-07-08  Richard Henderson  <rth@redhat.com>
19046
19047         * config/arc/arc-protos.h (arc_va_arg): Remove.
19048         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19049         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
19050         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
19051
19052         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
19053         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19054         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
19055         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
19056
19057 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19058
19059         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
19060
19061 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
19062
19063         * c-decl.c (static_ctors, static_dtors): Make static.
19064         (pop_file_scope): Call c_common_write_pch and
19065         cgraph_finalize_compilation_unit here.
19066         (build_cdtor): Moved here from c-objc-common.c; simplify.
19067         (c_write_global_declarations_1): Clarify comment.
19068         (c_write_global_declarations): Close the external scope before
19069         doing anything else.  Call build_cdtor, cgraph_optimize, and
19070         mudflap_finish_file here.
19071         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
19072         Clarify comment.
19073         * c-objc-common.c: No need to include cgraph.h.
19074         (build_cdtor): Moved to c-decl.c.
19075         (c_objc_common_finish_file): Delete.
19076         * c-tree.h: Update to match.
19077         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
19078         (generate_static_references): Set TREE_USED before calling finish_decl.
19079         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
19080         on the static_instances_decl.
19081
19082 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
19083
19084         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
19085         decls when there is only one input translation unit.
19086         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
19087         change of 2004-07-05; do not treat declarations with
19088         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
19089         * opts.c (cur_in_fname): Delete.
19090         * opts.h: Likewise.
19091         * tree.c: Revert changes of 2004-07-05; no special treatment
19092         for TRANSLATION_UNIT_DECLs.
19093         * Makefile.in (tree.o): Update dependencies.
19094
19095 2004-07-08  Roger Sayle  <roger@eyesopen.com>
19096
19097         * builtins.c (fold_builtin_strcpy): Merge functionality from
19098         simplify_builtin_strcpy.  Add additional len argument.  No longer
19099         static.  Remove function prototype.
19100         (fold_builtin_strncpy): Likewise integrate functionality from
19101         simplify_builtin_strncpy.  Add additional slen argument.  No
19102         longer static.  Remove function prototype.
19103         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
19104         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
19105         types of "ignore" and "unlocked" parameters to bool.
19106         (fold_builtin_1):  Add additional ignore argument.  Call renamed
19107         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
19108         builtins.  Update arguments to fold_builtin_strncpy and
19109         fold_builtin_strcpy.  Add function prototype.
19110         (fold_builtin): Add additional Boolean ignore argument to pass
19111         to fold_builtin_1.
19112         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
19113         and fold_builtin_strncpy instead of simplify_builtin_fputs,
19114         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
19115
19116         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
19117         simplify_builtin_strncpy): Delete function prototypes.
19118         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
19119         fold_builtin_strncpy): Add function prototypes here.
19120         (fold_builtin): Update function prototype with new "bool ignore".
19121
19122         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
19123         (ccp_fold_builtin):  Update call to fold_builtin.  Call
19124         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
19125         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
19126         simplify_builtin_strncpy respectively.
19127         * fold-const.c (fold): Update call to fold_builtin.
19128
19129 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
19130
19131         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
19132         to strcpy.
19133
19134         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
19135         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
19136         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
19137         * calls.c: Remove ifdefs of macros above.
19138         * functions.c: Likewise.
19139         * expr.c: Likewise.
19140
19141 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
19142
19143         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
19144         (arch attribute): Delete.
19145         (current_function_calls_alloca attribute): Rename into calls_alloca.
19146         (calls_eh_return): New attribute.
19147         (leaf_function): Likewise.
19148         (length attribute): Fix formula for sibcalls.
19149         (return insn): Correctly compute the 'length' attribute.
19150         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
19151
19152 2004-07-08  Richard Henderson  <rth@redhat.com>
19153
19154         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
19155         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
19156         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
19157         * tree-eh.c (lower_eh_constructs_1): Likewise.
19158         * tree-sra.c (sra_walk_modify_expr): Likewise.
19159         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
19160         (eliminate_unnecessary_stmts): Likewise.
19161         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
19162         * tree-tailcall.c (optimize_tail_call): Likewise.
19163         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
19164
19165 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
19166             Jakub Jelinek  <jakub@redhat.com>
19167
19168         * config/i386/i386.c (override_options): Enable
19169         SSE prefetches with -mtune, as long as we are
19170         compiling for i686 or higher.  All i686 processors
19171         accept SSE prefetches as NOPS, some i586's don't.
19172
19173 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
19174
19175         PR target/10567
19176         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
19177
19178 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
19179
19180         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
19181         the handling of clobbering ASM_EXPRs.
19182
19183 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
19184
19185         PR target/16430
19186         * config/sparc/sparc.c (function_value): In 64-bit mode,
19187         return the aggregates larger than 16 bytes like unions.
19188
19189 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
19190
19191         PR target/16199
19192         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
19193         'temp' is zero, generate new pseudos as needed and emit the
19194         sequence of insns in single-assignment form.  Resync comments
19195         with code.
19196         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
19197         function before reload.
19198
19199 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
19200
19201         * vec.c (vec_assert_fail): Remove duplicate 'function'.
19202
19203         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
19204
19205         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
19206         Allocation is signed.
19207         (VEC_reserve): Return flag, allocation is signed.
19208
19209 2004-07-08  Richard Henderson  <rth@redhat.com>
19210
19211         * tree-ssa-ccp.c (fold_stmt): Get type directly from
19212         OBJ_TYPE_REF_OBJECT.
19213
19214 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
19215             Neil Booth  <neil@daikokuya.co.uk>
19216
19217         PR c/2511
19218         PR c/3325
19219         * c-decl.c (finish_struct): Ensure bit-fields are given the
19220         correct type.
19221         * c-common.c (c_common_signed_or_unsigned_type): For C, require
19222         the precision to match as well as the mode.
19223         * expr.c (reduce_to_bit_field_precision): New function.
19224         (expand_expr_real_1): Reduce expressions of bit-field type to
19225         proper precision.
19226         * langhooks.h (reduce_bit_field_operations): New hook.
19227         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
19228         Define.
19229         * c-lang.c, objc/objc-lang.c
19230         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
19231         * objc/objc-act.c (check_ivars): Convert types to bit-field types
19232         before checking.
19233         * tree.c (build_nonstandard_integer_type): New function.
19234         * tree.h (build_nonstandard_integer_type): New prototype.
19235         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
19236         conversions between integer and boolean types as useless.
19237
19238 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
19239
19240         * c-common.c (c_common_nodes_and_builtins): Do not
19241         create __builtin_ptrdiff_t and __builtin_size_t.
19242
19243 2004-07-08  Andrew Pinski  <apinski@apple.com>
19244
19245         * Makefile.in (libbackend.o): Add -combine to the gcc
19246         command line.
19247
19248 2004-07-08  Nick Clifton  <nickc@redhat.com>
19249
19250         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
19251         Set to -Os.
19252
19253 2004-07-08  Richard Henderson  <rth@redhat.com>
19254
19255         * except.c (expand_eh_region_start, expand_eh_region_end,
19256         expand_eh_handler, expand_eh_region_end_cleanup,
19257         expand_start_all_catch, expand_start_catch, expand_end_catch,
19258         expand_end_all_catch, expand_eh_region_end_allowed,
19259         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
19260         expand_eh_region_end_fixup): Remove.
19261         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
19262         cleanups, outer_cleanups, label_chain, exception_region.
19263         (struct goto_fixup): Remove stack_level, cleanup_list_list.
19264         (struct label_chain): Remove.
19265         (struct stmt_status): Remove x_stack_block_stack.
19266         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
19267         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
19268         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
19269         end_cleanup_deferral, last_cleanup_this_contour,
19270         containing_blocks_have_cleanups_or_stack_level,
19271         any_pending_cleanups): Remove.
19272         (expand_null_return_1): Take no arguments.
19273         (expand_label, expand_naked_return, expand_return,
19274         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
19275         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
19276         expand_end_case_type): Don't use any of them.
19277         * calls.c (expand_call): Likewise.
19278         * dojump.c (do_jump): Likewise.
19279         * function.c (expand_function_end): Likewise.
19280         * expr.c (store_expr, expand_expr_real_1): Likewise.
19281         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
19282         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
19283         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
19284         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
19285         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
19286         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
19287         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
19288         for WITH_CLEANUP_EXPR.
19289         (gimple_push_cleanup): Likewise.
19290         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
19291         * print-tree.c (print_node): Likewise.
19292         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
19293         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
19294         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
19295         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
19296         (GOTO_SUBROUTINE_EXPR): Remove.
19297         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
19298         (DECL_TOO_LATE): Remove.
19299         * except.h, tree.h: Update decls.
19300
19301 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
19302
19303         * explow.c (optimize_save_area_alloca): Do not accept parameters.
19304         * passes.c (rest_of_handle_final): Handle symout.
19305         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
19306         Push timevar here.
19307         (rest_of_handle_sched): Break out SMS.  Remove ifs for
19308         flag_schedule_insns and flag_modulo_sched.
19309         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
19310         collect at the end.
19311         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
19312         (rest_of_handle_partition_blocks, rest_of_handle_sms,
19313         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
19314         rest_of_handle_mode_switching, rest_of_handle_jump,
19315         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
19316         rest_of_handle_jump2, rest_of_handle_postreload,
19317         rest_of_handle_flow2, rest_of_clean_state,
19318         rest_of_handle_shorten_branches,
19319         rest_of_handle_prologue_epilogue,
19320         rest_of_handle_branch_target_load_optimize): New.
19321         (rest_of_compilation): Call the above.  Remove ggc_collect
19322         calls moved to rest_of_handle_*.
19323         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
19324
19325         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
19326         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
19327         * except.h (set_nothrow_function_flags): Update comment.
19328         * function.c (current_function_nothrow): Remove.
19329         * output.h (current_function_nothrow): Remove.
19330         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
19331         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
19332
19333 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
19334
19335         PR bootstrap/16326
19336         * reorg.c: Revert 2004-06-30 change.
19337         (find_end_label): If HAVE_epilogue and !HAVE_return,
19338         return 0 instead of creating a label at the end of the insn chain.
19339         (optimize_skip): Account for the failure mode of find_end_label.
19340         (fill_simple_delay_slots): Likewise.
19341         (fill_slots_from_thread): Likewise.
19342         (relax_delay_slots): Likewise.
19343
19344 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
19345
19346         * tree-flow.h (addressable_vars): Declare.
19347         * tree-ssa-alias.c (addressable_vars): Define.
19348         (setup_pointers_and_addressables): Add addressable variables
19349         to addressable_vars.
19350         * tree-ssa-operands.c (get_stmt_operands): Move
19351         handling of ASM_EXPRs ...
19352         (get_asm_expr_operands): ... here.
19353         When the ASM_EXPR clobbers memory, also clobber addressable
19354         variables.
19355         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
19356         (delete_tree_ssa): Reset addressable_vars.
19357
19358 2004-07-07  Jan Beulich  <jbeulich@novell.com>
19359             Richard Henderson  <rth@redhat.com>
19360
19361         * varasm.c (assemble_variable): Use assemble_zeros for
19362         zero-initialized variables.
19363         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
19364         for SECCAT_BSS and SECCAT_TBSS.
19365
19366 2004-07-07  Jan Beulich  <jbeulich@novell.com>
19367
19368         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
19369
19370         * expmed.c (emit_store_flag): Also special-case double-word
19371         (in-)equality comparison against -1.
19372
19373         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
19374         passing arguments the containers for which are registers.
19375
19376         * calls.c (emit_library_call_value_1): Use mode of function parameter
19377         rather than that of argument since constants have none.
19378
19379 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
19380
19381         Introduce H8SX support.
19382         * expr.c (expand_strcpy): Renamed and moved to...
19383         * builtins.c (expand_movstr): ... here.  Tweak.
19384         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
19385         computed or has side effects.
19386         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
19387         unused, or if mempcpy fails.  Adjust the return value in the
19388         latter case.  Use movstr if everything else fails.
19389         * doc/md.texi (movstr): Document.
19390         (movmemM, clrmemM): Fix explanation of memory block operands.
19391         * config/h8300/h8300.md (stpcpy): Renamed to...
19392         (movstr): ... this.  Adjust.
19393         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
19394         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
19395         movmem* and clrstr* to clrmem*.
19396         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
19397         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
19398         GENERAL_REGS, always.
19399         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
19400         getting the stack pointer as addr.
19401         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
19402         from general_operand_dst.
19403         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
19404         variant of...
19405         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
19406         instead of requiring it to match only before reload.
19407         (stpcpy_internal_normal): New, normal-mode variant of...
19408         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
19409         `D' instead of requiring it to match only before reload.
19410         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
19411         mode argument.
19412         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
19413         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
19414         h8300_get_index.
19415         * config/h8300/h8300.md (attr type): Add call.
19416         (attr can_delay): If type is call, set it no.
19417         (call, call_value): Set type to call.
19418         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
19419         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
19420         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
19421         * tree.c (get_narrower): Don't narrow integral types into
19422         non-integral types.
19423         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
19424         frame_size *before* the first use.
19425         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
19426         on input.
19427         (peephole2): Don't widen instructions that push SP.  Move
19428         decrement of SP to the end of all stm-generating peepholes.
19429         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
19430         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
19431         and OR to set it to all ones.
19432         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
19433         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
19434         (call, call_value): Set can_delay to "no".
19435         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
19436         * config/h8300/h8300.md (extzv): Make subreg check more robust.
19437         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
19438         * config/h8300/h8300.md (*brabit): Remove.
19439         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
19440         zero_extract.  Use bit_memory_operand as the predicate for
19441         operand 1 and 'WU' as the constraint.  Check the difference
19442         between the base length and the final one when deciding which
19443         type of branch to use.
19444         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
19445         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
19446         Use convert_move to extend the result for TARGET_H8300SX.  Check
19447         for QImode memory references.  Optimize the case where the
19448         destination is a paradoxical subreg.
19449         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
19450         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
19451         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
19452         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
19453         * config/h8300/h8300.md: Include mova.md
19454         (length_table): Add mova and mova_zero.
19455         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
19456         after all constant addresses for '%R', '%X', '%T' and '%S'.
19457         (h8300_mova_length): New function.
19458         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
19459         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
19460         dependencies for s-config, etc.
19461         * config/h8300/gemova.sh: New file.
19462         * config/h8300/mova.md: Generated.
19463         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
19464         * config/h8300/h8300.c (h8300_bitfield_length): New.
19465         (nibble_operand): Adjust.
19466         (h8300_binary_length): Handle conditional binary op.
19467         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
19468         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
19469         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
19470         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
19471         constraints.  WU is introduced as a variant of U that requires a
19472         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
19473         * config/h8300/h8300.md (attr type): Added bitbranch.
19474         (attr length_table): Added bitfield and bitbranch.
19475         (attr length): Compute bitbranch length.
19476         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
19477         least-significant bit of a byte.
19478         (brabit, brabc, brabs): New.
19479         (insv, extzv): Emit bfst and bfld on H8300SX.
19480         (bfld, bfst, seq, sne): New.
19481         (bstzhireg, cmpstz, bstz, bistz): New.
19482         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
19483         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
19484         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
19485         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
19486         (h8sx_unary_memory_operator): New function.
19487         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
19488         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
19489         * config/h8300/h8300.md: Add peepholes to combine reloads and
19490         arithmetic insns.
19491         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
19492         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
19493         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
19494         (and?i, ior?i, xor?i): Likewise.
19495         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
19496         * config/h8300/h8300.c: Move enums and prototypes to head of file.
19497         Various whitespace fixes.
19498         (h8300_constant_length): New function, split out from...
19499         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
19500         (h8300_classify_operand): Use IN_RANGE.
19501         (h8300_classify_operand): Use h8300_constant_length.
19502         (h8300_short_move_mem_p): Tighten size check.
19503         (h8sx_mergeable_memrefs_p): Tighten equality check.
19504         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
19505         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
19506         for -msx.
19507         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
19508         * config/h8300/crtn.asm: Likewise.
19509         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
19510         if __H8300SX__ is defined.
19511         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
19512         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
19513         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
19514         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
19515         addresses as mode-dependent.
19516         * config/h8300/h8300.c (print_operand_address): Update call to
19517         h8300_get_index.
19518         (h8300_get_index): Take a mode argument.  Rework to fix an
19519         earlier misunderstanding.
19520         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
19521         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
19522         into a register if TARGET_H8300SX.
19523         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
19524         TARGET_H8300SX.  Also disable related define_splits.
19525         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
19526         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
19527         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
19528         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
19529         * config/h8300/h8300.h (OK_FOR_Z): New macro.
19530         (EXTRA_CONSTRAINT_STR): Check it.
19531         * config/h8300/h8300.c (h8300_classify_operand): Accept null
19532         class arguments.
19533         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
19534         * config/h8300/h8300.md (length_table): Add mov_imm4.
19535         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
19536         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
19537         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
19538         be a label.
19539         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
19540         * config/h8300/h8300.c (h8300_reorg): New function.
19541         (TARGET_MACHINE_DEPENDENT_REORG): Define.
19542         * config/h8300/h8300.md (length): Subtract the length of the
19543         delay slot from (pc) when checking the range of forward branches.
19544         (delay_slot, can_delay): New attributes.
19545         (define_delay): Add bra/s handling.
19546         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
19547         (jump): Add delayed-branch handling.
19548         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
19549         * expr.c (expand_strcpy): New function.
19550         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
19551         (expand_builtin_stpcpy): Likewise.
19552         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
19553         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
19554         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
19555         handling to improve register allocation for -fno-omit-frame-pointer.
19556         (h8sx_split_movmd): Delete, moving er6 handling into...
19557         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
19558         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
19559         (movmd): Add calls to copy_rtx.
19560         (movmd_internal): In the second alternative, allow the initial and
19561         final destination registers to be different .  Update the splitter
19562         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
19563         instead of h8sx_split_movmd.
19564         (stpcpy, movsd): New expanders.
19565         (movsd_internal): New define_insn.
19566         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
19567         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
19568         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
19569         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
19570         and DESTINATION_REGS.
19571         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
19572         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
19573         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
19574         (h8300_move_ratio): Declare.
19575         (MOVE_RATIO): Use it.
19576         * config/h8300/h8300.c (h8300_move_ratio): New variable.
19577         (h8300_init_once): Initialize it.
19578         (h8300_reg_class_from_letter): New function.
19579         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
19580         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
19581         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
19582         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
19583         (movstrsi, movmd): New expanders.
19584         (movmd_internal): New insn.
19585         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
19586         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
19587         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
19588         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
19589         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
19590         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
19591         * config/h8300/h8300.c (nibble_operand): Fix warning.
19592         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
19593         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
19594         (movsf_h8300h): Disable for TARGET_H8300SX.
19595         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
19596         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
19597         h8300_stm_parallel and h8300_return_parallel.
19598         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
19599         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
19600         h8300_stm_parallel, h8300_return_parallel): New functions.
19601         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
19602         if TARGET_H8300SX.  Use h8300_push_pop.
19603         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
19604         and final pop when generating h8sx code.  Always emit some form
19605         of return insn.
19606         * config/h8300/h8300.md: Don't enforce register alignment in
19607         stm peepholes if TARGET_H8300SX.
19608         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
19609         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
19610         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
19611         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
19612         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
19613         (MULTILIB_DIRNAMES): Add a directory for it.
19614         (MULTILIB_MATCHES): Delete.
19615         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
19616         * final.c (walk_alter_subreg): Handle addresses with subregs
19617         inside a ZERO_EXTEND or AND.
19618         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
19619         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
19620         if TARGET_H8300SX.
19621         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
19622         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
19623         @(dd,Rn.w) and @(dd,ERn.L).
19624         (h8300_displacement_size): Take the whole address as argument.
19625         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
19626         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
19627         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
19628         (h8sx_mergeable_memrefs_p): Declare.
19629         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
19630         (HAVE_PRE_INCREMENT): Likewise.
19631         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
19632         addresses for TARGET_H8300SX,
19633         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
19634         and POST_DEC.
19635         (movb_length_table, movl_length_table): New tables.
19636         (movw_length_table): Define to movb_length_table.
19637         (h8300_displacement_size): New, split out from...
19638         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
19639         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
19640         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
19641         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
19642         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
19643         (compute_plussi_length, compute_plussi_cc): Update accordingly.
19644         (h8sx_unary_shift_operator): Get the mode from the operator.
19645         (binary_shift_operator): Likewise.
19646         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
19647         a memory reference, check whether the reference is offsettable.
19648         (length_table): Add movb, movw and movl.
19649         (movqi): Add new h8sx pattern.  Don't force one operand to be a
19650         register when generating h8sx code.
19651         (movhi, movsi, movsf): Likewise.
19652         (movstrictqi): Use the length_table attribute.
19653         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
19654         (addqi3): Split into a define_expand and define_insn.  Don't accept
19655         memory operands in the expander.  Use h8300_operands_match_p to
19656         check for matching operands in the define_insn.
19657         (subqi3, negqi2, one_cmplqi2): Likewise.
19658         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
19659         in any patterns that are unused in h8sx code.  In the h8sx patterns,
19660         use h8300_operands_match_p to check whether operands match.
19661         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
19662         one_cmpl[hs]i3): Likewise.
19663         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
19664         in the expander.
19665         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
19666         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
19667         (h8300_insn_length_from_table): Add a second parameter.
19668         (output_h8sx_shift): Declare.
19669         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
19670         (EXTRA_CONSTRAINT): Replace with...
19671         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
19672         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
19673         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
19674         and h8sx_binary_shift_operator.
19675         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
19676         for TARGET_H8300SX.
19677         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
19678         (bit_memory_operand, fix_bit_operand): Likewise.
19679         (h8300_length_table_for_insn): Remove.
19680         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
19681         instructions.
19682         (h8300_short_immediate_length, h8300_binary_length): New functions.
19683         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
19684         (output_plussi): Use sub to add negative constants.
19685         (compute_plussi_length): Adjust accordingly.
19686         (h8sx_single_shift_type): New enum.
19687         (h8sx_single_shift, h8sx_unary_shift_operator,
19688         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
19689         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
19690         single h8sx instruction.  Return false in this case.
19691         * config/h8300/h8300.md (length_table): Add short_immediate.
19692         (length): Pass the operand array to h8300_insn_length_from_table.
19693         (adjust_length): Assume "no" for insns with a length_table attribute.
19694         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
19695         (*addhi3_h8300hs): Don't use for h8sx.
19696         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
19697         and sub.w #xx:3.
19698         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
19699         1's predicate to nonimmediate_operand.  Only skip default expansion
19700         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
19701         for single h8sx shift instructions.
19702         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
19703         * config/h8300/h8300.c (nibble_operand): Split out of...
19704         (reg_or_nibble_operand): ... this.
19705         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
19706         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
19707         umulhisi3): Introduce expand, and introduce separate insns for
19708         sign- or zero-extended REG and already-extended CONST_INT.
19709         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
19710         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
19711         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
19712         (subhi3): Likewise.  Don't accept immediates for operand 1.
19713         Remove the early clobber from second alternative of the h8300s pattern.
19714         (subsi3): Generalize for h8sx.  Force operand 2 into a register
19715         on plain h8300 targets.
19716         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
19717         (subsi3_h8300h): Generalize for h8sx.
19718         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
19719         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
19720         * config/h8300/h8300.c (reg_or_nibble_operand): New.
19721         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
19722         (TARGET_H8300SXMUL): New.
19723         (CONST_OK_FOR_P): New.
19724         (CONST_OK_FOR_LETTER_P): Adjust.
19725         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
19726         umulhisi3): Accept 4-bit immediate on H8SX.
19727         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
19728         (udivsi3, divhi3, udivsi3, divsi3): New.
19729         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
19730         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
19731         * config/h8300/h8300.h (OK_FOR_Q): New macro.
19732         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
19733         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
19734         Add ADDRESSOF to the bit_operand entry.
19735         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
19736         (h8300_src_operand): Likewise.
19737         (bit_operand): Check nonimmediate_operand rather than general_operand.
19738         Accept any nonimmediate_operand in h8sx code.
19739         (h8300_and_costs): Initialize operands[1].
19740         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
19741         (h8300_operand_class): New enum.
19742         (h8300_length_table): New typedef.
19743         (addb_length_table, addw_length_table, addl_length_table,
19744         logicl_length_table): New tables.
19745         (logicb_length_table, logicw_length_table): New macros.
19746         (h8300_classify_operand, h8300_length_from_table,
19747         h8300_length_table_for_insn, h8300_unary_length,
19748         h8300_insn_length_from_table): New functions.
19749         (output_plussi): Only use adds and subs for register destinations.
19750         Disable redundant clause.
19751         (compute_plussi_cc): Likewise.
19752         (compute_plussi_length): Likewise.  Use h8300_length_from_table
19753         to work out the length of an insn.
19754         (output_logical_op): Only use narrower immediate instructions
19755         if the destination is a register.
19756         (compute_logical_op_cc): Likewise.
19757         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
19758         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
19759         * config/h8300/h8300.md (length_table): New attribute.
19760         (length): When an instruction has a length_table attribute, use
19761         h8300_insn_length_from_table to calculate its default length.
19762         (cmpqi): Use h8300_dst_operand for the first operand and
19763         h8300_src_operand for the second.
19764         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
19765         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
19766         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
19767         iorsi3, xorhi3, xorsi3): Likewise.
19768         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
19769         so that it allows any combination of operands for TARGET_H8300SX.
19770         (iorqi3, xorqi3): Likewise.
19771         (cmpqi): Use the length_table attribute.
19772         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
19773         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
19774         (cmpqi): Add 'Q' constraint.
19775         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
19776         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
19777         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
19778         * config/h8300/h8300.h (MASK_H8300SX): New macro.
19779         (TARGET_H8300S): True for both -ms and -msx.
19780         (TARGET_H8300SX): New macro.
19781         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
19782         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
19783         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
19784         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
19785         [Temporary change.]
19786         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
19787         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
19788         16-bit pointers and 32-bit ints.
19789         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
19790         CONST_DOUBLE with mode no wider than SImode.
19791         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
19792         output operand.
19793         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
19794         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
19795         or SUBREG thereof.
19796         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
19797         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
19798         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
19799
19800 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
19801
19802         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
19803
19804 2004-07-07  Per Bothner  <per@bothner.com>
19805
19806         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
19807
19808 2004-07-07  Mike Stump  <mrs@apple.com>
19809
19810         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
19811         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
19812         (machopic_finish): Likewise.
19813
19814 2004-07-07  Richard Henderson  <rth@redhat.com>
19815
19816         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
19817         through any value-preserving cast.
19818
19819 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
19820
19821         * function.c (assign_parm_find_data_types): Call
19822         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
19823
19824 2004-07-07  Steven Bosscher  <stevenb@suse.de>
19825
19826         * tree-cfg.c (group_case_labels): Remove case labels that have
19827         the same target as the default case.
19828
19829 2004-07-07  Steven Bosscher  <stevenb@suse.de>
19830
19831         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
19832         regardless of DECL_LANG_SPECIFIC being present or not.
19833         * tree.h (DECL_NUM_STMTS): Purge.
19834
19835 2004-07-07  Andrew Pinski  <apinski@apple.com>
19836
19837         * configure: Regenerate with the right autoconf.
19838
19839 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
19840
19841         * ifcvt.c (total_bb_rtx_cost): New function.
19842         (find_if_case_1): Compare rtx_cost of basic block to cost of
19843         BRANCH_COST insns.
19844         (find_if_case_2): Same.
19845
19846 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19847
19848         PR target/10567
19849         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
19850         (output_return): Likewise.
19851         (output_sibcall): Abort if !flag_delayed_branch.
19852         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
19853         (emit_and_preserve): New function.
19854         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
19855         indirect jump to the thunked-to function if !flag_delayed_branch.
19856         * config/sparc/sparc.md (delayed_branch): New attribute.
19857         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
19858         attribute to compute the length of the insn.
19859         (goto_handler_and_restore): Likewise.
19860
19861 2004-07-07  Andrew Pinski  <apinski@apple.com>
19862
19863         PR tree-optimization/15777
19864         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
19865
19866         * expr.c (expand_expr_real_1): Fix formating.
19867         BUFFER_REF and IN_EXPR are dead.
19868         * fold-const.c (non_lvalue): BUFFER_REF is dead.
19869         * tree-inline.c (estimate_num_insns_1): Likewise.
19870         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
19871         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
19872         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
19873
19874 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
19875
19876         * collect2.c (dump_file): Don't call cplus_demangle if
19877         HAVE_LD_DEMANGLE is defined.
19878         (main): Pass "--demangle" to ld if no_demangle is not 0 and
19879         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
19880         if HAVE_LD_DEMANGLE is defined.
19881
19882         * configure.ac (--with-demangler-in-ld): Added
19883         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
19884         --with-demangler-in-ld is used.
19885         * config.in: Regenerated.
19886         * configure: Likewise.
19887
19888 2004-07-07  Roger Sayle  <roger@eyesopen.com>
19889
19890         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
19891         for simple floating point operations "fp", double precision
19892         multiplication "dmul", and single and double precision division
19893         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
19894         (ppc630_cost): New table split from ppc620_cost, to distinguish
19895         differences in floating point latencies.
19896         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
19897         (rs6000_rtx_costs): Add support for single and double precision
19898         floating point addition, subtraction, multiplication, division,
19899         fused-multiply-add, fused-multiply-sub, negation, absolute value
19900         and negative absolute value.  Tweak MEM case to use prefered idiom.
19901
19902 2004-07-07  Richard Henderson  <rth@redhat.com>
19903
19904         * tree-flow-inline.h (may_propagate_copy): Move...
19905         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
19906         attempt to copy between types requiring conversion.
19907         * tree-flow.h (may_propagate_copy): Update decl.
19908         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
19909
19910 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
19911
19912         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
19913         from -mtune= option.
19914
19915 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
19916
19917         * builtins.c: Rename movstr*, except for movstrict*, to
19918         movmem* and clrstr* to clrmem*.
19919         * expr.c: Likewise.
19920         * expr.h: Likewise.
19921         * genopinit.c: Likewise.
19922         * integrate.c: Likewise.
19923         * local-alloc.c: Likewise.
19924         * optabs.c: Likewise.
19925         * optabs.h: Likewise.
19926         * config/alpha/alpha.h: Likewise.
19927         * config/alpha/alpha.md: Likewise.
19928         * config/arm/arm-protos.h: Likewise.
19929         * config/arm/arm.c: Likewise.
19930         * config/arm/arm.md: Likewise.
19931         * config/avr/avr.md: Likewise.
19932         * config/c4x/c4x.c: Likewise.
19933         * config/c4x/c4x.md: Likewise.
19934         * config/frv/frv.md: Likewise.
19935         * config/i386/i386-protos.h: Likewise.
19936         * config/i386/i386.c: Likewise.
19937         * config/i386/i386.h: Likewise.
19938         * config/i386/i386.md: Likewise.
19939         * config/i860/i860.c: Likewise.
19940         * config/i860/i860.md: Likewise.
19941         * config/ip2k/ip2k.md: Likewise.
19942         * config/ip2k/libgcc.S: Likewise.
19943         * config/ip2k/t-ip2k: Likewise.
19944         * config/m32r/m32r.c: Likewise.
19945         * config/m32r/m32r.md: Likewise.
19946         * config/mcore/mcore.md: Likewise.
19947         * config/mips/mips.c: Likewise.
19948         * config/mips/mips.md: Likewise.
19949         * config/ns32k/ns32k.c: Likewise.
19950         * config/ns32k/ns32k.h: Likewise.
19951         * config/ns32k/ns32k.md: Likewise.
19952         * config/pa/pa.c: Likewise.
19953         * config/pa/pa.md: Likewise.
19954         * config/pdp11/pdp11.h: Likewise.
19955         * config/pdp11/pdp11.md: Likewise.
19956         * config/rs6000/rs6000.c: Likewise.
19957         * config/rs6000/rs6000.md: Likewise.
19958         * config/s390/s390-protos.h: Likewise.
19959         * config/s390/s390.c: Likewise.
19960         * config/s390/s390.md: Likewise.
19961         * config/sh/lib1funcs.asm: Likewise.
19962         * config/sh/sh.c: Likewise.
19963         * config/sh/sh.md: Likewise.
19964         * config/sh/t-sh: Likewise.
19965         * config/sparc/sparc.h: Likewise.
19966         * config/vax/vax.md: Likewise.
19967         * config/xtensa/xtensa.c: Likewise.
19968         * config/xtensa/xtensa.md: Likewise.
19969         * doc/invoke.texi: Likewise.
19970         * doc/md.texi: Likewise.
19971         * doc/rtl.texi: Likewise.
19972
19973 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
19974
19975         PR target/16407
19976         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
19977         * config/mips/mips.c (mips_declare_common_object): New function,
19978         mostly split out from...
19979         (mips_output_aligned_decl_common): ...here.
19980         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
19981         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
19982         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
19983         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
19984
19985 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19986
19987         PR c/16392
19988         * function.c (assign_parms): Fix typo from previous change.
19989
19990 2004-07-07  Jason Merrill  <jason@redhat.com>
19991
19992         PR c++/15815
19993         * doc/extend.texi (C++ Interface): Correct information and
19994         discourage use.
19995
19996 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
19997
19998         PR target/16130
19999         PR target/16142
20000         PR target/16143
20001         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
20002         insn.
20003
20004 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
20005
20006         PR target/1679.
20007         * config/m32r/m32r.c (m32r_function_symbol): New function:
20008         Generate a symbol name RTX with the correct m32r specific flags
20009         set.
20010         (block_move_call): Use new function to generate correct symbol.
20011         * config/m32r/m32r-protos.h: Add prototype for new funcion.
20012         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
20013         function.
20014
20015 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
20016
20017         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
20018         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
20019         TYPE_BINFO_BASETYPE): Remove.
20020         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
20021         to ...
20022         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
20023         here.
20024         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
20025         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
20026         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
20027         (struct tree_binfo): Rename base_types to base_binfos.
20028         * alias.c (record_component_aliases): Adjust BINFO macros.
20029         * dbxout.c (dbxout_type): Likewise.
20030         * dwarf2out.c (gen_member_die): Likewise.
20031         * sdbout.c (sdbout_one_type): Likewise.
20032         * tree-dump.c (deque_and_dump): Likewise.
20033         * config/i386/i386.c (classify_argument,
20034         contains_128bit_aligned_vector_p): Likewise.
20035
20036 2004-07-07  Nick Clifton  <nickc@redhat.com>
20037
20038         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
20039         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
20040
20041 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
20042
20043         * vec.h: Fix the example use.
20044
20045 2004-07-06  Richard Henderson  <rth@redhat.com>
20046
20047         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
20048         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
20049         * tree-inline.c (copy_body_r, setup_one_parameter,
20050         initialize_inlined_parameters, expand_call_inline,
20051         declare_inline_vars): Don't check it.
20052         (expand_calls_inline): Remove old version, rename new version
20053         from gimple_expand_calls_inline.
20054         * tree-optimize.c (execute_gimple): Remove.
20055         (pass_gimple): Don't run anything.
20056
20057 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
20058
20059         * doc/sourcebuild.texi: Use semicolons instead of commas in
20060         section title.
20061
20062 2004-07-06  Richard Henderson  <rth@redhat.com>
20063
20064         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
20065         (sra_walk_modify_expr, scan_init): Likewise.
20066         (generate_element_zero): Check visited before scanning children.
20067         (generate_element_init): Set visited on error.
20068         (scalarize_init): Handle generate_element_init failure similar
20069         to use_block_copy.
20070
20071 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
20072
20073         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
20074         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
20075
20076 2004-07-06  Richard Henderson  <rth@redhat.com>
20077
20078         * config/i386/i386.c (legitimize_pic_address): Make static.
20079         (legitimize_address): Handle CONST with TLS operand.
20080         (ix86_expand_move): Don't call legitimize_pic_address directly.
20081         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
20082
20083 2004-07-06  Roger Sayle  <roger@eyesopen.com>
20084
20085         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
20086         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
20087         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
20088         is currently executed unconditionally, i.e. not in "else_bb".
20089
20090 2004-07-06  Steven Bosscher  <stevenb@suse.de>
20091
20092         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
20093         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20094         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
20095         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20096         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
20097         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20098         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
20099         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20100         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
20101         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20102         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
20103         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20104         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
20105         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20106         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
20107         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20108
20109 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
20110
20111         * dojump.c (do_jump): REFERENCE_EXPR is dead.
20112         * expr.c (expand_expr_real_1): Ditto.
20113         * tree-inline.c (estimate_num_insns_1): Ditto.
20114         * tree-pretty-print.c (dump_generic_node): Ditto.
20115         (op_symbol): Ditto.
20116         * tree.def: Ditto.
20117
20118 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
20119
20120         * tree-ssa-pre.c (reference_node_pool): New pool.
20121         (find_or_generate_expression): Class 'r' is okay too.
20122         (create_value_expr_from): Ditto.
20123         (add_to_sets): LHS should not include vuses.
20124         (eliminate): Ditto.
20125         (compute_avail): Reverse ordering of tests.
20126         Valuize INDIRECT_REF as well.
20127
20128 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
20129
20130         PR rtl-optimization/16380
20131         * loop.c (check_dbra_loop): Sink comparison instructions if they
20132         do something other than set cc0.
20133
20134 2004-07-06  James E Wilson  <wilson@specifixinc.com>
20135
20136         * doc/interface.texi (longjmp and automatic variables): Delete
20137         paragraph recommending taking the address of a variable.
20138
20139 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
20140
20141         * vec.h (VEC_embedded_alloc): Remove.
20142         (VEC_embedded_size, VEC_embedded_init): New.
20143         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
20144         MEM_STAT_INFO.
20145         (VEC_truncate): New.
20146         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
20147         (vec_embedded_alloc): Remove.
20148         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
20149         (vec_embedded_alloc): Remove.
20150
20151 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
20152
20153         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
20154         (gt-langhooks.h): Remove.
20155
20156 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
20157
20158         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
20159
20160 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
20161
20162         * config/sparc/sparc.c (get_pc_symbol): Rename into
20163         add_pc_to_pic_symbol.
20164         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
20165         (load_pic_register): Account for previous changes.
20166         Use reg_names.  Don't create the label twice.
20167         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
20168         UNSPEC_LOAD_PCREL_SYM.
20169         (get_pc): Rename into load_pcrel_sym.  Add predicate to
20170         operands.  Remove condition.
20171
20172 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
20173
20174         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
20175         RECORD, UNION & QUAL_UNION is actually a binfo.
20176
20177         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
20178         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
20179         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
20180         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
20181         * dwarf2out.c (add_data_member_location_attribute): Likewise.
20182         (gen_inheritance_die): Likewise.
20183         * tree-dump.c (deque_and_dump): Likewise.
20184         * doc/c-tree.texi (Binfos): Add under reconstruction note.
20185
20186 2004-07-06  Steven Bosscher  <stevenb@suse.de>
20187
20188         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
20189         Define.
20190         * config/mcore/mcore.md: Model memory latency with a simple DFA
20191         pipeline description instead of a define_function_unit.
20192
20193 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20194
20195         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
20196         * langhooks.h (var_mod_type_p): Likewise.
20197         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
20198         * expr.c (count_type_elements): Properly handle return from
20199         array_type_nelts and properly test for overflow.
20200         * gimplify.c (gimplify_init_constructor): Properly handle return
20201         from array_type_nelts.
20202         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
20203         * integrate.c (copy_decl_for_inlining): Correct comments.
20204         * tree-inline.c (remap_decl): Update comments, remove dead code,
20205         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
20206         (remap_type): Only remap if variably modified by vars in function
20207         being inlined.
20208         (copy_body_r): Use compatible_type langhooks to see when can fold.
20209         (setup_one_parameter): Don't remap type.
20210         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
20211         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
20212         compute TREE_INVARIANT for decl case.
20213         (find_var_from_fn): New function.
20214         (variably_modified_type_p): Add arg and call new function.
20215         * tree.h (variably_modified_type_p): Add extra arg.
20216
20217 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
20218
20219         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
20220         (goto_handler_and_restore_v9): Delete disabled insn.
20221         (goto_handler_and_restore_v9_sp64): Likewise.
20222
20223 2004-07-05  Roger Sayle  <roger@eyesopen.com>
20224
20225         * calls.c (load_register_parameters): Call expand_shift instead
20226         of expand_binop with ashl_optab (or other shift optab) directly.
20227         * expr.c (emit_group_load, emit_group_store): Likewise.
20228         * function.c (assign_parm_setup_block): Likewise.
20229         * stmt.c (shift_return_value): Likewise.
20230
20231 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
20232
20233         * expr.c (expand_assignment): Disable the bitfield += optimizations.
20234
20235 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
20236
20237         * doc/sourcebuild.texi: Revert previous patch.
20238
20239 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
20240
20241         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
20242         TARGET_MEM_FUNCTIONS.
20243         * system.h: Poison TARGET_MEM_FUNCTIONS.
20244         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
20245         bcmp_libfunc, bzero_libfunc): Remove.
20246         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
20247         bzero_libfunc.
20248         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
20249         * doc/standards.texi: Don't mention calling BSD string functions.
20250         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
20251         * config/vax/t-memfuncs: New.
20252         * config/memcmp.c, config/memcpy.c, config/memmove.c,
20253         config/memset.c: New.
20254         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
20255         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
20256         vax/t-memfuncs.
20257         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
20258         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
20259         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
20260         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
20261         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
20262         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
20263         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
20264         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
20265         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
20266         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
20267
20268 2004-07-05  Richard Henderson  <rth@redhat.com>
20269
20270         * function.c (assign_parm_setup_reg): Properly rename variables in
20271         FUNCTION_ARG_CALLEE_COPIES section.
20272
20273 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
20274
20275         * tree-mudflap.c: Include cgraph.h.
20276         (mf_init_extern_trees): Rename to mudflap_init.  Export.
20277         Rewrite to create synthetic declarations instead of looking
20278         up declarations from mf-runtime.h.
20279         (mf_make_builtin, mf_make_cache_struct_type): New functions.
20280         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
20281         Correct commentary.
20282         (execute_mudflap_function_decls, mudflap_register_call):
20283         Don't call mf_init_extern_trees.
20284         (mudflap_finish_file): Use cgraph_build_static_cdtor.
20285
20286         * tree-mudflap.h: Update prototypes.
20287         * c-mudflap.c: Delete file.
20288         * c-common.c: Include tree-mudflap.h.
20289         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
20290         * Makefile.in: Remove all references to c-mudflap.o.
20291         Update dependencies.
20292
20293 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20294
20295         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
20296         displacements with the spatial-locality cache-control completer.
20297
20298 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
20299
20300         * langhooks.c: Don't include gt-langhooks.h.
20301         (var_labelno): Delete.
20302         (lhd_set_decl_assembler_name): Do not append a distinguishing
20303         number to file-scope internal-linkage declarations for the first
20304         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
20305         the declaration itself (if at block scope), or its containing
20306         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
20307         number.
20308
20309         * opts.c (cur_in_fname): New global.
20310         * opts.h: Declare it.
20311         * tree.c: Include opts.h.
20312         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
20313         DECL_UID equal to cur_in_fname.
20314         (copy_node_stat): Do not change DECL_UID when copying a
20315         TRANSLATION_UNIT_DECL.
20316         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
20317         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
20318
20319         * c-decl.c (c_static_assembler_name): Delete.
20320         * c-tree.h (c_static_assembler_name): Delete prototype.
20321         * c-lang.c, objc/objc-lang.c: Don't override
20322         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
20323
20324         * Makefile.in (tree.o): Update dependencies.
20325         (GTFILES): Remove langhooks.c.
20326
20327 2004-07-05  Roger Sayle  <roger@eyesopen.com>
20328
20329         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
20330         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
20331         Normalize "X % C" as "X % -C" for signed modulus and negative C.
20332         Optimize "X % -Y" as "X % Y" for signed modulus.
20333         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
20334         into "((unsigned) X % Y) == 0".
20335
20336 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
20337
20338         * sourcebuild.texi (Config Fragments): Use @comma{} in
20339         cross-reference to section title.
20340
20341 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20342
20343         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
20344         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
20345         (gimplify_target_expr, gimplify_expr): Likewise.
20346         (copy_if_shared_r): No longer need special case for BIND_EXPR.
20347         (unshare_body, unvisit_body): Only look at nested if BODY_P is
20348         whole function.
20349         (gimplify_compound_lval): See if we can strip any useless conversion.
20350         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
20351         from RHS, not LHS.
20352         (gimplify_modify_expr_to_memset): Likewise.
20353         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
20354         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
20355         (declare_inline_vars): Likewise.
20356         (walk_type_fields): New function.
20357         (walk_tree): Use it.
20358         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
20359
20360         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
20361         (sra_walk_modify_expr): Allow init function to fail.
20362         (scan_init): Now returns bool.
20363         (generate_element_init): If can't understand INIT, return false.
20364         (scalarize_init): Return false if generate_element_init does.
20365
20366         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
20367         print bounds.
20368
20369         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
20370         bounds if bounds aren't constant.
20371
20372         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
20373
20374         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
20375         to type hooks; remove bogus PARAMS.
20376
20377 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
20378
20379         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
20380         * dwarf2out.c (add_data_member_location_attribute): Check for
20381         TREE_BINFO.
20382         * tree.c (tree_node_kinds): Add "binfos".
20383         (binfo_lang_slots): New.
20384         (make_node_stat): Add TREE_BINFO.
20385         (make_tree_binfo_stat): New.
20386         (tree_node_structure): Add TREE_BINFO.
20387         * tree.def (TREE_BINFO): New.
20388         * tree.h (REC_OR_UNION_CHECK): Rename to ...
20389         (RECORD_OR_UNION_CHECK): ... here.
20390         (NOT_RECORD_OR_UNION_CHECK): New.
20391         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
20392         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
20393         RECORD_OR_UNION_CHECK.
20394         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
20395         (TYPE_LANG_SLOT_1): New.
20396         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
20397         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
20398         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
20399         (BINFO_ELTS): Remove.
20400         (BINFO_LANG_SLOT): New.
20401         (struct tree_binfo): New.
20402         (binfo_lang_slots): Declare.
20403         (enum tree_node_structure_enum): Add TS_BINFO.
20404         (union tree_node): Add binfo.
20405         (make_tree_binfo_stat): Declare.
20406         (make_tree_binfo): New.
20407         (enum tree_node_kind): Add binfo_kind.
20408
20409         * objc/objc-act.c (start_class, objc_declare_protocols,
20410         start_protocols): Use TYPE_LANG_SLOT_1.
20411         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
20412         to ...
20413         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
20414         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
20415         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
20416         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
20417
20418 2004-07-05  Steven Bosscher  <stevenb@suse.de>
20419
20420         * rtl.h (struct rtx_def): Remove the integrated flag.
20421         Use the return_val flag for MEM_SCALAR_P.
20422         Reshuffle and update flags in CLEAR_RTX_FLAGS.
20423
20424 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
20425
20426         PR target/16357
20427         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
20428         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
20429         move_by_pieces.
20430
20431 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
20432
20433         * var-tracking.c: Fix some comments.
20434         (frame_stack_adjust): New.
20435         (vt_stack_adjustments): Init stack_adjust of entry block to
20436         minus stack adjustment of function prologue.
20437         (adjust_stack_reference): Do not adjust if adjustment == 0.
20438         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
20439         (emit_notes_in_bb): Likewise.
20440         (vt_add_function_parameters): Do not adjust locations of
20441         function arguments.
20442         (vt_initialize): Compute the stack adjustment of function
20443         prologue and offset the initial "location" of frame_base_decl
20444         from the stack pointer after prologue.
20445
20446 2004-07-04  Richard Henderson  <rth@redhat.com>
20447
20448         * function.c (struct assign_parm_data_all): New.
20449         (struct assign_parm_data_one): New.
20450         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
20451         assign_parm_find_data_types, assign_parms_setup_varargs,
20452         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
20453         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
20454         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
20455         assign_parm_setup_block, assign_parm_setup_reg,
20456         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
20457         (assign_parms): ... here.
20458
20459 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
20460
20461         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
20462         now are bitmap_set_t's.
20463         (bitmap_insert_into_set): No point in inserting the value if
20464         it's invariant.
20465         (bitmap_set_contains): New function.
20466         (bitmap_set_replace_value): Add comment on why we do it
20467         this way.
20468         (set_contains): Removed.
20469         (bitmap_set_subtract_from_value_set): New name of
20470         set_subtract now that it's arguments are two different
20471         types of sets.
20472         Update callers.
20473         (bitmap_find_leader): Change algorithm used.
20474         (find_or_generate_expression): Update use of functions for new
20475         bitmap sets.
20476         (create_expression_by_pieces): Ditto.
20477         (insert_aux): Ditto.
20478         (insert): Ditto.
20479         (add_to_sets): Ditto.
20480         (init_pre): Ditto.
20481         (execute_pre): Ditto.
20482         (compute_avail): Ditto.
20483         Also ignore virtual phis.
20484
20485 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
20486
20487         * combine.c (simplify_comparison): Fix comment typo.
20488
20489 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
20490
20491         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
20492         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
20493         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
20494         (output_restore): Change parameter from 'insn' to 'pat'.
20495         (output_return): Adjust call to output_restore.
20496         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
20497         Adjust call to output_restore.
20498
20499 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
20500
20501         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
20502         and assert system is bsd.
20503
20504 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
20505
20506         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
20507         (TARGET_SWITCHES): Remove -mdebugc.
20508         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
20509         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
20510         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
20511         (sle_[sd]i_reg): Delete.
20512
20513 2004-07-04  Steven Bosscher  <stevenb@suse.de>
20514
20515         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
20516         Define.
20517         * config/iq2000/iq2000.md: Translate old pipeline description to an
20518         equivalent new one.
20519
20520 2004-07-04  Roger Sayle  <roger@eyesopen.com>
20521
20522         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
20523         Ensure the replacement rhs is valid gimple before performing
20524         the substitution.  Return false if these sanity checks fail.
20525         (fold_stmt): Only set changed to true, if set_rhs returns true.
20526         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
20527         succeeds.
20528
20529 2004-07-04  Richard Henderson  <rth@redhat.com>
20530
20531         PR c/16348
20532         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
20533
20534 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
20535
20536         * configure.ac (ranlib_flags): New variable.
20537         * Makefile.in (RANLIB_FLAGS): New variable.
20538         (libbackend.a): Use it.
20539         * configure: Regenerated.
20540
20541 2004-07-04  Roger Sayle  <roger@eyesopen.com>
20542
20543         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
20544         a "sign mask" instead of using ashr_optab directly.
20545
20546 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
20547
20548         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
20549         * doc/cppopts.texi: Clarify processing of command-line defines.
20550
20551 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
20552
20553         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
20554
20555 2004-07-04  Richard Henderson  <rth@redhat.com>
20556
20557         * rtl.def (ADDRESSOF): Remove.
20558         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
20559         (find_base_term, memrefs_conflict_p): Likewise.
20560         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
20561         (fold_rtx, cse_insn, set_live_p): Likewise.
20562         * dwarf2out.c (mem_loc_descriptor): Likewise.
20563         (add_location_or_const_value_attribute): Likewise.
20564         * emit-rtl.c (copy_insn_1): Likewise.
20565         * explow.c (memory_address): Likewise.
20566         * expmed.c (store_split_bit_field): Likewise.
20567         * expr.c (expand_expr_real_1): Likewise.
20568         * function.c (instantiate_decl
20569         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
20570         * genrecog.c (preds, validate_pattern): Likewise.
20571         * integrate.c (copy_rtx_and_substitute): Likewise.
20572         * recog.c (general_operand, register_operand): Likewise.
20573         (memory_address_p): Likwise.
20574         * reload1.c (eliminate_regs, elimination_effects): Likewise.
20575         * rtl.c (copy_rtx): Likewise.
20576         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
20577         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
20578         * rtlhooks.c (gen_lowpart_general): Likewise.
20579         * stmt.c (expand_asm_operands): Likewise.
20580         * web.c (entry_register, replace_ref, web_main): Likewise.
20581         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
20582         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
20583         * config/arm/arm.c (thumb_rtx_costs): Likewise.
20584         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
20585         * config/frv/frv.c (move_destination_operand, move_source_operand,
20586         condexec_dest_operand, condexec_source_operand,
20587         condexec_memory_operand): Likewise.
20588         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
20589         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
20590         (destination_xfmode_operand): Likewise.
20591         * config/mips/mips.h (PREDICATE_CODES): Likewise.
20592         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
20593         * config/s390/s390.c (general_s_operand): Likewise.
20594         * config/s390/s390.md (mov*): Likewise.
20595         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
20596
20597         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
20598         * expr.c (expand_expr_real_1): Likewise.
20599         * stmt.c (expand_decl): Likewise.
20600         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
20601
20602         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
20603         postponed_insns, put_var_into_stack, put_reg_into_stack,
20604         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
20605         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
20606         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
20607         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
20608         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
20609         purge_bitfield_addressof_replacements, purge_addressof_replacements,
20610         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
20611         struct insns_for_mem_walk_info, insns_for_mem_walk,
20612         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
20613         setjmp_protect_args): Remove.
20614         (push_function_context_to): Don't handle var_refs_queue.
20615         (pop_function_context_from, free_after_compilation): Likewise.
20616         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
20617         (assign_parms, allocate_struct_function): Likewise.
20618         (use_register_for_decl): New.
20619         (expand_function_end): Don't setjmp_protect.
20620         * function.h (struct emit_status): Update commentary.
20621         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
20622         (max_parm_reg, parm_reg_stack_loc): Remove.
20623         * passes.c (DFI_addressof): Remove.
20624         (dump_file_info): Remove addressof.
20625         (rest_of_handle_addressof): Remove.
20626         (rest_of_compilation): Don't call it.
20627         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
20628         * stmt.c (expand_decl): Use use_register_for_decl.
20629         * tree.h: Update decls.
20630         * web.c (mark_addressof): Remove.
20631         * doc/invoke.texi (-dF): Remove.
20632
20633 2004-07-03  Richard Henderson  <rth@redhat.com>
20634
20635         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
20636         instead of gen_mem_addressof.
20637         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
20638         TImode output register.
20639
20640 2004-07-03  Richard Henderson  <rth@redhat.com>
20641
20642         PR tree-optimization/16341
20643         * tree-sra.c (sra_walk_function): Increment to next stmt before
20644         processing the current stmt.
20645         (sra_insert_after): Always use BSI_SAME_STMT.
20646
20647 2004-07-03  Richard Henderson  <rth@redhat.com>
20648
20649         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
20650         fp plus with minus.
20651
20652 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
20653
20654         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
20655         with tree_int_cst_equal.
20656
20657 2004-07-03  Andreas Schwab  <schwab@suse.de>
20658
20659         * config/ia64/ia64.md: Define new attribute "empty".
20660         (prologue_use, nop_x, insn_group_barrier): Set it.
20661
20662         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
20663         skip over "empty" insns.
20664
20665 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20666
20667         * tree-inline.c (initialize_inlined_parameters): Pass proper function
20668         context to gimplify_body.
20669         (walk_tree): Don't walk into types twice.
20670         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
20671
20672         * tree-sra.c (generate_element_init): Remove any useless conversions.
20673
20674         * gimplify.c (gimplify_conversion): Remove stripping useless
20675         conversions from here.
20676         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
20677         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
20678         Unshare before substituting PLACEHOLDER_EXPR.
20679         (gimplify_modify_expr_to_memset): Likewise.
20680         Pass address of TO to memset, not TO itself.
20681         (gimplify_init_constructor): Make copy of OBJECT so we have it each
20682         time we make an expression (to match a PLACEHOLDER_EXPR).
20683
20684         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
20685         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
20686         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
20687         * tree-ssa-dom.c (local_fold): Likewise.
20688
20689         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
20690         * langhooks.h (strct lang_hooks): New field type_max_size.
20691         * function.c (assign_temp): Call it.
20692
20693 2004-07-03  Steven Bosscher  <stevenb@suse.de>
20694
20695         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
20696         * config/sh/sh.md: Convert the SH1 pipeline description to
20697         a DFA model.
20698
20699 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
20700
20701         * c-decl.c (struct c_binding): Remove contour field; add
20702         depth, invisible, nested fields.
20703         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
20704         (B_IN_EXTERNAL_SCOPE): New convenience macros.
20705         (bind): Add invisible and nested arguments. Initialize
20706         new fields of struct c_binding; adjust loop scanning for
20707         insertion point.
20708         (free_binding_and_advance): Clear structure with memset.
20709         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
20710         in file scope, even if it's in external scope too.
20711         (pushdecl): Adjust to match.  Create invisible file-scope
20712         declarations for block-scope forward declarations of static functions.
20713         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
20714         (undeclared_variable, lookup_label, declare_label, define_label)
20715         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
20716         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
20717         (store_parm_decls_oldstyle): Adjust to match.
20718         (diagnose_mismatched_decls): Correct handling of linkage clashes.
20719         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
20720
20721         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
20722         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
20723
20724 2004-07-02  Richard Henderson  <rth@redhat.com>
20725
20726         * c-decl.c (grokdeclarator): Don't frob current_function_decl
20727         around variable_size.
20728         (set_decl_nonlocal): Remove.
20729         (store_parm_decls): Add stmts for pending sizes.
20730         * calls.c (calls_function, calls_function_1): Remove.
20731         (precompute_arguments): Don't call it.
20732         * cfgexpand.c (set_save_expr_context): Remove.
20733         (tree_expand_cfg): Don't call it.
20734         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
20735         (dwarf2out_finish): Likewise.
20736         * expr.c (emit_block_move): Adjust addresses to BLKmode.
20737         (store_constructor): Don't pre-evaluate SAVE_EXPR.
20738         (safe_from_p): Don't queue SAVE_EXPRs.
20739         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
20740         or build plain VAR_DECLs.
20741         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
20742         (fold): Likewise.
20743         (fold_checksum_tree): Don't special-case SAVE_EXPR.
20744         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
20745         (put_var_into_stack): Don't handle SAVE_EXPR.
20746         (gen_mem_addressof): Likewise.
20747         * function.h (struct function): Remove x_save_expr_regs.
20748         (save_expr_regs): Remove.
20749         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
20750         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
20751         * stor-layout.c (variable_size): Don't set it.
20752         (force_type_save_exprs, force_type_save_exprs_1): Remove.
20753         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
20754         all callers.  Don't set SAVE_EXPR_CONTEXT.
20755         * tree-inline.h (remap_save_expr): Update decl.
20756         * tree.c (save_expr): Update build size.
20757         (first_rtl_op): Don't handle SAVE_EXPR.
20758         (unsave_expr_1, contains_placeholder_p): Likewise.
20759         (decl_function_context): Likewise.
20760         * tree.def (SAVE_EXPR): Remove args 1 and 2.
20761         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
20762         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
20763
20764 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
20765
20766         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
20767         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
20768         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
20769         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
20770         some first-person references and patronizing comments.  Based on
20771         printed manual.
20772         * doc/invoke.texi: Don't reference fortran@gnu.org.
20773         * doc/trouble.texi (Warning when a non-void function value is
20774         ignored): Rewrite.  From Russ Allbery and Chris Devers.
20775
20776 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
20777
20778         * tree-ssa-pre.c (bitmap_set_t): New.
20779         (bb_value_sets): avail_out is now a bitmap_set_t.
20780         (bitmap_find_leader): New function.
20781         (bitmap_value_insert_into_set): Ditto.
20782         (bitmap_set_copy): Ditto.
20783         (bitmap_value_replace_in_set): Ditto.
20784         (bitmap_set_contains_value): Ditto.
20785         (bitmap_set_new): Ditto.
20786         (bitmap_set_pool): New pool.
20787         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
20788         (insert_aux): Ditto.
20789         (add_to_sets): Ditto.
20790         (compute_avail): Ditto
20791         (eliminate): Ditto.
20792         (init_pre): Ditto.
20793         (fini_pre): Ditto.
20794         (execute_pre): Ditto.
20795
20796 2004-07-02  Roger Sayle  <roger@eyesopen.com>
20797
20798         * config/rs6000/rs6000.c (struct processor_costs): New structure
20799         used to hold instruction latencies/sizes for processor types.
20800         (rs6000_cost): New global variable pointing to current CPU's costs.
20801         (rs6000_override_options): Initialize rs6000_cost to point to the
20802         appropriate cost table based upon rs6000_cpu and optimize_size.
20803         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
20804         timings inline.
20805
20806 2004-07-02  Richard Henderson  <rth@redhat.com>
20807
20808         * expmed.c (make_tree): Don't use SET_DECL_RTL.
20809
20810 2004-07-02  Steven Bosscher  <stevenb@suse.de>
20811
20812         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
20813
20814 2004-07-01  Richard Henderson  <rth@redhat.com>
20815
20816         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
20817         (alpha_gp_save_rtx): Use assign_stack_local instead of
20818         gen_mem_addressof.
20819
20820 2004-07-01  Richard Henderson  <rth@redhat.com>
20821
20822         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
20823         (alpha_rtx_cost_data): Update to match.
20824         (alpha_rtx_cost_size): New.
20825         (alpha_rtx_costs): Honor optimize_size.
20826
20827 2004-07-01  Richard Henderson  <rth@redhat.com>
20828
20829         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
20830         * cfgexpand.c (tree_expand_cfg): Do it here.
20831         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
20832         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
20833         * config/mips/mips.c (mips_output_mi_thunk): And here.
20834         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
20835         * config/sh/sh.c (sh_output_mi_thunk): And here.
20836         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
20837
20838 2004-07-01  Richard Henderson  <rth@redhat.com>
20839
20840         * tree.def (RTL_EXPR): Remove.
20841         * c-typeck.c (lvalue_p): Don't handle it.
20842         * expr.c (safe_from_p): Likewise.
20843         (expand_expr_real_1): Likewise.
20844         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
20845         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
20846         * gengtype.c (adjust_field_tree_exp): Likewise.
20847         * stmt.c (warn_if_unused_value): Likewise.
20848         * tree-gimple.c (recalculate_side_effects): Likewise.
20849         * tree-pretty-print.c (dump_generic_node): Likewise.
20850         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
20851         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
20852         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
20853
20854         * stmt.c (struct stmt_status): Remove x_last_expr_type,
20855         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
20856         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
20857         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
20858         all the bits that tracked last_expr.
20859         (expand_end_bindings): Don't track last_expr.
20860         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
20861         (clear_last_expr): Remove.
20862         (expand_asm): Don't call it.
20863         (expand_asm_operands, expand_end_cond): Likewise.
20864         (expand_naked_return, expand_null_return_1): Likewise.
20865         * c-typeck.c (c_begin_compound_stmt): Likewise.
20866         * cfgexpand.c (expand_block): Use expand_expr_stmt.
20867         * expr.c (expand_expr_real_1): Likewise.
20868         * tree.h: Update prototypes.
20869
20870         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
20871         (struct emit_status): Remove sequence_rtl_expr.
20872         (struct function): Remove x_rtl_expr_chain.
20873         (seq_rtl_expr, rtl_expr_chain): Remove.
20874         * function.c (struct temp_slot): Remove rtl_expr.
20875         (assign_stack_temp_for_type): Don't set it.
20876         (free_temp_slots, pop_temp_slots): Don't check it.
20877         (free_after_compilation): Don't clear x_rtl_expr_chain.
20878         (fixup_var_refs): Don't search it.
20879         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
20880         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
20881         or seq_rtl_expr.
20882         (push_topmost_sequence): Likewise.
20883         (end_sequence, init_emit): Likewise.
20884         (start_sequence_for_rtl_expr): Remove.
20885         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
20886         * rtl.h (preserve_rtl_expr_result): Remove.
20887
20888 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
20889
20890         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
20891         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
20892         typos.
20893
20894 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
20895
20896         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
20897         (STANDARD_STARTFILE_PREFIX_2): Define.
20898         (standard_startfile_prefix_1): Initialize to
20899         STANDARD_STARTFILE_PREFIX_1.
20900         (standard_startfile_prefix_2): Initialize to
20901         STANDARD_STARTFILE_PREFIX_2.
20902         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
20903         (STANDARD_STARTFILE_PREFIX_1): Define.
20904         (STANDARD_STARTFILE_PREFIX_2): Define.
20905         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
20906         (STANDARD_STARTFILE_PREFIX_2): Document.
20907
20908 2004-07-01  Richard Henderson  <rth@redhat.com>
20909
20910         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
20911         in order to disable scalarization.  Instead set a flag and wait
20912         for a candidate decl.
20913
20914 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
20915
20916         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
20917         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
20918         Use terminology "testsuite" and "enumerated".
20919
20920 2004-07-01  Richard Henderson  <rth@redhat.com>
20921
20922         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
20923         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
20924         (initial_return_save): Likewise.
20925         (flush_queued_reg_saves): Remap register numbers.
20926         (dwarf2out_return_reg): Likewise.
20927
20928 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20929
20930         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
20931
20932         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
20933         access functions for lower bound and element size and only output
20934         if lower bound nonzero or element size not same as that of type.
20935         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
20936
20937 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
20938
20939         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
20940
20941 2004-07-01  Per Bothner  <per@bothner.com>
20942
20943         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
20944
20945 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
20946
20947         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
20948         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
20949         first operand.  Don't optimize if the bitfield is volatile.
20950
20951 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
20952
20953         * c-pretty-print.c (pp_c_postfix_expression): Handle
20954         floating-point comparison operators.
20955         (pp_c_expression): Pass floating-point comparison
20956         operators to pp_c_postfix_expression.
20957
20958 2004-07-01  Roger Sayle  <roger@eyesopen.com>
20959
20960         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
20961         rtx_cost instead of "had_mult" to determine whether the transformed
20962         expression is cheaper than the original.
20963
20964 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
20965
20966         * alias.c (get_alias_set, canon_rtx, get_addr,
20967         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
20968         Use MEM_P.
20969         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
20970         expand_builtin): Likewise.
20971         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
20972         Likewise.
20973         * combine.c (can_combine_p, combinable_i3pat, try_combine,
20974         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
20975         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
20976         record_dead_and_set_regs_1, get_last_value_validate,
20977         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
20978         * cse.c (check_dependence, canon_hash, equiv_constant,
20979         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
20980         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
20981         count_reg_usage): Likewise.
20982         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
20983         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
20984         cselib_record_sets): Likewise.
20985         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
20986         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
20987         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
20988         * df.c (df_uses_record): Likewise.
20989         * dojump (do_jump): Likewise.
20990         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
20991         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
20992         decl_start_label): Likewise.
20993         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
20994         operand_subword, change_address_1, make_safe_from): Likewise.
20995         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
20996         stabilize, force_not_mem): Likewise.
20997         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
20998         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
20999         * expr.c (convert_move, convert_modes, emit_block_move,
21000         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
21001         emit_move_insn_1, expand_assignment, store_expr,
21002         store_constructor_field, store_constructor, store_field,
21003         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
21004         Likewise.
21005         * final.c (cleanup_subreg_operands, alter_subreg,
21006         get_mem_expr_from_op): Likewise.
21007         * flow.c (notice_stack_pointer_modification_1,
21008         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
21009         Likewise.
21010         * function.c (mark_temp_addr_taken, preserve_temp_slots,
21011         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
21012         optimize_bit_field, flush_addressof, purge_addressof_1,
21013         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
21014         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
21015         keep_stack_depressed): Likewise.
21016         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
21017         noce_process_if_block, find_memory): Likewise.
21018         * integrate.c (subst_constants, allocate_initial_values): Likewise.
21019         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
21020         update_equiv_regs): Likewise.
21021         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
21022         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
21023         * optabs.c (expand_abs, emit_unop_insn): Likewise.
21024         * passes.c (rest_of_handle_final): Likewise.
21025         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21026         move2add_note_store): Likewise.
21027         * ra-build.c (detect_remat_webs): Likewise.
21028         * ra-debug.c (dump_static_insn_cost): Likewise.
21029         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
21030         * recog.c (validate_change, apply_change_group, cancel_changes,
21031         validate_replace_rtx_1, general_operand, register_operand,
21032         nonmemory_operand, push_operand, pop_operand, memory_operand,
21033         indirect_operand, asm_operand_ok, offsettable_memref_p,
21034         offsettable_nonstrict_memref_p, constrain_operands,
21035         store_data_bypass_p): Likewise.
21036         * reg-stack.c (subst_stack_regs_pat): Likewise.
21037         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
21038         copy_cost, reg_scan_mark_refs): Likewise.
21039         * regmove.c (optimize_reg_copy_3, stack_memref_p,
21040         combine_stack_adjustments_for_block): Likewise.
21041         * regrename.c (copyprop_hardreg_forward_1): Likewise.
21042         * reload.c (can_reload_into, push_reload, decompose, immune_p,
21043         find_reloads, find_reloads_address, find_reloads_address_1,
21044         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
21045         find_equiv_reg): Likewise.
21046         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
21047         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
21048         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
21049         delete_address_reloads): Likewise.
21050         * resource.c (mark_referenced_resources): Likewise.
21051         * rtlanal.c (get_jump_table_offset, count_occurrences,
21052         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
21053         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
21054         num_sign_bit_copies1): Likewise.
21055         * rtlhooks.c (gen_lowpart_general): Likewise.
21056         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
21057         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
21058         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
21059         sdbout_global_decl): Likewise.
21060         * simplify-rtx.c (simplify_subreg): Likewise.
21061         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
21062         expand_anon_union_decl, expand_end_case_type): Likewise.
21063         * unroll.c (calculate_giv_inc): Likewise.
21064         * var-tracking.c (stack_adjust_offset_pre_post,
21065         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
21066         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
21067         vt_add_function_parameters): Likewise.
21068         * varasm.c (make_var_volatile, notice_global_symbol,
21069         assemble_external, decode_addr_const, mark_weak,
21070         default_encode_section_info): Likewise.
21071
21072 2004-07-01  Steven Bosscher  <stevenb@suse.de>
21073
21074         * stmt.c (check_seenlabel): Remove.
21075         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
21076
21077 2004-07-01  Richard Henderson  <rth@redhat.com>
21078
21079         * function.h (struct function): Remove x_function_call_count.
21080         (function_call_count): Remove.
21081         * calls.c (expand_call): Don't set it.
21082         * integrate.c (copy_rtx_and_substitute): Likewise.
21083
21084         * function.h (struct function): Remove x_cleanup_label.
21085         (cleanup_label): Remove.
21086         * stmt.c (expand_value_return): Don't use it.
21087         * function.c (free_after_compilation): Don't set it.
21088         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
21089         * cfgexpand.c (tree_expand_cfg): Update call.
21090         * tree.h (expand_function_start): Update decl.
21091
21092 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
21093
21094         PR c/1027
21095         * c-lang.c (c_initialize_diagnostics): Move from here ...
21096         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
21097         (c_tree_printer): Use pretty-printer to format %T.
21098         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
21099         before '*' if not C++.
21100         (pp_c_direct_abstract_declarator): Don't try to print array upper
21101         bound for flexible array members.
21102         * c-tree.h: Include "diagnostic.h".
21103         (c_initialize_diagnostics): Declare.
21104         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
21105         * c-format.c (format_type_warning): New function.  Improve
21106         diagnostics for incorrect format argument types.
21107         (check_format_types): Use it.  Add two parameters.  Use the
21108         TYPE_MAIN_VARIANT of wanted_type.
21109         (check_format_info_main): Pass new parameters to
21110         check_format_types.
21111         (struct format_wanted_type): Update comment.
21112
21113 2004-07-01  Nick Clifton  <nickc@redhat.com>
21114
21115         * target.h (struct gcc_target): Add new field to struct cxx:
21116         import_export_class.
21117         * target-def.h (TARGET_CXX): Initialise the new field.
21118         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
21119         the new field.
21120         * doc/tm.texi: Document the new target hook.
21121
21122 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
21123
21124         * builtins.c (fold_builtin_classify): Fix typo.
21125
21126 2004-07-01  Richard Henderson  <rth@redhat.com>
21127
21128         * function.c (identify_blocks, identify_blocks_1): Remove.
21129         * function.h (identify_blocks): Remove.
21130         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
21131
21132 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
21133
21134         * builtins.c (fold_builtin_classify): New.
21135         (fold_builtin_unordered_cmp): Fix commentary.
21136         (fold_builtin): Use it.
21137         * builtins.def: Define builtins for isnan,
21138         isnanf, isnanl, finite, finitef, finitel,
21139         isinf, isinff, isinfl.
21140
21141 2004-07-01  Richard Henderson  <rth@redhat.com>
21142
21143         * function.h (struct function): Remove dont_emit_block_notes.
21144         * gimple-low.c (lower_function_body): Don't set it.
21145         * cfgexpand.c (expand_block): Don't check it.
21146         * cfglayout.c (insn_locators_initialize): Likewise.
21147         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
21148         * passes.c (rest_of_compilation): Likewise.
21149         * stmt.c (expand_start_bindings_and_block): Likewise.
21150         (expand_end_bindings): Likewise.
21151
21152 2004-07-01  Richard Henderson  <rth@redhat.com>
21153
21154         * cgraph.h (cgraph_build_static_cdtor): Declare.
21155         * cgraphunit.c (cgraph_build_static_cdtor): New.
21156         * c-objc-common.c (build_cdtor): Use it.
21157         * coverage.c (create_coverage): Likewise.
21158         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
21159         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
21160
21161 See ChangeLog.11 for earlier changes.