OSDN Git Service

* config/i386/i386.md (floathisf2, *floathisf2_1, floatsisf2,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-12-15  Uros Bizjak  <uros@kss-loka.si>
2
3         * config/i386/i386.md (floathisf2, *floathisf2_1, floatsisf2,
4         *floatsisf2_i387, *floatsisf2_sse, floatdisf2,
5         *floatdisf2_i387_only, *floatdisf2_i387, *floatdisf2_sse,
6         floathidf2, *floathidf2_1, *floatsidf2_i387, *floatsidf2_sse,
7         floatdidf2, *floatdidf2_i387_only, *floatdidf2_i387,
8         *floatdidf2_sse, floatunssisf2, floatunsdisf2, floatunsdidf2):
9         Unify enable constraint with respect to TARGET_80387, TARGET_SSE,
10         TARGET_SSE2, TARGET_64BIT, TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
11         (*float?i?f_i387): Rename to *float?i?f2_mixed.
12         (*float?i?f2_1): Rename to *float?i?f2_i387.
13         (*float?i?f2_i387_only): Rename to *float?i?f2_i387.
14         (float?ixf2): Penalize integer register operand.
15
16 2004-12-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17
18         PR c++/17242
19         * configure.ac: Add GAS check for HP-UX .nsubspa comdat.
20         * configure, config.in: Rebuilt.
21         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Delete
22         defines.
23         * config/pa/pa.c (pa_select_section): Allow uninitialized variables in
24         one-only (comdat) subspaces.
25         * config/pa/som.h (SUPPORTS_SOM_COMDAT): New define.
26         (SUPPORTS_ONE_ONLY): True if SUPPORTS_WEAK or SUPPORTS_SOM_COMDAT are
27         true.
28         (MAKE_DECL_ONE_ONLY): Place uninitialized variables in common.
29
30 2004-12-14  Ian Lance Taylor  <ian@wasabisystems.com>
31
32         * combine.c (combine_validate_cost): Consider cost of
33         undobuf.other_insn rather than always allowing the recombination
34         if it is set.
35
36 2004-12-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37
38         * pa-host.c (MAP_FAILED): Define if not defined.
39         (pa_gt_pch_use_address): Handle short reads.
40
41 2004-12-14  Richard Henderson  <rth@redhat.com>
42
43         PR target/17990
44         * config/i386/i386.c (x86_use_bt): New.
45         (ix86_expand_unary_operator): Use MEM_P.
46         (ix86_expand_fp_absneg_operator): New.
47         * config/i386/i386.h (x86_use_bt): Declare.
48         (TARGET_USE_BT): New.
49         * config/i386/i386-protos.h: Update.
50         * config/i386/i386.md (negsf2): Use ix86_expand_fp_absneg_operator.
51         (negdf2, negxf2, abssf2, absdf2, absxf2): Likewise.
52         (negsf2_memory, negsf2_ifs, negsf2_if, negdf2_memory, negdf2_ifs,
53         negdf2_ifs_rex64, negdf2_if, negdf2_if_rex64, negxf2_if,
54         abssf2_memory, abssf2_ifs, abssf2_if, absdf2_memory, absdf2_ifs,
55         absdf2_ifs_rex64, absdf2_if, absxf2_if): Remove.
56         (absnegsf2_mixed, absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed,
57         absnegdf2_sse, absnegdf2_i387, absnegxf2_i387): New.  Merge all
58         neg and abs splitters.  Handle DFmode in general regs in 64-bit mode.
59         (negextendsfdf2, absextendsfdf2): Disable for non-mixed sse math.
60         (btsq, btrq, btcq): New.  Add peepholes as well.
61         (movv4sf_internal splitter): Postpone til after reload.
62         (movv2di_internal splitter): Likewise.
63         * config/i386/predicates.md (const_0_to_63_operand): New.
64         (absneg_operator): New.
65
66 2004-12-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
67
68         * pa.h (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_FP_P):
69         Check register number and that reg_renumber is nonzero before using it.
70
71 2004-12-14  Steve Ellcey  <sje@cup.hp.com>
72
73         * doc/invoke.texi (IA-64 options): Add existing options that
74         weren't already listed.
75
76 2004-12-14  Jeff Law  <law@redhat.com>
77
78         * tree-outof-ssa.c (coalesce_abnormal_edges): Pass the correct target
79         partition to conflict_graph_merge_regs.
80
81 2004-12-14  Uttam Pawar  <uttamp@us.ibm.com>
82             Janis Johnson  <janis187@us.ibm.com>
83
84         * rs6000.c (rs6000_handle_altivec_attribute_tree): Report errors
85         for vector types with invalid component types.
86
87 2004-12-14  Jakub Jelinek  <jakub@redhat.com>
88
89         PR middle-end/18951
90         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2,
91         expand_builtin_mathfn_3): Avoid using arguments passed to
92         save_expr after that call.
93
94         * fold-const.c (fold_single_bit_test): If flag_syntax_only, pretend
95         LOAD_EXTEND_OP is not defined.
96         (fold): Likewise.  If flag_syntax_only, don't depend on BITS_PER_WORD.
97
98 2004-12-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
99
100         * tree.def, doc/c-tree.texi: Correctly document restrictions on the
101         shift width.
102
103 2004-12-14  Kazu Hirata  <kazu@cs.umass.edu>
104
105         * expr.h (expand_modifier): Define EXPAND_STACK_PARM as 1.
106
107 2004-12-14  Richard Earnshaw  <rearnsha@arm.com>
108
109         PR target/18973
110         arm-cores.def (arm926ej-s, arm1026ej-s, arm1136j-s, arm1136-jfs)
111         (arm1176jz-s, arm1176jzf-s, mpcorenovfp, mpcore): Add load-scheduling
112         property to flags.
113
114 2004-12-14  Diego Novillo  <dnovillo@redhat.com>
115
116         * tree-gimple.c (get_base_address): Update documentation.
117
118 2004-12-13  Richard Henderson  <rth@redhat.com>
119
120         PR middle-end/17930
121         * passes.c (rest_of_clean_state): Fix computation of
122         preferred_incoming_stack_boundary.
123
124 2004-12-13  Wolfgang Bangerth <bangerth@dealii.org>
125
126         * reload.h: Remove struct needs and its only use.
127
128 2004-12-13  Roger Sayle  <roger@eyesopen.com>
129
130         PR rtl-optimization/18928
131         * simplify_rtx.c (plus_minus_operand_p): New function to encode
132         the test for suitable operands for calls to simplify_plus_minus.
133         Only allow (CONST (PLUS x y)) if both x and y are CONSTANT_P.
134         (simplify_binary_operation): Use plus_minus_operand_p.
135
136 2004-12-13  Alexandre Oliva  <aoliva@redhat.com>
137
138         PR tree-opt/16951
139         * tree-inline.c (setup_one_parameter): Don't directly map a
140         parameter to the address of another variable of the same
141         function.
142
143 2004-13-12  Steven Bosscher  <stevenb@suse.de>
144
145         * basic-block.h (PROP_POSTRELOAD): Do not include PROP_AUTOINC, we
146         can never create autoinc insns after reload.
147
148 2004-12-13  Jeff Law  <law@redhat.com>
149             Kazu Hirata  <kazu@cs.umass.edu>
150
151         * tree-ssa-dom.c (thread_across_edge): Do not thread jumps if a
152         PHI argument is set from a PHI_RESULT in the same block and the
153         PHI argument is not the same as the PHI result.
154
155 2004-12-13  David Edelsohn  <edelsohn@gnu.org>
156
157         * xcoffout.c (xcoffout_declare_function): Always strip storage
158         class encoding.
159
160 2004-12-13  Andrew Pinski  <pinskia@physics.uc.edu>
161
162         PR target/18964
163         * config/darwin.c (darwin_assemble_visibility): Fix minor diagnostic
164         problem, adding a space at the end of the string before concatenation.
165
166 2004-12-13  Kazu Hirata  <kazu@cs.umass.edu>
167
168         * c-common.c (fname_as_string): Free namep if we are returning
169         cstr.text.
170
171         * tree-ssa-dom.c (record_edge_info): Fix memory leak.
172
173 2004-12-13  Andrew Pinski  <pinskia@physics.uc.edu>
174
175         * tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
176
177 2004-12-13  Kazu Hirata  <kazu@cs.umass.edu>
178
179         * tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
180         doing a pointer comparison.
181
182         * tree-ssa-dom.c (record_equivalences_from_phis): Add a
183         comment.
184
185         * defaults.h, stmt.c, tree-cfg.c, tree-ssa-dce.c: Fix comment
186         typos.
187
188 2004-12-13  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
189
190         * config/m32r/t-linux (SHLIB_MAPFILES): Add libgcc-glibc.ver to
191         the list rather than replacing the existing value.
192
193 2004-12-13  Richard Henderson  <rth@redhat.com>
194
195         * cfg.c (dump_flow_info): Don't dump pseudo info after reload.
196
197 2004-12-13  Richard Henderson  <rth@redhat.com>
198
199         * Makefile.in (insn-preds.o): Depend on REGS_H.
200         * genpreds.c (write_insn_preds_c): Include regs.h.
201         * config/i386/predicates.md (index_register_operand): Use
202         REG_OK_FOR_INDEX_STRICT_P and REG_OK_FOR_INDEX_NONSTRICT_P.
203
204         * config/i386/i386.h (REG_CLASS_FROM_LETTER): Add 'l'.
205         * config/i386/i386.md (lea_general_1, lea_general_1_zext,
206         lea_general_2, lea_general_2_zext, lea_general_3, lea_general_3_zext,
207         adddi_1_rex64, addsi_1, addsi_1_zext, addhi_1_lea, addqi_1_lea,
208         ashldi3_1_rex64, ashlsi3_1, ashlsi3_1_zext, ashlhi3_1_lea,
209         ashlqi3_1_lea): Use 'l' for index register operand.
210         (ashldi3_1_rex64 splitter): Use index_register_operand.
211         (ashlsi3_1 splitter): Be more careful with modes.
212
213 2004-12-13  Danny Smith  <dannysmith@users.sourceforge.net>
214
215         PR target/18459
216         * defaults.h (TARGET_USE_JCR_SECTION): New macro.
217         * doc/tm.texi (TARGET_USE_JCR_SECTION): Document it.
218         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Override
219         default.
220
221 2004-12-13 Uros Bizjak <uros@kss-loka.si>
222
223         PR target/14941
224         PR target/18503
225         * config/i386/i386.md (sse_movss, sse2_movsd, sse2_movhpd):
226         Fix wrong vec_merge selector bitmask.
227
228 2004-12-12  Richard Henderson  <rth@redhat.com>
229
230         PR rtl-opt/17186
231         * reg-stack.c (move_nan_for_stack_reg): New.
232         (subst_stack_regs_pat): Use it.
233         (move_for_stack_reg): Handle source register not live with a nan.
234
235 2004-12-12  Richard Henderson  <rth@redhat.com>
236
237         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatch
238         errors across operations.
239
240 2004-12-12  Di-an Jan  <dianj@freeshell.org>  
241
242         * doc/passes.texi (Pass Manager): Correct list of source files.
243
244 2004-12-12  Richard Henderson  <rth@redhat.com>
245
246         * expr.c (emit_move_change_mode): New.
247         (emit_move_via_alt_mode): Use it.
248
249 2004-12-12  Nathanael Nerode  <neroden@gcc.gnu.org>
250             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
251
252         PR middle-end/17564
253         * dojump.c (do_compare_and_jump): Only canonicalize function pointers
254         in a comparison if both sides are function pointers.
255
256 2004-12-12  Richard Henderson  <rth@redhat.com>
257
258         PR target/18932
259         * config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
260         and compare_operator to propagate the input CC mode to the output.
261         * config/i386/predicates.md (compare_operator): New.
262
263 2004-12-12  Andrew Pinski  <pinskia@physics.uc.edu>
264
265         PR tree-opt/18040
266         * expr.c (get_inner_reference): Remove NON_LVALUE_EXPR, NOP_EXPR,
267         CONVERT_EXPR cases.
268         (handled_component_p): Likewise.
269
270 2004-12-12  Kazu Hirata  <kazu@cs.umass.edu>
271
272         * reg-stack.c (convert_regs_2): Free stack.
273
274         * tree-ssa-dom.c (thread_across_edge, dom_opt_finalize_block): Fix
275         comment typos.
276
277 2004-12-12  Daniel Berlin  <dberlin@dberlin.org>
278
279         * tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
280         * tree-ssa-loop-im.c (determine_lsm): tree_root may not have a real
281         inner loop.
282
283 2004-12-12  Diego Novillo  <dnovillo@redhat.com>
284
285         * tree-gimple.c (get_base_address): Update documentation.
286
287 2004-12-12  Kazu Hirata  <kazu@cs.umass.edu>
288
289         * lcm.c (optimize_mode_switching): Free ptr even when mode_set
290         is NULL_RTX.
291
292 2004-12-12  Roger Sayle  <roger@eyesopen.com>
293
294         * reg-stack.c (change_stack): Avoid placing the new top-of-stack in
295         its correct location during popping if we need to permute the stack
296         afterwards.  Attempt to preserve the original stack ordering.
297
298 2004-12-12  Kazu Hirata  <kazu@cs.umass.edu>
299
300         * lcm.c (optimize_mode_switching): Free insert and delete in
301         the "for" loop.
302
303 2004-12-11  David Edelsohn  <edelsohn@gnu.org>
304             Ulrich Weigand  <uweigand@de.ibm.com>
305
306         PR target/18641
307         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Reload all
308         constants into all register classes intersecting with FLOAT_REGS
309         via memory.
310         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Same.
311         * config/rs6000/rs6000.md (movdi_internal32): Ignore FPRs when
312         choosing register preferences.
313         (movdi_internal64): Same.
314
315 2004-12-11  Kazu Hirata  <kazu@cs.umass.edu>
316
317         * tree-into-ssa.c (rewrite_ssa_into_ssa): Free SSA_NAME_AUX
318         before we release an SSA_NAME.
319
320 2004-12-11  Roger Sayle  <roger@eyesopen.com>
321
322         PR middle-end/18921
323         * fold-const.c (fold_unwidened_comparison): Use omit_one_operand
324         instead of constant_boolean_node as arg0 may have side-effects.
325
326 2004-12-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
327
328         * pa-host.c (pa_gt_pch_use_address): Use lseek and read to copy PCH
329         file to anonymous private map.
330
331 2004-12-10  Roger Sayle  <roger@eyesopen.com>
332
333         PR target/18002
334         PR middle-end/18424
335         * dojump.c (do_jump): When attempting to reverse the effects of
336         fold_single_bit_test, we need to STRIP_NOPS and narrowing type
337         conversions, and handle BIT_XOR_EXPR that's used to invert the
338         sense of the single bit test.
339
340 2004-12-10  Devang Patel  <dpatel@apple.com>
341
342         PR 18732
343         * gcc.c (main): Do not break out of loop when error is reported while
344         processing one source file.
345         
346 2004-12-10  Diego Novillo  <dnovillo@redhat.com>
347
348         * tree-into-ssa.c (REWRITE_THIS_STMT): Define.
349         (mark_def_sites): Clear REWRITE_THIS_STMT for statements that
350         don't need any operands rewritten.
351         (rewrite_stmt): Ignore statements that don't need to be
352         rewritten.
353         (rewrite_operand): Validate that an existing SSA_NAME is
354         identical to the current reaching definition of the operand.
355
356 2004-12-10  Diego Novillo  <dnovillo@redhat.com>
357
358         * tree-dfa.c (mark_call_clobbered_vars_to_rename): New function.
359         * tree-vectorizer.c (vectorizable_load): Call it.
360         * tree-flow.h (mark_call_clobbered_vars_to_rename): Declare.
361         * tree-sra.c (mark_all_v_defs): Also mark VUSEs for renaming.
362
363 2004-12-10  Kazu Hirata  <kazu@cs.umass.edu>
364
365         * regmove.c (combine_stack_adjustments_for_block): Free
366         memlist if it hasn't been freed.
367
368 2004-12-10  Ziemowit Laski  <zlaski@apple.com>
369
370         * c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
371         pointer field is set before dereferencing it.
372
373 2004-12-10  Andrew Pinski  <pinskia@physics.uc.edu>
374
375         PR middle-end/18903
376         * tree-cfg.c (remove_bb): Put the moved label at the beginning
377         of the basic block.
378
379 2004-12-10  Kazu Hirata  <kazu@cs.umass.edu>
380
381         * tree-data-ref.c (free_data_refs): Free each data_reference
382         object.
383
384         * tree-ssa-dom.c (thread_across_edge): Speed up by avoiding a
385         call to is_gimple_min_invariant if we know the result.
386
387 2004-12-10  Jeff Law  <law@redhat.com>
388
389         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
390         redundant test of v_ann->mem_tag_kind.
391
392         * tree-ssa-operands.c (get_indirect_ref_operands): Remove
393         redundant conditional clearing opf_kill_def.
394
395 2004-12-10  Richard Sandiford  <rsandifo@redhat.com>
396
397         * config/frv/frv-modes.def: Fix comment typos.
398         (CC_NZ): Define new mode.
399         * config/frv/frv-protos.h (frv_select_cc_mode): Declare.
400         (condexec_intop_cmp_operator): Delete.
401         * config/frv/frv.c (comparison_string): New function.
402         (frv_print_operand): Use it to handle 'c' and 'C'.
403         (relational_operator): Redefine in terms of integer_relational_operator
404         and float_relational_operator.
405         (signed_relational_operator, unsigned_relational_operator): Delete.
406         (integer_relational_operator): New predicate, combining the above.
407         Check the mode of the first operand but leave frv.md to check the rest.
408         (float_relational_operator): Just check the mode of the first operand
409         and leave frv.md to check the rest.
410         (intop_compare_operator): Assume the result is compared with zero
411         in mode CC_NZmode.  Allow PLUS and MINUS.  Leave frv.md to check
412         the operand predicates.
413         (condexec_intop_cmp_operator): Delete.
414         (frv_ifcvt_modify_tests, frv_ifcvt_modify_multiple_tests)
415         (frv_hard_regno_mode_ok): Handle CC_NZmode.
416         (frv_select_cc_mode): New function.
417         * config/frv/frv.h (SELECT_CC_MODE): Use frv_select_cc_mode.
418         (REVERSIBLE_CC_MODE): Include CC_NZmode.
419         (PREDICATE_CODES): Replace entries for signed_relational_operand and
420         unsigned_relational_operator with one for integer_relational_operator.
421         Delete entry for condexec_intop_cmp_operator.
422         * config/frv/frv.md (movcc_nz, *internal_movcc_nz, reload_incc_nz)
423         (reload_outcc_nz, *cmpsi_cc_nz, *cond_exec_cmpsi_cc_nz): New patterns.
424         (*combo_intop_compare2, *combo_intop_compare4): Delete.
425         (*combo_intop_compare1): Change mode to CC_NZ.
426         (*combo_intop_compare2): Likewise.  Renamed from *combo_intop_compare3.
427         (branch_{un,}signed_true, branch_{un,}signed_false)
428         (*scc_{un,}signed, *scc_neg1_{un,}signed, *ck_{un,}signed)
429         (*movqicc_internal1_{un,}signed, *movqicc_internal2_{un,}signed)
430         (*movhicc_internal1_{un,}signed, *movhicc_internal2_{un,}signed)
431         (*movsicc_internal1_{un,}signed, *movsicc_internal2_{un,}signed)
432         (*movsfcc_has_fprs_{un,}signed, *movsfcc_no_fprs_{un,}signed)
433         (*return_{unsigned_,}true, *return_{unsigned_,}false): Merge these
434         pattern pairs.  Use integer_relational_operator.  Remove mode from
435         icc_operand.
436
437 2004-12-10  Mark Dettinger  <dettinge@de.ibm.com>
438
439         * config/s390/s390.c (struct processor_costs): New fields ml,
440         sqdbr, sqebr.
441         (s390_rtx_costs): Added the missing handling of multiply & add,
442         square root, and umulsidi.
443
444 2004-12-10  Kazu Hirata  <kazu@cs.umass.edu>
445
446         * expmed.c (synth_mult): Initialize new_limit.latency before
447         making a recursive call.
448
449 2004-12-10  Nick Clifton  <nickc@redhat.com>
450
451         * config/mn10300/mn10300.c (legitimate_address_p): Reject address
452         whose index is itself the sum of two other parts.
453
454 2004-12-10  Alan Modra  <amodra@bigpond.net.au>
455
456         * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.
457
458 2004-12-10  Uros Bizjak  <uros@kss-loka.si>
459
460         * config/i386/i386.md (*cmpfp_sf): Change type attribute to "multi".
461
462 2004-12-09  Richard Henderson  <rth@redhat.com>
463
464         PR c/18282
465         * attribs.c (decl_attributes): Use relayout_decl.
466         * c-common.c (handle_mode_attribute): Copy all relevant type
467         parameters from the new underlying integral type.
468
469 2004-12-09  Richard Henderson  <rth@redhat.com>
470
471         * c-common.c (shorten_compare): Don't special-case min/maxval
472         for C enumerations.
473
474 2004-12-09  Richard Sandiford  <rsandifo@redhat.com>
475
476         * simplify-rtx.c (simplify_subreg): In the CONCAT case, check whether
477         the request subreg is entirely contained in the requested component.
478         (simplify_gen_subreg): Return null for CONCATs that are rejected
479         by simplify_subreg.
480         * expmed.c (store_bit_field): Create a temporary when changing the
481         value to an integer mode.
482
483 2004-12-09  David Edelsohn  <edelsohn@gnu.org>
484
485         * real.c (ibm_extended): Correct comment.
486
487 2004-12-09  Stan Shebs  <shebs@apple.com>
488
489         * config/rs6000/darwin-asm.h: New file, 32/64-bit assembly macros
490         formerly in darwin-tramp.asm.
491         * config/rs6000/darwin-tramp.asm: Include darwin-asm.h.
492         * config/rs6000/darwin-fpsave.asm: Use 32/64-bit macros.
493         * config/rs6000/t-darwin: Add dependencies.
494
495 2004-12-09  Richard Henderson  <rth@redhat.com>
496
497         PR target/17025
498         * config/i386/i386.md (testqi_1_maybe_si, andqi_2_maybe_si): New.
499         (test_qi_1, andqi_2): Do not promote to simode.
500
501 2004-12-09  Andrew Pinski  <pinskia@physics.uc.edu>
502
503         PR tree-opt/18904
504         * tree-chrec.c (chrec_convert): Use fold_convert
505         instead of convert.
506
507 2004-12-09  Matt Rice  <ratmice@yahoo.com>
508
509         PR preprocessor/18102
510         * c-incpath.c (remove_duplicates): Check for construct
511         equality.
512
513 2004-12-09  Dorit Naishlos  <dorit@il.ibm.com>
514
515         * genopinit.c (vec_realign_store_optab): Initialization removed.
516         * optabs.c (optab_for_tree_code): REALIGN_STORE_EXPR case removed.
517         * optabs.h (optab_index): OTI_vec_realign_store Removed.
518         (vec_realign_store_optab): Removed.
519         * target-def.h (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Removed.
520         * target.h (builtin_mask_for_store): Removed.
521         * tree.def (REALIGN_STORE_EXPR): Removed.
522         * config/rs6000/rs6000.c (rs6000_builtin_mask_for_store): Removed.
523         (altivec_builtin_mask_for_store): Removed.
524         (altivec_init_builtins): Removed initialization of
525         altivec_builtin_mask_for_store.
526
527         * doc/tm.texi (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
528         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): New.
529
530 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
531
532         * tree.def (SET_TYPE): Remove.
533         (CONSTRUCTOR): Update description.
534         * builtins.c (type_to_class) Remove SET_TYPE case.
535         * dbxout.c (dbxout_type): Likewise.
536         * dwarf2out.c (is_base_type): Likewise.
537         (gen_set_type_die): Remove.
538         (gen_type_die): Remove SET_TYPE case.
539         * expr.c (count_type_elements): Likewise.
540         (mostly_zeroes_p): Likewise.
541         (store_constructor): Likewise.
542         * print_tree.c (print_node): Likewise.
543         * stor-layout.c (layout_type): Likewise.
544         * tree-browser.c (browse_tree): Likewise.
545         * tree-inline.c (remap_type): Likewise.
546         * tree-pretty-print.c (dump_generic_node): Likewise.
547         * tree.c (type_contains_plaeholder_1, type_hash_eq,
548         variably_modified_type_p, initializer_zerop): Likewise.
549         * tree.h (SET_OR_ARRAY_CHECK): Remove.
550         (AGGREGATE_TYPE_P): Remove SET_TYPE check.
551         (TYPE_DOMAIN): Use ARRAY_TYPE_CHECK.
552         * typeclass.h (enum type_class): Remove set_type_class.
553         * varasm.c (const_hash_1): Remove SET_TYPE case.
554         (compare_constant, copy_constant, output_constant): Likewise.
555         * config/i386/i386.c (classify_argument): Likewise.
556         * config/ia64/ia64.c (hfa_element_mode): Likewise.
557         * config/sparc/sparc.c (sparc_type_code): Likewise.
558
559         PR c++/16681
560         * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case.
561
562 2004-12-08  Richard Henderson  <rth@redhat.com>
563
564         * config/i386/i386.md: Use FLAGS_REG everywhere.
565
566 2004-12-08  Eric Christopher  <echristo@redhat.com>
567
568         * config/mips/mips.c (mips_scalar_mode_supported_p): Rewrite
569         to avoid call to default function.
570
571 2004-12-08  Zack Weinberg  <zack@codesourcery.com>
572
573         PR 17982
574         * varasm.c (pending_assemble_externals): New static.
575         (assemble_external_real): Meat of assemble_external split out
576         to this new function.
577         (process_pending_assemble_externals): New function.
578         (assemble_external): Use gcc_assert.  If flag_unit_at_a_time
579         is true and the basic test passes, merely cons the decl onto
580         the pending list to be handled later.
581         * tree.h: Declare process_pending_assemble_externals.
582         * cgraphunit.c (cgraph_optimize): Call it.
583
584         * config/h8300/h8300.h: Do not define ASM_OUTPUT_EXTERNAL.
585
586 2004-12-08  Kazu Hirata  <kazu@cs.umass.edu>
587
588         * cfgloopmanip.c (create_preheader): Speed up by "unrolling"
589         and simplifying FOR_EACH_EDGE.
590
591 2004-12-08  Richard Sandiford  <rsandifo@redhat.com>
592
593         * config/frv/frv.c (frv_sort_insn_group): Always initialize
594         packet_group->nop.
595
596 2004-12-08  Nathan Sidwell  <nathan@codesourcery.com>
597
598         PR c++/18672
599         * gimplify.c (canonicalize_addr_expr): Cope with array of
600         incomplete type.
601         (gimplify_conversion): Remove redundant checks.
602
603         * doc/trouble.texi (Non-bugs): Clarify empty loop removal.
604
605 2004-12-08  Uros Bizjak  <uros@kss-loka.si>
606
607         * config/i386/i386.c (output_387_binary_op,
608         ix86_prepare_fp_compare_args): Fix is_sse condition.
609
610 2004-12-07  Uros Bizjak  <uros@kss-loka.si>
611
612         * config/i386/i386-protos.h (ix86_split_fp_branch): New rtx
613         argument.
614
615         * config/i386/i386.c (output_fp_compare): Fix is_sse condition.
616         Use EFLAGS_P only when fcomi insn should be used. Fix handling
617         of eflags_p variable. Change alt table accordingly. For non-fcomi
618         compare insn always use trailing fnstsw insn. Fix intmode
619         calculation for ficom insn.
620         (ix86_split_fp_branch): Add "rtx pushed" as new parameter. Call
621         ix86_free_from_memory when "pushed" is specified.
622         (ix86_expand_branch): Change call to ix86_split_fp_branch.
623
624         * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, *cmpfp_0_xf):
625         Change eflags_p parameter in call to output_fp_compare.
626         (*cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf): Remove.
627         (*cmpfp_2_sf_1, *cmpfp_2_df_1, *cmpfp_2_xf_1): Rename to
628         *cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf.  Change eflags_p
629         parameter in call to output_fp_compare.
630         (*cmpfp_2_u): Remove.
631         (*cmpfp_2_u_1): Rename to *cmpfp_2_u. Change eflags_p parameter
632         in call to output_fp_compare.
633         (*ficom_1): Remove insn definition and corresponding define_split.
634         (*cmpfp_si): New insn definition.
635         (*fp_jcc_8): New insn definition. Add new splitters for
636         "memory_operand" and "register_operand".
637         (define_split): Add new parameter in call to ix86_split_fp_branch.
638
639         config/i386/predicates.md (float_operator): New predicate.
640
641 2004-12-08  Kazu Hirata  <kazu@cs.umass.edu>
642
643         * c-common.c (verify_tree): Don't check code length if we know
644         we are handling tcc_unary.
645         * print_tree.c (print_node): Remove code to handle RTL
646         appearing as a part of a tree node.
647         * tree-gimple.c (recalculate_side_effects): Rename fro as len.
648         * tree.c (build1_stat): Don't check TREE_CODE_LENGTH.
649         (PROCESS_ARG): Don't refer to fro.
650         (build2_stat, build3_stat, build4_stat): Don't compute fro.
651
652 2004-12-07  Roger Sayle  <roger@eyesopen.com>
653
654         PR middle-end/18293
655         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
656         (expand_mult): Special case powers of two to avoid synth_mult.
657         * loop.c (product_cheap_p): Handle case where expand_mult does
658         require/generate any instructions (i.e. multiplication by zero).
659
660 2004-12-07  Richard Henderson  <rth@redhat.com>
661
662         * tree-pretty-print.c (dump_array_domain): Split out from
663         dump_generic_node; fix off-by-one error on zero-based array bounds.
664         (dump_generic_node): Use it.
665         (print_declaration): Likewise.
666
667 2004-12-08  Richard Guenther <richard.guenther@uni-tuebingen.de>
668
669         * doc/invoke.texi: Adjust default values for
670         large-function-growth and inline-unit-growth to match
671         params.def.  Clarify used algorithm.
672
673 2004-12-07  David Mosberger  <davidm@hpl.hp.com>
674
675         PR target/18443
676         * config/ia64/ia64.c (ia64_assemble_integer): Add support for
677         emitting unaligned pointer-sized integers.
678
679 2004-12-07  Steven Bosscher  <stevenb@suse.de>
680
681         PR c/18867
682         * c-typeck.c (c_start_case): Set orig_type to error_mark_node
683         when the type of the controlling expression is not a valid type.
684
685 2004-12-07  Steven Bosscher  <stevenb@suse.de>
686
687         PR tree-optimization/17340
688         * tree-ssa-pre.c (compute_antic): Fix comment.
689         (compute_avail): Do not recurse, instead do a DFS using a stack
690         and a loop.
691         (execute_pre): Adjust.
692
693 2004-12-07  Ziemowit Laski  <zlaski@apple.com>
694
695         * c-tree.h (struct lang_type): Rename 'objc_protocols' field
696         to 'objc_info'.
697
698 2004-12-07  Eric Christopher  <echristo@redhat.com>
699
700         PR target/16317
701         * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
702
703 2004-12-07  Eric Christopher  <echristo@redhat.com>
704
705         * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
706         prototype...
707         * config/mips/mips.c: ... here. Make static.
708
709 2004-12-07  Eric Christopher  <echristo@redhat.com>
710
711         PR target/18442
712         * config/mips/mips.c (mips_vector_mode_supported_p): New function.
713         (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
714
715 2004-12-07  Kazu Hirata  <kazu@cs.umass.edu>
716
717         * c-common.c, expr.c, fold-const.c, print-tree.c,
718         tree-gimple.c, tree-inline.c, tree-pretty-print.c,
719         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
720         first_rtl_op with TREE_CODE_LENGTH.
721         * tree.c (first_rtl_op): Remove.
722         Replace uses of first_rtl_op with TREE_CODE_LENGTH.
723         * tree.h: Remove the prototype for first_rtl_op.
724
725 2004-12-07  David Edelsohn  <edelsohn@gnu.org>
726
727         * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
728         Revert 2004-12-01 change.
729
730 2004-12-06  Ziemowit Laski  <zlaski@apple.com>
731
732         * c-tree.h (struct lang_type): Add 'objc_protocols' field.
733
734 2004-12-06  DJ Delorie  <dj@redhat.com>
735
736         * reload.c (find_valid_class): Fix logic to test inner mode as well.
737         (push_reload): Pass inner mode.
738
739 2004-12-06  Eric Christopher  <echristo@redhat.com>
740
741         * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
742
743 2004-12-06  Aldy Hernandez  <aldyh@redhat.com>
744
745         * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
746
747 2004-12-06  Zdenek Dvorak  <dvorakz@suse.cz>
748             Kazu Hirata  <kazu@cs.umass.edu>
749
750         PR tree-optimization/18601
751         * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
752         (tree_forwarder_block_p): Do not consider blocks that are its own
753         successors forwarders.
754         (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
755         (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
756         thread_jumps.
757         * tree-flow.h (bb_ann_d): Remove forwardable.
758
759 2004-12-06  Kazu Hirata  <kazu@cs.umass.edu>
760
761         * expr.c (expand_expr_real_1): Remove an "if" whose condition
762         is always false.
763
764 2004-12-06  Roger Sayle  <roger@eyesopen.com>
765
766         * c-gimplify.c (gimplify_c_loop): Improve initial implementations
767         for loops whose conditions are known at compile-time.
768         * gimplify.c (append_to_statement_list_1): Remove side_effects
769         parameter, this function should never be called if its false.
770         (append_to_statement_list): Only call append_to_statement_list_1
771         if t is non-NULL tree with side-effects.
772         (append_to_statement_list_force):  Likewise, if t is not NULL.
773
774 2004-12-06  J"orn Rennecke <joern.rennecke@st.com>
775
776         * bt-load.c (btr_def_s): New member own_end;
777         (add_btr_to_live_range): Add second parameter.  Changed caller.
778         (clear_btr_from_live_range): Clear btrs_live_at_end bit
779         for the register its definition basic block if own_end is set.
780         (augment_live_range): Also take btrs_live_at_end into account.
781         (combine_btr_defs): Don't bother with
782         other_def->other_btr_uses_after_use if it pertains to a different
783         register.
784         (move_btr_def): Set def->other_btr_uses_before_def after
785         calling combine_btr_defs."
786
787         * bt-load.c (augment_live_range): New argument full_range.
788         Changed all callers.
789
790         * bt-load.c (move_tr_def): Set other_tr_uses_before_def
791         taking new btr assignment into account.
792
793 2004-12-05  Daniel Berlin <dberlin@dberlin.org>
794
795         * tree-ssa-alias.c (create_global_var): Use void_type_node,
796         not size_type_node.
797
798 2004-12-05  Kazu Hirata  <kazu@cs.umass.edu>
799
800         * expr.c (expand_expr_real_1): Abort on COND_EXPR of
801         VOID_TYPE.
802
803 2004-12-05  Richard Henderson  <rth@redhat.com>
804
805         PR target/18841
806         * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
807         (builtin_setjmp_receiver_er_sl_1): Use it.
808         (builtin_setjmp_receiver_er_1): Likewise.
809         (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
810         (builtin_setjmp_receiver): Don't split for explicit relocs until
811         after reload.
812         (exception_receiver): Likewise.
813
814 2004-12-05  Andrew Pinski  <pinskia@physics.uc.edu>
815
816         * mklibgcc.in (vis_hide): Add the prototype for the test.
817
818 2004-12-05  Roger Sayle  <roger@eyesopen.com>
819
820         * c-typeck.c (c_finish_loop): Improve initial implementations
821         for loops whose conditions are known at compile-time.
822
823 2004-12-05  Kazu Hirata  <kazu@cs.umass.edu>
824
825         * builtins.c: Fix comment typos.
826
827 2004-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
828
829         PR middle-end/18730
830         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
831         the first/last insn is a sequence, return the first/last insn of the
832         sequence.
833
834         PR bootstrap/18804
835         * mklibgcc.in (vis_hide): Use implementation instead of declaration
836         for test function.
837
838 2004-12-04  Richard Henderson  <rth@redhat.com>
839
840         * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
841         use ofs in BWX two byte special case.
842         (alpha_expand_unaligned_store): Likewise.
843
844 2004-12-04  Kazu Hirata  <kazu@cs.umass.edu>
845
846         * gcse.c (gcse_main): Add a comment.
847
848 2004-12-04  Andrew  Pinski  <pinskia@physics.uc.edu>
849
850         PR middle-end/17909
851         * builtins.c (fold_builtin_next_arg): Export and return true
852         when there is a warning or an error.
853         (expand_builtin_va_start): When fold_builtin_next_arg returns true,
854         return const0_rtx.
855         (expand_builtin): Likewise.
856         * gimplify.c (gimplify_call_expr): Error out if there is not
857         enough arguments to va_start. Call fold_builtin_next_arg also
858         on the second argument.
859         * tree.h (fold_builtin_next_arg): Prototype.
860
861 2004-12-04  Alan Modra  <amodra@bigpond.net.au>
862
863         * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
864         Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
865         SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
866         * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
867         shlib_dir and shlib_so_name.
868         * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
869         * config/t-libunwind-elf (SHLIB_NAME): Likewise.
870         * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
871         * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
872         * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
873         (SHLIB_LINK): Don't use shlib_dir when creating symlink.
874
875 2004-12-03  Roger Sayle  <roger@eyesopen.com>
876
877         * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
878
879 2004-12-03  Richard Henderson  <rth@redhat.com>
880
881         * alias.c (component_uses_parent_alias_set): Rename from
882         can_address_p.  Return bool.  Reverse the sense of the result.
883         Reinstate the check for alias set zero.
884         (get_alias_set): Update to match.
885         * alias.h (component_uses_parent_alias_set): Likewise.
886         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
887         * expr.c (expand_assignment): Likewise.
888         * expr.h: Remove commented out prototypes that were moved to alias.h.
889
890 2004-12-03  Richard Henderson  <rth@redhat.com>
891
892         * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
893         (TARGET_CANNOT_FORCE_CONST_MEM): New.
894
895 2004-12-04  Alan Modra  <amodra@bigpond.net.au>
896
897         PR middle end/18718
898         * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
899         in pairs.
900         * sched-ebb.c (schedule_ebb): Likewise.
901
902 2004-12-03  Andreas Schwab  <schwab@suse.de>
903
904         * Makefile.in (HOSTHOOKS_DEF_H): Define.
905         (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
906         (host-default.o): Likewise.
907
908 2004-12-03  Eric Christopher  <echristo@redhat.com>
909
910         * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
911         pophi): Add number of arguments to name so that the
912         pattern is recognized as a named pattern.
913
914 2004-12-03  Janis Johnson  <janis187@us.ibm.com>
915
916         * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
917
918 2004-12-03  Andreas Tobler  <a.tobler@schweiz.ch>
919
920         * config/rs6000/rs6000.c (rs6000_override_options): Protect
921         darwin_one_byte_bool with #if.
922
923 2004-12-03  Paolo Bonzini  <bonzini@gnu.org>
924
925         * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
926
927 2004-12-03  H.J. Lu  <hongjiu.lu@intel.com>
928
929         * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
930
931 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
932
933         * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
934         Set libstdcxx_incdir directly.
935         * configure: Regenerate.
936
937 2004-12-03  Kazu Hirata  <kazu@cs.umass.edu>
938
939         * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
940         "if" whose condition is always true.
941
942         * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
943         INSN_P.
944
945 2004-12-02  Stan Shebs  <shebs@apple.com>
946
947         * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
948         Darwin default to one-byte bools.
949
950 2004-12-02  Richard Henderson  <rth@redhat.com>
951
952         PR 18774
953         * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
954
955 2004-12-03  Ben Elliston  <bje@au.ibm.com>
956
957         * doc/cfg.texi (Edges): Update. Document the edge_iterator data
958         type and its methods.
959
960 2004-12-02  Richard Henderson  <rth@redhat.com>
961
962         * expr.c (write_complex_part): Use simplify_gen_subreg when the
963         submode is at least as large as a word.
964         (read_complex_part): Likewise.
965
966 2004-12-02  H.J. Lu  <hongjiu.lu@intel.com>
967
968         PR bootstrap/18532
969         * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
970         multilib at a time. Don't build the default set. Don't add
971         EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
972         filter for shared libunwind and libgcc.
973
974 2004-12-02  Roger Sayle  <roger@eyesopen.com>
975
976         PR target/18759
977         * config/i386/i386.c (override_options): If -fomit-frame-pointer has
978         already been specified, ignore the -momit-leaf-frame-pointer option.
979
980 2004-12-02  H.J. Lu  <hongjiu.lu@intel.com>
981
982         * varasm.c (make_decl_rtl): Add the missing `;'.
983
984 2004-12-02  Andrew Pinski  <pinskia@physics.uc.edu>
985
986         * tree.c (is_attribute_p): Split out to ..
987         (is_attribute_with_length_p): Here.  Use IDENTIFIER_LENGTH instead
988         of strlen and compare the string lengths before calling strcmp.
989         (lookup_attribute): Call is_attribute_with_length_p instead of
990         is_attribute_p.
991
992 2004-12-02  Devang Patel  <dpatel@apple.com>
993
994         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
995         * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
996         * config/i386/darwin.h (CC1_SPEC): Same.
997
998 2004-12-02  Richard Henderson  <rth@redhat.com>
999
1000         * optabs.c (lowpart_subreg_maybe_copy): New.
1001         (expand_unop, expand_abs_nojump): Use it.
1002
1003 2004-12-02  J"orn Rennecke <joern.rennecke@st.com>
1004
1005         * sh.md (extv, extzv): Add pattern predicate.
1006
1007 2004-12-02  Kazu Hirata  <kazu@cs.umass.edu>
1008
1009         * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1010         is not null.
1011
1012         * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1013         is not null.
1014
1015         * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
1016
1017 2004-12-02  Jeff Law  <law@redhat.com>
1018
1019         * tree-eh.c: Revert yesterday's change.
1020
1021 2004-12-02  Andrew Pinski  <pinskia@physics.uc.edu>
1022
1023         * varasm.c (decode_reg_name): Revert change to check for zero
1024         length strings.
1025         (make_decl_rtl): Make sure that we call decode_reg_name only
1026         when needed.
1027
1028 2004-12-02  Dorit Naishlos  <dorit@il.ibm.com>
1029
1030         PR tree-opt/18716
1031         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
1032         then and else labels.
1033
1034 2004-12-02  Andreas Schwab  <schwab@suse.de>
1035
1036         * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
1037         (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
1038         (STAGE2_FLAGS_TO_PASS): Likewise.
1039
1040         * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
1041
1042 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
1043
1044         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.  Remove
1045         now-redundant AC_SUBSTs.
1046         * aclocal.m4: Include ../config/gcc-version.m4.
1047         * configure: Regenerate.
1048
1049 2004-12-02  Alan Modra  <amodra@bigpond.net.au>
1050
1051         * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
1052         #ifdef RELOCATABLE_NEEDS_FIXUP.
1053
1054 2004-12-01  Roger Sayle  <roger@eyesopen.com>
1055
1056         PR target/9908
1057         * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
1058         Intel assembler syntax by using %A1 instead of %*%1.
1059
1060 2004-12-01  Richard Henderson  <rth@redhat.com>
1061
1062         * expr.c (expand_assignment): Handle CONCAT both as a final
1063         destination and as a middle point.
1064
1065 2004-12-01  Jeff Law  <law@redhat.com>
1066
1067         * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
1068         (honor_protect_cleanup_actions): Only create save_eptr and
1069         save_filt if they do not already exist.
1070         (lower_eh_constructs): Wipe all knowledge of save_eptr and
1071         save_filt before returning.
1072
1073 2004-12-02  Kazu Hirata  <kazu@cs.umass.edu>
1074
1075         * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
1076
1077 2004-12-02  Alan Modra  <amodra@bigpond.net.au>
1078
1079         PR target/16952
1080         * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
1081         #ifdef RELOCATABLE_NEEDS_FIXUP with if.
1082         * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
1083         of target_flags_explicit.
1084         * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
1085         case.  Define as 0 for non-biarch.
1086
1087 2004-12-01  Zack Weinberg  <zack@codesourcery.com>
1088
1089         * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
1090         Change temporary file tag from a prefix to an infix.
1091
1092 2004-12-02  Andreas Schwab  <schwab@suse.de>
1093
1094         * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
1095
1096 2004-12-01  Andrew Pinski  <pinskia@physics.uc.edu>
1097
1098         PR tree-opt/18763
1099         PR tree-opt/18746
1100         * tree-ssa-alias.c (init_alias_info): Get statement operands for all
1101         the statements if aliases_computed_p is true.
1102
1103 2004-12-01  Mark Mitchell  <mark@codesourcery.com>
1104
1105         * Makefile.in (WERROR): New variable.
1106         (STRICT2_WARN): Use it.
1107         (STAGE2_FLAGS_TO_PASS): Likewise.
1108         * config/i386/x-mingw32 (WERROR): Add -Wno-format.
1109
1110 2004-12-01  Richard Henderson  <rth@redhat.com>
1111
1112         * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
1113         offsetting.
1114
1115 2004-12-01  Diego Novillo  <dnovillo@redhat.com>
1116
1117         PR tree-optimization/18291
1118         * tree-ssa-copy.c (merge_alias_info): Fix merging of
1119         flow-sensitive alias information.  If the new pointer has no
1120         name tag, copy it from the original pointer.  Otherwise, make
1121         sure that the pointed-to sets have a common intersection.
1122
1123 2004-12-01  Richard Henderson  <rth@redhat.com>
1124
1125         PR rtl-opt/15289
1126         * emit-rtl.c (gen_complex_constant_part): Remove.
1127         (gen_realpart, gen_imagpart): Remove.
1128         * rtl.h (gen_realpart, gen_imagpart): Remove.
1129         * expmed.c (extract_bit_field): Remove CONCAT hack catering to
1130         gen_realpart/gen_imagpart.
1131         * expr.c (write_complex_part, read_complex_part): New.
1132         (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
1133         emit_move_complex_push, emit_move_complex, emit_move_ccmode,
1134         emit_move_multi_word): Split out from ...
1135         (emit_move_insn_1): ... here.
1136         (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
1137         <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
1138         * function.c (assign_parm_setup_reg): Hard-code transformations
1139         instead of using gen_realpart/gen_imagpart.
1140
1141         * expr.c (optimize_bitfield_assignment_op): Split out from ...
1142         (expand_assignment): ... here.  Use handled_component_p to gate
1143         get_inner_reference code.  Simplify MEM handling.  Special case
1144         CONCAT destinations.
1145
1146         * expmed.c (store_bit_field): Use simplify_gen_subreg instead
1147         of gen_rtx_SUBREG directly.
1148
1149 2004-12-01  David Edelsohn  <edelsohn@gnu.org>
1150             Nathan Sidwell  <nathan@codesourcery.com>
1151
1152         PR target/17107
1153         * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
1154         (sgt): Same.
1155         (sle): Same.
1156         (slt): Same.
1157
1158 2004-12-01  Nathan Sidwell  <nathan@codesourcery.com>
1159
1160         PR middle-end/18667
1161         * params.c (set_param_value): Add range check.
1162         * params.def: Add min and max values. Reformat long strings.
1163         * params.h (struct param_info): Add min and max fields.
1164         (enum compiler_param): Adjust DEFPARAM.
1165         * toplev.c (lang_independent_params): Likewise.
1166
1167 2004-12-01  Alan Modra  <amodra@bigpond.net.au>
1168
1169         PR target/12817
1170         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
1171
1172 2004-12-01  Joseph S. Myers  <joseph@codesourcery.com>
1173
1174         * doc/standards.texi: Update for C99 TC2.
1175
1176 2004-11-30  Jeff Law  <law@redhat.com>
1177
1178         * sbitmap.c (sbitmap_any_common_bits): New function.
1179         * sbitmap.h (sbitmap_any_common_bits): Prototype.
1180         * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
1181         No longer allocate/free "psp", "pss" sbitmaps.
1182         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
1183         the "res" sbitmap.
1184         (group_aliases): Similarly.
1185
1186 2004-11-30  Nathan Sidwell  <nathan@codesourcery.com>
1187
1188         * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
1189         uninitialized variable.
1190
1191 2004-11-30  Eric Christopher  <echristo@redhat.com>
1192
1193         * fold-const.c (fold_widened_comparison): Make sure that we're
1194         passing an INTEGER_TYPE to int_fits_type_p.
1195         (fold): Clean up comment.
1196
1197 2004-11-30  Zack Weinberg  <zack@codesourcery.com>
1198
1199         * mklibgcc.in: Correct calculation of libgcc_s_soname and
1200         libunwind_soname.  Use $out, not $outS, in commands for
1201         no-shared-library case.  Move EXTRA_MULTILIB_PARTS rules above
1202         library build rules, make $libunwind_so and $libgcc_s_so
1203         depend on them in the normal fashion, and filter those objects
1204         out of @shlib_objs@.
1205
1206 2004-11-30  Janis Johnson  <janis187@us.ibm.com>
1207
1208         * config/rs6000/altivec.h (vec_step_help): Support const vector types.
1209
1210 2004-11-30  Andrew Pinski  <pinskia@physics.uc.edu>
1211
1212         PR tree-opt/18298
1213         * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
1214         pass right after fold builtins.
1215
1216 2004-11-30  Andreas Krebbel  <krebbel1@de.ibm.com>
1217
1218         * config/s390/s390-modes.def: Added cc modes documentation.
1219         * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
1220         s390_expand_addcc): Added cc mode comments.
1221         * config/s390/s390.md: Removed old cc mode documentation.
1222
1223 2004-11-30  Mark Dettinger  <dettinge@de.ibm.com>
1224
1225         * config/s390/s390.c (struct processor_costs): New data type.
1226         (s390_cost, z900_cost, z990_cost): New global variables.
1227         (override_options): Initialize s390_cost.
1228         (s390_rtx_costs): Reimplement.
1229
1230 2004-11-29  Daniel Berlin  <dberlin@dberlin.org>
1231
1232         Fix PR tree-optimization/18673
1233
1234         * tree-ssa-pre.c: Remove splay-tree.h include.
1235         (bitmap_value_replace_in_set): Fix to add if it does not exist.
1236         (find_or_generate_expression): Remove now-wrong condition.
1237         (create_expression_by_pieces): Fix condition and comment reason
1238         for it.
1239         (insert_aux): Fix condition and comment reasons for it.
1240         Factor insertion code from here.
1241         (insert_into_preds_of_block): To here.  Fix conditions in factored
1242         function and comment reasons for them.
1243
1244 2004-11-30  Ira Rosen  <irar@il.ibm.com>
1245
1246         PR tree-opt/18607
1247         * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
1248         variable for data_reference when looking for memtag.
1249
1250 2004-11-30  Jakub Jelinek  <jakub@redhat.com>
1251
1252         * c-opts.c (check_deps_environment_vars): If spec != NULL, set
1253         deps_seen.
1254
1255 2004-11-30  Dorit Naishlos  <dorit@il.ibm.com>
1256
1257         * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
1258         tree_low_cst instead of TREE_INT_CST_LOW.
1259
1260 2004-11-30  Dorit Naishlos  <dorit@il.ibm.com>
1261
1262         PR target/18173
1263         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
1264         decls that are assembled before vectorization takes place.
1265         (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
1266
1267 2004-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1268
1269         * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
1270         if local_alloc modified jumps.
1271
1272 2004-11-30  Alan Modra  <amodra@bigpond.net.au>
1273
1274         * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
1275         on TLS symbols.
1276         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
1277         check.
1278
1279 2004-11-30  Zack Weinberg  <zack@codesourcery.com>
1280
1281         * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
1282         * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
1283
1284         * mklibgcc.in: Drastic restructure for comprehensibility.
1285         Remove the old hidden-directive hack.
1286         Eliminate support for .txt files in LIB2ADD etc (never used).
1287         Eliminate support for assembly source files in LIB2ADDEH* and
1288         LIBUNWIND (also never used).
1289         Build up dependency lists for libraries incrementally.
1290         If we have SHLIB_LINK, compile each file twice, once for the
1291         static and once for the shared library; also probe for
1292         -fvisibility=hidden in the generated libgcc.mk.  If found,
1293         pass that and -DHIDE_EXPORTS to the compilation of every C
1294         source file going into the static library.  If found, generate
1295         hidden-directive lists for every assembly source file going
1296         into the static library, but incorporate them with -include
1297         instead of ld -r.
1298         Write comments into generated libgcc.mk to facilitate debugging.
1299         * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
1300         * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
1301
1302         * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
1303         -Zdynamiclib case.
1304
1305 2004-11-29  Richard Henderson  <rth@redhat.com>
1306
1307         * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
1308         (handled_component_p): Likewise.
1309         * alias.c (can_address_p): Reformat and simplify.  Handle
1310         REAL/IMAGPART_EXPR.  Do not disable addressability based on
1311         alias set zero.
1312         * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
1313         check for REAL/IMAGPART_EXPR.
1314         * gimplify.c (gimplify_compound_lval): Likewise.
1315         * tree-cfg.c (verify_expr): Likewise.
1316         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
1317         * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
1318         (convert_local_reference): Likewise.
1319         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
1320
1321 2004-11-30  Alan Modra  <amodra@bigpond.net.au>
1322
1323         * expr.c (emit_group_load_1): Don't die on const_int orig_src.
1324
1325 2004-11-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1326
1327         PR pch/14940
1328         * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
1329         * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
1330         and host_xmake_file using new host configuration files.
1331
1332 2004-11-29  Roger Sayle  <roger@eyesopen.com>
1333
1334         * reg-stack.c (change_stack): Improve algorithm used to pop regs
1335         off the stack to maximize ffreep usage and reduce fxch count.
1336
1337 2004-11-30  James A. Morrison  <phython@gcc.gnu.org>
1338
1339         PR middle-end/18596
1340         * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
1341         on errors.
1342
1343 2004-11-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1344
1345         * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
1346         REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
1347
1348 2004-11-30  Ben Elliston  <bje@au.ibm.com>
1349
1350         * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
1351
1352 2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
1353
1354         PR c/18479
1355         * c-common.c (handle_visibility_attribute): When the type decl
1356         is really a identifier node, warn about being ignored and return.
1357
1358 2004-11-29  Richard Henderson  <rth@redhat.com>
1359
1360         * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
1361
1362 2004-11-29  Steven Bosscher  <stevenb@suse.de>
1363
1364         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
1365         Remove CASE_DROPS_THROUGH checks, it is never defined.
1366         * cfglyout.c (fixup_reorder_chain): Likewise.
1367         * cfgrtl.c (rtl_verify_flow_info): Likewise.
1368         * stmt.c (expand_case): Likewise.
1369         * cfgbuild.c (make_edges): Likewise.  Also remove force_fallthru,
1370         it is now always 0.
1371         * system.h (CASE_DROPS_THROUGH): Poison.
1372         * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1373         * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1374
1375         * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
1376
1377 2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
1378
1379         PR middle-end/18725
1380         * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
1381         shared always.
1382
1383 2004-11-29  Diego Novillo  <dnovillo@redhat.com>
1384
1385         PR tree-optimization/18712
1386         * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
1387         WORK_STACK by reference.
1388         Call VEC_safe_push instead of VEC_quick_push.
1389         Update all users.
1390
1391 2004-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
1392
1393         PR c/7544
1394         * Makefile.in (c-lang.o): Update dependencies.
1395         * c-lang.c: Include "c-pragma.h".
1396         (finish_file): Call maybe_apply_pending_pragma_weaks.
1397         * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
1398         * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
1399
1400 2004-11-29  Richard Henderson  <rth@redhat.com>
1401
1402         PR target/17224
1403         * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
1404         outside the referenced object.
1405
1406 2004-11-29  Kazu Hirata  <kazu@cs.umass.edu>
1407
1408         * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
1409         EDGE_PRED instead of PHI_ARG_EDGE.
1410         * tree-ssa-live.c: Likewise.
1411         * tree-ssa-loop-manip.c: Likewise.
1412         * tree-ssa.c: Likewise.
1413
1414         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
1415         simplifying edge manipulation.
1416
1417         * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
1418         EDGE_COUNT.
1419
1420         * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
1421         only when needed.
1422
1423         * cfg.c (flow_obstack): Remove.
1424         (flow_firstobj): Likewise.
1425         (init_flow): Remove all uses of flow_obstack.
1426
1427 2004-11-29  Alan Modra  <amodra@bigpond.net.au>
1428
1429         * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
1430         to named_section.
1431
1432 2004-11-29  Nathan Sidwell  <nathan@codesourcery.com>
1433
1434         * opts.c (decode_options): Do not set max-inline-insns-rtl.
1435         (common_handle_option): Likewise.
1436         * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
1437         * params.h (MAX_INLINE_INSNS_RTL): Remove.
1438         * doc/invoke.texi (max-inline-insns-rtl): Remove.
1439
1440 2004-11-29  Alan Modra  <amodra@bigpond.net.au>
1441
1442         PR target/9571
1443         * varasm.c (default_elf_select_section_1): Pass decl to named_section.
1444
1445 2004-11-28  Andrew Pinski  <pinskia@physics.uc.edu>
1446
1447         PR middle-end/18164
1448         * gimplify.c (gimplify_asm_expr): If the length of an output operand
1449         is zero, do not process it, just let it go through.
1450
1451 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1452             Diego Novillo  <dnovillo@redhat.com>
1453
1454         PR/18662, also backported from tree-cleanup-branch.
1455         * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
1456         always call maybe_clean_eh_stmt and modify_stmt.
1457
1458 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1459
1460         PR/18664
1461         * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
1462         Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
1463         * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
1464         add an inverse VIEW_CONVERT_EXPR to const_val.
1465
1466         PR/18657
1467         * tree-nested.c (check_for_nested_with_variably_modified): New.
1468         (create_nesting_tree): Call it.
1469
1470         * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
1471         special code for assigning to non-pointer.
1472         (is_escape_site): If RHS is a conversion between pointer and integer
1473         types,  this is an escape site.
1474
1475         * gcse.c (insert_store): Error if try to insert store on abnormal edge.
1476         (store_motion): Don't move store if any edge we'd want to move it
1477         to is abnormal.
1478
1479         * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
1480         non-zero lower bound.
1481
1482         * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
1483
1484 2004-11-28  Matt Kraai  <kraai@alumni.cmu.edu>
1485
1486         PR diagnostic/17594
1487         * opts.c (find_opt): Require that the input match a switch exactly
1488         or that the switch take a joined option to be interpreted as a
1489         match for another language.
1490
1491 2004-11-28  Andrew Pinski  <pinskia@physics.uc.edu>
1492
1493         * timevar.def (TV_TREE_REDPHI): New timevar.
1494         * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
1495
1496 2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>
1497
1498         PR preprocessor/17651
1499         * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
1500         flag_no_line_commands.
1501         * c-ppoutput.c (pp_file_change): Remove now-redundant check of
1502         flag_no_output.
1503
1504 2004-11-28  Theodore A. Roth  <troth@openavr.org>
1505
1506         * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
1507         warning if the function name does not begin with "__vector" and the
1508         function has either the 'signal' or 'interrupt' attribute.
1509
1510 2004-11-28  Theodore A. Roth  <troth@openavr.org>
1511
1512         * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
1513         atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
1514         atmega325, atmega3250, atmega645 and atmega6450.
1515         * config/avr/avr.h (LINK_SPEC): Ditto.
1516         (LIB_SPEC): Ditto.
1517         (LIBGCC_SPEC): Ditto.
1518         (CRT_BINUTILS_SPECS): Ditto.
1519         * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
1520
1521 2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>
1522
1523         PR preprocessor/17610
1524         * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
1525
1526 2004-11-28  Jeff Law  <law@redhat.com>
1527
1528         * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
1529         (pass_maybe_create_global_var): New.
1530         * tree-pass.h (pass_maybe_create_global_var): Declare.
1531         * tree-optimize.c (init_tree_optimization_passes): Link in
1532         pass_maybe_create_global_var.
1533
1534 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1535
1536         * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
1537
1538 2004-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
1539
1540         PR rtl-optimization/18420
1541         * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
1542
1543 2004-11-28  Steven Bosscher  <stevenb@suse.de>
1544             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1545
1546         * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
1547         * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
1548         that the case is in range, to make sure the casesi insn is always
1549         in range and never falls through.
1550         (casesi1): Add comment to explain why casesi never falls through.
1551         Remove the unnamed special case casesi pattern.
1552
1553 2004-11-28  Hans-Peter Nilsson  <hp@bitrange.com>
1554
1555         PR target/18331
1556         * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
1557         "*movdicc_real".  Only match reversible comparisons.
1558         ("*movdicc_real_nonreversible"): New pattern, split from
1559         "*movdicc_real".  Match only nonreversible comparisons.  Exclude
1560         reversed alternatives.
1561         ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
1562         Similar.
1563
1564 2004-11-27  Richard Henderson  <rth@redhat.com>
1565
1566         * config/ia64/ia64.md: Move all define_predicate's ...
1567         * config/ia64/predicates.md: ... here.  New file.
1568
1569 2004-11-27  Per Bothner  <per@bothner.com>
1570
1571         PR bootstrap/18142
1572         Re-applied following, with two modifications: add a URL for the
1573         fixed cctools; only exit if $build = $target.
1574
1575         2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
1576         * configure.ac (powerpc-*-darwin*): Require assembler to support
1577         .machine directive.
1578         * configure: Regenerate.
1579
1580 2004-11-28  David Edelsohn  <edelsohn@gnu.org>
1581
1582         PR target/16800
1583         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
1584         EQ, GTU, and LTU costs.  Add costs for GT, LT, and UNORDERED.
1585         Distinguish between SImode and DImode CONST_INT.
1586
1587 2004-11-28  Andreas Fischer <a_fisch@gmx.de>
1588             Alan Modra  <amodra@bigpond.net.au>
1589
1590         PR target/16343
1591         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
1592         functions, strings and thread-local vars.
1593
1594 2004-11-28  Alan Modra  <amodra@bigpond.net.au>
1595
1596         * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
1597         * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
1598         * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
1599         to allow non-darwin ABIs to optimize away code.
1600         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
1601
1602 2004-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1603
1604         * tree.c (operand_equal_for_phi_arg_p): New.
1605         * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
1606         * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
1607         Replace operand_equal_p with operand_for_phi_arg_p
1608         appropriately.
1609
1610         * bb-reorder.c (find_traces_1_round): Speed up by using
1611         EDGE_COUNT instead of FOR_EACH_EDGE.
1612
1613         * fold-const.c, config/i386/linux64.h: Fix comment typos.
1614
1615 2004-11-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1616
1617         PR pch/14940
1618         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
1619
1620 2004-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1621
1622         * config/i386/linux.h: Fix a comment typo.
1623         * doc/extend.texi: Fix a typo.
1624
1625 2004-11-27  Jeff Law  <law@redhat.com>
1626
1627         * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
1628         are merged.
1629
1630 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
1631
1632         * config/i386/linux64.h (REG_NAME): Define.
1633
1634 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
1635
1636         * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
1637         unsigned and type signed, build ABS_EXPR with signed_type (ctype)
1638         and only afterwards convert to ctype.
1639
1640 2004-11-27  Richard Sandiford  <rsandifo@redhat.com>
1641
1642         * config/mips/mips-protos.h (function_arg_boundary): Declare.
1643         * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
1644         (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
1645         (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
1646         * config/mips/mips.c (function_arg_boundary): New function.
1647         Impose a maximum alignment of STACK_BOUNDARY.
1648
1649 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
1650
1651         PR rtl-optimization/17825
1652         * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
1653         or not.
1654
1655 2004-11-27  Alan Modra  <amodra@bigpond.net.au>
1656
1657         PR target/12769
1658         * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
1659         from rs6000_default_long_calls for libcalls.
1660
1661 2004-11-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1662
1663         * expmed.c (extract_bit_field): When extracting from non-integer mode,
1664         force a SUBREG into a register because we may be taking a further
1665         SUBREG of it.
1666
1667 2004-11-27  Di-an Jan  <dianj@freeshell.org>
1668
1669         * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
1670
1671 2004-11-26  Robert Millan  <robertmh@gnu.org>
1672
1673         Changes for k*bsd-gnu support.
1674         * config/i386/linux.h: Define REG_NAME to allow overriding of
1675         register names in sc structure.
1676         * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
1677         of sc->reg.
1678         * config.gcc: Detect x86_64-k*bsd-gnu systems.
1679
1680 2004-11-26  Jeff Law  <law@redhat.com>
1681
1682         * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
1683         retrieve annotations or pointer info before it's necessary.
1684         Reorder tests for early continue of the loop.  Manually CSE
1685         SSA_NAME_VAR.
1686
1687 2004-11-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
1688
1689         * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
1690         * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
1691         (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1692         * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
1693         to a fixed reg if the source is the Return Address register.
1694         Implement new Rule 15.
1695         * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1696         * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
1697         sparc_dwarf_handle_frame_unspec.
1698         (gen_save_register_window): New function.
1699         (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
1700         (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
1701         (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
1702         Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
1703         (sparc_asm_function_prologue): Do not emit call frame debugging info.
1704         (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
1705         (sparc_expand_epilogue): Likewise.
1706         (sparc_dwarf_handle_frame_unspec): New function.
1707         * config/sparc/sparc.md (save_register_window): Remove.
1708         (save_register_windowdi): Rewrite modelled on the callframe debug info.
1709         (save_register_windowsi): Likewise.
1710
1711 2004-11-26  Alexandre Oliva  <aoliva@redhat.com>
1712
1713         * config/frv/frv-protos.h: Guard ifcvt functions declarations with
1714         BB_HEAD, not BLOCK_HEAD.
1715
1716 2004-11-26  Alexandre Oliva  <aoliva@redhat.com>
1717
1718         * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
1719         scratch insns that set a register live at the join point.
1720
1721 2004-11-26  Kazu Hirata  <kazu@cs.umass.edu>
1722
1723         * cse.c, tree-ssa-operands.c: Fix comment typos.
1724
1725         * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
1726
1727 2004-11-26  James A. Morrison  <phython@gcc.gnu.org>
1728
1729         PR target/18510
1730         * doc/extend.texi (SPARC VIS Built-in Functions): New section.
1731
1732 2004-11-26  Kazu Hirata  <kazu@cs.umass.edu>
1733
1734         * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
1735         check that tests if all edges go to the same destination.
1736
1737         * bitmap.c (bitmap_find_bit): Speed up by traversing from
1738         head->first if that seems profitable.
1739
1740 2004-11-25  Jeff Law  <law@redhat.com>
1741
1742         * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
1743         * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
1744         (pass_loop_done): Use TV_TREE_LOOP_FINI.
1745
1746 2004-11-26  Alan Modra  <amodra@bigpond.net.au>
1747
1748         PR rtl-optimization/16356
1749         * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
1750         separate output register and one less jump.  Enable for powerpc64.
1751         (floatdisf2): Adjust for above.
1752
1753 2004-11-25  Bob Wilson  <bob.wilson@acm.org>
1754
1755         * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
1756         (GCC_DRIVER_HOST_INITIALIZATION): Define.
1757
1758 2004-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
1759
1760         PR middle-end/17957
1761         * tree-complex.c (vector_inner_type): New variable moved from
1762         build_word_mode_vector_type.
1763         (vector_last_type): Likewise.
1764         (vector_last_nunits): Likewise.
1765         (build_word_mode_vector_type): Use the new variables.
1766         * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
1767         (GTFILES): Add tree-complex.c.
1768         (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
1769
1770 2004-11-25  Bob Wilson  <bob.wilson@acm.org>
1771
1772         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
1773         __XTENSA_WINDOWED_ABI__.
1774
1775 2004-11-25  Richard Henderson  <rth@redhat.com>
1776
1777         * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument.  Save
1778         args_size adjustments for calls even with cfa as stack pointer.
1779         Search calls for stack adjustments after the insn is issued.
1780         (dwarf2out_frame_debug): Add after_p argument; pass it on.
1781         * dwarf2out.h (dwarf2out_frame_debug): Update to match.
1782         * final.c (final_start_function, final_scan_insn): Likewise.
1783
1784 2004-11-25  Richard Henderson  <rth@redhat.com>
1785
1786         PR c++/6764
1787         * reload1.c (set_initial_eh_label_offset): New.
1788         (set_initial_label_offsets): Use it.
1789
1790 2004-11-25  Kaz Kojima  <kkojima@gcc.gnu.org>
1791
1792         * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
1793         before calling life_analysis and release them after.
1794
1795 2004-11-25  Kazu Hirata  <kazu@cs.umass.edu>
1796
1797         * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
1798         duplicate code.
1799
1800 2004-11-25  Andrew Pinski <pinskia@physics.uc.edu>
1801
1802         * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
1803         BITMAP_OBSTACK_ALLOC.
1804         (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
1805
1806 2004-11-25  Andrew Pinski <pinskia@physics.uc.edu>
1807
1808         parts of PR rtl-opt/18463, rtl-opt/17647
1809         * cse.c (canon_for_address): New function.
1810         (find_best_addr): Call canon_for_address before getting the
1811         address's cost when checking if we should take that address.
1812
1813 2004-11-25  Kazu Hirata  <kazu@cs.umass.edu>
1814
1815         * tree-phinodes.c (add_phi_arg): Take "tree" instead of
1816         "tree *" as the first argument.
1817         * tree-flow.h: Update the prototype of add_phi_arg.
1818         * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
1819         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1820         tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
1821         tree-vectorizer.c: Update all call sites of add_phi_arg.
1822
1823 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
1824
1825         * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1826         * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1827         (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
1828         (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
1829
1830 2004-11-25  Andrew MacLeod  <amacleod@redhat.com>
1831
1832         PR tree-optimization/18587
1833         * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
1834         call clobbered caches as invalid.
1835         * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New.  Flag
1836         indicating whether the call clobbered operand cache is valid.
1837         (ssa_ro_call_cache_valid): New.  Flag indicating whether the
1838         pure/const call operand cache is valid.
1839         (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New.  Cached
1840         list of operands for cached call virtual operands.
1841         (clobbered_aliased_loads, clobbered_aliased_stores,
1842         ro_call_aliased_load): New.  flags caching whether alias bits are
1843         to be set in call stmt's.
1844         (fini_ssa_operands): Remove call operand caches if present.
1845         (get_expr_operands, get_asm_expr_operands,
1846         get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
1847         (get_call_expr_operands): Add call clobbered variables first.
1848         (add_stmt_operand): Take stmt annotation rather than stmt as a param.
1849         (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
1850         if it is valid, otherise fill the cache.
1851         * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
1852         * tree-flow.h (struct var_ann_d): Add in_vuse_list and
1853         in_v_may_def_list bits.
1854         * tree-ssa-operands.c (cleanup_v_may_defs): New.  Clear the
1855         in_list bits for the v_may_def elements and empty the operand
1856         build array
1857         (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
1858         VUSES by checking the in_v_may_def_list bit.
1859         (append_v_may_def, append_vuse): Use the in_list bit rather than
1860         scanning the array for duplicates.
1861
1862 2004-11-25  Ulrich Weigand  <uweigand@de.ibm.com>
1863
1864         * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
1865         displacements are not short.
1866
1867 2004-11-25  Ulrich Weigand  <uweigand@de.ibm.com>
1868
1869         * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
1870         to load addresses.
1871
1872 2004-11-25  Mark Mitchell  <mark@codesourcery.com>
1873
1874         PR c++/18001
1875         * c-common.h (lvalue_use): Move here from c-ctypeck.c.
1876         (lvalue_or_else): Declare.
1877         * c-common.c (lvalue_or_else): Move here from c-typeck.c.
1878         * c-typeck.c (lvalue_use): Remove.
1879         (lvalue_or_else): Remove.
1880
1881         PR c++/18556
1882         * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
1883         unemitted variables with static storage duration.
1884
1885 2004-11-25  Gerald Pfeifer  <gerald@pfeifer.com>
1886
1887         * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
1888         message with \n.
1889
1890 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
1891
1892         * config/rs6000/altivec.md (VIshort): New mode macro.
1893         (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
1894         with ...
1895         (altivec_vaddu<VI_char>s): ... this.
1896         (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
1897         with ...
1898         (altivec_vadds<VI_char>s): ... this.
1899         (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
1900         with ...
1901         (altivec_vsubu<VI_char>s): ... this.
1902         (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
1903         with ...
1904         (altivec_vsubs<VI_char>s): ... this.
1905         (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
1906         with ...
1907         (altivec_vavgu<VI_char>): ... this.
1908         (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
1909         with ...
1910         (altivec_vavgs<VI_char>): ... this.
1911         (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
1912         (altivec_vmsumu<VI_char>m): ... this.
1913         (altivec_vmsummbm, altivec_vmsummhm): Replace
1914         with ...
1915         (altivec_vmsumm<VI_char>m): ... this.
1916         (altivec_vandc): Remove.
1917         (*andc<mode>3): Renamed to ...
1918         (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
1919         (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
1920         with ...
1921         (altivec_vrl<VI_char>): ... this.
1922         (altivec_vslb, altivec_vslh, altivec_vslw): Replace
1923         with ...
1924         (altivec_vsl<VI_char>): ... this.
1925         (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
1926         with ...
1927         (altivec_vsr<VI_char>): ... this.
1928         (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
1929         with ...
1930         (altivec_vsra<VI_char>): ... this.
1931         (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
1932         (altivec_vsum4s<VI_char>s): ... this.
1933         (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
1934         with ...
1935         (altivec_vperm_<mode>): ... this.
1936         (altivec_vsel_4sf): Rename to ...
1937         (altivec_vsel_v4sf): ... here.
1938         (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
1939         with ...
1940         (altivec_vsel_<mode>): ... this.
1941         (altivec_vsldoi_4si, altivec_vsldoi_8hi,
1942         altivec_vsldoi_16qi): Rename to ...
1943         (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
1944         altivec_vsldoi_v16qi): ... here.
1945         (altivec_vsldoi_4sf): Rename to ...
1946         (altivec_vsldoi_v4sf): ... here.
1947         (altivec_predicate_v4si, altivec_predicate_v8hi,
1948         altivec_predicate_v16qi): Replace with ...
1949         (altivec_predicate_<mode>): ... this.
1950         (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
1951         with ...
1952         (altivec_lve<VI_char>x): ... this.
1953         (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
1954         with ...
1955         (altivec_stve<VI_char>x): ... this.
1956         (absv16qi2, absv8hi2, absv4si2): Replace
1957         with ...
1958         (abs<mode>2): ... this.
1959         (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
1960         with ...
1961         (altivec_abss_<mode>): ... this.
1962         (vec_realign_load_v16qi, vec_realign_load_v8hi,
1963         vec_realign_load_v4si): Replace with ...
1964         (vec_realign_load_<mode>): ... this.
1965         * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
1966         insn names.
1967         (rs6000_expand_ternop_builtin): Likewise.
1968
1969 2004-11-25  Andrew Haley  <aph@redhat.com>
1970
1971         * gcc.c (process_command): Don't supply -v to linker.
1972
1973 2004-11-25  Joseph S. Myers  <joseph@codesourcery.com>
1974
1975         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
1976         instead of `%s' in diagnostic.
1977
1978 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
1979
1980         * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
1981         (FREE_REG_SET): Adjust.
1982         * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
1983         * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
1984         (BITMAP_ALLOC): ... here.
1985         (BITMAP_OBSTACK_FREE): Rename to ...
1986         (BITMAP_FREE): Don't check for NULL bitmap here.
1987         * tree-ssa-pre.c (value_insert_into_set_bitmap,
1988         bitmap_set_new): Use new names.
1989
1990         * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
1991         * df.c (df_free): Likewise.
1992         * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
1993         * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
1994
1995         * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
1996         (ALLOC_REG_SET): ... here.
1997         (FREE_REG_SET): Adjust.
1998         (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
1999         * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
2000         * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
2001         * cfgrtl.c (rtl_split_block, rtl_split_edge,
2002         safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
2003         * flow.c (update_life_info, calculate_global_regs_live,
2004         allocate_bb_life_data, init_propagate_block_info): Adjust.
2005         * global.c (build_insn_chain): Adjust.
2006         * ifcvt.c (dead_or_predicable): Adjust.
2007         * loop-iv.c (simplify_using_initial_values): Adjust.
2008         * recog.c (peephole2_optimize): Adjust.
2009         * sched-deps.c (init_deps_global): Adjust.
2010
2011 2004-11-25  Ralf Corsepius <ralf.corsepius@rtems.org>
2012
2013         * config.gcc (avr-*-rtems*): Fix typo.
2014
2015 2004-11-25  J"orn Rennecke <joern.rennecke@st.com>
2016
2017         * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
2018
2019 2004-11-24  Jeff Law  <law@redhat.com>
2020
2021         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
2022         the number of queries to random elements in the ai->written_vars
2023         bitmap.
2024
2025 2004-11-24  Roger Sayle  <roger@eyesopen.com>
2026
2027         * config/i386/i386.c (override_options): Disable x87 fancy math
2028         intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
2029
2030 2004-11-24  Roger Sayle  <roger@eyesopen.com>
2031
2032         * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
2033         system header conflict on AIX 5.2.
2034         * configure: Regenerate.
2035
2036 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
2037
2038         * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
2039         instead of calling phi_arg_from_edge.
2040
2041         * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
2042         with e->dest_idx.
2043
2044 2004-11-24  Ben Elliston  <bje@au.ibm.com>
2045
2046         * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
2047         * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
2048         * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
2049         Likewise.
2050
2051 2004-11-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2052
2053         * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
2054
2055         * tree-inline.c (copy_body_r): Explicitly copy a constant if the
2056         type will be remapped.
2057
2058 2004-11-24  Steven Bosscher  <stevenb@suse.de>
2059
2060         * c-opts.c (c_common_post_options): Don't clear
2061         flag_inline_functions.
2062         * dojump.c (clear_pending_stack_adjust): Remove check on
2063         flag_inline_functions, it's always true.
2064         * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
2065         that can never trigger.
2066         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
2067         flag_inline_trees, now that flag_inline_functions is never
2068         cleared.
2069         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
2070         flag_inline_functions at optimization levels greater than
2071         or equal to 3.  This is already done by default.
2072
2073 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
2074
2075         * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
2076         instead to find the PHI argument.  Do not take I as an
2077         argument.
2078         (eliminate_phi): Adjust the call to eliminate_build.  Do not
2079         take I as an argument.
2080         (rewrite_trees): Adjust the call to eliminate_phi.
2081
2082 2004-11-24  Richard Sandiford  <rsandifo@redhat.com>
2083
2084         * optabs.h (force_expand_binop): Declare.
2085         * optabs.c (force_expand_binop): Export.
2086         * stmt.c (shift_return_value): Delete.
2087         (expand_return): Don't call it.
2088         * expr.h (shift_return_value): Declare.
2089         * calls.c (shift_returned_value): Delete in favor of...
2090         (shift_return_value): ...this new function.  Leave the caller to check
2091         for non-BLKmode values passed in the msb of a register.  Take said mode
2092         and a shift direction as argument.  Operate on the hard function value,
2093         not a pseudo.
2094         (expand_call): Adjust accordingly.
2095         * function.c (expand_function_start): If a non-BLKmode return value
2096         is padded at the last significant end of the return register, use the
2097         return value's natural mode for the DECL_RESULT, not the mode of the
2098         padded register.
2099         (expand_function_end): Shift the same sort of return values left by
2100         the appropriate amount.
2101
2102 2004-11-24  Matt Austern  <austern@apple.com>
2103
2104         * recog.c (recog_memoized_1): Remove.
2105         * recog.h (recog_memoized_1): Remove declaration.
2106         (recog_memoized): Change from macro to inline function.
2107
2108 2004-11-24  Devang Patel  <dpatel@apple.com>
2109
2110         PR/18555
2111         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
2112         * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
2113
2114 2004-11-24  Devang Patel  <dpatel@apple.com>
2115
2116         * gcc.c (process_command): Supply -v to linker.
2117
2118 2004-11-24  David Edelsohn  <edelsohn@gnu.org>
2119             Paolo Bonzini  <bonzini@gnu.org>
2120
2121         * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
2122         vector modes without ALTIVEC_ABI.  Use GCC vector instead of
2123         synthetic vector.
2124         (rs6000_pass_by_reference): Split conditional into pieces.  Use
2125         GCC vector instead of synthetic vector.
2126
2127 2004-11-24  Aldy Hernandez  <aldyh@redhat.com>
2128
2129         * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
2130         thread-local variable is invariant.
2131
2132 2004-11-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2133
2134         * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
2135         Handle TYPE_REF_CAN_ALIAS_ALL.
2136         (print_declaration): Print array dimensions like dump_generic_node.
2137
2138         * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
2139         ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
2140
2141 2004-11-24  Nathan Sidwell  <nathan@codesourcery.com>
2142
2143         * bitmap.c (INLINE): Do not define.
2144         (bitmap_elem_to_freelist, bitmap_element_free,
2145         bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
2146         bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
2147
2148 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
2149
2150         * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
2151         find the index of a PHI argument.  Use e->dest_idx instead.
2152         Replace hint with index.
2153
2154         * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
2155         with indx.
2156
2157 2004-11-24  Diego Novillo  <dnovillo@redhat.com>
2158
2159         * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
2160         regarding PT_MALLOC.
2161
2162 2004-11-24  Joseph Myers  <joseph@codesourcery.com>
2163
2164         * config/i386/i386.c (optimization_options): Use
2165         SUBTARGET_OPTIMIZATION_OPTIONS.
2166         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
2167         (TARGET_SUBTARGET_DEFAULT): Don't include
2168         MASK_OMIT_LEAF_FRAME_POINTER.
2169
2170 2004-11-24  Mark Mitchell  <mark@codesourcery.com>
2171
2172         * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
2173         Define to false.
2174
2175 2004-11-24  Joseph Myers  <joseph@codesourcery.com>
2176
2177         * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
2178         Use amd64 instead of 64.
2179
2180 2004-11-24  Mark Mitchell  <mark@codesourcery.com>
2181             Joseph Myers  <joseph@codesourcery.com>
2182
2183         * crtstuff.c (IN_LIBGCC2): Define it.
2184         (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
2185         instead of HAVE_LD_RO_RW_SECTION_MIXING.
2186         * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
2187         * dwarf2out.c (named_section_eh_frame_section): Check
2188         EH_TABLES_CAN_BE_READ_ONLY.
2189         * except.c (default_exception_section): Likewise.
2190         * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
2191         * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
2192
2193 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
2194
2195         * tree-ssa-pre.c (phi_translate): Use find_edge to find the
2196         index of a PHI argument.
2197
2198         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
2199         find_edge to find the index of a PHI argument.
2200
2201 2004-11-24  Steven Bosscher  <stevenb@suse.de>
2202
2203         * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
2204         and LABELED_BLOCK_EXPR.
2205         * gimplify.c (gimplify_labeled_block_expr): Remove.
2206         (gimplify_exit_block_expr): Remove.
2207         (gimplify_expr): Don't call them.
2208         * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
2209         and LABELED_BLOCK_EXPR.
2210         (estimate_num_insns_1): Likewise.
2211         (walk_tree): Likewise.
2212         * tree-pretty-print.c (dump_generic_node): Don't handle
2213         EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
2214         * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
2215         (LABELED_BLOCK_EXPR): Likewise.
2216         * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
2217         (LABELED_BLOCK_BODY): Likewise.
2218         (EXIT_BLOCK_LABELED_BLOCK): Likewise.
2219         (EXIT_BLOCK_RETURN): Removed.
2220
2221 2004-11-24  Steven Bosscher  <stevenb@suse.de>
2222
2223         * cfgrtl.c (rtl_delete_block): Fix comment.
2224         * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
2225         or BLOCK_END insn notes.
2226         * jump.c (squeeze_notes): Likewise.
2227         * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
2228         EH_REGION_END notes, we never have them to begin with.
2229         * sched-deps.c (sched_analyze_insn): When updating loop notes,
2230         verify that we have indeed only recorded loop notes.
2231         (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
2232         Only record loop notes.
2233
2234         * cfgexpand.c (tree_expand_cfg): Fix comment.
2235
2236         * passes.c (rest_of_compilation): Don't do a second call to
2237         convert_from_eh_region_ranges from here, it's already called
2238         from cfgexpand.c.
2239         * except.c (resolve_fixup_regions): Remove.
2240         (remove_fixup_regions): Remove.
2241         (convert_from_eh_region_ranges_1): Remove.
2242         (convert_from_eh_region_ranges): Remove the case where EH is
2243         not already lowered at the tree level.  We always lower there.
2244
2245 2004-11-24  Paolo Bonzini  <bonzini@gnu.org>
2246
2247         PR c++/16882
2248         * tree.c (make_vector_type): Move qualifiers to the vector type,
2249         use the inner type's main variant and build a main variant for
2250         the vector type if necessary.
2251         (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
2252
2253 2004-11-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2254
2255         * target.h (late_rtl_prologue_epilogue): Remove.
2256         * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2257         * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
2258         * passes.c (rest_of_handle_prologue_epilogue): Remove and move
2259         remaining bits to...
2260         (rest_of_handle_flow2): ...here.
2261         (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
2262         * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2263
2264 2004-11-23  Mark Mitchell  <mark@codesourcery.com>
2265
2266         * hwint.h (HOST_LONG_LONG_FORMAT): New macro.  Use it throughout.
2267         * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
2268         * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
2269
2270 2004-11-24  Daniel Jacobowitz  <dan@codesourcery.com>
2271
2272         * config/i386/i386.c (override_options): Move
2273         SUBTARGET_OVERRIDE_OPTIONS before defaulting
2274         flag_omit_frame_pointer.
2275
2276 2004-11-23  Richard Henderson  <rth@redhat.com>
2277
2278         * rtl.h (validate_subreg): Declare.
2279         * emit-rtl.c (validate_subreg): New.
2280         (gen_rtx_SUBREG): Use it.
2281         * simplify-rtx.c (simplify_subreg): Likewise.
2282         (simplify_gen_subreg): Likewise.  Remove duplicate asserts.
2283         * expr.c (emit_move_insn_1): Tidy complex move code.  Use memory
2284         fallback whenever gen_realpart/gen_imagpart would not be able to
2285         create SUBREGs.
2286
2287 2004-11-23  Richard Henderson  <rth@redhat.com>
2288
2289         * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
2290         hard-coding avoiding calls to gen_rtx_SUBREG.  Split complex return
2291         modes to CONCAT.
2292
2293 2004-11-23  Diego Novillo  <dnovillo@redhat.com>
2294
2295         PR tree-optimization/18618
2296         * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
2297         (insert_phi_nodes_for): Change third argument to VEC(basic_block).
2298         * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
2299         Update all users.
2300         (stmts_to_rescan): Likewise.
2301         (const_and_copies_stack): Likewise.
2302         (nonzero_vars_stack): Likewise.
2303         (vrp_variables_stack): Likewise.
2304
2305 2004-11-23  Richard Henderson  <rth@redhat.com>
2306
2307         * cse.c (record_jump_cond_subreg): New.
2308         (record_jump_cond): Use it instead of gen_lowpart.
2309
2310 2004-11-23  Daniel Jacobowitz  <dan@codesourcery.com>
2311             Joseph Myers  <joseph@codesourcery.com>
2312
2313         * config/sol2-c.c (solaris_register_pragmas): Use
2314         c_register_pragma_with_expansion.
2315         * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
2316         * c-pragma.c (c_register_pragma): Update call to
2317         cpp_register_pragma.
2318         (c_register_pragma_with_expansion): New function.
2319         (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
2320         * c-pragma.h (c_register_pragma_with_expansion): New prototype.
2321         * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
2322         #pragma align.
2323         * doc/tm.texi (c_register_pragma_with_expansion,
2324         HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
2325
2326 2004-11-23  Richard Henderson  <rth@redhat.com>
2327
2328         * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
2329         as mode sizes into local temporaries.  Unify failure path.
2330
2331 2004-11-23  Richard Henderson  <rth@redhat.com>
2332
2333         * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
2334         * caller-save.c (mark_set_regs): Use subreg_regno instead.
2335         * final.c (alter_subreg): Likewise.
2336         * local-alloc.c (reg_is_born): Likewise.
2337
2338 2004-11-23  Richard Henderson  <rth@redhat.com>
2339
2340         * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
2341         instead of using a SUBREG temporary.
2342
2343 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
2344
2345         * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
2346         two checks.
2347
2348 2004-11-23  Zack Weinberg  <zack@codesourcery.com>
2349
2350         * function.h (struct function): Remove calls_longjmp.
2351         (current_function_calls_longjmp): Delete.
2352         * tree.h (ECF_LONGJMP): Delete.
2353         (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
2354         (ECF_LIBCALL_BLOCK): Everybody slide down one.
2355         (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
2356         * builtins.c (expand_builtin_longjmp): Don't set
2357         current_function_calls_longjmp.
2358         * calls.c (special_function_p): Mark longjmp and siglongjmp
2359         with ECF_NORETURN, not ECF_LONGJMP.
2360         (emit_call_1, expand_call, emit_library_call_value_1):
2361         Don't check for ECF_LONGJMP.
2362         * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
2363         (need_fake_edge_p): Likewise.
2364
2365         * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
2366         * system.h: Poison NON_SAVING_SETJMP.
2367         * function.c (use_register_for_decl)
2368         * gcse.c (compute_hash_table_work, compute_store_table)
2369         * postreload-gcse.c (record_opr_changes)
2370         * reload.c (find_equiv_reg)
2371         * reload1.c (reload)
2372         * config/i386/i386.c (ix86_can_use_return_insn_p):
2373         Remove code conditional on NON_SAVING_SETJMP.
2374         * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
2375
2376         * config/i386/sysv3.h: Delete file.
2377         * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
2378
2379 2004-11-23  Dorit Naishlos  <dorit@il.ibm.com>
2380
2381         * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
2382         the vectorization factor is greater than the iteration count.
2383         (vect_gen_niters_for_prolog_loop): No need to calculate min if the
2384         iteration count is known.
2385
2386         (vect_build_symbol_bound): Removed. Its functionality moved to
2387         vect_generate_tmps_on_preheader.
2388         (vect_generate_tmps_on_preheader): Moved content of
2389         vect_build_symbol_bound here instead of calling it.  Changed some
2390         variables names.
2391
2392         (vect_build_loop_niters): We don't expect a new_bb to be generated -
2393         use gcc_assert.
2394         (vect_gen_niters_for_prolog_loop): Likewise.
2395         (vect_gen_niters_for_prolog_loo): Likewise.
2396
2397         (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
2398         (slpeel_add_loop_guard): Likewise.
2399         (slpeel_tree_peel_loop_to_edge): Likewise.
2400         (vect_do_peeling_for_alignment): Likewise.
2401
2402         (vect_get_first_index): Missing space.
2403
2404 2004-11-23  Ulrich Weigand  <uweigand@de.ibm.com>
2405
2406         * config/s390/s390.md ("*iordi3"): Mark commutative.
2407         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
2408
2409 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
2410
2411         * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
2412         greater than PHI_ARG_CAPACITY.
2413         (reserve_phi_args_for_new_edge): Initialize the new PHI
2414         argument to NULL_TREE.  Increment PHI_NUM_ARGS.
2415         (add_phi_arg): Add a PHI argument to the slot given by
2416         E->dest_idx.
2417         (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
2418         * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
2419         * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
2420         argument by looking at PHI_ARG_DEF.
2421         (verify_phi_args): Check for a missing PHI argument.  Remove
2422         the check for duplicate PHI arguments.
2423         * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
2424         (phi_arg_d): Remove e.
2425
2426         * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
2427         by restricting to the case with two outgoing edges.
2428
2429 2004-11-23  Andreas Krebbel  <krebbel1@de.ibm.com>
2430
2431         * config/s390/s390.c (s390_backchain_string): Removed.
2432         (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
2433         (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
2434         Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
2435         TARGET_KERNEL_BACKCHAIN to reflect the new options.
2436         * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
2437         (TARGET_KERNEL_BACKCHAIN): Removed.
2438         (TARGET_BACKCHAIN): Former triple state option change to a target flag.
2439         (TARGET_PACKED_STACK): New macro.
2440         (TARGET_SWITCHES): New switches added.
2441         (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
2442         removed.
2443         (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
2444         * config/s390/s390.md ("allocate_stack", "restore_stack_block")
2445         ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
2446         the change in target switch semantics.
2447         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
2448         (TARGET_DEFAULT): MASK_BACKCHAIN added.
2449         * doc/invoke.texi: Added documentation for the new/changed options.
2450
2451 2004-11-23  Uros Bizjak  <uros@kss-loka.si>
2452
2453         PR rtl-optimization/18614
2454         * simplify-rtx.c (simplify_binary_operation): Do not
2455         simplify inner elements of constant arguments of
2456         VEC_CONCAT insn.
2457
2458 2004-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2459
2460         * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
2461         0 instead of NULL.
2462
2463 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
2464
2465         * tree-phinode.c (make_phi_node): Use a new variable,
2466         capacity, to receive the return value of ideal_phi_node_len.
2467
2468 2004-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2469
2470         * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
2471         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
2472         __gthread_recursive_mutex_init_function.
2473         (__gthread_key_create): Properly cast -1.
2474         (__gthread_recursive_mutex_init_function): New function.
2475         (__gthread_recursive_mutex_lock): Rewrite.
2476         (__gthread_recursive_mutex_trylock): Likewise.
2477         (__gthread_recursive_mutex_unlock): Likewise.
2478
2479 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2480
2481         * config/c4x/t-rtems: New.
2482         * config.gcc: Reflect having added c4x/t-rtems.
2483
2484 2004-11-23  Dorit Naishlos <dorit@il.ibm.com>
2485
2486         PR tree-opt/18403
2487         PR tree-opt/18505
2488         * tree-vectorizer.c (vect_create_data_ref_ptr): Use
2489         lang_hooks.types.type_for_size instead of integer_type_node for the
2490         type of ptr_update.
2491
2492 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2493
2494         * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
2495
2496 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2497
2498         * config/arm/t-rtems: New.
2499         * config.gcc: Reflect having added arm/t-rtems.
2500
2501 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
2502
2503         * tree-cfg.c (tree_execute_on_growing_pred): New.
2504         (tree_cfg_hooks): Add tree_execute_on_growing_pred.
2505         * tree-flow.h: Add a prototype for
2506         reserve_phi_args_for_new_edge.
2507         * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
2508         (add_phi_arg): Don't resize a PHI array.
2509
2510 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2511
2512         * config.gcc: Add avr-*-rtems*.
2513         * config/avr/t-rtems: New.
2514         * config/avr/rtems.h: New.
2515
2516 2004-11-22  Daniel Berlin  <dberlin@dberlin.org>
2517
2518         * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
2519         always the same as op1.  Use bitmap_ior_into and bitmap_and_into.
2520         Add comment to function.
2521
2522 2004-11-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2523
2524         PR pch/14940
2525         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
2526
2527         PR rtl-optimization/14838
2528         * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
2529         note.
2530         (get_last_nonnote_insn): Don't assume last insn is a note.
2531
2532 2004-11-22  Roger Sayle  <roger@eyesopen.com>
2533
2534         * fold-const.c (nondestructive_fold_binary_to_constant): Rename
2535         to fold_binary_to_constant.
2536         (nondestructive_fold_unary_to_constant): Likewise, rename to
2537         fold_unary_to_constant.
2538         (fold_relational_hi_lo): Update call to fold_binary_to_constant.
2539         * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
2540         (nondestructive_fold_unary_to_constant): Likewise.
2541         * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
2542         and fold_binary_to_constant.
2543         * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2544         (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
2545         and EXEC_UNARY with calls to fold_*nary_to_constant.
2546         * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2547         (idx_find_step): Replace uses of EXEC_BINARY with calls to
2548         fold_binary_to_constant.
2549
2550 2004-11-22  Nick Clifton  <nickc@redhat.com>
2551
2552         * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2553         initialisation of 'e'.
2554
2555 2004-11-22  Roger Sayle  <roger@eyesopen.com>
2556
2557         * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
2558         * config/i386/i386.c (override_options):  Set MASK_NO_FANCY_MATH_387
2559         automatically for targets without TARGET_80387.
2560         * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
2561         sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
2562         *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
2563         fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
2564         *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
2565         *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
2566         *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
2567         atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
2568         atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
2569         acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
2570         log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
2571         fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
2572         logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
2573         expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
2574         exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
2575         rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
2576         floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
2577         frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
2578         frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
2579         Simplify conditionals using TARGET_USE_FANCY_MATH_387.
2580
2581 2004-11-22  Dale Johannesen  <dalej@apple.com>
2582
2583         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION):  Conditionalize
2584         properly and comment.
2585
2586 2004-11-22  James A. Morrison  <phython@gcc.gnu.org
2587
2588         * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
2589         (sparc_init_builtins): New function.
2590         (sparc_init_vis_builtins): Create builtin functions for VIS
2591         instructions.
2592         (sparc_expand_builtin): Expand builtin functions for VIS instructions.
2593         (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
2594         (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
2595         (def_builtin): New macro for creating builtin functions.
2596         (P): New mode macro for pointer types.
2597         (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
2598         UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
2599         UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
2600         (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
2601         fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
2602         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
2603         faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
2604
2605 2004-11-22  Devang Patel  <dpatel@apple.com>
2606
2607         * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
2608
2609 2004-11-22  Devang Patel  <dpatel@apple.com>
2610
2611         * tree-if-conv.c (if_convertable_phi_p): Rename to ...
2612         (if_convertible_phi_p): ... new name.
2613         (if_convertable_modify_expr_p): Rename to ...
2614         (if_convertible_modify_expr_p): ... new name.
2615         (if_convertable_stmt_p): Rename to ...
2616         (if_convertible_stmt_p): ... new name.
2617         (if_convertable_bb_p): Rename to ...
2618         (if_convertible_bb_p): ... new name.
2619         (if_convertable_loop_p): Rename to ...
2620         (if_convertible_loop_p): ... new name.
2621
2622 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2623
2624         PR target/18444
2625         * configure.ac (threading): Accept 'posix95'.
2626         * configure: Regenerate.
2627         * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
2628         include sol26.h and default to posix95 threads if have_pthread_h.
2629         (sparc-*-solaris2*): Likewise.
2630         * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
2631         * gthr-posix95.h: New file.
2632         * config/sol26.h: New file.
2633         * doc/install.texi (--enable-threads): Document 'posix95'.
2634
2635 2004-11-23  Ben Elliston  <bje@au.ibm.com>
2636
2637         * pointer-set.h (pointer_set_contains): Remove.
2638         * pointer-set.c (pointer_set_contains): Likewise.
2639
2640 2004-11-22  Dale Johannesen  <dalej@apple.com>
2641
2642         * calls.c (expand_call): Do not call preserve_temp_slots.
2643
2644 2004-11-22  Kazu Hirata  <kazu@cs.umass.edu>
2645
2646         * tree-flow.h: Remove the prototype for remove_phi_arg.
2647         Add a prototype for remove_phi_args.
2648         * tree-phinodes.c (remove_phi_arg): Remove.
2649         (remove_phi_args): New.
2650         * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
2651         of remove_phi_arg.
2652
2653         * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
2654         after making an edge.
2655         (remove_edge): Call execute_on_shrinking_pred before removing
2656         an edge.
2657         (redirect_edge_succ): Call execute_on_growing_pred and
2658         execute_on_shrinking_pred.
2659         * cfghooks.c (execute_on_growing_pred): New.
2660         (execute_on_shrinking_pred): Likewise.
2661         * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
2662         execute_on_shrinking_pred.
2663         Add prototypes for execute_on_growing_pred and
2664         execute_on_shrinking_pred.
2665         * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
2666         execute_on_growing_pred and execute_on_shrinking_pred.
2667         (cfg_layout_rtl_cfg_hook): Likewise.
2668         * tree-cfg.c (tree_cfg_hooks): Likewise.
2669
2670         * tree-cfg.c (tree_execute_on_shrinking_pred): New.
2671         (tree_cfg_hooks): Use it.
2672         * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
2673         (ssa_redirect_edge): Don't call remove_phi_arg_num.
2674
2675         * tree-phinodes.c (remove_phi_arg_num): Make it static.
2676         * tree-flow.h: Remove the corresponding prototype.
2677
2678         * tree-ssa.c (ssa_remove_edge): Remove.
2679         * tree-flow.h: Remove the corresponding prototype.
2680         * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
2681         * basic-block.h: Likewise.
2682         * tree-if-conv.c: Likewise.
2683         * tree-ssa-threadupdate.c: Likewise.
2684
2685 2004-11-23  Ben Elliston  <bje@au.ibm.com>
2686
2687         * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
2688         @table to list the BSI methods.  Use individual @findex directives
2689         instead of one with a comma-separated list of index entries.
2690
2691 2004-11-22  Zdenek Dvorak  <dvorakz@suse.cz>
2692
2693         PR tree-optimization/18529
2694         * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
2695         (simple_operand_p): Use STRIP_NOPS.  Consider SSA names simple.
2696         (fold): Call fold_to_nonsharp_ineq_using_bound.
2697         * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
2698         (number_of_iterations_cond): Fold the expressions before futher
2699         processing.
2700         (tree_simplify_using_condition): Handle case when cond or expr is
2701         an EQ_EXPR specially.
2702
2703 2004-11-22 Daniel Berlin  <dberlin@dberlin.org>
2704
2705         * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
2706         SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
2707
2708 2004-11-22  David Edelsohn  <edelsohn@gnu.org>
2709             Fariborz Jahanian  <fjahanian@apple.com>
2710
2711         * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
2712         TARGET_ALTIVEC_ABI.
2713         (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
2714         Align 16 byte and larger vectors like Altivec.
2715         (function_arg_advance): Pass any 16 byte vector like Altivec vector.
2716         (function_arg): Same.
2717         (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
2718
2719 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2720
2721         PR tree-opt/18572
2722         * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
2723         it.
2724
2725 2004-11-22  Richard Henderson  <rth@redhat.com>
2726
2727         * function.c (assign_parm_setup_block): Revert 11-13 change to
2728         forcably re-mode a (possibly BLKmode) hard register.
2729
2730 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2731
2732         * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
2733
2734 2004-11-22  David Edelsohn  <edelsohn@gnu.org>
2735
2736         * config/rs6000/power4.md: Remove delay between dispatch and issue
2737         associated with dispatch group slots 3 and 4.
2738         * config/rs6000/power5.md: Same.
2739
2740 2004-11-21  Jeff Law  <law@redhat.com>
2741
2742         * cfg.c (cached_make_edge): Use find_edge rather than an inlined
2743         variant.
2744         * cfgbuild.c (make_edges): Likewise.
2745         * cfghooks.c (can_duplicate_block_p): Likewise.
2746         * cfgloop.c (loop_latch_edge): Likewise.
2747         * cfgloopmanip.c (force_single_succ_latches): Likewise.
2748         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2749         * predict.c (predict_loops, propagate_freq): Likewise.
2750         * tracer.c (tail_duplicate): Likewise.
2751         * tree-cfg.c (disband_implicit_edges): Likewise.
2752         (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
2753
2754 2004-11-22  Nick Clifton  <nickc@redhat.com>
2755
2756         * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2757         initialisation of 'e'.
2758
2759 2004-11-22  Kazu Hirata  <kazu@cs.umass.edu>
2760
2761         PR rtl-optimization/18599
2762         * regrename.c (copyprop_hardreg_forward): Speed up by putting
2763         BB_VISITED flags on basic blocks as we process them.
2764
2765 2004-11-22  Nathan Sidwell  <nathan@codesourcery.com>
2766
2767         PR target/18531
2768         * config/rs6000/altivec.md (VI_char): New mode attribute.
2769         (addv16qi3, addv8hi3, addv4ai3): Replace with ...
2770         (add<mode>3): ... this.
2771         (subv16qi3, subv8hi3, subv4ai3): Replace with ...
2772         (sub<mode>3): ... this.
2773         (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
2774         (smax<mode>3): ... this.
2775         (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
2776         (smin<mode>3): ... this.
2777         (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
2778         (umax<mode>3): ... this.
2779         (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
2780         (umin<mode>3): ... this.
2781         (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2782         (and<mode>3): ... this.
2783         (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2784         (ior<mode>3): ... this.
2785         (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
2786         (xor<mode>3): ... this.
2787         (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2788         (and<mode>3): ... this.
2789         (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2790         (ior<mode>3): ... this.
2791         (altivec_vnor): Replace with ...
2792         (altivec_nor<mode>): ... this.
2793         (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
2794         (one_cmpl<mode>2): ... this.
2795         (altivec_vandc): New expander.
2796         (*andc<mode>3): New insn.
2797         * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
2798
2799 2004-11-22  Dorit Naishlos  <dorit@il.ibm.com>
2800
2801         PR tree-opt/18536
2802         * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
2803         creating iv instead of integer_type.
2804         (vect_build_loop_niters): Remove redundant code.
2805         (vect_transform_loop_bound): Removed (duplicates functionality of
2806         make_loop_iterate_ntimes.
2807         (vect_gen_niters_for_prolog_loop): Add documentation. Call
2808         lang_hooks.types.type_for_size to create a type of the required size.
2809         Use that type instead of integer_type. Remove redundant code.
2810         (vect_update_niters_after_peeling): Use type of niters instead of
2811         integer_type.
2812         (vect_transform_loop): Unify handling of known and unknown loop bound
2813         cases. Call make_loop_iterate_ntimes instead of
2814         vect_transform_loop_bound.
2815
2816 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2817
2818         PR target/18217
2819         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
2820         (LIB2ADDEH): Here.
2821
2822 2004-11-22  Dorit Naishlos  <dorit@il.ibm.com>
2823
2824         PR tree-opt/18544
2825         * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
2826
2827 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2828
2829         * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
2830         m32r*linux.
2831         * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
2832         m32r/libgcc-glibc.ver.
2833         * config/m32r/libgcc-glibc.ver: Add New file.
2834
2835 2004-11-22  Nathan Sidwell  <nathan@codesourcery.com>
2836
2837         * bitmap.h (struct bitmap_obstack): New obstack type.
2838         (struct bitmap_head_def): Replace using_obstack with obstack
2839         pointer.
2840         (bitmap_default_obstack): New.
2841         (bitmap_initialize): Make inline, does not do allocation.
2842         (bitmap_release_memory): Remove.
2843         (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
2844         (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2845         bitmap_obstack_free, bitmap_malloc_free): Declare.
2846         (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
2847         (BITMAP_FREE): Replace with ...
2848         (BITMAP_OBSTACK_FREE): ... this.
2849         (BITMAP_XFREE): Adjust.
2850         (BITMAP_INIT_ONCE): Remove.
2851         * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
2852         (bitmap_default_obstack): New.
2853         (bitmap_elem_to_freelist): Adjust.
2854         (bitmap_element_allocate): Adjust. Break initialization into ...
2855         (bitmap_obstack_initialize): ... here.
2856         (bitmap_release_memory): Replace with ...
2857         (bitmap_obstack_release): ... this.
2858         (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2859         bitmap_obstack_free, bitmap_malloc_free): New.
2860         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
2861         bitmap_initialize.
2862         (bitmap_initialize): Move to bitmap.h.
2863         * gengtype.c (open_base_files): Add obstack.h to ifiles.
2864         * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
2865         * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
2866         (INITIALIZE_REG_SET): Remove.
2867         (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
2868         (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
2869         (flow_obstack): Do not declare.
2870         (reg_obstack): Declare.
2871         * regs.h: Include obstack.h.
2872         * tree-optimize.c (tree_rest_of_compilation): Initialize and
2873         release bitmap obstack here.
2874         * bb-reorder.c: #include regs, not basic-block.
2875         (fix_crossing_conditional_branches): Allocate regsets from
2876         reg_obstack.
2877         * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
2878         obstack.h.
2879         * caller-save.c: Include regs.h earlier.
2880         * cfg.c: Do not include basic-block.h or obstack.h.
2881         (reg_obstack): Define.
2882         * cfganal.c: Include obstack.h
2883         * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
2884         earlier.
2885         * cfglayout.c: Do not include obstack.h.
2886         (flow_obstack): Remove declaration.
2887         (cfg_layout_duplicate_bb): Use reg_obstack.
2888         * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
2889         * cfgrtl.c (rtl_split_block): Use reg_obstack.
2890         (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
2891         (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
2892         (cfg_layout_split_edge): Use reg_obstack.
2893         * cse.c: Include regs.h earlier.
2894         * ddg.c: Do not include basic-block.h.
2895         * dominance.c: Inlude obstack.h.
2896         * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
2897         (calculate_global_regs_live): Likewise.
2898         (allocate_bb_life_data): Use reg_obstack.
2899         (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
2900         * global.c: Do not include basic-block.h.
2901         (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
2902         * graph.c: Include obstack.h.
2903         * haifa-sched.c: Do not include basic-block.h.
2904         * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
2905         * local-alloc.c: Do not include basic-block.h.
2906         * loop-init.c, loop-invariant.c: Include obstack.h.
2907         * loop-iv.c: Likewise.
2908         (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
2909         adjust.
2910         * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
2911         * modulo-sched.c: Do not include basic-block.h.
2912         * passes.c (rest_of_handle_final): Do not call
2913         regset_release_memory.
2914         * ra-debug.c: Include regs.h earlier. Do not include
2915         basic-block.h.
2916         * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
2917         * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
2918         (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
2919         (regset_release_memory): Remove.
2920         * resource.c: Do not include basic-block.h.
2921         * rtlanal.c: Do not include basic-block.h.
2922         * sbitmap.c: Include obstack.h.
2923         * sched-deps.c: Do not include basic-block.h.
2924         (reg_pending_sets_head, reg_pending_clobbers_head,
2925         reg_pending_uses_head): Remove.
2926         (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
2927         * sched-ebb.c: Do not include basic-block.h.
2928         * sched-rgn.c: Likewise.
2929         * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
2930         BITMAP_XFREE.
2931         * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
2932         * tree-sra.c (decide_instantiations): Adjust bitmap
2933         initialization.
2934         * tree-ssa-dce.c: Include obstack.h.
2935         * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
2936         (value_insert_into_set_bitmap): Remove useless bitmap_clear.
2937         (bitmap_set_new): Likewise.
2938         (init_pre): Initialize bitmap obstack.
2939         (fini_pre): Release bitmap obstack.
2940         * tree-ssanames.c (ssa_names_to_rewrite): Make static.
2941         (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
2942         (mark_for_rewrite, unmark_for_rewrite): Likewise.
2943         (marked_ssa_names): Likewise.
2944         (init_ssanames): Use BITMAP_XMALLOC.
2945         (fini_ssanames): Use BITMAP_XFREE.
2946         * web.c: Include obstack.h
2947
2948 2004-11-22  Nick Clifton  <nickc@redhat.com>
2949
2950         * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
2951         predecessor in the first for-loop.
2952
2953 2004-11-21  Stan Shebs  <shebs@apple.com>
2954
2955         * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
2956         UNION_TYPE case.
2957         (function_arg): Move darwin test up, sniff mode first for
2958         efficiency, test for union type.
2959
2960 2004-11-21  Dale Johannesen  <dalej@apple.com>
2961
2962         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION):  Define.
2963
2964 2004-11-21  Jeff Law  <law@redhat.com>
2965
2966         * tree-ssa.c (verify_use): Fix comment.
2967         (verify_phi_args): Check that the number of incoming edges matches
2968         the number of PHI arguments.  Check that each PHI argument is
2969         either an SSA_NAME or an invariant.  Coalesce tests for PHIs for
2970         dead or duplicated edges.  Clear e->aux earlier and avoid separate
2971         loop to clear e->aux and test for missed edges.
2972         (verify_ssa): Remove first walk over statements.  Move checking
2973         of PHI args into verify_phi_args.  Move checking of statements
2974         with aliased stores and V_MAY_DEFS into the remaining loop over
2975         the statements.  Register defs by walking through the formal
2976         SSA_NAME table.
2977
2978 2004-11-21  Roger Sayle  <roger@eyesopen.com>
2979
2980         PR middle-end/18520
2981         * dojump.c (compare_from_rtx): Clarify mode argument in function
2982         description.  Correct order of mode/cmp_mode arguments in call to
2983         simplify_relational_operation.  Check "tem" for COMPARISON_P.
2984
2985 2004-11-21  Paolo Bonzini  <bonzini@gnu.org>
2986             David Edelsohn  <edelsohn@gnu.org>
2987
2988         PR target/17836
2989         * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
2990         synthetic vectors in memory.
2991         (function_arg_boundary): Align large synthetic vectors.
2992         (rs6000_pass_by_reference): Pass synthetic vectors in memory.
2993
2994 2004-11-21  Jeff Law  <law@redhat.com>
2995
2996         * cfg.c (update_bb_profile_for_threading): Do not rescale the
2997         successor probabilities if they are not going to change.  Pull
2998         division out of loop if we do need to rescale successor probabilities.
2999
3000         * tree-ssa-threadupdate.c (redirection_data_hash): Use the
3001         index of the destination block for the hash value rather than
3002         hashing a pointer.
3003
3004 2004-11-20  Joseph S. Myers  <joseph@codesourcery.com>
3005
3006         * c-typeck.c (build_array_ref): Don't check for index == 0.  Make
3007         checks for neither argument being an array or pointer (swapping
3008         the arguments if necessary), the array argument being a pointer to
3009         or array of functions and for -Wchar-subscripts warnings upfront.
3010
3011 2004-11-20  Jeff Law  <law@redhat.com>
3012
3013         * regrename.c (copyprop_hardreg_forward): Only search for a
3014         previously processed block if the current block only has one
3015         predecessor.
3016
3017 2004-11-20  Kazu Hirata  <kazu@cs.umass.edu>
3018
3019         * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
3020         typos.
3021         * config/arm/arm.c: Follow spelling conventions.
3022
3023 2004-11-20  Richard Earnshaw  <rearnsha@arm.com>
3024
3025         * arm.c (arm_override_options): Use arm_ld_sched rather than testing
3026         a bit in tune_flags.
3027         (const_double_needs_minipool): Likewise.  Split most of the code out
3028         into ...
3029         (arm_const_double_inline_cost): ... new function here.
3030         * arm-protos.h (arm_const_double_inline_cost): Add prototype.
3031         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
3032         word constants of length 2, 3 and 4 insns respectively.
3033         (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
3034         * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
3035         constraints.  Set insn lenghts accordingly.
3036
3037 2004-11-19  Jeff Law  <law@redhat.com>
3038
3039         * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
3040         a hash table.  Extensive modifications throughout to support
3041         that change.
3042         (struct el): New.
3043         (struct local_info): New.
3044         (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
3045         fields.
3046         (redirection_data): Now a hashtable.
3047         (redirection_data_hash, redirection_data_eq): New.
3048         (lookup_redirection_data, create_duplicates): New.
3049         (create_edge_and_update_destionation_phis): New.
3050         (fixup_template_block, redirect_edges): New.
3051         (thread_block): Use hash table traversals instead of loops over
3052         varray entries or incoming edge vectors.
3053
3054 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
3055
3056         * basic-block.h (edge_def): Add dest_idx.
3057         * cfg.c (unchecked_make_edge): Initialize dest_idx.
3058         (remove_edge): Simplify the disconnection of an edge from its
3059         destination.
3060         (redirect_edge_succ): Likewise.
3061         * cfghooks.c (verify_flow_info): Check the consistency of
3062         dest_idx for each edge.
3063
3064 2004-11-19  Aldy Hernandez  <aldyh@redhat.com>
3065
3066         * simplify-rtx.c (simplify_ternary_operation): Use
3067         gen_int_mode.
3068
3069 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
3070
3071         * tree-cfg.c (reinstall_phi_args): New.
3072         (tree_split_edge): Use it after redirecting an edge.  Don't
3073         modify PHI_ARG_EDGE.
3074
3075 2004-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
3076
3077         * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
3078         if checking is enabled.
3079
3080 2004-11-19  Joseph S. Myers  <joseph@codesourcery.com>
3081
3082         * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
3083         too many nested scopes.
3084
3085 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
3086
3087         PR tree-opt/18181
3088         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
3089         changed to suppoer uses-after-loop and to void creating flow paths
3090         that shouldn't exist.
3091         (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
3092         Modified to fit the new peeling scheme. Avoid quadratic behavior.
3093         (slpeel_add_loop_guard): Takes additional argument.
3094         (slpeel_verify_cfg_after_peeling): New function.
3095         (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
3096         documentation. Use 'exit-bb' instead of creating 'new-bb'.
3097         (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
3098         the new peeling scheme.
3099         (copy_phi_nodes): Function removed. Its functionality moved to
3100         update_phis_for_duplicate_loop.
3101         (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
3102         moved here. Added documentation. Modified to fit the new peeling scheme.
3103         (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
3104         needed - done in slpeel_tree_peel_loop_to_edge.
3105         (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
3106         (vect_do_peeling_for_loop_bound): Add documentation. Call
3107         slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
3108         with additional argument.
3109         (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
3110
3111         (vect_finish_stmt_generation): Avoid 80 column oveflow.
3112
3113 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
3114
3115         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
3116         arguments removed.
3117         (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
3118         without last two arguments. Update single_exit of loops.
3119         (vect_update_niters_after_peeling): Removed. Its functionality was
3120         moved to vect_do_peeling_for_alignment.
3121         (vect_do_peeling_for_loop_bound): New name for function previously
3122         called vect_transform_for_unknown_loop_bound.
3123         (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
3124         instead of code that duplicates the same functionality.
3125         (vect_do_peeling_for_alignment): Functionality of
3126         vect_update_niters_after_peeling moved here.
3127         (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
3128         previously named vect_transform_for_unknown_loop_bound - for both known
3129         and unknown loop bound cases.
3130
3131 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
3132
3133         * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
3134         previously called verify_loop_for_duplication. All conditions compacted
3135         into one compound condition. Removed debug dumps.
3136         (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
3137         functionality moved to vect_can_advance_ivs_p, and some to
3138         vect_analyze_loop_form.
3139         (vect_can_advance_ivs_p): New function. Contains functionality that was
3140         taken out of vect_analyze_loop_with_symbolic_num_of_iters.
3141         (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
3142         (vect_analyze_operations): Call vect_can_advance_ivs_p and
3143         slpeel_can_duplicate_loop_p.
3144         (vect_get_loop_niters): Added documentation.
3145         (vect_analyze_loop_form): Check the loop entry always - not only in case
3146         of unknown loop bound. Create preheader and exit bb if necessary. Apply
3147         a check that used to take place in
3148         vect_analyze_loop_with_symbolic_num_of_iters.
3149         (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
3150         Remove redundant call to rewrite_into_loop_closed_ssa.
3151         (vect_compute_data_refs_alignment): Removed obsolete comment.
3152
3153 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
3154
3155         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
3156         function previously called tree_duplicate_loop_to_edge.
3157         (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
3158         previously called tree_duplicate_loop_to_edge_cfg.
3159         (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
3160         function name.
3161         (slpeel_update_phi_nodes_for_guard): Likewise.
3162         (slpeel_make_loop_iterate_ntimes): Likewise.
3163         (slpeel_add_loop_guard): Likewise.
3164         (allocate_new_names, free_new_names): Function declaration moved to top
3165         of file.
3166         (rename_use_op, rename_def_op): Likewise.
3167         (rename_variables_in_bb, rename_variables_in_loop): Likewise.
3168         (vect_generate_tmps_on_preheader): Function declaration moved.
3169         (vect_transform_for_unknown_loop_bound): Added missing function
3170         declaration.
3171
3172 2004-11-19  Andrew Pinski  <pinskia@physics.uc.edu>
3173
3174         PR tree-opt/18507
3175         * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
3176         Define a VEC(tree_on_heap) for head.
3177         (register_new_def): Change second argument to be a VEC(tree_on_heap).
3178         * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3179         (tree_ssa_dominator_optimize): Initialize block_defs_stack with
3180         the VEC(tree_on_heap) function.  Also free it before returning.
3181         (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3182         for block_defs_stack.
3183         (restore_currdefs_to_original_value): Use VEC_length instead of
3184         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3185         (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3186         for block_defs_stack.
3187         * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3188         (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3189         for block_defs_stack.
3190         (ssa_register_new_def): Likewise.
3191         (ssa_rewrite_initialize_block): Likewise.
3192         (rewrite_finalize_block): Use VEC_length instead of
3193         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3194         (ssa_rewrite_finalize_block): Likewise.
3195         (register_new_def): Change second argument to be a VEC(tree_on_heap).
3196         Use VEC_safe_push instead of VARRAY_PUSH_TREE.
3197         (rewrite_blocks): Initialize block_defs_stack with
3198         the VEC(tree_on_heap) function.  Also free it before returning.
3199         (rewrite_ssa_into_ssa): Likewise.
3200
3201 2004-11-19  Fariborz Jahanian <fjahanian@apple.com>
3202
3203         * config/darwin.c (machopic_data_defined_p): return 1 for
3204         MACHOPIC_DEFINED_FUNCTION.
3205
3206 2004-11-19  Jeff Law  <law@redhat.com>
3207
3208         * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
3209         arguments.
3210
3211 2004-11-19  Paul Brook  <paul@codesourcery.com>
3212
3213         PR target/17735
3214         * varasm.c (default_assemble_integer): Allow pointer-sized values.
3215         Expand comment.
3216
3217 2004-11-19  Nick Clifton  <nickc@redhat.com>
3218
3219         * config/stormy16/stormy16.c (combine_bnp): Add code to handle
3220         zero_extension and lshiftrt insns.
3221         Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
3222         where appropriate.
3223         * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
3224         to handle bp and bn insn patterns with a zero_extend rtx
3225         inside them.
3226
3227 2004-11-19  Ian Lance Taylor  <ian@wasabisystems.com>
3228
3229         * config/arm/arm.md (generic_sched): Make const.
3230
3231 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
3232
3233         * emit-rtl.c (classify_insn): Make it static.
3234         * rtl.h: Remove the corresponding prototype.
3235
3236         * integrate.c (has_func_hard_reg_initial_val,
3237         get_func_hard_reg_initial_val): Make them static.
3238         * integrate.h: Remove the corresponding prototypes.
3239
3240 2004-11-19  Ben Elliston  <bje@au.ibm.com>
3241
3242         * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
3243         (dw2_asm_output_delta_sleb128): Likewise.
3244         * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
3245         (dw2_asm_output_delta_sleb128): Likewise.
3246
3247 2004-11-19  Adam Nemet  <anemet@lnxw.com>
3248
3249         * tree-ssa-alias.c: Fix comment.
3250
3251 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
3252
3253         * tree-outof-ssa.c: Fix a comment typo.
3254
3255 2004-11-19  Ben Elliston  <bje@au.ibm.com>
3256
3257         * predict.h (predict_insn): Remove extern declaration.
3258         * predict.c (predict_insn): Make static.
3259
3260 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
3261
3262         * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
3263
3264 2004-11-18  Nicolas Pitre <nico@cam.org>
3265
3266         * config/arm/arm.c (const_double_needs_minipool): New function to
3267         determine if a CONST_DOUBLE should be pushed to the minipool.
3268         (note_invalid_constants): Use it.
3269
3270 2004-11-18  Paul Brook  <paul@codesourcery.com>
3271
3272         * config/arm/arm.c (target_float_switch): New variable..
3273         (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
3274         target_float_switch.
3275         * config/arm/arm.h (target_float_switch): Declare.
3276         (ARM_FLAG_SOFT_FLOAT): Remove.
3277         (TARGET_SWITCHES): Remove hard-float and soft-float.
3278         (TARGET_OPTIONS): Add hard-float and soft-float.
3279         (TARGET_DEFAULT_FLOAT_ABI): Define.
3280         * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
3281         (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
3282         * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
3283         * config/arm/netbsd-elf.h: Ditto.
3284         * config/arm/netbsd.h: Ditto.
3285         * config/arm/pe.h: Ditto.
3286         * config/arm/unknown-elf.h: Ditto.
3287         * config/arm/wince-pe.h: Ditto.
3288         * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3289         * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3290         * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3291
3292 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3293
3294         * config/rs6000/altivec.md (VI, VF, V): New mode macros.
3295         (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
3296         altivec_lvx_4sf): Rename and replace with ...
3297         (altivec_lvx_<mode>): ... mode macro version.
3298         (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
3299         altivec_stvx_4sf): Rename and replace with ...
3300         (altivec_stvx_<mode>): ... mode macro version.
3301         (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
3302         (mov<mode>): ... mode macro version.
3303         (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
3304         *movv4sf_internal1): Replace with ...
3305         (*mov<mode>_internal): ... mode macro version.
3306         (get_vrsave_internal, *set_vrsave_internal, *save_world,
3307         *restore_world): Unquote output statements.
3308         * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
3309         altivec_expand_st_builtin): Adjust insn names.
3310
3311 2004-11-18  Aldy Hernandez  <aldyh@redhat.com>
3312
3313         * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
3314         previous change.
3315         (rs6000_override_options): Likewise.
3316         (spe_build_register_parallel): Handle complex doubles on e500v2.
3317         (rs6000_spe_function_arg): Likewise.
3318         (function_arg): Likewise.
3319         (rs6000_function_value): Likewise.
3320         (rs6000_libcall_value): Likewise.
3321
3322 2004-11-18  Andrew Pinski  <pinskia@physics.uc.edu>
3323
3324         * ifcvt.c (find_if_block): Move the check for the number of edges
3325         above the loops checking for complex edges.
3326         Remove the counting of edges as we use EDGE_COUNT now.
3327
3328 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3329
3330         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3331         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
3332
3333 2004-11-18  Andreas Schwab  <schwab@suse.de>
3334
3335         * config/i386/i386.md (define_peephole2): Revert last change.
3336
3337 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3338
3339         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3340         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
3341
3342 2004-11-18  Diego Novillo  <dnovillo@redhat.com>
3343
3344         * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
3345         of FOR_EACH_BB.
3346
3347 2004-11-18  Jon Grimm <jgrimm2@us.ibm.com>
3348
3349         * Makefile.in (macro_list): Depend on s-macro_list.
3350         (s-macro_list): New target.
3351
3352 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3353
3354         PR target/17107
3355         * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3356         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3357         (fold_range_test): Adjust.
3358         (fold_truthop): Use it.
3359         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3360         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3361
3362 2004-11-18  Uros Bizjak  <uros@kss-loka.si>
3363
3364         * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
3365         insn split constraint.
3366         (define_peephole2): Remove unneeded "&& 1" from peephole2
3367         constraints.
3368
3369 2004-11-18  Ben Elliston  <bje@au.ibm.com>
3370
3371         * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
3372         element for bsi_prev; use @findex instead.
3373
3374 2004-11-18  Ben Elliston  <bje@au.ibm.com>
3375
3376         * opts.h (add_input_filename): Remove extern declaration.
3377         * opts.c (add_input_filename): Make static.
3378
3379 2004-11-17  Mark Mitchell  <mark@codesourcery.com>
3380
3381         * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
3382         ATTRIBUTE_UNUSED.
3383
3384 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
3385
3386         * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
3387         * system.h: Poison it.
3388         * doc/tm.texi: Delete its documentation.
3389
3390 2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
3391             Mark Mitchell  <mark@codesourcery.com>
3392
3393         * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
3394         * config/i386/i386.c (i386_solaris_elf_named_section): New
3395         function.
3396         * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
3397         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
3398         64-bit.
3399         (ASM_QUAD): Don't undefine for biarch targets.
3400         * config/i386/t-sol2: Introduce multilib support.
3401
3402 2004-11-18  Ben Elliston  <bje@au.ibm.com>
3403
3404         * cgraphunit.c: Replace "it's" with "its" and fix a typo.
3405
3406 2004-11-18  Ben Elliston  <bje@au.ibm.com>
3407
3408         * cgraph.h: Replace "it's" with "its" throughout.
3409
3410 2004-11-18  Ben Elliston  <bje@au.ibm.com>
3411
3412         * doc/rtl.texi (Flags): Grammar fix.
3413
3414 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
3415
3416         * expmed.c (alg_code): Add alg_unknown.
3417         (alg_hash_entry): New.
3418         (NUM_ALG_HASH_ENTRIES): Likewise.
3419         (alg_hash): Likewise.
3420         (synth_mult): Cache the result into alg_hash.
3421
3422 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
3423
3424         * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
3425         config/rs6000/libgcc-ppc64.ver.
3426
3427 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
3428
3429         * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
3430         checking if an unconditional return is followed by a barrier.
3431
3432         * jump.c (condjump_p): Remove unreachable code.
3433
3434         * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
3435         tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
3436         tree-ssa-live.h, tree.h: Remove unused prototypes.
3437
3438 2004-11-17  Jeff Law  <law@redhat.com>
3439
3440         * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
3441         (edge_to_cases_elt): Renamed from edge_to_case_leader.
3442         (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
3443         (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
3444         (edge_to_cases_cleanup, recording_case_labels_p): New functions.
3445         (get_cases_for_edge): New function.
3446         (start_recording_case_labels, end_recording_case_labels): Similarly.
3447         (record_switch_edge): Don't muck with the CASE_LABEL.  Instead
3448         chain equivalent CASE_LABEL_EXPRs together.
3449         (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
3450         (make_switch_expr_edges): Do not record edge/cases here.
3451         (cleanup_tree_cfg): Record cases around the call to thread_jumps.
3452         (split_critical_edges): Record cases around the edge splitting code.
3453         (cleanup_dead_labels): Use CASE_LABEL again.
3454         (tree_redirect_edge_and_branch): If we have a mapping from edge
3455         to cases, use it to handle redirections.  Else do it the slow way.
3456         * tree.h (CASE_LEADER_OR_LABEL): Kill.
3457         (CASE_LABEL): Revert to just looking at the tree's second operand.
3458         * tree.c (get_case_label): Kill.
3459
3460 2004-11-17  Diego Novillo  <dnovillo@redhat.com>
3461
3462         PR tree-optimization/18307
3463         * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
3464         'orig' are the same node.
3465         (collect_points_to_info_r): Do not call merge_pointed_to_info
3466         when the PHI argument is identical to the LHS.
3467
3468 2004-11-17  Steven Bosscher  <stevenb@suse.de>
3469
3470         * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
3471         to insert the exit or entry block.
3472         (ssa_prop_init): Use add_control_edge to seed the algorithm.
3473
3474 2004-11-16  Zack Weinberg  <zack@codesourcery.com>
3475
3476         * mkmap-flat.awk, mkmap-symver.awk: If the last version
3477         assigned to a symbol was '%exclude', do not emit it anywhere.
3478         If leading_underscore is true, prefix all symbols from the
3479         version scripts with a leading underscore before comparing
3480         them with nm output or emitting them.  Remove support for dot
3481         symbols.
3482         * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
3483         (SHLIB_MAPFILES): Use libgcc-std.ver.
3484         (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
3485         (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
3486         * config/sh/t-linux: Use the normal libgcc-std.ver, plus
3487         libgcc-excl.ver and libgcc-glibc.ver.
3488
3489         * config/sh/libgcc-excl.ver: New file.
3490         * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
3491
3492 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
3493
3494         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
3495         the test when the edge has the opposite meaning, not when
3496         the first argument is invariant.
3497
3498 2004-11-16  Aldy Hernandez  <aldyh@redhat.com>
3499
3500         * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
3501         doubles.
3502         (rs6000_complex_function_value): Handle e500 v2 variant.
3503
3504 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
3505
3506         Fix PR tree-optimization/18519
3507
3508         * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
3509         * tree-pass.h: Add TODO_cleanup_cfg.
3510         * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
3511         (ccp_finalize): Remove call to cleanup_cfg.
3512         * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
3513         (pass_cd_dce): Ditto.
3514         (perform_tree_ssa_dce): Remove call to cleanup_cfg,
3515         dump_function_to_file.
3516         * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
3517         to cleanup_cfg.
3518         (pass_ch): Add TODO_cleanup_cfg.
3519         * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
3520         cleanup_cfg.
3521         (pass_loop_done): Add TODO_cleanup_cfg.
3522         * tree-ssa-phiopt.c (pass_phiopt): Ditto.
3523         (tree_ssa_phiopt): Remove call to cleanup_cfg.
3524
3525 2004-11-16  Devang Patel  <dpatel@apple.com>
3526
3527         * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
3528
3529 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
3530
3531         * expmed.c, ra-colorize.c: Fix comment typos.
3532
3533         * doc/tm.texi: Fix typos.
3534
3535 2004-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3536             Mark Mitchell  <mark@codesourcery.com>
3537
3538         PR target/6123
3539         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
3540         __pic__ if PIC.
3541
3542 2004-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
3543
3544         * regmove.c (regmove_optimize): Use lowpart_subreg instead of
3545         gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
3546
3547 2004-11-16  Devang Patel  <dpatel@apple.com>
3548
3549         * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
3550
3551 2004-11-16  Eric Christopher  <echristo@redhat.com>
3552
3553         * config/mips/mips.c: Use rtl _P predicates.
3554         * config/mips/mips.h: Ditto.
3555         * config/mips/mips.md: Ditto.
3556
3557 2004-11-16  Fariborz Jahanian <fjahanian@apple.com>
3558
3559         * config/rs6000/altivec.md (altivec_vandc): Canonicalize
3560         the pattern.
3561
3562 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
3563
3564         * config/s390/s390.c (s390_cc_modes_compatible): New function.
3565         (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
3566
3567 2004-11-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3568
3569         PR target/18447
3570         * config/sh/sh.c (prepare_move_operands): Emit blockage insns
3571         before and after the insns for getting GOT address in non-PIC
3572         TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
3573         is enabled.
3574
3575 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
3576
3577         * gcc/cse.c (struct change_cc_mode_args): New structure.
3578         (cse_change_cc_mode_insn): New function.
3579         (cse_change_cc_mode): Use validate_change to perfom changes.
3580         (cse_change_cc_mode_insns, cse_condition_code_reg):
3581         Call cse_change_cc_mode_insn.
3582
3583 2004-11-16  Steven Bosscher  <stevenb@suse.de>
3584
3585         * stack.h: Remove.
3586
3587 2004-11-16  Steven Bosscher  <stevenb@suse.de>
3588
3589         * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
3590
3591 2004-11-15  Dale Johannesen  <dalej@apple.com>
3592
3593         * tree-flow.h (add_referenced_temp_var):  Remove name from prototype.
3594
3595 2004-11-15  Dale Johannesen  <dalej@apple.com>
3596
3597         * profile.c (compute_branch_probabilities):  Prevent
3598         crash with EH in RTL-based profiling.
3599
3600 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
3601
3602         * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
3603         COND_EXPR_COND.
3604         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
3605         * tree-ssa-dom.c (thread_across_edge): Likewise.
3606         * tree-vectorizer.c (vect_transform_loop_bound): Replace
3607         TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
3608         COND_EXPR_ELSE.
3609
3610         * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
3611         (tree_flow_call_edges_add): Update the call to
3612         bsi_commit_edge_inserts.
3613         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
3614         * profile.c (branch_prob): Likewise.
3615         * tree-mudflap.c (mf_decl_cache_locals): Likewise.
3616         * tree-sra.c (scalarize_function): Likewise.
3617         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
3618         * tree-ssa-pre.c (fini_pre): Likewise.
3619         * tree-flow.h: Update the prototype for
3620         bsi_commit_edge_inserts.
3621
3622 2004-11-15  Eric Christopher  <echristo@redhat.com>
3623
3624         * sched-deps.c (set_sched_group_p): Delete.
3625         (delete_all_dependencies): New function.
3626         (fixup_sched_groups): Use. New function.
3627         (sched_analyze_insn): Use.
3628
3629 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
3630
3631         * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
3632         RROTATE_EXPR or unknown code.
3633         * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
3634         LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
3635         UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
3636         or unknown code.
3637
3638 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
3639
3640         PR c/18498
3641         * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
3642         after processing the declarator.
3643
3644 2004-11-15  Aldy Hernandez  <aldyh@redhat.com>
3645
3646         * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
3647         vec_duplicate.
3648         (altivec_vspltb): Same.
3649         (altivec_vspltw): Same.
3650         (altivec_vspltisb): Same.
3651         (altivec_vspltish): Same.
3652         (altivec_vspltisw): Same.
3653         (altivec_vspltisw_v4sf): Same.
3654         (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
3655         UNSPEC_VSPLTISH.
3656         Move "End of vector xor's" comment to the right place.
3657
3658 2004-11-15  Steve Ellcey  <sje@cup.hp.com>
3659
3660         * config/ia64/ia64.md (*movtf_internal):  Use destination_operand
3661         instead of nonimmediate_operand.
3662
3663 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3664
3665         * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
3666         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
3667         * config/sol2.c (solaris_output_init_fini): Update calls to
3668         ASM_OUTPUT_CALL.  Include "rtl.h".
3669
3670 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3671
3672         * config/sol2-c.c (cmn_err_char_table): Add "p".
3673
3674 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3675
3676         * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
3677         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
3678
3679 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3680
3681         * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
3682         within the multilib directory.
3683
3684 2004-11-15  Nick Clifton  <nickc@redhat.com>
3685
3686         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
3687         builtin assert of cpu=xstormy16.
3688
3689 2004-11-15  Nathan Sidwell  <nathan@codesourcery.com>
3690
3691         * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
3692         variable.
3693
3694 2004-11-14  Richard Henderson  <rth@redhat.com>
3695
3696         PR 18480
3697         * calls.c (struct arg_data): Add parallel_value.
3698         (precompute_register_parameters): Set it.
3699         (load_register_parameters): Use it.
3700         (store_one_arg): Also set it here.
3701
3702 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
3703
3704         PR tree-optimization/18431
3705         * fold-const.c (associate_trees): Do not produce x + 0.
3706         (fold_widened_comparison, fold_sign_changed_comparison): New functions.
3707         (fold): Use them.
3708         * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
3709         Moved ...
3710         * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
3711         * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
3712
3713 2004-11-14  Eric Botcazou <ebotcazou@libertysurf.fr>
3714
3715         * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
3716
3717 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
3718
3719         * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
3720         value-prof.c: Fix comment typos.
3721
3722 2004-11-14  Stan Shebs  <shebs@apple.com>
3723
3724         Basic ABI changes for passing structs by value in 64-bit Darwin.
3725         * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
3726         (rs6000_override_options): Set it for 64-bit Darwin.
3727         (rs6000_parse_abi_options): Add testing options to change it.
3728         (rs6000_return_in_memory): Test whether the type is one
3729         that can be passed in registers.
3730         (darwin64_function_arg_advance): New.
3731         (function_arg_advance): Call it, plus add recursion depth
3732         argument and test when counting off arguments.
3733         (rs6000_darwin64_function_arg): New.
3734         (function_arg): Call it.
3735         (setup_incoming_varargs): Add argument to function_arg_advance.
3736         (rs6000_darwin64_function_value): New.
3737         (rs6000_function_value): Call it.
3738         * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
3739         * config/rs6000/rs6000-protos.h: Update decl of
3740         function_arg_advance.
3741
3742 2004-11-14  Andrew Pinski  <pinskia@physics.uc.edu>
3743
3744         PR c/17279
3745         * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
3746         support TImode before adding __int128_t and __uint128_t types.
3747
3748 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
3749
3750         PR tree-opt/18400
3751         * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
3752         (vect_transform_loop_bound): Set loop->nb_iterations.
3753
3754 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
3755             Andrew Pinski  <pinskia@physics.uc.edu>
3756
3757         PR tree-opt/18425
3758         * tree-vectorize.c (vect_build_loop_niters): Do not insert
3759         NULL into the instruction stream. Initialize new_bb to NULL.
3760         (vect_update_ivs_after_vectorizer): Likewise.
3761         (vect_gen_niters_for_prolog_loop): Likewise.
3762
3763 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
3764
3765         PR tree-optimization/18431
3766         * tree-flow.h (stmt_references_memory_p): Declare.
3767         * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
3768         * tree-ssa.c (stmt_references_memory_p): New function.
3769
3770 2004-11-14  Andreas Schwab  <schwab@suse.de>
3771
3772         * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
3773         $(EXPR_H).
3774
3775 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
3776
3777         * c-common.c (walk_stmt_tree): Remove.
3778         * c-common.h: Remove the corresponding prototype.
3779
3780         * emit-rtl.c (push_to_full_sequence): Remove.
3781         * rtl.h: Remove the corresponding prototype.
3782
3783         * cselib.c, expr.c: Fix comment typos.
3784
3785 2004-11-13  Richard Henderson  <rth@redhat.com>
3786
3787         * calls.c (precompute_register_parameters): Force all PARALLELs
3788         into pseudo registers.
3789         (load_register_parameters): Copy PARALLELs into hard registers.
3790         * function.c (assign_parm_setup_block): Copy PARALLELS into
3791         pseudo registers.  Do emit_group_store in conversion_insns.
3792         * expr.c (emit_group_load_1): Rename from emit_group_load, take
3793         tmps as an argument.  Move final copy loop ...
3794         (emit_group_load): ... here.  New function.
3795         (emit_group_load_into_temps, emit_group_move_into_temps): New.
3796         * expr.h: Declare them.
3797
3798 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
3799
3800         * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
3801         tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
3802         with PHI_CHAIN where appropriate.
3803
3804 2004-11-13  Dale Johannesen  <dalej@apple.com>
3805
3806         * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
3807         (tree_block_label): Ditto.
3808         (flush_pending_stmts): Ditto.
3809         (insert_edge_copies): Ditto.
3810         (expr_invariant_in_loop_p): Ditto.
3811         (TDF_USE_OPS): Parenthesize definition.
3812         (TDF_USE_VOPS): Ditto.
3813
3814 2004-11-13  David Edelsohn  <edelsohn@gnu.org>
3815
3816         * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
3817         * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
3818         (atoll): Declare.
3819         * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
3820
3821 2004-11-14  Joseph Myers  <joseph@codesourcery.com>
3822
3823         * config/i386/i386.c (override_options): Move loop to set default
3824         tuning to correct place.
3825
3826 2004-11-13  Zak Kipling  <zak@transversal.com>
3827
3828         PR target/18300
3829         * config/i386/i386.c (classify_argument): Fix infinite loop when
3830         passing object with 3 or more base classes by value.
3831
3832 2004-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3833
3834         * doc/md.texi (constraints) <% modifier>: Mention that it is
3835         useless when the two alternatives are strictly identical.
3836
3837 2004-11-13  Richard Henderson  <rth@redhat.com>
3838
3839         * expmed.c (extract_split_bit_field): Temporarily disable call to
3840         extract_force_align_mem_bit_field.
3841
3842 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
3843
3844         * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
3845         formatting.
3846
3847         * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
3848         lambda-code.c, postreload.c, predict.c, tree-sra.c,
3849         tree-ssa-loop-manip.c, tree.c: Fix comment typos.
3850
3851 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
3852
3853         * doc/install.texi (automake): Correctly document that everything now
3854         will use automake 1.9.3.
3855
3856 2004-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
3857
3858         PR target/18347
3859         * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
3860         TImode.  Sorry for other non-complex larger-than-64-bit modes.
3861         * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
3862
3863 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
3864
3865         * doc/install.texi (automake): Document that everything now uses 1.9.
3866
3867 2004-11-13  Bernd Schmidt  <bernd.schmidt@analog.com>
3868
3869         * cse.c (cse_insn): Stores in a libcall sequence can invalidate
3870         previous loads.
3871
3872 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
3873
3874         * tree.h: Fix comment typos.
3875
3876 2004-11-13  Steven Bosscher  <stevenb@suse.de>
3877
3878         * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
3879         HARD_REGISTER_NUM_P.
3880
3881         * cselib.c (new_cselib_val): Make comment correct and more detailed.
3882         * flow.c (mark_set_1): Likewise.
3883
3884         * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
3885         duplicate_eh_regions): Remove.
3886         * except.h (duplicate_eh_regions): Remove prototype.
3887         * integrate.c (get_label_from_map, copy_rtx_and_substitute,
3888         global_const_equiv_varray): Remove.
3889         * integrate.h (get_label_from_map, copy_rtx_and_substitute,
3890         global_const_equiv_varray, set_label_in_map): Remove prototypes,
3891         extern declaration, and #define.
3892         (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
3893         (struct inline_remap): Remove.
3894         * varray.c (struct element): Remove entry for const_equiv_data.
3895         * varray.h (struct const_equiv_data): Remove.
3896         (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
3897         (union varray_data_tag) <const_equiv>: Remove.
3898         (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
3899         VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
3900
3901         * regstack.c (record_label_references): Remove unused function.
3902
3903         * rtl.def (VALUE): Update comment.
3904         (LABEL_REF): Remove unused operand 2.
3905         * rtl.h (struct rtx_def): Update for removed accessor macros.
3906         (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
3907         REG_LOOP_TEST_P): Remove.
3908         (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
3909         * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
3910         * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
3911
3912 2004-11-13  James A. Morrison  <phython@gcc.gnu.org>
3913             Eric Botcazou  <ebotcazou@libertysurf.fr>
3914
3915         PR target/18230
3916         * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
3917         patterns.
3918         * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
3919         (V32I): New macro for 32-bit modes.
3920         (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
3921         iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
3922         xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
3923         xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
3924         one_cmpldi_sp64): Use V64I instead of DI.
3925         (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
3926         xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
3927         (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
3928         (nandv64i_vis, nandv32i_vis): New patterns.
3929
3930 2004-11-12  Mike Stump  <mrs@apple.com>
3931
3932         * Makefile.in: Add html support.
3933         * java/Make-lang.in: Likewise.
3934         * fortran/Make-lang.in: Likewise.
3935         * treelang/Make-lang.in: Likewise.
3936         * doc/install.texi: Likewise.
3937         * doc/makefile.texi: Likewise.
3938         * doc/sourcebuild.texi: Likewise.
3939
3940 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
3941
3942         * tree-ssa-loop-manip.c: Fix a comment typo.
3943
3944 2004-11-12  Mike Stump  <mrs@apple.com>
3945
3946         * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
3947         renaming this node to Concept Index.
3948         * doc/gccint.texi (Index): Likewise.  Also minor formatting tweaks
3949         to more closely match gcc.texi.
3950
3951 2004-11-12  Jeff Law  <law@redhat.com>
3952
3953         * tree-cfg.c (hashtab.h): Include.
3954         (struct edge_to_case_leader_elt): New structure.
3955         (edge_to_case_leader): New.
3956         (edge_to_case_leader_hash): New hashtable hasing function.
3957         (edge_to_case_leader_eq): New hashtable equality function.
3958         (record_switch_edge): New function.
3959         (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
3960         (make_switch_expr_edges): Build the edge-to-case-leader
3961         hash table.  Tear down the hash table when we're done.
3962         (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
3963         CASE_LABEL.
3964         (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
3965         (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
3966         to use new concept of case leaders to reduce overhead of
3967         redirecting outgoing edges from switch statements.
3968         * tree.c (get_case_label): New function.
3969         * tree.h (CASE_LABEL): Define in terms of get_case_label.
3970         (CASE_LEADER_OR_LABEL): Define.
3971
3972 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
3973
3974         * varasm.c (output_addressed_constants): For CONST_DECLs,
3975         output the initializer if present.
3976
3977 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
3978
3979         * config/rs6000/darwin.h: Fix confusing typo in comment.
3980
3981 2004-11-12  Devang Patel  <dpatel@apple.com>
3982
3983         * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
3984
3985 2004-11-12  Devang Patel  <dpatel@apple.com>
3986
3987         * tree-if-conv.c (clean_predicate_lists): Use loop header
3988         and latch directly.
3989
3990 2004-11-12  Richard Henderson  <rth@redhat.com>
3991
3992         PR 17778
3993         * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3994         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3995         (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3996         * config/i386/i386-modes.def (XF): Use it.
3997
3998 2004-11-11  Geoffrey Keating  <geoffk@apple.com>
3999
4000         * Makefile.in (macro_list): Use move-if-change to avoid spurious
4001         rebuilds.
4002
4003 2004-11-12  Mark Mitchell  <mark@codesourcery.com>
4004
4005         PR c++/18416
4006         * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
4007         when deciding whether to pass a variable to
4008         cgraph_varpool_finalize_decl or assemble_variable.
4009         * toplev.c (check_global_declarations): Do not clear DECL_RTL.
4010
4011 2004-11-12  Kazu Hirata  <kazu@cs.umass.edu>
4012
4013         * tree-vectorizer.c: Fix a comment typo.
4014
4015 2004-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
4016
4017         * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
4018
4019 2004-11-12  Diego Novillo  <dnovillo@redhat.com>
4020
4021         * tree-scalar-evolution.c (analyzable_condition): Remove
4022         superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
4023
4024 2004-11-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
4025
4026         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
4027         Remove m505/roe multilib variant.
4028
4029 2004-11-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
4030
4031         * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
4032         to load from the stack.
4033
4034 2004-11-12  Richard Henderson  <rth@redhat.com>
4035
4036         * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
4037         (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
4038         * toplev.h (FL2T__): Remove.
4039         (CLZ_HWI): Rename from FL2T_CLZ__.
4040         (CTZ_HWI): New.
4041         (floor_log2): Simplify.
4042         (exact_log2): New.
4043
4044 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
4045
4046         * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
4047         compute the first overlapping iterations.
4048
4049 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
4050
4051         PR middle-end/18005
4052         * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
4053         that arguments of EXACT_DIV_EXPR are INTEGER_CST.
4054
4055 2004-11-12  Steven Bosscher  <stevenb@suse.de>
4056
4057         PR tree-optimization/18419
4058         * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
4059         pointer set instead of a bitmap.
4060         (walk_use_def_chains): Create, pass and clean up that pointer_set.
4061
4062         * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
4063         field an sbitmap.
4064         (init_alias_info): Allocate and zero it here.
4065         (delete_alias_info): Delete it here.
4066         (collect_points_to_info_for): Use it.
4067
4068 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
4069
4070         * alias.c (record_alias_subset, addr_side_effect_eval):
4071         Make them static.
4072         * alias.h: Remove the prototype for record_alias_subset.
4073         * expr.h: Remove the commented-out prototype for
4074         record_alias_subset.
4075         * rtl.h: Remove the prototype for addr_side_effect_eval.
4076
4077         * cfglayout.c (choose_inner_scope): Make it static.
4078         * rtl.h: Remove the corresponding prototype.
4079
4080         * cfgloopmanip.c (update_single_exits_after_duplication,
4081         unloop): Make them static.
4082         * cfgloop.h: Remove the corresponding prototypes.
4083
4084         * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
4085         Make them static.
4086         * c-tree.h: Remove the corresponding prototypes.
4087
4088         * explow.c (round_push): Make it static.
4089         * expr.h: Remove the corresponding prototype.
4090
4091         * varasm.c (get_named_section_flags, decl_tls_model): Make
4092         them static.
4093         * output.h: Remove the prototype for get_named_section_flags.
4094         * tree.h: Remove the prototype for decl_tls_model.
4095
4096 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
4097
4098         * function.c (expand_function_end): Remove an "if" statement
4099         that always triggers.
4100         * stmt.c (expand_null_return_1): Likewise.
4101
4102 2004-11-11  James E. Wilson  <wilson@specifixinc.com>
4103
4104         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
4105         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
4106         CLASS_MAX_NREGS): Likewise.
4107
4108 2004-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
4109
4110         PR tree-optimization/17742
4111         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
4112         MINUS_EXPR correctly.
4113
4114 2004-11-11  Sebastian Pop  <pop@cri.ensmp.fr>
4115
4116         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
4117         Give up as soon as the evolution is known not computable.
4118
4119 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
4120
4121         PR target/16457
4122         * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
4123         mask64_1or2_operand.
4124         (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
4125         to spot rlwinm opportunities.
4126         (and64_2_operand): Use mask_1or2_operand.
4127         * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
4128
4129 2004-11-11  Dorit Naishlos  <dorit@il.ibm.com>
4130
4131         * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
4132         (vect_update_ivs_after_vectorizer): Update function documentation.
4133         Avoid quadratic behavior and direct write to PHI_ARG_DEF.
4134
4135 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
4136
4137         * config/arm/arm.c: Fix a comment typo.
4138
4139 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
4140
4141         * bitmap.h (nBITMAP_WORD_BITS): Remove.
4142         (BITMAP_WORD_BITS): Force unsigned by use of 1u.
4143         (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
4144         unnecessary casts.
4145         (bitmap_first_set_bit): Return unsigned, use ctzl.
4146         (bitmap_last_set_bit): Remove.
4147         * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
4148         unsigned.
4149         (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
4150         remove special case code for two word elements.
4151         (bitmap_last_set_bit): Remove.
4152         * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
4153         bitmap_first_set_bit with bitmap_empty_p.
4154         * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
4155         * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
4156         bitmap_last_bit_set.
4157
4158 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
4159
4160         PR target/16796
4161         * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
4162
4163         PR target/16458
4164         * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
4165         unsigned equality compare when we know the operands are unsigned.
4166
4167 2004-11-10  Peter S. Mazinger  <ps.m@gmx.net>
4168
4169         * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
4170         __PIC__ and __pic__ only if TARGET_ABICALLS.
4171         (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
4172         (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
4173         -KPIC only if not -mno-abicalls.
4174
4175         * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
4176         * config/sparc/linux.h, config/sparc/linux64.h
4177         (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
4178
4179         * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
4180         * config/pa/pa/linux.h (CPP_SPEC): Likewise.
4181         * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
4182         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
4183
4184 2004-11-11  Paul Brook  <paul@codesourcery.com>
4185
4186         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
4187         register if current_function_uses_pic_offset_table is set.
4188
4189 2004-11-10  David Edelsohn  <edelsohn@gnu.org>
4190
4191         * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
4192         Change multi-instruction sequences to new attribute.
4193         * config/rs6000/{40x.md,440.md,603.md,6xx.md,
4194         7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
4195         rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
4196
4197 2004-11-10  Daniel Berlin  <dberlin@dberlin.org>
4198
4199         * tree-data-ref.c (build_classic_dist_vector): If either loop
4200         is outside of the nest we asked about, the dependence can't
4201         matter.
4202         (build_classic_dir_vector): Ditto.
4203
4204 2004-11-10  Zdenek Dvorak  <dvorakz@suse.cz>
4205
4206         * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
4207         right order.
4208         (force_var_cost): Determine cost of addition and multiplication more
4209         precisely.
4210         (get_computation_cost_at): Add cost for computing address elements to
4211         the final cost.
4212
4213         * fold-const.c (fold): Attempt to use ptr_difference_const whenever
4214         one of the arguments of MINUS_EXPR is an address.
4215         (split_address_to_core_and_offset): New function.
4216         (ptr_difference_const): Handle case when one of the operands is a
4217         pointer.
4218         * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
4219         (ptr_difference_cost): Pass addresses instead of objects to
4220         ptr_difference_const.
4221
4222 2004-11-10  Nathan Sidwell  <nathan@codesourcery.com>
4223
4224         * tree.c (tree_check_failed): Emit general error if the list of
4225         node types is empty.
4226
4227 2004-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4228
4229         * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
4230         argument.  When the union is passed in the 6th slot, build a
4231         PARALLEL with only one element.
4232         (function_arg): Adjust call to function_arg_union_value.
4233         (function_value): Likewise.
4234
4235 2004-11-10  Fariborz Jahanian <fjahanian@apple.com>
4236
4237         PR tree-optimization/17892
4238         * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
4239         MINUS_EXPR operator.
4240
4241 2004-11-10  James A. Morrison  <phython@gcc.gnu.org>
4242
4243         PR target/18230
4244         config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
4245         (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
4246
4247 2004-11-10  Steven Bosscher  <stevenb@suse.de>
4248
4249         * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
4250         (struct basic_block_def): Remove local_set and cond_local_set
4251         fields.  Update comment for global_live_at_start.
4252         * flow.c (calculate_global_regs_live): Allocate local_sets and
4253         cond_local_sets here as arrays of bitmaps previously stored in
4254         bb->local_set and bb->cond_local_set.  Use xmalloc instead of
4255         obstack allocated bitmaps.
4256
4257 2004-11-09  H.J. Lu  <hongjiu.lu@intel.com>
4258
4259         PR target/18380
4260         * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
4261         hidden.
4262
4263         * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
4264
4265 2004-11-09  Jeff Law  <law@redhat.com>
4266
4267         * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
4268         argument holding last unvisited block.  Start search for
4269         unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
4270         (connect_infinite_loops_to_exit): Supply last unvisited block
4271         to flow_dfs_compute_reverse_execute.
4272
4273 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
4274
4275         * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
4276         doubles.
4277         (floatunssidf2): Same.
4278         (floatsidf2): Same.
4279         ("extendsfdf2"): New expander.
4280         (*extendsfdf2_fpr): Rename.
4281         (*truncdfsf2_fpr): Same.
4282         (*negdf2_fpr): Same.
4283         (*absdf2_fpr): Same.
4284         (*nabsdf2_fpr): Same.
4285         (*adddf3_fpr): Same.
4286         (*subdf3_fpr): Same.
4287         (*muldf3_fpr): Same.
4288         (*divdf3_fpr): Same.
4289
4290         * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
4291         ("spe_fix_truncdfsi2"): Same.
4292         (spe_floatunssidf2): Same.
4293         (spe_floatsidf2): Same.
4294
4295 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
4296
4297         PR c/18322
4298         * c-common.c (fname_decl): Don't use line number of decl in
4299         diagnostic.
4300
4301 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
4302
4303         * config/s390/s390-protos.h (s390_pool_operand): Remove.
4304         * config/s390/s390.c (s390_pool_operand): Likewise.
4305         (s390_extra_constraint_str): Handle 'B' constraints.
4306         * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
4307         * config/s390/s390.md: Document 'B' constraints.
4308         ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
4309         s390_pool_operand to prevent insns with two literal pool
4310         references.  Make pattern commutative.
4311         ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
4312         'B' constraint instead of s390_pool_operand.
4313
4314 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4315
4316         * tree-cfg.c (create_bb): Remove unnecessary memset.
4317
4318 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4319
4320         * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
4321         (thread_block): Call flush_pending_stmt instead of
4322         copy_phis_to_block.
4323
4324 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4325
4326         * loop-iv.c (iv_number_of_iterations): Make it static.
4327         * cfgloop.h: Remove the corresponding prototype.
4328
4329 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4330
4331         * function.c (combine_temp_slots, assign_parms,
4332         expand_pending_sizes): Make them static.
4333         * tree.h: Remove the corresponding prototypes.
4334
4335 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4336
4337         * emit-rtl.c (copy_most_rtx): Remove.
4338         * rtl.h: Remove the corresponding prototype.
4339
4340 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4341
4342         * cfgloop.c (flow_loops_update): Remove.
4343         * cfgloop.h: Remove the corresponding prototype.
4344
4345 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4346
4347         * conflict.c (mark_reg, conflict_graph_compute): Remove.
4348         * basic-block.h: Remove the prototype for
4349         conflict_graph_compute.
4350
4351 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4352
4353         * tree-if-conv.c (add_to_dst_predicate_list): Change the
4354         second argument to basic_block.
4355         (tree_if_convert_cond_expr): Update call sites.
4356
4357 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4358
4359         * fold-const.c (pedantic_non_lvalue): Make it static.
4360         * tree.h: Remove the corresponding prototype.
4361
4362 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4363
4364         * optabs.c (prepare_operand): Make it static.
4365         * optabs.h: Remove the corresponding prototype.
4366
4367 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4368
4369         * reload1.c (reloads_conflict, gen_reload): Make them static.
4370         * reload.h: Remove the corresponding prototypes.
4371
4372 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4373
4374         * reload.c (refers_to_mem_for_reload_p,
4375         refers_to_regno_for_reload_p): Make them static.
4376         * reload.h: Remove the corresponding prototypes.
4377
4378 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
4379             Eric Botcazou  <ebotcazou@libertysurf.fr>
4380
4381         PR target/18230
4382         * doc/md.texi (SPARC constraints): Document 'Y' constraint.
4383         * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
4384         * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
4385         (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
4386         (fp_zero_operand): Accept MODE_VECTOR_INT modes.
4387         (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
4388         (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
4389         (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
4390         MODE_VECTOR_INT modes.
4391         (sparc_extra_constraint_check): Add new constraint 'Y'.
4392         * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
4393         * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
4394         (V64): New mode macro for 64-bit modes.
4395         (movsf): Use V32 for mode instead of SF.
4396         (movsf_insn_vis): Use V32 for mode instead of SF.  Add 'Y' constraint
4397         alongside 'G' constraint.
4398         (movdf): Use V64 for mode instead of DF.
4399         (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
4400         of DF.  Add 'Y' constraint alongside 'G' constraint.
4401         (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
4402         instead of DF.
4403
4404 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
4405
4406         * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
4407         integer NEG and ABS.
4408         * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
4409         ("*negdi2_31"): Reimplement using a splitter.
4410         ("*negdi2_cc", "*negdi2_cconly"): New insns.
4411         ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
4412         ("*negsi2_cc", "*negsi2_cconly"): Likewise.
4413         ("*negdf2_cc", "*negdf2_cconly"): Likewise.
4414         ("*negsf2_cc", "*negsf2_cconly"): Likewise.
4415         ("*absdi2_cc", "*absdi2_cconly"): New insns.
4416         ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
4417         ("*abssi2_cc", "*abssi2_cconly"): Likewise.
4418         ("*absdf2_cc", "*absdf2_cconly"): Likewise.
4419         ("*abssf2_cc", "*abssf2_cconly"): Likewise.
4420         ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
4421         ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
4422         ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
4423         ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
4424         ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
4425
4426 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
4427
4428         * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
4429         when eliminating an UNSPEC_CMPINT.
4430         (s390_secondary_input_reload_class): Fix test for CC register reload.
4431         (s390_secondary_output_reload_class): Likewise.
4432         (s390_expand_cmpmem): Swap operands.  Use gen_cmpint.
4433         * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
4434         ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
4435         insn patterns with splitters.
4436
4437 2004-11-09  David Edelsohn  <edelsohn@gnu.org>
4438
4439         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
4440         * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
4441
4442 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4443
4444         * tree-phinodes.c (phi_reverse): New.
4445         * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
4446         Use it.
4447         * tree-flow.h: Add a prototype for phi_reverse.
4448
4449 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4450
4451         * tree-ssa-loop-ivopts.c: Fix a comment typo.
4452
4453 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
4454
4455         PR pch/14940
4456         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
4457         definitions.
4458
4459 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
4460
4461         * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
4462         instead of "arg" in diagnostics.
4463
4464 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
4465
4466         * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
4467         c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
4468         gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
4469         tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
4470         config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
4471         config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
4472         config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
4473         config/iq2000/iq2000.c, config/m32r/m32r.c,
4474         config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
4475         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
4476         config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
4477         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
4478         config/sh/symbian.c, config/stormy16/stormy16.c,
4479         config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
4480         and %> as appropriate.  Use %' as apostrophe in diagnostics where
4481         applicable.  Use %< and %> in place of '' quotes where applicable.
4482         Use %qs in place of %<%s%>.  Consistently quote __builtin function
4483         names.
4484
4485 2004-11-09  Hans-Peter Nilsson  <hp@bitrange.com>
4486
4487         * gdbinit.in (pbb, pbm): New macros.
4488
4489 2004-11-08 Jeff Law  <law@redhat.com>
4490
4491         * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
4492         implementing it inline.
4493
4494         * cfganal.c (find_edge): Search pred->succs or succ->preds,
4495         whichever is shorter.
4496
4497 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4498
4499         * passes.c (rest_of_handle_jump): Remove dead code.
4500
4501 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4502
4503         * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
4504         the last used element in the worklist.
4505
4506 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4507
4508         * tree-inline.c (remap_save_expr): Make it static.
4509         * tree-inline.h: Remove the corresponding prototype.
4510
4511 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4512
4513         * tree-ssa-loop-niter.c (upper_bound_in_type,
4514         lower_bound_in_type): Make them static.
4515         * tree.h: Remove the corresponding prototypes.
4516
4517 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4518
4519         * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
4520         static.
4521         * tree-ssa-live.h: Remove the corresponding prototypes.
4522
4523 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4524
4525         * tree-if-conv.c (tree_if_conversion): Make it static.
4526         * tree-flow.h: Remove the corresponding prototype.
4527
4528 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4529
4530         * tree-ssa-operands.c (build_ssa_operands): Make it static.
4531         * tree-flow.h: Remove the corresponding prototype.
4532
4533 2004-11-08  Andrew Pinski  <pinskia@physics.uc.edu>
4534
4535         PR tree-opt/18299
4536         * tree-inline.c (copy_body_r): Change "t = t" to empty
4537         statement instead of "t".
4538
4539 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4540
4541         * modulo-sched.c (create_partial_schedule,
4542         free_partial_schedule, reset_partial_schedule,
4543         ps_add_node_check_conflicts, rotate_partial_schedule): Make
4544         them static.
4545
4546 2004-11-08  Richard Henderson  <rth@redhat.com>
4547
4548         * expmed.c (extract_force_align_mem_bit_field): Correct handling at
4549         the end of a page.
4550
4551 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4552
4553         * sched-deps.c (add_insn_mem_dependence): Make it static.
4554         * sched-int.h: Remove the corresponding prototypes.
4555
4556 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4557
4558         * flow.c (allocate_bb_life_data): Make it static.
4559         * basic-block.h: Remove the corresponding prototype.
4560
4561 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4562
4563         * calls.c (split_complex_values, split_complex_types): Make
4564         them static.
4565         * expr.h: Remove the corresponding prototypes.
4566
4567 2004-11-08  Richard Earnshaw  <rearnsha@arm.com>
4568
4569         * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
4570         with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
4571
4572 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4573
4574         * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
4575         statements that always trigger.
4576
4577 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4578
4579         * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
4580         tree-scalar-evolution.c, tree-ssa-loop-im.c,
4581         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
4582         tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
4583         appropriate.
4584
4585 2004-11-08  Ben Elliston  <bje@au.ibm.com>
4586
4587         * cgraph.h (cgraph_calls_p): Remove.
4588         * cgraph.c (cgraph_calls_p): Likewise.
4589
4590         * varray.h (varray_copy): Remove.
4591         * varray.c (varray_copy): Likewise.
4592
4593 2004-11-07  Andrew Pinski  <pinskia@physics.uc.edu>
4594
4595         PR target/18269
4596         * config/darwin.c (machopic_indirect_data_reference):
4597         Call gen_macho_high and gen_macho_low instead of
4598         checking the mode and calling gen_macho_high_di directly.
4599         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4600         * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
4601         to darwin.md.
4602         (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
4603         load_macho_picbase, macho_low, macho_high): Removed.
4604         (builtin_setjmp_receiver): Call gen_macho_high and
4605         gen_macho_low instead of checking the mode and calling
4606         gen_macho_high_di directly.
4607         * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
4608         (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
4609         Moved from rs6000.md.
4610         (macho_high): New expander.
4611         (macho_high_si): Renamed version of macho_high from rs6000.md.
4612         (macho_low): New expander.
4613         (macho_low_si): Renamed version of macho_low from rs6000.md.
4614         (load_macho_picbase): New expander.
4615         (load_macho_picbase_si): Renamed version of load_macho_picbase
4616         from rs6000.md.
4617         (macho_correct_pic): New expander.
4618         (macho_correct_pic_si): Renamed version of macho_correct_pic
4619         from rs6000.md.
4620
4621 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
4622
4623         * c-decl.c (finish_struct): Use complete sentences for diagnostic
4624         for structures or unions with no members or named members.
4625
4626 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
4627
4628         * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
4629         taking address of bit-field by assertion.
4630
4631 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
4632
4633         * config/s390/s390.md (attribute "op_type"): Default to "NN".
4634         (attribute "atype"): Default to "agen".
4635         (attribute "length"): Default to 6.
4636         (define_asm_attibutes): Remove.
4637         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
4638         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
4639         "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
4640         Do not set type attribute to "cs" where already default.
4641         ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
4642         "*negdi2_31"):
4643         Do not set type attribute to "other" where already default.
4644         ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
4645         "*strlendi", "*strlensi",
4646         "*movmem_long_64", "*movmem_long_31",
4647         "*clrmem_long_64", "*clrmem_long_31",
4648         "*cmpmem_long_64", "*cmpmem_long_31",
4649         "*cmpint_si", "*cmpint_di",
4650         "addti3", "*adddi3_31z", "*adddi3_31",
4651         "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
4652         "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
4653         "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
4654         "*pool_entry", "pool_align", "pool_section_start",
4655         "pool_section_end", "main_pool", "reload_base_31", "pool"):
4656         Do not set op_type attribute to "NN" where already default.
4657         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
4658         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
4659         "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
4660         Do not set atype attribute to "agen" where already default.
4661         ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
4662
4663 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
4664
4665         * config/mips/t-iris6 (tp-bit.c): Fix target filename.
4666
4667 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
4668
4669         PR target/16830
4670         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
4671         R3000 and R4000 macros on IRIX.
4672
4673 2004-11-06  Andreas Schwab  <schwab@suse.de>
4674
4675         PR target/16286
4676         * config/rs6000/altivec.h: Replace bool by __bool and pixel by
4677         __pixel.
4678
4679 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4680
4681         * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
4682
4683 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
4684
4685         * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
4686         matches no insns already matched by other reservations.
4687         * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
4688         matches no insns already matched by other reservations.
4689         ("x_ss"): Remove, replace by ...
4690         ("x_cs"): ... this new reservation.  Check type instead of op_type.
4691         Update bypasses to use x_cs instead of x_ss.
4692         ("x_nn"): Remove, replace by ...
4693         ("x_other"): ... this new reservation.  Check type instead of op_type.
4694         Add x_other and x_branch to bypasses.
4695         ("x_vs"): New reservation.
4696         * config/s390/s390.md (attribute "type"): Default according to op_type.
4697         ("*execute"): Set type to "cs".
4698
4699 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4700
4701         * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
4702         if we are in GIMPLE.
4703
4704 2004-11-06  Hans-Peter Nilsson  <hp@bitrange.com>
4705
4706         PR rtl-optimization/17933
4707         * rtlanal.c (dead_or_set_regno_p): Break out common code to...
4708         (covers_regno_p): New function.  Handle SETs of PARALLEL,
4709         and defer the rest to...
4710         (covers_regno_no_parallel_p): New function.
4711
4712 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4713
4714         * config/sparc/sparc.c (function_arg_record_value_1): Skip
4715         fields with zero length.
4716         (function_arg_record_value_2): Likewise.
4717         (function_arg_record_value_3): Use smallest_mode_for_size
4718         instead of mode_for_size.
4719         (function_arg_union_value): Return naked register for unions
4720         with zero length.
4721
4722 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4723
4724         * config/sparc/sparc.c (scan_record_type): Handle vector types.
4725         (function_arg_slotno): Handle vector types specially.
4726         (function_arg_record_value_1): Split fields with vector type and
4727         BLKmode into their subparts.
4728         (function_arg_record_value_2): Likewise.  Be prepared to handle
4729         more than 2 registers per field.
4730         (function_arg_union_value): Increment regno inside the loop.
4731         (function_arg_vector_value): New function.
4732         (function_arg): Use it to split fields with vector type and
4733         BLKmode into their subparts and build a PARALLEL.  Treat
4734         other vector types like floats.
4735         (function_value): Likewise.
4736         (sparc_pass_by_reference): Handle vector types.
4737         (sparc_return_in_memory): Likewise.
4738
4739 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4740
4741         * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
4742         statement that never triggers.
4743
4744 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
4745
4746         * config/s390/2064.md ("z_o2", "z_o3"): Remove.
4747         * config/s390/2084.md ("x_o2", "x_o3"): Remove.
4748         ("x_fdivd"): Use also for fsqrtd type.
4749         ("x_fdivs"): Use also for fsqrts type.
4750         * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
4751         ("fix_truncdfsi2_ieee"): Set type to "ftoi".
4752         ("fix_truncdfsi2_ibm"): Set type to "other".
4753         ("floatdidf2", "floatdisf2"): Do not clobber CC.
4754         ("floatsidf2", "floatsidf2_ieee"): Likewise.
4755         ("floatsisf2", "floatsisf2_ieee"): Likewise.
4756         ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
4757         ("truncdfsf2_ibm"): Only allow "nonimmediate_operand".  Use LER
4758         instead of LRER.
4759         ("extendsfdf2_ibm"): Do not set atype.  Set type to "floads".
4760         ("sqrtdf2"): Set type to "fsqrtd".
4761         ("sqrtsf2"): Set type to "fsqrts".
4762
4763 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4764
4765         * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
4766         pointer to the last PHI node in the new PHI chain.
4767
4768 2004-11-06  Kaz Kojima  <kkojima@gcc.gnu.org>
4769
4770         * config/sh/sh.c (prepare_move_operands): Emit a use of r12
4771         for non-PIC TLS_MODEL_INITIAL_EXEC case.
4772
4773 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4774
4775         * expmed.c: Fix a comment typo.
4776
4777 2004-11-06  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4778
4779         PR target/18106
4780         * config/i386/cygming.h
4781         [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
4782
4783 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4784
4785         * config/sh/sh4a.md: Fix copyright.
4786
4787 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4788
4789         * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
4790         with GCC.
4791
4792 2004-11-05  David Edelsohn  <edelsohn@gnu.org>
4793
4794         * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
4795         when carry not used.  Suggested by Torbjorn Granlund.
4796
4797         * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
4798         operand[1] unnecessarily.  Suggested by Eric Christopher.
4799         (rs6000_adjust_cost): Increase latency of store to wider load.
4800         (rs6000_rtx_costs): mulli only allows 16-bit constants.
4801
4802 2004-11-05  Stan Shebs  <shebs@apple.com>
4803
4804         * config/rs6000/rs6000.c (machopic_output_stub): Output
4805         ldu instead of lwzu for 64-bit stubs.
4806
4807 2004-11-05  Richard Henderson  <rth@redhat.com>
4808
4809         * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
4810         size 2 with BWX.
4811         (alpha_expand_unaligned_store): Likewise.
4812
4813 2004-11-05  Richard Henderson  <rth@redhat.com>
4814
4815         * expmed.c (extract_force_align_mem_bit_field): New.
4816         (extract_split_bit_field): Call it.
4817
4818 2004-11-05  Richard Henderson  <rth@redhat.com>
4819
4820         * ia64.md (UNSPEC_SHRP): New.
4821         (dshift_count_operand): New.
4822         (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
4823         * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
4824
4825 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
4826
4827         * c-typeck.c (output_init_element): Return early if value is
4828         error_mark_node.
4829
4830 2004-11-05  James E Wilson  <wilson@specifixinc.com>
4831
4832         * invoke.texi (-fno-guess-branch-probability): Rewrite.
4833
4834         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
4835         1 to UNSPEC_GR_SPILL.
4836
4837 2004-11-05  Andreas Krebbel  <krebbel1@de.ibm.com>
4838
4839         * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
4840         (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
4841
4842 2004-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4843
4844         * bitmap.h (enum bitmap_bits): Remove.
4845         (bitmap_operation): Remove.
4846         (bitmap_and, bitmap_and_into, bitmap_and_compl,
4847         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
4848         bitmap_xor_into): Prototype.
4849         * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
4850         (bitmap_operation): Remove.
4851         (bitmap_and, bitmap_and_into, bitmap_and_compl,
4852         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
4853         bitmap_xor_into): New.
4854         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
4855
4856         PR tree-optimization/18307
4857         * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
4858         and ORIG being the same node.
4859
4860 2004-11-04  Geoffrey Keating  <geoffk@apple.com>
4861
4862         * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
4863         (install-mkheaders): Install the version built for the
4864         host, not for the build machine.
4865         * configure.ac: Always run fixincludes.
4866         (all_outputs): Remove mkheaders.
4867         * configure: Regenerate.
4868         * fixinc.in: Move to fixincludes/.
4869         * mkfixinc.sh: Likewise.
4870         * mkheaders.in: Likewise.
4871         * README-fixinc: Likewise.
4872
4873 2004-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
4874
4875         PR target/18263
4876         * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
4877         equivalent on the A4.
4878
4879 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
4880
4881         * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
4882         doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
4883         doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
4884         doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
4885         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
4886         doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
4887         doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
4888         doc/trouble.texi: Correct end-of-sentence markup and markup of
4889         "etc.", "e.g." and "i.e.".  Use @code in various places where
4890         appropriate.
4891
4892 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
4893
4894         * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
4895         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
4896         doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
4897         whitespace.
4898
4899 2004-11-04  Mark Mitchell  <mark@codesourcery.com>
4900
4901         * config/arm/arm.c (arm_handle_notshared_attribute): New function.
4902         * doc/extend.texi: Document "notshared" attribute.
4903
4904 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4905
4906         * tree-phinodes.c (make_phi_node): Make it static.
4907         * tree.h: Remove the prototypes for make_phi_node.
4908
4909 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4910
4911         * stmt.c (expand_asm, expand_asm_operands): Make them static.
4912         * tree.h: Remove the prototypes for expand_asm and
4913         expand_asm_operands.
4914
4915 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4916
4917         * passes.c (rest_of_compilation): Make it static.
4918         * toplev.h: Remove the prototype for rest_of_compilation.
4919
4920 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4921
4922         * jump.c (cleanup_barriers): Use delete_insn instead of
4923         delete_barrier.
4924         (delete_barrier): Remove.
4925         * rtl.h: Remove the corresponding prototype.
4926
4927 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4928
4929         * expr.c (mostly_zero_p): Make it static.
4930         * tree.h: Remove the prototype for mostly_zeros_p.
4931
4932 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4933
4934         * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
4935
4936 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4937
4938         * builtins.c (expand_builtin_return_addr,
4939         expand_builtin_longjmp, expand_builtin_trap): Make them static.
4940         * expr.h: Remove the prototypes for expand_builtin_longjmp and
4941         expand_builtin_trap.
4942         * tree.h: Remove the prototype for expand_builtin_return_addr.
4943
4944 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4945
4946         * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
4947         * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
4948         with VAL being NULL.
4949
4950 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4951
4952         * cfghooks.c (delete_basic_block): Remove code to truncate
4953         edge vectors.
4954
4955 2004-11-04  Andrew Pinski  <pinskia@physics.uc.edu>
4956
4957         * flow.c (init_propagate_block_info): Change the type of i to
4958         unsigned.
4959
4960 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
4961
4962         PR tree-optimization/18184
4963         * c-typeck.c (comptypes): Do not treat pointers of different
4964         modes or alias-all flags as equivalent.
4965         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
4966
4967 2004-11-04  Joseph S. Myers  <joseph@codesourcery.com>
4968
4969         * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
4970         reference specific C parser files in examples.
4971
4972 2004-11-04  Richard Sandiford  <rsandifo@redhat.com>
4973
4974         PR target/15342
4975         * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
4976         as OP_INOUT if the instruction is predicated.
4977
4978 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4979
4980         * bitmap.h: Fix a comment typo.  Follow spelling conventions.
4981         * tree-vectorizer.c: Fix a comment typo.
4982
4983 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4984
4985         * sdbout.c (SDB_GENERATE_FAKE): Remove.
4986         (gen_fake_label): Don't use SDB_GENERATE_FAKE.
4987         * system.h: Poison SDB_GENERATE_FAKE.
4988         * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
4989
4990 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
4991
4992         * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
4993
4994 2004-11-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4995
4996         PR other/18277
4997         * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
4998         2004-10-29 patch
4999
5000 2004-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5001
5002         * predict.c (propagate_freq): Make bitno unsigned. Move
5003         npredecessors update out of loop.
5004
5005         * bitmap.h (bitmap_iterator): Remove word_bit and bit
5006         fields. Rename others.
5007         (bmp_iter_common_next_1, bmp_iter_single_next_1,
5008         bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
5009         bmp_iter_and_not_next_1, bmp_iter_and_not_init,
5010         bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
5011         bmp_iter_and_next): Remove.
5012         (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
5013         bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
5014         New.
5015         (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
5016         EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
5017
5018         * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
5019         * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
5020         bitmap_and_into, bitmap_ior_into as appropriate.
5021         * except.c (remove_eh_handler): Likewise.
5022         * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
5023         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
5024         * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
5025         * tree-ssa-live.h (live_merge_and_clear): Likewise.
5026         * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
5027         Likewise.
5028
5029         * bitmap.c (bitmap_print): Make bitno unsigned.
5030         * bt-load.c (clear_btr_from_live_range,
5031         btr_def_live_range): Likewise.
5032         * caller-save.c (save_call_clobbered_regs): Likewise.
5033         * cfganal.c (compute_dominance_frontiers_1): Likewise.
5034         * cfgcleanup.c (thread_jump): Likewise.
5035         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5036         * conflict.c (conflict_graph_compute): Likewise.
5037         * ddg.c (add_deps_for_use): Likewise.
5038         * df.c (df_refs_update): Likewise.
5039         * except.c (remove_eh_handler): Likewise.
5040         * flow.c (verify_local_live_at_start, update_life_info,
5041         initialize_uninitialized_subregs, propagate_one_insn,
5042         free_propagate_block_info, propagate_block, find_use_as_address,
5043         reg_set_to_hard_reg_set): Likewise.
5044         * gcse.c (clear_modify_mem_tables): Likewise.
5045         * global.c (global_conflicts, build_insn_chain): Likewise.
5046         * ifcvt.c (dead_or_predicable): Likewise.
5047         * local-alloc.c (update_equiv_regs): Likewise.
5048         * loop.c (load_mems): Likewise.
5049         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
5050         Likewise.
5051         * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
5052         Likewise.
5053         * reload1.c (order_regs_for_reload, finish_spills): Likewise.
5054         * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
5055         * sched-rgn.c (propagate_deps
5056         * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
5057         * tree-dfa.c (dump_dfa_stats
5058         tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
5059         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
5060         Likewise.
5061         * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
5062         free_temp_expr_table, find_replaceable_exprs): Likewise.
5063         * tree-sra.c (scan_function, scalarize_parms): Likewise.
5064         * tree-ssa-alias.c (init_alias_info,
5065         compute_points_to_and_addr_escape,
5066         compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
5067         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
5068         * tree-ssa-live.c (new_tree_live_info, live_worklist,
5069         calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
5070         sort_coalesce_list, build_tree_conflict_graph, dump_live_info
5071         tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
5072         tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
5073         add_call_read_ops): Likewise.
5074         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
5075         * tree-ssa-live.h (num_var_partitions): Return unsigned.
5076
5077 2004-11-03  Dorit Naishlos  <dorit@il.ibm.com>
5078
5079         PR tree-optimization/18009
5080         * tree-vectorizer.h (enum dr_alignment_support): New type.
5081         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
5082         (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
5083         single data_reference (instead of a varray of references).
5084         * tree-vectorizer.c (new_loop_vec_info): Likewise.
5085         (vect_gen_niters_for_prolog_loop): Likewise.
5086         (vect_update_inits_of_drs): Likewise.
5087
5088         (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
5089         vect_enhance_data_refs_alignment.
5090         (vect_do_peeling_for_alignment): Likewise.
5091         (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
5092         this functionality used to be in vect_analyze_data_refs_alignment.
5093         Also update DR_MISALIGNMENT due to peeling; this functionality used to
5094         be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
5095         (vect_analyze_data_refs_alignment): Decision on whether and by how much
5096         to peel moved to vect_enhance_data_refs_alignment. Call
5097         vect_supportable_dr_alignment.
5098
5099         (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
5100         (vect_compute_data_refs_alignment): Return bool. Consider return value
5101         of vect_compute_data_ref_alignment and return true/false accordingly.
5102         (vect_enhance_data_refs_alignment): Consider return value of
5103         vect_compute_data_refs_alignment and return true/false accordingly.
5104
5105         (vect_supportable_dr_alignment): New function.
5106         (vectorizable_store): Call vect_supportable_dr_alignment.
5107         (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
5108         support checks moved from here to vect_supportable_dr_alignment.
5109
5110         (vect_transform_loop): Avoid 80 columns overflow.
5111
5112 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
5113
5114         * timevar.c (timevar_enable): Change from
5115         static.
5116         (timevar_push): Rename to ...
5117         (timevar_push_1): this and remove the
5118         enabled check.
5119         (timevar_pop): Rename to ...
5120         (timevar_pop_1): this and remove the
5121         enabled check.
5122         * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
5123         (timevar_pop): New macro.
5124         (timevar_push): New macro.
5125         (timevar_enable): Declare.
5126
5127 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
5128
5129         * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
5130         libgcc for shared libraries.
5131
5132 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
5133
5134         * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
5135         * config/s390/s390.c (s390_split_access_reg): New function.
5136         (regclass_map): Add access registers.
5137         (get_thread_pointer): Use access register instead of UNSPEC_TP.
5138         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
5139         (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
5140         (TP_REGNUM): New define.
5141         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5142         REG_ALLOC_ORDER): Add access registers.
5143         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
5144         CANNOT_CHANGE_MODE_CLASS): Support access registers.
5145         (enum reg_class): Add ACCESS_REGS.
5146         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
5147         (REG_CLASS_FROM_LETTER): Add 't' constraint.
5148         (REGISTER_NAMES): Add access registers.
5149         * config/s390/s390.md (UNSPEC_TP): Remove.
5150         ("*movdi_64"): Add access register alternatives.  Provide splitters
5151         to split DImode access register <-> GPR moves into SImode moves.
5152         ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
5153         ("movstrictsi"): Likewise.
5154         ("get_tp_64", "get_tp_31"): Reimplement using access registers.
5155         ("set_tp_64", "set_tp_31"): Likewise.
5156         ("*set_tp"): New insn.
5157
5158 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
5159
5160         * tree-phinodes.c (resize_phi_node): Copy only a portion of
5161         the PHI node currently in use.
5162
5163 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
5164
5165         PR tree-opt/18231
5166         * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
5167         also.
5168
5169 2004-11-03  Andrew MacLeod  <amacleod@redhat.com>
5170
5171         PR tree-optimization/18270
5172         * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
5173         abnormal edges, commit all pending stmts on incoming edges.
5174
5175 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
5176
5177         * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
5178         cause extra costs.  Generate canonical RTL.
5179
5180 2004-11-02  Daniel Berlin  <dberlin@dberlin.org>
5181
5182         * lambda-code.c (lambda_compute_auxillary_space): Update comments.
5183         (lambda_compute_target_space). Ditto.
5184         * lambda.h (lambda_trans_matrix): Ditto.
5185         (lambda_linear_expression): Ditto.
5186         (lambda_body_vector): Ditto.
5187         (lambda_loopnest): Ditto.
5188         * tree-loop-linear.c (gather_interchange_stats): Combine tests,
5189         update comments, and remove pointless addition of 0.
5190         (linear_transform_loops): Update comments.
5191
5192 2004-11-03  Sebastian Pop  <pop@cri.ensmp.fr>
5193
5194         * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
5195         CEIL_MOD_EXPR.
5196
5197 2004-11-03 Jeff Law  <law@redhat.com>
5198
5199         * predict.c (struct block_info_def): Kill "tovisit" field.
5200         (propagate_freq): Accept new "tovisit" parameter.  Change
5201         read/write access methods for "tovisit" to check the "tovisit"
5202         bitmap instead of a bit in block_info_def.
5203         (estimate_loops_at_level): Allocate "tovisit" bitmap.  Pass
5204         it to propagate_freq.
5205
5206         * stmt.c (expand_case): Speed up code to detect duplicate case
5207         label targets and count unique case label targets.
5208
5209 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
5210
5211         * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
5212
5213 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
5214
5215         * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
5216
5217 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
5218
5219         * tree-cfg.c (find_taken_edge): Abort if we are given a
5220         statement that is neither COND_EXPR nor SWITCH_EXPR.
5221
5222 2004-11-02  Zdenek Dvorak  <dvorakz@suse.cz>
5223
5224         * fold-const.c (fold): Reassociate also (x - mult) + mult and
5225         (mult - x) + mult.  Cast operands of expression after applying
5226         distributive law to the correct types.  Apply distributive law
5227         to a * c - b * c for all non-float types.
5228
5229 2004-11-02  Geoffrey Keating  <geoffk@apple.com>
5230
5231         * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
5232         because we don't want to run them now; instead, set them to
5233         stmp-install-fixproto or stmp-install-fixinc.
5234         * Makefile.in (stmp-install-fixproto): New.
5235         (stmp-install-fixinc): New.
5236         * configure: Regenerate.
5237
5238 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
5239
5240         * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
5241         of bitmap_xor.
5242
5243 2004-11-02  Ziemowit Laski  <zlaski@apple.com>
5244
5245         * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
5246         (c_types_compatible_p): Move function definition...
5247         * c-objc-common.c (c_types_compatible_p): ...here.
5248         * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
5249         c-lang.c.
5250
5251 2004-11-02  Steven Bosscher  <stevenb@suse.de>
5252
5253         * cfgloop.h (struct loop): Update comment.
5254         * cse.c (cse_main): Remove obsolete comment.
5255
5256         * expr.h (gen_cond_trap): Move prototype under functions provided
5257         by optabs.c.
5258         (canonicalize_condition, get_condition): Move to...
5259         * rtl.h (canonicalize_condition, get_condition): ...here.
5260         (branch_target_load_optimize): Add comment that this function is
5261         in bt-load.c.
5262         * loop.c (canonicalize_condition, get_condition): Move to...
5263         * rtlanal.c (canonicalize_condition, get_condition): ...here.
5264         * sched-deps.c (get_condition): Rename to sched_get_condition.
5265         (add_dependence): Update this caller.
5266
5267 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
5268
5269         PR tree-opt/16808
5270         * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
5271         that the vops get marked for renaming.
5272
5273 2004-11-02  Andreas Krebbel  <krebbel1@de.ibm.com>
5274
5275         * config/s390/s390.md ("movcc"): Set type attribute.
5276
5277 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
5278
5279         * tree-phinodes.c (add_phi_arg): Add an assertion that the
5280         edge already exists.
5281
5282 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
5283
5284         * tree-phinodes.c (remove_phi_arg_num): Do not zero the
5285         element that's being removed.
5286
5287 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
5288
5289         * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
5290         arguments using PENDING_STMT.
5291         (thread_block): Call copy_phis_to_block after redirecting an
5292         edge.
5293
5294 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
5295
5296         * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
5297         bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
5298         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
5299         (bitmap_ior_and_compl_into): Produce bool.
5300         (bitmap_union_of_diff): Rename to ...
5301         (bitmap_ior_and_compl): ... here. Produce bool.
5302         * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
5303         bitmap_operation directly.
5304         (bitmap_union_of_diff): Rename to ...
5305         (bitmap_ior_and_compl): ... here. Return bool, use
5306         bitmap_operation directly.
5307         * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
5308         (df_ru_transfer_function, df_lr_transfer_function): Likewise.
5309         * global.c (modify_bb_reg_pav): Likewise.
5310
5311         * bitmap.h (bitmap_equal_p): Return bool.
5312         (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
5313         * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
5314         (bitmap_intersect_p, bitmap_intersect_compl_p): New.
5315         * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
5316         bitmap_intersect_compl_p.
5317         * ifcvt (dead_or_predicable): Likewise.
5318
5319 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
5320
5321         PR rtl-optimization/17104
5322         * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
5323         loads in zero_extend.
5324
5325 2004-11-02  Danny Smith  <dannysmith@users.sourceforge.net>
5326
5327         PR debug/18242
5328         * toplev.c (debug_type_names): Remove "dwarf-1".
5329
5330 2004-11-02  Ben Elliston  <bje@au.ibm.com>
5331
5332         * timevar.h (timevar_get): Remove.
5333         * timevar.c (timevar_get): Remove unused function.
5334
5335 2004-11-02  Joseph S. Myers  <joseph@codesourcery.com>
5336
5337         * doc/include/texinfo.tex: Update from Texinfo CVS.
5338
5339 2004-11-02  Ben Elliston  <bje@au.ibm.com>
5340
5341         * cppdefault.h (cpp_SYSROOT): Remove.
5342         * cppdefault.c (cpp_SYSROOT): Likewise.
5343
5344 2004-11-01  Andrew MacLeod  <amacleod@redhat.com>
5345
5346         PR tree-optimization/16447
5347         * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
5348         bsi_commit_edge_inserts_1, and make funtion external.  Return new block.
5349         (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
5350         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
5351         * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
5352         * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
5353         (same_stmt_list_p): New.  Return TRUE if edge is to be forwarded.
5354         (identical_copies_p): New.  Return true is two copies are the same.
5355         (identical_stmt_lists_p): New.  Return true if stmt lists are the same.
5356         (analyze_edges_for_bb): New.  Determine how best to insert edge stmts
5357         for a basic block.
5358         (perform_edge_inserts): New.  Determine what to do with all stmts that
5359         have been inserted on edges.
5360         (remove_ssa_form):  Analyze and commit edges from here.
5361
5362 2004-11-01  Andrew Pinski  <pinskia@physics.uc.edu>
5363
5364         PR bootstrap/18232
5365         * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
5366         (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
5367         (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
5368         (EXECUTE_IF_AND_IN_BITMAP): Likewise.
5369
5370 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
5371
5372         PR c/18239
5373         * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
5374         parameter declarations.
5375
5376 2004-11-01  Andreas Krebbel  <krebbel1@de.ibm.com>
5377
5378         * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
5379         (s390_secondary_input_reload_class)
5380         (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
5381         register.
5382         (s390_expand_cmpmem): Enable cmpmem implementation.
5383         * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
5384         Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
5385         (REG_CLASS_FROM_LETTER): New constraint 'c' added.
5386         * config/s390/s390.md ("movcc"): New insn pattern.
5387         * doc/md.texi: Document 'c' constraint for s390.
5388
5389 2004-11-01  Nathan Sidwell  <nathan@codesourcery.com>
5390
5391         PR c++/18064
5392         * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
5393         extension.
5394
5395 2004-10-16  Daniel Berlin  <dberlin@dberlin.org>
5396
5397         Fix PR tree-optimization/17672
5398         Fix PR tree-optimization/18168
5399
5400         * lambda-code.c (lambda_lattice_compute_base): Fix reversed
5401         assert test.
5402         (gcc_tree_to_linear_expression): Add extra to existing constant.
5403         (depth_of_nest): Factor out function used in various places.
5404         (gcc_loop_to_lambda_loop): Clean up code a little bit. No
5405         functional changes.
5406         (find_induction_var_from_exit_cond): Stop guessing, and just
5407         get the right answer :).
5408         (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
5409         Print out message about result of attempt to create perfect nest.
5410         (lbv_to_gcc_expression): Add type argument, use it to do math
5411         and induction variable creation.
5412         (lle_to_gcc_expression): Ditto.
5413         (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
5414         oldiv. Pass type argument to lle_to_gcc_expression and
5415         lbv_to_gcc_expression.
5416         Reset number of iterations after transformation.
5417         (perfect_nestify): Remove useless pre-allocation, and cleanup
5418         a small amount.
5419
5420         * tree-data-ref.c (build_classic_dist_vector): Return false for
5421         dependences completely outside of the loop nest we asked about.
5422         (build_classic_dir_vector): Ditto.
5423         (compute_data_dependences_for_loop): Only add dependence relations
5424         inside the loop we asked about.
5425
5426         * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
5427         Compute immediate uses.
5428
5429         * tree-optimize.c: Move linear_transform_loops to before ivcanon.
5430
5431 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
5432
5433         * tree-cfg.c (thread_jumps): Fix a comment typo.
5434
5435 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
5436
5437         * tree-cfg.c (thread_jumps): Fix a comment typo.
5438
5439 2004-10-31  Nicolas Pitre <nico@cam.org>
5440
5441         * config/arm/ieee754-sf.S (floatdisf): Fix regression with
5442         values smaller than 2^32.
5443
5444 2004-10-31 Jeff Law  <law@redhat.com>
5445
5446         * cfgloop.h (struct loop): Remove unused "nodes" field.
5447         * timevar.def (TV_TREE_LOOP_BOUNDS): New.
5448         * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
5449         instead of calling flow_bb_inside_loop_p for every basic block
5450         in the function.
5451         * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
5452
5453 2004-10-31  Graham Stott <graham.stott@btinternet.com>
5454
5455         * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo.  Use
5456         INT_5_BITS instead of VAL_5_BITS_P.
5457
5458 2004-10-31  Roger Sayle  <roger@eyesopen.com>
5459
5460         PR middle-end/14521
5461         * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
5462         for consistent quoting in diagnostic messages.
5463         (expand_call_inline): Likewise.
5464         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5465         * tree-ssa.c (warn_uninitialized_var): Likewise.
5466         (warn_uninitialized_phi): Likewise.
5467
5468 2004-10-31  Richard Sandiford  <rsandifo@redhat.com>
5469
5470         * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
5471         mode check.
5472
5473 2004-10-31  Kazu Hirata  <kazu@cs.umass.edu>
5474
5475         * c-common.c: Fix a comment typo.
5476
5477 2004-10-31  Jason Merrill  <jason@redhat.com>
5478
5479         PR middle-end/17526
5480         * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
5481         aggregate types that are not BLKmode.
5482
5483 2004-10-30  Ziemowit Laski  <zlaski@apple.com>
5484
5485         * c-common.h (objc_lookup_ivar): Add second parameter to
5486         prototype.
5487         * c-typeck.c (build_external_ref): After looking up symbol,
5488         pass it to objc_lookup_ivar() to decide whether it or the
5489         ivar should be used, rather than deciding the issue locally.
5490         * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
5491         which is simply returned in the non-ObjC case.
5492
5493 2004-10-30  Danny Smith  <dannysmith@users.sourceforge.net>
5494
5495         * sdbout.c (sdbout_symbol): Do not output type .def statements
5496         for builtin types.
5497
5498 2004-10-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5499
5500         * c-common.c (catenate_strings): New.
5501         (c_parse_error): Use it.  Don't over-escape.
5502
5503 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5504
5505         * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
5506         modify the for loop expressions for it.  Remove unnecessary casts.
5507         (sh_expand_prologue): Declare reg as unsigned.
5508         (sh_gimplify_va_arg_expr): Initinalize lab_over.
5509         (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
5510
5511 2004-10-30  Geoffrey Keating  <geoffk@apple.com>
5512
5513         * doc/invoke.texi (Darwin Options): Improve description of
5514         how the subtype is chosen.
5515
5516 2004-10-30  Roger Sayle  <roger@eyesopen.com>
5517
5518         PR middle-end/18096
5519         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
5520         the stack adjustment, "size", is valid for Pmode.  If the stack
5521         frame is too large, generate a trap insn and issue a warning.
5522
5523 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
5524
5525         * tree-ssa-dom.c: Fix comment typos.
5526
5527 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5528
5529         * config/sh/sh.c (prepare_move_operands): Use operands[0]
5530         for the output rtl if no_new_pseudos is set.  Remove redundant
5531         line.
5532
5533 2004-10-30  Joseph S. Myers  <joseph@codesourcery.com>
5534
5535         PR c/16666
5536         * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
5537         determining whether to copy parameter types from a previous
5538         prototype declaration.
5539
5540 2004-10-29  Roger Sayle  <roger@eyesopen.com>
5541
5542         PR rtl-optimization/17581
5543         * cselib.c (cselib_process_insn): The last instruction of a libcall
5544         block, with the REG_RETVAL note, should be considered in the libcall.
5545         * gcse.c (do_local_cprop): Allow constants to be propagated outside
5546         of libcall blocks.
5547         (adjust_libcall_notes): Use simplify_replace_rtx instead of
5548         replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
5549
5550 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
5551
5552         * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
5553
5554 2004-10-29 Jeff Law  <law@redhat.com>
5555
5556         * tree-ssa-dom.c (struct edge_info): New structure holding
5557         edge equivalences and edge redirection information.
5558         (get_eq_expr_value, record_dominating_conditions): Kill.
5559         (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
5560         Call record_edge_info.
5561         (allocate_edge_info, free_edge_info): New.
5562         (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
5563         rather than cprop_into_phis.  Free all edge infos before threading
5564         jumps.
5565         (thread_across_edge): Allocate new edge info structures as needed
5566         and store the redirection target into the edge info structure
5567         instead of the edge's AUX field.
5568         (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
5569         (record_equivalence_from_incoming_edge): Lose unnecessary argument.
5570         Revamp code which finds and records equivalences associated with
5571         edges to use saved data in the edge_info structure.
5572         (record_equivalencs_from_phis): Similarly.
5573         (dom_opt_finalize_block): Revamp code which finds and records
5574         equivalences associated with edges to use saved data in the
5575         edge_info structure.
5576         (build_and_record_new_cond): New function.
5577         (record_conditions): Use build_and_record_new_cond to record
5578         dominating conditions.
5579         (record_edge_info): New function.
5580         (record_range): Tighten test for conditions which create
5581         useful range records.
5582
5583 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
5584
5585         * config/i386/darwin.h (ASM_SPEC): Simplify.
5586         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
5587         * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
5588         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
5589         * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
5590         (LINK_SPEC): Do pass -arch here.  Handle -force_cpusubtype_ALL
5591         in all cases.  Pass the right -arch or -arch_only based on -mcpu.
5592         (ASM_SPEC): Handle -force_cpusubtype_ALL.
5593         * doc/invoke.texi (Darwin Options): Improve documentation for
5594         Darwin linker (and libtool) switches.
5595
5596         * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
5597
5598 2004-10-29  Stan Shebs  <shebs@apple.com>
5599
5600         * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
5601
5602 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
5603
5604         * tree-phinodes.c (allocate_phi_node): New.
5605         (make_phi_node, resize_phi_node): Use it.
5606
5607 2004-10-29  David Edelsohn  <edelsohn@gnu.org>
5608
5609         * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
5610         * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
5611
5612 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
5613
5614         * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
5615         the whole PHI node.
5616         * tree.h (tree_phi_node): Tell the garbage collector to chase
5617         num_args arguments.
5618
5619 2004-10-29  Richard Earnshaw  <rearnsha@arm.com>
5620
5621         * opts.c (decode_options): Lower the crossjump threshold for -Os.
5622
5623 2004-10-29  Diego Novillo  <dnovillo@redhat.com>
5624
5625         * tree.h (struct tree_ssa_name): Remove field 'equiv'.
5626
5627 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5628
5629         * bitmap.h (bitmap_empty_p): New.
5630         (bitmap_and, bitmap_and_into, bitmap_and_compl,
5631         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
5632         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
5633         operation macros.
5634         (bitmap_ior_and_compl): Rename to ...
5635         (bitmap_ior_and_compl_into): ... here.
5636         * bitmap.c (bitmap_equal_p): Use bitmap_xor.
5637         (bitmap_ior_and_compl): Rename to ...
5638         (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
5639         flag.
5640         (bitmap_union_of_diff): Use renamed bitmap functions.
5641         * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
5642         XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
5643         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5644         * df.c (df_bb_rd_local_compute)
5645         * flow.c (calculate_global_regs_live,
5646         init_propagate_block_info): Likewise.
5647         * ifcvt.c (find_if_case_1, find_if_case_2,
5648         dead_or_predicable): Likewise.
5649         * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
5650         reset_conflicts, conflicts_between_webs): Likewise.
5651         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
5652         detect_web_parts_to_rebuild): Likewise.
5653         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
5654         * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
5655         * tree-sra.c (decide_instantiations): Likewise.
5656         * tree-ssa-alias.c (create_name_tags,
5657         merge_pointed_to_info): Likewise.
5658         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5659         * tree-ssa-loop-im.c (move_computations): Likewise.
5660         * tree-ssa-operands.c (get_call_expr_operands): Likewise.
5661         * tree-ssa-pre.c (fini_pre): Likewise.
5662         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
5663         * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
5664         * tree-vectorizer.c (vectorize_loops): Likewise.
5665
5666 2004-10-29  Nick Clifton  <nickc@redhat.com>
5667
5668         config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
5669         adding the PIC register to the fixed_regs array, also add it
5670         to the call_used_regs array.
5671
5672 2004-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
5673
5674         * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
5675         with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
5676
5677 2004-10-28  Daniel Berlin  <dberlin@dberlin.org>
5678
5679         * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
5680         (rewrite_blocks): Modify argument, and use it to decide which
5681         function to call.
5682         (rewrite_def_def_chains): Call rewrite_blocks with true here.
5683         (rewrite_into_ssa): and call it with false here.
5684
5685 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
5686
5687         * tree-phinodes.c (add_phi_arg): Turn an "if" that always
5688         triggers into gcc_assert.
5689
5690 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
5691
5692         PR tree-optimization/16728
5693         * tree-flow.h (get_ptr_info): Declare.
5694         * tree-ssa-alias.c (get_ptr_info): Make extern.
5695         * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
5696         alias information.
5697
5698 2004-10-28  Stan Shebs  <shebs@apple.com>
5699
5700         * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
5701         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
5702         case.
5703
5704 2004-10-28  Frank Ch. Eigler  <fche@redhat.com>
5705
5706         * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
5707         prevent their later unnecessary registration.
5708         (mf_build_check_statement_for): Remove "addr" argument, and
5709         related "__mf_value" generated code.  Update callers.
5710         (mf_decl_eligible_p): New function, factored from mx_register_decls.
5711         (mx_register_decls): Call it.
5712         (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
5713         to restore support for complex nested expressions.
5714         (mudflap_enqueue_decl): Simplify.  Move registration call emission
5715         out ...
5716         (mudflap_finish_file): ... to here.
5717         (mudflap_enqueue_constant): Remove dump code.
5718
5719 2004-10-28  Zack Weinberg  <zack@codesourcery.com>
5720
5721         PR 18199
5722         * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
5723         (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
5724         (dbxout_finish_complex_stabs): Update to match.
5725         (dbxout_symbol_location): Call emit_pending_bincls_if_required
5726         and FORCE_TEXT before DBX_STATIC_BLOCK_START.  Use
5727         dbxout_begin_complex_stabs_noforcetext.
5728         * xcoffout.h (DBX_FINISH_STABS): Restore special case for
5729         N_GSYM, using new SYM parameter.  Correct logic for special
5730         cases for N_FUN.
5731
5732         * varasm.c (function_section): If DECL is NULL_TREE, don't try
5733         to do anything else.  Do not call get_insns if cfun or
5734         cfun->emit are NULL.
5735
5736 2004-10-28  Adam Nemet  <anemet@lnxw.com>
5737
5738         PR middle-end/18160
5739         * c-typeck.c (c_mark_addressable): Issue error if address of a
5740         register variable is taken.  Use "%qD" to print DECL_NAME.
5741
5742 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
5743
5744         * opts.c (decode_options): Don't run PRE at -Os.
5745
5746 2004-10-28  Richard Henderson  <rth@redhat.com>
5747
5748         * config/alpha/alpha.md (movqicc_internal): Allow exactly one
5749         zero in the conditional.
5750         (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
5751
5752 2004-10-28  Richard Henderson  <rth@redhat.com>
5753
5754         * cse.c (memory_extend_rtx): Remove.
5755         (cse_main): Don't set it.
5756         (cse_insn): Use a local buffer instead.
5757
5758 2004-10-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5759
5760         * profile.c (branch_prob): Call to init_edge_profiler added.
5761         * rtl-profile.c (rtl_init_edge_profiler): New function.
5762         (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
5763         call to safe_insert_insn_on_edge.
5764         (rtl_profile_hooks): rtl_init_edge_profiler added.
5765         * tree-profile.c (tree_init_edge_profiler): New function.
5766         (tree_profile_hooks): tree_init_edge_profiler added.
5767         * value-prof.h (profile_hooks) init_edge_profiler prototype added.
5768
5769 2004-10-28  Nick Clifton  <nickc@redhat.com>
5770
5771         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
5772         emit_jump_insn() to generate the return instruction.
5773
5774 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5775
5776         * tree-phinodes.c: Remove trailing whitespace.
5777
5778 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5779
5780         * tree-ssa-loop-ivopts.c: Fix a comment typo.
5781         * doc/invoke.texi: Fix a typo.
5782
5783 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5784
5785         * Makefile.in (OBJS-common): Remove duplicates.
5786
5787 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5788
5789         * lambda-code.c (nestify_update_pending_stmts): Remove.
5790         (perfect_nestify): Use flush_pending_stmts instead of
5791         nestify_update_pending_stmts.
5792         * tree-cfg.c (tree_make_forwarder_block): Use
5793         flush_pending_stmts.
5794         * tree-flow.h: Add a prototype for flush_pending_stmts.
5795         * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
5796         Use flush_pending_stmts.
5797         (lv_update_pending_stmts): Remove.
5798         (tree_ssa_loop_version): Use flush_pending_stmts instead of
5799         lv_update_pending_stmts.
5800         * tree-ssa.c (flush_pending_stmts): New.
5801
5802 2004-10-28  Ulrich Weigand  <uweigand@de.ibm.com>
5803
5804         PR target/15286
5805         * final.c (alter_subreg): Compute correct offset to use with
5806         paradoxical SUBREGs of memory operands.
5807         * recog.c (general_operand): Allow paradoxical SUBREGs of
5808         memory operands after reload.
5809         * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
5810         has failed when passed a hard register.
5811
5812 2004-10-28  Aldy Hernandez  <aldyh@redhat.com>
5813
5814         * function.c (assign_parm_setup_block): Handle parallels correctly.
5815
5816 2004-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
5817
5818         * final.c (shorten_branches): Initialize flags structure.
5819
5820 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5821
5822         * tree.c (int_cst_node, int_cst_hash_table): New variables.
5823         (init_ttree): Initialize them.
5824         (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
5825         (build_int_cst_wide): Use hash table for oversized integers.
5826
5827 2004-10-28  Nick Clifton  <nickc@redhat.com>
5828
5829         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
5830         begin_label.
5831
5832 2004-10-27  Richard Henderson  <rth@redhat.com>
5833
5834         PR middle-end/18163
5835         * expr.c (emit_group_load): Don't go force temporary for memory
5836         or concat source.
5837         (emit_group_store): Similarly.
5838
5839 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
5840
5841         PR other/18186
5842         * common.opt (--param): Fix spelling of parameter.
5843
5844 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
5845
5846         PR tree-opt/17529
5847         * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
5848         Don't fold statement.
5849         <case ASM_EXPR>: Fold the statement.
5850
5851 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5852
5853         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
5854         <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
5855
5856 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
5857
5858         * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
5859         doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
5860         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
5861         doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
5862
5863 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
5864
5865         * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
5866         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
5867         punctuation outside quotes.
5868
5869 2004-10-27  David Mosberger  <davidm@hpl.hp.com>
5870             James E Wilson  <wilson@specifixinc.com>
5871
5872         PR target/13158
5873         * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
5874         sibcall alloc instruction.
5875         (process_set): Handle sibcall alloc instruction.
5876
5877 2004-10-27  Geoffrey Keating  <geoffk@apple.com>
5878
5879         * config/rs6000/rs6000.c (rs6000_attribute_table): Add
5880         SUBTARGET_ATTRIBUTE_TABLE.
5881         * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
5882         (SUBTARGET_ATTRIBUTE_TABLE): Define.
5883         * config/darwin.c (darwin_handle_weak_import_attribute): New.
5884         (HAVE_DEAD_STRIP): Delete.
5885         (no_dead_strip): Don't test HAVE_DEAD_STRIP.
5886         * config/darwin-protos.h (darwin_handle_weak_import_attribute):
5887         Prototype.
5888
5889         * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
5890
5891         * config/darwin.h (GTHREAD_USE_WEAK): Define.
5892
5893 2004-10-28  Ben Elliston  <bje@au.ibm.com>
5894
5895         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
5896         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
5897         * params.h (SRA_MAX_STRUCTURE_SIZE): New.
5898         (SRA_FIELD_STRUCTURE_RATIO): Likewise.
5899         * tree-sra.c: Include "params.h".
5900         (decide_block_copy): Use new parameters.
5901         * doc/invoke.texi (Optimize Options): Document new SRA pass
5902         parameters sra-max-structure-size and sra-field-structure-ratio.
5903
5904 2004-10-27  Nicolas Pitre <nico@cam.org>
5905
5906         * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
5907
5908 2004-10-27  Zdenek Dvorak  <dvorakz@suse.cz>
5909
5910         PR tree-optimization/18048
5911         * fold-const.c (try_move_mult_to_index): New function.
5912         (fold): Use try_move_mult_to_index.
5913         * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
5914         * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
5915         an all-ones unsigned constant without extra bits.
5916         * tree.c (build_low_bits_mask): New function.
5917         * tree.h (build_low_bits_mask): Declare.
5918
5919 2004-10-27  David Edelsohn  <edelsohn@gnu.org>
5920
5921         PR target/17956
5922         * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
5923         final condition.
5924         (minsf3): Same.
5925         (maxdf3): Same.
5926         (mindf3): Same.
5927
5928 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5929
5930         * tree-cfg.c (thread_jumps): Speed up by reordering the two
5931         conditions for entering basic blocks into worklist.
5932
5933 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5934
5935         * tree-cfg.c (thread_jumps): Speed up by pretending to have
5936         ENTRY_BLOCK_PTR in worklist.
5937
5938 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5939
5940         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
5941         <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
5942
5943 2004-10-27  Daniel Berlin <dberlin@dberlin.org>
5944
5945         Fix PR tree-optimization/17133
5946
5947         * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
5948         def kill operand.
5949
5950         * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
5951         (get_v_must_def_result_ptr): Modify for new structure of
5952         v_must_defs array.
5953         (get_v_must_def_kill_ptr): New.
5954         (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
5955         (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
5956         (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
5957         (op_iter_init): Initialize new mustu members.
5958         (op_iter_next_mustdef): New function.
5959         (op_iter_init_mustdef): Ditto.
5960
5961         * tree-flow.h (rewrite_def_def_chains): New function.
5962
5963         * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
5964         (ssa_mark_def_sites): Ditto.
5965         (rewrite_stmt): Ditto.
5966         (ssa_rewrite_stmt): Ditto.
5967         (rewrite_blocks): Factor out from rewrite_into_ssa.
5968         (mark_def_block_sites): Ditto.
5969         (rewrite_def_def_chains): New function, just rewrites def-def
5970         chains without phi node insertion.
5971
5972         * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
5973
5974         * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
5975
5976         * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
5977         they include the rhs now.
5978
5979         * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
5980         V_MUST_DEF_RESULT.
5981
5982         * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
5983         Update callers.
5984         (mark_really_necessary_kill_operand_phis): New function.
5985         (perform_tree_ssa_dce): Call it.
5986         (pass_dce): Add TODO_fix_def_def_chains.
5987         (pass_cd_dce): Ditto.
5988
5989         * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
5990         well.
5991         (rewrite_mem_refs): Ditto.
5992
5993         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
5994         as well.
5995
5996         * tree-ssa-operands.c (allocate_v_may_def_optype):
5997         v_may_def_operand_type_t became v_def_use_operand_type_t.
5998         (allocate_v_must_def_optype) Ditto.
5999         (finalize_ssa_v_must_defs): Update for new operand type, as well
6000         as setting the use portion as well.
6001         (copy_virtual_operands): Copy the kill operand as well.
6002         (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
6003         V_MUST_DEF_RESULT.
6004
6005         * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
6006         v_def_use_operand_type.
6007         (v_must_def_optype_d): Use v_def_use_operand_type.
6008         (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
6009         (V_MUST_DEF_KILL_*): New macros.
6010         (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
6011         members.
6012         Rename existing must_i and num_v_must members to mustd_i and
6013         num_v_mustd.
6014         (SSA_OP_VMUSTDEFKILL): New flag.
6015         (SSA_OP_VIRTUAL_KILLS): New flag.
6016         (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
6017         (SSA_OP_ALL_KILLS): New flag.
6018         (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
6019
6020         * tree-ssa.c (verify_ssa): Verify virtual kills as well.
6021
6022         * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
6023         became V_MUST_DEF_RESULT.
6024         (rename_variables_in_bb): Rename kill pointer as well.
6025
6026         * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
6027         immediate uses.
6028
6029 2004-10-27  Richard Sandiford  <rsandifo@redhat.com>
6030
6031         * dbxout.c (dbxout_source_line): Move declaration of begin_label to
6032         the block that needs it.
6033
6034 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
6035
6036         * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
6037         ATTRIBUTE_UNUSED.
6038
6039 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
6040
6041         * c-lex.c (cb_def_pragma): Clean up code for making location
6042         palatable to diagnostic.c.
6043
6044 2004-10-27  Steven Bosscher  <stevenb@suse.de>
6045
6046         PR tree-optimization/17757
6047         * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
6048         without any PHI arguments left.  Make sure the argument that
6049         we're supposed to remove exists at all.
6050
6051 2004-10-27  Paul Brook  <paul@codesourcery.com>
6052
6053         * configure.ac: Don't test for [build] __cxa_atexit when building a
6054         cross compiler.
6055         * configure: Regenerate.
6056
6057 2004-10-27  Paul Brook  <paul@codeosurcery.com>
6058
6059         * configure.ac: Use build_exeext not host_exeext when lookin for
6060         target tools.
6061         * configure: Regenerate.
6062
6063 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6064
6065         * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
6066
6067 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6068             patch originally created by Kelley Cook  <kcook@gcc.gnu.org>
6069
6070         PR middle-end/14684
6071         * opts.c (OPT_fprofile_generate): Default to -funroll-loops
6072         to match -fprofile-use.
6073
6074 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
6075
6076         * config/rs6000/rs6000.c: Fix a comment typo.
6077
6078 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
6079
6080         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
6081         counter.
6082
6083 2004-10-27  Andreas Schwab  <schwab@suse.de>
6084
6085         * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
6086         unused.
6087         (default_stabs_asm_out_constructor): Likewise.
6088
6089 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
6090
6091         * builtins.c (fold_builtin_unordered_cmp): Always bring both
6092         operands to the same type.
6093
6094 2004-10-26  James E Wilson  <wilson@specifixinc.com>
6095
6096         PR target/18010
6097         * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
6098
6099 2004-10-26  Zack Weinberg  <zack@codesourcery.com>
6100
6101         * dbxout.c: Include obstack.h.
6102         (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
6103         default definition.
6104         (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
6105         Default-define here.
6106         (DBX_CONTIN_LENGTH): Move definition with others.
6107         (DBX_FINISH_STABS): New target macro.
6108         (current_sym_code, current_sym_value, current_sym_addr)
6109         (current_sym_nchars, CHARS, dbxout_continue)
6110         (print_int_cst_octal, print_octal, print_wide_int)
6111         (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
6112         (stabstr_ob, stabstr_last_contin_point): New variables.
6113         (NUMBER_FMT_LOOP): New improper macro.
6114         (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
6115         (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
6116         (dbxout_stab_value_internal_label_diff, dbxout_stabd)
6117         (dbxout_begin_stabn, dbxout_begin_stabn_sline)
6118         (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
6119         (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
6120         (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
6121         (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
6122         New functions and/or proper function-like macros.
6123         (CONTIN): Use stabstr_continue, unconditionally.
6124         (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
6125         (dbxout_init): Initialize stabstr_ob.  Check
6126         NO_DBX_MAIN_SOURCE_DIRECTORY.  Only write out the Ltext label
6127         if it was used.  Use the new interfaces.
6128         (dbxout_source_file): Remove file argument; always write to
6129         asm_out_file.  Use the new interfaces.
6130         (dbxout_type_method_1): Remove second argument which is always
6131         DECL_ASSEMBLER_NAME of the first argument.  Use the new interfaces.
6132         (dbxout_type_methods): Remove write-only variables.  Use the
6133         new interfaces.
6134         (dbxout_parms): Refactor to remove code duplicated in each of
6135         several successive if-else-if blocks.  Use the new interfaces.
6136         (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
6137         (dbxout_source_line, dbxout_finish, dbxout_type_index)
6138         (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
6139         (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
6140         (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
6141         (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
6142         Use the new interfaces.
6143         * Makefile.in (dbxout.o): Update dependencies.
6144
6145         * defaults.h: Don't define ASM_STABD_OP.
6146         * output.h: Prototype new dbxout_* interfaces.
6147         * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
6148         * varasm.c: Don't define ASM_STABS_OP.
6149         (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
6150         Use the new dbxout.c interfaces.  Call sorry if neither
6151         DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
6152
6153         * xcoffout.h: Don't define ASM_STABS_OP.
6154         (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
6155         (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
6156         (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
6157         (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
6158         do { ... } while (0) idiom.
6159
6160         * config/alpha/alpha.c (num_source_filenames): Export.
6161         * config/alpha/alpha.h (num_source_filenames): Declare.
6162         (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6163         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6164         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6165         Always use .debugsym.  Update commentary.
6166         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6167         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6168         * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
6169         Use new interfaces.
6170         * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
6171         (macho_branch_islands): Use new interfaces.
6172
6173         * doc/tm.texi: Update.
6174
6175 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
6176
6177         * expr.c (emit_group_store): Do not treat floats as BLKmode.
6178         (emit_group_load): Same.
6179
6180 2004-10-26  Joseph S. Myers  <jsm@polyomino.org.uk>
6181
6182         * c-parse.in (datadef): Use pedwarn rather than error and warning
6183         for diagnostic in case of no declaration specifiers.
6184
6185 2004-10-26  Richard Sandiford  <rsandifo@redhat.com>
6186
6187         PR bootstrap/15747
6188         * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
6189         reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
6190         can be used to work around this.
6191
6192 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
6193
6194         * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
6195         doubles.
6196
6197 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
6198
6199         * stmt.c (expand_case): Update a comment.
6200
6201 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
6202
6203         * stmt.c (expand_case): Put an assertion that index_expr is
6204         never INTEGER_CST.  Don't special case for constant
6205         index_expr.
6206
6207 2004-10-26  Andrew Pinski  <pinskia@physics.uc.edu>
6208
6209         PR 18162
6210         * c-parse.in (designator): Finish with a semi-colon.
6211
6212 2004-10-26  Fariborz Jahanian <fjahanian@apple.com>
6213
6214         * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
6215         into rotlsi3.
6216
6217 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
6218
6219         * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
6220         a default case only.
6221
6222 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
6223
6224         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
6225         e500 doubles.
6226         (spe_build_register_parallel): New.
6227         (rs6000_spe_function_arg): Handle e500 doubles.
6228         (function_arg): Same.
6229         (spe_func_has_64bit_regs_p): Same.
6230         (rs6000_function_value): Same.
6231         (rs6000_libcall_value): Same.
6232         (legitimate_lo_sum_address_p): Return false for e500 doubles.
6233
6234         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
6235         doubles.
6236         (DATA_ALIGNMENT): Same.
6237         (CANNOT_CHANGE_MODE_CLASS): Same.
6238
6239 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
6240
6241         * expr.c (emit_group_load): Handle floats.
6242         (emit_group_store): Same.
6243
6244 2004-10-26  Nathan Sidwell  <nathan@codesourcery.com>
6245
6246         * c-lex.c (get_nonpadding_token): Remove.
6247         (c_lex_with_flags): Push timevar and eat padding here.  Improve
6248         stray token diagnostic.
6249         (lex_string): Replace logic with switch statement, eat padding
6250         token here.
6251
6252 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
6253
6254         PR 18149
6255         * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
6256
6257 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
6258
6259         * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
6260         to 'non-weak'.
6261         (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
6262         (ASM_MAKE_LABEL_LINKONCE): Delete.
6263         (ASM_WEAKEN_DECL): New.
6264         (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
6265         (ASM_DECLARE_FUNCTION_NAME): Likewise.
6266         (TEXT_SECTION_ASM_OP): Add a tab.
6267         (DATA_SECTION_ASM_OP): Likewise.
6268         (SECTION_FUNCTION): Add a tab.  Use fputs.  Don't call
6269         data_section on every section change.
6270         (EXTRA_SECTIONS): Add a bunch of new extra sections.
6271         (EXTRA_SECTION_FUNCTIONS): Likewise.
6272         (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
6273         (JCR_SECTION_NAME): Define.
6274         (TARGET_SECTION_TYPE_FLAGS): Don't define.
6275         * config/darwin.c (darwin_encode_section_info): A symbol is defined
6276         in this file if it is not weak.
6277         (textcoal_section): Delete.
6278         (datacoal_section): Delete.
6279         (darwin_make_decl_one_only): Delete.
6280         (machopic_select_section): Handle functions.
6281         (darwin_asm_named_section): Add a tab.
6282         (darwin_section_type_flags): Delete.
6283         (darwin_unique_section): Delete contents.
6284         (darwin_emit_unwind_label): Add a tab.  Make decls weak if
6285         DECL_WEAK is set.
6286         * config/darwin-protos.h (darwin_section_type_flags): Delete.
6287         (darwin_make_decl_one_only): Delete.
6288         (text_coal_section): New.
6289         (text_unlikely_section): New.
6290         (text_unlikely_coal_section): New.
6291         (const_coal_section): New.
6292         (data_coal_section): New.
6293         (const_data_coal_section): New.
6294         * varasm.c (function_section): Honour
6295         USE_SELECT_SECTION_FOR_FUNCTIONS.
6296         * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
6297         TARGET_USES_WEAK_UNWIND_INFO is in effect.
6298         * dbxout.c (dbxout_source_file): Don't change sections while
6299         a function is being output.
6300
6301 2004-10-25  David Ayers  <d.ayers@inode.at>
6302
6303         * c-common.h: Remove RID_ID.
6304         * c-parse.in: Remove OBJECTNAME and references to RID_ID.
6305         (typespec_reserved_attr): Add rule for TYPENAME
6306         non_empty_protocolrefs.
6307         (yylexname): Remove special handling of RID_ID.
6308
6309 2004-10-25  James E Wilson  <wilson@specifixinc.com>
6310
6311         * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
6312
6313 2004-10-25  Joseph S. Myers  <jsm@polyomino.org.uk>
6314
6315         PR c/16667
6316         * c-parse.in (array_designator): New.
6317         (designator): Use it.
6318         (initelt): Only permit array_designator without '=', not ".foo".
6319
6320 2004-10-25  Kenneth Zadeck <zadeck@naturalbridge.com>
6321         * gcc/Makefile.in: removed ggc for cgraphunit.
6322         * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
6323         * gcc/cgraph.h: removed static var analysis data structures and calls.
6324         * gcc/cgraphunit.c:
6325         cgraph_mark_local_and_external_functions:changed name to
6326                 cgraph_mark_local_functions
6327         (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
6328         cgraph_reset_static_var_maps,get_global_static_vars_info,
6329         get_global_statics_not_read,get_global_statics_not_written,searchc,
6330         cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
6331         check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
6332         scan_for_static_refs,cgraph_characterize_statics_local,
6333         clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
6334         removed.
6335         (cgraph_optimize,init_cgraph): removed calls to static vars analysis
6336         * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
6337         analysis
6338         * gcc/tree-flow.h static_vars_info: removed
6339         * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
6340         removed calls to static vars analysis.
6341         get_call_expr_operands: removed callee variable.
6342
6343 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
6344
6345         * cfg.c (unchecked_make_edge, redirect_edge_succ,
6346         redirect_edge_pred): Use VEC_safe_push instead of
6347         VEC_safe_insert.
6348         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6349
6350 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
6351
6352         * cfgloopmanip.c (loopify): Take two more arguments true_edge
6353         and false_edge.
6354         * cfgloop.h: Adjust the corresponding prototype.
6355         * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
6356         * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
6357
6358 2004-10-25  Jakub Jelinek  <jakub@redhat.com>
6359
6360         * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
6361         DECL_INCOMING_RTL is NULL.
6362
6363 2004-10-25  Steven Bosscher  <stevenb@suse.de>
6364
6365         * timevar.def (TV_FIND_REFERENCED_VARS): New.
6366         * tree-dfa.c (pass_referenced_var): Use it.
6367
6368 2004-10-25  Roger Sayle  <roger@eyesopen.com>
6369             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6370
6371         * cse.c: Change encoding of quantity numbers to avoid undefined
6372         pointer arithmetic on qty_table.
6373         (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
6374         (get_cse_reg_info): Initialize reg_qty to a unique negative value.
6375         (new_basic_block): Assign "real" quantity numbers from zero.
6376         (delete_reg_equiv): Do nothing if quantity is invalid.  Reset the
6377         REG_QTY to its unique negative value.
6378         (merge_equiv_classes): Calculate need_rehash if quantity is valid.
6379         (cse_main): Don't include max_reg when determining max_qty.
6380         (cse_basic_block): Avoid subtracting a large offset from qty_table,
6381         which causes undefined C99 behaviour.  Only allocate needed memory.
6382
6383 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
6384
6385         * stmt.c (expand_case): Remove an obsolete comment.
6386
6387 2004-10-25  Andrew Pinski  <pinskia@physics.uc.edu>
6388
6389         PR middle-end/17407
6390         * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
6391         layout_type as it is already done by build_array_type.
6392         * tree.c (build_array_type): Layout the type even
6393
6394 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
6395
6396         * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
6397
6398 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
6399
6400         * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
6401         with wider-than-32-bit HOST_WIDE_INTs.
6402
6403 2004-10-25  David Billinghurst <David.Billinghurst@riotinto.com>
6404
6405         * config/mips/mips.c(mips_output_filename): Remove unused
6406         array ltext_label_name
6407
6408 2004-10-24  Geoffrey Keating  <geoffk@geoffk.org>
6409
6410         * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
6411
6412 2004-10-25  Ben Elliston  <bje@au.ibm.com>
6413
6414         * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
6415
6416 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
6417
6418         * predict.c (predict_loops): Call scev_finalize instead of
6419         scev_reset.
6420
6421 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
6422
6423         * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
6424         config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
6425         config/sh/ushmedia.h, config/sparc/elf.h,
6426         config/sparc/sp64-elf.h: Update copyright.
6427
6428 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
6429
6430         * stmt.c (expand_case): Handle the default label outside of
6431         the for loop.  Remove code to handle a missing default label.
6432
6433 2004-10-23  Kazu Hirata  <kazu@cs.umass.edu>
6434
6435         * dbxout.c (dbxout_function_decl): Don't use
6436         DBX_OUTPUT_FUNCTION_END.
6437         * system.h: Poison DBX_OUTPUT_FUNCTION_END.
6438         * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
6439
6440 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
6441
6442         PR middle-end/17967
6443         * tree-cfg.c (remove_usless_stmts_cond):  Don't Fold statement.
6444
6445 2004-10-23  Daniel Berlin  <dberlin@dberlin.org>
6446
6447         * tree-ssa-dom.c (record_equality): Use loop depth to determine
6448         which way to record the equality as well.
6449         (loop_depth_of_name): New function.
6450
6451 2004-10-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
6452
6453         PR middle-end/17793
6454         * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
6455         through the operand if it is a useless type conversion.
6456
6457 2004-10-23  Ben Elliston  <bje@au.ibm.com>
6458
6459         * cfg.c (remove_edge): Use VEC_unordered_remove.
6460         (redirect_edge_succ): Likewise.
6461         (redirect_edge_pred): Likewise.
6462         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6463
6464 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6465
6466         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
6467         beyond its end.
6468
6469 2004-10-22  Eric Christopher  <echristo@redhat.com>
6470
6471         * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
6472         saves.
6473
6474 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
6475
6476         * config/rs6000/spe.md (spe_extendsfdf2): New.
6477         (movdf_e500_double): New.
6478         (spe_truncdfsf2): New.
6479         (spe_absdf2): New.
6480         (spe_nabsdf2): New.
6481         (spe_negdf2): New.
6482         (sub_adddf3): New.
6483         (spe_subdf3): New.
6484         (spe_muldf3): New.
6485         (spe_floatsidf2): New.
6486         (spe_floatunssidf2): New.
6487         (fix_truncdfsi2): New.
6488         (spe_fixuns_truncdfsi2): New.
6489
6490         * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
6491         (fpr_truncdfsf2): New.
6492         (negdf2): Change to expander.
6493         (fpr_negdf2): New.
6494         (fpr_nabsdf2): Name pattern.
6495         (adddf3): Change to expander.
6496         (fpr_adddf3): Nem.
6497         (subdf3): Change to expander.
6498         (fpr_subdf3): New.
6499         (muldf3): Change to expander.
6500         (fpr_muldf3): New.
6501         (divdf3): Change to expander.
6502         (fpr_divdf3): New.
6503         (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
6504         (cmpdf): Allow for TARGET_E500_DOUBLE.
6505
6506 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6507
6508         * c-semantics.c (re_push_stmt_list): Remove.
6509         * c-common.h: Remove the corresponding prototype.
6510
6511 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6512
6513         * stmt.c (asm_op_is_mem_input): Remove.
6514         * tree.h: Remove the corresponding prototype.
6515
6516 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6517
6518         * tree-gimple.c (is_gimple_constructor_elt): Remove.
6519         * tree-gimple.h: Remove the corresponding prototype.
6520
6521 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6522
6523         * varasm.c (get_pool_mode_for_function, get_pool_offset):
6524         Remove.
6525         * rtl.h: Remove the corresponding prototypes.
6526
6527 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6528
6529         * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
6530         edge information when we commit ourselves to threading a
6531         particular jump.
6532
6533 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6534
6535         * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
6536         into worklist instead of their indexes.
6537
6538 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6539
6540         * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
6541         final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
6542         lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
6543         pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
6544         tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
6545         tree-scalar-evolution.c, tree-ssa-dom.c,
6546         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6547         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
6548         tree-vectorizer.c, vec.h: Fix comment formatting.
6549
6550 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6551
6552         * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
6553         libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
6554
6555 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6556
6557         * config/ptx4.h, config/mcore/mcore-pe.h,
6558         config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
6559
6560 2004-10-22  Peter Barada <peter@the-baradas.com>
6561
6562         * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
6563         * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
6564         renaming of non-live registers in interrupt functions.
6565         * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
6566
6567 2004-10-22  Zdenek Dvorak  <dvorakz@suse.cz>
6568
6569         * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
6570         Use integer for loop counter.
6571         (num_ending_zeros): New function.
6572         (number_of_iterations_cond): Use num_ending_zeros.
6573
6574 2004-10-21  Aldy Hernandez  <aldyh@redhat.com>
6575
6576         * config.gcc: Add support for --enable-e500_double.
6577
6578         * config/rs6000/e500-double.h: New file.
6579
6580         * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
6581         TARGET_E500_DOUBLE.
6582
6583         * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
6584         TARGET_E500_DOUBLE.
6585
6586         * config/rs6000/linuxspe.h: Same.
6587
6588         * doc/invoke.texi (Option Summary): Document new options for
6589         mfloat-gprs.
6590         (RS/6000 and PowerPC Options): Same.
6591
6592         * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
6593         function.
6594         (rs6000_override_options): Use it.  Use
6595         SUB3TARGET_OVERRIDE_OPTIONS.
6596         Add 8548 to processor_target_table.
6597         (rs6000_legitimate_address): Handle e500 doubles.
6598         (rs6000_legitimize_address): Same.
6599         (rs6000_legitimize_reload_address): Same.
6600         (rs6000_hard_regno_nregs): Same.
6601         (spe_func_has_64bit_regs_p): Same.
6602         (emit_frame_save): Same.
6603         (gen_frame_mem_offset): Same.
6604         (rs6000_dwarf_register_span): Same.
6605         (rs6000_generate_compare): Same.
6606         (easy_fp_constant): Same.
6607         (legitimate_offset_address_p): Same.
6608
6609         * config/rs6000/spe.md: (cmdfeq_gpr): New.
6610         (tstdfeq_gpr): New.
6611         (cmpdfgt_gpr): New.
6612         (tstdfgt_gpr): New.
6613         (tstdfgt_gpr): New.
6614         (cmpdflt_gpr): New.
6615         (tstdflt_gpr): New.
6616         Add new constants.
6617
6618 2004-10-21  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
6619
6620         * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
6621
6622 2004-10-21  Zack Weinberg  <zack@codesourcery.com>
6623
6624         * dbxout.c: Remove unnecessary #undefs.
6625         (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
6626         (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
6627         definition into use sites.
6628         (cwd): Make local to dbxout_init.
6629         (dbxout_init): Restructure cwd-using logic for clarity.  Use
6630         IS_DIR_SEPARATOR.
6631         * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
6632         STABS_GCC_MARKER folded in here.
6633         * system.h: Poison now-unused macros.
6634         * doc/tm.texi: Remove documentation of now-unused macros.
6635
6636 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
6637
6638         PR c/17538
6639         * c-opts.c (push_command_line_include): Use the current file
6640         name instead of the main one.
6641
6642 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
6643
6644         PR objc/17923
6645         * tree.c (staticp): A CONST_DECL has static storage if either
6646         TREE_STATIC or DECL_EXTERNAL is set.
6647         * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
6648         have null names.
6649
6650 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6651
6652         * expr.c (store_expr): Remove dont_store_target.
6653
6654 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6655
6656         * tree-cfg.c (thread_jumps): Speed up by using a worklist.
6657
6658 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6659
6660         * tree-cfg.c (thread_jumps): Move a part of it to ...
6661         (thread_jumps_from_bb): ... here.
6662
6663 2004-10-21  David Edelsohn  <edelsohn@gnu.org>
6664
6665         * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
6666         * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
6667
6668 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6669
6670         * expr.c (store_expr): Clean up by renaming want_value to
6671         call_param_p.
6672
6673 2004-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
6674
6675         * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
6676         fixup pc here.
6677
6678 2004-10-21  Aldy Hernandez  <aldyh@redhat.com>
6679
6680         PR 18004.
6681         * expmed.c (store_bit_field): Pass original 'value' before
6682         recursing.
6683
6684 2004-10-21  Nicolas Pitre <nico@cam.org>
6685
6686         * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
6687         * config/arm/ieee754-df.S: Ditto.
6688
6689 2004-10-20  Zack Weinberg  <zack@codesourcery.com>
6690
6691         * dbxout.c (asmfile): Delete.  All uses changed to asm_out_file.
6692         (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
6693         Default to 0.
6694         (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
6695         When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
6696         an internal label and an N_SLINE .stabn whose value is the
6697         difference between that label and the function entry label.
6698         (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
6699         but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
6700         label and an N_SO stab with an empty string referring to it.
6701         (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
6702         of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
6703         (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
6704         (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
6705         macro is never defined.
6706         * sdbout.c (sdbout_source_line_counter): Delete.
6707         (PUT_SDB_SRC_FILE): Delete.  Uses replaced with sole definition.
6708         (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
6709         only two arguments.
6710         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
6711
6712         * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
6713         * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
6714         definitions (identical to default).
6715         * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
6716         * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
6717         Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
6718         DBX_OUTPUT_MAIN_SOURCE_FILE_END.
6719         * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
6720         * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
6721         Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
6722         * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
6723         * config/alpha/alpha.c: Move declaration of num_source_filenames up.
6724         (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
6725         (sym_lineno): Delete.
6726         (alpha_output_filename): Do not emit N_SOL stabs here.  Remove
6727         now-unused variable.
6728         (alpha_output_lineno): Delete.
6729         * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
6730         * config/mips/mips.c (mips_output_filename): Don't use
6731         ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
6732         (mips_output_lineno): Delete.
6733         (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
6734         * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
6735         SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
6736         * config/mips/mips.h: Likewise.  Don't define ASM_OUTPUT_FILENAME.
6737         * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
6738         * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
6739         * config/mmix/mmix.h: Likewise.
6740         * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
6741         * config/mmix/mmix-protos.h: Don't prototype it.
6742         * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
6743         no need to #undef ASM_OUTPUT_SOURCE_LINE.
6744         * config/arm/aout.h: Remove RISCiX-specific definition of
6745         DBX_OUTPUT_MAIN_SOURCE_FILENAME.
6746         * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
6747         ASM_OUTPUT_SOURCE_LINE.
6748         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
6749         DBX_OUTPUT_SOURCE_LINE.  Don't use current_function_func_begin_label.
6750         * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
6751
6752         * doc/tm.texi: Update.
6753
6754 2004-10-20  Richard Henderson  <rth@redhat.com>
6755
6756         * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
6757
6758 2004-10-20  Kelley Cook  <kcook@gcc.gnu.org>
6759
6760         * configure.ac: Revert my previous patch.
6761         * configure: Regenerate.
6762
6763 2004-10-20  Ben Elliston  <bje@au.ibm.com>
6764
6765         * config/rs6000/rs6000.c
6766         (rs6000_va_start): Use build_va_arg_indirect_ref.
6767         (rs6000_gimplify_va_arg): Likewise.
6768
6769 2004-10-20  Bryce McKinlay  <mckinlay@redhat.com>
6770
6771         PR java/15575
6772         * configure.ac: Declare AM_LANGINFO_CODESET.
6773         * aclocal.m4: Define AM_LANGINFO_CODESET.
6774         * configure, config.in: Rebuilt.
6775
6776 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
6777
6778         * expr.c (store_expr): Remove code that is run when
6779         want_value & 1 is nonzero.
6780
6781 2004-10-20  Mark Mitchell  <mark@codesourcery.com>
6782
6783         * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
6784         from function pointer to void *.
6785
6786 2004-10-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6787
6788         PR target/18032
6789         * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
6790         the frame pointer adjustment when exception handling is enabled.
6791
6792 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
6793
6794         * stor-layout.c: Fix a comment typo.
6795
6796 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
6797
6798         * expr.c (store_field): Remove two arguments value_mode and
6799         unsignedp.
6800         (expand_assignment, store_constructor_field,
6801         expand_expr_real_1): Adjust calls to store_field.
6802
6803 2004-10-18  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
6804
6805         * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
6806
6807         PR target/17317
6808         * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
6809         REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
6810         base and index register for loads.
6811
6812         * config/arc/t-arc: Fix multilib handling.
6813
6814 2004-10-20  Hans-Peter Nilsson  <hp@bitrange.com>
6815
6816         * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
6817         don't inspect BLOCK_FOR_INSN for barriers.
6818         * emit-rtl.c (emit_barrier_before): Revert last change.
6819         (emit_barrier_after, emit_barrier): Ditto.
6820
6821         * doc/extend.texi (Extended Asm): Warn and provide example
6822         solution for using a call-clobbered asm register.
6823         (Local Reg Vars): Similar.  Cross-reference example.
6824
6825 2004-10-19  Andrew Pinski  <pinskia@physics.uc.edu>
6826
6827         * tree-cfg.c (group_case_labels): Look at the second to last
6828         case statement for combing with the default case.
6829
6830 2004-10-19  Richard Hendeson  <rth@redhat.com>
6831
6832         PR 17962
6833         * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
6834
6835 2004-10-19  Richard Hendeson  <rth@redhat.com>
6836
6837         * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
6838         succeeds, only expand the result.
6839
6840 2004-10-19  Richard Hendeson  <rth@redhat.com>
6841
6842         PR middle-end/17885
6843         * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
6844         of INDIRECT_REF.
6845
6846 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
6847
6848         * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
6849         loop with goto.
6850
6851 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
6852
6853         * expr.c (expand_assignment): Remove the last argument.
6854         Change the return type to void.
6855         * expr.h: Update the prototype of expand_assignment.
6856         * function.c (assign_parm_setup_reg): Update a call to
6857         expand_assignment.
6858         * stmt.c (expand_asm_expr): Likewise.
6859
6860 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
6861
6862         * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
6863         unnecessary assignments to temp.  Return const0_rtx.
6864
6865 2004-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6866
6867         * config/sh/sh.c (sh5_schedule_saves): Fix typo.
6868
6869 2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
6870
6871         * configure.ac (powerpc-*-darwin*): Require assembler to support
6872         .machine directive.
6873         * configure: Regenerate.
6874
6875 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6876
6877         * reload1.c (ior_hard_reg_set): Remove.
6878         (finish_spills): Use IOR_HARD_REG_SET instead of
6879         ior_hard_reg_set.
6880
6881 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6882
6883         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
6884         the currently visited word to right.
6885
6886 2004-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
6887
6888         PR middle-end/18045
6889         * expmed.c (expand_smod_pow2): Handle modes whose size
6890         is greater than that of HOST_WIDE_INT.
6891
6892 2004-10-18  Ziemowit Laski  <zlaski@apple.com>
6893
6894         * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
6895
6896 2004-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
6897             Roger Sayle  <roger@eyesopen.com>
6898
6899         PR middle-end/17813
6900         * dojump.c (discard_pending_stack_adjust): New function.
6901         (clear_pending_stack_adjust): Call it.
6902         * expr.h (discard_pending_stack_adjust): Declare it.
6903         * explow.c (emit_stack_save): Emit pending stack adjustments
6904         before saving the stack pointer.
6905         (emit_stack_restore): Discard pending stack adjustments before
6906         restoring the stack pointer.
6907
6908 2004-10-18  Richard Henderson  <rth@redhat.com>
6909
6910         * c-common.c (handle_mode_attribute): Allow scalar->vector
6911         type changes yet.
6912
6913 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6914
6915         * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
6916         value to expand_assignment.
6917
6918 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6919
6920         * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
6921         thread_jumps.
6922         (thread_jumps): Iterate until no new forwarder block arises.
6923
6924 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6925
6926         * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
6927         (thread_jumps): Use forwardable as cache of
6928         tree_forwarder_block_p throughout the function.
6929
6930 2004-10-18  Andreas Krebbel  <krebbel1@de.ibm.com>
6931
6932         * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
6933
6934 2004-10-18  Andrew Pinski  <pinskia@physics.uc.edu>
6935
6936         PR middle-end/15014
6937         PR middle-end/16973
6938         * tree-cfg.c (remove_bb): If we have a label expression in the
6939         basic block and the label we have taken the address, move the
6940         label expression to the basic block which is previous in the
6941         linked list.
6942         (tree_verify_flow_info): Fix printing out the label name of the
6943         problematic label expression.
6944
6945 2004-10-18  Pat Haugen  <pthaugen@us.ibm.com>
6946
6947         PR rtl-optimization/18002
6948         * simplify-rtx.c (mode_signbit_p): Externalize function...
6949         * rtl.h (mode_signbit_p): ... to here.
6950         * combine.c (simplify_shift_const): Recognize PLUS signbit as
6951         canonical form of XOR signbit and move to outer op.
6952
6953 2004-10-18  Diego Novillo  <dnovillo@redhat.com>
6954
6955         * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
6956         Update all callers.
6957         * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
6958         Don't call fold_stmt more than once, use bsi_replace.
6959
6960 2004-10-18  Diego Novillo  <dnovillo@redhat.com>
6961
6962         PR tree-optimization/17656
6963         * tree-ssa.c (replace_immediate_uses): When replacing a
6964         constant, if the call to fold_stmt produced a different
6965         statement, get an appropriate statement pointer by scanning
6966         STMT's basic block.
6967
6968 2004-10-18  Richard Henderson  <rth@redhat.com>
6969
6970         * pointer-set.c (hash1): Don't use libm functions in fallback case.
6971
6972 2004-10-18  H.J. Lu  <hongjiu.lu@intel.com>
6973
6974         PR bootstrap/17684
6975         * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
6976         (stage1-start): Remove and copy libunwind.a and
6977         libunwind*$(SHLIB_EXT) instead of libunwind*.
6978         (stage2-start): Likewise.
6979         (stage3-start): Likewise.
6980         (stage4-start): Likewise.
6981         (stageprofile-start): Likewise.
6982         (stagefeedback-start): Likewise.
6983
6984         * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
6985         the shared library to be created and don't remove the existing
6986         shared library.
6987         * config/arm/t-netbsd (SHLIB_LINK): Likewise.
6988         * config/i386/t-nwld (SHLIB_LINK): Likewise.
6989         * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
6990         * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
6991         * config/sh/t-linux (SHLIB_LINK): Likewise.
6992         * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
6993         * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
6994         * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
6995         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
6996
6997         * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
6998         files.
6999
7000 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
7001
7002         * basic-block.h (reg_set_iterator): New.
7003         (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
7004         (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
7005         (EXECUTE_IF_AND_IN_REG_SET): Likewise.
7006         * caller-save.c (save_call_clobbered_regs): Adjust to the new
7007         style.
7008         * cfgcleanup.c (thread_jump): Likewise.
7009         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
7010         * conflict.c (conflict_graph_compute): Likewise.
7011         * flow.c (verify_local_live_at_start, update_life_info,
7012         initialize_uninitialized_subregs, propagate_one_insn,
7013         init_propagate_block_info, free_propagate_block_info,
7014         propagate_block, dump_regset): Likewise.
7015         * global.c (global_conflicts): Likewise.
7016         * graph.c (start_bb): Likewise.
7017         * local-alloc.c (update_equiv_regs): Likewise.
7018         * loop.c (load_mems): Likewise.
7019         * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
7020         find_reg, finish_spills): Likewise.
7021         * resource.c (mark_target_live_regs): Likewise.
7022         * sched-deps.c (sched_analyze_insn): Likewise.
7023         * sched-rgn.c (sched-rgn.c): Likewise.
7024         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
7025
7026 2004-10-18  Jakub Jelinek  <jakub@redhat.com>
7027
7028         * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
7029         operand 1 instead of 2
7030
7031 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
7032
7033         * loop-unroll.c: Fix comment typos.
7034
7035 2004-10-18  Revital Eres  <eres@il.ibm.com>
7036
7037         * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
7038         * loop-unroll.c: Include varray.h.
7039         (struct var_to_expand, struct opt_info): Rename split_ivs_info to
7040         opt_info and expand it to support variable expansion.
7041         (analyze_insns_in_loop): Rename analyze_ivs_to_split and
7042         expand it to support variable expansion.
7043         (pt_info_start_duplication): Rename si_info_start_duplication.
7044         (apply_opt_in_copies): Rename split_ivs_in_copies and add support
7045         to the variable expansion optimization.
7046         (free_opt_info): Rename free_si_info.
7047         (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
7048         expand_var_during_unrolling, insert_var_expansion_initialization,
7049         combine_var_copies_in_loop_exit, release_var_copies,
7050         get_expansion): New functions.
7051         (peel_loop_completely, unroll_loop_constant_iterations,
7052         unroll_loop_runtime_iterations, peel_loop_simple,
7053         unroll_loop_stupid): Change uses of struct si_info
7054         to struct opt_info
7055         and add uses of fvariable-expansion-in-unroller flag.
7056         * params.def: Add parameter to restrict the number of expansions.
7057         * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
7058         the number of expansions.
7059         * common.opt: (fvariable-expansion-in-unroller): New flag.
7060         * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
7061
7062 2004-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
7063
7064         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
7065         __GXX_MERGED_TYPEINFO_NAMES to 0.
7066
7067 2004-10-17  Hans-Peter Nilsson  <hp@bitrange.com>
7068
7069         * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
7070         handle barriers in a bb by checking that it points to a NULL bb.
7071         * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
7072         (emit_barrier_after, emit_barrier): Ditto.
7073
7074 2004-10-18  Joseph S. Myers  <jsm@polyomino.org.uk>
7075
7076         * doc/extend.texi (Attribute Syntax): Clarify details of
7077         attributes on parameters.
7078
7079 2004-10-17  Zdenek Dvorak  <dvorakz@suse.cz>
7080
7081         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
7082         loop.
7083
7084 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
7085
7086         Revert:
7087         2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
7088
7089         * c-typeck.c (default_function_array_conversion): Always create
7090         &a[0] for array types.
7091         (build_unary_op): Do not fold &a[x] into a + x.
7092
7093 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
7094
7095         PR middle-end/17925
7096         * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
7097         block if there is a goto with a locus.
7098
7099 2004-10-17  Kazu Hirata  <kazu@cs.umass.edu>
7100
7101         * config/elfos.h, config/gofast.h, config/interix.h,
7102         config/netbsd.h, config/svr3.h, config/vxworks.h,
7103         config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
7104         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
7105         config/alpha/netbsd.h, config/arm/arm-modes.def,
7106         config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
7107         config/cris/aout.h, config/frv/frv-modes.def,
7108         config/i386/beos-elf.h, config/i386/gas.h,
7109         config/i386/i386-coff.h, config/i386/i386-modes.def,
7110         config/i386/linux.h, config/i386/linux64.h,
7111         config/i386/mingw32.h, config/i386/netbsd-elf.h,
7112         config/i386/netbsd64.h, config/i386/sco5.h,
7113         config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
7114         config/ia64/ia64-modes.def, config/ia64/itanium1.md,
7115         config/ia64/itanium2.md, config/m68k/m68k-modes.def,
7116         config/mips/mips-modes.def, config/mips/sdb.h,
7117         config/mips/vr.h, config/mips/vxworks.h,
7118         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
7119         config/pa/pa32-linux.h, config/rs6000/40x.md,
7120         config/rs6000/7450.md, config/rs6000/8540.md,
7121         config/rs6000/linuxspe.h, config/rs6000/power4.md,
7122         config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
7123         config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
7124         config/s390/s390-modes.def, config/sh/elf.h,
7125         config/sh/sh-modes.def, config/sh/sh64.h,
7126         config/sparc/ultra1_2.md, config/sparc/ultra3.md,
7127         config/stormy16/stormy16.md, config/v850/v850-protos.h,
7128         config/vax/vax.md: Update copyright.
7129
7130 2004-10-17  Kazu Hirata  <kazu@cs.umass.edu>
7131
7132         * expr.c (expand_expr_real_1): Remove an obsolete comment.
7133
7134 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
7135
7136         * c-typeck.c (default_function_array_conversion): Always create
7137         &a[0] for array types.
7138         (build_unary_op): Do not fold &a[x] into a + x.
7139
7140 2004-10-17  Jakub Jelinek  <jakub@redhat.com>
7141
7142         * pointer-set.c (hash1): Use integer part of 2^64 / phi
7143         instead 2^32 / phi if long is 64-bit.
7144
7145 2004-10-17  Joseph S. Myers  <jsm@polyomino.org.uk>
7146
7147         * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
7148         RID_PTRVALUE.
7149         * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
7150         declarations.
7151         (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
7152         __ptrextent__, __ptrvalue and __ptrvalue__.
7153         (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
7154         entries.
7155
7156 2004-10-16  Dale Johannesen  <dalej@apple.com>
7157
7158         * c-common.c (c_common_get_alias_set):  Use GGC for type_hash_table.
7159
7160 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
7161
7162         PR tree-optimization/17766
7163         * basic-block.h (enum dom_state): DOM_CONS_OK removed.
7164         (dom_info_available_p): Declare.
7165         * cfghooks.c (split_block, make_forwarder_block): Use
7166         dom_info_available_p.
7167         * dominance.c (compute_dom_fast_query, calculate_dominance_info,
7168         free_dominance_info, verify_dominators): Ditto.
7169         (dom_info_available_p): New function.
7170         * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
7171         (thread_jumps): Use dom_info_available_p.
7172         * tree-complex.c (expand_complex_div_wide): Ditto.
7173         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7174
7175 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
7176
7177         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
7178         (find_best_candidate): Take also important candidates into account.
7179         (find_optimal_iv_set): Initialize important_candidates bitmap.
7180
7181 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
7182
7183         PR tree-optimization/17560
7184         * predict.c (tree_estimate_probability): Mark irreducible
7185         loops.
7186
7187 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
7188
7189         PR rtl-optimization/17723
7190         * cfgcleanup.c (merge_memattrs): Handle case when
7191         MEM_SIZE == NULL_RTX.
7192
7193 2004-10-15  Andrew Pinski  <pinskia@physics.uc.edu>
7194
7195         * toplev.c (dump_file_name): Change type to be const.
7196
7197 2004-10-15  Joseph S. Myers  <jsm@polyomino.org.uk>
7198
7199         * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
7200         non_lvalue to stop something being a null pointer constant.
7201
7202 2004-10-15  Aldy Hernandez  <aldyh@redhat.com>
7203
7204         * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
7205         available for TARGET_FPRS.
7206         (FUNCTION_VALUE_REGNO_P): Same.
7207
7208 2004-10-15  Geoffrey Keating  <geoffk@apple.com>
7209
7210         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7211         -maltivec in same style as other ISA options.
7212
7213 2004-10-15  Jon Grimm <jgrimm2@us.ibm.com>
7214
7215         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
7216         definition.
7217
7218 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
7219
7220         * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
7221         collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
7222         gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
7223         genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
7224         gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
7225         gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
7226         lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
7227         predict.def, predict.h, protoize.c, reload.h, resource.h,
7228         rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
7229         tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
7230         unwind-sjlj.c, value-prof.h: Update copyright.
7231
7232 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
7233
7234         * pointer-set.c, tree-vectorizer.c: Fix comment typos.
7235
7236 2004-10-15  Diego Novillo  <dnovillo@redhat.com>
7237
7238         * tree-optimize.c (execute_one_pass): Stop timer right after
7239         executing the pass.
7240
7241 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
7242
7243         Revert:
7244         2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
7245         PR middle-end/17967
7246         Revert:
7247                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
7248                 (remove_useless_stmts_1):  Fold trees we know how to fold.
7249
7250 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
7251
7252         * configure.ac: Add .machine power4 directive when testing for
7253         mfcr field.
7254         * configure: Regenerate.
7255
7256 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
7257
7258         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
7259
7260 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
7261
7262         * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
7263         always.
7264
7265 2004-10-14  Daniel Jacobowitz  <dan@codesourcery.com>
7266
7267         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
7268         for 'f' if !TARGET_FPRS.
7269
7270 2004-10-14  Richard Henderson  <rth@redhat.com>
7271
7272         PR debug/14492
7273         * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
7274
7275 2004-10-14  Richard Henderson  <rth@redhat.com>
7276
7277         PR c/17023
7278         * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
7279         as error_mark_node.
7280         * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
7281         instaed of current_function_decl non-null.
7282
7283 2004-10-14  Matt Austern  <austern@apple.com>
7284
7285         * pointer-set.c: New file, special-purpose hash table.
7286         * pointer-set.h: New file.
7287         * tree.h (struct pointer_set_t): Declare as opaque type.
7288         (tree_walk): Last argument is pointer_set_t* now.
7289         * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
7290         (walk_type_fields):
7291         (walk_tree): Convert from htab_t to pointer_set_t for keeping
7292         track of which nodes have already been visited.
7293         (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
7294         * cgraphunit.c (cgraph_create_edges): Likewise.
7295         (cgraph_characterize_statics_local): Likewise.
7296         * tree-dfa.c (collect_dfa_stats): Likewise.
7297         * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
7298         pointer_set_t* now.
7299         * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
7300         * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
7301         of walk_subtrees is pointer_set_t* now.
7302         * Makefile.in (OBJS-common): add pointer-set.o
7303         (tree-inline.o): Depends on pointer-set.h
7304         (tree-dfa.o): Likewise
7305         (cgraphunit.o): Likewise
7306
7307 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
7308
7309         * config/rs6000/darwin.h (ASM_SPEC): Delete.
7310         (TARGET_ASM_FILE_START): Define.
7311         * config/darwin.h (ASM_SPEC): Define.
7312         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
7313         -mlong-double-128, it's the default.  Update comment about reason
7314         for force_cpusubtype_ALL.
7315         * config/rs6000/darwin-vecsave.asm: Supply .machine.
7316         * config/rs6000/darwin-world.asm: Likewise.
7317         * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
7318         (symbolic_operand): Delete #if 0ed code.
7319
7320 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
7321
7322         * stmt.c (add_case_node): Make sure that we have integer
7323         constant before calling tree_int_cst_compare.
7324
7325 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
7326
7327         PR middle-end/17967
7328         Revert:
7329                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
7330                 (remove_useless_stmts_1):  Fold trees we know how to fold.
7331
7332 2004-10-14  Joseph S. Myers  <joseph@codesourcery.com>
7333
7334         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
7335         config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
7336         -m64.
7337
7338 2004-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
7339
7340         * reload.c (find_reloads): When reloading a PLUS with constant
7341         operand, make sure the constant is pushed to the constant pool
7342         if required.
7343         * config/s390/s390.c (s390_secondary_input_reload_class): Remove
7344         reload bug workaround.
7345         (s390_expand_plus_operand): Likewise.
7346
7347 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
7348
7349         * opts.c (common_handle_option): Do not enable
7350         flag_speculative_prefetching for -fprofile-generate/use.
7351
7352 2004-10-14  Devang Patel  <dpatel@apple.com>
7353
7354         PR 17635
7355         * tree-if-conv.c (process_phi_nodes): Process latch block.
7356         (combine_blocks): Process latch block and update loop structure.
7357
7358 2004-10-14  Olga Golovanevsky  <olga@il.ibm.com>
7359
7360         * tree-vectorizer.c (vect_generate_tmps_on_preheader):
7361         (vect_update_ivs_after_vectorizer):
7362         (vect_transform_for_unknown_loop_bound):
7363         (tree_duplicate_loop_to_edge):
7364         (allocate_new_names):
7365         (rename_use_op):
7366         (rename_def_op):
7367         (rename_variables_in_bb):
7368         (free_new_names):
7369         (rename_variables_in_loop):
7370         (copy_phi_nodes):
7371         (update_phis_for_duplicate_loop):
7372         (update_phi_nodes_for_guard):
7373         (make_loop_iterate_ntimes):
7374         (tree_duplicate_loop_to_edge_cfg):
7375         (add_loop_guard):
7376         (vect_analyze_loop_with_symbolic_num_of_iters):
7377         (verify_loop_for_duplication):
7378         (vect_gen_niters_for_prolog_loop):
7379         (vect_update_niters_after_peeling):
7380         (vect_update_inits_of_dr):
7381         (vect_update_inits_of_drs):
7382         (vect_build_loop_niters):
7383         (vect_do_peeling_for_alignment): New functions.
7384         (vect_transform_loop): Add unknown and known but indivisible loop
7385         bound support; add peeling for unalignment support.
7386         (vect_analyze_loop_form): Support symbolic number of iterations.
7387         (vect_transform_loop_bound): New input parameter.
7388         (vect_get_loop_niters): Change input parameter type.
7389         (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
7390         (vectorizable_store): Allow unaligned access.
7391         (vectorize_loops): Add rewrite_into_loop_closed_ssa.
7392         (vect_analyze_data_refs_alignment): Allowed one unaligned
7393         store.
7394         * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
7395         to use tree.
7396         (LOOP_VINFO_INT_NITERS): New macro.
7397         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
7398         (do_peeling_for_alignment):
7399         (unaligned_drs): New members of _loop_vec_info.
7400         (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
7401
7402 2004-10-14  Ranjit Mathew  <rmathew@hotmail.com>
7403
7404         * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
7405         (struct tree_string): Remove "const" qualifier for "str".
7406
7407 2004-10-14  Ira Rosen  <irar@il.ibm.com>
7408
7409         * tree-vectorizer.c (vect_analyze_data_refs): Call
7410         vect_get_base_and_bit_offset to get memory tag for array ref.
7411         (vect_create_addr_base_for_vector_ref): Remove redundant checks.
7412
7413 2004-10-14  Richard Earnshaw  <rearnsha@arm.com>
7414
7415         * configure.ac: Use $LN_S for creating symlinks (not $LN).
7416         * configure: Regenerate.
7417
7418 2004-10-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7419
7420         * doc/install.texi (*-*-solaris2*): Update with info about kernel
7421         patches to solve spurious testsuite failures.
7422
7423 2004-10-14  Dorit Naishlos  <dorit@il.bim.com>
7424
7425         * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
7426         Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
7427         (vect_analyze_operations): Make sure the vectorization factor > 1. Add
7428         gcc_assert under ENABLE_CHECKING.
7429         (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
7430         get_vectype_for_scalar_type).
7431
7432         (vect_get_vec_def_for_operand): Remove redundant variables.
7433         (vect_transform_loop): Likewise.
7434
7435 2004-10-14  Richard Sandiford  <rsandifo@redhat.com>
7436
7437         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
7438         global for -mcaller-super-interworking.
7439         (CALLER_INTERWORKING_SLOT_SIZE): New macro.
7440         * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
7441         CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
7442         not need a frame pointer.
7443         (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
7444         the soft frame pointer offset.
7445         (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
7446         * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
7447         _interwork_{r7,r11}_call_via_rN if some arguments are passed on
7448         the stack.  Use frame_pointer_needed to choose between them.
7449         * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
7450         (interwork_with_frame): New macro.
7451         (interwork): Add _interwork_{r7,r11}_call_via_rN().
7452
7453 2004-10-14  Ben Elliston  <bje@au.ibm.com>
7454
7455         PR other/17900
7456         * diagnostic.c (trim_filename): Fix logic bug in walking backwards
7457         up the filename looking for a previous directory separator.
7458
7459 2004-10-14  Joseph S. Myers  <jsm@polyomino.org.uk>
7460
7461         * c-tree.h (enum c_typespec_kind, struct c_typespec,
7462         parser_xref_tag): New.
7463         (struct c_declspecs): Add tag_defined_p.  Adjust definition of
7464         typedef_p.
7465         (declspecs_add_type): Adjust prototypes.
7466         * c-parse.in (%union): Add tstype.
7467         (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
7468         typespec_reserved_attr, typespec_nonreserved_nonattr,
7469         structsp_attr, structsp_nonattr): Change to tstype.  Update
7470         actions.
7471         * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
7472         (declspecs_add_type): Update to take struct c_typespec argument.
7473         Set tag_defined_p and typedef_p as appropriate.
7474         (xref_tag): Rename to parser_xref_tag and replace by wrapper.
7475         Update to return struct c_typespec.
7476         (shadow_tag_warned): Don't let empty declarations with qualifiers
7477         or storage class specifiers redeclare a tag if a previous
7478         declaration is visible.
7479
7480 2004-10-13  Richard Henderson  <rth@redhat.com>
7481
7482         PR debug/15860
7483         * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
7484         for DECL_INCOMING_RTL.
7485
7486 2004-10-14  Hans-Peter Nilsson  <hp@axis.com>
7487
7488         PR target/17984
7489         * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
7490         trunc_int_for_mode for constants used in shortened mode.
7491
7492 2004-10-13  Richard Henderson  <rth@redhat.com>
7493
7494         PR c/17384
7495         * c-common.c (handle_mode_attribute): Disallow mode changes that
7496         alter the CODE of the top-level type.
7497
7498         * crtstuff.c (__FRAME_END__): Remove mode attribute.  Find 32-bit
7499         integer from internal limits macros.
7500         * config/i386/mm3dnow.h (__v2sf): Fix base type.
7501
7502 2004-10-13  Richard Henderson  <rth@redhat.com>
7503
7504         PR debug/13841
7505         * function.c (instantiate_decl): Recurse for CONCAT.
7506
7507 2004-10-13  David Edelsohn  <edelsohn@gnu.org>
7508
7509         * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
7510         andi./andis.
7511         (anddi3): Same.
7512         (extzvdi_internal1): Add attribute "compare".
7513         (extzvdi_internal2): Same.
7514
7515 2004-10-12  Tom Tromey  <tromey@redhat.com>
7516
7517         * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
7518
7519 2004-10-13  Dale Johannesen  <dalej@apple.com>
7520
7521         * doc/extend.texi (Extended Asm):  Rewrite asm volatile description.
7522
7523 2004-10-13  Frank Ch. Eigler  <fche@redhat.com>
7524
7525         * toplev.c (compile_file): Call mudflap_finish_file from here ...
7526         * c-decl.c (c_write_global_declarations): ... instead of here ...
7527         * cp/decl.c (cp_finish_file): ... and here.
7528         * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
7529
7530 2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
7531
7532         * tree-ssa-dom.c (record_range): Free the element if we are not
7533         going to use it.
7534
7535 2004-10-13  Tom Tromey  <tromey@redhat.com>
7536
7537         PR java/15578:
7538         * gcc.c (option_map): Added --extdirs and --encoding.
7539
7540 2004-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
7541
7542         PR target/14454
7543         * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
7544         sparc_can_output_mi_thunk.
7545         (sparc_output_mi_thunk): Simplify handling of delta offset.  Add
7546         handling of vcall offset.
7547         (sparc_can_output_mi_thunk): New predicate.
7548         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
7549         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
7550         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
7551
7552         * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
7553
7554         * config/sparc/sparc.md (movdi): Remove redundant test.
7555
7556 2004-10-13  Paolo Bonzini  <bonzini@gnu.org>
7557
7558         * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
7559         TDF_IPA from -fdump-tree-*-all.
7560
7561 2004-10-13  Paul Brook  <paul@codesourcery.com>
7562
7563         * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
7564         * config/arm/arm.c (thumb_find_work_register): Update comments.
7565         (arm_load_pic_register): Add argument for scratch register.
7566         (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
7567         * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
7568
7569 2004-10-13  Kazu Hirata  <kazu@cs.umass.edu>
7570
7571         * tree-data-ref.c: Fix comment typos.
7572
7573 2004-10-13  Jakub Jelinek  <jakub@redhat.com>
7574             Zdenek Dvorak  <dvorakz@suse.cz>
7575
7576         PR tree-optimization/17724
7577         * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
7578
7579 2004-10-13  Dorit Naishlos  <dorit@il.ibm.com>
7580
7581         * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
7582         (altivec_builtin_mask_for_store): Likewise.
7583         (altivec_init_builtins): Use lang_hooks.builtin_function to
7584         create the decls for builtin_altivec_mask_for_load/store.
7585
7586 2004-10-13  Nick Clifton  <nickc@redhat.com>
7587
7588         * config/c4x/c4x.c: Remove inclusion of loop.h.
7589
7590 2004-10-12  Ben Elliston  <bje@au.ibm.com>
7591
7592         * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
7593         (ei_container): New; renamed.
7594         (ei_start, ei_last): New macros.
7595         (ei_start_1, ei_last_1): Renamed from ei_start.
7596         (ei_last_1, ei_end_p): Use ei_container() where applicable.
7597         (ei_one_before_end_p, ei_next, ei_edge): Likewise.
7598         * gcse.c (remove_reachable_equiv_notes): Use ei_container().
7599
7600 2004-10-11  Sebastian Pop  <pop@cri.ensmp.fr>
7601
7602         * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
7603         * cfgloop.c (initialize_loops_parallel_p): New.
7604         (flow_loops_find): Initialize the parallel_p field to true for all
7605         the loops.
7606         * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
7607         (estimate_numbers_of_iterations_loop): Infers the loop bounds from
7608         the size of the data accessed in the loop.
7609         (struct nb_iter_bound): Moved...
7610         * cfgloop.h (struct nb_iter_bound): ... here.
7611         (estimated_nb_iterations, parallel_p): New fields in struct loop.
7612         (record_estimate): Declare extern here.
7613         * tree-chrec.c: Fix comments.
7614         (nb_vars_in_chrec): New function.
7615         * tree-chrec.h (nb_vars_in_chrec): Declared here.
7616         * tree-data-ref.c: Don't include lambda.h, that is already included
7617         in tree-data-ref.h.
7618         (tree_fold_divides_p): Don't check for integer_onep.
7619         (tree_fold_bezout): Removed.
7620         (gcd): New static duplicated function.
7621         (int_divides_p, dump_subscript): New.
7622         (dump_data_dependence_relation): Use dump_subscript.
7623         (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
7624         estimate_niter_from_size_of_data): New.
7625         (analyze_array_indexes, analyze_array): Call
7626         estimate_niter_from_size_of_data during the detection of array
7627         references.  Pass in a pointer to the statement that contains the
7628         array reference.
7629         (all_chrecs_equal_p): New.
7630         (compute_distance_vector): Renamed compute_subscript_distance.
7631         Deal with multivariate conflict functions.
7632         (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
7633         DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
7634         (non_affine_dependence_relation): New.
7635         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
7636         analyze_siv_subscript, analyze_miv_subscript,
7637         analyze_overlapping_iterations, subscript_dependence_tester):
7638         Initialize and return last_conflicts function.
7639         (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
7640         compute_overlap_steps_for_affine_1_2): New.
7641         (analyze_siv_subscript_affine_cst): Removed.
7642         (analyze_subscript_affine_affine): Disprove dependences based on the
7643         iteration domains.  Solve the univariate dependence case as before,
7644         but use lambda_matrix_right_hermite instead of tree_fold_bezout.
7645         Implement the multivariate case of 2 versus 1 variables.
7646         (build_classic_dist_vector, build_classic_dir_vector): Implement some
7647         unhandled cases.
7648         (find_data_references_in_loop): Compute and initialize
7649         loop->estimated_nb_iterations and loop->parallel_p.
7650         (analyze_all_data_dependences): Modify the debug dump order.
7651         * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
7652         subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
7653         (SUB_LAST_CONFLICT, subscript->last_conflict,
7654         data_dependence_relation->affine_p, data_dependence_relation->size_vect,
7655         DDR_AFFINE_P, DDR_SIZE_VECT): New.
7656         (find_data_references_in_loop, initialize_data_dependence_relation,
7657         dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
7658
7659 2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>
7660
7661         * configure: Regenerate.
7662
7663 2004-10-12  Fariborz Jahanian <fjahanian@apple.com>
7664
7665         PR 17892
7666         * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
7667         (simplify_rhs_and_lookup_avail_expr): Disallow associativity
7668         and constant folding of floating point MULT_EXPR/PLUS_EXPR
7669         expressions.
7670
7671 2004-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
7672
7673         * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
7674         (s390_gimplify_va_arg): Likewise.
7675
7676 2004-10-12  Daniel Jacobowitz  <dan@debian.org>
7677
7678         * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
7679         (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
7680         (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
7681         * regclass.c (record_address_regs): Remove ifdef.  Use
7682         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
7683         * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
7684         definition.
7685         (scan_rtx_address, replace_oldest_value_addr): Use
7686         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
7687         * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
7688         unnecessary definitions.
7689         (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
7690         and MODE_BASE_REG_REG_CLASS.
7691         * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
7692         (MODE_BASE_REG_REG_CLASS): Define.
7693         (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
7694         (REG_MODE_OK_FOR_REG_BASE_P): Define.
7695         * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
7696         REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
7697
7698 2004-10-12  Daniel Berlin <dberlin@dberlin.org>
7699
7700         * tree-ssa-alias.c (verify_name_tags): New function.
7701         (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
7702         (verify_alias_info): Call verify_name_tags.
7703
7704 2004-10-12  Kazu Hirata  <kazu@cs.umass.edu>
7705
7706         PR rtl-optimization/17931
7707         * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
7708         ZERO_EXTRACT in it.
7709
7710 2004-10-12  Richard Earnshaw  <rearnsha@arm.com>
7711
7712         * arm.c (arm_print_operand): Use output_operand_lossage where possible
7713         rather than aborting.
7714
7715 2004-10-12  Paul Brook  <paul@coudesourcery.com>
7716
7717         * config.gcc: Add armv6{k,z,zk}
7718         * config/arm/arm-cores.def: Add arm1176 and mpcore.
7719         * config/arm/tune.md: Regenerate.
7720         * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
7721         Define.
7722         (all_architectures): Add armv6k, armv6z, armv6zk.
7723         * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
7724         * doc/invoke.texi: Document new arch and cpu values.
7725
7726 2004-10-12  Paul Brook  <paul@coodesourcery.com>
7727
7728         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
7729         meabi=4.
7730
7731 2004-10-12  Paul Brook  <paul@codesourcery.com>
7732
7733         * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
7734         Handle negative constants.
7735
7736 2004-10-12  Joseph S. Myers  <jsm@polyomino.org.uk>
7737
7738         PR c/17301
7739         * c-typeck.c (convert_arguments): Return error_mark_node if there
7740         are too few arguments.
7741         (build_function_call): Handle error_mark_node return from
7742         convert_arguments.
7743
7744 2004-10-06  Paolo Bonzini  <bonzini@gnu.org>
7745
7746         * configure.ac (symbolic_link): Replace with $LN_S.
7747         (Assembler/Linker): Hard link from gas and binutils trees.
7748         * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
7749         * configure: Regenerate.
7750
7751 2004-10-12  Paul Brook  <paul@codesourcery.com>
7752
7753         * configure.ac: Don't look for host assembler when building a canadian
7754         cross.
7755         * configure: Regenerate.
7756
7757 2004-10-11  Roger Sayle  <roger@eyesopen.com>
7758
7759         PR other/17361
7760         * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
7761         (c_common_init_options): Remove #ifdef CL_F77 code.  Scan command
7762         line options for "-lang-asm" and if found allow any of the C-family
7763         front-end options.
7764         (c_common_handle_option): Remove last use of permit_fortran_options.
7765
7766 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
7767
7768         * config/s390/s390.c (print_operand): Support 'S' format flag.
7769         * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
7770         ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
7771         ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
7772         ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
7773         ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
7774         ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
7775         ("*movstricthi"): Likewise.
7776         ("*load_multiple_di", "*load_multiple_si"): Likewise.
7777         ("*store_multiple_di", "*store_multiple_si"): Likewise.
7778         ("*sethiqisi", "*sethihisi"): Likewise.
7779         ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
7780         ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
7781         ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
7782         ("*xorqi3", "*xc", "*xc_zero"): Likewise.
7783         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
7784
7785         ("*tmhi_full"): Fix incorrect op_type attribute.
7786
7787         ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
7788         ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
7789         ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
7790         ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
7791
7792 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu
7793
7794         PR middle-end/16266
7795         * function.c (temp_slots_at_level): Fix typo which creates too
7796         many temp stack slots levels.
7797
7798 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
7799
7800         * config/s390/s390.c (s390_trampoline_template): Generate shorter
7801         trampoline code.
7802         (s390_trampoline_instantiate): Adapt.
7803         * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
7804
7805 2004-10-11  Roger Sayle  <roger@eyesopen.com>
7806
7807         PR middle-end/17657
7808         * stmt.c (add_case_node): Add additional type argument.  Declare
7809         as static to match prototype.  Convert the upper and lower bounds
7810         to the specified index type.  Optimize away case ranges/values
7811         that are outside the index type's bounds.  Truncate case ranges
7812         that span the index type's bounds.
7813         (expand_case): Avoid unnessary computation and memory allocation
7814         when index type is error_mark_node.  Pass index_type as required
7815         by change to add_case_node API.  No need to convert case range
7816         bounds to index_type, this is now done by add_case_node.
7817
7818 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
7819
7820         * config/s390/s390-protos.h (s390_offset_p): Add prototype.
7821         * config/s390/s390.c (s390_offset_p): New function.
7822         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
7823         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
7824         transform Q->Q alternatives to *clc pattern.
7825         ("*clc"): Move.
7826         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
7827         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
7828         to transform Q->Q alternatives to *mvc pattern.
7829         ("*mvc"): Move.  Add peephole to merge adjacent MVCs.
7830         ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
7831         "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
7832         transform Q->Q alternatives to *nc pattern.
7833         ("*nc"): New insn.  New peephole to merge adjacent NCs.
7834         ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
7835         "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
7836         transform Q->Q alternatives to *oc pattern.
7837         ("*oc"): New insn.  New peephole to merge adjacent OCs.
7838         ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
7839         transform Q->Q alternatives to *xc pattern.
7840         ("*xc"): New insn.  New peephole to merge adjacent XCs.
7841         ("*xc_zero"): Move.  Add peephole to merge adjacent XCs.
7842
7843 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
7844
7845         * gimplify.c (gimple_push_condition): Make sure that we don't
7846         have any saved condition cleanup if we were at the top level.
7847
7848 2004-10-11  Richard Sandiford  <rsandifo@redhat.com>
7849
7850         * config/frv/frv.md (*adddi3_internal): Change name to...
7851         (adddi3): ...replacing the exisiting define_expand.  Combine
7852         alternatives.  Fix the range of the constant constraints ('J' instead
7853         of 'NOP').  Remove bogus operands[2] check.  Use simplify_gen_subreg
7854         to extract the lower and upper halves of the DImode operands.
7855         Always use addi3_lower and adddi3_upper, not the subdi3 forms.
7856         (adddi3_lower): Fix the range of the constant constraints and
7857         remove the bogus operands[2] check.
7858         (adddi3_upper): Use gpr_or_int10_operand as the predicate for
7859         operand 2.  Use addxi to handle constant operands.
7860         (subdi3_lower, subdi3_upper): Don't handle constant operands.
7861
7862 2004-10-11  Nathan Sidwell  <nathan@codesourcery.com>
7863
7864         * gengtype-lex.l: Add commented } & ) characters to unconfuse
7865         editor's paren matching. Allow #define inside a struct.
7866
7867 2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>
7868
7869         PR middle-end/17703
7870         part of PR c++/17657
7871         * fold-const.c (fold_build_cleanup_point_expr): New function.
7872         * tree.h (fold_build_cleanup_point_expr): Prototype.
7873
7874 2004-10-10  Eric Christopher  <echristo@redhat.com>
7875
7876         * dwarf2out.c: Move attribute to subprogram declaration
7877         instead of subroutine type.
7878
7879 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
7880
7881         * basic-block.h: Remove the prototypes for can_hoist_insn_p,
7882         hoist_insn_after, and hoist_insn_to_edge.
7883         * rtl.h: Remove the prototypes for reg_referenced_between_p,
7884         no_jumps_between_p, and insn_dependent_p.
7885         * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
7886         insn_dependent_p, insn_dependent_p_1, hoist_test_store,
7887         can_hoist_insn_p, hoist_update_store, hoist_insn_after,
7888         hoist_insn_to_edge): Remove.
7889
7890 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
7891
7892         PR c/17881
7893         * c-decl.c (grokparms): Don't warn for parameters of incomplete
7894         type in declarations that are not definitions except for the case
7895         of parameters of void type.
7896
7897 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
7898
7899         * tree-cfg.c: Fix comment typos.
7900
7901 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
7902
7903         PR c/17301
7904         * builtins.c (expand_builtin_va_start): Check for too few
7905         arguments to va_start.
7906
7907 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
7908
7909         PR c/17189
7910         * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
7911         fields a pedwarn.  Pedwarn here for unnamed structs/unions if
7912         pedantic.
7913         * c-parse.in (component_decl): Don't pedwarn here for unnamed
7914         fields.
7915
7916 2004-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
7917
7918         PR tree-optimization/17906
7919         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
7920         copy non-gimple reg arguments.
7921
7922 2004-10-09  Roger Sayle  <roger@eyesopen.com>
7923
7924         PR rtl-optimization/17853
7925         * simplify-rtx.c (simplify_relational_operation): Correct comment.
7926         Reorganize handling of comparison operations with floating point
7927         results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
7928         Likewise, introduce support for comparison operations with vector
7929         result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
7930
7931         * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
7932         * doc/tm.texi: Likewise.
7933
7934 2004-10-09  Steven Bosscher  <stevenb@suse.de>
7935
7936         * regs.h (struct reg_info_def): Remove the last_node_uid and
7937         changes_mode fields.
7938         (REGNO_LAST_NOTE_UID): Don't define.
7939         * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
7940         * regmove.c (copy_src_to_dest): Likewise.
7941
7942 2004-10-09  Roger Sayle  <roger@eyesopen.com>
7943
7944         PR middle-end/17894
7945         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
7946         relational comparison operator op needs to be swapped/reversed when
7947         C1 is negative.  i.e. X/-10 < 1 becomes X >= -9, not X < -9.
7948
7949 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
7950
7951         PR tree-opt/17902
7952         * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
7953         instead of bsi_start.
7954         (value_replacement): Likewise.
7955         (abs_replacement): Likewise
7956
7957 2004-10-09  Steven Bosscher  <stevenb@suse.de>
7958
7959         * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
7960         (expand_gimple_cond_expr, expand_gimple_tailcall,
7961         expand_gimple_basic_block): Use it to dump RTL for each stmt.
7962         (tree_expand_cfg): Announce full RTL function dump.
7963         * tree-optimize.c (execute_one_pass): Use normal RTL printing,
7964         not the graph version.
7965         * tree-pretty-print.c (dump_generic_node): Allow empty statements
7966         in the arms of a COND_EXPR for lowered nodes.
7967
7968 2004-10-08  Joseph S. Myers  <joseph@codesourcery.com>
7969
7970         * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
7971         atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
7972         strtoufix16, strtoufix32, strtoufix64): Declare.
7973
7974 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
7975
7976         * c-lex.c (interpret_float): Give a pedwarn rather than a warning
7977         for an out-of-range floating point constant.
7978         * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
7979         warning if the target format does not support infinities.
7980
7981 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7982
7983         * emit-rtl.c (last_label_num, base_label_num): Remove.
7984         (max_label_num): Always return label_num.
7985         (set_new_last_label_num, restore_emit_status): Remove.
7986         (init_emit): Don't initialize last_label_num.
7987         * function.c (pop_function_context_from): Don't call
7988         restore_emit_status.
7989         * function.h: Remove the prototype for restore_emit_status.
7990         * rtl.h: Remove the prototype for set_new_last_label_num.
7991
7992 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7993
7994         * stmt.c (expand_decl_init): Remove.
7995         * tree.h: Remove the corresponding prototype.
7996
7997 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7998
7999         * integrate.c (try_constants, subst_constants, mark_stores):
8000         Remove.
8001         * integrate.h: Remove the prototype for try_constants.
8002
8003 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
8004
8005         * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
8006         (convert_for_assignment): Handle ic_argpass_nonproto.  Add
8007         comments about its relevance to errors.
8008         (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
8009
8010 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
8011
8012         PR c/16999
8013         * c-ppoutput.c (cb_ident): Don't quote string as it is already
8014         quoted.
8015
8016 2004-10-08  Diego Novillo  <dnovillo@redhat.com>
8017
8018         * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
8019         reference_node_pool.
8020
8021 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
8022
8023         * tree-cfg.c: Fix a comment typo.
8024
8025 2004-10-08  Andreas Krebbel  <krebbel1@de.ibm.com>
8026
8027         * config/s390/s390.c (s390_register_info): Don't save fprs for
8028         -msoft-float.
8029         (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
8030
8031 2004-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
8032
8033         * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
8034         (TARGET_DEFAULT): Use symbolic values.
8035         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
8036         (TARGET_DEFAULT): Use symbolic values.
8037         * config/s390/s390.c (s390_backchain_string): Initialize to
8038         TARGET_DEFAULT_BACKCHAIN.
8039
8040 2004-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8041
8042         * builtins.c (expand_builtin_mempcpy): Move tree handling code to
8043         fold_builtin_mempcpy.  Accept a type parameter.  Delete duplicate
8044         code.
8045         (expand_builtin_strcat): Accept a type parameter.
8046         (fold_builtin_mempcpy): Accept a type and endp parameter.
8047
8048         * builtins.c (expand_builtin_strncpy): Delete duplicate code.
8049         Accept an `exp' instead of an `arglist'.
8050
8051 2004-10-08  Nathan Sidwell  <nathan@codesourcery.com>
8052
8053         * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
8054         reverting my 2004-09-07 patch to use build_int_cst.
8055
8056 2004-10-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
8057
8058         PR target/17245
8059         * config/sparc/sparc.c (input_operand): Remove redundant code
8060         for handling LO_SUM.
8061         (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
8062         <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
8063         Otherwise only accept it for TFmode if quad move insns are available.
8064
8065 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
8066
8067         * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
8068         common cases will be caught earlier than others.
8069
8070 2004-10-08  Michael Matz  <matz@suse.de>
8071
8072         * loop-doloop.c (doloop_optimize): Extend count.
8073
8074 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
8075
8076         * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
8077         (prefetch): Convert to expander.
8078
8079 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
8080
8081         * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
8082         first argument of CALL.
8083         (tls_local_dynamic): Likewise.
8084
8085 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
8086
8087         * c-typeck.c (enum impl_conv): New.
8088         (convert_for_assignment): Use it.  Take tree for function called
8089         instead of its name.  Handle ObjC selectors for diagnostics at
8090         start of function.  Select diagnostic text within the function
8091         using full sentences for diagnsotics.  Use %qE to name functions
8092         in diagnostics.
8093         (convert_arguments, build_modify_expr,
8094         c_convert_parm_for_inlining, digest_init, c_finish_return): Update
8095         callers to convert_for_assignment.
8096         (warn_for_assignment): Remove.
8097
8098 2004-10-08  Nick Clifton  <nickc@redhat.com>
8099
8100         * config/sh/symbian.c (symbian_possibly_export_base_class):
8101         Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
8102         TYPE_CONTAINS_VPTR_P.
8103
8104 2004-10-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8105
8106         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
8107         fixed registers form all_used_regs. Update call_really_used_regs.
8108         (CALL_REALLY_USED_REGISTERS): Define.
8109         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
8110         with call_really_used_regs.
8111
8112 2004-10-08  Alan Modra  <amodra@bigpond.net.au>
8113
8114         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
8115         for -profile as well as -p and -pg.
8116
8117 2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>
8118
8119         * libgcc2.c (__moddi3): Cast &w to UDWtype*.
8120
8121 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
8122
8123         * tree-cfg.c (tree_block_forwards_to): Remove.
8124         * tree-flow.h: Remove the corresponding prototype.
8125
8126 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
8127
8128         * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
8129         for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
8130
8131 2004-10-07  Geoffrey Keating  <geoffk@apple.com>
8132
8133         Radar 3813796
8134         * config/rs6000/rs6000.c (rs6000_generate_compare): When
8135         flag_trapping_math is in effect, don't generate subtract
8136         instructions.
8137
8138 2004-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
8139
8140         * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
8141         * config/s390/s390.c (s390_narrow_logical_operator): New function.
8142         (s390_extra_constraint_str): Add 'A' constraints.
8143         (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
8144         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
8145         (CONSTRAINT_LEN): Likewise.
8146         * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
8147         ("*andsi3_zarch", "*andsi3_esa"): Likewise.
8148         ("*andhi3_zarch", "*andhi3_esa"): Likewise.
8149         ("*iordi3"): Add OI alternative and splitter.
8150         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
8151         ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
8152         ("*xordi3"): Add XI alternative and splitter.
8153         ("*xorsi3", "*xorhi3"): Likewise.
8154
8155 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
8156
8157         * config/mips/mips.c (mips_function_rodata_section): New function.
8158         (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
8159
8160 2004-10-07  Devang Patel  <dpatel@apple.com>
8161
8162         * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
8163         UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
8164         UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
8165         UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
8166         UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
8167         UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
8168         UNSPEC_VCONDU_V16QI): New constant defines.
8169         (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
8170         vconduv16qi): New patterns.
8171         * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
8172         * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
8173         (get_vec_cmp_insn): Same.
8174         (get_vsel_insn): Same.
8175         (rs6000_emit_vector_compare): Same.
8176         (rs6000_emit_vector_select): Same.
8177         (INSN_NOT_AVAILABLE): New.
8178
8179 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
8180
8181         PR tree-optimization/17749
8182         * tree-tailcall.c (find_tail_calls): Check that parameter is
8183         a gimple_reg.
8184
8185 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
8186
8187         * config/ia64/ia64.c: Fix a comment typo.
8188
8189 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8190
8191         * doc/install.texi (*-*-solaris2*): Fix marker for URL.
8192
8193 2004-10-07  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
8194
8195         PR c++/17115
8196         * tree-inline.c (expand_call_inline): Do not warn for functions
8197         marked with attribute noinline.
8198
8199 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8200
8201         PR target/17862
8202         * config/sparc/sparc.c (sparc_output_mi_thunk): Set
8203         current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
8204
8205         * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
8206         of 0 as 4th argument to pass_by_reference.
8207         Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
8208
8209 2004-10-06  Eric Christopher  <echristo@redhat.com>
8210
8211         * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
8212         attribute.
8213
8214 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
8215
8216         PR target/17770
8217         * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
8218
8219 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
8220
8221         PR rtl-optimization/17791
8222         * loop-doloop.c (doloop_modify): Take number of iterations as
8223         argument.
8224         (doloop_optimize): Extend or shorten the number of iterations
8225         when changing mode of counter register.
8226         * loop-iv.c (lowpart_subreg): Export.
8227         * rtl.h (lowpart_subreg): Declare.
8228
8229 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
8230
8231         PR tree-optimization/17806
8232         * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
8233         * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
8234         flags moved to split_edge.
8235
8236 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8237
8238         PR middle-end/17835
8239         * expmed.c (expand_sdiv_pow2): Force a stack adjustment
8240         before tentatively building the conditional move sequence.
8241
8242 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
8243
8244         PR target/16815
8245         * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
8246         check.
8247         * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
8248         function_arg_padding.
8249
8250 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
8251
8252         PR bootstrap/17857
8253         * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
8254
8255 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
8256
8257         * hooks.c (hook_int_void_1, hook_void_int): Remove.
8258         * hooks.h: Remove the corresponding prototypes.
8259
8260 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
8261
8262         PR middle-end/17849
8263         * tree-nested.c (walk_stmt_info): Add changed field.
8264         (convert_nonlocal_reference): Set changed to when we
8265         change a decl to unnested decl.
8266         <case ADDR_EXPR>: Instead of checking if the immediate part
8267         of the ADDR_EXPR changed, check the field changed.
8268         Use recompute_tree_invarant_for_addr_expr instead of unsetting
8269         TREE_INVARIANT.
8270         (convert_local_reference):  Set changed to when we
8271         change a decl to unnested decl.
8272         <case ADDR_EXPR>: Instead of checking if the immediate part
8273         of the ADDR_EXPR changed, check the field changed.
8274         Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
8275
8276 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
8277
8278         * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8279         * dwarf2out.c (dwarf2out_init): Remove references to
8280         DWARF2_GENERATE_TEXT_SECTION_LABEL.
8281         * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
8282         * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8283
8284 2004-10-06  Joseph S. Myers  <jsm@polyomino.org.uk>
8285
8286         * c-typeck.c (convert_arguments): Take expression for called
8287         function rather than its name.  Handle ObjC selectors directly
8288         rather than relying on warn_for_assignment to do so.  Call warning
8289         directly rather than warn_for_assignment.  Use %qE in diagnostics.
8290         Say "argument" rather than "arg" in diagnostics.
8291         (build_function_call): Update call to convert_arguments.
8292
8293 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
8294
8295         PR debug/17787
8296         * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
8297         ENUMs specially instead of just saying we do.
8298
8299 2004-10-06  Eric Christopher  <echristo@redhat.com>
8300
8301         * dwarf2.h: Sync with include/elf/dwarf2.h
8302
8303 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
8304
8305         * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
8306         and TREE_VEC nodes.
8307
8308 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
8309
8310         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
8311         to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
8312
8313 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
8314
8315         * lambda-code.c (compute_nest_using_fourier_motzkin): New
8316         function.
8317         (lambda_compute_auxillary_space): Split from here.
8318
8319 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
8320
8321         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
8322         * tree-flow.h: Add prototype.
8323         * lambda-code.c (invariant_in_loop_and_outer_loops): Use
8324         expr_invariant_in_loop.
8325
8326 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
8327
8328         * tree-cfg.c (thread_jumps): Remove a duplicate check for
8329         EXIT_BLOCK_PTR.
8330
8331 2004-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
8332
8333         * config/s390/s390-protos.h (s_imm_operand): Remove.
8334         (s390_pool_operand): Add prototype.
8335         * config/s390/s390.c (general_s_operand): Remove.
8336         (s_imm_operand): Remove.
8337         (s_operand): Merge contents of general_s_operand.
8338         (s390_pool_operand): New function.
8339         * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
8340         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
8341         ("*cmpdi_ccu"): Merge Q->Q alternative.
8342         ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
8343         ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
8344         ("*cli"): Remove.
8345         ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
8346         ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
8347         ("*movstricthi"): Use memory_operand instead of s_imm_operand.
8348
8349 2004-10-06  Steve Ellcey  <sje@cup.hp.com>
8350
8351         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
8352         call ia64_function_arg_boundary.
8353         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
8354         * config/ia64/ia64.c (ia64_function_arg_boundary): New.
8355         (ia64_function_arg_advance): Do not put 128 bit floats into
8356         FP registers.
8357
8358 2004-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8359
8360         * builtins.c (expand_builtin_strcpy): Delete duplicate code.
8361         Accept an expression instead of an arglist.
8362         (expand_builtin_stpcpy): Accept an expression instead of an
8363         arglist.
8364
8365 2004-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
8366
8367         PR target/16007
8368         * doc/install.texi (*-*-solaris2*): Mention potential problem
8369         with Sun assembler + GNU linker and C++ programs.
8370         Document status of binutils 2.15 release.
8371
8372 2004-10-06  Jan Hubicka  <jh@suse.cz>
8373
8374         * cse.c (cse_main): Kill push/pop context.
8375
8376 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
8377
8378         * pretty-print.c: Include tree.h.
8379         (pp_base_prepare_to_format): New function, logic from
8380         text_specifies_location.
8381         (pp_base_format_text): Use gcc_assert.
8382         * pretty-print.h (pp_prepare_to_format): New macro.
8383         (pp_base_prepare_to_format): Prototype.
8384         * diagnostic.c (text_specifies_location): Delete.
8385         (bug_report_request): Delete.
8386         (diagnostic_set_info): Don't call text_specifies_location.
8387         (diagnostic_action_after_output): Put text from
8388         bug_report_request inline here.  Use gcc_unreachable.
8389         (diagnostic_report_current_function): Fix comment.
8390         (diagnostic_report_diagnostic): Clarify logic for error recursion.
8391         Call pp_prepare_to_format before diagnostic_starter.
8392         (trim_filename): Use IS_DIR_SEPARATOR.
8393         (fatal_error, internal_error): Use gcc_unreachable.
8394         (error_recursion): Call diagnostic_action_after_output to
8395         issue the bug_report_request message and exit.
8396         * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
8397
8398         * c-parse.in: Add list of diagnostic messages to insulate
8399         translation template from version of yacc/bison used to
8400         compile the grammar.
8401
8402 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
8403
8404         PR 16406
8405         * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
8406
8407 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8408
8409         * basic-block.h: Remove the prototype for
8410         flow_preorder_transversal_compute.
8411         * cfganal.c (dfst_node): Remove.
8412         (flow_preorder_transversal_compute): Likewise.
8413         * rtl.h: Remove the prototype for get_jump_table_offset.
8414         * rtlanal.c (get_jump_table_offset): Remove.
8415
8416 2004-10-05  Richard Henderson  <rth@redhat.com>
8417
8418         PR 17756
8419         * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
8420
8421 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
8422
8423         PR bootstrap/17817
8424         * Makefile.in: Stage the build directory too.
8425
8426 2004-10-05  Aldy Hernandez  <aldyh@redhat.com>
8427
8428         * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
8429
8430         * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
8431         (frv_emit_move): Same.
8432
8433         * config/frv/frv.c (frv_emit_move): New.
8434         (frv_legitimize_address): New.
8435
8436         * config/frv/frv.md ("movsi"): Call frv_emit_move.
8437         ("movqi"): Same.
8438         ("movhi"): Same.
8439         ("movdi"): Same.
8440         ("movsf"): Same.
8441         ("movdf"): Same.
8442
8443 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
8444
8445         * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
8446         system headers.
8447
8448 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
8449
8450         * c-decl.c (pushdecl): When an extern declaration at block scope
8451         refers to a visible entity with internal linkage, use the old DECL
8452         rather than the new one.
8453
8454 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8455
8456         * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
8457         comments.
8458
8459 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8460
8461         * tree-cfg.c (thread_jumps): Remove a duplicate check for
8462         an infinite loop.
8463
8464 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8465
8466         * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
8467         of FOR_BB_BETWEEN.  Remove a useless check for unreachable
8468         blocks.
8469
8470 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8471
8472         * tree-cfg.c (cleanup_tree_cfg): Don't call
8473         delete_unreachable_blosk() after thread_jumps().
8474         (thread_jumps): Always remove basic blocks as they become
8475         unreachable.
8476
8477 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8478
8479         * tree-cfg.c (cleanup_tree_cfg): Remove variable
8480         something_changed.  Simplify the while loop.
8481
8482 2004-10-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8483
8484         * builtins.c (expand_builtin_memmove): Delete duplicate code
8485         and accept a tree type for the result.
8486         (expand_builtin_bcopy): Accept a tree type for the result.
8487         (fold_builtin_memmove): Accept an arglist and tree type for
8488         the result.
8489
8490 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
8491
8492         * config/s390/s390.c (s390_dump_pool): Remove return value.
8493         Use gen_pool_align, gen_pool_section_start/end instead of
8494         gen_pool_start/end_31/64.
8495         * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
8496         (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
8497         ("pool_start_31", "pool_end_31"): Remove.
8498         ("pool_start_64", "pool_end_64"): Likewise.
8499         ("pool_align", "pool_section_start", "pool_section_end": New insns.
8500
8501         * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
8502         (TARGET_CANNOT_COPY_INSN_P): Define.
8503         (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
8504         (struct constant_pool): New member 'execute'.
8505         (s390_add_execute, s390_find_execute): New functions.
8506         (s390_execute_label, s390_execute_target): Likewise.
8507         (s390_dump_pool): Output in-pool execute target templates.
8508         (s390_dump_execute): New function.
8509         (s390_alloc_pool, s390_free_pool): Handle execute templates.
8510         (s390_mainpool_start, s390_mainpool_finish): Likewise.
8511         (s390_chunkify_start, s390_chunkify_finish): Likewise.
8512         * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
8513         ("*execute"): New insn pattern.
8514         ("movmem_short", "*movmem_short"): Use splitters to generate
8515         explicit execute pattern, remove embedded execute.
8516         ("clrmem_short", "*clrmem_short"): Likewise.
8517         ("cmpmem_short", "*cmpmem_short"): Likewise.
8518
8519 2004-10-05  Daniel Berlin  <dberlin@dberlin.org>
8520
8521         * tree-ssa.c (verify_ssa): Verify phi arguments only
8522         contain renamed names.
8523
8524 2004-10-05  Alan Modra  <amodra@bigpond.net.au>
8525
8526         * config/rs6000/linux.h: Formatting, whitespace.
8527         * config/rs6000/linux64.h: Likewise.
8528         * config/rs6000/rs6000-protos.h: Likewise.
8529         * config/rs6000/rs6000.c: Likewise.
8530         (easy_vector_splat_const): Add fall thru comments.
8531         (output_vec_const_move): Likewise.
8532
8533 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
8534
8535         * Makefile.in: Update -Wno-error exceptions for move to build dir.
8536
8537 2004-10-05  Chao-Ying Fu  <fu@mips.com>
8538             Richard Sandiford  <rsandifo@redhat.com>
8539
8540         * doc/invoke.texi (-mpaired-single): Link to the new description of the
8541         built-in functions.  Document dependencies.
8542         (-mips3d): Add link here too.
8543         * doc/extend.texi (MIPS Paired-Single Support): New section.
8544
8545 2004-10-04  Chao-ying Fu  <fu@mips.com>
8546
8547         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
8548
8549 2004-10-04  Diego Novillo  <dnovillo@redhat.com>
8550
8551         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
8552         Initialize OPT_STATS to 0.
8553
8554 2004-10-04  Kazu Hirata  <kazu@cs.umass.edu>
8555
8556         * tree-data-ref.c: Fix comment typos.
8557
8558 2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>
8559
8560         * tree-data-ref.c (array_base_name_differ_p): Fix comments.  When
8561         the predicate cannot be computed, don't initialize the result to
8562         false.
8563
8564 2004-10-01  Eric Christopher  <echristo@redhat.com>
8565
8566         * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
8567         locally defined enum.
8568         * dwarf2out.c (add_calling_convention_attribute): Don't
8569         emit DW_CC_normal.
8570
8571 2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>
8572
8573         PR c/17178, PR c/17820
8574         * c-decl.c (pop_scope): Do not warn about unused static
8575         variables as they warned in the middle-end.
8576
8577 2004-10-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8578
8579         * builtins.c (expand_builtin_memcpy): Delete duplicate code
8580         and make the first parameter the expression not the arglist.
8581
8582 2004-10-03  Ulrich Weigand  <uweigand@de.ibm.com>
8583
8584         * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
8585         as valid modes to expand address expressions.
8586
8587 2004-10-03  Joseph S. Myers  <jsm@polyomino.org.uk>
8588
8589         * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
8590         c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
8591         c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
8592         code formatting conventions.
8593
8594 2004-10-03  Richard Sandiford  <rsandifo@redhat.com>
8595
8596         * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
8597
8598 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
8599
8600         PR tree-optimization/16632
8601         * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
8602         fold (A & C) == D into 0, fold ~C.  Similarly, for the case
8603         where | is used instead of &.
8604
8605 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
8606
8607         * ginclude/stddef.h: Fix a comment typo.
8608
8609 2004-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
8610
8611         PR target/17443
8612         * config.gcc (i?86-*-solaris2*): Restore correct logic
8613         for --enable-threads option.
8614         (sparc64-*-solaris2*): Likewise.
8615         (sparc-*-solaris2*): Likewise.
8616
8617 2004-10-03  Alan Modra  <amodra@bigpond.net.au>
8618
8619         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
8620         (OS_MISSING_POWERPC64): Move, and comment.
8621         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
8622         (OS_MISSING_POWERPC64): Move, and comment.
8623
8624 2004-10-02  Ian Lance Taylor  <ian@wasabisystems.com>
8625
8626         * arm.c (output_call_mem): Add missing \t.
8627
8628 2004-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8629
8630         * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
8631         expand_builtin_strncmp): Delete duplicate code.
8632
8633 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
8634
8635         * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
8636         take check-base and -limit arguments.
8637         (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
8638         check ranges for ARRAY_REF and COMPONENT_REF.
8639         (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
8640         instrumentation.
8641
8642 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
8643
8644         * c-objc-common.c (c_tree_printer): Correct description of %E.
8645         Don't fall through after printing an expression.
8646
8647 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
8648
8649         * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
8650
8651 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
8652
8653         * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
8654         delete_unrechable_blocks() only when necessary.
8655
8656 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
8657
8658         * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
8659         (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
8660         (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
8661         __gthread_recursive_mutex_unlock): New functions.
8662
8663 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
8664
8665         * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
8666         * config/s390/tpf-eh.c: Remove file.
8667         * config/s390/tpf-unwind.h: New file.
8668         * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
8669         (MD_UNWIND_SUPPORT): Define.
8670
8671 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
8672
8673         * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
8674
8675 2004-10-01  Ulrich Weigand  <uweigand@de.ibm.com>
8676
8677         * config/s390/s390-protos.h (s390_comparison): Add prototype.
8678         * config/s390/s390.c (s390_comparison): New function.
8679         (s390_branch_condition_mask): Return -1 for invalid comparisons.
8680         (s390_branch_condition_mnemonic): Assert valid comparison.
8681         * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
8682         * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
8683         "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
8684         s390_comparison instead of comparison_operator.
8685
8686         * config/s390/s390.md (UNSPEC_CMPINT): New constant.
8687         ("cmpmemdi"): Remove.
8688         ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
8689         ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
8690         ("cmpint_si"): Rename to ...
8691         ("*cmpint_si"): ... this.  Use UNSPEC_CMPINT.
8692         ("cmpint_di", "*cmpint_di"): Likewise.
8693         * config/s390/s390.c (s390_canonicalize_comparison): Remove
8694         redundant UNSPEC_CMPINT conversions.
8695         (s390_expand_cmpmem): Adapt to cmpint pattern changes.
8696
8697 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
8698
8699         * collect2.c (COLLECT_PARSE_FLAG): Remove.
8700         (main): Remove a reference to COLLECT_PARSE_FLAG
8701         * system.h: Poison COLLECT_PARSE_FLAG.
8702         * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
8703
8704 2004-10-01  Paul Brook  <paul@codesourcery.com>
8705
8706         * config/arm/crti.asm: Give _init and _fini function type.
8707
8708 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
8709
8710         * common.opt (ftree-loop-ivcanon): Enable by default.
8711         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8712         Enable complete loop unrolling.
8713         (canonicalize_induction_variables, tree_unroll_loops_completely):
8714         Reset scev info.
8715
8716 2004-10-01  Paul Brook  <paul@codesourcery.com>
8717
8718         * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
8719         not register number.
8720         (thumb_find_work_register): Search full register range.
8721
8722 2004-10-01  Andrew Pinski  <pinskia@physics.uc.edu>
8723
8724         PR tree-opt/17343
8725         * tree-cfg.c (group_case_labels): Get the label and not
8726         the case expr for the default case.
8727         When the label we looking at is the default, decrement the
8728         new_size.
8729
8730 2004-10-01  Jan Hubicka  <jh@suse.cz>
8731
8732         * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
8733         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8734         * toplev.h (tree_rest_of_compilation): Update prototype.
8735         * tree-optimize.c (tree_rest_of_compilation):  Kill nested_p argument.
8736
8737 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
8738
8739         * tree-cfg.c (cleanup_tree_cfg): Pull a call to
8740         cleanup_control_flow() out of the while loop.
8741
8742 2004-10-01  Paolo Bonzini  <bonzini@gnu.org>
8743
8744         * tree-vectorizer.c (vectorizable_operation): Fail unless
8745         the mode for the vector type is indeed a vector mode.
8746
8747 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
8748
8749         * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
8750         chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
8751         of convert.
8752         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
8753         add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
8754         follow_ssa_edge_in_rhs): Ditto.
8755         * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
8756         (dump_iv): Dump base_object.
8757         (dump_use, dump_cand): Use dump_iv.
8758         (determine_base_object): New function.
8759         (alloc_iv): Initialize base_object field.
8760         (record_use): Clear the ssa_name field of iv.
8761         (get_computation_cost_at): Do not use difference of addresses of
8762         two different objects.
8763         (may_eliminate_iv): Do not require the loop to have just single exit.
8764         * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
8765         (nonzero_p): New function.
8766         (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
8767         tree_simplify_using_condition, simplify_using_initial_conditions,
8768         loop_niter_by_eval, find_loop_niter_by_eval,
8769         estimate_numbers_of_iterations_loop, compare_trees,
8770         upper_bound_in_type, lower_bound_in_type,
8771         can_count_iv_in_wider_type_bound): Use buildN instead of build.  Use
8772         fold_convert or build_int_cst_type instead of convert.  Use (non)zero_p
8773         instead of integer_(non)zerop.
8774
8775 2004-10-01  Jakub Jelinek  <jakub@redhat.com>
8776
8777         Revert
8778         2004-09-29  Jakub Jelinek  <jakub@redhat.com>
8779
8780         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
8781         and TI_VA_LIST_FPR_COUNTER_FIELD.
8782         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
8783         * tree-pass.h (pass_stdarg): Add.
8784         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
8785         * tree-stdarg.c: New file.
8786         * Makefile.in (OBJS-common): Add tree-stdarg.o.
8787         (tree-stdarg.o): Add dependencies.
8788         * function.h (struct function): Add va_list_gpr_size and
8789         va_list_fpr_size fields.
8790         * function.c (allocate_struct_function): Initialize them.
8791
8792         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
8793         va_list_{g,f}pr_counter_field.
8794         (ix86_setup_incoming_varargs): Don't do anything if reg_save
8795         area will not be used.  Only save registers that tree-stdarg.c
8796         detected they need saving.
8797         (ix86_va_start): Don't set up fields that won't be used.
8798
8799         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
8800         va_list_{g,f}pr_counter_field.
8801         (setup_incoming_varargs): Don't do anything if reg_save
8802         area will not be used.  Only save registers that tree-stdarg.c
8803         detected they need saving.
8804         (rs6000_va_start): Don't set up fields that won't be used.
8805
8806 2004-09-30  Eric Christopher  <echristo@redhat.com>
8807
8808         * dwarf2.h (dwarf_calling_convention): Add enum for renesas
8809         sh abi.
8810         * dwarf2out.c (add_calling_convention_attribute): New function.
8811         (gen_subroutine_type_die): Use.
8812         * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
8813         * target.h (gcc_target): Add dwarf_calling_convention.
8814         * hooks.c (hook_int_tree_0): New function.
8815         * hooks.h: Prototype.
8816         * config/sh/sh.c: Include dwarf2.h.
8817         (sh_dwarf_calling_convention): New function.
8818         (TARGET_DWARF_CALLING_CONVENTION): Use.
8819         * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
8820
8821 2004-09-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8822
8823         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
8824         expand_builtin_strrchr, expand_builtin_strpbrk,
8825         expand_builtin_strncat, expand_builtin_strspn,
8826         expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
8827         code.
8828
8829 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
8830
8831         * config/s390/s390-protos.h (s390_expand_logical_operator): Add
8832         prototype.
8833         (s390_logical_operator_ok_p): Likewise.
8834         * config/s390/s390.c (s390_expand_logical_operator): New function.
8835         (s390_logical_operator_ok_p): Likewise.
8836         * config/s390/s390.md ("anddi3"): New expander.
8837         ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
8838         ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
8839         ("andsi3"): Use s390_expand_logical_operator.
8840         ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
8841         ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
8842         ("andhi3"): New expander.
8843         ("*andhi3_zarch", "*andhi3_esa"): New patterns.
8844         ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
8845         ("andqi3"): New expander.
8846         ("*andqi3_zarch", "*andqi3_esa"): New patterns.
8847         ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
8848         ("iordi3"): New expander.
8849         ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
8850         ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
8851         ("iorsi3"): Use s390_expand_logical_operator.
8852         ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
8853         ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
8854         ("iorhi3"): New expiorer.
8855         ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
8856         ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
8857         ("iorqi3"): New expiorer.
8858         ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
8859         ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
8860         ("xordi3"): New expander.
8861         ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
8862         ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
8863         ("xorsi3"): New expander.
8864         ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
8865         ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
8866         ("xorhi3"): New expander.
8867         ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
8868         ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
8869         ("xorqi3"): New expander.
8870         ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
8871         ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
8872
8873 2004-09-30  Roger Sayle  <roger@eyesopen.com>
8874
8875         * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
8876         (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
8877         machine mode as the result.
8878
8879 2004-09-30  Ben Elliston  <bje@au.ibm.com>
8880
8881         PR bootstrap/17761
8882         * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
8883         FOR_EACH_EDGE macros.
8884
8885 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
8886
8887         * c-tree.h (readonly_error): Remove.
8888         * c-typeck (enum lvalue_use): New.
8889         (lvalue_or_else, readonly_error): Use it.  All callers changed.
8890         (readonly_error): Make static.
8891
8892 2004-09-30  Jan Hubicka  <jh@suse.cz>
8893
8894         PR debug/13974
8895         * cfgrtl.c (try_redirect_by_replacing_jump,
8896         force_nonfallthru_and_redirect, commit_one_edge_insertion,
8897         cfg_layout_merge_blocks):  Do not attach any line number information
8898         to newly inserted instructions.
8899         * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
8900         emit_insn_*_noloc.
8901         (emit_*insn_before, emit_insn*_after): New.
8902         (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
8903         existing locators.
8904         * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
8905         (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
8906
8907 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
8908
8909         * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
8910         (s390_return_address_offset): Remove.
8911         (s390_can_eliminate): Add prototype.
8912         (s390_initial_elimination_offset): Add prototype.
8913         * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
8914         (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
8915         * config/s390/s390.c (s390_arg_frame_offset): Remove.
8916         (s390_return_address_offset): Remove.
8917         (s390_can_eliminate, s390_initial_elimination_offset): New functions.
8918         (struct machine_function): New member split_branches_pending_p.
8919         (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
8920         (s390_mainpool_finish): Likewise.  Clear base_reg if pool empty.
8921         (s390_optimize_prologue): Remove base_used argument.  Call
8922         s390_update_frame_layout instead of s390_register_info.  Handle
8923         prologue/epilogue insns that touch only RETURN_REGNUM.
8924         (s390_reorg): Remove base_used.  Clear split_branches_pending_p.
8925         (s390_register_info): Remove base_used and return_addr_used
8926         arguments, compute special register usage inline.  Return live
8927         register data to caller.
8928         (s390_frame_info): Remove arguments, do not call s390_register_info.
8929         (s390_init_frame_layout): New function.
8930         (s390_update_frame_layout): Likewise.
8931         (s390_emit_prologue): Call s390_update_frame_layout; some code
8932         move to there.  Do not emit pool placeholder insn if unnecessary.
8933
8934 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
8935
8936         * config/s390/s390.c (legitimate_reload_constant_p): Remove
8937         floating point constant workaround.
8938         (s390_secondary_input_reload_class): Handle PLUS reloads
8939         with too-large constant.
8940         (s390_expand_plus_operand): Likewise.
8941         * config/s390/s390.md ("movdi"): Do not call force_const_mem.
8942         ("movsi"): Likewise.  Also, remove workaround for non-general
8943         operands.
8944         ("movdf"): Do not call force_const_mem.
8945         ("movsf"): Likewise.  Merge expander with *movsf insn.
8946         ("*movsf"): Remove, merge with movsf expander.
8947
8948 2004-09-30  Paul Brook  <paul@codesourcery.com>
8949
8950         * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
8951         (ENDFILE_SPEC): Define.
8952         * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
8953
8954 2004-09-30  Richard Henderson  <rth@redhat.com>
8955
8956         * config/alpha/qrnnd.asm: Mark for noexecstack.
8957
8958 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
8959
8960         * protoize.c, tree-cfg.c: Fix comment typos.
8961
8962 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
8963
8964         PR c/17730
8965         * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
8966
8967 2004-09-30  Diego Novillo  <dnovillo@redhat.com>
8968
8969         * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
8970         expressions...
8971         (add_pointed_to_expr): ... here.
8972         Call add_pointed_to_expr for variables with DECL_INITIAL set.
8973         * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
8974         pointer variable, if set.
8975
8976 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
8977
8978         * config/sh/sh.c: Follow spelling conventions.
8979
8980 2004-09-29  Richard Henderson  <rth@redhat.com>
8981
8982         * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
8983         * doc/tm.texi (DWARF_ZERO_REG): New.
8984
8985         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
8986         alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
8987         * config/alpha/alpha.h (DWARF_ZERO_REG): New.
8988
8989 2004-09-29  Ulrich Weigand  <uweigand@de.ibm.com>
8990
8991         * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
8992         with a PLUS as source operand.
8993         (expand_movstr): Likewise.
8994         (expand_builtin_stpcpy): Likewise.
8995
8996 2004-09-29  Richard Henderson  <rth@redhat.com>
8997
8998         PR 17739
8999         * tree-gimple.c (is_gimple_reg): Reject hard registers.
9000         (is_gimple_asm_val): New.
9001         * tree-gimple.h (is_gimple_asm_val): Declare.
9002         * gimplify.c (gimplify_asm_expr): Use it.
9003         * tree-pretty-print.c (print_declaration): Dump hard regs.
9004         * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
9005         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9006         * tree-ssa-pre.c (is_undefined_value): Likewise.
9007         * tree-ssa-copy.c (may_propagate_copy): Likewise.
9008         (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
9009         * tree-ssa.c (warn_uninit): Likewise.
9010         * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
9011
9012 2004-09-29  Fariborz Jahanian <fjahanian@apple.com>
9013
9014         * c-decl.c (merge_decls): Use comptype when comparing
9015         types to decide on DECL_SIZE save of olddecl.
9016
9017 2004-09-29  Daniel Berlin  <dberlin@dberlin.org>
9018
9019         * tree.h (INDIRECT_REF_P): New macro.
9020         * alias.c (get_alias_set): Use it
9021         (nonoverlapping_memrefs_p): Ditto.
9022         * emit-rtl.c (mem_expr_equal_p): Ditto.
9023         (set_mem_attributes_minus_bitpos): Ditto.
9024         (is_gimple_addressable): Ditto.
9025         (get_base_address): Ditto.
9026         * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
9027         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
9028         * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
9029         * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
9030         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
9031         (add_address_candidates): Ditto.
9032         (rewrite_address_base): Ditto.
9033
9034 2004-09-30  Ben Elliston  <bje@au.ibm.com>
9035
9036         * tree-flow.h (struct bb_ann_d): Remove num_preds member.
9037         * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
9038         (rewrite_ssa_into_ssa): Likewise.
9039         * tree-phinodes.c (create_phi_node): Access the number of
9040         predecessor edges using EDGE_COUNT() and not num_preds.
9041
9042 2004-09-29  Joseph S. Myers  <jsm@polyomino.org.uk>
9043
9044         PR c/7425
9045         * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
9046
9047 2004-09-29  Eric Christopher  <echristo@redhat.com>
9048
9049         * fold-const.c (tree_swap_operands_p): Remove duplicated code.
9050
9051 2004-09-29  Hans-Peter Nilsson  <hp@axis.com>
9052
9053         * config/cris/cris.md (moverside, movemside): With MEM, make sure
9054         the address is (plus reg mem).
9055
9056 2004-09-29  David Edelsohn  <edelsohn@gnu.org>
9057
9058         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
9059
9060 2004-09-29  Nathan Sidwell  <nathan@codesourcery.com>
9061
9062         * tree.c (make_node_stat): Fix uninitialized warning.  Replace
9063         cascaded if ... else if with a switch.
9064
9065 2004-09-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9066
9067         * read-rtl.c (apply_macro_to_string): Replace index with strchr.
9068
9069 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
9070
9071         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9072         and TI_VA_LIST_FPR_COUNTER_FIELD.
9073         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9074         * tree-pass.h (pass_stdarg): Add.
9075         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9076         * tree-stdarg.c: New file.
9077         * Makefile.in (OBJS-common): Add tree-stdarg.o.
9078         (tree-stdarg.o): Add dependencies.
9079         * function.h (struct function): Add va_list_gpr_size and
9080         va_list_fpr_size fields.
9081         * function.c (allocate_struct_function): Initialize them.
9082
9083         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9084         va_list_{g,f}pr_counter_field.
9085         (ix86_setup_incoming_varargs): Don't do anything if reg_save
9086         area will not be used.  Only save registers that tree-stdarg.c
9087         detected they need saving.
9088         (ix86_va_start): Don't set up fields that won't be used.
9089
9090         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9091         va_list_{g,f}pr_counter_field.
9092         (setup_incoming_varargs): Don't do anything if reg_save
9093         area will not be used.  Only save registers that tree-stdarg.c
9094         detected they need saving.
9095         (rs6000_va_start): Don't set up fields that won't be used.
9096
9097 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
9098
9099         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
9100         BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
9101         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
9102         BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
9103         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
9104         ATTR_NONNULL_1_4): New.
9105
9106 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
9107
9108         PR tree-optimization/17697
9109         * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
9110         cfg if needed.
9111
9112 2004-09-28  Per Bothner  <per@bothner.com>
9113
9114         * profile.c (branch_prob): Pass correct value to output_location,
9115         even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
9116
9117 2004-09-28  Richard Henderson  <rth@redhat.com>
9118
9119         PR 15089
9120         * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
9121         * tree-flow.h (may_propagate_copy_into_asm): Declare.
9122         * tree-ssa-ccp.c (replace_uses_in): Use it.
9123         * tree-ssa-dom.c (cprop_operand): Likewise.
9124
9125 2004-09-28 Jeff Law  <law@redhat.com>
9126
9127         * tree-ssa-threadupdate.c (create_block_for_threading):  Request
9128         that no outgoing edges be left in the duplicate block.  Do no
9129         update information on outgoing edges or PHI nodes in target
9130         blocks here.
9131         (remove_ctrl_stmt_and_useless_edges): Renamed from
9132         remove_last_stmt_and_useless_edges.  Handle case where the
9133         block is empty or has no control statements.  Do not update edge
9134         flags here.
9135         (thread_block): Create a template block rather than copying the
9136         original block every time.  Create outgoing edges from the
9137         duplicate blocks and update PHIs at the target of the outgoing
9138         edges here.  Fix edge flags for the original block if necessary.
9139         * cfghooks (duplicate_block): No longer assert that the original
9140         block has incoming edges.
9141
9142 2004-09-29  Hans-Peter Nilsson  <hp@bitrange.com>
9143
9144         * doc/extend.texi (Extended Asm): Add blurb about using Explicit
9145         Reg Vars to enforce register allocation with general constraints.
9146         (Explicit Reg Vars): Clarify relation to asm statements.
9147         (Local Reg Vars): Similar.
9148
9149 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
9150
9151         * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
9152         TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
9153         build_control_flow, new_edge): Remove.
9154         (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
9155         (bitlst, bitlst_table_last, bitlst_table): Remove.
9156         (bblst): Store basic_block pointer instead of block index.
9157         (bblst_table): Likewise.
9158         (edgelst): Store edge pointer instead of edge index.
9159         (edgelst_table, edgelst_last): New variables.
9160         (extract_bitlst): Rename to ...
9161         (extract_edgelst): ... this.  Return edge pointers, not indices.
9162         (split_edges): Update call.
9163         (rgn_edges): Store edge pointers instead of indices.
9164         (edge_to_bit): Remove.
9165         (EDGE_TO_BIT): Store per-region edge index in edge->aux.
9166         (SET_EDGE_TO_BIT): New macro.
9167         (is_cfg_nonregular): Check for simple cases of unreachable blocks.
9168         (find_rgns): Remove edge_list parameter.  Traverse standard CFG
9169         data structures instead of haifa_edge et al.  Use edge pointers
9170         instead of edge indices everywhere.
9171         (compute_dom_prob_ps): Use standard CFG data structures.  Account
9172         for exit edges.
9173         (compute_trg_info): Likewise.
9174         (propagate_deps): Likewise.
9175         (debug_candidate): Account for bblst data structure change.
9176         (check_live_1, update_live_1, is_pfree): Likewise.
9177         (IS_REACHABLE): Use standard CFG data structures.
9178         (init_ready_list): Update bblst_table/edgelst_table allocation.
9179         (schedule_region): Update alloc/cleanup code to data structure
9180         changes.  Use edge->aux to store per-region edge index.
9181         (init_regions): No longer call build_control_flow.  Do not
9182         create edge list any more.
9183
9184 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
9185
9186         * cse.c (cse_insn): Avoid creating direct non-local jumps.
9187         * combine.c (can_combine_p): Likewise.
9188         * local-alloc. (update_equiv_regs): Likewise.
9189
9190 2004-09-28  Richard Henderson  <rth@redhat.com>
9191
9192         PR 17531
9193         * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
9194         Don't check VOIDmode here.  Force PLUS operands to common type.
9195         (expand_expr_addr_expr): Do VOIDmode check earlier.  Force use of
9196         Pmode if given a non pointer type.
9197
9198 2004-09-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9199
9200         PR 17531
9201         * optabs.c (expand_binop): Force constants to the correct mode.
9202
9203 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
9204
9205         * config/s390/s390.c (s390_adjust_cost): Remove.
9206         (TARGET_SCHED_ADJUST_COST): Do not redefine.
9207         (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
9208         * config/s390/s390.md ("main_pool"): Use "larl" type
9209         attribute if TARGET_CPU_ZARCH.
9210
9211 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
9212
9213         * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
9214         variable.
9215
9216 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
9217
9218         * tree-ssa-loop.c (pass_record_bounds): Do not assign a
9219         name to the pass.
9220
9221 2004-09-28  Steven Bosscher  <stevenb@suse.de>
9222
9223         * common.opt (flag_gcse_sm): Disable by default.
9224         (flag_gcse_las): Likewise.
9225         (flag_web): Likewise.  Create from this file.
9226         * flags.h: Remove flag_web declaration.
9227         * toplev.c (flag_web): Likewise.
9228         (process_options): Never set flag_web.
9229
9230 2004-09-28  Steven Bosscher  <stevenb@suse.de>
9231
9232         * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
9233         * tree-ssa-propagate.c: Include vec.h.
9234         (interesting_ssa_edges, varying_ssa_edges): Make these VECs
9235         instead of varrays.
9236         (cfg_blocks_add): Assert the block is not already in the worklist.
9237         Update uses of interesting_ssa_edges and varying_ssa_edges.
9238         (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
9239         ssa_propagate): Likewise.
9240
9241 2004-09-28  Joseph S. Myers  <jsm@polyomino.org.uk>
9242
9243         PR c/16409
9244         * c-decl.c (start_decl): Check for initializing incomplete array
9245         of VLAs.
9246         (build_compound_literal): Check for TYPE being error_mark_node.
9247         * c-parse.in (primary): Check for VLA compound literals.
9248
9249 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
9250
9251         * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
9252         with --disable-checking.
9253
9254 2004-09-28  Devang Patel  <dpatel@apple.com>
9255
9256         * tree-pretty-print.c (dump_generic_node): Print vector types.
9257
9258 2004-09-28  Nick Clifton  <nickc@redhat.com>
9259
9260         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
9261         invocation of the function sh_init_cumulative_args.
9262         (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
9263         (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
9264         * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
9265         * config/sh/sh.c (sh_init_cumulative_args): New function based
9266         on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
9267         heuristic added to determine the setting of force_mem when a
9268         library function is being called.
9269
9270 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
9271
9272         * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
9273         Skip constant arguments.
9274
9275 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
9276
9277         * tree-ssa-alias.c (create_name_tags): If PTR points to a
9278         volatile type, mark the tag volatile.
9279         (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
9280         volatile.
9281
9282 2004-09-28  Andrew Pinski  <pinskia@physics.uc.edu>
9283
9284         * tree.def (vec_cond_expr): Fix. Change 'e'
9285         to tcc_expression.
9286
9287 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
9288
9289         * basic-block.h: Fix a comment typo.
9290
9291 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
9292
9293         * optabs.c, optabs.h: Fix comment typos.
9294
9295 2004-09-28  Eric Botcazou  <ebotcazou@act-europe.fr>
9296
9297         * config/sparc/sparc.md (call_address_struct_value_sp32):
9298         Properly mask the immediate field of the 'unimp' instruction.
9299         (call_symbolic_struct_value_sp32): Likewise.
9300
9301 2004-09-28  Ben Elliston  <bje@au.ibm.com>
9302             Steven Bosscher  <stevenb@suse.de>
9303             Andrew Pinski  <pinskia@physics.uc.edu>
9304
9305         Merge from edge-vector-branch:
9306         * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
9307         (struct edge_def): Remove pred_next, succ_next members.
9308         (struct basic_block_def): Remove pred, succ members.  Add preds
9309         and succs members of type VEC(edge).
9310         (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
9311         (BRANCH_EDGE): Likewise.
9312         (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
9313         (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
9314         (edge_iterator): New.
9315         (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
9316         (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
9317         (FOR_EACH_EDGE): New.
9318         * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
9319         where applicable.
9320         (rotate_loop): Likewise.
9321         (find_traces_1_route): Likewise.
9322         (bb_to_key): Likewise.
9323         (connect_traces): Likewise.
9324         (copy_bb_p): Likewise.
9325         (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
9326         (add_labels_and_missing_jumps): Likewise.
9327         (fix_up_fall_thru_edges): Likewise.
9328         (find_jump_block): Likewise.
9329         (fix_crossing_conditional_branches): Likewise.
9330         (fix_crossing_unconditional_branches): Likewise.
9331         (add_reg_crossing_jump_notes): Likewise.
9332         * bt-load.c (augment_live_range): Likewise.
9333         * cfg.c (clear_edges): Likewise.
9334         (unchecked_make_edge): Likewise.
9335         (cached_make_edge): Likewise.
9336         (make_single_succ_edge): Likewise.
9337         (remove_edge): Likewise.
9338         (redirect_edge_succ_nodup): Likewise.
9339         (check_bb_profile): Likewise.
9340         (dump_flow_info): Likewise.
9341         (alloc_aux_for_edges): Likewise.
9342         (clear_aux_for_edges): Likewise.
9343         (dump_cfg_bb_info): Likewise.
9344         * cfganal.c (forwarder_block_p): Likewise.
9345         (can_fallthru): Likewise.
9346         (could_fall_through): Likewise.
9347         (mark_dfs_back_edges): Likewise.
9348         (set_edge_can_fallthru_flag): Likewise.
9349         (find_unreachable_blocks): Likewise.
9350         (create_edge_list): Likewise.
9351         (verify_edge_list): Likewise.
9352         (add_noreturn_fake_exit_edges): Likewise.
9353         (connect_infinite_loops_to_exit): Likewise.
9354         (flow_reverse_top_sort_order_compute): Likewise.
9355         (flow_depth_first_order_compute): Likewise.
9356         (flow_preorder_transversal_compute): Likewise.
9357         (flow_dfs_compute_reverse_execute): Likewise.
9358         (dfs_enumerate_from): Likewise.
9359         (compute_dominance_frontiers_1): Likewise.
9360         * cfgbuild.c (make_edges): Likewise.
9361         (compute_outgoing_frequencies): Likewise.
9362         (find_many_sub_basic_blocks): Likewise.
9363         (find_sub_basic_blocks): Likewise.
9364         * cfgcleanup.c (try_simplify_condjump): Likewise.
9365         (thread_jump): Likewise.
9366         (try_forward_edges): Likewise.
9367         (merge_blocks_move): Likewise.
9368         (outgoing_edges_match): Likewise.
9369         (try_crossjump_to_edge): Likewise.
9370         (try_crossjump_bb): Likewise.
9371         (try_optimize_cfg): Likewise.
9372         (merge_seq_blocks): Likewise.
9373         * cfgexpand.c (expand_gimple_tailcall): Likewise.
9374         (expand_gimple_basic_block): Likewise.
9375         (construct_init_block): Likewise.
9376         (construct_exit_block): Likewise.
9377         * cfghooks.c (verify_flow_info): Likewise.
9378         (dump_bb): Likewise.
9379         (delete_basic_block): Likewise.
9380         (split_edge): Likewise.
9381         (merge_blocks): Likewise.
9382         (make_forwarder_block): Likewise.
9383         (tidy_fallthru_edges): Likewise.
9384         (can_duplicate_block_p): Likewise.
9385         (duplicate_block): Likewise.
9386         * cfglayout.c (fixup_reorder_chain): Likewise.
9387         (fixup_fallthru_exit_predecessor): Likewise.
9388         (can_copy_bbs_p): Likewise.
9389         (copy_bbs): Likewise.
9390         * cfgloop.c (flow_loops_cfg_dump): Likewise.
9391         (flow_loop_entry_edges_find): Likewise.
9392         (flow_loop_exit_edges_find): Likewise.
9393         (flow_loop_nodes_find): Likewise.
9394         (mark_single_exit_loops): Likewise.
9395         (flow_loop_pre_header_scan): Likewise.
9396         (flow_loop_pre_header_find): Likewise.
9397         (update_latch_info): Likewise.
9398         (canonicalize_loop_headers): Likewise.
9399         (flow_loops_find): Likewise.
9400         (get_loop_body_in_bfs_order): Likewise.
9401         (get_loop_exit_edges): Likewise.
9402         (num_loop_branches): Likewise.
9403         (verify_loop_structure): Likewise.
9404         (loop_latch_edge): Likewise.
9405         (loop_preheader_edge): Likewise.
9406         * cfgloopanal.c (mark_irreducible_loops): Likewise.
9407         (expected_loop_iterations): Likewise.
9408         * cfgloopmanip.c (remove_bbs): Likewise.
9409         (fix_bb_placement): Likewise.
9410         (fix_irreducible_loops): Likewise.
9411         (remove_path): Likewise.
9412         (scale_bbs_frequencies): Likewise.
9413         (loopify): Likewise.
9414         (unloop): Likewise.
9415         (fix_loop_placement): Likewise.
9416         (loop_delete_branch_edge): Likewise.
9417         (duplicate_loop_to_header_edge): Likewise.
9418         (mfb_keep_just): Likewise.
9419         (create_preheader): Likewise.
9420         (force_single_succ_latches): Likewise.
9421         (loop_split_edge_with): Likewise.
9422         (create_loop_notes): Likewise.
9423         * cfgrtl.c (rtl_split_block): Likewise.
9424         (rtl_merge_blocks): Likewise.
9425         (rtl_can_merge_blocks): Likewise.
9426         (try_redirect_by_replacing_jump): Likewise.
9427         (force_nonfallthru_and_redirect): Likewise.
9428         (rtl_tidy_fallthru_edge): Likewise.
9429         (commit_one_edge_insertion): Likewise.
9430         (commit_edge_insertions): Likewise.
9431         (commit_edge_insertions_watch_calls): Likewise.
9432         (rtl_verify_flow_info_1): Likewise.
9433         (rtl_verify_flow_info): Likewise.
9434         (purge_dead_edges): Likewise.
9435         (cfg_layout_redirect_edge_and_branch): Likewise.
9436         (cfg_layout_can_merge_blocks_p): Likewise.
9437         (rtl_flow_call_edges_add): Likewise.
9438         * cse.c (cse_cc_succs): Likewise.
9439         * df.c (hybrid_search): Likewise.
9440         * dominance.c (calc_dfs_tree_nonrec): Likewise.
9441         (calc_dfs_tree): Likewise.
9442         (calc_idoms): Likewise.
9443         (recount_dominator): Likewise.
9444         * domwalk.c (walk_dominator_tree): Likewise.
9445         * except.c (emit_to_new_bb_before): Likewise.
9446         (connect_post_landing_pads): Likewise.
9447         (sjlj_emit_function_enter): Likewise.
9448         (sjlj_emit_function_exit): Likewise.
9449         (finish_eh_generation): Likewise.
9450         * final.c (compute_alignments): Likewise.
9451         * flow.c (calculate_global_regs_live): Likewise.
9452         (initialize_uninitialized_subregs): Likewise.
9453         (init_propagate_block_info): Likewise.
9454         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9455         * gcse.c (find_implicit_sets): Likewise.
9456         (bypass_block): Likewise.
9457         (bypass_conditional_jumps): Likewise.
9458         (compute_pre_data): Likewise.
9459         (insert_insn_end_bb): Likewise.
9460         (insert_store): Likewise.
9461         (remove_reachable_equiv_notes): Likewise.
9462         * global.c (global_conflicts): Likewise.
9463         (calculate_reg_pav): Likewise.
9464         * graph.c (print_rtl_graph_with_bb): Likewise.
9465         * ifcvt.c (mark_loop_exit_edges): Likewise.
9466         (merge_if_block): Likewise.
9467         (find_if_header): Likewise.
9468         (block_jumps_and_fallthru_p): Likewise.
9469         (find_if_block): Likewise.
9470         (find_cond_trap): Likewise.
9471         (block_has_only_trap): Likewise.
9472         (find_if_case1): Likewise.
9473         (find_if_case_2): Likewise.
9474         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
9475         (perfect_nestify): Likewise.
9476         * lcm.c (compute_antinout_edge): Likewise.
9477         (compute_laterin): Likewise.
9478         (compute_available): Likewise.
9479         (compute_nearerout): Likewise.
9480         * loop-doloop.c (doloop_modify): Likewise.
9481         * loop-init.c (loop_optimizer_init): Likewise.
9482         * loop-invariant.c (find_exits): Likewise.
9483         * loop-iv.c (simplify_using_initial_values): Likewise.
9484         (check_simple_exit): Likewise.
9485         (find_simple_exit): Likewise.
9486         * loop-unroll.c (peel_loop_completely): Likewise.
9487         (unroll_loop_constant_iterations): Likewise.
9488         (unroll_loop_runtime_iterations): Likewise.
9489         * loop-unswitch.c (may_unswitch_on): Likewise.
9490         (unswitch_loop): Likewise.
9491         * modulo-sched.c (generate_prolog_epilog): Likewise.
9492         (sms_schedule): Likewise.
9493         * postreload-gcse.c (eliminate_partially_redundant_load):
9494         Likewise.
9495         * predict.c (can_predict_insn_p): Likewise.
9496         (set_even_probabilities): Likewise.
9497         (combine_predictions_for_bb): Likewise.
9498         (predict_loops): Likewise.
9499         (estimate_probability): Likewise.
9500         (tree_predict_by_opcode): Likewise.
9501         (tree_estimate_probability): Likewise.
9502         (last_basic_block_p): Likewise.
9503         (propagate_freq): Likewise.
9504         (estimate_loops_at_level): Likewise.
9505         (estimate_bb_frequencies): Likewise.
9506         * profile.c (instrument_edges): Likewise.
9507         (get_exec_counts): Likewise.
9508         (compute_branch_probabilities): Likewise.
9509         (branch_prob): Likewise.
9510         * ra-build.c (live_in): Likewise.
9511         * ra-rewrite.c (rewrite_program2): Likewise.
9512         * ra.c (reg_alloc): Likewise.
9513         * reg-stack.c (reg_to_stack): Likewise.
9514         (convert_regs_entry): Likewise.
9515         (compensate_edge): Likewise.
9516         (convert_regs_1): Likewise,
9517         (convert_regs_2): Likewise.
9518         (convert_regs): Likewise.
9519         * regrename.c (copyprop_hardreg_forward): Likewise.
9520         * reload1.c (fixup_abnormal_edges): Likewise.
9521         * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
9522         (sbitmap_insersection_of_preds): Likewise.
9523         (sbitmap_union_of_succs): Likewise.
9524         (sbitmap_union_of_preds): Likewise.
9525         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
9526         (fix_basic_block_boundaries): Likewise.
9527         (sched_ebbs): Likewise.
9528         * sched-rgn.c (build_control_flow): Likewise.
9529         (find_rgns): Likewise.
9530         * tracer.c (find_best_successor): Likewise.
9531         (find_best_predecessor): Likewise.
9532         (tail_duplicate): Likewise.
9533         * tree-cfg.c (make_edges): Likewise.
9534         (make_ctrl_stmt_edges): Likewise.
9535         (make_goto_expr_edges): Likewise.
9536         (tree_can_merge_blocks_p): Likewise.
9537         (tree_merge_blocks): Likewise.
9538         (cfg_remove_useless_stmts_bb): Likewise.
9539         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
9540         (tree_block_forwards_to): Likewise.
9541         (cleanup_control_expr_graph): Likewise.
9542         (find_taken_edge): Likewise.
9543         (dump_cfg_stats): Likewise.
9544         (tree_cfg2vcg): Likewise.
9545         (disband_implicit_edges): Likewise.
9546         (tree_find_edge_insert_loc): Likewise.
9547         (bsi_commit_edge_inserts): Likewise.
9548         (tree_split_edge): Likewise.
9549         (tree_verify_flow_info): Likewise.
9550         (tree_make_forwarder_block): Likewise.
9551         (tree_forwarder_block_p): Likewise.
9552         (thread_jumps): Likewise.
9553         (tree_try_redirect_by_replacing_jump): Likewise.
9554         (tree_split_block): Likewise.
9555         (add_phi_args_after_copy_bb): Likewise.
9556         (rewrite_to_new_ssa_names_bb): Likewise.
9557         (dump_function_to_file): Likewise.
9558         (print_pred_bbs): Likewise.
9559         (print_loop): Likewise.
9560         (tree_flow_call_edges_add): Likewise.
9561         (split_critical_edges): Likewise.
9562         (execute_warn_function_return): Likewise.
9563         (extract_true_false_edges_from_block): Likewise.
9564         * tree-if-conv.c (tree_if_conversion): Likewise.
9565         (if_convertable_bb_p): Likewise.
9566         (find_phi_replacement_condition): Likewise.
9567         (combine_blocks): Likewise.
9568         * tree-into-ssa.c (compute_global_livein): Likewise.
9569         (ssa_mark_phi_uses): Likewise.
9570         (ssa_rewrite_initialize_block): Likewise.
9571         (rewrite_add_phi_arguments): Likewise.
9572         (ssa_rewrite_phi_arguments): Likewise.
9573         (insert_phi_nodes_for): Likewise.
9574         (rewrite_into_ssa): Likewise.
9575         (rewrite_ssa_into_ssa): Likewise.
9576         * tree-mudflap.c (mf_build_check_statement_for): Likewise.
9577         * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
9578         (rewrite_trees): Likewise.
9579         * tree-pretty-print.c (dump_bb_header): Likewise.
9580         (dump_implicit_edges): Likewise.
9581         * tree-sra.c (insert_edge_copies): Likewise.
9582         (find_obviously_necessary_stmts): Likewise.
9583         (remove_data_stmt): Likewise.
9584         * tree-ssa-dom.c (thread_across_edge): Likewise.
9585         (dom_opt_finalize_block): Likewise.
9586         (single_incoming_edge_ignoring_loop_edges): Likewise.
9587         (record_equivalences_from_incoming_edges): Likewise.
9588         (cprop_into_successor_phis): Likewise.
9589         * tree-ssa-live.c (live_worklist): Likewise.
9590         (calculate_live_on_entry): Likewise.
9591         (calculate_live_on_exit): Likewise.
9592         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
9593         (copy_loop_headers): Likewise.
9594         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
9595         (fill_always_executed_in): Likewise.
9596         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
9597         * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
9598         (compute_phi_arg_on_exit): Likewise.
9599         * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
9600         (get_loops_exit): Likewise.
9601         (split_loop_exit_edge): Likewise.
9602         (ip_normal_pos): Likewise.
9603         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
9604         Likewise.
9605         * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
9606         (replace_phi_with_stmt): Likewise.
9607         (value_replacement): Likewise.
9608         * tree-ssa-pre.c (compute_antic_aux): Likewise.
9609         (insert_aux): Likewise.
9610         (init_pre): Likewise.
9611         * tree-ssa-propagate.c (simulate_stmt): Likewise.
9612         (simulate_block): Likewise.
9613         (ssa_prop_init): Likewise.
9614         * tree-ssa-threadupdate.c (thread_block): Likewise.
9615         (create_block_for_threading): Likewise.
9616         (remove_last_stmt_and_useless_edges): Likewise.
9617         * tree-ssa.c (verify_phi_args): Likewise.
9618         (verify_ssa): Likewise.
9619         * tree_tailcall.c (independent_of_stmt_p): Likewise.
9620         (find_tail_calls): Likewise.
9621         (eliminate_tail_call): Likewise.
9622         (tree_optimize_tail_calls_1): Likewise.
9623         * tree-vectorizer.c (vect_transform_loop): Likewise.
9624         * var-tracking.c (prologue_stack_adjust): Likewise.
9625         (vt_stack_adjustments): Likewise.
9626         (vt_find_locations): Likewise.
9627         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9628         * config/i386/i386.c (ix86_pad_returns): Likewise.
9629         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9630         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9631
9632 2004-09-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
9633
9634         PR target/16532
9635         * config/sparc/sparc.c (struct machine_function): New field
9636         'leaf_function_p' and 'prologue_data_valid_p'.
9637         (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
9638         to conveniently access the above fields.
9639         (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
9640         (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
9641         of the generic flavor 'current_function_uses_only_leaf_regs'.
9642         (eligible_for_sibcall_delay): Likewise.
9643         (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
9644         'sparc_prologue_data_valid_p'.  Use 'sparc_leaf_function_p'.
9645         (sparc_asm_function_prologue): Add sanity check for the assumption
9646         made in 'sparc_expand_prologue'.  Use 'sparc_leaf_function_p'.
9647         (sparc_can_use_return_insn_p): New function.
9648         (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
9649         (output_restore): Likewise.
9650         (output_sibcall): Likewise.
9651         (sparc_output_mi_thunk): Likewise.
9652         * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
9653         * config/sparc/sparc.md (return): New expander.
9654
9655         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
9656
9657 2004-09-27  Mark Mitchell  <mark@codesourcery.com>
9658
9659         PR c++/17642
9660         * stor-layout.c (layout_decl): Use fold_convert, not convert.
9661         (bit_from_pos): Likewise.
9662         (byte_from_pos): Likewise.
9663         (pos_from_bit): Likewise.
9664         (normalize_offset): Likewise.
9665         (place_field): Likewise.
9666         (finalize_type_size): Likewise.
9667         (layout_type): Likewise.
9668         * tree.c (build_index_type): Likewise.
9669
9670 2004-09-27  Devang Patel  <dpatel@apple.com>
9671
9672         * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
9673         * genopinit.c (optabs): New entry for vcond_gen_code and
9674         vcondu_gen_code.
9675         * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
9676         (get_rtx_code): New function.
9677         (vector_compare_rtx): New function.
9678         (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
9679         (expand_vec_cond_expr_p): New function.
9680         (expand_vec_cond_expr): New function.
9681         (get_vcond_icode): New function.
9682         * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
9683         (vcond_gen_code, vcondu_gen_code): Same.
9684
9685 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
9686
9687         * Makefile.in (STAGESTUFF): Split into ...
9688         (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
9689         (mostlyclean): Update.
9690         (stage1-start, stage2-start, stage3-start, stage4-start,
9691         stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
9692         Move the STAGEMOVESTUFF.
9693
9694 2004-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
9695
9696         * system.h (getpagesize): Return 'int' instead of 'long'.
9697
9698 2004-09-27  Michael Matz <matz@suse.de>
9699
9700         PR bootstrap/17698
9701         PR bootstrap/17702
9702         * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
9703         bmp_iter_and_init): Shift by bit_in_word.
9704
9705 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
9706
9707         * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
9708         * configure.ac: Don't sinclude it here.
9709         * configure: Regenerate.
9710
9711 2004-09-27  Dorit Naishlos  <dorit@il.ibm.com>
9712
9713         * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
9714         Handle AND pattern
9715
9716 2004-09-27  Joseph S. Myers  <jsm@polyomino.org.uk>
9717
9718         PR c/13804
9719         * c-typeck.c (build_component_ref): Name type involved in
9720         diagnostic for structure or union without a member of the given
9721         name.
9722
9723 2004-09-27  DJ Delorie  <dj@redhat.com>
9724
9725         * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
9726         .comm alignment is bytes, not bits.
9727
9728 2004-09-27  Devang Patel  <dpatel@apple.com>
9729
9730         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
9731         (print_call_name): Do not print VEC_COND_EXPR.
9732
9733 2004-09-27  Devang Patel  <dpatel@apple.com>
9734
9735         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
9736
9737 2004-09-27  Jan Hubicka  <jh@suse.cz>
9738
9739         * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
9740
9741 2004-09-27  Kazu Hirata  <kazu@cs.umass.edu>
9742
9743         * bitmap.h: Fix a comment typo.
9744
9745 2004-09-27  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
9746
9747         * libgcc2.c (getpagesize): Change type of return value to int.
9748
9749 2004-09-26  Matt Austern  <austern@apple.com>
9750
9751         * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
9752         using mmap.
9753
9754 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9755
9756         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
9757         EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
9758         (bitmap_iterator): New type.
9759         (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
9760         bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
9761         bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
9762         bmp_iter_and_init, bmp_iter_and_next): New functions.
9763         * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
9764         EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
9765         use iterator-style EXECUTE_IF_IN_BITMAP macros.
9766         * bitmap.c (bitmap_print): Ditto.
9767         * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
9768         btr_def_live_range): Ditto.
9769         * cfganal.c (compute_dominance_frontiers_1) Ditto.
9770         * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
9771         Ditto.
9772         * ddg.c (build_inter_loop_deps): Ditto.
9773         * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
9774         Ditto.
9775         * except.c (remove_eh_handler): Ditto.
9776         * flow.c (reg_set_to_hard_reg_set): Ditto.
9777         * gcse.c (clear_modify_mem_tables): Ditto.
9778         * global.c (build_insn_chain): Ditto.
9779         * ifcvt.c (dead_or_predicable): Ditto.
9780         * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
9781         Ditto.
9782         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
9783         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
9784         detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
9785         * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
9786         tree_purge_all_dead_eh_edges): Ditto.
9787         * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
9788         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
9789         rewrite_ssa_into_ssa): Ditto.
9790         * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
9791         * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
9792         Ditto.
9793         * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
9794         compute_flow_sensitive_aliasing, maybe_create_global_var,
9795         dump_points_to_info_for): Ditto.
9796         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
9797         * tree-ssa-dse.c (dse_finalize_block): Ditto.
9798         * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
9799         calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
9800         Ditto.
9801         * tree-ssa-loop-ivopts.c (find_induction_variables,
9802         find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
9803         determine_use_iv_costs, determine_set_costs, find_best_candidate,
9804         set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
9805         Ditto.
9806         * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
9807         * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
9808         add_call_read_ops): Ditto.
9809         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
9810
9811 2004-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9812
9813         * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
9814         UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
9815
9816 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
9817
9818         * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
9819         reflect size of memory regions being compared.
9820
9821 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
9822
9823         * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
9824         expressions.  Always clear MEM_SIZE and alias set.
9825
9826 2004-09-26  Roger Sayle  <roger@eyesopen.com>
9827             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
9828
9829         PR middle-end/17112
9830         * stor-layout.c (compute_record_mode): For records with a single
9831         field, only use the field's mode if its size matches what we'd
9832         have choosen for the record ourselves.  This forces the use of
9833         BLKmode for packed records that don't completely fill a mode.
9834
9835 2004-09-26  Roger Sayle  <roger@eyesopen.com>
9836
9837         PR middle-end/17151
9838         * combine.c (force_to_mode): Remove dubious early return test that
9839         inhibits further optimization.
9840
9841 2004-09-26  Kazu Hirata  <kazu@cs.umass.edu>
9842
9843         * profile.c: Fix a comment typo.
9844
9845 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9846
9847         PR bootstrap/17591
9848         * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
9849         with varying offset.
9850         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
9851         (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
9852         ARRAY_REFS.
9853         (expr_invariant_in_loop_p): New function.
9854         (idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
9855         component_ref_field_offset for COMPONENT_REFs.  Do not allow
9856         ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
9857         (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
9858         MISALIGNED_INDIRECT_REFs.
9859         (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
9860         (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
9861         MISALIGNED_INDIRECT_REFs.
9862
9863 2004-09-26  Joseph S. Myers  <jsm@polyomino.org.uk>
9864
9865         PR c/11459
9866         * gcc.c (cpp_options, cc1_options): Preserve relative order of
9867         -std and -ansi options.
9868
9869 2004-09-26  Jan Hubicka  <jh@suse.cz>
9870
9871         * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
9872         for nested functions whose proper parent has not been output.
9873
9874         * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
9875         when re-constructing profile previously invalidated by loop.
9876
9877 2004-09-25  Dale Johannesen  <dalej@apple.com>
9878
9879         * tree-gimple.c:  Move GIMPLE definition...
9880         * doc/tree-ssa.texi:  here.
9881
9882 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9883
9884         * tree-vectorizer.c: Fix a comment typo.
9885
9886 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9887
9888         * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
9889         gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
9890         lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
9891         tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
9892
9893 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9894
9895         * tree-ssa-loop-unswitch.c: Fix a comment typo.
9896
9897 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9898
9899         * doc/passes.texi: Fix a typo.
9900
9901 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9902
9903         * tree-optimize.c (init_tree_optimization_passes): Add
9904         pass_record_bounds.
9905         * tree-pass.h (pass_record_bounds): Declare.
9906         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
9907         New pass.
9908
9909 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9910
9911         PR tree-optimization/17474
9912         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
9913         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
9914
9915 2004-09-25  Jan Hubicka  <jh@suse.cz>
9916
9917         * predict.c (counts_to_freqs): Make global.
9918         * predict.h (counts_to_freqa): Declare.
9919         * profile.c (compute_branch_probabilities): Compute frequencies
9920         * tree-profile.c (do_tree_profiling): Refine conditional on when
9921         tree profiling pass is needed.
9922
9923         * passes.c (rest_of_handle_cfg): Disable const/pure function
9924         detection when doing tree based profiling.
9925
9926         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
9927         conditional.
9928
9929 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
9930
9931         * config/mips/mips.h (struct mips_args): Clarify comments.
9932         * config/mips/mips.c (struct mips_arg_info): Likewise.
9933         (mips_arg_info): Don't allow fpr_p to affect the register or
9934         stack alignment.  Remove o64 silliness.
9935         (function_arg): Deal with the o32 float,float case specially.
9936
9937 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
9938
9939         * config/mips/mips.md (loadx, storex): Define for V2SF.
9940
9941 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
9942
9943         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
9944         * config/s390/s390.c (s390_back_chain_rtx): New function.
9945         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
9946         Call anti_adjust_stack.
9947         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
9948         only if compiling with back chain.
9949         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
9950         back chain only if back chain enabled.  Use s390_back_chain_rtx.
9951
9952 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
9953
9954         * doc/trouble.texi: Remove obsolete information.  Update
9955         information on how to regenerate fixincluded headers.
9956
9957 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
9958
9959         PR c/12951
9960         * doc/invoke.texi: Document that
9961         -Wno-error-implicit-function-declaration is not accepted.
9962
9963 2004-09-24  Richard Henderson  <rth@redhat.com>
9964
9965         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
9966         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
9967         on TARGET_MAX.
9968         (alpha_expand_mov): Allow unaligned vectors.
9969         (alpha_expand_unaligned_store): Use CONST0_RTX.
9970         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
9971
9972 2004-09-24 Jeff Law  <law@redhat.com>
9973
9974         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
9975         aliasing rules.
9976         (simplify_cond_and_lookup_avail_expr): Likewise.
9977
9978 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9979
9980         PR c/12802
9981         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
9982         title.  Document interaction with -fms-extensions.
9983         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
9984         section.
9985
9986 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9987
9988         PR c/12713
9989         * doc/extend.texi: Document interaction of attribute noreturn and
9990         longjmp.
9991
9992 2004-09-24  Richard Henderson  <rth@redhat.com>
9993
9994         PR rtl-opt/17503
9995         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
9996         (som_hash, som_eq): New.
9997         (init_subregs_of_mode, record_subregs_of_mode): New.
9998         (cannot_change_mode_set_regs): Rewrite for htab implementation.
9999         (invalid_mode_change_p): Likewise.
10000         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
10001         * flow.c (mark_used_regs): Likewise.
10002         (life_analysis): Use init_subregs_of_mode.
10003         * regs.h (subregs_of_mode): Remove.
10004         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
10005
10006 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
10007
10008         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
10009         type with the copy of the conditional.
10010
10011 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
10012
10013         PR tree-opt/16954
10014         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10015         Prevent renaming if the aliasing sets of the type which the
10016         pointer points to are different.
10017
10018 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
10019
10020         PR c/17188
10021         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
10022         declarations of enumerators.
10023         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
10024         for redefinition.  Check for nested redefinition.
10025         (finish_struct): Don't check for nested redefinition.
10026         (start_enum): Check for nested redefinition.
10027
10028 2004-09-24  Devang Patel  <dpatel@apple.com>
10029
10030         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
10031         only when necesssary.
10032         (combine_blocks): Combine loop header and exit block.
10033
10034 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
10035
10036         * hooks.c (hook_tree_tree_bool_null): New.
10037         * hooks.h (hook_tree_tree_bool_null): Declare it.
10038         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
10039         * targhooks.c (default_fold_builtin): Remove.
10040         * targhooks.h (default_fold_builtin): Remove.
10041
10042 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10043
10044         PR rtl-optimization/17625
10045         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
10046
10047 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
10048
10049         PR tree-opt/17624
10050         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
10051         Reject if any of the operands occur in an abnormal PHI.
10052
10053 2004-09-24  Andreas Schwab  <schwab@suse.de>
10054
10055         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
10056         rules.
10057
10058 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
10059
10060         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
10061         if the GNU assembler is used.
10062         (sparc-*-solaris2*): Likewise.
10063         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
10064         (dbxout_function_end): Protect N_ENSYM with it.
10065         (dbxout_begin_prologue): Protect N_BNSYM with it.
10066         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
10067         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
10068         * config/sparc/sol2-gas.h: New file.
10069
10070 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
10071
10072         PR bootstrap/17369
10073         * Makefile.in (@set_gcc_lib_path@): Added.
10074
10075         * configure.ac: Include ../config/gcc-lib-path.m4. Use
10076         TL_AC_GNU_MAKE_GCC_LIB_PATH.
10077         * configure: Regenerated.
10078
10079 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
10080
10081         PR c/6980
10082         * c-typeck.c (build_c_cast): Improve wording of
10083         -Wbad-function-cast diagnostic.
10084
10085 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
10086
10087         PR target/17626
10088         * config/cris/cris.md (moverside, movemside): Rename variable
10089         "reg" to "otherop".  To generate canonical RTX, check that otherop
10090         isn't constant instead of checking that operand 1 is a register.
10091
10092 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
10093
10094         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
10095
10096 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
10097             Jakub Jelinek  <jakub@redhat.com>
10098
10099         * tree-flow.h (find_new_referenced_vars): Add prototype.
10100         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
10101         Move to...
10102         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
10103         ... here.
10104         (mark_new_vars_to_rename): Walk through all operands.
10105         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
10106         (execute_fold_all_builtins): Use it.
10107         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
10108
10109 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
10110
10111         * gthr-tpf.h: New file.
10112         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
10113         * gthr.h: Use gthr-tpf.h on TPF OS.
10114
10115 2004-09-23 Jeff Law  <law@redhat.com>
10116
10117         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
10118         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10119         (substitute_and_fold):  Likewise.
10120         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
10121         except invariants from SSA_NAME_VALUE.
10122         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
10123         and SET_SSA_NAME_EQUIV.
10124         (restore_vars_to_original_value, record_const_or_copy): Likewise.
10125         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
10126         (record_equality, cprop_into_successor_phis): Likewise.
10127         (record_equivalences_from_stmt, cprop_operand): Likewise.
10128         (lookup_avail_expr): Likewise.
10129         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
10130         from SSA_NAME_VALUE.
10131         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
10132         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
10133         annotation from the VALUE_HANDLE field.
10134
10135 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
10136
10137         PR c++/13989
10138         PR c++/9844
10139         * tree.c (reconstruct_complex_type): Remove extra "this".
10140         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
10141         Add V4SFmode to case statement.
10142
10143 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
10144
10145         PR c/16833
10146         * doc/extend.texi, doc/invoke.texi: Document interaction of
10147         -fno-builtin with format checks.  Note that built-in functions
10148         have effects beyond generating code that avoids calls to those
10149         functions.
10150
10151 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
10152
10153         PR tree-optimization/17533
10154         * dominance.c (verify_dominators): Tolerate even more incorrect
10155         dominance data during error message printing.
10156         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
10157         and edges more correctly.
10158
10159 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
10160
10161         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
10162         New tree-codes.
10163         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
10164         MISALIGNED_INDIRECT_REF.
10165         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
10166         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
10167         Likewise.
10168         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
10169         (find_interesting_uses_address): Likewise.
10170         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
10171         (build_fold_addr_expr_with_type): Likewise.
10172         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
10173         * print-rtl.c (print_mem_expr): Likewise.
10174         * tree-dump.c (dequeue_and_dump): Likewise.
10175         * tree-eh.c (tree_could_trap_p): Likewise.
10176         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
10177         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
10178         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
10179         Likewise.
10180         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10181         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
10182         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
10183         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10184         (add_address_candidates, rewrite_address_base): Likewise.
10185         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
10186         Likewise.
10187         * tree.c (staticp, build1_stat): Likewise.
10188
10189         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
10190         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
10191         * tree-ssa-operands.c (get_expr_operands): Likewise.
10192         * expr.c (expand_expr_real_1): Likewise.
10193
10194         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
10195         optabs.
10196         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
10197         for the new optabs.
10198         (expand_ternary_op): New function.
10199         * genopinit.c (optabs): Handle the new optabs.
10200         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
10201         (init_optabs): Initialize vec_realign_load_optab.
10202         (expand_ternary_op): New functions.
10203
10204         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
10205         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
10206         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
10207         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
10208         * target.h (struct vectorize): New member for struct gcc_target.
10209         (misaligned_mem_ok): New member for targetm.vectorize.
10210         (builtin_mask_for_load): Likewise.
10211         (builtin_mask_for_store): Likewise.
10212         * targethooks.c (default_vect_misaligned_mem_ok): New function.
10213         * targethooks.h (default_vect_misaligned_mem_ok): New function.
10214
10215         * config/rs6000/altivec.md (build_vector_mask_for_load): New
10216         define_expand.
10217         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
10218         (vec_realign_load_v16qi): New define_insn.
10219         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
10220         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
10221         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
10222         (altivec_builtin_mask_for_store): New variables.
10223         (rs6000_builtin_mask_for_load): New function. Implements
10224         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
10225         (rs6000_builtin_mask_for_store): New function. Implements
10226         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
10227         (rs6000_expand_builtin): Expand the target builtins
10228         builtin_mask_for_load and builtin_mask_for_store.
10229         (altivec_init_builtins): Initialize the new target builtins.
10230         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
10231         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
10232
10233         * tree-vectorizer.c (vect_create_data_ref): Renamed to
10234         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
10235         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
10236         (vectorizable_store): Call vect_create_data_ref_ptr with additional
10237         arguments, and create an indirect_ref with its return value data_ref.
10238         Check aligned_access_p.
10239         (vectorizable_load): Handle misaligned loads, using software-pipelined
10240         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
10241         vec_realign_load_optab is supported, or using a scheme without
10242         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
10243         misaligned_mem_ok is supported.
10244
10245         (vect_finish_stmt_generation): Typo.
10246         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
10247         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
10248         presence of misaligned loads.
10249         (vect_analyze_data_ref_access): Add check for constant init.
10250         (vect_get_symbl_and_dr): Remove duplicate line.
10251         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
10252
10253 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
10254
10255         * builtins.c: Fix a comment typo.
10256
10257 2004-09-23  Jan Hubicka  <jh@suse.cz>
10258
10259         * profile.c (branch_prob): Do not verify flow info in the middle of the
10260         pass.
10261
10262 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10263
10264         * cfgloop.h (update_single_exits_after_duplication): Declare.
10265         (loopify, split_loop_bb): Declaration changed.
10266         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
10267         of rtx.
10268         (loopify): Added redirect_all_edges argument.
10269         (update_single_exits_after_duplication): Export.
10270         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
10271         * tree-flow.h (tree_duplicate_loop_to_header_edge,
10272         tree_ssa_loop_version): Declare.
10273         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
10274         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
10275         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
10276         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
10277
10278         * tree-ssa-loop-unswitch.c: New file.
10279         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
10280         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
10281         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
10282         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
10283         * tree-pass.h (pass_unswitch): Declare.
10284         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
10285         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
10286         * doc/passes.texi: Documen tree level loop unswitching.
10287
10288 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
10289
10290         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
10291
10292 2004-09-22  Eric Christopher  <echristo@redhat.com>
10293
10294         * builtins.c (simplify_builtin_va_start): Remove.
10295         (simplify_builtin): Ditto.
10296         (fold_builtin_strchr): Ditto.
10297         (simplify_builtin_*): Rename remainders to fold_builtin_*.
10298         (expand_builtin): Fix up for above changes.
10299         (fold_builtin_1): Add new folders. Change for above.
10300         (expand_builtin_va_start): Call fold_builtin_next_arg.
10301         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
10302         * tree.h: Remove prototype for simplify_builtin.
10303
10304 2004-09-23  Jan Hubicka  <jh@suse.cz>
10305
10306         PR debug/17389
10307         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
10308         of fully inlined functions.
10309         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
10310         inlined.
10311
10312         * cfgexpand.c (add_reg_br_prob_note): New function.
10313         (expand_gimple_cond_expr): Use it.
10314         (tree_expand_cfg): No longer kill the profile.
10315         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
10316         only if it is present.
10317         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
10318         * predict.c (combine_predictions_for_insn): Set the probabilities
10319         based on REG_BR_PROB note if present.
10320         * predict.c (branch_prob): Profile is read only with
10321         flag_branch_probabilities.
10322
10323 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
10324
10325         * aclocal.m4: Add in gettext's m4 includes.
10326         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
10327         * configure.ac: Add in check for iconv.h
10328         * configure: Regenerate.
10329
10330 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
10331
10332         * aclocal.m4: Update for rename of gettext-sister.m4.
10333
10334 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
10335
10336         Fix PR tree-optimization/17587
10337         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
10338         (insert_aux): Instead of here.
10339
10340 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
10341
10342         PR tree-optimization/16721
10343         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
10344         * tree-ssa-alias.c (create_memory_tag): Move setting of
10345         TREE_THIS_VOLATILE ...
10346         (get_tmt_for): ... here.
10347
10348 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
10349
10350         * config/sparc/sparc.md (cmove splitter): Fix formatting.
10351         (conditional_trap expander): Reject inappropriate CCmodes.
10352         (conditional trap insn): Use V9 syntax if possible.
10353
10354 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10355
10356         PR c/16566
10357         * c-typeck.c (build_component_ref): Don't special-case
10358         COMPOUND_EXPR.
10359
10360 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
10361
10362         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
10363         returns NULL.
10364
10365 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
10366
10367         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
10368         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
10369         TRUTH_XOR_EXPR): Mention the restriction on types.
10370
10371 2004-09-22  Matt Austern  <austern@apple.com>
10372
10373         * config/darwin.c (darwin_make_decl_one_only):
10374         Allow coalesced symbol to appear in static archive's table of contents
10375
10376 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
10377
10378         PR tree-optimization/17512
10379         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
10380         special cases.
10381
10382 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
10383
10384         * dbxout.c (get_lang_number): Do not define if
10385         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
10386
10387 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
10388
10389         PR target/15583
10390         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
10391         builtin_define ("__USE_INIT_FINI__").
10392
10393 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
10394
10395         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
10396         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
10397         * config/s390/s390.h (TARGET_TPF): New macro.
10398         * config/s390/s390.md ("eh_return"): New expander.
10399         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
10400         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
10401         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
10402         * config/s390/tpf.h (TARGET_TPF): Define to 1.
10403         (STACK_POINTER_OFFSET): Increase to 448.
10404         (TARGET_DEFAULT): Set -mtpf-trace on as default.
10405         (TPF_LOC_DIFF_OFFSET): New macro.
10406         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
10407         encoding.
10408         (__isPATrange): Add prototype.
10409         (MD_FALLBACK_FRAME_STATE_FOR): Define.
10410         * config/s390/tpf-eh.c: New file.
10411
10412 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
10413
10414         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
10415         operands in an integer comparison.
10416         * tree-cfg.c (find_taken_edge): Call fold() to determine
10417         whether the predicate is known.
10418
10419 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
10420
10421         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
10422         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
10423         Create build and doc directories along with the language directories.
10424         Don't create doc directory separately.
10425         * configure: Regenerate.
10426         * Makefile.in: Create all object and executables files built
10427         with the build compiler in a build/ directory.
10428         (genobjnames): Add missing build objects.
10429         (STAGESTUFF): Don't stage the gen* programs.
10430         (ggc-none.o): Define dependencies for the target compiler.
10431         (build-print-rtl.o): Rename to build/print-rtl.o.
10432         (build-errors.o): Rename to build/errors.o.
10433         (build-varray.o): Rename to build/varray.o.
10434         (maintainerclean): Delete the contents of the build directory.
10435         ($(genobjs): %.o): Explicitly use -o.
10436         (build/insn-conditions.o): Delete specfic rule to use generic rule.
10437         (build/gengtype-lex.o): Likewise.
10438         (build/gengtype-yacc.o): Likewise.
10439         (build/gcov-iov.o): Likewise.
10440
10441 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
10442
10443         * vec.h (VEC_space): Return true if there _is_ space.
10444         (VEC_reserve): Adjust.
10445
10446 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
10447
10448         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
10449         use FPRs for scalar, complex and vector types only.
10450
10451 2004-09-21 Jeff Law  <law@redhat.com>
10452
10453         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
10454         the opt_stats_d structure.
10455         (vrp_data): Change from a varray into a hash table.
10456         (vrp_hash_elt): New structure for elements in the vrp hash table.
10457         (vrp_hash, vrp_eq):New functions for hashing and testing equality
10458         in the vrp hash table.
10459         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
10460         initialization slightly to make it easier to read.  No longer need
10461         to grow/clear the varray.  Instead empty and delete the hash table.
10462         (dom_opt_finalize_block): Update due to change of VRP_DATA from
10463         a varray to a hash table.
10464         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
10465
10466         * tree-ssa-ccp.c (get_default_value): If we have a constant
10467         value recorded for an SSA_NAME, then use that constant as
10468         the initial lattice value.
10469         (substitute_and_fold): Transfer equivalences discovered into
10470         SSA_NAME_EQUIV.
10471
10472         * tree.h (SSA_NAME_EQUIV): Add comments.
10473         (SET_SSA_NAME_EQUIV): Similarly.
10474
10475 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
10476
10477         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
10478
10479         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
10480
10481 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
10482
10483         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
10484         (finish_decl): Likewise.
10485
10486 2004-09-21  Devang Patel  <dpatel@apple.com>
10487
10488         * tree.def (VEC_COND_EXPR): New tree node.
10489         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
10490
10491 2004-09-21  Stan Shebs  <shebs@apple.com>
10492
10493         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
10494         * config/rs6000/darwin-world.asm: Likewise.
10495
10496 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
10497
10498         * tree-ssa.c (verify_def): Use print_generic_stmt,
10499         not debug_generic_stmt.
10500         (verify_use): Ditto.
10501         (verify_phi_args): Ditto.
10502         (verify_ssa): Ditto.
10503
10504 2004-09-21  Paul Brook  <paul@codesourcery.com>
10505
10506         * varasm.c (default_assemble_integer): Return false for values wider
10507         than the target word size.  Works around GAS bug.
10508
10509 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
10510
10511         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
10512         gets value 0.
10513         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
10514         if it has value 0.
10515
10516 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
10517
10518         * c-typeck.c (build_function_call): Give name of object
10519         we are attempting to call in error message.
10520         * c-objc-common.c (c_tree_printer): Call pp_expression,
10521         not return false, for 'E' case.
10522
10523 2004-09-21  Steven Bosscher  <stevenb@suse.de>
10524
10525         PR rtl-optimization/17482
10526         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
10527         load_killed_in_block_p): Clarify comments.
10528         (record_last_reg_set_info): Make static inline.
10529         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
10530         (record_opr_changes): New function to replace the above.
10531         (compute_hash_table): Clarify comments.  Use record_opr_changes.
10532         (reg_set_between_after_reload_p): Clean up.
10533         (reg_used_between_after_reload_p): Likewise.
10534         (eliminate_partially_redundant_load): Clarify comments.
10535
10536 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
10537
10538         PR rtl-optimization/17266
10539         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
10540
10541 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
10542
10543         PR rtl-optimization/14851
10544         * rtlanal.c (commutative_operand_precedence): Calculate
10545         precedence of stripped constant.
10546
10547 2004-09-20 Jeff Law  <law@redhat.com>
10548            Jan Hubicka  <jh@suse.cz>
10549
10550         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
10551         initialize key elements here.
10552         (release_ssa_name): Zero the released SSA_NAME here.
10553         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
10554         (struct tree_ssa_name): Add new "equiv" field.
10555         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
10556         (tree_ssa_dominator_optimize): No longer allocate, resize or
10557         clear CONST_AND_COPIES.
10558         (get_value_for, set_value_for): Kill.
10559         (thread_across_edge): Get/set the equivalency using
10560         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10561         (restore_vars_to_original_value): Likewise.
10562         (record_equivalences_from_phis): Likewise.
10563         (record_dominating_conditions): Likewise.
10564         (record_const_or_copy, record_equality): Likewise.
10565         (lookup_avail_expr): Likewise.
10566         (record_equivalences_from_stmt, cprop_operand): Likewise.
10567         (cprop_into_successor_phis): No longer need to pass around
10568         CONST_AND_COPIES.  Callers updated. Get equivalences via
10569         SSA_NAME_EQUIV.
10570         (cprop_into_phis): Likewise.
10571
10572 2004-09-20  Matt Austern <austern@apple.com>
10573             Zack Weinberg  <zack@codesourcery.com>
10574
10575         * c-common.c (fix_string_type): Build the unqualified array
10576         type unconditionally, then use c_build_qualified_type to get
10577         the proper const-qualified variant, and set its
10578         TYPE_MAIN_VARIANT to refer to the unqualified type.
10579         * c-lex.c (c_lex_return_raw_string): New global.
10580         (c_lex_with_flags): Honor it.
10581         * c-pragma.h: Declare it.
10582
10583 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
10584
10585         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
10586
10587 2004-09-21  Jan Hubicka  <jh@suse.cz>
10588
10589         PR middle-end/17126
10590         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
10591         (tree_rest_of_compilation): Cleanup.
10592
10593 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
10594
10595         * config/s390/s390.c (s390_select_rtx_section): Remove.
10596         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
10597
10598 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10599
10600         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
10601         note to pretend a direct save from the original register when an
10602         intermediate register is used for the save.
10603
10604 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10605
10606         * tsystem.h (alloca): Provide a default definition.
10607
10608         Revert:
10609         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10610             * unwind-dw2.c: Call __builtin_alloca, not alloca.
10611
10612 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
10613
10614         PR tree-opt/17558
10615         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
10616         aliasing sets are the same rather than just conflicting.
10617
10618 2004-09-20  Jan Hubicka  <jh@suse.cz>
10619
10620         PR middle-end/16460
10621
10622         * cgraph.c (cgraph_unnest_node): New function.
10623         (c_finalize): Rename to ....
10624         (c_warn_unused_result_recursivly): ... this one; do only the warning
10625         (finish_function): Finalize the toplevel function; do not lower nested tree.
10626         * cgraph.h (cgraph_unnest_node): Declare.
10627         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
10628         nestedness datastructure.
10629         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
10630         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
10631         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
10632
10633 2004-09-20  Richard Henderson  <rth@redhat.com>
10634
10635         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
10636         from some_small_symbolic_operand_1; export.
10637         (some_small_symbolic_operand): Remove.
10638         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
10639         extra C check.
10640         * config/alpha/predicates.md (some_small_symbolic_operand): New.
10641
10642 2004-09-20  Jan Hubicka  <jh@suse.cz>
10643
10644         * predict.c (return_prediction): New function.
10645         (apply_return_prediction): Likewise.
10646         (tree_bb_level_predictions): Likewise.
10647         (tree_estimate_probability): Add noreturn exit edges; call
10648         bb_level_predictions; fix logic of return heuristics.
10649         (predict_paths_leading_to):  Rescuesce from old CVS version of
10650         process_note_prediction function.
10651         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
10652
10653 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
10654
10655         * config/s390/s390.c (s390_frame_info): Added alignment statement for
10656         floating point register area on stack.
10657
10658 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
10659
10660         * predict.c (expr_expected_value): Use *_CLASS_P macros.
10661
10662 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
10663
10664         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
10665         generating useless garbage.
10666
10667 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
10668
10669         * builtins.c (fold_builtin): Call the new omonymous
10670         target hook for machine-dependent built-ins.
10671         * target-def.h (TARGET_FOLD_BUILTIN): New.
10672         * target.h (struct gcc_target): Add the fold_builtin hook.
10673         * targhooks.c (default_fold_builtin): New.
10674         * targhooks.h (default_fold_builtin): Declare it.
10675
10676 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
10677
10678         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
10679         comment typos.
10680
10681 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
10682
10683         PR target/17565
10684         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
10685
10686 2004-09-20  Jan Hubicka  <jh@suse.cz>
10687
10688         * predict.c (estimate_probability): Remove unnecesary code.
10689
10690 2004-09-19  Ira Rosen  <irar@il.ibm.com>
10691
10692         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
10693         (STMT_VINFO_VECT_DR_BASE): Declare.
10694         (VECT_SMODULO): Declare.
10695         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
10696         (vect_compute_array_base_alignment): New function.
10697         (vect_analyze_data_ref_access): Check array indices. Remove one
10698         dimensional arrays restriction.
10699         (vect_get_ptr_offset): New function.
10700         (vect_get_symbl_and_dr): New function.
10701         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
10702         (former name vect_get_base_decl_and_bit_offset).
10703         (vect_create_index_for_array_ref): Removed.
10704         (vect_create_index_for_vector_ref): New function.
10705         (vect_create_addr_base_for_vector_ref): New function.
10706         (vect_create_data_ref): Handle additional data refs. Call
10707         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
10708         (vect_compute_data_ref_alignment): Support the changes. Call
10709         vect_get_base_and_bit_offset.
10710         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
10711         data refs. Store vect_dr_base.
10712         (vect_analyze_data_ref_accesses): Support nonconstant init.
10713         (new_stmt_vec_info): Initialize vect_dr_base field.
10714         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
10715         (get_vectype_for_scalar_type): Check for BLKmode.
10716         * tree-chrec.h (initial_condition_in_loop_num): Declare.
10717         * tree-chrec.c (initial_condition_in_loop_num): New function.
10718         (chrec_component_in_loop_num): New function.
10719         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
10720         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
10721         to be pointer to varray_type.
10722
10723 2004-09-19  Jan Hubicka  <jh@suse.cz>
10724
10725         * basic-block.h (update_bb_profile_after_threading): Declare.
10726         * cfg.c (update_bb_profile_after_threading): Break out from ...
10727         * cfgcleanup.c (try_forward_edges): ... here; use it.
10728         * tree-ssa-dom.c (thread_across_edge): Use it.
10729         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
10730         profile of the new BB.
10731
10732 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
10733
10734         * tree-ssa-pre.c (insert_into_set): Don't put
10735         is_gimple_min_invariant values into the set.
10736
10737 2004-09-19  Andreas Jaeger  <aj@suse.de>
10738
10739         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
10740         prototype.
10741
10742 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
10743
10744         * config/cris/cris.h: Preserve the original spelling in a
10745         quote.
10746
10747 2004-09-18 Jeff Law  <law@redhat.com>
10748
10749         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
10750         global varrays to replace the block local varrays.
10751         (struct dom_walk_block_data): Remove, no longer used.
10752         (get_eq_expr_value): No longer need to pass around pointers to local
10753         varrays.  Callers updated.  Unused markers added to unused parameters.
10754         (record_range, record_equivalences_from_stmt): Likewise.
10755         (record_equivalences_from_incoming_edge): Likewise.
10756         (record_var_is_nonzero): Likewise.  Update now that we have a
10757         single global varray of SSA_NAMEs that need restoring.
10758         (dom_opt_initialize_block_local_data): Kill, no longer used.
10759         (tree_ssa_dominator_optimize): Initialize new global varrays.
10760         Update callbacks in dominator walker structure.
10761         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
10762         VRP_VARIABLES_STACK.
10763         (restore_nonzero_vars_to_original_value): Update now that we have
10764         a single global varray of SSA_NAMEs that need restoring.
10765         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
10766         Remove unused variables.
10767         (optimize_stmt): Remove unused variable.
10768
10769 2004-09-18  Jan Hubicka  <jh@suse.cz>
10770
10771         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
10772
10773         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
10774         verify_cgraph call.
10775
10776 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
10777
10778         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
10779         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
10780         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
10781         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
10782         tree-ssa-operands.c, tree-ssa-phiopt.c,
10783         tree-ssa-threadupdate.c: Fix comment typos.
10784
10785 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
10786
10787         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
10788         config/arm/README-interworking, config/arm/arm-cores.def,
10789         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
10790         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
10791         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
10792         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
10793         config/frv/frv.md, config/i386/winnt.c,
10794         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
10795         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
10796         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
10797         config/mcore/mcore.c, config/mips/mips.h,
10798         config/mn10300/mn10300.md, config/pa/pa.c,
10799         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
10800         config/rs6000/rs6000.c, config/sh/symbian.c,
10801         config/sparc/sparc.h: Fix comment typos.  Follow spelling
10802         conventions.
10803
10804 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
10805
10806         PR c/17424
10807         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
10808
10809 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
10810
10811         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
10812         remove TREE_ADDRESSABLE from RESULT_DECL.
10813
10814 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
10815
10816         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
10817
10818 2004-09-18  Jan Hubicka  <jh@suse.cz>
10819
10820         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
10821         NULL.
10822         * tree-ssa-alias.c (init_alias_info): Likewise.
10823         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
10824         (verify_ssa): Likewise.
10825         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
10826
10827 2004-09-18  Jan Hubicka  <jh@suse.cz>
10828
10829         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
10830         huge offset.
10831
10832 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10833
10834         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
10835         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10836         DW_EH_PE_sdata* for data.
10837         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
10838
10839 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
10840
10841         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
10842         shared anyway.
10843
10844         PR pch/13361
10845         * c-typeck.c (constructor_asmspec): Delete.
10846         (struct initializer_stack): Delete field 'asmspec'.
10847         (start_init): Delete saving of asmspec.
10848         (finish_init): Don't update constructor_asmspec.
10849         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
10850         * stmt.c (expand_asm): Duplicate strings from tree.
10851         (expand_asm_operands): Likewise.
10852         * tree.c (tree_size): Update computation of size of STRING_CST.
10853         (make_node): Don't make STRING_CST nodes.
10854         (build_string): Allocate string with tree node.
10855         (tree_code_size): Clean up assertions, don't allow requests
10856         for "the size of a STRING_CST".
10857         * tree.def (STRING_CST): Update comment.
10858         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
10859         (tree_string): Place contents of string in tree node.
10860         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
10861         from tree.
10862
10863 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
10864
10865         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
10866         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
10867
10868 2004-09-17  Jones Desougi  <jones@ingate.com>
10869
10870         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
10871         * configure, config.in: Regenerate.
10872
10873 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
10874
10875         * tree.c, tree.h (tree_class_strings): Make array const.
10876         Reindent per coding convention.  Move asterisk to proper place
10877         per coding convention.
10878
10879 2004-09-18  Andreas Schwab  <schwab@suse.de>
10880
10881         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
10882         (tree-vectorizer.o): Likewise.
10883         (targhooks.o): Likewise.
10884
10885 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
10886             Zack Weinberg  <zack@codesourcery.com>
10887
10888         * alias.c (find_base_decl): Remove unreachable case '3' block.
10889         * expr.c (safe_from_p): Abort if passed a type.
10890         * tree-gimple.c (recalculate_side_effects): Abort if passed
10891         anything other than an expression.
10892         * tree-ssa-pre.c (phi_translate): Return expr immediately if
10893         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
10894         Abort on un-handled tree classes.
10895         (valid_in_set): Likewise.
10896         * tree.c (tree_code_class_strings): New static data.
10897
10898         * tree.h (enum tree_code_class): New.
10899         (tree_code_class_strings): Declare.
10900         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
10901         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
10902         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
10903         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
10904         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
10905
10906         * tree.def, c-common.def, objc/objc-tree.def: Use
10907         tree_code_class enumeration constants instead of code letters.
10908
10909         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
10910         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
10911         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
10912         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
10913         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
10914         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
10915         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
10916         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
10917         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
10918         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
10919         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
10920         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
10921         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
10922         Update to match.
10923
10924         * LANGUAGES: Add note about change.
10925
10926 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
10927
10928         PR tree-optimization/17319
10929         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
10930         examine pointers on the LHS of an assignment.
10931         (collect_points_to_info_r): Handle RETURN_EXPR.
10932
10933 2004-09-17 Jeff Law  <law@redhat.com>
10934
10935         * tree-ssa-dom.c (const_and_copies_stack): New.
10936         (dom_walk_block_data): Remove const_and_copies field.
10937         (record_const_or_copy): No longer need to pass in varray_type *.
10938         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
10939         Callers updated.
10940         (record_equality): Similarly.
10941         (restore_vars_to_original_value): Similarly.  Revamp to use new
10942         single global stack rather than per-block stacks.
10943         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
10944         (thread_across_edge): Remove now unused parameters.
10945         (dom_opt_initialize_block_local_data): No longer test the block
10946         local CONST_AND_COPIES.
10947         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
10948
10949 2004-09-17  Jan Hubicka  <jh@suse.cz>
10950
10951         PR tree-optimization/17509
10952         * tree-optimize.c (update_inlined_to_pointers): New function.
10953         (tree_rest_of_compilation): Use it.
10954
10955 2004-09-17  Devang Patel  <dpatel@apple.com>
10956
10957         * dbxout.c (get_lang_number): New.
10958         (dbxout_init): Include lang number in N_SO  stab.
10959         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
10960         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
10961
10962 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
10963
10964         PR tree-optimization/17273
10965         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
10966         replacement is a constant.
10967
10968 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
10969
10970         * c-tree.h (enum c_typespec_keyword): New.
10971         (struct c_declspecs): Adjust description of "type".  Remove
10972         specbits, explicit_int_p and explicit_char_p.  Rename
10973         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
10974         short_p, signed_p, unsigned_p and complex_p.
10975         (finish_declspecs): New.
10976         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
10977         typename): Call finish_declspecs.
10978         * c-decl.c (finish_declspecs): New.
10979         (declspecs_add_type): Check for combinations which cannot occur in
10980         valid specifier lists.  Update comments.
10981         (shadow_tag_warned): Remove checks done in finish_declspecs.
10982         Don't report useless type name if type defaulted to int.
10983         (grokdeclarator): Remove checks and actions done in
10984         finish_declspecs.  Don't allow for type being NULL.  Update for
10985         datastructures changes.  Initialize decl_attr.
10986         (build_null_declspecs, quals_from_declspecs): Update for
10987         datastructures changes.
10988
10989 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
10990
10991         * doc/extend.texi: Fix duplicated word.
10992
10993 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
10994
10995         * doc/invoke.texi: Remove stray explanation on
10996         -freduce-all-givs and -fmove-all-movables.
10997
10998 2004-09-17  James Morrison  <phython@gcc.gnu.org>
10999
11000         * doc/cfg.texi: Use @smallexample.
11001         * doc/md.texi: Likewise.
11002         * doc/tree-ssa.texi: Likewise.
11003         * doc/extend.texi: Likewise.  Use @r{} in comments.
11004         * doc/trouble.texi: Use @r{} in comments.
11005
11006 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
11007
11008         * configure.ac (gcc_cv_gld_version): Handle whitespace before
11009         "VERSION=".
11010         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
11011         * configure: Regenerate.
11012
11013 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
11014
11015         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
11016         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
11017         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
11018         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
11019         slashes in substitutions.
11020         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
11021
11022 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
11023
11024         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
11025         gimplify.c, lambda-code.c, optabs.c, predict.c,
11026         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
11027         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
11028         conventions.
11029
11030 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
11031
11032         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
11033         doc/extend.texi, doc/install.texi, doc/invoke.texi,
11034         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
11035         doc/trouble.texi: Use @option around options.
11036
11037 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
11038
11039         * Makefile.in (gen-protos.o): Depend on errors.h.
11040
11041 2004-09-17  Steven Bosscher  <stevenb@suse.de>
11042
11043         PR tree-optimization/17513
11044         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
11045         for successors of the entry block.
11046
11047 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
11048
11049         PR rtl-optimization/15187
11050         * ifcvt.c (noce_try_cmove_arith): Exit early if total
11051         insn_rtx_cost of both branches > BRANCH_COST
11052
11053 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
11054
11055         PR tree-optimization/17528
11056         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
11057         erase the may-alias set for a tag when merging it with
11058         another.
11059
11060 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
11061
11062         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
11063         for 32-bit TARGET_SHMEDIA.
11064         (call_value): Likewise.
11065
11066 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
11067
11068         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
11069         test apply only to TREE_STATIC and DECL_EXTERNAL.
11070
11071 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11072
11073         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
11074         * basic-block.h (get_dominated_by_region): Declare.
11075         * dominance.c (get_dominated_by_region): New function.
11076         * tree-cfg.c: Include cfglayout.h.
11077         (tree_duplicate_bb): Duplicate also phi nodes.
11078         (struct ssa_name_map_entry): New type.
11079         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
11080         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
11081         allocate_ssa_names, rewrite_to_new_ssa_names_def,
11082         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
11083         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
11084         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
11085         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
11086         rewrite_to_new_ssa_names, allocate_ssa_names,
11087         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
11088         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
11089         (copy_loop_headers): Use tree_duplicate_sese_region.
11090
11091 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
11092
11093         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
11094
11095 2004-09-16 Jeff Law  <law@redhat.com>
11096
11097         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
11098         (rewrite_block_data): Remove, no longer used.
11099         (rewrite_initialize_block_local_data): Remove, no longer used.
11100         (rewrite_initialize_block): Mark parameters as unused as needed.
11101         Change references to the block local block_defs to be block_defs_stack.
11102         Push a marker onto the block_defs_stack.
11103         (ssa_rewrite_initialize_block): Similarly.
11104         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
11105         (ssa_register_new_def): No longer needs varray argument.  Use
11106         block_defs_stack instead.  No longer handle possibly null block_defs
11107         varray.  Reverse order of items we push on the stack to make it
11108         easier to identify our marker.
11109         (register_new_def): No longer handle possibly null block_defs
11110         varray.
11111         (rewrite_finalize_block): Revamp to look for markers in the global
11112         block_defs_stack varray rather than wiping a block local varray.
11113         Mark arguments as unused as needed.
11114         (ssa_rewrite_finalize_block): Similarly.
11115         (rewrite_into_ssa): Update initialization of dom walker structure
11116         to reflect that we don't need block local data anymore.  Initialize
11117         the block_defs_stack varray.
11118         (rewrite_ssa_into_ssa): Similarly.
11119         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
11120         (struct dom_walk_data): Kill block_defs field.
11121         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
11122         (thread_across_edge): Use the global block_defs_stack instead of
11123         the old block_defs varray.
11124         (dom_opt_initialize_block_local_data): Update now that we don't have
11125         block_defs field to check anymore.
11126         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
11127         (restore_currdefs_to_original_value): Use the new block_defs_stack
11128         instead of a block local varray.
11129         (dom_opt_finalize_block): Similarly.
11130         (record_equivalencs_from_phis): Similarly.
11131         (optimize_stmt, register_definitions_for_stmt): Similarly.
11132
11133 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
11134
11135         PR tree-optimization/17517
11136         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11137         coalesce same-root variables without checking for abnormal PHI usage.
11138
11139 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
11140
11141         * cfgloop.h (duplicate_loop):  Add prototype.
11142         * cfgloopmanip.c (duplicate_loop): Make non-static.
11143         * lambda-code.c (perfect_nestify): Factor out test whether
11144         we can handle this loop into separate function.
11145         Call it.
11146         (can_convert_to_perfect_nest): New function.
11147         (replace_uses_of_x_with_y): Add modify_stmt call.
11148         * tree-loop-linear.c (linear_transform_loops): Call
11149         rewrite_into_loop_closed_ssa and free_df.
11150
11151 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
11152
11153         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
11154         loop invariant as well.
11155         (perfect_nestify): new function.
11156         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
11157         upper bounds, and steps.
11158         Set outerinductionvar properly.
11159         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
11160         parameters.
11161         Return NULL if we need a perfect loop and can't make one.
11162         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
11163         (not_interesting_stmt): New function.
11164         (phi_loop_edge_uses_def): Ditto.
11165         (stmt_uses_phi_result): Ditto.
11166         (stmt_is_bumper_for_loop): Ditto.
11167         (perfect_nest_p): Ditto.
11168         (nestify_update_pending_stmts): Ditto.
11169         (replace_uses_of_x_with_y): Ditto.
11170         (stmt_uses_op): Ditto.
11171         (perfect_nestify): Ditto.
11172         * lambda-mat.c (lambda_matrix_id_p): New function.
11173         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
11174         * lambda.h: Update prototypes.
11175         * tree-loop-linear (linear_transform_loop): Use new
11176         perfect_nest_p. Detect and ignore identity transform.
11177         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
11178
11179 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
11180
11181         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
11182         Gather also strides of accessed data.  Pass in the data references
11183         array.
11184         (try_interchange_loops): Add a new heuristic for handling the temporal
11185         locality.  Pass in the data references array.
11186         (linear_transform_loops): Pass the data references array to
11187         try_interchange_loops.
11188
11189 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
11190
11191         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
11192
11193 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
11194
11195         * doc/c-tree.texi (Classes): Remove index entries for
11196         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
11197
11198 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11199
11200         * fold-const.c (fold): Fold difference of addresses.
11201         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
11202         get_inner_reference.
11203         * tree-ssa-loop-ivopts.c (peel_address): Removed.
11204         (ptr_difference_const): Moved to fold-const.c.
11205         (split_address_cost): Use get_inner_reference instead of peel_address.
11206         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
11207         * tree.h (ptr_difference_const): Export.
11208
11209         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
11210         variable type to the dump.  Fix indentation.
11211         (idx_find_step): Handle nonconstant array_ref_element_size and
11212         array_ref_low_bound.
11213         (idx_record_use): Handle array_ref_element_size and
11214         array_ref_low_bound.
11215         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
11216         statements correctly.
11217         (get_computation_at, iv_value): Do not unshare expressions here.
11218         (rewrite_use_outer): Unshare the expression before it is emitted
11219         to code.
11220         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
11221         Moved to tree.c.
11222         * tree.c (unsigned_type_for, signed_type_for): Moved from
11223         tree-ssa-loop-niter.c.  Use langhooks.
11224         * tree.h (signed_type_for): Export.
11225
11226 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
11227
11228         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
11229         prototype.
11230
11231 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
11232
11233         PR target/11572
11234         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
11235         Add two parameters to extra_includes.
11236         (C_INCPATH_INIT): Remove.
11237         * c-incpath.c (register_include_chains): Call extra_pre_includes
11238         before adding the standard include directory.
11239         Update call to extra_includes.
11240         (!defined TARGET_EXTRA_INCLUDES): Update
11241         hook_void_charptr_charptr_int and add !define
11242         TARGET_EXTRA_PRE_INCLUDES.
11243         (!define TARGET_EXTRA_INCLUDES): Define as
11244         hook_void_charptr_charptr_int.
11245         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11246         (target_c_incpath): Always declare.
11247         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
11248         empty function.
11249         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11250         * config/darwin.h: (darwin_register_frameworks): Update for
11251         the two new parameters.
11252         (darwin_register_objc_includes): Add prototype.
11253         (TARGET_EXTRA_PRE_INCLUDES): Define.
11254         * config/darwin-c.c (darwin_register_objc_includes): New function.
11255         (darwin_register_frameworks): Update for the two new parameters.
11256         (target_c_incpath): Remove.
11257         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
11258         the compile line.
11259         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
11260         parameters.
11261         (TARGET_EXTRA_PRE_INCLUDES): Document.
11262
11263         * gcc.c (spec_function): Add replace-outfile.
11264         (replace_outfile_spec_function): New function.
11265         * config/darwin.h (LINK_SPEC): Add replace
11266         -lobjc with -lobjc-gnu if -fgnu-runtime is
11267         supplied.
11268         * invoke.texi (replace-outfile): Document.
11269
11270 2004-09-13  Jan Hubicka  <jh@suse.cz>
11271
11272         * predict.c (expr_expected_value, strip_builtin_expect): New function.
11273         (tree_predict_by_opcode): Use it.
11274         (tree_estimate_probability): Add, for now disabled,
11275         strip_builtin_expect call.
11276
11277 2004-09-15  James E Wilson  <wilson@specifixinc.com>
11278
11279         PR target/17455
11280         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
11281         if current_function_decl is a sibcall.
11282
11283 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
11284
11285         * varasm.c (default_function_rdodata_section): Make sure to pass
11286         along a decl for a link-once section.
11287
11288 2004-09-15  Richard Henderson  <rth@redhat.com>
11289
11290         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
11291         warning with code disable.  Fix formatting.
11292
11293 2004-09-15  Steven Bosscher  <stevenb@suse.de>
11294
11295         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
11296         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
11297         after propagating into an ADDR_EXPR.
11298
11299 2004-09-15  Andrew Pinski  <apinski@apple.com>
11300
11301         PR rtl-opt/17427
11302         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
11303         Move it out of gcc_assert.
11304
11305 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
11306
11307         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
11308         except.c, fold-const.c, function.c, langhooks.c, params.c,
11309         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
11310         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
11311         for quoting in diagnostics going through pretty-print.c.  Use ''
11312         for quoting in other diagnostic text.
11313         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
11314         translation.
11315         * Makefile.in (langhooks.o): Update dependencies.
11316         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
11317         formats.
11318
11319 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
11320
11321         * configure.ac: Check for COMDAT support.  Robustify check for
11322         SHF_MERGE support.
11323         * configure: Regenerated.
11324         * config.in: Likewise.
11325         * langhooks-def.h (lhd_comdat_group): New function.
11326         (LANG_HOOKS_COMDAT_GROUP): New macro.
11327         (LANG_HOOKS_DECLS): Use it.
11328         * langhooks.c (lhd_comdat_group): Define.
11329         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
11330         * output.h (named_section_flags): Make it a macro.
11331         (named_section_real): New function.
11332         (default_no_named_section): Add decl parameter.
11333         (default_elf_asm_named_section): Likewise.
11334         (default_coff_asm_named_section): Likewise.
11335         (default_pe_asm_named_section): Likewise.
11336         * target.h (gcc_target): Adjust type of named_section.
11337         * varasm.c (named_section_flags): Rename to named_section_real.
11338         Add decl parameter.
11339         (default_no_named_section): Add decl parameter.
11340         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
11341         with the case that ASM_COMMENT_START is "@".
11342         (default_coff_asm_named_section): Add decl parameter.
11343         (default_pe_asm_named_section): Likewise.
11344         * config/alpha/alpha.c (vms_asm_named_section): Add decl
11345         parameter.
11346         (unicosmk_asm_named_section): Likewise.
11347         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
11348         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
11349         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
11350         * config/cris/cris-protos.h (cris_target_asm_named_section):
11351         Likewise.
11352         * config/cris/cris.c (cris_target_asm_named_section):
11353         Likewise.
11354         * config/darwin/darwin-protos.h (darwin_asm_named_section):
11355         Likewise.
11356         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
11357         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
11358         * config/i386/i386-protos.h (i386_pe_asm_named_section):
11359         Likewise.
11360         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
11361         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
11362         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
11363         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
11364         Likewise.
11365         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
11366         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
11367         * cp/cp-tree.h (cxx_comdat_group): Declare.
11368         * cp/decl.c (cxx_comdat_group): New function.
11369
11370 2004-09-15  Jan Hubicka  <jh@suse.cz>
11371
11372         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
11373         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
11374
11375         * tree-cfg.c (remove_bb): Release SSA defs.
11376
11377 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
11378
11379         * doc/tm.texi: Follow spelling conventions.
11380
11381 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
11382
11383         * tree-ssa-dom.c: Fix comment typos.
11384
11385 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
11386
11387         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
11388         include ccr.
11389         (ppc_fallback_frame_state): Save location of CR.
11390
11391 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
11392
11393         * expr.c (string_constant): Handle also read-only variables
11394         initialized to string literals.
11395
11396         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
11397         into memcpy (x, y, 1) if memcpy can be expanded inline.
11398
11399 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11400
11401         PR tree-optimization/17468
11402         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
11403         definition inside a block precede uses.
11404         * tree-tailcall.c (adjust_return_value): Emit statements in the
11405         correct order.
11406
11407 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
11408
11409         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
11410
11411 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
11412
11413         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
11414
11415 2004-09-14 Jeff Law  <law@redhat.com>
11416
11417         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
11418         (struct dom_walk_block_data): Remove avail_exprs member.
11419         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
11420         (lookup_avail_expr): No longer need to pass in address of
11421         the block local available exprs stack.  All callers changed.
11422         (simplify_cond_and_lookup_avail_expr): Similarly.
11423         (simplify_switch_and_lookup_avail_expr): Similarly.
11424         (get_eq_expr_value, record_cond): Likewise.
11425         (record_dominating_conditions): Likewise.
11426         (update_rhs_and_lookup_avail_expr): Likewise.
11427         (record_equivalences_from_stmt): Likewise.
11428         (dom_opt_initialize_block_local_data): No longer test state of
11429         block local avail_exprs.
11430         (dom_opt_initialize_block): Mark unwind point in the global
11431         avail_expr stack.
11432         (remove_expressions_from_table): Update to unwind to the
11433         most recent unwind marker in the global avail_expr stack.
11434         All callers changed.
11435         (dom_opt_finalize_block): Mark unwind point in the global
11436         avail_expr stack as needed.
11437         (record_cond): Push elements into the global avail_exprs stack.
11438
11439         * tree-dfa.c (free_df_for_stmt): No longer static.
11440         (free_df): Update comments.
11441         * tree-flow.h (free_df_for_stmt): Prototype.
11442         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
11443         call release_defs.
11444
11445 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
11446
11447         PR tree-optimization/17252
11448         * tree-ssa-alias.c (may_alias_p): Don't assume that a
11449         pointer may not point to itself when using relaxed
11450         aliasing rules.
11451
11452 2004-09-14  Richard Henderson  <rth@redhat.com>
11453
11454         PR middle-end/17397
11455         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
11456         while folding <ADDR_EXPR <INDIRECT_REF X>>.
11457
11458 2004-09-14  Andrew Pinski  <apinski@apple.com>
11459
11460         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
11461         sets of the pointers but the aliasing sets of what they point to.
11462
11463 2004-09-14  Roger Sayle  <roger@eyesopen.com>
11464
11465         PR rtl-optimization/9771
11466         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
11467         conditional compilation in init_reg_sets_1.
11468         (init_reg_sets_1): Let global_regs[i] take priority over the frame
11469         (but not stack) pointer exceptions to regs_invalidated_by_call.
11470         (globalize_reg): Globalizing a fixed register may need to update
11471         regs_invalidated_by_call.
11472
11473 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
11474
11475         PR tree-optimization/15262
11476         * tree-dfa.c (dump_variable): Also print the type of the
11477         variable.
11478         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
11479         memory tags are of conflicting alias sets but have no aliased
11480         symbols in common, add one tag to the alias set of the other.
11481         (setup_pointers_and_addressables): Remove hack to deal with
11482         programs with no aliased symbols.
11483         (may_alias_p): Don't special case aggregate types.
11484
11485 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
11486
11487         PR c/15498
11488         * doc/invoke.texi (Environment Variables): Correct example locale.
11489
11490 2004-09-14  Jan Hubicka  <jh@suse.cz>
11491
11492         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
11493
11494 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
11495
11496         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
11497
11498 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
11499
11500         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
11501         restrict_p.
11502         (struct c_declarator): Change u.array.quals and pointer_quals to
11503         int.  Add u.array.attrs.
11504         (quals_from_declspecs): New.
11505         * c-decl.c (quals_from_declspecs): New.
11506         (shadow_tag_warned): Give more specific message for useless type
11507         qualifiers.
11508         (build_array_declarator, set_array_declarator_inner,
11509         grokdeclarator, make_pointer_declarator, build_null_declspecs,
11510         declspecs_add_qual): Update for changed structures.
11511
11512 2004-09-14  Jeff Law  <law@redhat.com>
11513
11514         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
11515         to a global varray.
11516         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
11517         (dom_opt_initialize_block_local_data): No longer test state
11518         of stmts_to_rescan.
11519         (dom_opt_finalize_block): Update due to change in scope of
11520         stmts_to_rescan.
11521         (optimize_stmt): Similarly.
11522
11523 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
11524
11525         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
11526         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
11527         comment typos.  Follow spelling conventions.
11528
11529 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
11530
11531         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
11532         config/i386/predicates.md, config/sparc/sparc.c: Follow
11533         spelling conventions.
11534
11535 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11536             Steven Bosscher  <stevenb@suse.de>
11537
11538         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
11539         * basic-block.h (struct reorder_block_def): Add copy_number field.
11540         * cfgloop.h (biv_p): Declare.
11541         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
11542         * common.opt (fsplit-ivs-in-unroller): New flag.
11543         * loop-iv.c (biv_p): New function.
11544         * loop-unroll.c: Include hashtab.h and recog.h.
11545         (struct iv_to_split, struct split_ivs_info): New types.
11546         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
11547         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
11548         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
11549         insert_base_initialization, split_iv): New functions.
11550         (peel_loop_completely, unroll_loop_constant_iterations,
11551         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
11552         Use them.
11553         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
11554
11555 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11556
11557         * tree-cfg.c (thread_jumps): Update dominators correctly in
11558         case destination of threaded edge dominates its source.
11559
11560 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11561
11562         * unroll.c: Removed.
11563         * loop.h: Removed.
11564         * Makefile.in (LOOP_H, unroll.o): Removed.
11565         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
11566         dependency.
11567         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
11568         reference.
11569         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
11570         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
11571         * loop.c: Do not include loop.h.
11572         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
11573         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
11574         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
11575         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
11576         struct loop_regs, struct loop_movables, struct loop_info): Moved
11577         from loop.h.
11578         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
11579         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
11580         find_common_reg_term, loop_iterations, final_giv_value): Moved
11581         from unroll.c.
11582         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
11583         loop_dump_stream, for_each_insn_in_loop, express_from,
11584         extend_value_for_giv, loop_iv_add_mult_emit_before,
11585         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
11586         loop_insn_first_p, get_condition_for_loop,
11587         loop_insn_emit_before, loop_insn_hoist,
11588         loop_insn_sink): Made static.
11589         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
11590         reference.
11591         (strength_reduce): Do not call unroller.
11592         (record_giv): Do not initialize unrolled field.
11593         (prescan_loop): Do not set loop_info->preconditioned.
11594         * passes.c: Do not include loop.h.
11595         (rest_of_handle_loop_optimize): Do not call unroller.
11596         * predict.c: Do not include loop.h.
11597         * rtl.h (NOTE_PRECONDITIONED): Removed.
11598         * stmt.c: Do not include loop.h.
11599         * toplev.c: Do not include loop.h.
11600         (process_options): Do not handle flag_old_unroll_loops.
11601
11602         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
11603         Documentation removed.
11604         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
11605
11606 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
11607
11608         * Makefile.in (STAGE1_CHECKING): New variable.
11609         (stage1_build): Use it.
11610         * tree-ssa.c (verify_ssa): Preserve state of dominance
11611         information.
11612
11613 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
11614
11615         * config/i386/i386.c (output_fp_compare): Add generation
11616         of ftst instruction.
11617         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
11618         Use output_fp_compare () function.
11619         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
11620         (fix_truncdi_memory): Remove operands[5] copy.
11621
11622 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
11623
11624         * config/m32r/m32r.md, config/m68k/m68kelf.h,
11625         config/mcore/mcore.md, config/rs6000/linux64.h,
11626         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
11627         typos.
11628
11629 2004-09-13  James E Wilson  <wilson@specifixinc.com>
11630
11631         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
11632         * gen-protos.c: Include errors.h.
11633         (progname): Delete.
11634
11635 2004-09-14  Jan Hubicka  <jh@suse.cz>
11636
11637         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
11638         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
11639         (predict_loops): Use number_of_iterations_exit to predict
11640         number of iterations on trees.
11641
11642 2004-09-13  Dale Johannesen  <dalej@apple.com>
11643
11644         PR 17408
11645         PR 17409
11646         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
11647         objects declared extern.
11648
11649 2004-09-14  Paul Brook  <paul@codesourcery.com>
11650
11651         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
11652         HOST_WIDE_INT.
11653
11654 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
11655
11656         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
11657         Only use TYPE_BINFO for aggregates.
11658
11659 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
11660
11661         * expmed.c (synth_mult): Initialize latency.  Check cost before
11662         checking ops count.
11663
11664 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
11665
11666         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
11667         add_call_clobber_ops and add_call_read_ops.
11668         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
11669         the number of vdefs and vuses inserted based on analysis of global
11670         variables across calls.  * tree-dfa.c (find_referenced_vars):
11671         Needed to reset static var maps before each function is compiled.
11672         * cgraphunit.c:
11673         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
11674         static_vars_info,functions_to_static_vars_info,module_statics_escape,
11675         all_module_statics,searchc_env,dfs_info): New fields to support
11676         analysis of static global variables.
11677         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
11678         cgraph_reset_static_var_maps, get_global_static_vars_info,
11679         get_global_statics_not_read, get_global_statics_not_written,
11680         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
11681         check_rhs_var, check_lhs_var, get_asm_expr_operands,
11682         process_call_for_static_vars, scan_for_static_refs,
11683         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
11684         clear_static_vars_maps, cgraph_propagate_bits,
11685         cgraph_characterize_statics): New. Functions to support analysis
11686         of static global variables.
11687         (cgraph_mark_local_and_external_functions): Renamed from:
11688         (cgraph_mark_local_functions)
11689         (cgraph_expand_all_functions): Remove call to
11690         cgraph_mark_local_and_external_functions.
11691         (cgraph_optimize): Added driver to analyze static variables whose
11692         scope is within the compilation unit.  * cgraph.h (struct
11693         cgraph_local_info, GTY): Added statics_read, statics_written,
11694         local, calls_read_all, calls_write_all, for_functions_valid.
11695         (struct cgraph_node): Added next_cycle.  * cgraph.c
11696         (dump_cgraph_node): Added print routines for new fields.  *
11697         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
11698         list.
11699
11700 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
11701
11702         * c-decl.c (grokdeclarator): Correct comments about where storage
11703         class specifiers are rejected by grammar and add corresponding
11704         asserts.  Diagnose typedefs and parameters declared inline.
11705         Change warning for inline main to a pedwarn.  Only diagnose inline
11706         main if hosted.
11707         (declspecs_add_scspec): Allow duplicate "inline".
11708
11709 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
11710
11711         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
11712         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11713
11714 2004-09-13  Richard Henderson  <rth@redhat.com>
11715
11716         PR 17436
11717         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
11718         (tree_type): Replace spare with contains_placeholder_bits.
11719         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
11720         make static.  Remove seen_types list.
11721         (type_contains_placeholder_p): New.
11722
11723 2004-09-13  James E Wilson  <wilson@specifixinc.com>
11724
11725         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
11726         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
11727         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
11728         bdesc_arrays instead of mips_bdesc.
11729         (mips_init_builtins): Likewise.
11730         * config/mips/mips.h (TARGET_SB1): New.
11731         (HAVE_SQRT_P): Delete.
11732         * config/mips/mips.md (divide_condition): Support V2SF.
11733         (sqrt_condition, recip_condition): New.
11734         (div<mode>3): Use ANYF instead of SCALARF.
11735         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
11736         MODE.
11737         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
11738         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
11739         instead of MODE.
11740         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
11741         instead of SCALARF.  Use UNITMODE instead of MODE.
11742
11743 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
11744
11745         * config.in: Regenerate after removal of libbanshee.
11746
11747 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
11748
11749         PR tree-optimization/17400
11750         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11751         coalesce partitions when one occurs in an abnormal PHI.
11752
11753 2004-09-13  Andrew Pinski  <apinski@apple.com>
11754
11755         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
11756         name to _new_size.
11757
11758 2004-09-13  Richard Henderson  <rth@redhat.com>
11759
11760         PR inline-asm/6806
11761         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
11762         (cselib_invalidate_rtx_note_stores): New.
11763         (cselib_record_sets, cselib_process_insn): Update to match.
11764         * cselib.h (cselib_invalidate_rtx): Declare.
11765         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
11766
11767 2004-09-13  Richard Henderson  <rth@redhat.com>
11768
11769         PR tree-opt/10528
11770         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
11771         after copying its argument.
11772
11773 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
11774
11775         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
11776         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
11777         in diagnostics.  Use %' for English apostrophes.
11778         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
11779         (pedwarn_c90, pedwarn_c99): Use it.
11780         * c-decl.c (lookup_label): Quote label name in diagnostic.
11781         * c-parse.in (yyprint): Use ' instead of ` for left quote.
11782         * c-typeck.c (warn_for_assignment): Likewise.
11783
11784 2004-09-13  Jan Hubicka  <jh@suse.cz>
11785
11786         * i386.c (x86_schedule): New global variable.
11787         (override_options): Disable scheduling when not supported.
11788         * i386.h (x86_schedule): Declare.
11789         (TARGET_SCHEDULE): New macro.
11790
11791 2004-09-12  Richard Henderson  <rth@redhat.com>
11792
11793         PR c++/16254
11794         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
11795         * tree.c, tree.h (has_cleanups): Remove.
11796
11797 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11798
11799         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
11800         arguments of the phi nodes correctly.
11801
11802 2004-09-12  Jan Hubicka  <jh@suse.cz>
11803
11804         * ggc-common.c (cmp_statistics): Fix sorting.
11805
11806 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
11807
11808         PR target/16795
11809         * expmed.c (expand_divmod): If cheap power of 2 divide is
11810         available, use it for negative constant as well.
11811
11812 2004-09-12  Andrew Pinski  <apinski@apple.com>
11813
11814         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
11815         size of 0.
11816
11817         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
11818
11819 2004-09-12  Richard Henderson  <rth@redhat.com>
11820
11821         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
11822         or minus one.
11823         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
11824         post-reload, and scratch NULL.
11825         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
11826         (x86_shift_adj_2): Use ix86_expand_clear.
11827         (ashldi3): Remove CMOVE expansion difference.
11828         (ashldi3_1): Remove.
11829         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
11830         add constraints for immediates.  New peephole for split-with-temp.
11831         Run splitter after peep2 pass.
11832         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
11833         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
11834         (setcc_2): Rename with *.
11835         * config/i386/predicates.md (reg_or_pm1_operand): New.
11836         (ashldi_input_operand): New.
11837
11838 2004-09-12  Richard Henderson  <rth@redhat.com
11839
11840         * print-rtl.c (print_decl_name): New.
11841         (print_mem_expr): Use it.
11842
11843 2004-09-12  Richard Henderson  <rth@redhat.com
11844
11845         PR 17186, part deux
11846         * except.c (sjlj_emit_function_exit): Fix logic locating
11847         sjlj_exit_after in final block.
11848
11849 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
11850
11851         * common.opt: Remove flags -fmove-all-movables and
11852         -freduce-all-givs.
11853         * loop-invariant.c (find_invariants_to_move):
11854         Remove all uses of flag_move_all_movables.
11855         * loop.c (move_movables): Remove all uses of
11856         flag_move_all_movables.
11857         (strength_reduce): Remove all uses of
11858         flag_reduce_all_givs.
11859         * doc/invoke.texi: Remove documentation of flags
11860         -fremove-all-movables and -freduce-all-givs.
11861
11862 2004-09-11  Roger Sayle  <roger@eyesopen.com>
11863
11864         PR middle-end/17411
11865         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
11866         change. elt->type may be a floating point type, so use fold_convert.
11867
11868 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
11869
11870         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
11871         the thing referenced as used, not the stub itself.
11872
11873 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
11874
11875         * c-tree.h (enum c_storage_class): New.
11876         (struct c_declspecs): Add storage_class, inline_p and thread_p.
11877         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
11878         declarations and "auto" or "register" in file scope empty
11879         declarations.  Give more specific warnings for other cases of
11880         storage class specifiers in empty declarations.
11881         (grokdeclarator): Update for new structures.  Don't check for
11882         multiple storage classes.  Diagnose file-scope "register" if
11883         pedantic.
11884         (build_null_declspecs): Update.
11885         (declspecs_add_scspec): Update.  Diagnose multiple storage class
11886         specifiers and invalid uses of "__thread".
11887
11888 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
11889
11890         * tree.c (tree_code_size): New function, bulk of code from tree_size.
11891         (tree_size, make_node): Use it.
11892         * tree-ssa-pre.c (init_pre): Use it.
11893         * tree.h: Prototype it.
11894
11895 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11896
11897         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
11898         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
11899         redirect_immediate_use): Use PHI_DF.
11900         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
11901         (bb_for_stmt): Use PHI_BB.
11902         (get_immediate_uses): Use PHI_DF.
11903         * tree-ssa-dse.c (max_stmt_uid): New variable.
11904         (get_stmt_uid): New function.
11905         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
11906         node annotations.
11907         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
11908         (max_uid): Renamed to max_stmt_uid.
11909         (get_stmt_uid): New function.
11910         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
11911         phi node annotations.
11912         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
11913         * tree.h (PHI_BB, PHI_DF): New accessor functions.
11914         (struct tree_phi_node): Add bb and df fields.
11915
11916 2004-09-11  Richard Henderson  <rth@redhat.com>
11917
11918         PR middle-end/17416
11919         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
11920         in conflict loop.
11921
11922 2004-09-11  Jan Hubicka  <jh@suse.cz>
11923
11924         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
11925         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
11926         * i386.md (i387_cw): Add 'uninitialized' mode.
11927
11928         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
11929         (output_location): Break out from ....
11930         (branch_prob): ... here; handle gcov output on trees.
11931         * toplev.c (process_options): No longer be sorry about coverage for
11932         trees.
11933
11934 2004-09-11  Steven Bosscher  <stevenb@suse.de>
11935
11936         PR c++/17412
11937         * fold-const.c (fold): Do not try to fold the operand of a
11938         CLEANUP_POINT_EXPR if that operand does itself not have any
11939         operands.
11940
11941         PR middle-end/17417
11942         * langhooks.c (lhd_decl_printable_name): Make sure that this
11943         function is called with is a decl node that has an identifier.
11944         * tree-pretty-print.c (dump_function_name): New function to
11945         wrap PRINT_FUNCTION_NAME and dump_decl_name.
11946         (print_call_name): Use it.
11947
11948 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
11949
11950         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
11951         "config.h" if not.
11952
11953 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
11954
11955         * tree-ssa-alias.c (collect_points_to_info_r): Handle
11956         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
11957         to OFFSET.
11958
11959 2004-09-11  Richard Henderson  <rth@redhat.com>
11960
11961         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
11962         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
11963         operand of the ADDR_EXPR.
11964         (expand_expr_real_1): Update to match.
11965
11966 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
11967
11968         PR target/17277
11969         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
11970         choose 64-bit version.
11971
11972 2004-09-11  Richard Henderson  <rth@redhat.com>
11973
11974         PR c/17396
11975         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
11976
11977 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
11978
11979         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
11980         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
11981         Insert @: after i.e. or e.g.
11982
11983 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
11984
11985         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
11986         D.xxx rather than <Dxxx>.
11987
11988 2004-09-10  Adam Nemet  <anemet@lnxw.com>
11989
11990         * configure.ac (AC_MSG_CHECKING(what linker to use)):
11991         in_tree_ld_is_elf should be true for LynxOS.
11992         * configure: Regenerate.
11993
11994 2004-09-10  Adam Nemet  <anemet@lnxw.com>
11995
11996         * Makefile.in (all.cross): Add srcextra.
11997
11998 2004-09-10  Roger Sayle  <roger@eyesopen.com>
11999
12000         PR middle-end/17024
12001         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
12002         floating point comparison operators.  Change aborts to gcc_asserts.
12003
12004 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
12005
12006         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
12007
12008 2004-09-10  James E Wilson  <wilson@specifixinc.com>
12009
12010         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
12011         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
12012
12013         * convert.c (convert_to_vector): Replace recursive call with
12014         error_mark_node.
12015
12016         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
12017         Add integer argument named constant.  Use const_tiny_rtx instead of
12018         CONST0_RTX.
12019         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
12020         and CONST1_RTX.
12021         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
12022         vector types.
12023         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
12024         of gen_rtx_raw_CONST_VECTOR.
12025
12026 2004-09-10  Eric Christopher  <echristo@redhat.com>
12027
12028         PR c/16046
12029         * c-parse.in (attribute): Add NULL_TREE for error case
12030         for error recovery.
12031
12032 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
12033
12034         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
12035         (extract_interface_info): Delete prototype.
12036         * c-decl.c (extract_interface_info): Delete stub.
12037         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
12038         it's not already been done ...
12039         (init_c_lex): ... not here.
12040         (fe_file_change): Don't call extract_interface_info.
12041
12042 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12043
12044         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
12045         typedef_p and typedef_signed_p.
12046         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
12047         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
12048         Check typedef_p and typedef_signed_p, not typedef_decl.
12049         (grokfield): Check typedef_p, not typedef_decl.
12050         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
12051         not typedef_decl.
12052         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
12053         typedef_decl.
12054
12055 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
12056
12057         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
12058
12059 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
12060
12061         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
12062         temporary variables.
12063
12064         * dbxout.c (dbxout_block): Update for
12065         current_function_func_begin_label a string.
12066         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
12067         * except.c (dw2_output_call_site_table): Likewise.
12068         * toplev.c (current_function_func_begin_label): Likewise.
12069         * tree.h (current_function_func_begin_label): Likewise.
12070         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
12071
12072         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
12073         loop.
12074
12075         * config/darwin.c: Include target.h.
12076         (struct machopic_indirection): Make ptr_name a string.
12077         (machopic_indirection_hash): Update for ptr_name a string.
12078         (machopic_indirection_eq): Likewise.
12079         (machopic_indirection_name): Likewise.
12080         (machopic_output_indirection): Likewise.
12081         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
12082         string.  Don't expect stub names to be in the identifier hash table.
12083         Do call strip_name_encoding before looking up entry in ID hash table.
12084         * config/t-darwin (darwin.o): Add target.h to dependencies.
12085
12086         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
12087         of fprintf for register names.
12088
12089         * output.h (unlikely_section_label): Delete declaration.
12090         (unlikely_text_section_name): Likewise.
12091         * varasm.c (unlikely_section_label_printed): Make static.
12092         (unlikely_section_label): Likewise.
12093         (unlikely_text_section_name): Likewise.
12094         (assemble_start_function): Use reconcat.
12095
12096         * rtl.def (REG): Add comment to describe third field.
12097
12098 2004-09-10  Andrew Pinski  <apinski@apple.com>
12099
12100         * config/darwin.c (machopic_mcount_stub_name): Call
12101         machopic_indirection_name instead of making the string
12102         ourselves.
12103
12104 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
12105
12106         Revert
12107
12108         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
12109
12110             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
12111             memory tag is call clobbered, so are its aliases.
12112             (group_aliases): When two memory tags being grouped, if one is
12113             call clobbered, so are the other and its aliases.
12114             (add_may_alias): Remove call-clobbering stuff.
12115             (replace_may_alias): Likewise.
12116             (merge_pointed_to_info): Merge pt_global_mem
12117
12118 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
12119
12120         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
12121         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
12122         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
12123         tree-scalar-evolution.c, tree-ssa-copyrename.c,
12124         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
12125
12126 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
12127
12128         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
12129         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
12130         pair.  Remove match_dup from inputs.  Remove masaccs handling.
12131         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
12132         (masaccs, mdasaccs): Turn into define_insns.
12133
12134 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
12135
12136         * tree-tailcall.c (process_assignment): Only do accumulator transforms
12137         for floating-point types if flag_unsafe_math_optimizations.
12138
12139 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
12140
12141         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
12142         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
12143         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
12144         config/h8300/h8300.md, config/i386/gmm_malloc.h,
12145         config/ia64/ia64.md, config/ip2k/libgcc.S,
12146         config/mips/mips-ps-3d.md, config/mips/mips.c,
12147         config/rs6000/rs6000.c, config/s390/s390.c,
12148         config/sh/symbian.c: Fix comment typos.
12149
12150 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
12151
12152         * config/s390/s390.c (s390_emit_prologue): Added missing
12153         "{}" brackets.
12154
12155 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
12156
12157         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
12158         typos.  Follow spelling conventions.
12159
12160 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
12161
12162         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
12163         in diagnostic.  Don't dereference NULL TYPE_NAME.
12164
12165 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
12166
12167         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
12168         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
12169         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
12170         value-prof.c: Fix comment typos.  Follow spelling conventions.
12171
12172 2004-09-10  Jan Hubicka  <jh@suse.cz>
12173
12174         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
12175         * tree-split_edge.c (tree_split_edge): Likewise.
12176         (thread_jumps): Likewise.
12177
12178 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
12179
12180         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
12181         typos.
12182
12183 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
12184
12185         * cgraph.h (cgraph_dump_file): Do not declare.
12186         * cgraphunit.c (cgraph_dump_file): Declare as static.
12187         (init_cgraph): New.
12188         * toplev.c (cgraph_dump_file): Do not declare.
12189         (compile_file): Call init_cgraph.
12190         * tree-dump.c (dump_files): Add IPA dump file, remove
12191         XML dump of call graph.
12192         (get_dump_file_name): Support IPA dump file naming scheme.
12193         * tree.h (enum tree_dump_index): Add IPA dump file, remove
12194         XML dump of call graph.
12195         * doc/invoke.texi (Debugging Options): Document the new options.
12196
12197 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
12198
12199         * doc/extend.texi: Document the FR-V built-in functions.
12200
12201 2004-09-09  James E Wilson  <wilson@specifixinc.com>
12202
12203         * doc/sourcebuild.texi: Delete libbanshee reference.
12204
12205 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
12206
12207         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
12208
12209 2004-09-09  James E Wilson  <wilson@specifixinc.com>
12210
12211         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
12212         before calling vector_types_convertible_p.
12213         (digest_init): Check that inside_init has VECTOR_TYPE before calling
12214         vector_types_convertible_p.  Don't give another error if
12215         convert_for_assignment returns error_mark_node.
12216
12217 2004-09-09  Roger Sayle  <roger@eyesopen.com>
12218
12219         PR middle-end/17055
12220         * fold-const.c (build_zero_vector): New function to construct a
12221         vector (either floating point or integer) of zeros.
12222         (fold_convert): Internally, enable conversions of integer zero
12223         to arbitrary vector types, using the new build_zero_vector.
12224
12225 2004-09-09  Roger Sayle  <roger@eyesopen.com>
12226
12227         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
12228         expand a left shift by an immediate constant as either an ashl or
12229         a sequence of additions.
12230         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
12231         instead of calling gen_ashlsi3 with a constant directly.
12232
12233 2004-09-09  Roger Sayle  <roger@eyesopen.com>
12234
12235         * config/i386/i386.c (ix86_split_long_move): When optimizing for
12236         size, and the low and high parts of a DImode constant are equal,
12237         copy one register to another instead of loading the same immediate
12238         value twice.
12239
12240 2004-09-09  Richard Henderson  <rth@redhat.com>
12241
12242         PR middle-end/17367
12243         * function.c (assign_parm_setup_block): Only put PARALLELs into
12244         a register if use_register_for_decl.
12245
12246 2004-09-09  Eric Christopher  <echristo@redhat.com>
12247
12248         * ra-colorize.c (reset_lists): Move variable declaration inside
12249         ENABLE_CHECKING to avoid unused variable warnings when
12250         not --enable-checking.
12251         (check_colors): Ditto.
12252
12253 2004-09-09  Mike Stump  <mrs@apple.com>
12254
12255         * version.c (version_string): Bump to 4.0.0.
12256         * doc/include/gcc-common.texi (version-GCC): Likewise.
12257
12258 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
12259
12260         * doc/extend.texi (nothrow attribute): The attribute is not
12261         implemented in 3.2 and earlier.
12262
12263 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
12264
12265         * genrecog.c (compute_predicate_codes): Use op0_codes
12266         instead of codes.
12267
12268 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
12269
12270         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
12271         implementation changes.
12272
12273 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
12274
12275         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
12276         a PARALLEL instead of a SET due to added clobbers.
12277
12278 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
12279
12280         * reload.c (find_reloads_address): Pass correct operand to
12281         maybe_memory_address_p.
12282
12283 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
12284
12285         * Makefile.in: Remove libbanshee, tree-alias-*.
12286         Remove tree-alias-common.h dependencies.
12287         * common.opt: Remove -ftree-points-to.
12288         * configure.ac: Remove libbanshee.
12289         * flags.h: Remove pta_type, flag_tree_points_to.
12290         * gengtype.c (open_base_files): Remove tree-alias-type.h.
12291         * opts.c (OPT_ftree_points_to): Remove.
12292         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
12293         * tree-dfa.c: Remove tree-alias-common.h
12294         * tree-into-ssa.c: Ditto.
12295         * tree-outof-ssa.c: Ditto.
12296         * tree-ssa-copyrename.c: Ditto.
12297         * tree-ssa-live.c: Ditto.
12298         * tree-optimize.c: Ditto.
12299         * tree-ssa.c: Ditto.
12300         Remove pass_build_pta, pass_del_pta.
12301         * tree-pass.h: Ditto.
12302         * tree-ssa-alias.c: Remove tree-alias-common.h.
12303         (struct alias_stats_d): Remove pta_queries, pta_resolved.
12304         (pass_may_alias): Remove PROP_pta requirement.
12305         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
12306         (get_tmt_for): Ditto.
12307         (dump_alias_stats): Ditto.
12308         * doc/passes.texi: Remove blurb about points-to analysis.
12309         * fortran/Make-lang.in: Remove tree-alias-*.o.
12310
12311 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
12312
12313         * genattrtab.c (write_insn_cases): New function, split out from
12314         write_attr_case.  Correctly handle define_peepholes when printing
12315         the instruction name.
12316         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
12317
12318 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
12319
12320         PR target/17377
12321         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
12322         * config/cris/cris.c (cris_return_address_on_stack): New function.
12323         * config/cris/cris.md ("return"): For location of return address,
12324         also check cris_return_address_on_stack.
12325
12326 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
12327
12328         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
12329         calling phi_ssa_name_p.
12330
12331 2004-09-09  Richard Henderson  <rth@redhat.com>
12332
12333         PR c/17322
12334         * c-typeck.c (valid_compound_expr_initializer): Use only
12335         initializer_constant_valid_p, and not TREE_CONSTANT.
12336         (digest_init): Likewise.
12337         (output_init_element): Likewise.
12338
12339 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
12340
12341         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
12342         live_out_1, prune_hardregs_for_mode, init_one_web_common,
12343         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
12344         record_conflict, compare_and_free_webs, init_webs_defs_uses,
12345         parts_to_webs_1, parts_to_webs, reset_conflicts,
12346         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
12347         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
12348         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
12349         put_move, remove_move, combine, select_spill, colorize_one_web,
12350         try_recolor_web, insert_coalesced_conflicts, check_colors,
12351         break_precolored_alias, restore_conflicts_from_coalesce,
12352         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
12353         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
12354         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
12355         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
12356         check_df): Likewise.
12357         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
12358         real_arithmetic, real_compare, real_exponent, real_ldexp,
12359         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
12360         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
12361         real_digit, real_nan, real_maxval, round_for_format, real_convert,
12362         real_to_target, real_from_target, real_hash, encode_ieee_single,
12363         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
12364         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
12365         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
12366         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
12367         extract_insn, peep2_next_insn, peep2_reg_dead_p,
12368         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
12369         if_test_bypass_p): Likewise.
12370         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
12371         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
12372         emit_swap_insn, swap_to_top, move_for_stack_reg,
12373         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
12374         compensate_edge, convert_regs_1): Likewise.
12375         * regclass.c (init_reg_sets, init_reg_sets_1,
12376         memory_move_secondary_cost): Likewise.
12377         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
12378         Likewise.
12379         * reload.c (push_secondary_reload, find_valid_class, push_reload,
12380         operands_match_p, decompose, immune_p, find_reloads,
12381         find_reloads_toplev, find_reloads_address_1, subst_reloads,
12382         copy_replacements, refers_to_regno_for_reload_p,
12383         reg_overlap_mentioned_for_reload_p): Likewise.
12384         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
12385         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
12386         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
12387         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
12388         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
12389         do_output_reload, fixup_abnormal_edges): Likewise.
12390         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
12391         fill_slots_from_thread, relax_delay_slots): Likewise.
12392         * resource.c (mark_referenced_resources, mark_set_resources):
12393         Likewise.
12394         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
12395         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
12396         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
12397         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
12398         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
12399         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
12400         * rtlhooks.c (gen_lowpart_general): Likewise.
12401         * sbitmap.c (sbitmap_difference): Likewise.
12402         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
12403         sched_analyze, add_forward_dependence): Likewise.
12404         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
12405         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
12406         schedule_insns): Likewise.
12407         * sched-vis.c (print_pattern): Likewise.
12408         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
12409         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
12410         simplify_const_relational_operation, simplify_ternary_operation,
12411         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
12412         Likewise.
12413         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
12414         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
12415         resolve_operand_name_1, expand_return, expand_decl,
12416         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
12417         * stor-layout.c (put_pending_size, smallest_mode_for_size,
12418         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
12419         set_sizetype, get_mode_bounds): Likewise.
12420
12421 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
12422
12423         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
12424         * config/arm/pecoff.h, config/i386/beos-elf.h
12425         * config/i386/cygming.h, config/i386/i386-interix.h:
12426         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
12427         comment cloned from manual.
12428         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
12429
12430 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
12431
12432         * builtins.c (build_va_arg_indirect_ref): New function.
12433         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
12434         build_fold_indirect_ref.
12435         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
12436         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
12437         * tree.h: Declare new function.
12438
12439 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12440
12441         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
12442         dumping for development builds.
12443         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
12444         development builds only.
12445         * genattrtab.c (write_eligible_delay): Fix typo in previous
12446         commit.
12447         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
12448         gcc_assert.
12449
12450 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12451
12452         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
12453         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
12454         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
12455         hoist_code, extract_mentioned_regs_helper, compute_store_table,
12456         insert_store): Use gcc_assert and gcc_unreachable.
12457         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
12458         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
12459         ggc_record_overhead): Likewise.
12460         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
12461         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
12462         ggc_pop_context, clear_marks, validate_free_objects,
12463         ggc_pch_read): Likewise.
12464         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
12465         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
12466         ggc_push_context, check_cookies, ggc_collect,
12467         ggc_print_statistics): Likewise.
12468         * gimple-low.c (lower_function_body, lower_stmt,
12469         lower_bind_expr): Likewise.
12470         * gimplify.c (gimple_tree_eq, push_gimplify_context,
12471         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
12472         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
12473         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
12474         gimplify_case_label_expr, gimplify_exit_block_expr,
12475         canonicalize_component_ref, gimplify_compound_lval,
12476         gimplify_self_mod_expr, gimplify_call_expr,
12477         gimplify_init_ctor_eval, gimplify_init_constructor,
12478         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
12479         gimplify_expr, check_pointer_types_r,
12480         force_gimple_operand): Likewise.
12481         * global.c (global_alloc, build_insn_chain): Likewise.
12482         * graph.c (clean_graph_dump_file,
12483         finish_graph_dump_file): Likewise.
12484         gcov-io.c (gcov_open): Use GCOV_CHECK.
12485
12486 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
12487
12488         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
12489
12490 2004-09-09  Jan Hubicka  <jh@suse.cz>
12491
12492         middle-end/17128
12493         * tree-inline.c (expand_call_inline): Make overactive sanity check
12494         happy.
12495
12496 2004-09-09  Jan Hubicka  <jh@suse.cz>
12497
12498         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
12499         VIEW_CONVERT_EXPR.
12500
12501 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12502
12503         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
12504         (gengtype.o): Depend on errors.h.
12505         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
12506         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
12507         attr_alt_subset_p, attr_alt_subset_of_compl_p,
12508         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
12509         write_test_expr, write_attr_value, write_eligible_delay,
12510         make_internal_attr, make_numeric_value): Likewise.
12511         * genautomata.c (regexp_name, get_str_vect,
12512         gen_presence_absence_set, automaton_decl_hash,
12513         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
12514         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
12515         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
12516         test_unit_reserv, it_is_empty_reserv_sets,
12517         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
12518         reserv_sets_and, output_cycle_reservs, get_free_state,
12519         intersected_state_reservs_p, states_union, remove_arc,
12520         copy_insn_regexp, transform_1, transform_2, transform_3,
12521         regexp_transform_func, store_alt_unit_usage,
12522         check_regexp_units_distribution, process_seq_for_forming_states,
12523         process_alts_for_forming_states, make_automaton,
12524         form_arcs_marked_by_insn, create_composed_state,
12525         set_out_arc_insns_equiv_num, partition_equiv_class,
12526         process_insn_equiv_class, set_insn_equiv_classes,
12527         units_to_automata_heuristic_distr, form_regexp,
12528         longest_path_length, output_dfa_max_issue_rate, add_vect,
12529         out_state_arcs_num, add_vect_el, output_trans_table,
12530         output_state_alts_table, output_dead_lock_vect,
12531         output_max_insn_queue_index_def,
12532         output_min_insn_conflict_delay_func,
12533         output_internal_insn_latency_func, output_print_reservation_func,
12534         output_cpu_unit_reservation_p, output_state_arcs,
12535         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
12536         make_default_insn_latency_attr,
12537         form_important_insn_automata_lists): Likewise.
12538         * genemit.c (gen_exp, output_add_clobbers,
12539         output_added_clobbers_hard_reg_p): Likewise.
12540         * genextract.c (print_path, main): Likewise.
12541         * genflags.c (gen_macro): Likewise.
12542         * gengenrtl.c: Include errors.h
12543         (type_from_format, accessor_from_format): Likewise.
12544         * gengtype.c (get_file_basename, output_mangled_typename,
12545         walk_type, write_types_process_field,
12546         write_types_local_process_field): Likewise.
12547         * genmodes.c (complete_mode): Likewise.
12548         * genopinit.c (gen_insn): Likewise.
12549         * genoutput.c (output_insn_data, check_constraint_len,
12550         constraint_len): Likewise.
12551         * genpreds.c (add_mode_tests):Likewise.
12552         * gen-protos.c (add_hash): Likewise.
12553         * genrecog.c (find_operand, find_matching_operand,
12554         validate_pattern, add_to_sequence, maybe_both_true,
12555         nodes_identical_1, merge_trees, write_switch, write_cond,
12556         write_action, is_unconditional, make_insn_sequence,
12557         debug_decision_2): Likewise.
12558         * gensupport.c (is_predicable, collect_insn_data,
12559         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
12560
12561 2004-09-09  Jan Hubicka  <jh@suse.cz>
12562
12563         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
12564         * cfgbuild.c (compute_outgoing_frequencies): When probability is
12565         missing, guess it.
12566         (find_many_sub_basic_blocks): Do update profile only when it is
12567         present.
12568         * predict.c (set_even_probabilities): Break out from ...
12569         (combine_predictions_for_insn): ... here; deal with
12570         !can_predict_insn_p insns.
12571         (combine_predictions_for_bb): Use set_even_probabilities.
12572         (bb_estimate_probability_locally): Break out from ....
12573         (estimate_probability): ... here.
12574         (guess_outgoing_edge_probabilities): New entry point.
12575
12576 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12577
12578         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
12579         handle_braces, process_brace_body, main, used_arg,
12580         set_multilib_dir, print_multilib_info): Use fatal, not abort.
12581
12582         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
12583
12584         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
12585         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
12586         Morgan's theorem in last checkin.
12587
12588 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
12589             Nathan Sidwell  <nathan@codesourcery.com>
12590
12591         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
12592         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
12593         * timevar.c (timevar_push, timevar_pop, timevar_start,
12594         timevar_stop): Likewise.
12595         * toplev.c (default_pch_valid_p): Likewise.
12596         * tracer.c (tail_duplicate): Likewise.
12597         * tree-alias-common.c (get_alias_var_decl,
12598         get_values_from_constructor, create_alias_var, delete_alias_vars,
12599         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
12600         Likewise.
12601         * tree.c (tree_size, make_node_stat, copy_node_stat,
12602         build_int_cst_wide, integer_all_onesp, list_length, chainon,
12603         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
12604         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
12605         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
12606         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
12607         build_method_type_directly, decl_type_context, get_callee_fndecl,
12608         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
12609         tree_fold_gcd): Likewise.
12610         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
12611         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
12612         cleanup_control_expr_graph, find_taken_edge,
12613         find_taken_edge_switch_expr, phi_alternatives_equal,
12614         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
12615         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
12616         tree_split_edge, tree_verify_flow_info, thread_jumps,
12617         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
12618         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
12619         chrec_fold_multiply_poly_poly): Likewise.
12620         * tree-complex.c (extract_component, expand_complex_division,
12621         expand_complex_comparison, expand_complex_operations_1,
12622         build_replicated_const, expand_vector_operations_1): Likewise.
12623         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
12624         build_classic_dir_vector): Likewise.
12625         * tree-dfa.c (compute_immediate_uses_for_phi,
12626         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
12627         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
12628         * tree-dump.c (dequeue_and_dump): Likewise.
12629         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
12630         record_in_finally_tree, replace_goto_queue_1,
12631         maybe_record_in_goto_queue, verify_norecord_switch_expr,
12632         do_return_redirection): Likewise.
12633         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
12634         add_to_dst_predicate_list, find_phi_replacement_condition,
12635         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
12636         Likewise.
12637         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
12638         initialize_inlined_parameters, declare_return_variable,
12639         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
12640         optimize_inline_calls, copy_tree_r): Likewise.
12641         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
12642         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
12643         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
12644         tsi_split_statement_list_after, tsi_split_statement_list_before):
12645         Likewise.
12646         * tree-mudflap.c (mf_varname_tree): Likewise.
12647         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
12648         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
12649         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12650         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
12651         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
12652         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
12653         Likewise.
12654         * tree-phinodes.c (resize_phi_node, add_phi_arg,
12655         remove_all_phi_nodes_for): Likewise.
12656         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
12657         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
12658         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
12659         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
12660         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
12661         generate_one_element_ref, generate_element_copy,
12662         generate_element_zero, scalarize_copy, scalarize_init,
12663         scalarize_ldst): Likewise.
12664         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
12665         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
12666         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
12667         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
12668         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
12669         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
12670         widen_bitfield, ccp_fold_builtin): Likewise.
12671         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
12672         replace_exp_1, propagate_tree_value): Likewise.
12673         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
12674         * tree-ssa-dce.c (set_control_dependence_map_bit,
12675         find_control_dependence, find_pdom, mark_operand_necessary,
12676         mark_stmt_if_obviously_necessary,
12677         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
12678         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
12679         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
12680         eliminate_redundant_computations, avail_expr_eq): Likewise.
12681         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
12682         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
12683         duplicate_blocks): Likewise.
12684         * tree-ssa-loop-im.c (for_each_index, set_level,
12685         is_call_clobbered_ref): Likewise.
12686         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
12687         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
12688         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
12689         peel_address, ptr_difference_cost, may_replace_final_value,
12690         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
12691         rewrite_use, rewrite_uses): Likewise.
12692         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
12693         check_loop_closed_ssa_use): Likewise.
12694         * tree-ssanames.c (make_ssa_name): Likewise.
12695         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
12696         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
12697         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
12698         get_indirect_ref_operands, add_stmt_operand): Likewise.
12699         * tree-ssa-pre.c (value_exists_in_set_bitmap,
12700         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
12701         phi_translate, valid_in_set, compute_antic,
12702         find_or_generate_expression, create_expression_by_pieces, insert_aux,
12703         create_value_expr_from, eliminate): Likewise.
12704         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
12705         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
12706         Likewise.
12707         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
12708         eliminate_tail_call): Likewise.
12709         * tree-vectorizer.c (vect_create_index_for_array_ref,
12710         vect_align_data_ref, vect_create_data_ref,
12711         vect_create_destination_var, vect_get_vec_def_for_operand,
12712         vect_finish_stmt_generation, vect_transform_stmt,
12713         vect_transform_loop_bound, vect_transform_loop,
12714         vect_analyze_operations): Likewise.
12715         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
12716         Likewise.
12717         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
12718         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
12719         bsi_after_labels, bsi_last): Likewise.
12720         * tree-ssa-live.c (var_union, change_partition_var,
12721         create_ssa_var_map, calculate_live_on_entry, root_var_init,
12722         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
12723         Likewise.
12724         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
12725         tpa_find_tree): Likewise.
12726         (register_ssa_partition_check): Declare.
12727         (register_ssa_partition): use it.
12728         * tree-ssa-live.c: Include errors.h.
12729         (register_ssa_partition_check): New.
12730         * tree-ssa-operands.c: Include errors.h.
12731         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
12732
12733 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
12734             Catherine Moore  <clm@redhat.com>
12735
12736         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
12737         (FRV_CPU_FR405): New processor enums.
12738         (frv_issue_rate, frv_acc_group): Declare.
12739         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
12740         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
12741         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
12742         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
12743         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
12744         handled by CPP_SPEC.
12745         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
12746         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
12747         (ACC_MASK): New macro.
12748         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
12749         (TARGET_MEDIA_FR450): New macro.
12750         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
12751         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
12752         (LABEL_ALIGN_AFTER_BARRIER): Define.
12753         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
12754         (IACC_FIRST, IACC_LAST): New pair of SPRs.
12755         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
12756         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
12757         (REGISTER_NAMES): Add entries for new registers.
12758         (REG_CLASS_CONTENTS): Update for new register ranges.
12759         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
12760         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
12761         (PACKING_FLAG_USED_P): Delete.
12762         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
12763         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
12764         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
12765         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
12766         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
12767         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
12768         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
12769         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
12770         (CPU_UNITS_QUERY): Define to 1.
12771         * config/frv/frv.c: Include gt-frv.h
12772         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
12773         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
12774         (frv_insn_group): New enumeration.
12775         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
12776         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
12777         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
12778         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
12779         gap left by REGSTATE_LIVE.
12780         (regstate_t): New typedef.
12781         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12782         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
12783         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
12784         Initialize frv_unit_codes[] and frv_type_to_unit[].
12785         (frv_conditional_register_usage): Remove redundant fixing of
12786         accumulator registers.
12787         (frv_insn_packing_flag): Update specification.
12788         (frv_function_prologue): Don't set frv_insn_packing_flag here.
12789         Zero out frv_nops[].
12790         (frv_expand_epilogue): Remove comments about the no-longer-present
12791         SIBCALL_P argument.
12792         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
12793         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
12794         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
12795         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
12796         packing is disabled and if INSN can only issue to M1.
12797         (call_operand): Check TARGET_LONG_CALLS.
12798         (acc_operand, even_acc_operand, quad_acc_operand)
12799         (accg_operand): Simplify.  Don't accept pseudo registers.
12800         (output_move_single): Handle SPR<-zero moves.
12801         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
12802         (frv_registers_update, frv_registers_used_p): Delete.
12803         (frv_registers_set_p): Delete.
12804         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
12805         (frv_issues_to_branch_unit_p): New function.
12806         (frv_packet): New structure.
12807         (frv_cond_flags, frv_regstate_conflict_p): New functions.
12808         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
12809         (frv_registers_update_1, frv_registers_update): New functions.
12810         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
12811         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
12812         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
12813         (frv_sort_insn_group, frv_reorder_packet): New functions.
12814         (frv_pack_insns): Use frv_reorder_packet.
12815         (frv_packet_address): New variable.
12816         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
12817         (frv_register_nop, frv_reorg): New functions.
12818         (bdesc_1arg): Add __SCUTSS.
12819         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
12820         __SUBSS, __SLASS and __SCAN.
12821         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
12822         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
12823         (frv_init_builtins): Register the above builtins.
12824         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
12825         registers.  Turn the referenced accumulators into global registers.
12826         (frv_read_iacc_argument): New function.
12827         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
12828         (frv_split_iacc_move): New function.
12829         (frv_expand_builtin): Handle the new builtins.
12830         * config/frv/frv.md: Replace old schedulers with new order-independent
12831         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
12832         packing algorithm.
12833         (cpu): Add fr550, fr450 and fr405.
12834         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
12835         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
12836         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
12837         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
12838         (fnop, mnop): New patterns.
12839         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
12840         New constants.
12841         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
12842         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
12843         registers.
12844         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
12845         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
12846         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
12847         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
12848         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
12849         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
12850         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
12851         (frv_prefetch0, frv_prefetch): New patterns.
12852         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
12853         -mcpu=simple.  Add -mcpu=fr550.
12854         (MULTILIB_DIRNAMES): Update accordingly.
12855         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
12856         -mcpu=fr450.
12857         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
12858         -mlong-calls and -malign-labels options for FR-V.
12859
12860 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
12861
12862         PR c/8420
12863         * c-tree.h (struct c_declspecs): New.
12864         (struct c_declarator, struct c_type_name, struct c_parm): Update
12865         element types.
12866         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
12867         start_function, start_decl, build_c_parm,
12868         make_pointer_declarator): Update prototypes.
12869         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
12870         declspecs_add_scspec, declspecs_add_attrs): New.
12871         (split_specs_attrs): Remove.
12872         * c-parse.in (%union): Add dsptype.
12873         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
12874         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
12875         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
12876         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
12877         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
12878         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
12879         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
12880         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
12881         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
12882         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
12883         maybe_type_quals_attrs): Change to dsptype.
12884         (struct c_declspec_stack): New.
12885         (current_declspecs, declspec_stack): Change type.
12886         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
12887         structures.
12888         (extdefs): Likewise.
12889         (setspecs): Likewise.
12890         (fndef): Use current_declspecs for empty declspecs list.
12891         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
12892         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
12893         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
12894         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
12895         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
12896         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
12897         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
12898         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
12899         structures and helper functions.  Update comments.
12900         (typespec_nonattr): Correct comment.
12901         (maybe_type_quals_attrs, typename): Update to new structures.
12902         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
12903         shadow_tag, shadow_tag_warned, start_function, start_decl,
12904         build_c_parm, make_pointer_declarator,
12905         set_array_declarator_inner, groktypename): Update to new
12906         structures.
12907         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
12908         declspecs_add_scspec, declspecs_add_attrs): New.
12909         (split_specs_attrs): Remove.
12910         (shadow_tag_warned): Make warning for useless type names a
12911         pedwarn.  Give hard error for long, short, signed, unsigned or
12912         _Complex used with struct, union or enum in empty declaration.
12913         Make found_tag a bool.
12914         (grokdeclarator): Remove checks now done at parse time.
12915
12916 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
12917
12918         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
12919         c_declarator, struct c_type_name, struct c_parm): New.
12920         (build_array_declarator, set_array_declarator_inner,
12921         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
12922         start_function, start_decl, build_c_parm, build_attrs_declarator,
12923         build_function_declarator, make_pointer_declarator, c_cast_expr,
12924         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
12925         (build_id_declarator): New.
12926         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
12927         structures.
12928         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
12929         ARG_INFO_OTHERS): Remove.
12930         (build_id_declarator): New.
12931         (build_array_declarator, set_array_declarator_inner, groktypename,
12932         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
12933         grokfield, start_function, store_parm_decls_newstyle,
12934         store_parm_decls_oldstyle, store_parm_decls,
12935         build_c_parm, build_attrs_declarator, build_function_declarator,
12936         make_pointer_declarator, grokdeclarator): Update to new
12937         structures.
12938         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
12939         parmtype.
12940         (declarator, notype_declarator, after_type_declarator,
12941         parm_declarator, parm_declarator_starttypename,
12942         parm_declarator_nostarttypename, array_declarator, typename,
12943         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
12944         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
12945         parmlist_1, parmlist_2, parmlist_or_identifiers,
12946         parmlist_or_identifiers_1): Use these types.
12947         (primary, after_type_declarator, parm_declarator_starttypename,
12948         notype_declarator, component_decl, component_declarator,
12949         component_notype_declarator, typename, absdcl,
12950         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
12951         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
12952
12953 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
12954
12955         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
12956         in_typeof, record_maybe_used_decl, pop_maybe_used,
12957         c_expr_sizeof_expr, c_expr_sizeof_type): New.
12958         * c-decl.c (parser_obstack): New.
12959         (c_init_decl_processing): Initialize parser_obstack.
12960         (c_write_global_declarations_1): Check for used but undefined
12961         static functions.
12962         * c-parse.in (%union): Add otype.
12963         (save_obstack_position): New.
12964         (extdefs): Use it.
12965         (unary_expr): Update in_sizeof and in_alignof.  Use
12966         c_expr_sizeof_expr and c_expr_sizeof_type.
12967         (sizeof): Update in_sizeof.
12968         (alignof): Update in_alignof.
12969         (typeof): Update in_typeof.
12970         (typespec_nonreserved_nonattr): Call pop_maybe_used.
12971         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
12972         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
12973         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
12974         (build_external_ref): Set C_DECL_USED or call
12975         record_maybe_used_decl if appropriate.
12976         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
12977
12978 2004-09-08  Eric Christopher  <echristo@redhat.com>
12979
12980         * builtins.c: Fix prototype for fold_builtin_atan.
12981
12982 2004-09-08  Eric Christopher  <echristo@redhat.com>
12983
12984         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
12985         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
12986         fold_builtin_atan): New functions. Migrate function bodies...
12987         (fold_builtin_1): ... from here.
12988
12989 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
12990
12991         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
12992         save_size.
12993
12994 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
12995
12996         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
12997         * config/rs6000/power5.md (power5-lmul): Same.
12998
12999 2004-09-08  Richard Henderson  <rth@redhat.com>
13000
13001         PR rtl-opt/17186
13002         * function.c (expand_function_end): Have fall-off-the-end
13003         return path jump around return register setup.
13004
13005 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13006
13007         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
13008         (output_return): Do not test for the presence of the 'unimp' insn.
13009         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
13010         as predicates instead of custom ones.  Return raw strings when
13011         possible.
13012         (output_sibcall): Likewise.  Concatenate strings.
13013         (output_ubranch): Remove kludge for TurboSPARC.
13014         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
13015         (output_v9branch): Likewise.
13016         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
13017         <#>: Set sparc_indent_opcode if the delay slot is filled.
13018         <(>: Likewise.
13019         <)>: New operand to emit the displacement from the saved PC on return.
13020         <@>: Remove.
13021         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
13022         (ASM_OUTPUT_OPCODE): New macro.
13023         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
13024         * config/sparc/sparc.md (normal_branch, inverted_branch,
13025         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13026         inverted_fpe_branch): Adjust call to output_cbranch.
13027         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
13028         call to output_v9branch.
13029         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
13030         (output_v9branch): Likewise.
13031
13032 2004-09-08  Devang Patel  <dpatel@apple.com>
13033
13034         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
13035         -segs_read_only_addr and -segs_read_write_addr.
13036         (WORD_SWITCH_TAKES_ARG): Same.
13037         (LINK_SPEC): Same.
13038         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
13039         -segs_read_write_addr.
13040
13041 2004-09-08  Richard Henderson  <rth@redhat.com>
13042
13043         * function.c (reference_callee_copied): New.
13044         (assign_parm_setup_reg): Use it.
13045         * calls.c (initialize_argument_information): Likewise.
13046         (emit_library_call_value_1): Likewise.
13047         * function.h (reference_callee_copied): Declare.
13048
13049         * target.h (struct gcc_target): Add callee_copies.
13050         * target-def.h (TARGET_CALLEE_COPIES): New.
13051         (TARGET_PASS_BY_REFERENCE): Update default.
13052         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13053         * targhooks.c (hook_callee_copies_named): New.
13054         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
13055         hook_pass_by_reference_false.
13056         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
13057         * targhooks.h: Update decls.
13058         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
13059         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13060         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
13061         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
13062         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13063         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
13064         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13065         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
13066         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13067         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
13068         (mips_callee_copies): New.
13069         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13070         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
13071         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13072         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
13073         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13074         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
13075         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13076         * config/sh/sh.c (sh_callee_copies): New.
13077         (TARGET_CALLEE_COPIES): New.
13078         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13079         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
13080         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13081         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
13082         for FUNCTION_ARG_CALLEE_COPIES.
13083         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
13084
13085 2004-09-08  Devang Patel  <dpatel@apple.com>
13086
13087         * tree-if-conv.c (find_phi_replacement_condition): Return true
13088         edge block.
13089         (replace_phi_with_cond_modify_expr): Select conditional expr args
13090         based on true edge basic block.
13091
13092 2004-09-08  Jan Hubicka  <jh@suse.cz>
13093
13094         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
13095         variables being alias set.
13096
13097 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
13098
13099         * final.c (shorten_branches, final, get_insn_template,
13100         output_alternate_entry_point, final_scan_insn, alter_subreg,
13101         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
13102         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
13103         * fix-header.c (lookup_std_proto): Likewise.
13104         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
13105         verify_local_live_at_start, update_life_info, mark_reg,
13106         calculate_global_regs_live, allocate_reg_life_data,
13107         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
13108         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
13109         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
13110         * fold-const.c (force_fit_type, div_and_round_double,
13111         may_negate_without_overflow_p, int_const_binop, const_binop,
13112         size_binop, size_diffop, fold_convert_const, fold_convert,
13113         invert_tree_comparison, swap_tree_comparison,
13114         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
13115         range_binop, make_range, fold_cond_expr_with_comparison,
13116         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
13117         fold_abs_const, fold_not_const, fold_relational_const, round_up,
13118         round_down): Likewise.
13119         * function.c (find_function_data, assign_stack_temp_for_type,
13120         instantiate_virtual_regs_lossage, aggregate_value_p,
13121         assign_parm_find_entry_rtl, assign_parm_setup_block,
13122         expand_function_start, expand_function_end, keep_stack_depressed,
13123         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
13124
13125 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
13126
13127         * Makefile.in (tree-loop-linear.o): Added.
13128         (OBJS-common): Add tree-loop-linear.o
13129         * common.opt: New flag, ftree-loop-linear.
13130         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
13131         * tree-flow.h: Add prototype for linear_transform_loops.
13132         * tree-optimize.c: Add linear transform after vectorization.
13133         * tree-pass.h: Add struct pass_linear_transform.
13134         * tree-ssa-loop.c: Add pass_linear_transform.
13135         * tree-loop-linear.c: New file.
13136         * lambda-code.c: gcc_assertify.
13137         (gcc_loop_to_lambda_loop): Handle all exit tests.
13138         Handle case where we have (invariant >= induction var).
13139         (find_induction_var_from_exit_cond): Ditto.
13140
13141 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
13142
13143         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
13144         memory tag is call clobbered, so are its aliases.
13145         (group_aliases): When two memory tags being grouped, if one is
13146         call clobbered, so are the other and its aliases.
13147         (add_may_alias): Remove call-clobbering stuff.
13148         (replace_may_alias): Likewise.
13149         (merge_pointed_to_info): Merge pt_global_mem
13150
13151 2004-09-08  Jan Hubicka  <jh@suse.cz>
13152
13153         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
13154         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
13155         (cgraph_expand_function): Remove stale cgraph edges of currently
13156         compiled function; fix non-unit-at-a-time code copying function
13157         node for later reuse.
13158
13159 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
13160
13161         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
13162         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
13163         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
13164         (vec_gc_free, vec_heap_free): New.
13165         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
13166         (DEF_VEC_P): Add allocator argument. Adjust.
13167         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
13168         (DEF_VEC_O): Add allocator argument. Adjust.
13169         (VEC(free)): New.
13170
13171         * tree.h (tree): Define a GC'd vector.
13172         * lamba-code.c (lambda_loop): Likewise.
13173         * value-prof.h (histogram_value): Likewise.
13174
13175 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
13176
13177         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
13178         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
13179         gen_lowpart_common, gen_highpart, gen_highpart_mode,
13180         subreg_highpart_offset, operand_subword, operand_subword_force,
13181         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
13182         set_mem_alias_set, change_address_1, verify_rtx_sharing,
13183         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
13184         try_split, add_insn_after, add_insn_before, remove_insn,
13185         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
13186         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
13187         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
13188         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
13189         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
13190         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
13191         record_path_before_1, check_path_after_1, check_path_after): Likewise.
13192         * except.c (gen_eh_region, resolve_one_fixup_region,
13193         remove_unreachable_regions, convert_from_eh_region_ranges_1,
13194         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
13195         connect_post_landing_pads, sjlj_emit_function_exit,
13196         remove_exception_handler_label, remove_eh_handler,
13197         reachable_next_level, collect_one_action_chain,
13198         output_function_exception_table): Likewise.
13199         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
13200         optimize_save_area_alloca, allocate_dynamic_stack_space,
13201         probe_stack_range, hard_function_value): Likewise.
13202         * expmed.c (mode_for_extraction, store_bit_field,
13203         store_fixed_bit_field, extract_bit_field, expand_shift,
13204         expand_mult_const, expand_mult, choose_multiplier,
13205         expand_mult_highpart, expand_divmod, emit_store_flag,
13206         do_cmp_and_jump): Likewise.
13207         * expr.c (convert_move, convert_modes, move_by_pieces,
13208         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
13209         move_block_from_reg, gen_group_rtx, emit_group_load,
13210         emit_group_move, emit_group_store, use_reg, use_regs,
13211         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
13212         emit_move_insn, emit_move_insn_1, emit_push_insn,
13213         expand_assignment, store_expr, count_type_elements,
13214         store_constructor, store_field, safe_from_p, expand_var,
13215         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
13216
13217 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
13218
13219         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
13220         gcc_assert and gcc_unreachable.
13221         * ddg.c (create_ddg_dependence, add_deps_for_def,
13222         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
13223         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
13224         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
13225         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
13226         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
13227         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
13228         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
13229         dataflow_set_copy, hybrid_search, diagnostic.c,
13230         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
13231         * dojump.c (do_jump): Likewise.
13232         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
13233         compute_dom_fast_query, calculate_dominance_info,
13234         free_dominance_info, get_immediate_dominator,
13235         set_immediate_dominator, get_dominated_by,
13236         redirect_immediate_dominators, nearest_common_dominator,
13237         dominated_by_p, verify_dominators, recount_dominator,
13238         iterate_fix_dominators, add_to_dominance_info,
13239         delete_from_dominance_info): Likewise.
13240         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
13241         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
13242         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
13243         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
13244         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
13245         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
13246         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
13247         output_call_frame_info, output_loc_operands, build_cfa_loc,
13248         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
13249         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
13250         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
13251         splice_child_die, attr_checksum, same_dw_val_p,
13252         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
13253         unmark_dies, value_format, output_loc_list, output_die,
13254         output_pubnames, output_aranges, base_type_die, is_base_type,
13255         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
13256         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
13257         field_byte_offset, add_data_member_location_attribute,
13258         add_const_value_attribute, rtl_for_decl_location,
13259         add_location_or_const_value_attribute, add_byte_size_attribute,
13260         add_bit_offset_attribute, add_bit_size_attribute,
13261         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
13262         decl_start_label, gen_formal_parameter_die,
13263         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
13264         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
13265         force_decl_die, force_type_die, gen_decl_die,
13266         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
13267         dwarf2out_finish): Likewise.
13268
13269 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
13270
13271         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
13272         * builtins.c: Include tree-mudflap.h.
13273
13274 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
13275
13276         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
13277         force operand 0.0 into register in XFmode. Also do not force
13278         operand 0.0 into register if !TARGET_CMOVE.
13279         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
13280         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
13281         implement ftst x87 instruction.
13282         (*fp_jcc_7): New insn pattern. Change corresponding split
13283         pattern to handle "general_operand" instead of
13284         "nonimmediate_operand".
13285
13286 2004-09-08  Ben Elliston  <bje@au.ibm.com>
13287
13288         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
13289
13290 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
13291
13292         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
13293         generated from standard va_arg expansion.
13294         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
13295         marked nodes.
13296         (mf_varname_tree, mf_file_function_line_tree): Add some support
13297         for column numbers if compiled with USE_MAPPED_LOCATION.
13298
13299 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
13300
13301         * c-decl.c (groktypename_in_parm_context): Remove function.
13302         * c-tree.h (groktypename_in_parm_context): Remove prototype.
13303
13304 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
13305
13306         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
13307         * c-parse.in: Include c-common.h instead of objc-act.h.
13308         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
13309         myparms, myparm): Remove %type declarations.
13310         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
13311         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
13312         declarations.
13313         (objc_inherit_code, objc_public_flag): Remove.
13314         (typespec_nonreserved_nonattr): Call
13315         objc_get_protocol_qualified_type() instead of get_static_reference()
13316         and get_protocol_reference().
13317         (stmt_nocomp): Call grokparm() on @catch parameter.
13318         (objcdef): Move semantic action to objc_finish_implementation().
13319         (classdef): Move semantic action to objc_start_class_interface(),
13320         objc_continue_interface(), objc_finish_interface(),
13321         objc_start_class_implementation(), objc_continue_implementation(),
13322         objc_start_category_interface() and
13323         objc_start_category_implementation().
13324         (protocoldef): Move semantic actions to objc_start_protocol() and
13325         objc_finish_interface().
13326         (ivar_decl_list): Remove nonterminal.
13327         (visibility_spec): Move semantic actions to objc_set_visibility().
13328         (ivar_decls): Remove assignment to $$.
13329         (ivar_decl): Rephrase in terms of component_decl; call
13330         objc_add_instance_variable().
13331         (ivars, ivar_declarator): Remove nonterminals.
13332         (opt_semi): New nonterminal.
13333         (methodtype): Remove semantic actions.
13334         (methoddef): Move semantic actions to objc_set_method_type(),
13335         objc_start_method_definition() and objc_finish_method_definition().
13336         (methodproto): Move semantic actions to objc_set_method_type() and
13337         objc_add_method_declaration().
13338         (methoddecl): Use objc_typename instead of typename; move semantic
13339         actions to objc_build_method_signature().
13340         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
13341         (optparmlist): Express in terms of optparms and optellipsis.
13342         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
13343         nonterminals.
13344         (keyworddecl): Use objc_typename instead of typename.
13345         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
13346         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
13347
13348 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
13349
13350         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
13351         (MD_FALLBACK_FRAME_STATE_FOR): Update.
13352         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
13353         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
13354         (MD_FROB_UPDATE_CONTEXT): Remove default.
13355         (uw_update_context_1): Instead #ifdef invocation.
13356         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
13357         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
13358         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
13359         (MD_UNWIND_SUPPORT): Undefine this instead.
13360         * config/i386/gnu.h: Likewise.
13361         * config/alpha/linux-unwind.h: New file, macro converted to
13362         function, extracted from..
13363         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
13364         (MD_UNWIND_SUPPORT): Define.
13365         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
13366         * config/i386/linux-unwind.h, config/i386/linux.h,
13367         config/i386/linux64.h: Likewise.
13368         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
13369         MD_HANDLE_UNWABI too.
13370         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
13371         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
13372         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
13373         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
13374         * config/sparc/linux-unwind.h, config/sparc/linux.h,
13375         config/sparc/linux64.h: Likewise.
13376         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
13377         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
13378         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
13379         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
13380         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
13381
13382 2004-09-07  Jan Hubicka  <jh@suse.cz>
13383
13384         * cse.c (fold_rtx):  Avoid building of
13385         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
13386
13387         * tree-ssa-pre.c (grand_bitmap_obstack): New.
13388         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
13389         (init_pre): Initialize obstack.
13390         (fini_pre): Free obstack.
13391
13392 2004-09-07  David Daney  <ddaney@avtrex.com>
13393
13394         * config.gcc: Added support for --with-divide=[breaks|traps] for
13395         mips targets.
13396         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
13397         (TARGET_DIVIDE_TRAPS): New macro.
13398         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
13399         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
13400         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
13401         GENERATE_DIVIDE_TRAPS.
13402         (mips_output_division): Emit conditional trap if
13403         GENERATE_DIVIDE_TRAPS is set.
13404         * doc/install.texi: Document --with-divide.
13405         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
13406
13407 2004-09-07  Caroline Tice  <ctice@apple.com>
13408
13409         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
13410         EDGE_CROSSING, to flags test case.
13411
13412 2004-09-07  Jan Hubicka  <jh@suse.cz>
13413
13414         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
13415         class too.
13416
13417 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13418
13419         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
13420         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
13421         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
13422         or gcc_unreachable.
13423         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
13424         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
13425         alloc_aux_for_edges, free_aux_for_edges): Likewise.
13426         * cfgcleanup.c (try_forward_edges,
13427         merge_blocks_move_predecessor_nojumps,
13428         merge_blocks_move_successor_nojumps): Likewise.
13429         * cfgexpand.c (expand_gimple_cond_expr,
13430         expand_gimple_tailcall): Likewise.
13431         * cfghooks.c (duplicate_block): Likewise.
13432         * cfglayout.c (record_effective_endpoints,
13433         insn_locators_initialize, change_scope, fixup_reorder_chain,
13434         verify_insn_chain, fixup_fallthru_exit_predecessor,
13435         duplicate_insn_chain, cfg_layout_finalize): Likewise.
13436         * cfgloopanal.c (check_irred): Likewise.
13437         * cfgloop.c (superloop_at_depth, flow_loops_free,
13438         flow_loop_entry_edges_find, flow_loops_find,
13439         flow_loop_outside_edge_p, get_loop_body,
13440         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
13441         get_loop_exit_edges, num_loop_branches, cancel_loop,
13442         verify_loop_structure): Likewise.
13443         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
13444         duplicate_loop_to_header_edge, create_preheader,
13445         create_loop_notes): Likewise.
13446         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
13447         edirect_branch_edge, force_nonfallthru_and_redirect,
13448         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
13449         commit_edge_insertions, commit_edge_insertions_watch_calls,
13450         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
13451         cfg_layout_redirect_edge_and_branch_force,
13452         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
13453         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
13454         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
13455         cgraph_varpool_node): Likewise.
13456         * cgraphunit.c (cgraph_finalize_function,
13457         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
13458         cgraph_expand_function, cgraph_remove_unreachable_nodes,
13459         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
13460         cgraph_mark_inline, cgraph_expand_all_functions,
13461         cgraph_build_static_cdtor): Likewise.
13462         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
13463         simplify_logical, distribute_notes, insn_cuid): Likewise.
13464         * conflict.c (conflict_graph_add, print_conflict): Likewise.
13465         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
13466         coverage_checksum_string): Likewise.
13467         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
13468         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
13469         cse_cc_succs, cse_condition_code_reg): Likewise.
13470         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
13471         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
13472         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
13473         cselib_record_set): Likewise.
13474
13475 2004-09-07  Jan Hubicka  <jh@suse.cz>
13476
13477         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
13478
13479 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13480
13481         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
13482         fold_convert.
13483         (fold_builtin_strpbrk): Likewise.
13484         * expr.c (array_ref_low_bound): Likewise.
13485         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
13486         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
13487         * tree-sra.c (generate_element_zero): Likewise.
13488         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
13489         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
13490         add_old_iv_candidates, add_iv_candidates): Likewise.
13491         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13492
13493 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13494
13495         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
13496         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
13497         c_expand_expr, boolean_increment, nonnull_check_p,
13498         check_function_arguments_recurse, fold_offsetof_1): Likewise.
13499         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
13500         builtin_define_type_max): Likewise.
13501         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
13502         implicit_decl_warning, builtin_function, build_compound_literal,
13503         complete_array_type, grokdeclarator, get_parm_info,
13504         start_function, store_parm_decls_oldstyle,
13505         c_write_global_declarations): Likewise.
13506         * c-format.c (get_constant, decode_format_attr,
13507         maybe_read_dollar_number, get_flag_spec, check_format_arg,
13508         check_format_types, format_type_warning,
13509         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
13510         init_dynamic_diag_info, handle_format_attribute): Likewise.
13511         * c-gimplify.c (push_context, pop_context, finish_bc_block):
13512         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
13513         * c-objc-common.c (c_tree_printer): Likewise.
13514         * c-pch.c (pch_init): Likewise.
13515         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
13516         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
13517         * c-typeck.c (c_incomplete_type_error, composite_type,
13518         common_pointer_type, common_type, same_translation_unit_p,
13519         tagged_types_tu_compatible_p, finish_init, pop_init_level,
13520         set_designator, set_nonincremental_init_from_string,
13521         process_init_element, c_finish_if_stmt): Likewise.
13522         * caller-save.c (init_caller_save, save_call_clobbered_regs,
13523         insert_restore, insert_save, insert_one_insn): Likewise.
13524         * calls.c (emit_call_1, compute_argument_block_size,
13525         precompute_arguments, expand_call, emit_library_call_value_1,
13526         store_one_arg): Likewise.
13527
13528 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13529
13530         * configure.ac (enable-checking): Add release option. Reorganize
13531         to avoid repetition.
13532         * configure: Rebuilt.
13533         * doc/install.texi (enable-checking): Amend documentation.
13534
13535 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13536
13537         PR bootstrap/17313
13538         * Makefile.in (specs.ready): Depend on cc1$(exeext).
13539
13540 2004-09-06  James E Wilson  <wilson@specifixinc.com>
13541
13542         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
13543         movdf_hardfloat_32bit): Split fG into two alternatives.
13544         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
13545
13546         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
13547
13548 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
13549
13550         * final.c (output_in_slot): Delete.
13551         (final_scan_insn): Revert 2004-09-03 change.
13552         (output_asm_insn): Likewise.
13553         * config/sparc/sparc.c (output_return): Likewise.
13554         (output_sibcall): Likewise.
13555
13556 2004-09-06  Jan Hubicka  <jh@suse.cz>
13557
13558         * loop.c (loop_dump_aux): Do not print RTL when not available.
13559         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
13560         frontend specific type nodes.
13561         (produce_memory_decl_rtl): Break out from ...
13562         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
13563         (get_computation_at): Avoid random tree sharing.
13564         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
13565
13566 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
13567
13568         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
13569         unnecessary commands.
13570
13571 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
13572
13573         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
13574         (bitmap.o): Likewise.
13575
13576 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
13577
13578         Unify the management of RTL and tree-level dump files.
13579
13580         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
13581         Don't print function name to the dump file, the pass manager
13582         would do this for us. Add code from the top of
13583         rest_of_compilation, up to the initial RTL dump.
13584         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
13585         close the DFI_sibling dump file.
13586         (rest_of_compilation): Don't do that here.  Remove code up to the
13587         initial RTL dump.
13588         (init_optimization_passes): Remove.
13589         (pass_rest_of_compilation): Change pass name to NULL.
13590         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
13591         Do not call init_optimization_passes.
13592         * toplev.h (init_optimization_passes): Remove.
13593
13594         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
13595         finish_graph_dump_file): Remove SUFFIX parameter.
13596         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
13597         finish_graph_dump_file): Likewise.
13598
13599         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
13600         * cfgexpand.c (pass_expand): Adjust.
13601         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
13602         * passes.c (pass_rest_of_compilation): Adjust.
13603         * predict.c (pass_profile): Adjust.
13604         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
13605         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
13606         pass_split_crit_edges, pass_warn_function_return): Adjust.
13607         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
13608         * tree-dfa.c (pass_referenced_vars): Adjust.
13609         * tree-eh.c (pass_lower_eh): Adjust.
13610         * tree-if-conv.c (pass_build_ssa): Adjust.
13611         * tree-into-ssa.c (pass_build_ssa): Adjust.
13612         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
13613         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
13614         * tree-nrv.c (pass_nrv): Adjust.
13615         * tree-optimize.c (pass_gimple, pass_all_optimizations,
13616         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
13617         pass_init_datastructures): Adjust.
13618         * tree-outof-ssa.c (pass_del_ssa): Adjust.
13619         * tree-profile.c (pass_tree_profile): Adjust.
13620         * tree-sra.c (pass_sra): Adjust.
13621         * tree-ssa-alias.c (pass_may_alias): Adjust.
13622         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
13623         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
13624         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
13625         * tree-ssa-dom.c (pass_dominator): Adjust.
13626         * tree-ssa-dse.c (pass_dse): Adjust.
13627         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
13628         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
13629         * tree-ssa-loop-ch.c (pass_ch): Adjust.
13630         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
13631         pass_loop_done, pass_complete_unroll, pass_iv_canon,
13632         pass_iv_optimize, pass_vectorize): Adjust.
13633         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
13634         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
13635         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
13636         pass_late_warn_uninnitialized): Adjust.
13637         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
13638
13639         * Makefile.in (tree-dump.o): Add new dependencies.
13640         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
13641         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
13642         Likewise.
13643         * toplev.c (dump_file_name): New.
13644         * tree-dump.c (dump_enable_all): Add LETTER parameter.
13645         (struct dump_file_info): Add NUM and LETTER fields.
13646         (dump_files): Adjust and add RTL dump files.
13647         (dump_register): Add NUM and LETTER fields.
13648         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
13649         (dump_begin): Use get_dump_file_name.
13650         (dump_switch_p_1): Adjust call to dump_enable_all.
13651         * tree-dump.h (dump_register): Adjust prototype.
13652         * tree-optimize.c (register_one_dump_file): Take dump file index.
13653         Support flags for RTL dumps.
13654         (register_dump_files): Fill in NUM field of struct dump_file_info.
13655         Track properties both when the gate is executed and when it is not.
13656         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
13657         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
13658         dumps of RTL.
13659         * tree-pass.h (dump_file_name): New.
13660         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
13661         New.
13662
13663         * Makefile.in (passes.o): Add new dependencies.
13664         * passes.c (struct dump_file_info, enum dump_file_index,
13665         dump_file_tbl, init_optimization_passes): Remove.
13666         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
13667         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
13668         dump_enabled_p.
13669         (finish_optimization_passes): Update finish_graph_dump_file loop.
13670         (enable_rtl_dump_file): Remove.
13671         * tree-dump.c (dump_files): Adjust and add RTL dump files.
13672         (enable_rtl_dump_file): Add here.
13673         * tree.h (enum tree_dump_index): Add RTL dump file indices.
13674         * doc/invoke.texi (Debugging options): Document new RTL debugging
13675         options.  Update.
13676
13677 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
13678
13679         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
13680         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
13681         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
13682         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13683         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
13684         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
13685         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
13686         vec.h: Fix comment formatting.
13687
13688 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
13689
13690         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
13691         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
13692         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
13693         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
13694         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
13695         tree-ssa-loop-niter.c, tree-ssa-operands.c,
13696         tree-ssa-operands.h, tree-ssa-propagate.c,
13697         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
13698         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
13699
13700 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
13701
13702         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
13703         vectorizer is enabled.
13704
13705 2004-09-05  Andreas Jaeger  <aj@suse.de>
13706
13707         * tree-if-conv.c: Spell check comments and clean up whitespace.
13708
13709 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13710
13711         * tree-ssa-loop-ivopts.c: New file.
13712         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
13713         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
13714         target_pres_cost, target_spill_cost): Declare.
13715         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
13716         spill_cost): Renamed to ...
13717         (target_avail_regs, target_res_regs, target_small_cost,
13718         target_pres_cost, target_spill_cost): ... and exported.
13719         (init_set_costs, global_cost_for_size): Work with renamed variables.
13720         * common.opt (flag_ivopts): New flag.
13721         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
13722         REF_ORIGINAL.
13723         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
13724         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
13725         generating SSA form.
13726         (force_gimple_operand): New function.
13727         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
13728         * tree-cfg.c (stmt_bsi): New function.
13729         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
13730         PARAM_IV_MAX_CONSIDERED_USES): New.
13731         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
13732         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
13733         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
13734         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
13735         * tree-nested.c (build_addr): Export.
13736         * tree-optimize.c (init_tree_optimization_passes): Add
13737         pass_iv_optimize.
13738         * tree-pass.h (pass_iv_optimize): Declare.
13739         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
13740         IMAGPART_EXPR.
13741         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
13742         as a phi node argument.
13743         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
13744         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
13745         functions.
13746         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
13747         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
13748         pass_iv_optimize): New pass.
13749         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
13750         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
13751         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
13752         * tree.h (REF_ORIGINAL): New macro.
13753         (build_int_cst_type, unsigned_type_for, zero_p,
13754         cst_and_fits_in_hwi, build_addr): Declare.
13755         * doc/invoke.texi (-fivopts): Document.
13756         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
13757         PARAM_IV_MAX_CONSIDERED_USES): Document.
13758         * doc/passes.texi: Document induction variable optimizations pass.
13759
13760 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13761
13762         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
13763         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
13764         * c-common.c (c_common_attribute_table): Accept parameters to
13765         sentinel attribute.
13766         (check_function_sentinel, handle_sentinel_attribute): Likewise.
13767         * doc/extend.texi: Update accordingly.
13768
13769 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13770
13771         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
13772         New.
13773         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
13774         attribute.
13775         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
13776         New functions.
13777         (c_common_attribute_table): Add `sentinel' attribute.
13778         (check_function_arguments): Handle `sentinel' attribute.
13779         * doc/extend.texi: Document `sentinel' attribute.
13780
13781 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
13782
13783         * configure: Regenerated.
13784
13785 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13786
13787         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
13788
13789         * tree.c (save_expr): No longer TREE_READONLY.
13790
13791 2004-09-04  Jan Hubicka  <jh@suse.cz>
13792
13793         * passes.c (rest_of_clean_state):  Fix merge conflict made during
13794         commiting the patch.
13795
13796 2004-09-04  Jan Hubicka  <jh@suse.cz>
13797
13798         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
13799
13800 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
13801
13802         * doc/md.texi (shift patterns): New anchor.  Add reference to
13803         TARGET_SHIFT_TRUNCATION_MASK.
13804         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
13805         * target.h (shift_truncation_mask): New target hook.
13806         * targhook.h (default_shift_truncation_mask): Declare.
13807         * targhook.c (default_shift_truncation_mask): Define.
13808         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
13809         (TARGET_INITIALIZER): Include it.
13810         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
13811         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
13812         reject all out-of-range values.  Fix sign-extension code for modes
13813         whose width is smaller than HOST_BITS_PER_WIDE_INT.
13814         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
13815         (expand_superword_shift, expand_subword_shift): Likewise.
13816         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
13817         (expand_binop): Use them to implement double-word shifts.
13818         * config/arm/arm.c (arm_shift_truncation_mask): New function.
13819         (TARGET_SHIFT_TRUNCATION_MASK): Define.
13820
13821 2004-09-04  Jan Hubicka  <jh@suse.cz>
13822
13823         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
13824         (mix): New macro copied from hashtab.c
13825         (iterative_hash_hashval_t, iterative_hash_pointer,
13826         iterative_hash_host_wide_int): New functions based on hashtab.c
13827         implementation.
13828
13829 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
13830
13831         * config/mips/mips.md (mask): New mode attribute.
13832         (zero_extendsidi2): Add memory alternative.
13833         (*zero_extendsidi2_mem): Delete.
13834         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
13835         memory_operand in the TARGET_MIPS16 check.
13836         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
13837         Redefine using :GPR and :SHORT.
13838         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
13839
13840 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
13841
13842         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
13843         using rint_optab.
13844         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
13845         expand_builtin_mathfn.
13846         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
13847         btrunc?f patterns for btrunc_optab. Implement rint_optab using
13848         rint?f patterns.
13849         * optabs.c (init_optabs): Initialize rint_optab.
13850         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
13851         Add new OTI_rint.
13852         (btrunc_optab): Rename macro from trunc_optab.
13853         (rint_optab): Define corresponding macro.
13854
13855         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
13856         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
13857
13858         * config/i386/i386-protos.h (emit_i387_cw_initialization):
13859         Change prototype. Add new int parameter.
13860         * config/i386/i386.c (emit_i387_cw_initialization):
13861         Handle new rounding modes.
13862
13863         * config/i386/i386.h (enum fp_cw_mode): Delete.
13864         (MODE_NEEDED): Handle new rounding modes.
13865         (EMIT_MODE_SET): Change condition to handle new rounding modes.
13866
13867         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
13868         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
13869         represent different rounding modes of frndint insn.
13870         (type): Add frndint type.
13871         (i387, length, memory): Handle this type.
13872         (i387_cw): New attribute definition.
13873         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
13874         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
13875         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
13876         Add "i387_cw" attribute defined to "trunc".
13877         (x86_fnstcw_1): Remove comment.
13878         (*frndintxf2): Rename insn definition to frndintxf2. Move
13879         insn definition near rint?f2 expanders.
13880         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
13881         rintf and rintl built-ins as inline x87 intrinsics.
13882         (frndintxf2_floor): New pattern to implement floor rounding
13883         mode with frndint x87 instruction.
13884         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
13885         floorf and floorl built-ins as inline x87 intrinsics.
13886         (frndintxf2_ceil): New pattern to implement ceil rounding
13887         mode with frndint x87 instruction.
13888         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
13889         ceilf and ceill built-ins as inline x87 intrinsics.
13890         (frndintxf2_trunc): New pattern to implement trunc rounding
13891         mode with frndint x87 instruction.
13892         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
13893         truncf and truncl built-ins as inline x87 intrinsics.
13894         (frndintxf2_mask_pm): New pattern to implement rounding
13895         mode with exceptions with frndint x87 instruction.
13896         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
13897         implement nearbyint, nearbyintf and nearbyintl built-ins as
13898         inline x87 intrinsics.
13899
13900 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
13901
13902         * config/mips/mips.md (SHORT): New mode macro.
13903         (size): New mode attribute.
13904         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
13905         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
13906         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
13907         !ISA_HAS_SEB_SEH.
13908         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
13909         *extend[qh]isi2_hw patterns and extending them to di.
13910         (extendqihi2): Implement as define_insn_and_split that produces
13911         extendqisi2 after reload.
13912
13913 2004-09-03  Devang Patel  <dpatel@apple.com>
13914
13915         * Makefile.in (OBJS-common): Add tree-if-conv.o
13916         (tree-if-conv.o): New rule.
13917         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
13918         (get_loop_body_in_bfs_order): New.
13919         * cfgloop.h (get_loop_body_in_bfs_order): New.
13920         * tree-flow.h (enum move_pos): Move here from ..
13921         * tree-ssa-loop-im.c (enum move_pos): here.
13922         (movement_possibility): Make externally visible.
13923         * tree-optimize.c (init_tree_optimization_passes): New entry for
13924         if conversion pass.
13925         * tree-pass.h (pass_if_conversion): New.
13926         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
13927         * tree-if-conv.c: New file.
13928         * doc/passes.texi: Document tree if-conversion pass.
13929         * doc/tree-ssa.texi: Same.
13930
13931 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
13932
13933         PR target/14925:
13934         Makefile.in (LIB2ADDEHSTATIC): New.
13935         (LIB2ADDEHSHARED): New.
13936         (LIBUNWIND): New.
13937         (LIBUNWINDDEP): New.
13938         (SHLIBUNWIND_LINK): New.
13939         (SHLIBUNWIND_INSTALL): New.
13940         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
13941         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
13942         (clean): Remove libunwind*
13943         (stage1-start): Remove and copy stage1/libunwind*.
13944         (stage2-start): Remove and copy stage2/libunwind*.
13945         (stage3-start): Remove and copy stage3/libunwind*.
13946         (stage4-start): Remove and copy stage4/libunwind*.
13947         (stageprofile-start): Remove and copy stageprofile/libunwind*.
13948         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
13949
13950         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
13951         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
13952         tmake_file if --with-system-libunwind isn't used.
13953
13954         * config/ia64/t-glibc-libunwind: New file.
13955         * config/t-libunwind-elf: Likewise.
13956         * unwind-compat.c: Likewise.
13957         * unwind-compat.h: Likewise.
13958         * unwind-dw2-fde-compat.c: Likewise.
13959
13960         * config/ia64/t-glibc (LIB2ADDEH): Updated.
13961         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
13962
13963         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
13964         aliases if needed.
13965         * unwind-dw2-fde-glibc.c: Likewise.
13966         * unwind-dw2.c: Likewise.
13967
13968         * config/t-libunwind (LIB2ADDEH): Updated.
13969         (LIB2ADDEHSTATIC): New.
13970         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
13971         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
13972
13973         * configure.ac: Change --enable-libunwind-exceptions to
13974         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
13975         * configure: Regenerated.
13976         * config.in: Updated.
13977
13978         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
13979         above and mention --with-system-libunwind.
13980         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
13981         removed in gcc 3.4.3 and later.
13982
13983         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
13984         USE_LIBUNWIND_EXCEPTIONS is defined.
13985
13986         * mklibgcc.in: Support libunwind.
13987
13988 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
13989
13990         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
13991         m_NOCONA.
13992
13993 2004-09-03  Richard Henderson  <rth@redhat.com>
13994
13995         PR middle-end/9997
13996         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
13997         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
13998         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
13999         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
14000         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
14001         resize_stack_vars_conflict, add_stack_var_conflict,
14002         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
14003         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
14004         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
14005         expand_one_static_var, expand_one_hard_reg_var,
14006         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
14007         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
14008         (expand_used_vars): Rewrite.
14009         * Makefile.in (cfgexpand.o): Update dependencies.
14010
14011 2004-09-04  Jan Hubicka  <jh@suse.cz>
14012
14013         * cfg.c (free_edge): Use ggc_free.
14014         (expunge_block): Use ggc_free.
14015         * passes.c (rest_of_clean_state): Free after compilation.
14016         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
14017         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
14018
14019 2004-09-03  James E Wilson  <wilson@specifixinc.com>
14020
14021         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
14022         DECL_EXTERNAL check.
14023
14024 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14025
14026         * final.c (output_in_slot): New global variable.
14027         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
14028         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
14029         'output_in_slot' before invoking output_asm_insn.
14030         (output_asm_insn): Add a space after the tab if 'output_in_slot'
14031         is set.
14032         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
14033         final_scan_insn.
14034         (output_sibcall): Likewise.
14035
14036 2004-09-03  Jan Hubicka  <jh@suse.cz>
14037
14038         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
14039         * tree-ssanames (init_ssanames): Likewise.
14040
14041 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
14042
14043         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
14044         objc_declare_protocols, objc_start_protocol,
14045         objc_start_class_interface, objc_start_category_interface,
14046         objc_continue_interface, objc_finish_interface,
14047         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
14048         objc_start_class_implementation, objc_start_category_implementation,
14049         objc_continue_implementation, objc_finish_implementation,
14050         objc_add_method_declaration, objc_start_method_definition,
14051         objc_finish_method_definition, objc_build_keyword_decl,
14052         objc_build_method_signature, objc_build_encode_expr,
14053         objc_build_protocol_expr, objc_build_selector_expr,
14054         objc_build_message_expr, objc_build_string_object,
14055         objc_get_class_reference, objc_get_protocol_qualified_type,
14056         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
14057
14058 2004-09-03  James E Wilson  <wilson@specifixinc.com>
14059
14060         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
14061
14062         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
14063         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
14064         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
14065         (mips_recip1_<fmt>): Use frdiv1 type.
14066         (mips_recip2_<fmt>): Use frdiv2 type.
14067         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
14068         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
14069         and frsqrt1.
14070         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
14071
14072 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
14073
14074         * reload.c (find_reloads): Swap operand_loc pointers for
14075         find_dummy_reload if we have swapped two operands.
14076
14077 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
14078
14079         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
14080         to get the tablejump-insn before the jump-table label.
14081
14082 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
14083
14084         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
14085         objc_declare_protocols, objc_build_message_expr,
14086         objc_finish_message_expr, objc_build_selector_expr,
14087         objc_build_protocol_expr, objc_build_encode_expr,
14088         objc_build_string_object, objc_get_protocol_qualified_type,
14089         objc_get_class_reference, objc_get_class_ivars,
14090         objc_start_class_interface, objc_start_category_interface,
14091         objc_start_protocol, objc_continue_interface, objc_finish_interface,
14092         objc_start_class_implementation, objc_start_category_implementation,
14093         objc_continue_implementation, objc_finish_implementation,
14094         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
14095         objc_add_method_declaration, objc_start_method_definition,
14096         objc_finish_method_definition, objc_add_instance_variable,
14097         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
14098         objc_finish_try_stmt, objc_begin_catch_clause,
14099         objc_finish_catch_clause, objc_build_finally_clause,
14100         objc_build_synchronized, objc_static_init_needed_p,
14101         objc_generate_static_init_call): New prototypes.
14102
14103 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
14104
14105         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
14106         is only one reg.
14107         (ia64_function_value): Ditto.
14108
14109 2004-09-03  Jan Beulich  <jbeulich@novell.com>
14110
14111         * config.gcc: Resurrect NetWare as a target. Handle special case of
14112         Novell linker to be used (specified through --with-ld=) and threading
14113         model of either Posix (default) or NKS.
14114         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
14115         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
14116         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
14117         * config/i386/netware.c, config/i386/netware.h: New.
14118         * config/i386/nwld.c, config/i386/nwld.h: New.
14119         * config/i386/netware-crt0.c: New.
14120         * config/i386/netware-libgcc.c: New.
14121         * config/i386/netware-libgcc.def: New.
14122         * config/i386/netware-libgcc.exp: New.
14123         * config/i386/t-netware, config/i386/t-nwld: New.
14124         * gthr-nks.h: New.
14125         * doc/install.texi: Document NKS threading model.
14126
14127 2004-09-03  Jan Beulich  <jbeulich@novell.com>
14128
14129         PR c/7054
14130         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
14131         * tree.h (initial_max_fld_align): Declare
14132         * stor-layout.c (initial_max_fld_align): Define and initialize.
14133         (maximum_field_alignment): Initialize to the same value.
14134         * common.opt: Add -fpack-struct= variant of switch.
14135         * opts.c: Handle -fpack-struct= variant of switch.
14136         * c-pragma.c: Change #pragma pack() handling so that it becomes
14137         compatible to other compilers: accept individual 'push' argument,
14138         make final pop restore (command line) default, correct interaction
14139         of push/pop and sole specification of a new alignment (so that the
14140         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
14141         to #pragma pack(push, <n>).
14142         * doc/extend.texi: New node "Structure-Packing Pragmas" under
14143         "Pragmas", describing #pragma pack.
14144         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
14145         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
14146         Document new TARGET_DEFAULT_PACK_STRUCT.
14147
14148 2004-09-03  Devang Patel  <dpatel@apple.com>
14149
14150         * dwarf2out.c (gen_field_die). Equate decl number to die.
14151
14152 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
14153
14154         PR target/15832
14155         * global.c (modify_reg_pav): New function.
14156         (make_accurate_live_analysis): Call the new function.  Move pavin
14157         modification by earlyclobber set into the new function.
14158
14159 2004-09-03  Andreas Schwab  <schwab@suse.de>
14160
14161         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
14162         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
14163         extended.
14164
14165 2004-09-02  Jan Beulich  <jbeulich@novell.com>
14166
14167         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
14168         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
14169         not unwind code specific ones.
14170         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
14171         Remove unwind code specific dependencies.
14172         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
14173         Remove gbl-ctors.h.
14174         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
14175         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
14176         * tsystem.h: Declare memcpy and memset when inhibit_libc.
14177
14178 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
14179
14180         * combine.c (try_combine): Delay modifying of insns which cannot
14181         be easily undone.
14182
14183 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
14184
14185         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
14186         tree-loop-im.
14187         * gcc/tree-ssa-loop.c: Ditto
14188         * gcc/tree-ssa-loop-ivcanon.c: Ditto
14189         * gcc/doc/invoke.texi: Ditto.
14190
14191 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
14192
14193         * c-decl.c (store_parm_decls_newstyle): Make static.
14194         (store_parm_decls_from): New function.
14195         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
14196         (store_parm_decls_from): New prototype.
14197
14198 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
14199
14200         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
14201         HImode with STRICT_ALIGNMENT.
14202
14203 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
14204
14205         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
14206         (TARGET_OS_CPP_BUILTINS): Likewise.
14207         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
14208         TARGET_BPABI_CPP_BUILTINS.
14209
14210 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
14211
14212         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
14213
14214 2004-09-02  Eric Christopher  <echristo@redhat.com>
14215
14216         * builtins.c (expand_builtin_cabs): Delete.
14217         (expand_builtin): If unable to fold the values do a normal
14218         library call for builtin_cab*.
14219         (fold_builtin_cabs): Depend on optimize and optimize_size.
14220         * optabs.c (expand_cmplxdiv_straight): Delete.
14221         (expand_cmplxdiv_wide): Ditto.
14222         (expand_vector_binop): Ditto.
14223         (expand_vector_unop): Ditto.
14224         (expand_complex_abs): Delete.
14225         (expand_binop): Remove calls to above functions.
14226         Remove open coding of complex arithmetic.
14227         (expand_unop): Ditto.
14228         * optabs.h: Remove prototypes.
14229
14230 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
14231
14232         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
14233         * c-tree.h (store_parm_decls_newstyle): New prototype.
14234
14235 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
14236
14237         * config/rs6000/rs6000.c (expand_block_clear): Use vector
14238         instructions if available.
14239         (expand_block_move): Likewise.
14240
14241 2004-09-03  Jan Hubicka  <jh@suse.cz>
14242
14243         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
14244
14245 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
14246
14247         * config/arm/symbian.h (LIB_SPEC): Define to empty.
14248         * config/arm/t-symbian (SHLIB_LC): Likewise.
14249
14250 2004-09-02  Paul Brook  <paul@codesourcery.com>
14251
14252         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
14253
14254 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
14255
14256         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
14257         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
14258         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
14259         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
14260         (mips_issue_rate): Remove unreachable abort.
14261         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
14262         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
14263         (mips_block_move_straight, print_operand_address, mips_file_start)
14264         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
14265         (mips_output_conditional_branch, mips_expand_builtin_direct)
14266         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
14267         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
14268         with gcc_assert.
14269
14270 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
14271
14272         * config/mips/mips.md (*lea_high64): Change split condition to
14273         flow2_completed.  Add a peephole2 to generate a more parallel version.
14274
14275 2004-09-02  Jan Hubicka  <jh@suse.cz>
14276
14277         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
14278         GGC.
14279
14280         * ggc-page.c: include tree-flow.h.
14281         (extra_order_size_table): Add stmt_ann_d.
14282         (STAT_LABEL): Rename from ....
14283         (LABEL): ... this one.
14284         * Makefile.in (ggc-page.o): Add dependency.
14285
14286         * ggc-common.c (ggc_force_collect): New global variable.
14287         (loc_description): Add fields "freed", "collected"
14288         (ptr_hash): New static hash
14289         (ptr_hash_entry): New structure.
14290         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
14291         (ggc_record_overhead): Take ptr argument, record it
14292         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
14293         (cmp_statistics): Imrove sorting.
14294         (dump_ggc_loc_statistics): Output newly collected statistics
14295         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
14296         (ggc_free): Call ggc_free_overhead.
14297         (ggc_collect): Force collection when asked to be forced.
14298         (ggc_collect): Call ggc_prune_overhead_list.
14299         * ggc.h (ggc_force_collect): Declare
14300         (ggc_record_overhead): Update prototype.
14301         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
14302
14303 2004-09-02  James E Wilson  <wilson@specifixinc.com>
14304
14305         * common.opt (ftrapping-math): Default to on.
14306
14307 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
14308
14309         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
14310
14311 2004-09-02  Denis Chertykov  <denisc@overta.ru>
14312
14313         PR target/16884
14314         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
14315         match_scratch.
14316         (*movmemqi_insn): Likewise.
14317         (*movmemhi): Likewise.
14318         (clrmemhi): Likewise.
14319         (*clrmemqi): Likewise.
14320         (*clrmemhi): Likewise.
14321
14322 2004-09-02  Paul Brook  <paul@codesourcery.com>
14323
14324         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
14325         default_use_cxa_atexit=yes.
14326
14327 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
14328
14329         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
14330         (struct kernel_old_ucontext): Delete.
14331         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
14332         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
14333         when IN_LIGGCC2.
14334
14335 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
14336
14337         * toplev.c (process_options): Fix typo.
14338
14339 2004-09-01  Richard Henderson  <rth@redhat.com>
14340
14341         PR middle-end/17258
14342         * calls.c (initialize_argument_information): Tighten pass-through
14343         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
14344         Use build_fold_addr_expr.
14345         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
14346         that assumes ADDR_EXPR allocates stack space.
14347         * fold-const.c (build_fold_addr_expr_with_type): Look through
14348         WITH_SIZE_EXPR.
14349
14350 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
14351
14352         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
14353         * ggc.h (ggc_alloc_rtx): Delete.
14354
14355 2004-09-01  Roger Sayle  <roger@eyesopen.com>
14356
14357         * expmed.c (enum alg_code): Remove long unused enumeration values.
14358         (struct mult_cost): New structure to hold the "score" of a synthetic
14359         multiply sequence, including both a rtx_cost and a latency field.
14360         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
14361         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
14362         (struct algorithm): Change type of cost field to be mult_cost.
14363         (synth_mult): Change type of cost_limit argument to be a
14364         pointer to a mult_cost.  Update all cost comparisons to use the
14365         new mult_cost infrastructure.  For alg_add_factor and
14366         alg_sub_factor operations, latency is lower than the rtx_cost.
14367         (choose_mult_variant):  Update calls to synth_mult.  Perform
14368         cost comparisons using the new mult_cost infrastructure.
14369         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
14370         to optain the total rtx_cost of a synth_mult "algorithm".
14371
14372 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
14373
14374         * config/rs6000/power4.md: Increase store latency to 12.
14375         * config/rs6000/power5.md: Same.
14376
14377 2004-09-01  James E Wilson  <wilson@specifixinc.com>
14378
14379         PR target/14064
14380         * config/avr/avr.c (avr_unique_section): Delete prototype and
14381         definition.
14382         (TARGET_ASM_UNIQUE_SECTION): Delete.
14383
14384 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
14385
14386         * c-parse.in (primary): Call objc_build_message_expr(),
14387         objc_build_selector_expr(), objc_build_protocol_expr(),
14388         objc_build_encode_expr() and objc_build_string_object() instead of
14389         build_message_expr(), build_selector_expr(), build_protocol_expr(),
14390         build_encode_expr() and build_objc_string_object(), respectively.
14391         (component_decl_list2): Call objc_get_class_ivars() instead of
14392         get_class_ivars_from_name().
14393         (keyworddecl): Call objc_build_keyword_decl() instead of
14394         build_keyword_decl().
14395         (receiver): Call objc_get_class_reference() instead of
14396         get_class_reference().
14397         (reswords): Add blank line before @@ifobjc section, for clarity.
14398
14399 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
14400
14401         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
14402         to Altivec vetors.
14403
14404 2004-09-01  Wu Yongwei  <adah@sh163.net>
14405             Danny Smith  <dannysmith@users.sourceforge.net>
14406
14407         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
14408         not Windows 'DWORD'.
14409         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
14410         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
14411         (__gthr_win32_recursive_mutex_init_function): Add prototype for
14412         __GTHREAD_HIDE_WIN32API case..
14413         (__gthr_win32_recursive_mutex_lock): Likewise.
14414         (__gthr_win32_recursive_mutex_trylock): Likewise.
14415         (__gthr_win32_recursive_mutex_unlock): Likewise.
14416         (__gthread_recursive_mutex_init_function); Add definition for
14417         __GTHREAD_HIDE_WIN32API case.
14418         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
14419         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
14420         call to InterlockedDecrement.
14421
14422 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14423
14424         * tree-tailcall.c (find_tail_calls): Also fail is statement has
14425         volatile operands.
14426
14427         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
14428
14429         * doc/c-tree.texi: Document new operands for ARRAY_REF and
14430         COMPONENT_REF.
14431
14432 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14433
14434         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
14435         * common.opt (fspeculative-prefetching): New.
14436         * flags.h (flag_speculative_prefetching_set): Declare.
14437         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
14438         values.
14439         * opts.c (flag_sepculative_prefetching_set): New variable.
14440         (common_handle_option): Handle -fspeculative-prefetching.
14441         * passes.c (rest_of_compilation): Ditto.
14442         * profile.c (instrument_values, compute_value_histograms, branch_prob):
14443         Use vectors instead of arrays.
14444         * toplev.c (process_options): Handle -fspeculative-prefetching.
14445         * rtl-profile.c: Include ggc.h.
14446         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
14447         rtl_gen_one_value_profiler_no_edge_manipulation,
14448         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
14449         argument changed.
14450         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
14451         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
14452         argument changed.
14453         * value-prof.c: Include ggc.h.
14454         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
14455         macros.
14456         (insn_prefetch_values_to_profile, find_mem_reference_1,
14457         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
14458         speculative_prefetching_transform): New.
14459         (value_profile_transformations): Call speculative_prefetching_transform.
14460         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
14461         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
14462         tree_find_values_to_profile, find_values to profile): Use vectors
14463         instead of arrays.
14464         (free_profiled_values): Removed.
14465         * value-prof.h (struct histogram_value): Renamed to
14466         struct histogram_value_t.
14467         (histogram_value, histogram_values): New types.
14468         (find_values_to_profile): Declaration changed.
14469         (free_profiled_values): Removed.
14470         (struct profile_hooks): Type of argument of the hooks changed to
14471         histogram_value.
14472         * doc/invoke.texi (-fspeculative-prefetching): Document.
14473
14474 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14475
14476         PR rtl-optimization/16408
14477         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
14478
14479 2004-09-01  Richard Henderson  <rth@redhat.com>
14480
14481         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
14482         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
14483
14484 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14485
14486         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
14487
14488 2004-09-01  Mike Stump  <mrs@apple.com>
14489
14490         * config/darwin.c (machopic_symbol_defined_p): In addition to
14491         being SYMBOL_REF_LOCAL_P, a symbol must also be
14492         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
14493         defined in this output file, or translation unit in the case
14494         of IMA not being used.
14495         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
14496         never need .indirect_symbol when indirecting.
14497
14498 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14499
14500         * Makefile.in (bb-reorder.o): Add several dependencies.
14501
14502 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14503
14504         * fold-const.c (operand_equal_p): Require equal sign also for
14505         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
14506
14507 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
14508
14509         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
14510         for use in configargs.h.  Put the cname in a separate variable.  Use
14511         that to set target_cpu_default2.
14512
14513 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
14514             Nick Clifton  <nickc@redhat.com>
14515
14516         * config/sh/sh.md ("length"): Increase branch length when
14517         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
14518         constant, 2 byte for aligning the constant.
14519
14520 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
14521
14522         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
14523         CPU.
14524         (arm7tdmi-s): New CPU name.
14525         * arm/arm.c (ARM_CORE): Update for new format.
14526         * arm/arm.h (ARM_CORE): Likewise.
14527         * arm/gentune.sh: Update for extra field.
14528         * config.gcc: Likewise.
14529         * arm/arm-tune.md: Regenerate.
14530         * doc/invoke.texi: Document the real processor names for ARM cpus.
14531
14532 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
14533
14534         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
14535         (floatdidf): New functions.
14536         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
14537         (floatdisf): New functions.
14538         * t-arm-elf: Use them.
14539
14540 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
14541
14542         * c-common.h (lookup_interface): Remove prototype.
14543         (is_class_name): Rename to objc_is_class_name.
14544         (lookup_objc_ivar): Rename to objc_lookup_ivar.
14545         (get_current_scope): Rename to objc_get_current_scope.
14546         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
14547         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
14548         (yylexname): Call objc_is_class_name() instead of is_class_name().
14549         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
14550         instead of lookup_objc_ivar().
14551         * stub-objc.c (lookup_interface): Remove stub.
14552         (is_class_name): Rename to objc_is_class_name.
14553         (lookup_objc_ivar): Rename to objc_lookup_ivar.
14554
14555 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
14556
14557         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
14558         * config/arm/lib1funcs.asm: Do not include supplemental .S files
14559         when compiling for Symbian.
14560         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
14561         (TARGET_OS_CPP_BUILTINS): Likewise.
14562         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
14563
14564 2004-08-31  Stan Shebs  <shebs@apple.com>
14565
14566         * toplev.c (process_options): Ensure debug_hooks is initialized.
14567
14568 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
14569
14570         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
14571         * target.h (cxx): Add export_class_data.
14572         * config/arm/arm.c (arm_cxx_export_class_data): New function.
14573         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
14574         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
14575
14576 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14577
14578         * config/sh/sh.c (output_branch): Check the insn length possibly
14579         in the delayed slot.
14580
14581 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14582
14583         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
14584         blank after ')'.
14585         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
14586
14587         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
14588         (c_sizeof_of_alignof_type): Likewise.
14589         * expr.c (array_ref_element_size): Likewise.
14590         (highest_pow2_factor_for_target): Likewise.
14591         * gimplify.c (canonicalize_addr_expr): Likewise.
14592         (gimplify_compound_lval): Likewise.
14593         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
14594         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
14595         * varasm.c (assemble_variable): Likewise.
14596         (output_constant_def_contents): Alignments are unsigned.
14597
14598 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14599             Jeff Law  <law@redhat.com>
14600
14601         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
14602         gets modified.
14603
14604 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
14605
14606         * hooks.c (hook_bool_void_true): New function.
14607         * hooks.h (hook_bool_void_true): Declare.
14608         * target-def.h (TARGET_CXX): Add
14609         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
14610         * target.h (struct cxx): Add key_method_may_be_inline.
14611         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
14612         function.
14613         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
14614         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
14615         __THUMB_INTERWORK.
14616
14617 2004-08-31  Denis Chertykov  <denisc@overta.ru>
14618
14619         PR target/15417
14620         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
14621         frame pointer register only in Pmode while reload in progress.
14622
14623 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
14624
14625         PR target/15334
14626         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
14627         because it breaks the 32-bit shift patterns that rely on a match_dup.
14628
14629 2004-08-31  Matt Austern  <austern@apple.com>
14630
14631         * config/darwin.c (darwin_make_decl_one_only): Allocate section
14632         names once per compilation, instead of once per symbol.
14633
14634 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
14635
14636         * Makefile.in (build_subdir): New substitution.
14637         (fixinc.sh): Simplify heavily since fixincludes is already built.
14638         (stmp-fixinc): Depend on specs.ready.
14639         (install-mkheaders): Use new location of fixincludes.
14640         (clean): Do not descend into fixinc.
14641         (FORBUILD): Replace with ../$(build_subdir).
14642         * configure.ac (build_subdir): Substitute.
14643         (FORBUILD): Do not set.
14644         (all_outputs): Remove fixinc/Makefile.
14645         (default commands): Do not create links in fixinc.
14646         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
14647         the fixincludes configuration steps and substituting
14648         @FIXINCL@ in fixinc.in.
14649         * fixinc.in: New, from fixinc/fixincl.sh.
14650
14651         * fixinc/*: Removed.
14652
14653 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
14654
14655         * attribs.c (strip_attrs): Remove.
14656         (split_specs_attrs): Move ...
14657         * c-decl.c: ... to here.
14658         * tree.h (split_specs_attrs, strip_attrs): Remove.
14659         * c-tree.h (split_specs_attrs): Declare.
14660
14661 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
14662
14663         * read-rtl.c: Disable RTL checking.
14664         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
14665
14666 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
14667
14668         * config/mips/mips.md (fcond): New code macro and attribute.
14669         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
14670         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
14671         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
14672
14673 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
14674
14675         Revert:
14676         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
14677         PR rtl-optimization/16590
14678         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
14679
14680 2004-08-30  Andrew Pinski  <apinski@apple.com>
14681
14682         * hard-reg-set.h:
14683         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
14684         * ChangeLog: Fix previous ChangeLog entry.
14685
14686         PR rtl-opt/13987
14687         * config.host (use_long_long_for_widest_fast_int): New, default is
14688         off.
14689         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
14690         * configure.ac: If use_long_long_for_widest_fast_int, then
14691         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
14692         * configure: Regenerate.
14693         * config.in: Regenerate.
14694         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
14695         New: widest integer type supported efficiently in hardware for the
14696         host.
14697         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
14698         HOST_BITS_PER_WIDEST_FAST_INT.
14699         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
14700         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
14701         HOST_WIDEST_FAST_INT
14702         instead of HOST_WIDE_INT.
14703         (HARD_REG_SET_LONGS): Likewise.
14704         (UHOST_BITS_PER_WIDE_INT): Likewise.
14705         Change the checks for the fast cases to be based on
14706         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
14707
14708 2004-08-30  Steven Bosscher  <stevenb@suse.de>
14709
14710         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
14711         not the pointers.
14712
14713 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
14714
14715         PR 12738
14716         PR 17205
14717         Radar 3460526
14718         Radar 3775729
14719         * c-decl.c (grokdeclarator): Produce error for 'static' on local
14720         function declaration.
14721
14722 2004-08-30  Richard Henderson  <rth@redhat.com>
14723
14724         * expr.c (array_ref_element_size): Force aligned_size back to
14725         sizetype.
14726         (component_ref_field_offset): Similarly for aligned_offset.
14727         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
14728         low-bound, element-size, field-offset fields rather than
14729         computed values.
14730
14731 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
14732
14733         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
14734         redundant code.
14735
14736 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
14737
14738         * c-tree.h (struct language_function): Add arg_info element.
14739         * c-decl.c (current_function_arg_info): New.
14740         (grokdeclarator, store_parm_decls): Use it instead of
14741         DECL_ARGUMENTS.
14742         (c_push_function_context, c_pop_function_context): Save and
14743         restore it.
14744
14745 2004-08-30  Richard Henderson  <rth@redhat.com>
14746
14747         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
14748         COMPONENT_REF to pointer arithmetic.
14749         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
14750         constant "c" as a valid constant initializer.  Allow narrowing of
14751         differences against the same base object, for any base object.
14752
14753 2004-08-30  Richard Henderson  <rth@redhat.com>
14754
14755         * expr.c (expand_expr_addr_expr): New.
14756         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
14757
14758 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
14759
14760         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
14761         (mips_fp_condition): New enum.
14762         (mips_fp_conditions): New array.
14763         (print_fcc_operand): Delete.
14764         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
14765         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
14766         (builtin_description): Add "cond" field.
14767         (DIRECT_BUILTIN): Initialize it.
14768         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
14769         into INSN and CODE.  Initialize the "cond" field.
14770         (CMP_BUILTINS): Update accordingly.
14771         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
14772         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
14773         mips_fp_condition as argument.  Make it the final operand of the
14774         comparison instruction.
14775         (mips_expand_builtin): Update accordingly.
14776         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
14777         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
14778         the gaps.
14779         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
14780         Don't use the 'Q' operand prefix; just print the operand normally.
14781         (mips_cabs_*, mips_c_*): Delete, replacing with...
14782         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
14783         patterns.  Split the 4s versions into 2 ps patterns after reload.
14784
14785 2004-08-30  Richard Henderson  <rth@redhat.com>
14786
14787         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
14788         assuming an ADDR_EXPR is non-null.
14789
14790 2004-08-30  Jason Merrill  <jason@redhat.com>
14791
14792         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
14793
14794 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
14795
14796         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
14797         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
14798         gcc_assert and gcc_unreachable instead of abort.
14799         * alloc-pool.c (abort, fancy_abort): Remove.
14800         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
14801         gcc_assert or gcc_unreachable.
14802         * attribs.c (init_attributes, decl_attributes): Likewise.
14803         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
14804         mark_bb_for_unlikely_executed_section,
14805         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
14806         fix_crossing_unconditional_branches):  Likewise.
14807         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
14808         bitmap_operation):  Likewise.
14809         * bt-load.c (insn_sets_btr_p, augment_live_range,
14810         move_btr_def):  Likewise.
14811         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
14812         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
14813         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
14814         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
14815         expand_builtin_memcmp, expand_builtin_args_info,
14816         std_gimplify_va_arg_expr, expand_builtin_unop,
14817         expand_builtin_fputs, expand_builtin_profile_func,
14818         expand_builtin_fork_or_exec, fold_builtin_bitop,
14819         fold_builtin_classify, fold_builtin_fputs): Likewise.
14820
14821 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
14822
14823         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
14824         * gcov.c (abort): Remove undef.
14825
14826         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
14827         (struct tree_binfo): Remove primary field.
14828
14829 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
14830
14831         * fixinc/Makefile.in (machname.h): Remove.
14832         (fixincl.x): Do not pass $@ to genfixes.
14833         * fixinc/genfixes: Remove code to produce machname.h.
14834         * fixinc/fixincl.sh: Move it here instead.
14835         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
14836         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
14837         return a bool indicating whether pz_mn_name_pat is NULL.
14838         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
14839         Declare extern C variables for the ENV_TABLE.
14840         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
14841         instead use the result of mn_get_regexps.
14842         * fixinc/fixtests.c: Likewise.
14843
14844 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
14845
14846         * configure.ac: Do not run fixincludes after stage1 during
14847         toplevel bootstrap.
14848         * configure: Regenerate.
14849
14850 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
14851
14852         * sched-deps.c (get_condition): Partially revert previous, by never
14853         trying to extract the condition from a condjump.
14854
14855 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
14856
14857         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
14858         (handle_visibility_attribute, c_determine_visibility): Likewise.
14859         * c-common.h (my_friendly_assert): Remove.
14860
14861 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
14862
14863         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
14864         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
14865         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
14866         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
14867         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
14868
14869 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
14870
14871         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
14872         in COMPONENT_REF nodes.
14873
14874 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14875
14876         PR c++/15378
14877         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
14878         global_dc->warning_as_error_requested.
14879         * diagnostic.c (diagnostic_initialize): Tidy.
14880         * diagnostic.h (diagnostic_context::x_data): Remove
14881         (diagnostic_context::issue_warnings_are_errors_message): Rename
14882         from warnings_are_errors_message.
14883         (diagnostic_context::warning_as_error_requested): New.
14884
14885 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
14886
14887         * sched-deps.c (get_condition): Fix breakage in previous patch.
14888
14889 2004-08-30  Paul Brook  <paul@codesourcery.com>
14890
14891         * doc/install.texi: Fix broken mpfr link.
14892
14893 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
14894
14895         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
14896         other FreeBSD platforms.
14897
14898 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
14899
14900         * arm.h (REVERSE_CONDITION): Define.
14901         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
14902
14903 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
14904
14905         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
14906         just the codes, call reversed_comparison_code ().
14907         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
14908         (not_reg_cond): Use reversed_comparison_code.
14909         (and_reg_cond): Likewise.
14910         * ifcvt.c (cond_exec_process_if_block): Likewise.
14911         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
14912
14913 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
14914
14915         * sched-deps.c (get_condition): Rewrite using jump support functions.
14916         Use reversed_comparison_code.
14917         (conditions_mutex_p): Use reversed_comparison_code.
14918
14919 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14920
14921         * config/mips/mips.c (override_options): Disable hot/cold partitioning
14922         for MIPS16.
14923
14924 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14925
14926         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
14927         (mips_function_type): Move to mips.c.
14928         * config/mips/mips.c (mips_builtin_type): New enum.
14929         (builtin_description): Replace code and ftype with builtin_type
14930         and function_type.
14931         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
14932         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
14933         (CODE_FOR_mips_abs_ps): Define.
14934         (mips_bdesc): Use new macros.
14935         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
14936         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
14937         (mips_expand_builtin_direct): New function.
14938         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
14939         builtin.  Replace boolean parameter with builtin_type.
14940         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
14941         (mips_expand_4s_compare_builtin): Delete, replacing with...
14942         (mips_expand_builtin_compare): ...this new function.
14943
14944 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
14945
14946         PR rtl-optimization/16590
14947         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
14948
14949 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
14950
14951         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
14952         * tree-ssa-propagate.c: Fix documentation.
14953
14954 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14955
14956         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
14957         (mov[sd]fcc): Likewise.
14958
14959 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14960
14961         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
14962
14963 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14964
14965         * config/mips/mips.md (divide_condition): New mode attribute.
14966         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
14967         (sqrt[sd]f3): Redefine using SCALARF.
14968         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
14969         patterns.
14970
14971 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14972
14973         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
14974         (loadx, storex, fmt, UNITMODE): New mode attributes.
14975         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
14976         (mul[sd]f3): Redefine using :SCALARF.
14977         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
14978         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
14979         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
14980         Check TARGET_FUSED_MADD for V2SF too.
14981         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
14982         were already named.
14983         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
14984         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
14985
14986 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14987
14988         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
14989         V2SF_type_node if it will be needed.
14990
14991 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14992
14993         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
14994         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
14995         (mips_prepare_builtin_target): New function.
14996         (mips_expand_builtin): Use them.  Update calls to subroutines.
14997         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
14998         cmp_choice with a boolean argument to select between movt and movf.
14999         Take the comparison's icode as an argument, not the function's fcode.
15000         (mips_expand_compare_builtin): New function.  Rename existing function
15001         to mips_expand_scalar_compare_builtin.
15002         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
15003         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
15004         comparison's icode as an argument, not the builtin's fcode.
15005
15006 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
15007
15008         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
15009         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
15010         registers are false and -1 if all registers are true.
15011         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
15012         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
15013         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
15014         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
15015         (bc1any2t, bc1any2f): Likewise CCV2.
15016         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
15017
15018 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
15019
15020         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
15021         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
15022         UNSPEC rather than an IF_THEN_ELSE.
15023         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
15024         mips_cond_move_tf_ps by name.
15025
15026 2004-08-29  Chao-ying Fu  <fu@mips.com>
15027             James E Wilson  <wilson@specifixinc.com>
15028
15029         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
15030         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
15031         * config/mips/mips-ps-3d.md: New file.
15032         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
15033         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15034         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
15035         (mips_output_move): Emit "mov.ps" for V2SFmode.
15036         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
15037         MODE_VECTOR_FLOAT.
15038         (override_options): Check if TARGET_MIPS3D and there was an explicit
15039         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
15040         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
15041         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
15042         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
15043         and allow CCV2 and CCV4 to occupy two and four CC registers.
15044         (print_fcc_operand): New function.
15045         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
15046         %Z to call print_fcc_operand.
15047         (mips_function_value): Handle MODE_VECTOR_FLOAT.
15048         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
15049         (mips_vector_mode_supported_p): New function.
15050         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
15051         (builtin_description): New struct.
15052         (mips_bdesc): New array of struct builtin_description.
15053         (mips_expand_builtin, mips_init_builtins,
15054         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
15055         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
15056         functions.
15057         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
15058         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
15059         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
15060         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
15061         "-mips3d", and "-mno-mips3d".
15062         (ASM_SPEC): Map -mips3d to -mips3d in gas.
15063         (EXTRA_CONSTRAINT_Y): New macro.
15064         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
15065         multi-letter constraint 'Y'.
15066         (CONSTRAINT_LEN): New macro.
15067         (enum mips_builtins): New for MIPS builtin functions.
15068         (enum mips_function_type): New for the types of MIPS builtin functions.
15069         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
15070         * config/mips/mips.md: New constants for paired single and MIPS-3D
15071         instructions.  Include the new mips-ps-3d.md file.
15072         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
15073         movv2sf_hardfloat_64bit): New named patterns.
15074         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
15075         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
15076         sdxc1_v2sf_di): New unnamed patterns.
15077         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
15078         const_vector support.
15079         (const_0_or_1_operand): New predicate.
15080         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
15081
15082 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
15083
15084         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
15085         (tree-ssa-propagate.o): New rule.
15086         (GTFILES): Add tree-ssa-propagate.c.
15087         * tree-flow.h (struct stmt_ann_d): Remove field
15088         in_ccp_worklist.
15089         * tree-ssa-propagate.c: New file.
15090         * tree-ssa-propagate.h: New file.
15091         * tree-ssa-ccp.c: Re-write to use the routines from
15092         tree-ssa-propagate.c.
15093
15094 2004-08-28  Andrew Pinski  <apinski@apple.com>
15095
15096         * tree-ssa-loop.c: Remove extra include of basic-block.h.
15097
15098 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
15099
15100         * c-common.h: Update comments about ObjC/ObjC++ entry points.
15101         (objc_is_reserved_word): New prototype.
15102         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
15103         separate section; these are call-backs.
15104         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
15105         ObjC/ObjC++ "@" keywords.
15106         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
15107         prototypes; they already live in c-common.h.
15108         * stub-objc.c: Update copyright notice.
15109         (objc_is_reserved_word): New stub.
15110
15111 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
15112
15113         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
15114         even when not checking.
15115
15116 2004-08-27  Jason Merrill  <jason@redhat.com>
15117
15118         PR c++/13684
15119         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
15120         (gimple_push_cleanup): Add eh_only parm.
15121         (gimplify_target_expr): Pass it.
15122         * c.opt (-fno-threadsafe-statics): New option.
15123         * c-opts.c (c_common_handle_option): Handle it.
15124         * c-common.h (flag_threadsafe_statics): Declare it.
15125         * c-common.c (flag_threadsafe_statics): Record it.
15126         * doc/invoke.texi: Document it.
15127         * tsystem.h (_GNU_SOURCE): Define.
15128         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
15129         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
15130         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
15131         (__gthread_recursive_mutex_init_function): New fn.
15132         (__gthread_recursive_mutex_lock): New fn.
15133         (__gthread_recursive_mutex_trylock): New fn.
15134         (__gthread_recursive_mutex_unlock): New fn.
15135         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
15136         * gthr-win32.h, gthr-vxworks.h: Likewise.
15137         * gthr.h: Document.
15138
15139 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
15140
15141         * config/rs6000/rs6000.c (rs6000_override_options): Increase
15142         maximum skip to 15.  Set function alignment, jump alignment, and
15143         loop alignment to 16 for processors that form dispatch groups.
15144         (rs6000_rtx_costs): outer_code is used.
15145
15146 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
15147
15148         * stor-layout.c (sizetype_set): Remove.
15149         (set_sizetype): Don't test or set it.
15150
15151         * tree.h (size_int_type): Remove.
15152         * fold-const.c: Do not #include gt-fold-const.h.
15153         (size_htab_hash, size_htab_eq): Remove.
15154         (size_int_kind): Use build_int_cst.
15155         (new_const, size_htab): Remove.
15156         (size_int_type): Remove.
15157         (round_up): Use build_int_cst.
15158         (round_down): Likewise. Remove spurious constant build.
15159
15160 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
15161
15162         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
15163         Add is_release variable, use it for --enable-werror and
15164         --enable-checking defaults.
15165         * system.h (gcc_assert, gcc_unreachable): New.
15166         * doc/install.texi (--enable-checking): Update.
15167         * configure, config.in: Rebuilt.
15168
15169 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
15170
15171         * rtl.h (read_rtx): Change prototype.
15172         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
15173         line number.  Return true on success.
15174         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
15175         callers accordingly.
15176
15177 2004-08-26  Richard Henderson  <rth@redhat.com>
15178
15179         * c-typeck.c (build_offsetof): Remove.
15180         * c-tree.h (build_offsetof): Remove.
15181         * c-common.c (fold_offsetof_1, fold_offsetof): New.
15182         * c-common.h (fold_offsetof): Declare.
15183         * c-parse.in (offsetof_base): New.
15184         (offsetof_member_designator): Use it.  Build references, not just
15185         a tree list.
15186         (primary): Use fold_offsetof, not build_offsetof.
15187
15188 2004-08-26  Richard Henderson  <rth@redhat.com>
15189
15190         * tree.c (staticp): Return the static object.
15191         * tree.h (staticp): Update decl.
15192         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
15193         * langhooks.c (lhd_staticp): Return NULL_TREE.
15194         * langhooks-def.h (lhd_staticp): Update decl.
15195         * c-common.c (c_staticp): Return the static object.
15196         * c-common.h (c_staticp): Update decl.
15197
15198 2004-08-26  Richard Henderson  <rth@redhat.com>
15199
15200         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
15201         modes.
15202
15203 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
15204
15205         PR c/13801
15206         * c-decl.c (struct c_binding): Add type and inner_comp fields.
15207         (bind): Set type and inner_comp fields.
15208         (pop_scope): Restore type of decl to the correct type from an
15209         outer scope.  Give error when popping file scope for incomplete
15210         arrays completed incompatibly with default initialization in an
15211         inner scope.
15212         (diagnose_mismatched_decls): Handle externs with initializers at
15213         block scope.
15214         (pushdecl): Set type of external declaration at block scope based
15215         only on the visible declarations.  Save type when changing the
15216         type of a declaration.  Merge an external declaration at block
15217         scope with a visible static declaration at file scope.
15218         (implicitly_declare): Give recycled old declaration the new type
15219         except for incompatible declarations of built-in functions, saving
15220         the old type.
15221
15222 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
15223
15224         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
15225
15226 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
15227
15228         * tree-alias-common.c (gate_pta): New function.
15229         (pass_build_pta): Use it.
15230         (pass_del_pta): Use it.
15231         (delete_alias_vars): Don't check flag_tree_points_to.
15232
15233 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
15234
15235         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
15236         TFmode as additional register mode cloberred by call.
15237
15238 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
15239
15240         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
15241         parallel pattern for library call returning DImode in
15242         mixed mode.
15243
15244 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
15245
15246         * config/rs6000/rs6000.c (function_arg): Generate parallel
15247         pattern for more split args.
15248
15249 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
15250
15251         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
15252         either gen_movdi_di_update or gen_movdi_si_update depending on
15253         target mode.
15254         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
15255         to generate two versions.
15256
15257 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
15258
15259         * Makefile.in (lambda-code.o): New.
15260         (lambda-trans.o): Ditto.
15261         (TREE_DATA_REF_H): Ditto.
15262         (LAMBDA_H): Ditto.
15263         (lambda-mat.o): Use LAMBDA_H.
15264         (tree-data-ref.o): Ditto.
15265         * lambda-code.c: New file.  Lambda code generation algorithm.
15266         * lambda-trans.c: Ditto. Lambda transformation matrix support.
15267         * lambda.h: Add lambda loop structures.
15268         Add lambda loopnest structures.
15269         Add lambda body vector structure.
15270         Add lambda linear expression structures.
15271         Add prototypes for functions in new files.
15272         * lambda-mat.c: Include tree.h
15273
15274 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
15275             Sebastian Pop  <pop@cri.ensmp.fr>
15276
15277         * tree-data-ref.h: Include lambda.h
15278         (free_dependence_relation): Declared here.
15279         (free_dependence_relations): Ditto.
15280         (free_data_refs): Ditto.
15281         * tree-data-ref.c (free_dependence_relation): New function.
15282         (free_dependence_relations): Ditto.
15283         (free_data_refs): Ditot.
15284         (analyze_all_data_dependences): Free datarefs and dependence_relations.
15285         (build_classic_dist_vector): Store in the dependence_relations the
15286         information. Each arc in the dependence_relations graph is labelled
15287         with the distance and direction vectors.
15288         (build_classic_dir_vector): Ditto.
15289         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
15290         Now computes again the whole dependence graph including read-read
15291         relations.
15292         (compute_data_dependences_for_loop): Now dependence_relations contains
15293         all the data, and thus it doesn't need to initialize the classic_dir
15294         and classic_dist vectors.
15295         (analyze_all_data_dependences): Adjusted for using the new interface of
15296         compute_data_dependences_for_loop.  Remove the statistics dump.
15297
15298 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
15299
15300         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
15301         (xtensa_expand_block_move): Update comment.
15302         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
15303
15304 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
15305
15306         PR target/13506
15307         * toplev.c (crash_signal): If we crashed while emitting
15308         a user asm, then die more gracefully.
15309
15310 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
15311
15312         PR target/17119.
15313         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
15314         checking for a valid constant, regardless of sign.
15315
15316 2004-08-25  Richard Henderson  <rth@redhat.com>
15317
15318         PR target/16974
15319         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
15320         if the constant satisfies add_operand.
15321
15322 2004-08-25  Richard Henderson  <rth@redhat.com>
15323
15324         PR debug/10695
15325         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
15326         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
15327         unwind info for >16-bit frames.
15328
15329 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
15330
15331         PR target/17171
15332         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
15333
15334 2004-08-25  Richard Henderson  <rth@redhat.com>
15335
15336         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
15337         (TARGET_CANNOT_FORCE_CONST_MEM): New.
15338
15339 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
15340
15341         * doc/tree-ssa.texi: Document new operand iterator.
15342
15343 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
15344
15345         PR target/16480
15346         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
15347         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
15348         as PLUS base regs.
15349
15350 2005-08-28  Paul Brook  <paul@codesourcery.com>
15351
15352         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
15353         -mfpu=vfp -march=armv5t
15354         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
15355
15356 2004-08-25  Richard Henderson  <rth@redhat.com>
15357
15358         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
15359         * target.h (struct gcc_target): Add scalar_mode_supported_p.
15360         * targhooks.c (default_scalar_mode_supported_p): New.
15361         * targhooks.h (default_scalar_mode_supported_p): Declare.
15362         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
15363
15364         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
15365         before attempting to create types.  Tidy.
15366         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
15367
15368         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
15369         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
15370
15371 2004-08-25  Richard Henderson  <rth@redhat.com>
15372
15373         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
15374         set REAL_MODE_FORMAT for TFmode.
15375
15376 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
15377
15378         * c-decl.c (grokparm): New function.
15379         * c-tree.h (grokparm): New prototype.
15380
15381 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
15382
15383         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
15384         iterator controlling structure.
15385         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
15386         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
15387         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
15388         iterator flags.
15389         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
15390         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
15391         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
15392         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
15393         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
15394         Empty operand pointers.
15395         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
15396         (op_iter_next_use): New.  Return next use_operand_p.
15397         (op_iter_next_def): New.  Return next def_operand_p.
15398         (op_iter_next_tree): New.  Return next operands as a tree.
15399         (op_iter_init): New.  Initialize an iterator structure.
15400         (op_iter_init_use): New.  Initialize structure and get the first use.
15401         (op_iter_init_def): New.  Initialize structure and get the first def.
15402         (op_iter_init_tree): New.  Initialize structure and get the first tree.
15403         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
15404         (op_iter_init_maydef): New.  Initialize structure and get the first
15405         V_MAY_DEF operands.
15406         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
15407         * tree-dfa.c (compute_immediate_uses_for_stmt,
15408         redirect_immediate_uses): Use new operand iterator.
15409         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
15410         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
15411         operands instead of using *_disappeared_p routines.
15412         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
15413         ssa_rewrite_stmt): Use new operand iterator.
15414         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
15415         rewrite_trees): Use new operand iterator.
15416         * tree-pretty-print.c (dump_vops): Use new operand iterator.
15417         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
15418         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
15419         dump_points_to_info): Use new operand iterator.
15420         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
15421         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
15422         operand iterator.
15423         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
15424         propagate_necessity): Use new operand iterator.
15425         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
15426         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
15427         a parameter instead of a stmt_ann_t.
15428         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
15429         build_tree_conflict_graph): Use new operand iterator.
15430         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
15431         rewrite_mem_refs): Use new operand iterator.
15432         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
15433         check_loop_closed_ssa_use): Use new operand iterator.
15434         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
15435         * tree-ssanames.c (release_defs): Use new operand iterator.
15436         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
15437
15438 2004-08-25  Adam Nemet  <anemet@lnxw.com>
15439
15440         * tlink.c (initial_cwd): New variable.
15441         (tlink_init): Initialize it.
15442         (recompile_files): Use tlink_execute() instead of system().  Don't
15443         duplicate verbose output of collect_execute.  Restore initial_cwd.
15444         Update comment before the function.
15445
15446 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
15447
15448         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
15449         accept) a cast from one Objective-C pointer type to another.
15450
15451 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
15452
15453         * doc/install.texi: Document that libstdc++-v3 requires
15454         now automake 1.9.1.
15455
15456 2004-08-25  Caroline Tice  <ctice@apple.com>
15457
15458         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
15459         to comments at start of function.
15460         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
15461         comment.
15462         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
15463         merge_blocks_move_predecessor_nojumps,
15464         merge_blocks_move_successor_nojumps, merge_blocks_move,
15465         try_crossjump_to_edge, try_crossjump_bb): Likewise.
15466         * cfglayout.c (fixup_reorder_chain): Likewise.
15467         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
15468         cfg_layout_can_merge_blocks_p):  Likewise.
15469         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15470         * passes.c (rest_of_compilation): Update comments for calling
15471         optimization that partitions hot/cold basic blocks.
15472         * doc/invoke.texi:  Update documentation of
15473         freorder-blocks-and-partition flag.
15474
15475 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
15476
15477         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
15478         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
15479
15480 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
15481
15482         * config/mips/mips.md (any_shift): New code macro.
15483         (optab, insn): New code attributes.
15484         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
15485         Use the standard rather than internal patterns for the MIPS16
15486         double-shift optimization.
15487         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
15488         Redefine using :GPR and any_shift.
15489         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
15490         to cover all three shifts.
15491         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
15492         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
15493         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
15494
15495 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
15496
15497         * gimplify.c (lookup_tmp_var): Separate temporaries when not
15498         optimizing.
15499
15500 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15501
15502         PR libstdc++/17005 (fix for HP-UX 11.11)
15503         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
15504         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
15505         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
15506         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
15507         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
15508         (LINK_SPEC): Handle march=1.0 option.
15509         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15510         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
15511         (SUBTARGET_OPTIONS): New define.
15512         (LINK_SPEC): Handle march=1.0 option.
15513         (STARTFILE_SPEC): New define.
15514         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15515         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
15516         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
15517         (SUBTARGET_OPTIONS): New define.
15518         (LINK_SPEC): Handle march=1.0 option.
15519         (STARTFILE_SPEC): New define.
15520         * config/pa/pa.c (override_options): Add code to process -munix= option.
15521         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
15522         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
15523         defines.
15524         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
15525         (SUBTARGET_OPTIONS): Provide default define.
15526         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
15527         STANDARD_STARTFILE_PREFIX_2): New defines.
15528         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
15529         (ENDFILE_SPEC): Use %O.
15530         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
15531         Mention issue caused by changing namespace and runtime to UNIX 95/98.
15532         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
15533         Document -munix=std option.
15534
15535 2004-08-25  Steven Bosscher  <stevenb@suse.de>
15536
15537         * cse.c (cse_around_loop, cse_check_loop_start,
15538         cse_set_around_loop): Remove.
15539         (cse_basic_block): Remove the around_loop argument.
15540         (cse_end_of_basic_block): Remove the after_loop argument.
15541         (cse_main): Likewise.
15542         * rtl.h (cse_main): Update prototype.
15543         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
15544         rest_of_handle_gcse): Update cse_main calls.
15545
15546 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
15547
15548         * tree.h  (build_int_cst): New, sign extended constant.
15549         (build_int_cstu): New, zero extended constant.
15550         (build_int_cst_wide): Renamed from build_int_cst.
15551         * tree.c (build_int_cst, build_int_cstu): New.
15552         (build_int_cst_wide): Renamed from build_int_cst.
15553         (make_vector_type, build_common_tree_nodes,
15554         build_common_tree_nodes_2): Adjust build_int_cst calls.
15555         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
15556         expand_builtin_strpbrk, expand_builtin_fputs,
15557         build_string_literal, expand_builtin_printf,
15558         expand_builtin_sprintf, fold_builtin_classify_type,
15559         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
15560         fold_builtin_toascii, fold_builtin_isdigit,
15561         simplify_builtin_strstr, simplify_builtin_strpbrk,
15562         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
15563         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
15564         DEF_ATTR_INT): Likewise.
15565         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
15566         Likewise.
15567         * c-lex.c (interpret_integer, lex_charconst): Likewise.
15568         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
15569         * c-pretty-print.c (pp_c_integer_constant): Likewise.
15570         * c-typeck.c (really_start_incremental_init, push_init_level,
15571         set_nonincremental_init_from_string): Likewise.
15572         * calls.c (load_register_parameters): Likewise.
15573         convert.c (convert_to_pointer): Likewise.
15574         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
15575         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
15576         build_gcov_info): Likewise.
15577         * except.c (init_eh, assign_filter_values): Likewise.
15578         * expmed.c (store_fixed_bit_field, extract_bit_field,
15579         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
15580         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
15581         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
15582         * expr.c (convert_move, emit_group_load, emit_group_store,
15583         expand_assignment, store_constructor, store_field,
15584         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
15585         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
15586         invert_truthvalue, optimize_bit_field_compare,
15587         decode_field_reference, all_ones_mask_p, constant_boolean_node,
15588         fold_div_compare, fold, fold_read_from_constant_string,
15589         fold_negate_const, fold_abs_const, fold_not_const, round_up,
15590         round_down): Likewise.
15591         * function.c (assign_parm_setup_block): Likewise.
15592         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
15593         Likewise.
15594         * stor-layout.c (layout_type, initialize_sizetypes,
15595         set_min_and_max_values_for_integral_type): Likewise.
15596         * tree-chrec.c (chrec_fold_multiply_poly_poly,
15597         reset_evolution_in_loop): Likewise.
15598         * tree-chrec.h (build_polynomial_chrec): Likewise.
15599         * tree-complex.c (build_replicated_const): Likewise.
15600         * tree-eh.c (honor_protect_cleanup_actions,
15601         lower_try_finally_onedest, lower_try_finally_copy,
15602         lower_try_finally_switch): Likewise.
15603         * tree-mudflap.c (mf_build_string, mx_register_decls,
15604         mudflap_register_call, mudflap_enqueue_constant): Likewise.
15605         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
15606         * tree-pretty-print.c (dump_generic_node): Likewise.
15607         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
15608         Likewise.
15609         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
15610         * tree-ssa-loop-niter.c (number_of_iterations_cond,
15611         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
15612         Likewise.
15613         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
15614         canonicalize_loop_induction_variables): Likewise.
15615         * tree-vectorizer.c (vect_create_index_for_array_ref,
15616         vect_transform_loop_bound, vect_compute_data_ref_alignment):
15617         Likewise.
15618
15619         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
15620         alpha_gimplify_va_arg_1): Likewise.
15621         * config/arm/arm.c (arm_get_cookie_size): Likewise.
15622         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
15623         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
15624         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15625         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
15626         mips_gimplify_va_arg_expr): Likewise.
15627         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15628         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
15629         add_compiler_branch_island): Likewise.
15630         * config/s390/s390.c (s390_va_start): Likewise.
15631         * config/sh/sh.c (sh_va_start): Likewise.
15632         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
15633         Likewise.
15634         * config/xtensa/xtensa.c (xtensa_va_start,
15635         xtensa_gimplify_va_arg_expr): Likewise.
15636
15637         * objc/objc-act.c (build_objc_string_object,
15638         build_objc_symtab_template, init_def_list, init_objc_symtab,
15639         init_module_descriptor, generate_static_references,
15640         build_selector_translation_table, get_proto_encoding,
15641         build_typed_selector_reference, build_selector_reference,
15642         build_next_objc_exception_stuff,
15643         build_method_prototype_list_template, generate_descriptor_table,
15644         generate_protocols, build_protocol_initializer,
15645         build_ivar_list_template, build_method_list_template,
15646         build_ivar_list_initializer, generate_ivars_list,
15647         generate_dispatch_table, generate_protocol_list,
15648         build_category_initializer, build_shared_structure_initializer,
15649         generate_shared_structures, handle_impent,
15650         generate_objc_image_info): Likewise.
15651
15652 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
15653
15654         * cfglayout.c (duplicate_insn_chain): Remove references to
15655         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
15656         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
15657         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
15658         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
15659         and NOTE_INSN_LOOP_CONT.
15660         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
15661         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
15662         and NOTE_INSN_LOOP_CONT.
15663         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
15664         check_dbra_loop, loop_dump_aux): Remove references to removed notes
15665         and fields.
15666         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
15667         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
15668         references to removed notes and fields.
15669         (subtract_reg_term, ujump_to_loop_cont): Remove.
15670
15671 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
15672
15673         * doc/install.texi: Document that libcpp does not require
15674         Automake any longer.  Document that Automake 1.9.1 should
15675         work everywhere.
15676
15677 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
15678
15679         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
15680         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
15681         DWARF_DEBUGGING_INFO from choice-of-definition chain;
15682         restructure using C89 features (#elif, #error).
15683         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
15684         * config/sh/sh.h: Remove references to DWARF_DEBUG.
15685         * doc/invoke.texi: Remove references to DWARF version 1;
15686         clarify why -gdwarf-2<n> doesn't work.
15687
15688 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
15689
15690         * basic-block.h (BB_SET_PARTITION): Clear old value first.
15691         * cfg.c (clear_bb_flags): Don't clear partition setting.
15692         * ifcvt.c (find_if_case_1): Remove ??? comment.
15693
15694 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
15695
15696         PR target/17052
15697         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
15698         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
15699         current_function_stdarg in place of sysv_varargs_p.
15700         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
15701         sysv_varargs_p.
15702
15703 2004-08-24  Richard Henderson  <rth@redhat.com>
15704
15705         PR target/16298
15706         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
15707         random codes within CONST.
15708
15709 2004-08-24  James E Wilson  <wilson@specifixinc.com>
15710
15711         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
15712         -freorder-blocks-and-partition.
15713
15714 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15715
15716         PR middle-end/17044
15717         * tree-ssa-threadupdate.c (redirection_data): Make static.
15718         (thread_block): Use ggc_alloc_cleared to allocate struct
15719         redirection_data.  Don't free elements in redirection_data.
15720
15721 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15722
15723         * config/mips/predicates.md (small_data_pattern): Match prefetches.
15724
15725 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15726
15727         PR tree-optimization/17016
15728         * tree-ssa-loop-niter.c (number_of_iterations_cond,
15729         number_of_iterations_exit): Use POINTER_TYPE_P instead
15730         of testing for POINTER_TYPE.
15731
15732 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15733
15734         * tree-ssa-loop-ivcanon.c: New file.
15735         * tree-ssa-loop-manip.c (create_iv): New function.
15736         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
15737         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
15738         * cfgloop.c (mark_single_exit_loops): New function.
15739         (verify_loop_structure): Verify single-exit loops.
15740         * cfgloop.h (struct loop): Add single_exit field.
15741         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
15742         (mark_single_exit_loops): Declare.
15743         (tree_num_loop_insns): Declare.
15744         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
15745         (duplicate_loop_to_header_edge): Use it.
15746         * common.opt (fivcanon): New flag.
15747         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
15748         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
15749         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
15750         (bsi_insert_on_edge_immediate): New function.
15751         * tree-flow.h (bsi_insert_on_edge_immediate,
15752         canonicalize_induction_variables, tree_unroll_loops_completely,
15753         create_iv): Declare.
15754         * tree-optimize.c (init_tree_optimization_passes): Add
15755         pass_iv_canon and pass_complete_unroll.
15756         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
15757         * tree-scalar-evolution.c (get_loop_exit_condition,
15758         get_exit_conditions_rec, number_of_iterations_in_loop,
15759         scev_initialize): Use single_exit information.
15760         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
15761         missing assumptions.
15762         (loop_niter_by_eval):  Return number of iterations as unsigned
15763         int.
15764         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
15765         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
15766         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
15767         New passes.
15768         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
15769         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
15770         the defining statement is ready.
15771         * tree-vectorizer.c (vect_create_iv_simple): Removed.
15772         (vect_create_index_for_array_ref, vect_transform_loop_bound):
15773         Use create_iv.
15774         (vect_transform_loop_bound): Use single_exit information.
15775         (vect_analyze_loop_form): Cleanup bogus tests.
15776         (vectorize_loops): Do not call flow_loop_scan.
15777         * tree.h (may_negate_without_overflow_p): Declare.
15778         * fold-const.c (may_negate_without_overflow_p): Split out from ...
15779         (negate_expr_p): ... this function.
15780         (tree_expr_nonzero_p): Handle overflowed constants correctly.
15781         * doc/invoke.texi (-fivcanon): Document.
15782         * doc/passes.texi: Document canonical induction variable creation.
15783
15784 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15785
15786         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
15787         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
15788         using the mode of the operand to decide between them.
15789         * config/mips/mips.md (MOVECC): New mode macro.
15790         (ccreg): New mode attribute.
15791         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
15792         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
15793         (mov[sd]icc): Redefine using :GPR.
15794
15795 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15796
15797         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
15798         (mips_prefetch_cookie): New function.
15799         * config/mips/mips.c (print_operand_address): Fix handling of
15800         ADDRESS_CONST_INT.
15801         (mips_emit_prefetch): Delete.
15802         (mips_prefetch_cookie): New function.
15803         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
15804         mode of QImode for the address_operand.  Use mips_prefetch_cookie
15805         to calculate the first "pref" operand.
15806         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
15807         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
15808
15809 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
15810
15811         * arm.md: Include predicates.md.
15812         * predicates.md: New file.
15813         * arm.c (s_register_operand, arm_hard_register_operand)
15814         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
15815         (arm_immediate_operand, arm_neg_immediate_operand)
15816         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
15817         (arm_add_operand, arm_addimm_operand, arm_not_operand)
15818         (offsettable_memory_operand, alignable_memory_operand)
15819         (arm_reload_memory_operand, arm_float_rhs_operand)
15820         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
15821         (index_operand, shiftable_operator, logical_binary_operator)
15822         (shift_operator, equality_operator, arm_comparison_operator)
15823         (minmax_operator, cc_register, dominant_cc_register)
15824         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
15825         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
15826         (const_shift_operand, load_multiple_operation)
15827         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
15828         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
15829         (cirrus_register_operand, cirrus_fp_register)
15830         (cirrus_shift_const): Delete, replaced with equivalents in
15831         predicates.md.
15832         (shift_op): Handle ROTATE.
15833         * arm-protos.h: Delete declarations for above.
15834         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
15835         * t-arm (MD_INCLUDES): Add predicates.md.
15836         (s-preds): Depends on MD_INCLUDES.
15837
15838 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15839
15840         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
15841         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
15842         patterns.  Redefine using :GPR.  Give the match_operator a mode.
15843         Use '%2' rather than '%z2' for operand 2.
15844
15845 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15846
15847         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
15848         attribute.
15849
15850 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15851
15852         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
15853         of internal patterns.
15854         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
15855         Redefine using :P.
15856         (tablejump): Use expand_binop to calculate address.  Adjust names
15857         of internal patterns.
15858         (tablejump[sd]i): Renamed from tablejump_internal[12].
15859         Redefine using :P.
15860         (tablejump_mips16[12]): Delete.
15861
15862 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15863
15864         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
15865         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
15866         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
15867         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
15868         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
15869
15870 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15871
15872         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
15873         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
15874         using :GPR.
15875         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
15876         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
15877         (*branch_equality[sd]i_inverted): Likewise
15878         branch_equality{,_di}_inverted.
15879         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
15880         Redefine using :GPR.
15881
15882 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
15883
15884         * rtl.def: Reorganize, placing all codes used only in machine
15885         descriptions at the end.
15886
15887         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
15888         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
15889         rtx_name, rtx_format arrays by direct reference to rtl.def,
15890         first undefining GENERATOR_FILE.  Define enum insn_note and
15891         note_insn_name array by direct reference to insn-notes.def.
15892         (adjust_field_rtx_def): Remove local definition of rtx_name.
15893         Use symbolic names for insn notes.
15894         * Makefile.in (gengtype.o): Update dependencies.
15895
15896 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
15897
15898         * basic-block.h (struct basic_block_def): Reorder fields to
15899         eliminate interior padding.  Remove 'partition' field.
15900         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
15901         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
15902         (BB_COPY_PARTITION): New macros.
15903         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
15904         Replace all references to the 'partition' field of a basic
15905         block with new macros.
15906
15907         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
15908         * final.c (final_scan_insn): Don't handle it.
15909         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
15910         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
15911         * sched-rgn.c (sched_is_disabled_for_current_region_p):
15912         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
15913
15914 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15915
15916         * c-decl.c (c_init_decl_processing): Adjust
15917         build_common_tree_nodes call.
15918         * expmed.c (const_mult_add_overflow_p): Use
15919         build_distinct_type_copy.
15920         * stor-layout.c (early_type_list): Remove.
15921         (layout_type): Don't append to early_type_list.
15922         (initialize_sizetypes): Add signed_p argument.
15923         (set_sizetype): Overwrite the stub type nodes directly.
15924         * tree.c (copy_node_stat): Clear a type's value cache here ...
15925         (build_distinct_type): ... not here.
15926         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
15927         * tree.h (initialize_sizetypes): Add signed_p argument.
15928         (build_common_tree_nodes): Likewise.
15929
15930         * objc/objc-act.c (get_static_reference): Use
15931         build_variant_type_copy.
15932         (get_protocol_reference): Likewise.
15933         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
15934
15935 2004-08-24  Richard Henderson  <rth@redhat.com>
15936             Andrew Pinski  <apinski@apple.com>
15937
15938         * gimplify.c (gimplify_array_ref_to_plus): Delete.
15939         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
15940         for ARRAY_REF.
15941
15942         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
15943         ARRAY_REF also to get to the STRING_CST.
15944
15945 2004-08-24  Paul Brook  <paul@codesourcery.com>
15946
15947         * config/arm/arm.c (arm_override_options): Update error message.
15948         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
15949         TARGET_HARD_FLOAT_ABI.
15950         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
15951         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
15952
15953 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
15954
15955         PR target/17093
15956         * config/m32r.md (movsi_sda): Add SI mode specification to
15957         UNSPEC.
15958
15959 2004-08-24  Nick Clifton  <nickc@redhat.com>
15960
15961         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
15962         of seth_add3_operand.
15963
15964 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15965
15966         * Makefile.in (PROTO_OBJS): Add errors.o.
15967         * protoize.c (fancy_abort): Remove.
15968         * mips-tfile.c (fancy_abort): Add parameters.
15969
15970 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
15971
15972         * doc/trouble.texi (C++ misunderstandings): Fix example code.
15973
15974 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
15975
15976         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
15977         (host-default.o): Add dependency on HOOKS_H.
15978         * config/x-linux: Likewise.
15979         * config/x-solaris: Likewise.
15980         * config/i386/x-mingw32: Likewise.
15981         * config/rs6000/x-darwin: Likewise.
15982
15983 2004-08-23  James E Wilson  <wilson@specifixinc.com>
15984
15985         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
15986         DEF_REG_NOTE.
15987
15988 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
15989
15990         PR c/14492
15991         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
15992
15993 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
15994
15995         * cfg.c (check_bb_profile): Fix typos.
15996         * function.c (assign_parm_is_stack_parm): Likewise.
15997         * tree-nested.c: Likewise.
15998
15999 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
16000
16001         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
16002         Remove TYPECODE.
16003         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
16004
16005 2004-08-23  Eric Christopher  <echristo@redhat.com>
16006
16007         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
16008         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
16009         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
16010         * target.h: Ditto.
16011         * hooks.h: Include machmode.h.
16012         (hook_bool_mode_false): Declare.
16013         * hooks.c (hook_bool_mode_false): Define.
16014         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
16015         * stor-layout.c (layout_type): Ditto.
16016         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
16017         Define to target macro.
16018         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
16019         * config/arm/arm.c: Ditto. Use.
16020         * config/arm/arm.h: Ditto.
16021         * config/arm/arm-protos.h: Ditto.
16022         * config/i386/i386.c: Ditto.
16023         * config/i386/i386.h: Ditto.
16024         * config/rs6000/rs6000.c: Ditto.
16025         * config/rs6000/rs6000.h: Ditto.
16026         * config/sh/sh.c: Ditto.
16027         * config/sh/sh.h: Ditto.
16028         * config/sh/sh-protos.h: Ditto.
16029         * config/sh/sh.md: Use.
16030         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
16031         to TARGET_VECTOR_MODE_SUPPORTED_P.
16032
16033 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
16034
16035         * Makefile.in (BUILD_ERRORS): Set to build-errors.
16036         (errors.o): New target for host.
16037         (build-errors.o): New target for build.
16038         (genobjs): Replace errors.o with build-errors.
16039         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
16040         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
16041         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
16042         (fix-header.o): Add errors.h
16043         * collect2.c (fancy_abort): Add parameters.
16044         * collect2.h (fancy_abort): Don't declare.
16045         * errors.h (fancy_abort): Don't declare.
16046         * errors.c: Include either bconfig.h or config.h.
16047         (fancy_abort): Trim filename.
16048         * fix-header.c (v_fatal, fatal): Remove.
16049         (progname): Remove definition.
16050         (main): Set progname here.
16051         * gcc.c (fancy_abort): Add parameters.
16052         * gcc.h (fancy_abort): Remove declaration.
16053         * gcov.c (fancy_abort): Remove.
16054         * rtl.h (fancy_abort): Don't declare.
16055         (abort): Don't define.
16056         * tree.h (fancy_abort): Don't declare.
16057         (abort): Don't define.
16058         * system.h (fancy_abort): Declare.
16059         (abort): Define to fancy_abort.
16060         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
16061
16062         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
16063         (usize_type, ubitsizetype): Remove.
16064         * stor-layout.c (set_sizetype): Don't initialize usizetype,
16065         ubitsizetype.
16066         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
16067
16068         * tree.h (build_distinct_type_copy): New.
16069         (build_type_copy): ... here.  Rename to ...
16070         (build_variant_type_copy): ... here.
16071         * tree.c (build_qualified_type): Rename build_type_copy call.
16072         (build_distinct_type_copy): New, broken out of ...
16073         (build_type_copy): ... here.  Rename to ...
16074         (build_variant_type_copy): ... here.  Use
16075         build_distinct_type_copy.
16076         (build_common_tree_nodes_2): Rename build_type_copy call.
16077         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
16078         call.
16079         (handle_packed_attribute, handle_unused_attribute,
16080         handle_transparanet_union_attribute, handle_aligned_attribute,
16081         handle_deprecated_attribute): Likewise.
16082         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
16083         Likewise.
16084         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
16085         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
16086         build_distinct_type_copy.
16087
16088 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16089
16090         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
16091         attribute.
16092
16093 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16094
16095         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
16096         loads and stores.
16097         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
16098         formerly unnamed patterns.  Redefine using :P for the address.  Remove
16099         explicit length attributes.
16100
16101 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16102
16103         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
16104         New functions.
16105         (single_reachable_address): Use them.
16106         (schedule_sm): Add dump.
16107         (is_call_clobbered_ref): New function.
16108         (determine_lsm_reg): Check whether the reference is call clobbered.
16109         Only work for gimple_reg_type values.
16110
16111 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16112
16113         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
16114         $31 store insns.  Redefine using :GPR.
16115
16116 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16117
16118         * config/mips/mips.md (P): New mode macro.
16119         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
16120         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
16121         Add mode attributes.
16122
16123 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16124
16125         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
16126         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
16127         later constants to cover the gap.
16128         (load, store): New mode attributes.
16129         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
16130         Use new unspec constants.
16131
16132 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16133
16134         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
16135         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
16136         to use register_operand rather than uns_arith_operand as the predicate
16137         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
16138         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
16139         Redefine using :GPR.  Make same predicate change here.  Extend the
16140         commutativity of operands 1 and 2 from the SImode version to the
16141         DImode one.
16142         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
16143         but with no predicate changes.
16144         (*nor[sd]i3): Redefine using :GPR.
16145
16146 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16147
16148         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
16149         noreturn functions.
16150
16151 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16152
16153         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
16154         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
16155         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
16156         rather than "%z2" (with a fake const0_rtx for operand 2).
16157         (ffs[sd]i2): Redefine using :GPR.
16158         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
16159
16160 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16161
16162         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
16163
16164 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16165
16166         * config/mips/mips.md (any_extend): New code macro.
16167         (u, su): New code attributes.
16168         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
16169         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
16170         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
16171         (*{s,u}mul_acc_di): Redefine using any_extend.
16172         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
16173         to reflect real insn names.
16174         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
16175         with an any_extend template.
16176         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
16177         Add '*' to name.
16178
16179 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16180
16181         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
16182         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
16183         (mul[sd]i3_r4000): Redefine using :GPR.
16184         (mulsi3_mult3): Don't check TARGET_MAD separately.
16185         (muldi3_mult3): Moved after mulsi_mult3.
16186
16187 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16188
16189         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
16190         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
16191         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
16192         (TARGET_GAS, TARGET_MIPS_AS): Delete.
16193         (TARGET_GPWORD): Define to true for n32 on IRIX.
16194         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
16195         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
16196         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
16197         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
16198         (MDEBUG_ASM_SPEC): Delete, folding into...
16199         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
16200         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
16201         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
16202         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
16203         to define asm_abi_default_spec.
16204         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
16205         (TARGET_ASM_SELECT_SECTION): Delete.
16206         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
16207         for non-mips16 code, removing previous workaround for SGI assemblers.
16208         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
16209         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
16210         (override_options): Remove !TARGET_GAS and !have_named_sections code.
16211         (print_operand): Fold TARGET_GAS conditionals into asm strings.
16212         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
16213         ASM_STABS_OP and ASM_STABN_OP.
16214         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
16215         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
16216         (mips_output_function_prologue): Remove !TARGET_GAS code.
16217         (mips_select_rtx_section): Remove !have_named_sections code.
16218         (mips_select_section): Delete.
16219         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
16220         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
16221         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
16222         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
16223         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
16224         * config/mips/windiss.h (ASM_SPEC): Likewise.
16225
16226 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16227
16228         * read-rtl.c (map_value, mapping, macro_group): New structures.
16229         (BELLWETHER_CODE): New macro.
16230         (modes, codes, bellwether_codes): New variables.
16231         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
16232         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
16233         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
16234         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
16235         (add_map_value, initialize_macros): New functions.
16236         (def_hash, def_hash_eq_p): Generalize to anything that points to,
16237         or starts with, a char * field.
16238         (find_macro, read_mapping, check_code_macro): New functions.
16239         (read_rtx_1): New, split out from read_rtx.  Handle the new
16240         define_{mode,code}_{macro,attr} constructs.  Use find_macro
16241         to parse the name of a code or mode.  Use BELLWETHER_CODE to
16242         extract the format and to choose a suitable code for rtx_alloc.
16243         Modify recursive invocations to use read_rtx_1.
16244         (read_rtx): Call initialize_macros.  Apply code and mode macros
16245         to the rtx returned by read_rtx_1.  Cache everything after the
16246         first macro expansion for subsequent read_rtx calls.
16247         * doc/md.texi: Document new .md constructs.
16248         * config/mips/mips.md (GPR): New mode macro.
16249         (d, si8_di5): New mode attributes.
16250         (any_cond): New code macro.
16251         (add[sd]i3): Redefine using :GPR.
16252         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
16253         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
16254         previously unnamed MIPS16 patterns.
16255         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
16256         lines.  Don't match (plus (const_int 0) ...).
16257         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
16258         Use a define_split to generate the addition.
16259         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
16260         (subsi3_internal): Delete.
16261         (*subsi3_extended): Renamed from subsi3_internal_2.
16262         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
16263         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
16264         using an any_cond template.
16265
16266 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16267
16268         * read-rtl.c (read_rtx): Tidy use of format_ptr.
16269
16270 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16271
16272         * read-rtl.c (string_obstack): New file-scope variable.
16273         (read_string, read_quoted_string, read_braced_string)
16274         (read_escape): Remove obstack parameter and use string_obstack instead.
16275         (read_rtx): Remove function-local rtl_obstack and initialize
16276         string_obstack instead.  Update call to read_string.
16277
16278 2004-08-22  Andrew Pinski  <apinski@apple.com>
16279
16280         PR c/15262
16281         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
16282         expression is not constant.
16283         (c_finish_return): Do not go through INDIRECT_REF when looking
16284         for the inner expression of an ADDR_EXPR for warning about.
16285
16286 2004-08-22  Richard Henderson  <rth@redhat.com>
16287
16288         PR 17075
16289         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
16290         create new blocks and fall through.
16291         (expand_gimple_basic_block): Update to match.
16292
16293 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
16294
16295         * reload.c (find_reloads_address): Make return value tri-state.
16296         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
16297         (find_reloads): Assume that reloaded addresses match 'o' or
16298         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
16299         returned 1 (not -1).  Omit optional reloads for address operands
16300         only if find_reloads_address returned 1 (not -1).
16301
16302         * config/s390/s390.c (legitimize_reload_address): New function.
16303         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
16304         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
16305         legitimize_reload_address.
16306
16307 2004-08-22  Richard Hendersion  <rth@redhat.com>
16308
16309         * tree.h (SAVE_EXPR_RESOLVED_P): New.
16310         * gimplify.c (gimplify_save_expr): Use it.
16311         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
16312         on the temporary variable.
16313
16314 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
16315
16316         * fold-const.c (rtl_expr_nonnegative_p): Delete.
16317         * tree.h (rtl_expr_nonnegative_p): Remove.
16318
16319 2004-08-22  Steven Bosscher  <stevenb@suse.de>
16320
16321         * config/i386/ppro.md (ppro_complex_insn): Add missing check
16322         for cpu==pentiumpro.
16323
16324         * combine.c (struct reg_stat): Fix comment typo.
16325
16326 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
16327
16328         * c-tree.h (c_sizeof_nowarn): Remove.
16329
16330 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
16331
16332         * c-decl.c (set_array_declarator_type): Rename to
16333         set_array_declarator_inner.
16334         (build_c_parm, build_attrs_declarator, build_function_declarator):
16335         New functions.
16336         (make_pointer_declarator): Call build_attrs_declarator.
16337         * c-tree.h (set_array_declarator_type): Rename to
16338         set_array_declarator_inner.
16339         (build_c_parm, build_attrs_declarator, build_function_declarator):
16340         New prototypes.
16341         * c-parse.in (after_type_declarator,
16342         parm_declarator_starttypename, parm_declarator_nostarttypename,
16343         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
16344         firstparm): Use these functions
16345
16346 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
16347
16348         * c-decl.c (build_array_declarator, set_array_declarator_type,
16349         start_decl, grokdeclarator, grokparms): Change boolean parameters
16350         to type bool.
16351         * c-tree.h (build_array_declarator, set_array_declarator_type,
16352         start_decl): Update prototypes.
16353         * c-decl.c, c-parse.in: All callers changed.
16354
16355 2004-08-21  Mike Stump  <mrs@apple.com>
16356
16357         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
16358         (darwin_fix_and_continue): Likewise.
16359         (darwin_fix_and_continue_switch): Likewise.
16360         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
16361         (darwin_fix_and_continue): Likewise.
16362         (darwin_fix_and_continue_switch): Likewise.
16363
16364 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
16365
16366         PR  c++/16030
16367         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
16368         Remove, merging into ...
16369         (gen_stdcall_or_fastcall_suffix): New function, returning tree
16370         rather than const char*, and accepting additional parameter.
16371         Don't add suffix to '*'-prefixed symbols or variadic functions.
16372         (i386_pe_encode_section_info): Adjust for call to new function.
16373         Call change_decl_assembler_name.
16374
16375 2004-08-20  Mike Stump  <mrs@apple.com>
16376
16377         * config/darwin.c (machopic_indirect_data_reference): Mark
16378         stubs as defined.
16379         * config/386/386.c (darwin_local_data_pic): Add.
16380         (legitimate_constant_p): Reorder so that PLUS handling runs
16381         before darwin_local_data_pic to match the ordering in
16382         legitimate_pic_address_disp_p and so that MINUS runs after
16383         darwin_local_data_pic as otherwise the darwin_local_data_pic
16384         logic can be skipped, which would be very bad.
16385         (legitimate_pic_address_disp_p): Move from from here to
16386         darwin_local_data_pic so it can be reused.
16387
16388 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
16389
16390         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
16391         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
16392         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
16393         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
16394         (RS6000_ABI_NAME): Define as "linux".
16395         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
16396         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
16397         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
16398         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
16399         * config/rs6000/rs6000.c (dot_symbols): New global var.
16400         (rs6000_output_function_entry): New function, modified for
16401         !DOT_SYMBOLS..
16402         (print_operand <case 'z'>): ..extracted from here.
16403         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
16404         (rs6000_output_function_epilogue): Likewise.
16405         (rs6000_elf_declare_function_name): Likewise.
16406         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
16407         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
16408         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
16409         * configure: Regenerate.
16410         * config.in: Regenerate.
16411
16412 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
16413
16414         * reload.c (find_reloads_address): Fix thinko in previous change.
16415
16416         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
16417         a CONST_INT.
16418
16419 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
16420
16421         PR rtl-optimization/17099
16422         * combine.c (force_to_mode): Check if inner_mask has any bits set
16423         outside of GET_MODE (x) instead of op_mode.
16424
16425 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
16426
16427         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
16428         fragment.
16429         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
16430         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
16431         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
16432         architecture.
16433         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
16434         configurations.
16435         * config/arm/t-symbian: New file.
16436
16437 2004-08-20  Andrew Pinski  <apinski@apple.com>
16438
16439         * regrename.c (kill_value_regno): ANSIfy.
16440
16441 2004-08-20  Dale Johannesen  <dalej@apple.com>
16442
16443         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
16444
16445 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
16446
16447         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
16448         (kill_value_regno): New function, derived from kill_value.
16449         (kill_value): Update.
16450         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
16451
16452 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
16453
16454         Fix PR tree-optimization/17111
16455         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
16456         of non-value_handles.
16457         (bitmap_set_contains): All constants are in every set.
16458
16459 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
16460
16461         * fold-const.c (round_up, round_down): Use build_int_cst.
16462         Optimize common case.
16463
16464 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
16465             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16466
16467         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
16468         one_only_data_section): Rename to som_readonly_data_section,
16469         som_one_only_readonly_data_section and som_one_only_data_section.
16470         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
16471         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
16472         conditional defines.
16473         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
16474         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
16475         string values.
16476         (pa_select_section): Use renamed section functions.
16477         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
16478         SOM_READONLY_DATA_SECTION_FUNCTION,
16479         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
16480         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
16481         Define here ...
16482         * config/pa/som.h: ... not here.
16483         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
16484         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
16485         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
16486         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
16487         (READONLY_DATA_SECTION): Use som_readonly_data_section.
16488
16489 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
16490
16491         * fold-const.c (int_const_binop): Don't generate non-overflowing
16492         size-types specially.
16493         (fold_convert_const): Likewise.
16494
16495         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
16496         clear cache on copied sizetype.
16497
16498 2004-08-20  Ben Elliston  <bje@au.ibm.com>
16499
16500         * configure.ac: Don't escape apostrophe in --enable-coverage help.
16501         * configure: Regenerate.
16502
16503 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
16504
16505         PR 5620
16506         * gcc.c (struct stat input_stat): Don't define if
16507         HOST_LACKS_INODE_NUMBERS
16508         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
16509         than stat to determine if temp file is same as input file.
16510         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
16511         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
16512
16513 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
16514
16515         * configure.ac (mips*-*-*): Print an error if not using GAS.
16516         * configure: Regenerated.
16517         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
16518         comments about buggy MIPSpro assemblers.
16519         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
16520         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
16521         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
16522         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
16523         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
16524         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
16525         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
16526         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
16527         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
16528         of more general IRIX 6 definitions.
16529         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
16530         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
16531         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
16532         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
16533         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16534         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
16535         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
16536         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
16537         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
16538         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
16539         (LINK_SPEC): Move most of definition to iris.h.
16540         (SUBTARGET_LINK_SPEC): New macro.
16541         (IRIX_STARTFILE_SPEC): Fold into...
16542         (STARTFILE_SPEC): ...here.
16543         (IRIX_ENDFILE_SPEC): Fold into...
16544         (ENDFILE_SPEC): ...here.
16545         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
16546         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
16547         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
16548         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
16549         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
16550         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
16551         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
16552         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16553         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
16554         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
16555         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
16556         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
16557         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
16558         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
16559         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
16560         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
16561         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
16562         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
16563         (TARGET_IRIX6): Define to 1.
16564         (DRIVER_SELF_SPECS): Define.
16565         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
16566         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
16567         (SUBTARGET_LINK_SPEC): New macro.
16568         (IRIX_STARTFILE_SPEC): Fold into...
16569         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
16570         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
16571         (LIB_SPEC, LIBGCC_SPEC): Use them.
16572         (LIB_SPEC): Remove !mabi=* case.
16573         (IRIX_ENDFILE_SPEC): Fold into...
16574         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
16575         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
16576         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
16577         (TARGET_IRIX6): New macro.
16578         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
16579         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
16580         (LABEL_AFTER_LOC): Delete.
16581         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
16582         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
16583         (mips_build_builtin_va_list): Check TARGET_IRIX6.
16584         (override_options): Remove TARGET_SGI_O32_AS-related code.
16585         (irix_output_external_libcall): Make static.
16586         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
16587         LABEL_AFTER_LOC.
16588         (mips_file_start): Tidy guard for ABI sections.  Remove use of
16589         ABICALLS_ASM_OP; use .abicalls instead.
16590         (mips_output_aligned_decl_common, mips_declare_object_name)
16591         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
16592         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
16593         .globl foo .text directives.
16594         (irix_asm_named_section_1, irix_asm_named_section)
16595         (irix_section_align_entry, irix_section_align_htab)
16596         (irix_orig_asm_out_file, irix_section_align_entry_eq)
16597         (irix_section_align_entry_hash, irix_asm_output_align)
16598         (irix_file_start, irix_section_align_1, copy_file_data)
16599         (irix_file_end, irix_section_type_flags): Delete.
16600         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
16601         Use standard section syntax.  Remove protective "jr $31".
16602         (__gcc_fini): Likewise .gcc_fini.
16603         * config/mips/irix-crtn.asm: Adjust sections accordingly.
16604         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
16605         iris5gas.h.
16606         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
16607         from t-irix-gld.
16608         (EXTRA_MULTILIB_PARTS): Define.
16609         * config/mips/t-iris6: Remove bogus comment.
16610         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
16611         * config/mips/iris5gas.h, config/mips/iris5gld.h,
16612         config/mips/iris6gas.h, config/mips/iris6gld.h,
16613         config/mips/t-iris5-as, config/mips/t-iris5-gas
16614         config/mips/t-irix-gld: Delete.
16615         * config/mips/iris.h: New file.
16616         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
16617
16618 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
16619
16620         * postreload.c (reload_cse_move2add): Allow any condjump, but check
16621         that the implicit set isn't clobbered in the jump insn.
16622
16623 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
16624
16625         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
16626         * optabs.c (init_optabs): Don't check it.
16627         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
16628         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
16629
16630 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
16631
16632         * config/s390/s390.md (s390_warn_framesize_string)
16633         (s390_warn_dynamic_string, s390_stack_size_string)
16634         (s390_stack_guard_string): New global string variables.
16635         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
16636         (s390_stack_guard): New global variables.
16637         (override_options): Added checks for the new options.
16638         (s390_emit_prologue): Emit stack check and trap code and perform
16639         compile time stack size checking.
16640
16641         * config/s390/s390.h (TARGET_OPTIONS): Added new options
16642         "warn-framesize", "warn-dynamicstack", "stack-size" and
16643         "stack-guard".
16644
16645         * doc/invoke.texi: Added documentation for the new options.
16646
16647 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
16648
16649         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
16650         to eliminate warning.
16651         (linear_search_fdes): Declare p as unsigned.
16652         (binary_search_mixed_encoding_fdes): Likewise.
16653         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
16654         to eliminate warning.
16655         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
16656         type cast.
16657
16658 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
16659
16660         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
16661         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
16662         instead of one.  Check for strictly legitimate address.
16663         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
16664         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
16665
16666 2004-08-19  Eric Christopher  <echristo@redhat.com>
16667
16668         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
16669         * langhooks.h (unsave_expr_now): Ditto.
16670         * tree.h (unsave_expr_1): Remove prototype.
16671         (lhd_unsave_expr_now): Rename to unsave_expr_now.
16672         * tree-inline.c (unsave_expr_1): Move here
16673         from tree.c. Make static.
16674         (unsave_expr_now): Rename from lhd_unsave_expr_now.
16675         * tree-sra.c: Fix up for rename.
16676         * tree-ssa-copy.c: Ditto.
16677         * tree-eh.c: Ditto.
16678         * tree.c (unsave_expr_1): Move to tree-inline.c.
16679
16680 2004-08-19  Caroline Tice  <ctice@apple.com>
16681
16682         * config/i386/cygming.h (switch_to_section):  Fix typo (change
16683         in_unlikely_text_section to in_unlikely_executed_text).
16684
16685 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
16686
16687         * vec.h (VEC_lower_bound): New macro.
16688
16689 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
16690
16691         PR target/16446
16692         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
16693         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
16694         treat each ABI separately.  Deal with n32/n64 complex float arguments.
16695         (function_arg): Add associated complex handling here.
16696
16697 2004-08-19  Richard Henderson  <rth@redhat.com>
16698
16699         * config/arm/arm.c (arm_gen_load_multiple): Use
16700         adjust_automodify_address.  Take base memory and offset instead
16701         of unchanging/struct/scalar bits.
16702         (arm_gen_store_multiple): Likewise.
16703         (arm_gen_movmemqi): Use adjust_automodify_address.
16704         * config/arm/arm-protos.h: Update decls.
16705         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
16706         (store_multiple): Similarly.
16707
16708 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
16709
16710         * regclass.c (globalize_reg): Update call_really_used_regs.
16711
16712 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
16713
16714         * doc/invoke.texi (integer-share-limit): Document.
16715
16716         * tree.h (TYPE_CACHED_VALUES_P): New.
16717         (TYPE_CACHED_VALUES): New.
16718         (TYPE_ORIG_SIZE_TYPE): Adjust.
16719         * tree.def (INTEGER_CST): Update documentation.
16720         * tree.c: Inlcude params.h.
16721         (build_int_cst): Cache small values.
16722         (build_type_copy): Do not copy the value cache.
16723         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
16724         unneeded zeroing.
16725         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
16726         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
16727         cache.
16728         * fold-const.c (force_fit_type): Copy value when setting
16729         overflows.
16730         (int_const_binop): Likewise.
16731         * stor-layout.c: Include params.h
16732         (set_sizetype): Create values cache.
16733         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
16734         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
16735         * params.h (INTEGER_SHARE_LIMIT): New.
16736         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
16737
16738 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
16739
16740         * gimplify.c (gimplify_minimax_expr): Remove.
16741         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
16742
16743 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
16744
16745         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
16746         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
16747
16748 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
16749
16750         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
16751
16752 2004-08-18  Andrew Pinski  <apinski@apple.com>
16753
16754         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
16755
16756 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
16757
16758         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
16759         (__aeabi_ul2f): Likewise.
16760
16761 2004-08-18  Richard Henderson  <rth@redhat.com>
16762
16763         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
16764         move to rtl completely.
16765         (struct meminsnbuf, xtensa_emit_block_move): Remove.
16766         (xtensa_find_mode_for_size): Remove.
16767         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
16768         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
16769
16770 2004-08-18  Richard Henderson  <rth@redhat.com>
16771
16772         * config/mcore/mcore.c (mode_from_align): Remove DImode.
16773         (block_move_sequence): Rewrite to use adjust_address.
16774         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
16775         Return boolean indicating success/failure.
16776         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
16777         * config/mcore/mcore.md (movmemsi): Update to match.
16778
16779 2004-08-18  Mike Stump  <mrs@apple.com>
16780
16781         * doc/invoke.texi (-mfix-and-continue): Add support for
16782         fast turn around debugging.
16783         (-ffix-and-continue): Likewise.
16784         (-mindirect-data): Likewise.
16785         (-findirect-data): Likewise.
16786         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
16787         (indirect_data): Likewise.
16788         (machopic_data_defined_p): Likewise.
16789         (machopic_output_indirection): Likewise.
16790         (darwin_encode_section_info): Likewise.
16791         (darwin_fix_and_continue): Likewise.
16792         (darwin_fix_and_continue_switch): Likewise.
16793         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
16794         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
16795         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
16796         (SUBTARGET_OPTIONS): Likewise.
16797         (darwin_fix_and_continue): Likewise.
16798         (darwin_fix_and_continue_switch): Likewise.
16799         (TARGET_FIX_AND_CONTINUE): Likewise.
16800         * config/rs6000.c (rs6000_emit_prologue): Likewise.
16801
16802 2004-08-19  Steven Bosscher  <stevenb@suse.de>
16803
16804         * basic-block.h (struct edge_def): Remove crossing_edge.
16805         (EDGE_CROSSING): New define.
16806         (EDGE_ALL_FLAGS): Update.
16807         * bb-reorder.c (find_traces_1_round, better_edge_p,
16808         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
16809         find_jump_block, fix_crossing_conditional_branches,
16810         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
16811         Replace all occurences of crossing_edge with an edge flag check
16812         or set/reset.
16813         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
16814         try_crossjump_bb): Likewise.
16815         * cfglayout.c (fixup_reorder_chain): Likewise.
16816         * cfgrtl.c (force_nonfallthru_and_redirect,
16817         commit_one_edge_insertion): Likewise.
16818
16819         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
16820         * tree-flow.h (compute_dominance_frontiers): Move prototype...
16821         * basic-block.h:  ...here.
16822         * tree-cfg.c (compute_dominance_frontiers_1,
16823         compute_dominance_frontiers): Move from here...
16824         * cfganal.c: ...to here.  Include timevar.h.
16825
16826 2004-08-18  James E Wilson  <wilson@specifixinc.com>
16827
16828         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
16829         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
16830
16831         * config/mips/mips.md (type): Add frdiv.
16832         (divsf3+1, divsf3+2): Change type to frdiv.
16833         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
16834         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
16835
16836         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
16837         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
16838         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
16839         * config/mips/5000.md (r5k_fdiv_single): Likewise.
16840         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
16841         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
16842         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
16843         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
16844         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
16845         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
16846         Likewise.
16847         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
16848
16849 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
16850
16851         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
16852         get regression tester working again.
16853
16854 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
16855
16856         * insn-notes.def, reg-notes.def: New files.
16857         * rtl.h: Use them to define enum insn_note and enum reg_note.
16858         * rtl.c: Use them to define note_insn_name and reg_note_name.
16859         * Makefile.in (RTL_BASE_H): Update.
16860
16861         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
16862         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
16863
16864 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
16865
16866         * arm.c (arm_size_rtx_costs): New function.
16867         (arm_override_options): Use it if optimizing for space.
16868
16869 2004-08-18  Richard Henderson  <rth@redhat.com>
16870
16871         * emit-rtl.c (gen_const_mem): New.
16872         * rtl.h (gen_const_mem): Declare.
16873         * expr.c (do_tablejump): Use it.
16874         * varasm.c (force_const_mem): Likewise.
16875         * config/darwin.c (machopic_indirect_data_reference): Likewise.
16876         (machopic_legitimize_pic_address): Likewise.
16877         * config/arm/arm.c (legitimize_pic_address): Likewise.
16878         * config/i386/i386.c (legitimize_pic_address): Likewise.
16879         (legitimize_tls_address): Likewise.
16880         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
16881         * config/ia64/ia64.md (load_fptr): Likewise.
16882         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
16883         * config/pa/pa.c (legitimize_pic_address): Likewise.
16884         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
16885         (rs6000_emit_move): Likewise.
16886         * config/s390/s390.c (legitimize_pic_address): Likewise.
16887         (legitimize_tls_address): Likewise.
16888         * config/s390/s390.md (casesi): Likewise.
16889         * config/sh/sh.c (sh_reorg): Likewise.
16890         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
16891         * config/v850/v850.md (casesi): Likewise.
16892
16893         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
16894         * config/sh/sh.c (prepare_move_operands): Remove incorrect
16895         use of MEM_READONLY_P.
16896
16897 2004-08-18  Steven Bosscher  <stevenb@suse.de>
16898
16899         * Makefile.in (OBJS-common): Add postreload-gcse.c.
16900         Add new postreload-gcse.o.
16901         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
16902         (lookup_as_function, insert, rehash_using_reg, use_related_value,
16903         equiv_constant): Use SAFE_HASH instead of safe_hash.
16904         (exp_equiv_p): Export.  Add for_gcse argument when comparing
16905         for GCSE.
16906         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
16907         find_comparison_args, fold_rtx, cse_insn): Update callers.
16908         (hash_rtx): New function derived from old canon_hash and bits
16909         from gcse.c hash_expr_1.
16910         (canon_hash_string): Rename to hash_rtx_string.
16911         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
16912         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
16913         (cselib_lookup): Update this caller.
16914         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
16915         Make static.
16916         (hash_expr): Call hash_rtx.
16917         (ldst_entry): Likewise.
16918         (expr_equiv_p): Call exp_equiv_p.
16919         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
16920         reg_used_on_edge, reg_set_between_after_reload_p,
16921         reg_used_between_after_reload_p, get_avail_load_store_reg,
16922         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
16923         get_bb_avail_insn, hash_scan_set_after_reload,
16924         compute_hash_table_after_reload,
16925         eliminate_partially_redundant_loads, gcse_after_reload,
16926         get_bb_avail_insn, gcse_after_reload_main): Remove.
16927         * postreload-gcse.c: New file, reincarnating most of the above.
16928         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
16929         (gcse_after_reload_main): Update prototype.
16930         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
16931         * passes.c (rest_of_handle_gcse2): Use it.
16932
16933 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
16934
16935         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
16936         (pass_loop_done): Likewise.
16937
16938 2004-08-18  Andrew Pinski  <apinski@apple.com>
16939
16940         * config/rs6000/darwin.md: Delete the altivec patterns which are
16941         handled differently now.
16942         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
16943         (macho_correct_pic_di): Likewise.
16944         (call_indirect_nonlocal_darwin64): Likewise.
16945         Delete the save world/saveFP/saveVec patterns.
16946
16947         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
16948         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
16949         * config/rs6000/rs6000.md: Include darwin.md.
16950         (builtin_setjmp_receiver): Add DImode case.
16951         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
16952         Darwin bits.
16953
16954 2004-08-18  Matt Austern  <austern@apple.com>
16955
16956         Dead code stripping
16957         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
16958         * darwin.c (darwin_file_end): Mark file as potentially strippable.
16959
16960 2004-08-18  Richard Henderson  <rth@redhat.com>
16961
16962         * alias.c (readonly_fields_p): Remove.
16963         (objects_must_conflict_p): Don't call it.
16964         * tree.h (readonly_fields_p): Remove.
16965         * langhooks.h (struct lang_hooks): Remove honor_readonly.
16966         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
16967
16968 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
16969
16970         * tree-dfa.c (add_referenced_var): Only global variables are
16971         call-clobbered.
16972         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
16973         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
16974         all pointers dereferenced if the statement dereferences them.
16975         (create_name_tags): Do not create memory tags for pointers
16976         that have PT_ANYTHING set.
16977         Also check if PT_VARS is not empty before creating a name tag.
16978         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
16979         variables that share the same alias set with a pointer that
16980         may point anywhere.
16981         (add_may_alias): Add FIXME comment to remove clobbering
16982         aliased variables and tags.
16983         (replace_may_alias): Likewise.
16984         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
16985         (merge_pointed_to_info): If the original variable has not
16986         points-to information, call set_pt_anything.
16987         (add_pointed_to_var): Do not prevent adding a pointed-to
16988         variable if the pointers is PT_ANYTHING.
16989         If the variable is a global, set PT_GLOBAL_MEM.
16990         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
16991         pointer type only come in PTR+OFFSET flavours.
16992         Always call merge_pointed_to_info on PHI arguments that are
16993         SSA_NAMEs.
16994         (get_nmt_for): Mark call-clobbered tags whose pointer points
16995         to global memory.
16996         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
16997         values.
16998         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
16999         FLAGS.
17000         (add_stmt_operand): Abort if the caller tried to add a killing
17001         definition for a memory tag.
17002         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
17003         unnecessary checks.
17004
17005 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
17006
17007         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
17008         from call_used_regs.  Update call_really_used_regs.
17009         (CALL_REALLY_USED_REGISTERS): Define.
17010         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
17011         Replace call_used_regs with call_really_used_regs.
17012         (calc_live_regs, sh_media_register_for_return): Likewise.
17013         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
17014         * sh.md (return_media): Likewise.
17015
17016 2004-08-18  Andrew Pinski  <apinski@apple.com>
17017
17018         * config/darwin.c (machopic_legitimize_pic_address): Only set
17019         MEM_READONLY_P in the non TARGET_TOC case.
17020
17021 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
17022
17023         * rtl.def (NIL): Delete.
17024         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
17025         Tighten the syntax a little.
17026
17027         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
17028         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
17029         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
17030         * config/i386/predicates.md, config/m32r/m32r.h
17031         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
17032         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
17033         * config/sparc/sparc.h, doc/tm.texi:
17034         Replace all occurrences of NIL with UNKNOWN.
17035
17036 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
17037
17038         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
17039         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
17040         sequence inline.  Move drop_through_label code into this
17041         block, being the only place it is used.  Adjust comments.
17042
17043 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
17044
17045         * config/rs6000/altivec.md: Add new patterns for calls to
17046         save_world/rest_world functions.
17047
17048         * config/rs6000/rs6000-protos.h: (save_world_operation,
17049         restore_world_operation) new declarations.
17050
17051         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
17052         field added.
17053         (rs6000_stack_info): Set world_save_p field.
17054         (save_world_operation): New function.
17055         (restore_world_operation): New function.
17056         (compute_save_world_info): New function.
17057         (rs6000_stack_info): Call compute_save_world_info.
17058         (rs6000_emit_prologue): Check for world_save_p and generate
17059         pattern to call save_world for saving all non-volatile and
17060         special registers.
17061         (rs6000_emit_epilogue): Check for world_save_p and generate
17062         pattern to call rest_world to restore saved registers.
17063
17064         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
17065         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
17066         (rs6000_reg_names): New entries added for save_world_operation and
17067         restore_world_operation.
17068
17069 2004-08-18  Caroline Tice  <ctice@apple.com>
17070
17071         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
17072         "-freorder-blocks-and-partition" to the flags used in second
17073         stage of profiledbootstrap.
17074         * bb-reorder.c (push_to_next_round_p): Add new variable,
17075         next_round_is_last; set and use variable to make sure, when
17076         partitioning, that the last trace construction round consists
17077         of all (and only) cold basic blocks.
17078         (rotate_loop): Don't copy blocks that end in a section
17079         crossing jump.
17080         (copy_bb): Correctly initialize "partition" of duplicated bb.
17081         (add_unlikely_executed_notes): Add a comment.
17082         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
17083         to make sure, if function contains hot blocks, that the
17084         successors of ENTRY_BLOCK_PTR are hot; also, only look for
17085         crossing edges if the architecture supports named sections.
17086         (mark_bb_for_unlikely_executed_section): Modify to always
17087         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
17088         the basic block note insn.
17089         (fix_crossing_unconditional_branches): Remove extra space.
17090         (fix_edges_for_rarely_executed_code): Modify to only do
17091         partitioning work if the architecture supports named sections.
17092         (reorder_basic_blocks): Modify to only add
17093         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
17094         supports named sections.
17095         * c-common.c (handle_section_attribute): Initialize new global
17096         variable, user_defined_section_attribute, to true if user has
17097         specified one.
17098         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
17099         forward edges that cross section boundaries.
17100         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
17101         partitioning information if the architecture supports named
17102         sections.
17103         * cfgrtl.c (target.h): Add statement to include this.
17104         (rtl_split_block): Make sure newly created bb gets correct
17105         partition.
17106         (try_redirect_by_replacing_jump): Make sure redirection isn't
17107         attempting to cross section boundaries.
17108         (force_nonfallthru_and_redirect): Only do partition fix up if
17109         architecture supports named sections.
17110         (rtl_split_edge): Make sure newly created bb ends up in
17111         correct partition.
17112         (commit_one_edge_insertion): Remove code that incorrectly
17113         updated basic block partition; Make sure partition fix up only
17114         happens if architecture supports named sections and it's not
17115         already done.
17116         (rtl_verify_flow_info_1): Fix if-condition on test/error
17117         condition that fallthru edges are not allowed to cross section
17118         boundaries.
17119         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
17120         * final.c (final_scan_insn): Remove redundant test from if-statement;
17121         change calls to text_section into calls to function_section; add code
17122         to only to partitioning fix up if architecture supports named
17123         sections.
17124         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
17125         partition.
17126         (if_convert): Add targetm.have_named_sections to test.
17127         * output.h (unlikely_section_label): Extern declaration for new global
17128         variable.
17129         (unlikely_text_section_name): Likewise.
17130         * opts.c (decode_options): If both partitioning and DWARF debugging
17131         are turned on, issue a warning that this doesn't work, and change
17132         partitiong to basic block reordering (without hot/cold partitions).
17133         * passes.c (rest_of_handle_final): Re-set new global variable,
17134         user_defined_section_attribute, to false.
17135         (rest_of_compilation): Change options for calling partitioning
17136         function: Don't call if the user defined the section attribute, and
17137         don't call if DECL_ONE_ONLY is true for the current function.
17138         * predict.c (choose_function_section): Return immediately if we
17139         are doing hot/cold partitioning (i.e. let the basic block partitioning
17140         determine where the function belongs).
17141         * reg-stack.c (emit_swap_insn): Add condition to step over
17142         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
17143         * toplev.c (user_defined_section_attribute): New global variable.
17144         * toplev.h (user_defined_section_attribute): Extern declaration
17145         for new global variable.
17146         * varasm.c (unlikely_section_label): New global variable.
17147         (unlikely_text_section_name): New global variable.
17148         (unlikely_text_section): Add code to initialize
17149         unlikely_text_section_name if necessary; modify to use
17150         unlikely_text_section_name and unlikely_section_label; also to use
17151         named_section properly.
17152         (in_unlikely_text_section):  Modify to work correctly with
17153         named_section and to use unlikely_text_section_name.
17154         (named_section):  Add code to work properly with cold section.
17155         (function_section): Clean up if-statement.
17156         * config/darwin.c (darwin_asm_named_section): Return to original
17157         code, removing use of SECTION_FORMAT_STRING.
17158         * config/arm/pe.h (switch_to_section):  Add case for
17159         in_unlikely_executed_text to switch statement.
17160         * config/i386/cygming.h (switch_to_section): Likewise.
17161         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17162         (SECTION_FORMAT_STRING): Likewise.
17163         * config/mcore/mcore.h (switch_to_section): Likewise.
17164         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17165         (SECTION_FORMAT_STRING): Remove.
17166
17167 2004-08-18  Roger Sayle  <roger@eyesopen.com>
17168
17169         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
17170         -ffixed-reg safe, by preserving the meanings of zero and one.
17171         (CALL_USED_REGISTERS): Likewise.
17172         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
17173
17174 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17175
17176         * config/sh/sh.c (split_branches): Check the result of
17177         next_active_insn.
17178         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
17179         Call rtl_register_cfg_hooks.
17180
17181 2004-08-18  Richard Henderson  <rth@redhat.com>
17182
17183         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17184         * alias.c (true_dependence): Update to match new semantics.
17185         (canon_true_dependence, write_dependence_p): Likewise.
17186         (anti_dependence, output_dependence): Update write_dependence_p args.
17187         (unchanging_anti_dependence): Remove.
17188         * calls.c (purge_mem_unchanging_flag): Remove.
17189         (fixup_tail_calls): Don't call it.
17190         (expand_call): Don't add unchanging memory to function usage.
17191         * expr.c (emit_block_move_via_libcall): Likewise.
17192         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
17193         (get_subtarget): Don't use RTX_UNCHANGING_P.
17194         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
17195         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
17196         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
17197         * cse.c (insert): Don't use RTX_UNCHANGING_P.
17198         (cse_insn, canon_hash): Use MEM_READONLY_P.
17199         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
17200         instead of RTX_UNCHANGING_P.
17201         * explow.c (maybe_set_unchanging): Remove.
17202         * expr.h (maybe_set_unchanging): Remove.
17203         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
17204         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
17205         (assign_parm_setup_reg, expand_function_start): Likewise.
17206         * integrate.c (copy_rtx_and_substitute): Likewise.
17207         * ra-rewrite.c (emit_colors): Likewise.
17208         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
17209         (fixup_match_1): Likewise.
17210         * reload1.c (reload, alter_reg): Likewise.
17211         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
17212         not RTX_UNCHANGING_P.
17213         (equiv_init_varies_p): Likewise.
17214         * loop-invariant.c (check_maybe_invariant): Likewise.
17215         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
17216         * loop.c (note_addr_stored): Likewise.
17217         (prescan_loop): Likewise. Don't check function usage for clobbered
17218         unchanging memory.
17219         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
17220         not RTX_UNCHANGING_P.
17221         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
17222         * varasm.c (force_const_mem): Likewise.
17223         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
17224         * web.c (entry_register): Likewise.
17225         * tree-gimple.h (get_base_address): Move decl ...
17226         * tree.h: ... here.
17227         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17228
17229         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
17230         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
17231         (alpha_set_memflags): Update to match.
17232
17233         * config/darwin.c (machopic_indirect_data_reference): Set
17234         MEM_READONLY_P instead of RTX_UNCHANGING_P.
17235         (machopic_indirect_call_target): Likewise.
17236         (machopic_legitimize_pic_address): Likewise.
17237         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
17238         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
17239         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
17240         * config/frv/frv.md (symGOT2reg): Likewise.
17241         * config/i386/i386.c (legitimize_pic_address,
17242         legitimize_tls_address, ix86_split_to_parts): Likewise.
17243         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17244         * config/ia64/ia64.md (load_fptr): Likewise.
17245         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17246         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
17247         * config/mcore/mcore.c (block_move_sequence): Likewise.
17248         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
17249         * config/pa/pa.c (legitimize_pic_address): Likewise.
17250         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17251         (rs6000_emit_move): Likewise.
17252         * config/s390/s390.c (legitimize_pic_address): Likewise.
17253         (legitimize_tls_address): Likewise.
17254         * config/s390/s390.md (casesi): Likewise.
17255         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
17256         * config/sh/sh.md (symGOT2reg): Likewise.
17257         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17258         * config/v850/v850.md (casesi): Likewise.
17259
17260         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
17261         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
17262         * config/mips/mips.c (mips_restore_gp): Likewise.
17263         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
17264         * config/sh/sh.c (sh_reorg): Likewise.
17265
17266 2004-08-18  Richard Henderson  <rth@redhat.com>
17267
17268         * tree.h (struct tree_decl): Add gimple_formal_temp.
17269         (DECL_GIMPLE_FORMAL_TEMP_P): New.
17270         * gimplify.c (pop_gimplify_context): Clear it.
17271         (lookup_tmp_var): Set it, if is_formal.
17272         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
17273         Use is_gimple_val for VECTOR.  Simplify return value.
17274         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
17275         (gimplify_expr): Likewise.
17276         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
17277         is_gimple_tmp_rhs for clarity.  Update all callers.
17278         (is_gimple_reg_rhs): Simplify logic.
17279         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
17280         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
17281         (is_gimple_formal_tmp_reg): Similarly.
17282         * tree-gimple.h: Update decls.
17283         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
17284         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
17285         * tree-ssa-live.c (var_union, type_var_init): Likewise.
17286
17287 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
17288
17289         * c4x.c (legitimize_operands): Remove calls to
17290         preserve_subexpressions_p.
17291
17292 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
17293
17294         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
17295         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
17296
17297 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
17298
17299         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
17300         Objective-C++ extensions.
17301         * gengtype.c (get_file_basename): Match entire subdirectory name
17302         ('cp', 'objc', 'objcp') rather than just its suffix.
17303         (get_base_file_bitmap): Allow for files to belong to more than one
17304         language.
17305         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
17306         used by more than one front-end.
17307
17308 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
17309
17310         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
17311         avoid use of preserve_subexpressions_p.
17312
17313 2004-08-17  Richard Henderson  <rth@redhat.com>
17314
17315         PR 17051
17316         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
17317
17318 2004-08-17  DJ Delorie  <dj@redhat.com>
17319
17320         * doc/extend.texi: Document new xstormy16 attribute.
17321
17322         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
17323         (xstormy16_splittable_below100_or_register): New.
17324         (combine_bnp): New.
17325         (xstormy16_reorg): New.
17326         (TARGET_MACHINE_DEPENDENT_REORG): Define.
17327
17328         * config/stormy16/stormy16.md (movqi_internal): Make name public.
17329         (movhi_internal): Likewise.
17330         (cbhranchhi): Likewise.
17331         (cbhranchhi_neg): Likewise.
17332         (andhi3): Only allow splittable below100 operands.
17333         (iorhi3): Likewise.
17334         (peephole2): New and/zero_extend->and peephole.
17335         (peephole2): New load/ior/save->set1 peephole.
17336         (peephole2): New load/and/save->clr1 peephole.
17337         (bclrx, bclrx2, bclr7, bclr15): New.
17338         (bsetx, bsetx2, bset7, bset15): New.
17339
17340         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
17341         liberal about acceptable 'B' masks.
17342
17343         * config/stormy16/stormy16-protos.h
17344         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
17345         xstormy16_below100_operand, xstormy16_below100_or_register,
17346         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
17347         (PREDICATE_CODES): Add new predicates.
17348
17349         * config/stormy16/stormy16.c
17350         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
17351         xstormy16_below100_operand, xstormy16_below100_or_register,
17352         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
17353         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
17354         (xstormy16_legitimate_address_p): Allow below100 symbols.
17355         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
17356         (xstormy16_expand_move): Leave below100 operands as-is.
17357         (xstormy16_encode_section_info): Encode below100 symbols.
17358         (xstormy16_strip_name_encoding): New.
17359         (xstormy16_print_operand): Print 'b' as shift mask.
17360         (xstormy16_attribute_table): Add below100 attributes.
17361         (xstormy16_handle_below100_attribute): New.
17362
17363         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
17364         (XSTORMY16_SECTION_FUNCTION): New.
17365         (EXTRA_SECTION_FUNCTIONS): Define using the above.
17366         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17367         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
17368         (ASM_OUTPUT_LABELREF): Define.
17369
17370         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
17371         (movhi_internal): Add below100 support.
17372         (andhi3): Add below100 support.
17373         (iorhi3): Add below100 support.
17374         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
17375
17376 2004-08-17  James E Wilson  <wilson@specifixinc.com>
17377
17378         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
17379         of VOIDmode for comparison code mode.
17380         * config/mips/mips.md: For conditional move patterns, use mode of
17381         first compare operand for comparison mode, instead of VOIDmode.
17382
17383         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
17384         normal and -ffast-math code.
17385
17386 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
17387
17388         PR c++/15871
17389         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
17390
17391 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
17392
17393         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
17394
17395 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
17396
17397         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
17398         for non Darwin targets.
17399         (*call_value_nonlocal_darwin64): Likewise.
17400
17401 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
17402
17403         * config/rs6000/rs6000.c (rs6000_function_value): Check for
17404         altivec mode for altivec return register.
17405
17406 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
17407
17408         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
17409         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17410         * config/rs6000/rs6000.md: Include darwin.md.
17411         (builtin_setjmp_receiver): Add DImode case.
17412         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
17413         Darwin bits.
17414
17415 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
17416
17417         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
17418         trees.
17419         * tree-vectorizer.h: New File: Same.
17420         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
17421         * common.opt (ftree-vectorize): New flag to enable vectorization.
17422         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
17423         vectorization pass.
17424         * tree-data-ref.h (init_data_ref): Additional argument.
17425         (array_base_name_differ_p): Moved to tree-data-ref.c.
17426         * tree-data-ref.c (array_base_name_differ_p): Revised.
17427         (initialize_data_dependence_relation): Call array_base_name_differ_p
17428         with an extra argument.
17429         (analyze_all_data_dependences): Same.
17430         (init_data_ref): Additional argument is_read to set DR_IS_READ.
17431         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
17432         file.
17433         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
17434         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
17435         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
17436         vectorization pass.
17437         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
17438         (tree_ssa_loop_done): Call scev_finalize.
17439         (tree_vectorize): Define the new vectorization pass.
17440         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
17441         size of the vector they support (until support for multiple vector
17442         sizes is added to the vectorizer).
17443         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
17444         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
17445         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
17446         documentation.
17447
17448 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
17449
17450         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
17451         usage.
17452         (generate_protocol_list, handle_impent): Likewise.
17453
17454 2004-08-17  Roger Sayle  <roger@eyesopen.com>
17455
17456         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
17457         ensure that call_used_regs is a superset of both fixed_regs and
17458         call_really_used_regs.
17459
17460 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
17461
17462         PR target/17019
17463         * arm.md (addsi3_cbranch_scratch): Correct case labels.
17464
17465 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
17466
17467         PR middle-end/17036
17468         * fold-const.c (fold): Check for integer operand when
17469         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
17470         Pinski  <pinskia@physics.uc.edu>.
17471
17472 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
17473
17474         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
17475         No need to check if in a cross configuration.
17476         * configure: Regenerate.
17477
17478         * calls.c (precompute_register_parameters):
17479         Inline preserve_subexpressions_p ().
17480         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
17481         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
17482         Likewise.
17483         * expr.c (get_subtarget): Likewise.
17484         * rtl.h (preserve_subexpressions_p): Remove.
17485         * stmt.c (preserve_subexpressions_p): Remove.
17486
17487         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
17488         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
17489         Abort on gimplified cases.
17490
17491 2004-08-16  James E Wilson  <wilson@specifixinc.com>
17492
17493         * tree.h (VECTOR_FLOAT_TYPE_P): New.
17494         (FLOAT_TYPE_P): Use it.
17495         * c-typeck.c (build_binary_op): After convert calls, check for
17496         check for ERROR_MARK operands.
17497
17498 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
17499
17500         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
17501         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
17502         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
17503         (genobjs static pattern rule): Remove %.c dependency.
17504         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
17505         Rename rules; delete commands; fix dependencies.
17506         (mostlyclean): Do not delete temporary source copies.
17507         * configure.ac: Delete all references to BUILD_PREFIX and
17508         BUILD_PREFIX_1.
17509         * configure: Regenerate.
17510
17511         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
17512         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
17513         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
17514         with #ifndef GENERATOR_FILE so that nothing from those headers
17515         is used.
17516
17517         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
17518
17519 2004-08-16  Adam Nemet  <anemet@lnxw.com>
17520
17521         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
17522
17523 2004-08-16  Andrew Pinski  <apinski@apple.com>
17524
17525         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
17526         extraneous semicolon.
17527
17528 2004-08-16  Devang Patel  <dpatel@apple.com>
17529
17530         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
17531         * print-tree.c (print_node): Print DECL_PRESERVE_P.
17532         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
17533         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
17534         * target.h (struct gcc_target): New member, mark_decl_preserved.
17535         * hooks.c (hook_void_charptr): Rename to ...
17536         (hook_void_constcharptr): ... new name.
17537         * hooks.h (hook_void_charptr): Rename to ..
17538         (hook_void_constcharptr): ... new name.
17539         * tree.h (DECL_PRESERVE_P): New #define.
17540         (struct tree_decl): New member, preserve_flag.
17541         * varasm.c (assemble_start_function): Mark decl preserved.
17542         (assemble_variable): Same.
17543         * darwin.c (darwin_mark_decl_preserved): New function.
17544         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
17545         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
17546         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
17547
17548 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
17549
17550         * c-decl.c (grokdeclarator): Allow for function definition where
17551         innermost declarator has attributes.
17552
17553 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
17554
17555         * except.c (get_exception_filter, build_post_landing_pads,
17556         dw2_build_landing_pads): Use target-specific mode for 'filter'.
17557         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
17558         * target.h (eh_return_filter_mode): New field added.
17559         * targhooks.c (default_eh_return_filter_mode): Defined.
17560         * targhooks.h (default_eh_return_filter_mode): Declared.
17561         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
17562
17563 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
17564
17565         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
17566         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
17567         * configure: Regenerate.
17568
17569 2004-08-16  Stan Shebs  <shebs@apple.com>
17570
17571         Basic support for 64-bit Darwin.
17572         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17573         (machopic_legitimize_pic_address): Similarly, plus use Pmode
17574         instead of SImode.
17575         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
17576         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
17577         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
17578         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
17579         (PROCESSOR_DEFAULT64): Define.
17580         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
17581         Darwin.
17582         * config/rs6000/rs6000.md: Include darwin.md.
17583         (builtin_setjmp_receiver): Add DImode case.
17584         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
17585         Darwin.
17586         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
17587         (rs6000_emit_move): Add DImode case to Darwin bits.
17588         (machopic_output_stub): Use .quad if 64-bit.
17589         * invoke.texi: Document -m32 and -m64.
17590
17591 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
17592
17593         * doc/extend.texi (AltiVec builtins): Document additional differences
17594         from the Motorola AltiVec PIM.
17595
17596 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
17597
17598         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
17599         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
17600         (struct tree_common): Update public_flag documentation.
17601
17602 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
17603
17604         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17605         Check for artificial variables, not is_gimple_tmp_var.
17606         * tree-ssa-live.c (var_union): Likewise.
17607
17608 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
17609
17610         * calls.c (load_register_parameters): Remove spurious FIXME token.
17611
17612 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
17613
17614         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
17615         (c-lang.o): Depend on c-objc-common.h.
17616         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
17617         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
17618         * c-lang.c: Include c-objc-common.h.
17619         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
17620         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
17621         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
17622         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
17623         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
17624         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
17625         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
17626         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
17627         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
17628         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
17629         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
17630         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
17631         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
17632         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
17633         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
17634         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
17635         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
17636         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
17637         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
17638         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
17639         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
17640         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
17641         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
17642         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
17643         Move to c-objc-common.h.
17644         * c-objc-common.c: Include c-objc-common.h.
17645         * c-objc-common.h: New file.
17646
17647 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
17648             Andrew Pinski  <pinskia@physics.uc.edu>
17649
17650         PR target/14931
17651         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
17652         style.
17653
17654 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
17655
17656         * tree.h (build_int_cst): New.
17657         (build_int_2): Remove.
17658         * tree.c (build_int_2): Remove.
17659         (build_int_cst): New.
17660         (make_vector_type, build_common_tree_nodes,
17661         build_common_tree_nodes_2): Use build_int_cst.
17662         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
17663         expand_builtin_strpbrk, expand_builtin_fputs,
17664         build_string_literal, expand_builtin_printf,
17665         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
17666         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
17667         fold_builtin_isdigit, simplify_builtin_strstr,
17668         simplify_builtin_strpbrk, fold_builtin_fputs,
17669         simplify_builtin_sprintf): Use build_int_cst.
17670         * c-common.c (start_fname_decls, fix_string_type,
17671         c_common_nodes_and_builtins, c_init_attributes,
17672         shorten_compare): Likewise.
17673         * c-decl.c (complete_array_type,
17674         check_bitfield_type_and_width): Likewise.
17675         * c-lex.c (interpret_integer, lex_charconst): Likewise.
17676         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
17677         * c-pretty-print.c (pp_c_integer_constant): Likewise.
17678         * c-typeck.c (really_start_incremental_init, push_init_level,
17679         set_nonincremental_init_from_string): Likewise.
17680         * calls.c (load_register_parameters): Likewise.
17681         * convert.c (convert_to_pointer): Likewise.
17682         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
17683         build_fn_info_type, build_ctr_info_value, build_gcov_info):
17684         Likewise.
17685         * except.c (init_eh, assign_filter_values, assign_filter_values):
17686         Likewise.
17687         * expmed.c (store_fixed_bit_field, extract_bit_field,
17688         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
17689         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
17690         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
17691         * expr.c (convert_move, emit_group_load, emit_group_store,
17692         expand_assignment, store_constructor, store_field,
17693         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
17694         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
17695         invert_truthvalue, optimize_bit_field_compare,
17696         decode_field_reference, all_ones_mask_p, constant_boolean_node,
17697         fold_div_compare, fold, fold_read_from_constant_string,
17698         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
17699         * function.c (assign_parm_setup_block): Likewise.
17700         * stmt.c (shift_return_value, expand_end_case_type,
17701         estimate_case_costs): Likewise.
17702         * stor-layout.c (layout_type, initialize_sizetypes,
17703         set_min_and_max_values_for_integral_type): Likewise.
17704         * tree-chrec.c (chrec_fold_multiply_poly_poly,
17705         reset_evolution_in_loop): Likewise.
17706         * tree-chrec.h (build_polynomial_chrec): Likewise.
17707         * tree-complex.c (build_replicated_const): Likewise.
17708         * tree-eh.c (honor_protect_cleanup_actions,
17709         lower_try_finally_onedest, lower_try_finally_copy,
17710         lower_try_finally_switch): Likewise.
17711         * tree-mudflap.c (mf_build_string, mx_register_decls,
17712         mudflap_register_call, mudflap_enqueue_constant): Likewise.
17713         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
17714         * tree-pretty-print.c (dump_generic_node): Likewise.
17715         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
17716         Likewise.
17717         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
17718         * tree-ssa-loop-niter.c (number_of_iterations_cond,
17719         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
17720         Likewise.
17721
17722         * config/alpha/alpha.c (alpha_initialize_trampoline,
17723         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
17724         * config/arm/arm.c (arm_get_cookie_size): Likewise.
17725         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
17726         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
17727         * config/i860/i860.c (i860_va_start): Likewise.
17728         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17729         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
17730         mips_gimplify_va_arg_expr): Likewise.
17731         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
17732         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
17733         add_compiler_branch_island): Likewise.
17734         * config/s390/s390.c (s390_va_start): Likewise.
17735         * config/sh/sh.c (sh_va_start): Likewise.
17736         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
17737         Likewise.
17738         * config/xtensa/xtensa.c (xtensa_va_start,
17739         xtensa_gimplify_va_arg_expr): Likewise.
17740
17741         * objc/objc-act.c (build_objc_string_object,
17742         build_objc_symtab_template, init_def_list, init_objc_symtab,
17743         init_module_descriptor, generate_static_references,
17744         build_selector_translation_table, get_proto_encoding,
17745         build_typed_selector_reference, build_selector_reference,
17746         build_next_objc_exception_stuff,
17747         build_method_prototype_list_template, generate_descriptor_table,
17748         generate_protocols, build_protocol_initializer,
17749         build_ivar_list_template, build_method_list_template,
17750         build_ivar_list_initializer, generate_ivars_list,
17751         generate_dispatch_table, generate_protocol_list,
17752         build_category_initializer, build_shared_structure_initializer,
17753         generate_shared_structures, handle_impent,
17754         generate_objc_image_info): Use build_int_cst.
17755
17756 2004-08-15  Ben Elliston  <bje@au.ibm.com>
17757
17758         * vec.h: Comment improvements.
17759
17760 2004-08-14  Roger Sayle  <roger@eyesopen.com>
17761
17762         * c-common.c (shorten_compare, pointer_int_sum,
17763         c_common_truthvalue_conversion, boolean_increment): Replace calls
17764         to build with calls to buildN.
17765         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
17766         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
17767         gimplify_switch_stmt): Likewise.
17768         * c-typeck.c (default_function_array_conversion,
17769         build_component_ref, build_array_ref, build_function_call,
17770         pointer_diff, build_unary_op, build_conditional_expr,
17771         build_compound_expr, build_modify_expr, c_finish_goto_label,
17772         c_finish_goto_ptr, c_finish_return, c_finish_loop,
17773         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
17774         build_binary_op): Likewise.
17775
17776 2004-08-15  Steven Bosscher  <stevenb@suse.de>
17777
17778         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
17779
17780 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17781
17782         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
17783         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
17784         * fixinc/fixincl.x: Rebuilt.
17785
17786 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
17787
17788         * config/mips/mips-protos.h (mips_symbolic_constant_p)
17789         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
17790         (mips_small_data_pattern_p): Declare.
17791         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
17792         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
17793         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
17794         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
17795         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
17796         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
17797         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
17798         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
17799         (pc_or_label_operand, call_insn_operand, move_operand)
17800         (consttable_operand, symbolic_operand, general_symbolic_operand)
17801         (global_got_operand, local_got_operand, stack_operand)
17802         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
17803         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
17804         (mips_small_data_pattern_p): Replace previous small_data_pattern
17805         predicate.  Turn into a bool () (rtx) function.
17806         * config/mips/predicates.md: New file.
17807         * config/mips/mips.md: Include it.  Use the target-independent
17808         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
17809         trap_comparison_operator and equality_op to equality_operator.
17810         Replace uses of small_int with the equivalent const_arith_operand.
17811         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
17812         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
17813         to fcc_reload_operand.
17814         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
17815
17816 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17817
17818         PR libstdc++/17005 partial fix.
17819         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
17820         except when generating ANSI/C89 code.
17821
17822 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
17823
17824         * c-common.c (shorten_compare): Use force_fit_type directly.
17825
17826 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
17827             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
17828             Dave Korn  <dk@artimi.com>
17829
17830         * doc/install.texi (Building): Avoid duplicate reference to GNU
17831         make requirement.
17832         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
17833
17834 2004-08-14  Richard Henderson  <rth@redhat.com>
17835
17836         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
17837         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
17838
17839 2004-08-13  Richard Henderson  <rth@redhat.com>
17840
17841         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
17842         for constant_call_address_operand.
17843         (call_value_pop_1, call_value_1): Likewise.
17844         (sibcall_value_1, call_value_1_rex64): Likewise.
17845
17846 2004-08-13  James E Wilson  <wilson@specifixinc.com>
17847
17848         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
17849         Correct mode from SFmode to DFmode.
17850
17851 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
17852
17853         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
17854         __cstring_object and __image_info sections with the no_dead_strip
17855         attribute.
17856
17857 2004-08-13  Roger Sayle  <roger@eyesopen.com>
17858             David Billinghurst  <David.Billinghurst@riotinto.com>
17859
17860         PR libgfortran/15930
17861         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
17862         * fixinc/fixincl.x: Regenerate.
17863         * fixinc/tests/base/internal/math_core.h: New file.
17864
17865 2004-08-13  Richard Henderson  <rth@redhat.com>
17866
17867         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
17868         (dbxout_function_end): Remove ifdefs for it.
17869         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
17870
17871 2004-08-13  Richard Henderson  <rth@redhat.com>
17872
17873         * Makefile.in (insn-preds.o): Depend on TREE_H.
17874         * genpreds.c (write_insn_preds_c): Include tree.h.
17875         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
17876         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
17877         const48_operand, and_operand, or_operand, mode_width_operand,
17878         mode_mask_operand, mul8_operand, const0_operand,
17879         hard_fp_register_operand, hard_int_register_operand,
17880         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
17881         samegp_function_operand, direct_call_operand, small_symbolic_operand,
17882         global_symbolic_operand, call_operand, symbolic_operand,
17883         dtp16_symbolic_operand, dtp32_symbolic_operand,
17884         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
17885         gottp_symbolic_operand, alpha_comparison_operator,
17886         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
17887         signed_comparison_operator, alpha_fp_comparison_operator,
17888         divmod_operator, fix_operator, aligned_memory_operand,
17889         unaligned_memory_operand, reg_or_unaligned_mem_operand,
17890         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
17891         reg_no_subreg_operand, addition_operation): Move to predicates.md.
17892         (reg_or_const_int_operand): Remove.  Replace all users with
17893         reg_or_cint_operand.
17894         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
17895         (resolve_reload_operand): Split out of aligned_memory_operand.
17896         * config/alpha/alpha-protos.h: Update for exports.
17897         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
17898         * config/alpha/alpha.md: Include predicates.md.
17899         * config/alpha/predicates.md: New file.
17900
17901 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
17902
17903         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
17904         fields with a pointer to the instruction definition.
17905         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
17906         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
17907         (write_attr_case, write_const_num_delay_slots): Update accordingly.
17908         (write_attr_case, write_const_num_delay_slots): Write the name of
17909         an insn next to its case statement.
17910         * genoutput.c (data): Add a filename field.
17911         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
17912         (output_insn_data): Print the location of each insn definition.
17913         * genrecog.c (write_action): Print the name of an insn above
17914         the statement that returns its code.
17915
17916 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
17917
17918         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
17919         * config/libgloss.h: Likewise.
17920         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
17921         * c4x/c4x-modes.def: Likewise.
17922         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
17923         (c4x_rptb_nop_p): Likewise.
17924         (c4x_rptb_valid_p): Likewise.
17925         (c4x_rptb_insert): Likewise.
17926         (c4x_address_conflict): Likewise.
17927         * config/c4x/c4x.md: Likewise.
17928         * config/frv/frv.md: Likewise.
17929         * config/i386/athlon.md: Likewise.
17930         * config/i386/i386.md: Likewise.
17931         * config/i386/predicates.md: Likewise.
17932         * config/ia64/ia64.c: Likewise.
17933         * config/ia64/itanium1.md: Likewise.
17934         * config/ia64/itanium2.md: Likewise.
17935         * config/iq2000/iq2000.md: Likewise.
17936         * config/mcore/mcore.c: Likewise.
17937         * config/mips/mips.c: Likewise.
17938         * config/mips/r3900.h: Likewise.
17939         * config/mips/sb1.md: Likewise.
17940         * config/pa/milli64.S: Likewise.
17941         * config/pa/pa.c: Likewise.
17942         * config/pa/pa.h: Likewise.
17943         * config/rs6000/8540.md: Likewise.
17944
17945 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
17946
17947         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
17948
17949 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
17950
17951         * sh.md (cbranch define_delay) Use cond_delay_slot for
17952         non-anulled condition too.
17953
17954 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
17955
17956         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
17957         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
17958         any_parallel_operand, lmw_operation, stmw_operation,
17959         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
17960         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
17961         any_parallel_operand.
17962         (return_and_restore_fpregs_{si,di}): Same.
17963
17964 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
17965
17966         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
17967         if pred->singleton != PARALLEL, issue a warning and pretend it was.
17968         Also issue a warning for any predicate we don't know about.
17969
17970 2004-08-12  Richard Henderson  <rth@redhat.com>
17971
17972         * config/i386/i386.c (internal_label_prefix): Export.
17973         (internal_label_prefix_len, struct ix86_address,
17974         ix86_decompose_address, maybe_get_pool_constant,
17975         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
17976         memory_address_length): Export.
17977         (any_fp_register_operand, fp_register_operand,
17978         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
17979         x86_64_general_operand, x86_64_szext_general_operand,
17980         x86_64_nonmemory_operand, x86_64_movabs_operand,
17981         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
17982         x86_64_zext_immediate_operand, const_int_1_31_operand,
17983         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
17984         tls_symbolic_operand, global_dynamic_symbolic_operand,
17985         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
17986         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
17987         constant_call_address_operand, const0_operand, const1_operand,
17988         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
17989         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
17990         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
17991         general_no_elim_operand, nonmemory_no_elim_operand,
17992         index_register_operand, q_regs_operand, flags_reg_operand,
17993         non_q_regs_operand, zero_extended_scalar_load_operand,
17994         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
17995         ix86_comparison_operator, ix86_carry_flag_operator,
17996         fcmov_comparison_operator, promotable_binary_operator,
17997         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
17998         mult_operator, div_operator, arith_or_logical_operator,
17999         memory_displacement_operand, cmpsi_operand, long_memory_operand,
18000         aligned_operand): Move to predicates.md as define_predicates.
18001         (tls_symbolic_operand_1): Remove.
18002         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
18003         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
18004         (legitimize_address): Merge tls_symbolic_operand contents.
18005         (ix86_expand_move): Likewise.
18006         * config/i386/i386-protos.h: Update for exports.
18007         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
18008         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
18009         * config/i386/i386.md: Include predicates.md.
18010         * config/i386/predicates.md: New file.
18011
18012 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
18013
18014         PR c++/16924
18015         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
18016         SYMBOL_REF_DECL.
18017         (i386_pe_mark_dllimport): Likewise.
18018         (i386_pe_encode_section_info): Likewise, when overriding
18019         dllimport attribute.
18020
18021 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
18022
18023         * configure.ac: When testing for flex, nm, ar, and bison, check
18024         that they will actually be built.
18025         * configure: Regenerate.
18026
18027 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
18028
18029         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
18030         (MOVE_MAX_PIECES): Define.
18031
18032 2004-08-12  Devang patel  <dpatel@apple.com>
18033
18034         * dbxout.c (dbxout_begin_prologue): New function.
18035         (dbx_debug_hooks): Use new begin prologue hook.
18036         (dbxout_function_end): Emit N_ENSYM.
18037         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
18038
18039 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
18040
18041         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
18042         argument is float*.
18043
18044         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
18045         for vec_dss.
18046
18047         * doc/extend.texi (AltiVec builtins): Fix description for recent
18048         changes.  Update operation list to match current support.
18049
18050 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
18051
18052         * config/s390/s390.c (struct s390_frame_layout): New struct as element
18053         of struct machine_function.
18054         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
18055         changed all uses.
18056         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
18057         changed all uses.
18058         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
18059         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
18060         (s390_frame_area, s390_register_info): New functions.
18061         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
18062         for base register.
18063         (s390_return_addr_rtx, s390_return_address_offset)
18064         (s390_va_start, s390_gimplify_va_arg)
18065         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
18066         layouts.
18067         (s390_frame_info): Functionality partly moved to s390_register_info.
18068         Made adaptions for new stack layout.
18069         (save_gprs, restore_gprs): Changed meaning of second parameter and
18070         adapted all callers.
18071
18072         * config/s390/s390.h (s390_backchain_string): New global variable.
18073         (MASK_BACKCHAIN): Removed definition.
18074         (TARGET_BACKCHAIN): Changed check.
18075         (TARGET_KERNEL_BACKCHAIN): New macro.
18076         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
18077         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
18078         "kernel-backchain".
18079         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
18080
18081         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
18082         as condition.  Adjusted for new stack layout.
18083
18084         * doc/invoke.texi: Added documentation for new option
18085         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
18086         "-mno-backchain".
18087
18088 2004-08-12  Paul Brook  <paul@codesourcery.com>
18089
18090         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
18091         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
18092
18093 2004-08-12  David Daney  <ddaney@avtrex.com>
18094
18095         * java/gcj.texi:  Add subsection on signal usage.
18096
18097 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
18098
18099         * expr.c (move_by_pieces): Set alignment for move to minimum of
18100         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
18101         alignment, but not less than the original alignment.
18102         (move_by_pieces_ninsns): Same.
18103         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
18104         (store_by_pieces_1): Same.
18105
18106 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
18107
18108         PR tree-optimization/16867
18109         * tree.c (is_global_var): New function.
18110         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
18111         Call is_global_var.
18112         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
18113         Update all users.
18114         (is_global_var): Declare.
18115         * tree-dfa.c (dump_variable): Display global and addressable
18116         attributes.
18117         (add_referenced_var): Clarify documentation when marking
18118         variables call-clobbered.
18119         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
18120         instead of needs_to_live_in_memory.
18121         (mark_call_clobbered): If the variable is a tag, mark it
18122         DECL_EXTERNAL.
18123         * tree-gimple.c (is_gimple_reg): Don't check for
18124         TREE_ADDRESSABLE.
18125         (is_gimple_non_addressable): Likewise.
18126         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
18127         needs to be marked call-clobbered.
18128         (setup_pointers_and_addressables): Call is_global_var instead
18129         of needs_to_live_in_memory.
18130         * tree-ssa-dce.c (need_to_preserve_store): Remove.
18131         Update all users with is_global_var.
18132         (mark_stmt_if_obviously_necessary): Fix processing of aliased
18133         stores.  Don't check the virtual definitions.  Rather, check
18134         whether the store is going into global memory.
18135         (find_obviously_necessary_stmts): Get the symbol from the PHI
18136         result.
18137         * tree-ssa-operands.c (get_call_expr_operands): Do not add
18138         clobbering may-defs if the call does not have side effects.
18139
18140 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
18141
18142         PR c++/16276
18143         * output.h (default_function_rodata_section,
18144         default_no_function_rodata_section): New prototypes.
18145         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
18146         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18147         (TARGET_ASM_OUT): Add it.
18148         * varasm.c (default_function_rodata_section,
18149         default_no_function_rodata_section): New functions.
18150         * final.c (final_scan_insn): Call
18151         targetm.asm_out.function_rodata_section instead of
18152         readonly_data_section.
18153         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18154         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18155         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18156         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18157         Likewise.
18158         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18159         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18160         Likewise.
18161         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18162         Likewise.
18163         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18164         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18165         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
18166
18167 2004-08-12  Paul Brook  <paul@codesourcery.com>
18168
18169         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
18170         frame info.
18171         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
18172         DWARF2_UNWIND_INFO.
18173
18174 2004-08-12  Ben Elliston  <bje@au.ibm.com>
18175
18176         PR target/16286
18177         * config/rs6000/altivec.h: Change vector to __vector throughout.
18178         (Except for the `vector' macro itself).
18179
18180 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
18181
18182         * genpreds.c: Add capability to generate predicate bodies as
18183         well as function prototypes.  Write function prototypes for
18184         the generic predicates too.
18185         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
18186         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
18187         (write_match_code, write_predicate_expr, write_one_predicate_function)
18188         (parse_option): New functions.
18189         (output_predicate_decls): Delete.
18190         (main): Read the machine description, process DEFINE_PREDICATE or
18191         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
18192         as appropriate.
18193
18194         * genrecog.c (struct decision_test): Replace index with
18195         struct pred_data pointer.
18196         (next_index): Remove, unused.
18197         (pred_table, preds, special_mode_pred_table): Delete.
18198         (compute_predicate_codes, process_define_predicate): New functions.
18199         (validate_pattern, add_to_sequence, write_switch): Update for
18200         new data structures.
18201         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18202         Check both error_count and have_error.
18203
18204         * gensupport.c (in_fname, first_predicate): New globals.
18205         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
18206         (predicate_table, last_predicate, old_pred_table)
18207         (old_special_pred_table): New statics.
18208         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
18209         (add_predicate, init_predicate_table): New functions.
18210         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18211         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
18212         it or max_include_len.  Call init_predicate_table.
18213         (read_rtx): Run the predicate queue after the attribute queue
18214         but before all the others.
18215         * gensupport.h (in_fname, struct pred_data, first_predicate)
18216         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
18217         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
18218         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
18219         * dummy-conditions.c: Don't include bconfig.h, system.h,
18220         coretypes.h, tm.h, or system.h.  Do include stddef.h.
18221         Duplicate declaration of struct c_test from gensupport.h.
18222
18223         * Makefile.in (OBJS-common): Add insn-preds.o.
18224         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
18225         (insn-preds.c, insn-preds.o): New rules.
18226         (s-preds): Also generate insn-preds.c.
18227         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
18228         Update dependencies.
18229         (print-rtl.o, print-rtl1.o): Correct dependencies.
18230
18231         * recog.h: Delete prototypes of predicate functions.
18232
18233         * doc/md.texi (Predicates): New section with complete
18234         documentation of operand/operator predicates.  Remove some
18235         incomplete documentation of predicates from other places.
18236         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
18237         PREDICATE_CODES; indicate that both are deprecated in favor
18238         of define_predicate/define_special_predicate.
18239
18240         * config/ia64/ia64.c: All predicate function definitions moved
18241         to ia64.md, except
18242         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
18243         (ia64_expand_load_address, ia64_expand_move):
18244         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
18245
18246         * config/ia64/ia64.md: All predicates now defined here.
18247         (symbolic_operand): Is now a special predicate.
18248
18249         * config/ia64/ia64.h: Declare ia64_section_threshold.
18250         (PREDICATE_CODES): Delete.
18251
18252 2004-08-12  Richard Henderson  <rth@redhat.com>
18253
18254         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
18255         * c-semantics.c (add_stmt): Set it.
18256         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
18257         before instantiating a variable sized type.
18258
18259 2004-08-12  Richard Henderson  <rth@redhat.com>
18260
18261         * stor-layout.c (round_up, round_down): Move ...
18262         * fold-const.c (round_up, round_down): ... here.  Use
18263         multiple_of_p to avoid any arithmetic at all.
18264
18265 2004-08-12  Richard Henderson  <rth@redhat.com>
18266
18267         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
18268         (gimplify_init_ctor_preeval_1): New.
18269         (gimplify_init_ctor_preeval): New.
18270         (gimplify_init_ctor_eval): New.
18271         (gimplify_init_constructor): Use them.  Always gimplify the LHS
18272         object first.
18273
18274 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
18275
18276         (This patch is part of merge of objc-improvements-branch
18277         into mainline.)
18278
18279         * doc/frontends.texi: Mention Objective-C++ in addition to
18280         Objective-C.
18281         * doc/install.texi: Add 'obj-c++' to list of configurable
18282         languages.
18283         * doc/invoke.texi: Rename Objective-C option headings to
18284         indicate they also apply to Objective-C++.  List file
18285         extensions for Objective-C++ sources.  Mention that
18286         ObjC and ObjC++ compilations may also use C and C++ options,
18287         respectively.  Point users to doc/standards.texi for
18288         further info on ObjC and ObjC++.
18289         * doc/sourcebuild.texi: Mention the objcp/ directory and
18290         the Objective-C++ sources it contains.
18291         * doc/standards.texi: Update link to Apple ObjC site;
18292         add link to gcc readings.html WWW doc.
18293
18294 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
18295
18296         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
18297         and 2004-07-14 changes.
18298
18299 2004-08-12  Paul Brook  <paul@codesourcery.com>
18300
18301         * doc/invoke.texi: Fix typo.
18302
18303 2004-08-11 Devang Patel  <dpatel@apple.com>
18304
18305         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
18306         and -no_dead_strip_inits_and_terms.
18307         (LINK_SPEC): Same.
18308         * doc/invoke.texi (Darwin Options): Document -dead_strip and
18309         -no_dead_strip_inits_and_terms.
18310
18311 2004-08-11  Paul Brook  <paul@codesourcery.com>
18312
18313         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
18314         (arm_load_pic_register): ... to this.
18315         * config/arm/arm.c (arm_finalize_pic): Rename ...
18316         (arm_load_pic_register): ... to this.  Always output insns at the
18317         current location.  Load via low reg in thumb mode.
18318         (arm_expand_prologue): Call arm_load_pic_register.
18319         (thumb_expand_prologue): Ditto.
18320         * config/arm/arm.h (FINALIZE_PIC): Remove.
18321         * config/arm/arm.md (builtin_setjmp_receiver): Call
18322         arm_load_pic_register.
18323
18324 2004-08-11  Paul Brook  <paul@codesourcery.com>
18325
18326         * arm.c (thumb_force_lr_save): Add prototype.
18327         (thumb_compute_save_reg_mask): New function.
18328         (thumb_find_work_register): New function.
18329         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
18330         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
18331         Don't clobber r3 when removing pretend args.
18332         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
18333         (thumb_output_function_prologue): Use new functions.
18334         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
18335         * arm.h (THUMB_REG_PUSHED_P): Remove.
18336
18337 2004-08-11  James E Wilson  <wilson@specifixinc.com>
18338
18339         PR rtl-optimization/16490
18340         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
18341         global_live_at_end for new basic block if already set for other blocks.
18342
18343 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
18344
18345         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
18346
18347         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
18348         (mfcr rlwinm rlwinm patterns): Set length to 12.
18349
18350 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
18351
18352         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
18353         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
18354         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
18355         (start_ssa_stmt_operands): Delete.
18356         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
18357         struct stmt_operands_d.
18358         (build_ssa_operands): New extern entry point.
18359         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
18360         building code, replace with create_ssa_artficial_load_stmt().
18361         * tree-ssa-operands.c (struct voperands_d): Delete.
18362         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
18363         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
18364         (free_uses, free_defs, free_vuses, free_v_may_defs,
18365         free_v_must_defs): Remove dealloc parameter.
18366         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
18367         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
18368         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
18369         vector comparisons, ssa_name reuse, and allocations here.
18370         (verify_start_operands): Delete.
18371         (finalize_ssa_stmt_operands): Set new operands by calling finalize
18372         routines.
18373         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
18374         (append_def, append_usei): Simplify to simple accumulation.
18375         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
18376         duplicates and simple accumulation.
18377         (free_ssa_operands): Free vectors in a stmt_operand structure.
18378         (build_ssa_operands): New. Create a new stmt_operand structure from
18379         a stmt and an old set of stmt_operands.
18380         (get_stmt_operands): Simplify and call build_ssa_operands.
18381         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
18382         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
18383         add_call_read_ops): Don't pass prev_vops around anymore.
18384         (note_addressable): Return if no stmt annotation.
18385         (copy_virtual_operands): Access v_may_def operands through a struct.
18386         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
18387         hash tables without treating the stmt as a real stmt.
18388         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
18389         v_may_def def and use through a struct instead of 2 array elements.
18390         (struct v_may_def_optype_d): Use v_may_def_operand_type.
18391         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
18392
18393 2004-08-11  Nick Clifton  <nickc@redhat.com>
18394
18395         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
18396         this funciton's behaviour.  Return true when the current function
18397         has a section attribute and -mlong-calls is in effect.
18398         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
18399         short-call marker when -mlong-calls is in effect and the function
18400         has a section attribute.
18401
18402 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
18403
18404         * stmt.c (expand_return): If asked to return the RESULT_DECL,
18405         just call expand_value_return on result_rtl.
18406
18407 2004-08-10  Richard Henderson  <rth@redhat.com>
18408
18409         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
18410         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
18411         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
18412         (add_location_or_const_value_attribute): ... not here.  Use
18413         loc_descriptor_from_tree if possible.
18414         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
18415         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
18416         values specially.
18417         (loc_descriptor_from_tree): New.  Update callers.
18418         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
18419         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
18420         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
18421         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
18422         and BUILT_IN_STACK_RESTORE.
18423         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
18424         * stmt.c (expand_stack_alloc): Remove.
18425         * tree-mudflap.c (mx_register_decls): Don't look for
18426         BUILT_IN_STACK_ALLOC.
18427         * tree-nested.c (convert_local_reference): Likewise.
18428         * tree.h (DECL_VALUE_EXPR): New.
18429
18430 2004-08-10  Richard Henderson  <rth@redhat.com>
18431
18432         * stor-layout.c (round_up): Check for 0/1 before dividing.
18433         (round_down): Likewise.
18434
18435         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
18436
18437 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
18438
18439         * config.gcc (arm*-*-eabi*): New target.
18440         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
18441         (TARGET_LIB_INT_CMP_BIASED): Likewise.
18442         * expmed.c (expand_divmod): Try a two-valued divmod function as a
18443         last resort.
18444         * gthr.h: Remove bogus tokens at end of #pragma.
18445         * optabs.c (expand_twoval_binop_libfunc): New function.
18446         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
18447         (prepare_float_lib_cmp): Try reversing the condition.
18448         (debug_optab_libfuncs): New function.
18449         * optabs.h (expand_twoval_binop_libfunc): Declare.
18450         * config/arm/arm.c (arm_init_libfuncs): New function.
18451         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
18452         (TARGET_INIT_LIBFUNCS): Define it.
18453         * config/arm/arm.h (TARGET_BPABI): New macro.
18454         * config/arm/arm-protos.h
18455         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
18456         * config/arm/bpabi.S: New file.
18457         * config/arm/bpabi.c: Likewise.
18458         * config/arm/bpabi.h: Likewise.
18459         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
18460         (__aeabi_drsub): Likewise.
18461         (__aeabi_dsub): Likewise.
18462         (__aeabi_dadd): Likewise.
18463         (__aeabi_ui2d): Likewise.
18464         (__aeabi_i2d): Likewise.
18465         (__aeabi_f2d): Likewise.
18466         (__aeabi_dmul): Likewise.
18467         (__aeabi_ddiv): Likewise.
18468         (__aeabi_cdrcmple): Likewise.
18469         (__aeabi_cdcmpeq): Likewise.
18470         (__aeabi_cdcmple): Likewise.
18471         (__aeabi_dcmpeq): Likewise.
18472         (__aeabi_dcmplt): Likewise.
18473         (__aeabi_dcmple): Likewise.
18474         (__aeabi_dcmpge): Likewise.
18475         (__aeabi_dcmpgt): Likewise.
18476         (__aeabi_dcmpun): Likewise.
18477         (__aeabi_d2iz): Likewise.
18478         (__aeabi_d2uiz): Likewise.
18479         (__aeabi_d2f): Likewise.
18480         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
18481         (__aeabi_frsub): Likewise.
18482         (__aeabi_fsub): Likewise.
18483         (__aeabi_fadd): Likewise.
18484         (__aeabi_ui2f): Likewise.
18485         (__aeabi_i2f): Likewise.
18486         (__aeabi_fmul): Likewise.
18487         (__aeabi_fdiv): Likewise.
18488         (__aeabi_cfrcmple): Likewise.
18489         (__aeabi_cfcmpeq): Likewise.
18490         (__aeabi_cfcmple): Likewise.
18491         (__aeabi_fcmpeq): Likewise.
18492         (__aeabi_fcmplt): Likewise.
18493         (__aeabi_fcmple): Likewise.
18494         (__aeabi_fcmpge): Likewise.
18495         (__aeabi_fcmpgt): Likewise.
18496         (__aeabi_fcmpun): Likewise.
18497         (__aeabi_f2iz): Likewise.
18498         (__aeabi_f2uiz): Likewise.
18499         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
18500         (__aeabi_uidivmod): New function or alias.
18501         (__aeabi_idivmod): Likewise.
18502         (__aeabi_idiv0): Likewise.
18503         (__aeabi_ldiv0): Likewise.
18504         (__aeabi_llsr): Likewise.
18505         (__aeabi_lasr): Likewise.
18506         (__aeabi_llsl): Likewise.
18507         (bpabi.S): Include it.
18508         * config/arm/libgcc-bpabi.ver: New file.
18509         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
18510         (LINK_SPEC): Remove.
18511         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
18512         __aeabi_ulcmp.
18513         * config/arm/t-bpabi: New file.
18514         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
18515         (TARGET_LIB_INT_CMP_BIASED): Likewise.
18516
18517 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
18518
18519         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
18520         * config/rs6000/rs6000.md (clrmemsi): New pattern.
18521         * config/rs6000/rs6000.c (expand_block_clear): New function.
18522         (expand_block_move): Convert alignment to bits.  Use SImode and
18523         HImode for unaligned addresses if not STRICT_ALIGNMENT.
18524
18525 2004-08-10  Caroline Tice  <ctice@apple.com>
18526
18527         * varasm.c (unlikely_section_label): New global variable.
18528         (unlikely_text_section_name): New global variable.
18529         (text_section):  Remove alignment statement.
18530         (unlikely_text_section): Remove alignment statement; use
18531         unlikely_section_label rather than hard-coded string.
18532         (assemble_start_function): Initialize unlikely_section_label and
18533         unlikely_text_section_name;  make sure cold section is properly
18534         aligned at start of function; output unlikely_section_label if
18535         appropriate.
18536
18537 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
18538
18539         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
18540         * config/s390/s390.c (s390_canonicalize_comparison): New function.
18541         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
18542         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
18543         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
18544         ("*tmqi_mem"): Remove SUBREG from pattern.
18545         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
18546         ("*andsi3_cconly"): Likewise.
18547
18548 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
18549
18550         PR target/16909
18551         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
18552
18553 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
18554
18555         * doc/sourcebuild.texi (compat testing): Document available test
18556         framework commands.  Use the preferred spelling of DejaGnu.
18557
18558 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
18559
18560         * lambda.h: Add matrix type, and prototypes for remainder of
18561         matrix and vector functions.
18562         (lambda_vector_mult_const): New function.
18563         (lambda_vector_negate): Ditto.
18564         (lambda_vector_add): Ditto.
18565         (lambda_vector_add_mc): Ditto.
18566         (lambda_vector_copy): Ditto.
18567         (lambda_vector_zerop): Ditto.
18568         (lambda_vector_equal): Ditto.
18569         (lambda_vector_min_nz): Ditto.
18570         (lambda_vector_first_nz): Ditto.
18571         (lambda_vector_matrix_mult): Ditto.
18572         * lambda-mat.c: New file.
18573         * Makefile.in (lambda-mat.o): New.
18574
18575 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
18576
18577         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
18578         after linking stmt into the program.
18579         (bsi_remove): Don't call modify_stmt.
18580         * tree-complex.c (update_complex_assignment,
18581         expand_complex_comparison): Call modify_stmt after changing the stmt.
18582         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
18583         removing the stmt.
18584         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
18585         the stmt, and only if needed.
18586         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
18587         expression.
18588         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
18589         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
18590         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
18591         (eliminate_redundant_computations): Don't pass an annotation. Call
18592         modify_stmt rather than setting the annotation directly.
18593         (record_equivalences_from_stmt): Remove unused local 'j'.
18594         (cprop_operand): Take a stmt rather than an annotation as a parameter.
18595         Call modify_stmt.
18596         (cprop_into_stmt): Pass stmt rather than annotation.
18597         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
18598         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
18599         modify_stmt.
18600         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
18601
18602 2004-08-10  Jason Merrill  <jason@redhat.com>
18603
18604         PR middle-end/16948
18605         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
18606         the RESULT_DECL.
18607
18608 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
18609
18610         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
18611         hash function.
18612
18613 2004-08-10  Roger Sayle  <roger@eyesopen.com>
18614
18615         * config/mips/mips.md: New reciprocal square root patterns that
18616         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
18617
18618 2004-08-10  Paul Brook  <paul@codesourcery.com>
18619
18620         * config/arm/arm-protos.h (arm_set_return_address,
18621         thumb_set_return_address): Add prototypes.
18622         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
18623         * config/arm/arm.c (arm_compute_func_type,
18624         use_return_insn, arm_compute_save_reg0_reg12_mask,
18625         arm_compute_save_reg_mask, arm_output_function_prologue,
18626         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
18627         current_function_calls_eh_return.
18628         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
18629         old eh code.
18630         (arm_set_return_address, thumb_set_return_address): New functions.
18631         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
18632         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
18633         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
18634         (epilogue): Use the stackadj register.
18635         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
18636
18637 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
18638
18639         PR target/3144
18640         * expr.c (move_by_pieces_ninsns): Add max_size argument.
18641         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
18642         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
18643         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
18644         but using MOVE_RATIO.
18645         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
18646         (can_store_by_pieces): Change max_size type to unsigned int.
18647         (store_by_pieces_1): Likewise.  Pass max_size to
18648         move_by_pieces_ninsns.
18649         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
18650         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
18651         to move_by_pieces_ninsns.
18652         (STORE_BY_PIECES_P): Define.
18653         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
18654         to move_by_pieces_ninsns.
18655         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
18656
18657         * config/i386/i386.h (CLEAR_RATIO): Define.
18658
18659 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18660
18661         * expr.c (expand_expr_real_1): Add back code that was not dead.
18662
18663 2004-08-09  Andrew Pinski  <apinski@apple.com>
18664
18665         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
18666         which is found to be compatible before returning the aliasing set.
18667
18668 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
18669
18670         * ggc-zone.c (struct alloc_zone): Add statistics counters.
18671         (always_collect): New flag.
18672         (ggc_alloc_zone_1): Update statistics support.  Don't include
18673         overhead in allocated counter.
18674         (sweep_pages): Update allocated counter for large pages.  Don'y
18675         include overhead.
18676         (ggc_collect_1): Always collect.
18677         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
18678         whether to collect.
18679         (SCALE, LABEL): New macros.
18680         (ggc_print_statistics): Add statistics support.
18681
18682 2004-08-09  Roger Sayle  <roger@eyesopen.com>
18683
18684         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
18685         (init_expmed): Fix potential overrun problem with "all.reg".
18686         (expand_sdiv2_pow2): Add an alternate implementation for signed
18687         division, if the target provides a suitable conditional move insn.
18688
18689 2004-08-09  Paul Brook  <paul@codesourcery.com>
18690         Richard Henderson  <rth@redhat.com>
18691
18692         * unwind-dw2.c (uw_install_context_1): Update target saved stack
18693         pointer.
18694
18695 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
18696
18697         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
18698         Check DATA limit only if there's no AS limit.  Ignore insanely
18699         low DATA limits.
18700         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
18701         but take care that the AS limit isn't overrun.
18702         * doc/invoke.texi: Update documentation of min-heapsize parameter.
18703
18704 2004-08-09  Jeff Law  <law@redhat.com>
18705
18706         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
18707         (tree-ssa-threadupdate.o): Add dependencies.
18708         * tree-ssa-threadupdate.c: New file.
18709         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
18710         (rewrite_vars_out_of_ssa): Remove prototype.
18711         (cleanup_tree_cfg): Returns a bool.
18712         * tree.h (thread_through_all_blocks): Prototype.
18713         * tree-outof-ssa.c  (SSANORM_*): Move into here.
18714         (remove_ssa_form): Now static.
18715         (rewrite_vars_out_of_ssa): Kill.
18716         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
18717         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
18718         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
18719         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
18720         anything was changed.
18721         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
18722         from the PHI's annotation rather than the edge associated with
18723         the new argument.
18724         * tree-ssa-dom.c (redirection_edges): Kill.
18725         (redirect_edges_and_update_ssa_graph): Kill.
18726         (tree_ssa_dominator_optimize): Do not reset forwardable flag
18727         for blocks anymore.  Do not initialize redirection_edges.
18728         Call thread_through_all_blocks.  Simplify code for cleanup
18729         of the CFG and iterating.  No longer call cleanup_tree_cfg
18730         outside the iteration loop.
18731         (thread_across_edge): No longer mess with forwardable blocks.
18732
18733 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
18734
18735         * explow.c (memory_address): Use memory_address_p.
18736         * recog.c (general_operand): Likewise.
18737         * regrename.c: No need to define REG_OK_STRICT.
18738
18739 2004-08-09  Steven Bosscher  <stevenb@suse.de>
18740
18741         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
18742         New timers.
18743         * gcse.c: Include timevar.h.
18744         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
18745         and global_copy_prop_count.
18746         (local_const_prop_count, local_copy_prop_count): New static globals.
18747         (gcse_main): Set the right timevar for each pass.
18748         (cprop_jump): Increment global_const_prop_count when a constant is
18749         propagated.  Add "GLOBAL" to dump output.
18750         (cprop_insn): Increment global_const_prop_count when a constant is
18751         propagated, or global_copy_prop_count when a copy is propagated.
18752         (do_local_cprop): Likewise for local_const_prop_count and
18753         local_copy_prop_count.
18754         (one_cprop_pass): Initialize const/cprop counters to zero.
18755         Print out results of local and global const/cprop separately.
18756         (bypass_block): Break over-length line.
18757         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
18758         for bb-reorder.o and tracer.o.
18759
18760 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18761
18762         * Makefile.in (GTFILES): Remove stmt.c
18763         (stmt.o): Do not depend on gt-stmt.h.
18764         * emit-rtl.c (emit_line_note): Do not call
18765         set_file_and_line_for_stmt.
18766         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
18767         do everything.
18768         * function.c (free_after_parsing): Do not free STMT field.
18769         (allocate_struct_function): Do not call init_stmt_for_function.
18770         (assign_stack_temp_for_type): Do not accept values of keep
18771         other than 0 or 1.
18772         (init_temp_slots): Do not initialize removed variables.
18773         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
18774         and X_VAR_TEMP_SLOT_LEVEL fields.
18775         * rtl.h (set_file_and_line_for_stmt): Remove.
18776         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
18777         struct stmt_status, cond_stack, case_stack, nesting_stack,
18778         nesting_depth, emit_locus, set_file_and_line_for_stmt,
18779         same_case_target_p, init_stmt_for_function, emit_nop,
18780         expand_start_cond, expand_start_elseif, expand_start_else,
18781         expand_elseif, expand_end_cond): Remove.
18782         (preserve_subexpressions_p): Remove references to CFUN->STMT.
18783         (expand_start_case, expand_end_case_type): Remove, merge into...
18784         (expand_case): ... this one, including other bits from
18785         expand_expr_real_1.  Inline same_case_target_p.  Turn members
18786         of CASE_STACK into local variables.
18787         (emit_case_bit_tests): Inline same_case_target_p.
18788         (add_case_node): Add HEAD argument, return new head of the list,
18789         do not handle default label here.
18790         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
18791         expand_start_elseif, current_nesting_level, expand_start_case,
18792         expand_end_case_type, expand_end_case, add_case_node,
18793         init_stmt_for_function, expand_elseif): Remove prototypes.
18794         (expand_case): Add prototype.
18795
18796 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18797
18798         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
18799
18800 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18801
18802         * expr.c (var_rtx): Remove.
18803         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
18804         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
18805         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
18806         Abort.
18807         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
18808         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
18809         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
18810
18811 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
18812         Ayal Zaks <zaks@il.ibm.com>
18813
18814         * common.opt (freschedule-modulo-scheduled-loops): New flag.
18815         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
18816         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
18817         when -freschedule-modulo-scheduled-loops flag is not specified.
18818         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
18819         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
18820         More accurate placing of insn in row of partial schedule.
18821         (ps_insn_find_column): New function.
18822         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
18823         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
18824         (schedule_region): Use sched_is_disabled_for_current_region_p.
18825         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
18826
18827 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18828
18829         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
18830         change.
18831
18832 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18833
18834         * config/i386/i386.c (ix86_expand_clrmem): Properly call
18835         gen_strset for 64bit target.
18836
18837 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
18838
18839         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
18840
18841 2004-08-07  Jason Merrill  <jason@redhat.com>
18842
18843         Make return in memory explicit.
18844         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
18845         (assign_parm_find_data_types): Remove code for old front end
18846         invisible reference handling.
18847         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
18848         (expand_function_end): Likewise.
18849         * gimplify.c (gimplify_return_expr): Handle a dereferenced
18850         RESULT_DECL.
18851         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
18852         (declare_return_variable): Handle DECL_BY_REFERENCE.
18853         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
18854         (cp_genericize_r): Use convert_from_reference.
18855         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
18856         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
18857
18858         * c-common.c (c_warn_unused_result): Check TREE_USED before
18859         warning about a CALL_EXPR with an unused value.
18860
18861 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
18862
18863         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
18864         to the compiler.  Use -fshort-wchar by default.
18865
18866 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
18867
18868         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
18869         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
18870         threshhold.
18871         * doc/invoke.texi (param): Document min-crossjump-insns.
18872
18873 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
18874
18875         PR c/13282
18876         * c.opt (Wmissing-field-initializers): New option.
18877         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
18878         * c-typeck.c (pop_init_level): Guard the missing field warning with
18879         warn_missing_field_initializers rather than extra_warnings.
18880         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
18881         some of the explanation from...
18882         (-Wextra): ...here.  Say that the missing field warning can be
18883         seperately controlled by -Wmissing-field-initializers.
18884
18885 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
18886
18887         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
18888         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
18889         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
18890         * tree.def (ENTRY_VALUE_EXPR): Remove.
18891
18892 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
18893
18894         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
18895         the places where it is actually needed.  Don't use repz; stosb
18896         for -Os with sufficiently small constant sizes.
18897         For sufficiently small repz; stos{l,q} repeat counts use a sequence
18898         of stos{l,q} instructions instead.
18899
18900 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18901
18902         PR tree-optimization/16807
18903         * loop-iv.c (dump_iv_info): Dump invariants correctly.
18904         (iv_subreg, iv_extend): Express value of invariant purely in
18905         base field.
18906
18907 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
18908
18909         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
18910         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
18911
18912 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
18913
18914         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
18915         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
18916         pre_dec_operand.
18917         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
18918         pattern until reload is finished to allow better code generation
18919         and split them completely into separate instrunctions.
18920         (*andsi3_split): New pattern.
18921
18922 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
18923
18924         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
18925         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
18926         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
18927         * tree.h (handle_dll_attribute): Declare.  Test
18928         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
18929         * c-common.h (c_determine_visibility): Declare.
18930         * c-common.c (c_determine_visibility): New function.
18931         * c-decl.c (finish_decl): Use it.
18932         (finish_function): Likewise.
18933         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
18934         zero, by default.  Use #if, not #ifdef, to test it.
18935         * config/arm/arm.c (arm_attribute_table): Use
18936         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
18937         #if.
18938         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
18939         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
18940         to 1.
18941         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
18942         * config/i386/i386.c (ix86_attribute_table): Use
18943         handle_dll_attribute for dllimport/dllexport.  Test
18944         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
18945         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
18946         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
18947         it to 1.
18948         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
18949         with #if.
18950         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
18951         it to 1.
18952         * doc/extend.texi (dllexport): Clarify and correct documentation.
18953         (dllimport): Likewise.
18954         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
18955         handle_dll_attribute.
18956
18957 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18958
18959         * tree-ssa-loop-manip.c: New file.
18960         * Makefile.in (tree-ssa-loop-manip.o): Add.
18961         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
18962         Declare.
18963         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
18964         form.
18965         (tree_ssa_loop_done): Verify loop closed ssa form.
18966         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
18967
18968 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18969
18970         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
18971         pa_asm_output_aligned_local): New functions.
18972         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
18973         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
18974         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
18975         pa_asm_output_aligned_common.
18976         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
18977         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
18978         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
18979         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
18980         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
18981         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
18982         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
18983         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
18984         common data.
18985
18986 2004-08-05  Andrew Pinski  <apinski@apple.com>
18987
18988         * objc/objc-act.c (build_objc_string_object): Mark the address
18989         expression as constant.
18990
18991 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
18992
18993         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
18994         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
18995         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
18996
18997 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
18998
18999         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
19000         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
19001         out, and associated obsolete comments.
19002
19003 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
19004
19005         * tree.h (force_fit_type): Return a tree, take three flags.
19006         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
19007         TREE_CONSTANT_OVERFLOW here.
19008         (int_const_binop, const_binop): Adjust.
19009         (size_int_type): Do sign extension here.
19010         (fold_convert_const, optimize_bit_field_compare,
19011         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
19012         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
19013         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
19014
19015 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19016
19017         PR tree-optimization/16864
19018         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
19019         for ssa names without default_def.
19020
19021 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
19022
19023         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
19024         frame pointer, restore eax with an ebp-relative address.
19025
19026 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
19027
19028         PR 14516
19029         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
19030         * c-common.h (make_rtl_for_local_static): Delete.
19031         * c-decl.c (shadow_tag_warned): Clean up comment.
19032         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
19033         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
19034         * c-semantics.c (make_rtl_for_local_static): Delete.
19035         * expr.c (init_block_move_fn): Use set_user_assembler_name.
19036         (init_block_clear_fn): Likewise.
19037         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
19038         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
19039         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
19040         * tree.h (make_decl_rtl): Remove second parameter.
19041         (set_user_assembler_name): New.
19042         * varasm.c (set_user_assembler_name): New.
19043         (make_decl_rtl): Remove second parameter.  Update callers in many
19044         files.
19045
19046 2004-08-05  Adam Nemet  <anemet@lnxw.com>
19047
19048         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
19049         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
19050         to LynxOS 4.0.
19051         * gthr-lynx.h: New file.
19052         * config/lynx-ng.h: Remove file.
19053         * config/lynx.h: Update to LynxOS 4.0.
19054         * config/t-lynx: New file.
19055         * config/i386/lynx-ng.h: Remove file.
19056         * config/i386/lynx.h: Update to LynxOS 4.0.
19057         * config/rs6000/lynxbase.h: Remove file.
19058         * config/rs6000/lynx.h: Update to LynxOS 4.0.
19059         * config/rs6000/t-lynx: New file.
19060         * doc/install.texi (Options specification): Remove reference to
19061         LynxOS from systems where --with-gnu-as makes a difference.
19062
19063 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
19064
19065         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
19066         __UINTMAX_TYPE__.
19067         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
19068         __INTMAX_MAX__.
19069         (c_cpp_builtins): Call it.
19070         * doc/cpp.texi: Update.
19071
19072 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
19073
19074         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
19075         cost.
19076
19077 2004-08-04  Jan Hubicka  <jh@suse.cz>
19078
19079         * basic-block.h (profile_staus): New global variable.
19080         * cfg.c (profile_status): Declare.
19081         (check_bb_profile): Break out from ....; use profile_status
19082         (dump_flow_info): ... here.
19083         * cfgbuild.c (find_basic_blocks): Set profile_status.
19084         * cfgexpand.c (tree_expand_cfg): Likewise.
19085         * predict.c (estimate_probability): Likewise.
19086         * profile.c (branch_prob): Likewise.
19087         * tree-cfg.c (build_tree_cfg): Likewise.
19088         (dump_function_to_file): Use check_bb_profile.
19089         * tree-pretty-print (dump_bb_header): Likewise.
19090         * tree-profile.c (do_tree_profiling): Cleanup.
19091
19092 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
19093
19094         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
19095         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
19096         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
19097         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
19098         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
19099         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
19100         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
19101         (ggc-none.o, errors.o): Move rule to generators section;
19102         correct dependencies.
19103         (min-insn-modes.o): Move rule to generators section; remove
19104         unnecessary explicit command; correct dependencies.
19105         (print-rtl.o, print-rtl1.o): Correct dependencies.
19106         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
19107         (mostlyclean): Update.
19108
19109         * errors.c: Include bconfig.h not config.h.  Correct comment.
19110         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
19111         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
19112         * print-rtl.c: Don't include tm_p.h.
19113
19114         * rtl.h: Move forward-decl of struct function down where it's
19115         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
19116         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
19117
19118 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19119             Jeff Law  <law@redhat.com>
19120
19121         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
19122         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
19123         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
19124         manipulate the duplicated ssa names.
19125         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
19126         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
19127         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
19128         New functions.
19129         (release_ssa_name): Do not release ssa names that may have multiple
19130         definitions.
19131         * tree.h (release_ssa_name_force, mark_for_rewrite,
19132         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
19133         marked_ssa_names): Declare.
19134         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
19135         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
19136         Update call to rewrite_ssa_into_ssa.
19137
19138 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
19139
19140         * defaults.h (TARGET_DECLSPEC): New macro.
19141         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
19142         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
19143         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
19144         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
19145         __declspec support.
19146         (TARGET_DECLSPEC): Define.
19147         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
19148         __declspec support.
19149         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
19150         __declspec support.
19151         (TARGET_DECLSPEC): Define.
19152         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
19153         __declspec support.
19154         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
19155         support.
19156         * doc/tm.texi (TARGET_DECLSPEC): Document.
19157
19158         * doc/extend.texi: Fix typo in comment.
19159
19160 2004-08-04  Paul Brook  <paul@codesourcery.com>
19161
19162         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19163         (TARGET_CXX): Use it.
19164         * target.h (struct gcc_target): Add cdtor_returns_this.
19165         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
19166         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19167         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
19168
19169 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
19170
19171         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
19172         low/high pair. Do range checking directly.
19173         (interpret_integer): Adjust.
19174
19175 2004-08-04  Nick Clifton  <nickc@redhat.com>
19176
19177         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
19178         GCC ABI.
19179         * doc/invoke.texi: Document this new switch and also the -mrenesas
19180         switch.
19181
19182 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
19183
19184         * cfglayout.c (insn_locators_initialize): Update the current
19185         location before initializing a location.
19186
19187 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
19188
19189         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
19190         (dbxout_function_end): Return after emitting the "Lscope" symbol
19191         under the same conditions that this function formerly wasn't called.
19192         Add explanatory comments.
19193
19194         PR 14860
19195         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
19196         on the new decl.
19197
19198         PR 13956
19199         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
19200         functions, broken out of dbxout_block.
19201         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
19202         stabs too, if it contains symbols.  Use the begin_label and
19203         the Lscope label (emitted by dbxout_function_end) for the
19204         range of this block.
19205
19206 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
19207
19208         * doc/install.texi: Update autoconf version requirements.
19209
19210 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
19211
19212         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
19213         * recog.c (general_operand, immediate_operand, nonmemory_operand)
19214         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
19215         * regclass.c (record_reg_classes): Likewise.
19216         * reload.c (find_reloads): Likewise.
19217         * reload1.c (reload): Likewise.
19218
19219 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
19220
19221         * gensupport.c (init_md_reader_args_cb): Renamed from
19222         init_md_reader_args.  Add third option, callback function for
19223         parsing program-specific options.  Add diagnosis of incorrect
19224         number of input files.
19225         (init_md_reader): Fold into init_md_reader_args_cb.
19226         (init_md_reader_args): Now a thin wrapper around
19227         init_md_reader_args_cb.
19228         * gensupport.h: Update prototypes.
19229
19230         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
19231         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
19232         * genrecog.c: No need to diagnose lack of an input file;
19233         init_md_reader_args will handle it.
19234         * genconditions.c: Likewise, and use init_md_reader_args.
19235         * genconstants.c: Likewise, and no need to call read_md_rtx.
19236
19237 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
19238
19239         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
19240         declarations.
19241
19242 2004-08-03  Mike Stump  <mrs@apple.com>
19243
19244         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
19245         for frameworks.
19246         * doc/invoke.texi (Darwin Options): Update to reflect above.
19247
19248 2004-08-03  Roger Sayle  <roger@eyesopen.com>
19249
19250         PR middle-end/16790
19251         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
19252         truncations, not just global truncations.
19253
19254 2004-08-03  Andrew Pinski  <apinski@apple.com>
19255
19256         PR bootstrap/16865
19257         * loop-iv.c (simplify_using_assignment): Initialize lhs.
19258
19259 2004-08-03  Paul Brook  <paul@codesourcery.com>
19260
19261         * gcc/doc/install.texi: Document MPFR requirement.
19262
19263 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
19264
19265         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
19266         and mmap() explicitly instead of relying on preset autoconf cache
19267         variables.
19268         * configure: Regenerate.
19269
19270 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
19271
19272         PR target/16570
19273         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
19274         to tmake_file.
19275         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
19276         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
19277         to tmake_file.
19278
19279         * config/i386/t-gmm_malloc: New file.
19280         * config/i386/t-pmm_malloc: Likewise.
19281
19282         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
19283
19284 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
19285             Tanguy Fautrà <tfautre@pandora.be>
19286
19287         * config/i386/pmm_malloc.h: New file.
19288
19289 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
19290
19291         * config/i386/gmm_malloc.h: New file.
19292
19293 2004-08-03  Dale Johannesen  <dalej@apple.com>
19294
19295         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
19296         * c-common.c: Include opts.h.
19297         (c_common_get_alias_set): Fix check for a single input file.
19298         * toplev.c: Remove current_file_decl.
19299         * tree.h: Ditto.
19300
19301 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
19302
19303         * config.gcc (arm*-*-symbianelf*): New target.
19304         * config/arm/symbian.h: New file.
19305
19306         * gthr-gnat.c: Add visibility #pragmas.
19307         * gthr-gnat.h : Likewise.
19308         * gthr.h: Likewise.
19309         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
19310         (__ffsDI2): Likewise.
19311         (__clzSI2): Likewise.
19312         (__ctzSI2): Likewise.
19313         (__ctzDI2): Likewise.
19314         (__popcountSI2): Likewise.
19315         (__popcountDI2): Likewise.
19316         (__paritySI2): Likewise.
19317         (__parityDI2): Likewise.
19318         * libgcc2.h: Add visibility #pragmas.
19319         (__clzDI2): Add prototype.
19320         (__clzSI2): Likewise.
19321         (__ctzSI2): Likewise.
19322         (__ffsDI2): Likewise.
19323         (__ffsSI2): Likewise.
19324         (__ctzDI2): Likewise.
19325         (__popcountSI2): Likewise.
19326         (__popcountDI2): Likewise.
19327         (__paritySI2): Likewise.
19328         (__parityDI2): Likewise.
19329         * unwind-dw2-fde.h: Add visibility #pragmas.
19330         * unwind.h: Likewise.
19331
19332 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
19333             Dale Johannesen  <dalej@apple.com>
19334             Roger Sayle  <roger@eyesopen.com>
19335
19336         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
19337         constants more accurately.  Adjust costs for FMA instructions.
19338         Add cases for most logical and float operations.  Recurse into
19339         most operands.
19340
19341 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
19342
19343         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
19344
19345 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
19346
19347         * ra-build.c (conflicts_between_webs): For webs that cross a call add
19348         conflicts to regs_invalidated_by_call.
19349
19350 2004-08-03  Paul Brook  <paul@codesourcery.com>
19351
19352         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
19353
19354 2004-08-03  Jan Hubicka  <jh@suse.cz>
19355
19356         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
19357         ARRAY_REF argument.
19358
19359 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
19360
19361         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
19362         arm968es, arm10e, arm1020e, arm1022e.
19363         * invoke.texi: Update list of ARM cores.
19364         * arm-tune.md: Regenerate.
19365
19366 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
19367
19368         * arm/gentune.sh: New file.
19369         * arm/t-arm: New file.
19370         * arm/arm-tune.md: New file (autogenerated).
19371         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
19372         * arm.md (attribute tune): Delete.  Include arm-tune.md.
19373
19374 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
19375
19376         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
19377         penultimate parameter.  All callers adjusted.
19378         (struct prefix_list): Remove used_flag_ptr.
19379         (find_a_file): Do not set *pl->used_flag_ptr.
19380         (warn_B, warn_std_ptr): Remove.
19381
19382 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
19383             Mostafa Hagog <mustafa@il.ibm.com>
19384
19385         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
19386
19387 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
19388
19389         * dwarf2out.c (output_call_frame_info): Don't change data format
19390         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
19391         label.  Use 'true' not '1'.
19392         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
19393         required.
19394
19395 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19396
19397         * gdbinit.in: Reflect previous changes to rtunion_def.
19398
19399 2004-08-02  Roger Sayle  <roger@eyesopen.com>
19400
19401         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
19402         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
19403
19404 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19405
19406         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
19407         vec_p_reserve.
19408         * langhooks.h (lang_hooks::builtin_function): Rename parameter
19409         from "class" to "bt_class".
19410
19411 2004-08-02  Paul Brook  <paul@codesourcery.com>
19412
19413         PR rtl-optimization/15068
19414         * flow.c (init_propagate_block_info): Check condition is reversible.
19415
19416 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19417
19418         * gengtype.h (options::info): Change type to const char *.
19419         (enum gc_used_enum): Move out of struct type scope.
19420         * gengtype.c (create_option): Convert initializer for option::info to
19421         appropiate type.
19422         (adjust_field_type, walk_type, write_func_for_structure,
19423         write_root, write_roots): Remove pointless cast.
19424
19425 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
19426
19427         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
19428
19429 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19430
19431         * rtl.h (union rtunion_def): Have all members  start with the
19432         prefix "rt_".
19433         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
19434         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
19435         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
19436         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
19437         access.
19438         * gengtype.c (adjust_field_rtx_def): Likewise.
19439         * rtlanal.c (loc_mentioned_in_p): Likewise.
19440
19441 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
19442
19443         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
19444         Replace uses of mips/elf64.h with mips/elf.h
19445         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
19446         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
19447         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
19448         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
19449         (HANDLE_SYSV_PRAGMA): Delete.
19450         (ASM_OUTPUT_DEF): Fix formatting.
19451         * config/mips/elf64.h: Delete.
19452
19453 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
19454
19455         * config/ia64/ia64.c (got_symbolic_operand): Do require a
19456         symbol+offset operand to have its offset be zero mod 0x3fff
19457         when GOT entries are in use.  Clarify logic in SYMBOL_REF
19458         case.  Clarify comments.
19459         (ia64_expand_load_address): Split a symbol+offset load when
19460         the offset is nonzero mod 0x3fff, not 0x1fff.
19461
19462 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
19463
19464         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
19465         if trying to *store* to a non-offsettable address.
19466         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
19467         a nonoffsettable address.
19468         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
19469         Clean up.
19470         (movti_string): Don't move GPRs to a nonoffsettable address.
19471         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
19472
19473 2004-08-02  Ben Elliston  <bje@au.ibm.com>
19474
19475         PR target/16155
19476         * config/rs6000/altivec.h: Replace typeof with __typeof__.
19477
19478 2004-08-01  Richard Henderson  <rth@redhat.com>
19479
19480         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
19481         variable sized types.
19482
19483 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
19484
19485         * doc/invoke.texi: In the MIPS options section, remove the passage
19486         saying that -mexplicit-relocs is usually disabled for -mabicalls
19487         -fno-unit-at-a-time.
19488         * config/mips/mips.c (override_options): Remove the code that enforced
19489         this rule.
19490
19491 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
19492
19493         * config/mips/mips.md (cprestore): Provide two alternatives, one for
19494         an in-range offset and one for an out-of-range offset.  Wrap the latter
19495         in .set macro/.set nomacro if it's inside a .set nomacro block.
19496
19497 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
19498
19499         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
19500         (mips_restore_gp): Declare.
19501         * config/mips/mips.c (mips_add_offset): Add a scratch register
19502         argument.  Reimplement in rtl only, reusing MIPS16 logic from
19503         mips_output_mi_thunk.
19504         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
19505         to mips_add_offset.
19506         (mips_gp_save_slot): Delete.
19507         (mips_restore_gp): New function.
19508         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
19509         * config/mips/mips.md (exception_receiver): Turn into a
19510         define_insn_and_split.  Use mips_restore_gp to do the split.
19511         (call_internal, call_value_internal, call_value_multiple_internal): Use
19512         mips_restore_gp to restore $gp.
19513
19514 2004-07-31  Andrew Pinski  <apinski@apple.com>
19515
19516         PR other/16842
19517         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
19518
19519 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
19520
19521         * c-decl.c (diagnose_mismatched_decls): Give error for external
19522         redeclaration of identifier declared with no linkage, not just
19523         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
19524         error for redeclaration with no linkage.
19525
19526 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
19527             Fariborz Jahanian <fjahanian@apple.com>
19528
19529         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
19530         non-offsettable addresses even for DImode.
19531         (rs6000_split_multireg_move): Cope with non-offsettable addresses
19532         being moved into multiple GPRs.
19533
19534         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
19535         to 64.
19536         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
19537         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
19538         to 128.
19539         * config/rs6000/darwin-ldouble.c (isless): New macro.
19540         (inf): New macro.
19541         (nonfinite): New macro.
19542         (FPKINF): Delete.
19543         (_xlqadd): Completely rewrite.
19544         (_xlqmul): Correct overflow handling.
19545         (_xlqdiv): Correct overflow handling.
19546         * config/rs6000/darwin-ldouble-format: New file.
19547
19548 2004-07-30  Roger Sayle  <roger@eyesopen.com>
19549             Richard Henderson  <rth@redhat.com>
19550
19551         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
19552         9 into the equivalent lea instruction.
19553
19554 2004-07-30  Richard Henderson  <rth@redhat.com>
19555
19556         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
19557         with DECL_INITIAL if fb_lvalue.
19558         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
19559         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
19560         with <Cxxx>.
19561         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
19562
19563 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
19564
19565         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
19566         pointer escapes through a function call, assume that the
19567         callee will dereference it.
19568         (add_pointed_to_var): Assume that VALUE is always an
19569         ADDR_EXPR.
19570         (collect_points_to_info_r): Only call add_pointed_to_var if
19571         the value is an ADDR_EXPR.
19572
19573 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
19574
19575         * tree-ssa-alias.c (create_alias_map_for): Do not get the
19576         alias set of the inner type of ARRAY_TYPEs.
19577
19578 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
19579
19580         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
19581         setting a non-register to UNDEFINED right before the call to
19582         set_lattice_value.
19583
19584 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19585
19586         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
19587
19588 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
19589
19590         * tree-ssa.c (verify_flow_sensitive_alias_info): When
19591         comparing points-to sets of different pointers, make sure the
19592         second pointer is actually referenced in the code.
19593
19594 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
19595
19596         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
19597         (got_symbolic_operand): Remove unreachable code.
19598         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
19599         setjmp_operand; add entry for tls_symbolic_operand.
19600         * config/ia64/ia64-protos.h: Remove all prototypes of
19601         predicate functions.
19602
19603 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
19604
19605         * c-common.h (lang_post_pch_load): New variable.
19606         * c-pch.c (lang_post_pch_load): Define it.
19607         (c_common_read_pch): Use it.
19608         * cgraphunit.c (record_call_1): Give the front end a chance to
19609         record additional needed entities when a variable is marked as
19610         needed.
19611         * tlink.c (recompile_files): Robustify.
19612         (scan_linker_output): If a symbol is assigned to a file,
19613         but after recompilation is not present there, issue an error
19614         message.
19615
19616 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19617
19618         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
19619         Take orig_loop argument and pass it to set_level.
19620         (schedule_sm): Pass the correct orig_loop to force_move_till.
19621
19622 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19623
19624         * cfgloop.c (update_latch_info): Update dominator of the new block.
19625         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
19626         info.
19627         * dominance.c (verify_dominators): Check that the dominance tree is
19628         connected.
19629         (recount_dominator): Ignore unreachable blocks.
19630         (iterate_fix_dominators): Cleanup old dominance information before
19631         recomputing it.
19632
19633 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
19634
19635         * tree-ssa-operands.c (get_expr_operands): Revert changes
19636         to ADDR_EXPR processing introduced by:
19637             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19638             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
19639
19640 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
19641
19642         * doc/implement-c.texi: Add C90 subclause references.  Point to
19643         preprocessor documentation instead of duplicating it.  Add points
19644         only present in C90.  Fill in documentation for all points.
19645
19646 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19647
19648         * pa.c (output_movb): Correct typo.
19649
19650 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
19651
19652         * ra.h (single_reg_in_regclass): Declare.
19653         * ra.c (single_reg_in_regclass): Define.
19654         (first_hard_reg): New.
19655         (init_ra): Initialize single_reg_in_regclass.
19656         * ra-colorize.c (ok_class): New.
19657         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
19658
19659 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
19660
19661         * gcov-io.h: Allow zero tag as EOF indicator.
19662         (gcov_is_eof): Remove.
19663         (gcov_truncate): Remove.
19664         * gcov-io.c (gcov_seek): Always SEEK_SET.
19665         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
19666         EOF tag.
19667         * coverage.c (read_counts_file): Don't use gcov_is_eof.
19668         * gcov-dump.c (dump_file): Likewise.
19669         * gcov.c (read_graph_file, read_count_file): Likewise.
19670
19671         * c-decl.c (complete_array_type): Don't gratuitously copy
19672         maxindex.  Check it always has a type.
19673
19674 2004-07-29  Steven Bosscher  <stevenb@suse.de>
19675
19676         * rtl.c (currently_expanding_to_rtl): New.
19677         * rtl.h (currently_expanding_to_rtl): Export it.
19678         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
19679
19680         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
19681         inliner hack.
19682         * config/sh/sh.c: Replace rtx_equal_function_value_matters
19683         with currently_expanding_to_rtl.
19684         * config/sh/sh.md: Likewise.
19685         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
19686
19687 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
19688
19689         Introduce sh2a support.
19690         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
19691         * config.gcc: Build multilibs for sh2a and sh2a-single by
19692         default.
19693         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
19694         default.  Split their tests out of the corresponding SH4
19695         multilibs.
19696         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
19697         multilibs for SH2a.
19698         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
19699         * config.gcc: Handle sh2a multilibs and cpu selection.
19700         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
19701         * config/sh/t-mlib-sh2a: New.
19702         * config/sh/t-mlib-sh2a-nofpu: New.
19703         * config/sh/t-mlib-sh2a-single: New.
19704         * config/sh/t-mlib-sh2a-single-only: New.
19705         2004-07-09  Nick Clifton  <nickc@redhat.com>
19706         Issue 43400
19707         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
19708         -ml and -m2a are used together.
19709         2004-03-23  DJ Delorie  <dj@redhat.com>
19710         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
19711         when we have a double-sized FPU.
19712         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
19713         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
19714         is set.
19715         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
19716         -msh2a-single and -msh2a-single-only
19717         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
19718         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
19719         is set.
19720         2004-02-20  DJ Delorie  <dj@delorie.com>
19721         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
19722         2004-02-20  Fred Fish <fnf@redhat.com>,
19723         Corinna Vinschen <vinschen@redhat.com>
19724         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
19725         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
19726         2004-02-18  DJ Delorie  <dj@redhat.com>
19727         * config/sh/sh.c (broken_move): Add support for movi20.
19728         * config/sh/sh.h: Likewise.
19729         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
19730         * config/sh/sh.md (udivsi3_sh2a): New.
19731         (udivsi3): Call it.
19732         (divsi3_sh2a): New.
19733         (divsi3): Call it.
19734         (mul_r): New.
19735         (ashlsi3_sh2a): New.
19736         (ashrsi3_sh2a): New.
19737         (lshrsi3_sh2a): New.
19738         (movsi_i): Disable for sh2a.
19739         (movsi_ie): Add movi20.
19740         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
19741         sh2a, for -m2a-nofpu mode.
19742         2004-02-13  DJ Delorie  <dj@redhat.com>
19743         * config/sh/lib1funcs.asm: Handle double vs single better.
19744         * config/sh/sh.h: Likewise.
19745         2004-02-09  DJ Delorie  <dj@redhat.com>
19746         * config/sh/crt1.asm: Add support for sh2a.
19747         * config/sh/elf.h: Likewise.
19748         * config/sh/lib1funcs.asm: Likewise.
19749         * config/sh/sh.c: Likewise.
19750         * config/sh/sh.md: Likewise.
19751         * config/sh/sh.h: Likewise.
19752         * config/sh/t-sh: Likewise.
19753
19754 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
19755
19756         * config/frv/frv.md (movqi_internal, movhi_internal,
19757         movsi_internal): Add backup alternatives for memory inputs.
19758
19759 2004-07-28  Matt Austern  <austern@apple.com>
19760
19761         * config/darwin.c (darwin_one_byte_bool): New global variable.
19762         * config/darwin.h (darwin_one_byte_bool): Declare.
19763         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
19764         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
19765         value of darwin_one_byte_bool.
19766         * doc/invoke.texi: Document -mone-byte-bool flag.
19767
19768 2004-07-28  Eric Christopher  <echristo@redhat.com>
19769
19770         * c-common.c (c_common_unsafe_for_reeval): Delete.
19771         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
19772         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
19773         * calls.c (fix_unsafe_tree): Delete.
19774         (expand_call): Delete code which used above.
19775         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
19776         * expr.c (expand_expr_real_1): Ditto.
19777         * fold-const.c (non_lvalue): Ditto.
19778         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
19779         (lhd_unsafe_for_reeval): Ditto.
19780         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
19781         * langhooks.h (unsafe_for_reeval): Ditto.
19782         (unsave_expr_now): Adjust comment.
19783         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
19784         (estimate_num_insns_1): Ditto.
19785         * tree-pretty-print.c (dump_generic_node): Ditto.
19786         * tree.c (expr_align): Ditto.
19787         (unsave_expr): Delete.
19788         (unsafe_for_reeval): Ditto.
19789         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
19790         * tree.def (UNSAVE_EXPR): Delete.
19791         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
19792
19793 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
19794
19795         * tree.h (enum tls_model): Move ...
19796         * coretypes.h: ... here.
19797
19798 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
19799
19800         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
19801
19802 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
19803
19804         * cse.c (validate_canon_reg): New function, split out from...
19805         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
19806
19807 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19808
19809         * tree-ssa-alias.c (maybe_create_global_var): Don't just
19810         return if .GLOBAL_VAR has been created.
19811
19812 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19813
19814         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
19815         every variable that may have aliases, not just tags.
19816
19817 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
19818
19819         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
19820         move_from_CR_eq_bit.
19821         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
19822
19823
19824         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
19825         e500_flip_eq_bit.
19826
19827         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
19828         output_e500_flip_eq_bit.
19829
19830         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
19831         output_e500_flip_eq_bit.
19832         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
19833         output_e500_flip_eq_bit.
19834         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
19835         (print_operand): case D.  Get to EQ bit.
19836
19837 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
19838
19839         * gcov.c (function_summary): Add missing \n.
19840
19841 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
19842
19843         Introduce sh4a support.
19844         * config.gcc: Handle sh4a multilibs and cpu selection.
19845         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
19846         * config/sh/t-mlib-sh4a: New.
19847         * config/sh/t-mlib-sh4al: New.
19848         * config/sh/t-mlib-sh4a-nofpu: New.
19849         * config/sh/t-mlib-sh4a-single: New.
19850         * config/sh/t-mlib-sh4a-single-only: New.
19851         2004-02-20  DJ Delorie  <dj@redhat.com>
19852         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
19853         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
19854         2003-08-22  Eric Christopher  <echristo@redhat.com>
19855         * config/sh/sh4a.md: Update for chip errata.
19856         2003-08-07  Eric Christopher  <echristo@redhat.com>
19857         * config/sh/sh4a.md: New file. sh4a processor description.
19858         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
19859         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
19860         of -m4a-nofpu.
19861         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
19862         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
19863         * doc/invoke.texi (SH Options): Document -m4al.
19864         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
19865         * config/sh/sh.c (expand_block_move): Remove commented-out code
19866         checked in by mistake.
19867         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
19868         single elements from SFmode vectors.
19869         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
19870         register.
19871         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
19872         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
19873         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
19874         sh_fsca_int2sf): Remove variable declarations.
19875         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
19876         sh_fsca_int2sf): New functions.
19877         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
19878         sh_fsca_int2sf_rtx): New static variables.
19879         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
19880         sh_fsca_int2sf): Declare.
19881         * config/sh/sh.md: Adjust.
19882         * doc/invoke.texi (SH Options): Document new options.
19883         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
19884         compatibility from SH4 code.
19885         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
19886         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
19887         early.
19888         (memory_movsrc_operand): Renamed to...
19889         (unaligned_load_operand): ... this.  Simplified.
19890         * config/sh/sh.h (PREDICATE_CODES): Adjust.
19891         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
19892         input operand to SImode, and adjust the others.  Introduce
19893         post-increment by peephole.
19894         * config/sh/sh.c (expand_block_move): Give the target address the
19895         same mode as the temp reg.
19896         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
19897         copying.
19898         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
19899         Introduce support for SH4a.
19900         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
19901         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
19902         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
19903         sh_fsca_int2sf): New.
19904         (sh_init_builtins): Initialize them.
19905         (print_operand): Support `d'.
19906         (expand_block_move): Use movua if src is misaligned.
19907         (memory_movsrc_operand): New.
19908         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
19909         and one of the SH4 macros.
19910         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
19911         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
19912         SELECT_SH4A_SINGLE): New.
19913         (TARGET_NONE): Add SH4A_BIT.
19914         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
19915         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
19916         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
19917         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
19918         (enum processor_type): Added PROCESSOR_SH4A.
19919         (PREDICATE_CODES): Add memory_movsrc_operand.
19920         * config/sh/sh.md: Removed unused variables.
19921         (attr cpu): Add sh4a.
19922         (attr type): Add movua, fsrra and fsca.
19923         (prefetch): New, for SH4.
19924         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
19925         (toggle_sz): Set type to fp.
19926         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
19927         (movua, extv, extzv): New.
19928         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
19929         and 4a-single-only.
19930
19931 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19932
19933         * tree-optimize.c (init_tree_optimization_passes): Schedule
19934         pass_may_alias right after the program is renamed into SSA.
19935         * tree-pass.h (PROP_alias): Define.
19936         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
19937         * tree-sra.c (pass_sra): Likewise.
19938         * tree-ssa-ccp.c (pass_ccp): Likewise.
19939         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
19940         * tree-ssa-dce.c (pass_dce): Likewise.
19941         * tree-ssa-dom.c (pass_dominator): Likewise.
19942         * tree-ssa-dse.c (pass_dse): Likewise.
19943         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
19944         * tree-ssa-loop-ch.c (pass_ch): Likewise.
19945         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
19946         * tree-ssa-pre.c (pass_pre): Likewise.
19947         * tree-tailcall.c (pass_tail_recursion): Likewise.
19948         * tree-ssa.c (pass_redundant_phi): Likewise.
19949         * tree-ssa-alias.c (aliases_computed_p): Remove.
19950         Update all users.
19951         (init_alias_info): Do not mark all type tags for renaming
19952         unconditionally.
19953         Clear may_aliases from every symbol.
19954         (setup_pointers_and_addressables): If a pointer has not been
19955         dereferenced and it had a type tag, clear it and mark the old
19956         tag for renaming.
19957
19958 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19959
19960         PR tree-optimization/16705
19961         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
19962         .GLOBAL_VAR.
19963
19964 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19965
19966         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
19967         check.
19968
19969         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
19970         don't make another one.
19971
19972         PR optimization/15077
19973         * function.h (struct function): Add field saved_static_chain_decl.
19974         Fix comment for static_chain_decl.
19975         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
19976         * tree-inline.h (save_body): Add new arg.
19977         * tree-optimize.c (tree_rest_of_compilation): Handle saving
19978         static_chain_decl.
19979
19980 2004-07-27  Richard Henderson  <rth@redhat.com>
19981
19982         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
19983         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
19984         is_gimple_addressable.
19985         * tree-gimple.c (is_gimple_addressable): Rename from
19986         is_gimple_addr_expr_arg; accept INDIRECT_REF.
19987         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
19988         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
19989         rename to is_gimple_addressable.
19990
19991 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
19992
19993         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
19994
19995 2004-07-27  Richard Henderson  <rth@redhat.com>
19996
19997         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
19998         before rounding.
19999
20000 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
20001
20002         * libgcc2.c: Change all conditionals testing
20003         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
20004         * libgcc2.h: Likewise.
20005         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
20006         TYPE_PRECISION of float80_type to 80.
20007         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
20008         of fpreg_type and float80_type to 80.
20009         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
20010         * config/m68k/netbsd-elf.h:
20011         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
20012         to evaluate to 80 whenever they would formerly have evaluated to 96.
20013         * config/i386/sco5.h: Remove unnecessary redefinition of
20014         LONG_DOUBLE_TYPE_SIZE.
20015         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
20016         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
20017         XFmode, with a bitsize of 80.  Update commentary.
20018         * config/ia64/ia64-modes.def: Likewise.
20019         * config/m68k/m68k-modes.def: Likewise.
20020
20021 2004-07-27  Steven Bosscher  <stevenb@suse.de>
20022
20023         * cfgexpand.c (tree_expand_cfg): Fix comment.
20024
20025         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
20026         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
20027         Remove.
20028         (prepare_function_start): Don't set rtx_equal_function_value_matters.
20029         * integrate.c (copy_rtx_and_substitute): Don't test for it.
20030         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
20031         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
20032         here again.  Update leading comment.
20033         * rtl.c (rtx_equal_function_value_matters): Remove.
20034         (rtx_equal_p): Don't test for it.
20035         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
20036         Likewise.
20037
20038         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
20039         * rtl.c (note_insn_name): Likewise.
20040         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
20041         * final.c (final_scan_insn): Likewise.
20042
20043         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
20044         * passes.c (rest_of_handle_eh): Do it here.
20045
20046         * stmt.c (struct nesting): Remove struct nesting block member.
20047         (struct stmt_status): Remove x_block_start_count field.
20048         (current_block_start_count): Remove.
20049
20050 2004-07-27  Brian Booth  <bbooth@redhat.com>
20051
20052         * tree-optimize.c (register_one_dump_file): Update condition that uses
20053         static_pass_number.
20054         (dup_pass_1): Replace with...
20055         (next_pass_1): This.
20056         (NEXT_PASS): Call next_pass_1.
20057         (DUP_PASS): Remove.
20058         (init_tree_optimization_passes): Remove uses of DUP_PASS.
20059         (execute_one_pass): Update condition that uses
20060         static_pass_number.
20061         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
20062         integer.
20063
20064 2004-07-27  Nick Clifton  <nickc@redhat.com>
20065
20066         * config/m32r/m32r.c: Include integrate.h in order to get the
20067         prototype for get_hard_reg_initial_val().
20068
20069         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
20070         and tidy up indentation.
20071         (final_presence_set): Use absence_set instead, so that if there is
20072         nothing in the "o" pipe the "s" pipe can be scheduled.
20073
20074 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
20075
20076         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
20077         don't have PT_VARS nor PT_MALLOC set.
20078         Clear name tag from pointers that have not been dereferenced.
20079         (set_pt_anything, set_pt_malloc): Forward declare.
20080         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
20081         not type compatibility when determining if a pointer can be
20082         copy propagated.
20083
20084 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
20085
20086         * expr.h (canonicalize_condition, get_condition): Add an int argument.
20087         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
20088         it to check whether the condition is still valid at the jump insn.
20089         * ifcvt.c (noce_get_condition): Likewise.
20090         (noce_get_alt_condition): Update call to canonicalize_condition.
20091         * loop-iv.c (simplify_using_initial_values): Update call to
20092         get_condition.  Remove FIXME.
20093         (check_simple_exit): Update call to get_condition.
20094         * loop-unswitch.c (may_unswitch_on): Likewise.
20095         * loop.c (check_dbra_loop): Likewise.
20096         (canonicalize_condition, get_condition): Add an argument to say whether
20097         the condition must still be valid at INSN.
20098         (get_condition_for_loop): Update call to get_condition.  Require that
20099         the condition be valid at INSN.
20100         * predict.c (estimate_probability): Update call to get_condition.
20101         Remove unused earliest parameter.
20102         (expected_value_to_br_prob): Update call to canonicalize_condition.
20103
20104 2004-07-26  Eric Christopher  <echristo@redhat.com>
20105
20106         * tree-dfa.c (add_referenced_var): Register initializers of global
20107         variables.
20108
20109 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
20110
20111         * config/i386/i386.c (function_arg): Always treat 8-
20112         and 16-byte wide vectors the same, even if MMX/SSE
20113         are disabled.
20114         (contains_128bit_aligned_vector_p): Add comment.
20115
20116 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
20117
20118         * ra.h (enum node_type): Rename to:
20119         (enum ra_node_type).
20120         * ra-colorize.c: Likewise.
20121
20122 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
20123
20124         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
20125         after simplifying the jump.
20126
20127 2004-06-26  Richard Henderson  <rth@redhat.com>
20128
20129         * calls.c (combine_pending_stack_adjustment_and_call): Make
20130         preferred_unit_stack_boundary argument unsigned.  Make
20131         unadjusted_alignment unsigned.
20132         (expand_call): Make preferred_stack_boundary and
20133         preferred_unit_stack_boundary variables unsigned.
20134         * function.c (assign_stack_local_1): Make alignment unsigned.
20135         * function.h (struct function): Make stack_alignment_needed,
20136         preferred_stack_boundary unsigned.
20137         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
20138         (ix86_compute_frame_layout): Make stack_alignment_needed,
20139         preferred_alignment variables unsigned.
20140         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
20141
20142 2004-07-26  Tom Tromey  <tromey@redhat.com>
20143
20144         * tree.h: Fix typo in comment.
20145
20146 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
20147
20148         PR bootstrap/12804
20149         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
20150         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
20151         (ggc_free): Remove incorrect freeing.
20152         (sweep_pages): Advance PP for large pages.  Fix indentation.
20153
20154 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
20155
20156         PR rtl-optimization/16643
20157         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
20158         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
20159         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
20160         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
20161         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
20162         * function.c (thread_prologue_and_epilogue_insns): Likewise.
20163         * rtl.h (tracer): Add a flags parameter.
20164         * tracer.c (tracer): Pass it to cfg_layout_initialise.
20165         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
20166         (rest_of_handle_reorder_blocks): Update calls to tracer and
20167         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
20168         (rest_of_handle_tracer): Pass 0 to tracer.
20169         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
20170
20171 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
20172
20173         PR target/16239
20174         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
20175         f->f.
20176
20177 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
20178
20179         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
20180         (BINFO_BASE_ACCESS): Adjust.
20181         (BINFO_BASE_ACCESS_APPEND): New.
20182         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
20183         * dbxout.c (dbxout_type): Adjust binfo access accessing.
20184         * dwarf2out.c (gen_member_die): Likewise.
20185         * tree-dump.c (deque_and_dump): Likewise.
20186
20187 2004-07-26  Falk Hueffner  <falk@debian.org>
20188
20189         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
20190         costs.
20191
20192 2004-07-25  Roger Sayle  <roger@eyesopen.com>
20193
20194         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
20195         value off of the stack if TARGET_USE_FFREEP.
20196
20197 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
20198
20199         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
20200         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
20201         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
20202         check on invocation of XRESIZEVEC ().
20203
20204 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
20205
20206         * c-common.c (disable_builtin_function): Rename variable n to
20207         new_disabled_builtin.
20208         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
20209         Rename local variable old to old_decl.
20210         * gensupport.c (shift_output_template): Rename parameter old to src.
20211         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
20212         old_rtx and newx to new_rtx.
20213
20214 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
20215
20216         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
20217         of c-pragma.h.
20218         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
20219         enum cpp_ttype.
20220         * c-lex.c: Likewise.
20221
20222 2004-07-25  Roger Sayle  <roger@eyesopen.com>
20223
20224         * fold-const.c (constant_boolean_node): Make extern.
20225         (make_range): Wrap long lines.
20226         (fold_cond_expr_with_comparison): Remove unnecessary call to
20227         pedantic_non_lvalue.  Add missing calls to fold_convert.
20228         (fold_truthop): Add missing calls to fold_convert.
20229         (fold): Likewise.
20230         * tree.h (constant_boolean_node): Add prototype here.
20231         * builtins.c (expand_builtin_strncmp): Add missing calls to
20232         fold_convert.
20233         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
20234         Call fold_convert and constant_boolean_node to correct types.
20235         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
20236         missing call to fold_convert to correct types.
20237
20238 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
20239             Brian Ryner  <bryner@brianryner.com>
20240
20241         PR c++/9283
20242         PR c++/15000
20243         * c-common.c (c_common_attribute_table): Allow
20244         handle_visibility_attribute to be called for types.
20245         (handle_visibility_attribute) When given a type, set the visibility
20246         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
20247         so that we can check later whether the attribute was present. Added
20248         warning if attribute applied to non class type.
20249         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
20250         decls and checking that they are consistent.
20251         * common.opt: Added -fvisibility.
20252         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
20253         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
20254         * flags.h, tree.h: Added assorted support defines for overall patch
20255         * opts.c: Added parsing support for -fvisibility.
20256         * tree.c (build_decl): Set visibility for all decls to be whatever
20257         is in force at that time.
20258         * varasm.c (default_binds_local_p_1): Reworked logic determining
20259         when to make a symbol locally bound.
20260         * doc/invoke.texi: Added documentation for -fvisibility and
20261         -fvisibility-inlines-hidden.
20262
20263 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20264
20265         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
20266         * c-common.c: Add missing casts from void * to other types.
20267         * c-decl.c: Likewise.
20268         * c-format.c: Likewise.
20269         * c-lex.c: Likewise.
20270         * c-pragma.c: Likewise.
20271         * c-typeck.c: Likewise.
20272         * defaults.h: Likewise.
20273         * genconstants.c: Likewise.
20274         * gengtype-lex.l: Likewise.
20275         * genmodes.c: Likewise.
20276         * read-rtl.c: Likewise.
20277         * rtl.c: Likewise.
20278
20279 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20280
20281         * bitmap.c: Use type-safe memory allocation macros from libiberty.
20282         * c-common.c: Likewise.
20283         * c-decl.c: Likewise.
20284         * c-lang.c: Likewise.
20285         * c-lex.c: Likewise.
20286         * c-opts.c: Likewise.
20287         * c-parse.in: Likewise.
20288         * c-typeck.c: Likewise.
20289         * genconditions.c: Likewise.
20290         * gengtype-lex.l: Likewise.
20291         * gengtype-yacc.y: Likewise.
20292         * gengtype.c: Likewise.
20293         * genmodes.c: Likewise.
20294         * gensupport.c: Likewise.
20295         * read-rtl.c: Likewise.
20296         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
20297         htab_find_slot().
20298
20299 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20300
20301         * c-decl.c (groktypename, groktypename_in_param_context): Rename
20302         variable typename to type_name.
20303         * c-lex.c (interpret_float): Likewise.
20304
20305 2004-07-25  Roger Sayle  <roger@eyesopen.com>
20306
20307         * convert.c (convert_to_real, convert_to_integer,
20308         convert_to_complex): Replace calls to build with calls to buildN.
20309         * coverage.c (tree_coverage_counter_ref): Likewise.
20310         * dojump.c (do_jump): Likewise.
20311         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
20312         * emit-rtl.c (component_ref_for_mem_expr,
20313         set_mem_attributes_minus_bitpos): Likewise.
20314         * explow.c (update_nonlocal_goto_save_area): Likewise.
20315         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
20316         expand_mult_add): Likewise.
20317         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
20318         store_constructor, get_inner_reference, expand_expr_real_1,
20319         try_casesi, try_tablejump): Likewise.
20320         * function.c (expand_function_start): Likewise.
20321         * stmt.c (emit_case_bit_tests, expand_end_case_type,
20322         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
20323         * stor-layout.c (place_union_field, layout_type): Likewise.
20324         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
20325         * varasm.c (copy_constant): Likewise.
20326
20327 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20328
20329         * c-common.c: Rename all identifiers named `new'.
20330         * c-decl.c: Likewise.
20331         * gensupport.c: Likewise.
20332         * simplify-rtx.c: Likewise.
20333         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
20334         with XNEW().
20335         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
20336         with XNEWVEC().
20337
20338 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
20339
20340         PR c/15360
20341         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
20342         declarations until after calling pushdecl.
20343         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
20344         "extern" and not on whether the declaration is initialized.
20345
20346 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
20347
20348         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
20349         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
20350         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
20351         "cpplib.h", "c-pragma.h", "c-common.h".
20352         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
20353         (solaris_register_pragmas): New functions.
20354         * config/sol2-protos.h: New file.
20355         * config/sol2.c: New file.
20356         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
20357         (REGISTER_TARGET_PRAGMAS): New macros.
20358         (solaris_pending_aligns, solaris_pending_inits)
20359         (solaris_pending_finis): New variables.
20360         * config/t-sol2 (sol2-c.o): Update dependencies.
20361         (sol2.o): New rule.
20362         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
20363         SUBTARGET_INSERT_ATTRIBUTES.
20364         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
20365         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
20366         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
20367         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
20368         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
20369         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
20370         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
20371         * config/sparc/sparc.c (sparc_attribute_table): New.
20372         (TARGET_INSERT_ATTRIBUTES): Define in terms of
20373         SUBTARGET_INSERT_ATTRIBUTES.
20374         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
20375         is defined.
20376         * doc/extend.texi (Solaris Pragmas): New section.
20377
20378 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20379
20380         * c-common.c: Rename all identifiers named `class' to `cl'.
20381         * c-common.h: Likewise.
20382         * c-parse.in: Likewise.
20383         * c-typeck.c: Likewise.
20384         * genmodes.c: Likewise.
20385         * real.c: Likewise.
20386         * real.h: Likewise.
20387         * recog.c: Likewise.
20388         * recog.h: Likewise.
20389         * regrename.c: Likewise.
20390         * tree.h: Likewise.
20391         * c-common.c (builtin_function_2): Change type of 5th parameter from
20392         int to enum built_in_function. Change type of 8th parameter from int
20393         to bool.
20394         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
20395         with GGC_CNEW().
20396         * c-typeck.c (convert_arguments): Change type of formal_prec from
20397         int to unsigned int.
20398         * genmodes.c (blank_mode): Make a few negative constants unsigned.
20399         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
20400         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
20401         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
20402         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
20403         iterator to for_all_modes () instead of an enum because enums can't
20404         be incremented in C++.
20405
20406
20407 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
20408
20409         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
20410         hard registers.
20411
20412 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20413
20414         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
20415         Handle ARRAY_RANGE_REF like ARRAY_REF.
20416
20417 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
20418
20419         * c-typeck.c (digest_init): Don't allow arrays of signed or
20420         unsigned variants of wchar_t to be initialized by wide string
20421         constants.  Do allow arrays of enumerated types compatible with
20422         wchar_t to be initialized by wide string constants.  Refine tests
20423         distinguishing wide and narrow strings and arrays.  Give specific
20424         error for arrays of other integer types initialized by string
20425         constants.
20426         (output_init_element, process_init_element): Check for
20427         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
20428         initializing with string constants.
20429
20430 2004-07-25  Richard Henderson  <rth@redhat.com>
20431
20432         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
20433         on the RESULT_DECL.
20434         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20435         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
20436         DECL_IGNORED_P to new decl.
20437
20438 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
20439
20440         * config/ia64/ia64.c (general_xfmode_operand)
20441         (destination_xfmode_operand): Delete.
20442         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
20443         * config/ia64/ia64.md (*movxf_internal): Use general_operand
20444         and destination_operand.
20445
20446 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
20447
20448         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
20449         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
20450
20451 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
20452             Zack Weinberg  <zack@codesourcery.com
20453
20454         PR 16684
20455         * c-decl.c (diagnose_mismatched_decls): Don't issue a
20456         redundant-declaration warning the first time a builtin is
20457         declared explicitly.
20458
20459 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20460
20461         * tree.h (staticp): Change return type to bool.
20462
20463 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20464
20465         * c-common.c (c_staticp): Last episode of the staticp saga.
20466
20467 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20468
20469         * c-common.h (c_staticp): Change return type from int to bool.
20470         * tree.c (staticp): Likewise.
20471         * langhooks.h (staticp): Likewise.
20472
20473 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20474
20475         * langhooks-def.h (lhd_staticp): Change return type from int to
20476         bool in prototype to match definition.
20477
20478 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20479
20480         * system.h (bool, true, false): Don't redefine as preprocessor macros
20481         in C++.
20482
20483 2004-07-24  Roger Sayle  <roger@eyesopen.com>
20484
20485         * expmed.c (init_expmed): A signed modulus by a power of two is
20486         considered cheap if its less than or equal to four instructions.
20487
20488 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20489
20490         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
20491         GGC_CNEWVAR): New macros.
20492
20493 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20494
20495         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
20496         lists.
20497         * c-decl.c: Likewise.
20498         * c-format.c: Likewise.
20499         * c-lex.c: Likewise.
20500         * c-opts.c: Likewise.
20501         * c-pragma.c: Likewise.
20502         * c-typeck.c: Likewise.
20503         * gencheck.c: Likewise.
20504         * genconditions.c: Likewise.
20505         * genconfig.c: Likewise.
20506         * genflags.c: Likewise.
20507         * gengtype.c: Likewise.
20508         * gensupport.c: Likewise.
20509         * ggc-none.c: Likewise.
20510         * langhooks.c: Likewise.
20511         * statistics.h: Likewise.
20512         * stub-objc.c: Likewise.
20513         * java/decl.c: Likewise.
20514
20515 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
20516
20517         * config/m68k/m68k.c (output_scc_di): Fix coding style.
20518         (symbolic_operand): Fix prototype.
20519         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
20520         * config/m68k/m68k.md: Add constants for registers a0 and sp and
20521         use them, change from the "{...}" syntax to the simpler {...}
20522         syntax.
20523         (*cfv4_extendqisi2): Fix destination predicate.
20524         * config/m68k/m68k-protos.h: Remove various declarations also
20525         generated via PREDICATE_CODES.
20526
20527 2004-07-23  Mike Stump  <mrs@apple.com>
20528
20529         * c-typeck.c (convert_for_assignment): Tightened up pointer
20530         converstions that differ in signedness.
20531
20532 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
20533
20534         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
20535
20536 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20537
20538         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
20539         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
20540
20541         * gimplify.c (gimplify_compound_lval): Check for no handled
20542         operations, rather than checking for explicit list of nodes.
20543         (is_gimple_addr_expr_arg_or_indirect): New function.
20544         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
20545         redundant setting of TREE_INVARIANT.
20546         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
20547         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
20548
20549 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
20550
20551         PR tree-optimization/16688
20552         PR tree-optimization/16689
20553         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
20554         unnecessary initialization of 'tag'.
20555         (get_tmt_for): Check that the new type tag has the same alias
20556         set as the pointed-to type.
20557         (group_aliases): Only regular variables need to be removed
20558         from the alias set of a name tag.
20559         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
20560         propagation if the two types are not compatible.
20561         (merge_alias_info): Rename from replace_ssa_names_ann.
20562         Add more checking.
20563         (replace_exp_1): If both arguments are SSA_NAMEs, check that
20564         the propagation can be done.
20565         Only call merge_alias_info on pointers.
20566         (propagate_value): Likewise.
20567         * tree-ssa-copyrename.c: Include langhooks.h.
20568         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
20569         to do the merging.
20570         Do not coalesce variables with incompatible types.
20571         (rename_ssa_copies): Call replace_ssa_name_symbol.
20572         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
20573         the same type as the underlying _DECL.
20574         * tree-ssanames.c (replace_ssa_name_symbol): New function.
20575         * tree.h (replace_ssa_name_symbol): Declare.
20576
20577 2004-07-23  Richard Henderson  <rth@redhat.com>
20578
20579         PR c++/16277
20580         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
20581         unshare it properly.
20582         (gimplify_modify_expr_rhs): Push assignment from a conditional into
20583         the conditional for all non-register types.
20584
20585 2004-07-23  Richard Henderson  <rth@redhat.com>
20586
20587         * expr.c (expand_expr_real_1): Don't handle non-local variables.
20588         * expr.h (fix_lexical_addr): Remove.
20589         * function.c (NEED_SEPARATE_AP): Remove.
20590         (fix_lexical_addr): Remove.
20591         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
20592         not null decl_function_context.
20593         (create_alias_vars): Likewise.
20594         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
20595         (simple_goto_p): Likewise.
20596         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
20597         * tree-ssa-ccp.c (get_default_value): Likewise.
20598         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
20599         * tree.c (needs_to_live_in_memory): Likewise.
20600         * tree-flow-inline.h (may_be_aliased): Move...
20601         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
20602         when TREE_STATIC variables may be addressable.
20603
20604 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
20605
20606         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
20607
20608 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
20609
20610         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
20611         bitmap contents if GENERATOR_FILE is defined.
20612         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
20613         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
20614
20615 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
20616
20617         * c-decl.c (start_function): Form composite type of function types
20618         rather than copying type from previous prototype declaration.
20619
20620 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
20621
20622         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
20623         the const qualifier for the second argument in the C++ functions.
20624
20625         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
20626         specific pointer types.
20627
20628         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
20629         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
20630         for vector bool and/or vector pixel, add C++ and C missing support.
20631         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
20632         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
20633         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
20634         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
20635         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
20636         missing C++ and C support for vector bool and/or vector pixel.
20637         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
20638         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
20639         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
20640         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
20641         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
20642         C++ and C types used for vector bool and/or vector pixel.
20643         (vec_st, vec_stl): Add C++ support for vector pixel.
20644         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
20645         (vec_all_ne): Add C++ support for vector pixel.
20646
20647         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
20648         (vec_vmulesb): Add missing C++ function.
20649         (vec_perm): Fix type of third argument in C++ function.
20650         (vec_vsum4shs): Fix C++ function name.
20651         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
20652         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
20653         argument passed to the error handler in C macro.
20654         (vec_nmsub): Remove extra parens around argument names in C macro.
20655         (vec_packpx): Add missing parens in C macro.
20656
20657 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
20658
20659         * machmode.def: Remove vector modes.
20660         * config/alpha/alpha-modes.def: Add supported vector modes.
20661         * config/arm/arm-modes.def: Likewise.
20662         * config/frv/frv-modes.def: Likewise.
20663         * config/i386/i386-modes.def: Likewise.
20664         * config/rs6000/rs6000-modes.def: Likewise.
20665         * config/sh/sh-modes.def: Likewise.
20666
20667 2004-07-23  Matthias Klose  <doko@debian.org>
20668
20669         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
20670         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
20671         * config.h: Regenerate.
20672         * configure: Likewise.
20673
20674 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
20675
20676         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
20677         generated SYMBOL_REFs for labels.
20678         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
20679         Change prototype.
20680         (machopic_stub_name): Remove.
20681         (machopic_indirection_name): New function.
20682         (machopic_mcount_stub_name): Likewise.
20683         (machopic_classify_name): Remove.
20684         (machopic_function_base_sym): New function.
20685         (machpoic_classify_symbol): Likewise.
20686         (machopic_classify_ident): Remove.
20687         (machopic_define_ident): Likewise.
20688         (machopic_define_name): Likewise.
20689         (machopic_name_defined_p): Likewise.
20690         (machopic_ident_defined_p): Likewise.
20691         (darwin_strip_name_encoding): Likewise.
20692         (machopic_define_symbol): New function.
20693         * config/darwin.c (hashtab.h): Include.
20694         (machopic_defined_list): Remove.
20695         (machopic_classify_ident): Likewise.
20696         (machopic_classify_name): Likewise.
20697         (machopic_ident_defined_p): Likewise.
20698         (machopic_define_ident): Likewise.
20699         (machopic_define_name): Likewise.
20700         (machopic_symbol_defined_p): New function.
20701         (machopic_classify_symbol): Likewise.
20702         (machopic_data_defined_p): Use machopic_classify_symbol.
20703         (machopic_define_symbol): New function.
20704         (machopic_function_base_sym): New function.
20705         (machopic_non_lazy_pointers): Remove.
20706         (machopic_non_lazy_ptr_name): Likewise.
20707         (machopic_stubs): Likewise.
20708         (machopic_stub_name): Likewise.
20709         (NON_LAZY_POINTER_SUFFIX): New macro.
20710         (STUB_SUFFIX): Likewise.
20711         (machopic_indirection): New structure.
20712         (machopic_indirections): New variable.
20713         (machopic_indirection_hash): New function.
20714         (machopic_indirection_eq): Likewise.
20715         (machopic_indirection_name): Likewise.
20716         (machopic_mcount_stub_name): New function.
20717         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
20718         hash table.
20719         (machopic_indirect_data_reference): Rework to use new functions.
20720         (machopic_indirect_call_target): Likewise.
20721         (machopic_legitimize_pic_address): Likewise.
20722         (machopic_output_indirection): New function.
20723         (machopic_finish): Use it.
20724         (machopic_operand_p): Rework to use new functions.
20725         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
20726         (darwin_strip_name_encoding): Remove.
20727         (update_non_lazy_ptrs): Remove.
20728         (update_stubs): Likewise.
20729         (darwin_non_lazy_pcrel): Use new functions.
20730         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20731         (ASM_OUTPUT_LABELREF): Likewise.
20732         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
20733         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
20734         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
20735         (TARGET_STRIP_NAME_ENCODING): Do not use
20736         darwin_strip_name_encoding.
20737         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
20738         darwin_strip_name_encoding.
20739         * config/i386/darwin.h (FUNCTION_PROFILER): Use
20740         machopic_mcount_stub_name.
20741         * config/i386/i386.c (x86_output_mi_thunk): Use
20742         machopic_indirection_name, not machopic_stub_name.
20743         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
20744         machopic_function_base_sym.
20745         (print_operand): Use machopic_classify_symbol.
20746         (rs6000_emit_prologue): Use machopic_function_base_sym.
20747         (output_profile_hook): Do not use machopic_stub_name.
20748         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
20749
20750 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20751
20752         PR c/7284
20753         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
20754         as multiplication.
20755
20756 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20757
20758         * doc/implement-c.texi: New file.
20759         * doc/extend.texi (C Implementation): Move to there.
20760         * doc/gcc.texi: Include implement-c.texi.
20761         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
20762
20763 2004-07-22  Jason Merrill  <jason@redhat.com>
20764
20765         * integrate.c (copy_decl_for_inlining): Remove invisible reference
20766         handling.
20767         * tree-inline.c (setup_one_parameter): Likewise.
20768
20769 2004-07-22  Brian Booth  <bbooth@redhat.com>
20770
20771         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
20772         (substitute_and_fold): Propigate into VUSE operands when possible.
20773         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
20774         (cp_lattice_meet): Handle merging of latticevalues when
20775         UNKNOWN_VAL is present.
20776         (visit_stmt): Visit assignments with V_MUST_DEFs.
20777         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
20778         (ccp_fold): Deal with RHS' that are constant and virtual.
20779         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
20780         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
20781         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
20782         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
20783         computing immediate uses.
20784         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
20785         transition.
20786         (replace_vuse_in): New function.
20787         (likely_value): Add check of vuse operands.
20788         (get_default_value): Set the default value of virtually defined
20789         variables to UKNOWN_VAL instead of VARYING.
20790
20791 2004-07-22  Richard Henderson  <rth@redhat.com>
20792
20793         * expr.c (emit_push_insn): Don't use set_mem_attributes.
20794
20795 2004-07-22  Richard Henderson  <rth@redhat.com>
20796
20797         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
20798         variables due to conditional compilation.
20799
20800 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
20801
20802         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
20803         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
20804         Release SSA names that have been re-renamed.
20805         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
20806         variable.
20807         * tree-ssa-alias.c (init_alias_info): If aliases have been
20808         computed before, clear existing alias information.
20809         (create_name_tags): Do no fixup PT_ANYTHING pointers.
20810         If the new name tag for a pointer is different than the one it
20811         had before, mark the old tag for renaming.
20812         (replace_may_alias): New function.
20813         (group_aliases): Call it.
20814         (setup_pointers_and_addressables): Always call get_tmt_for.
20815         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
20816         once.
20817         (set_pt_anything): New local function.
20818         (set_pt_malloc): New local function.
20819         (merge_pointed_to_info): Don't merge pointed-to variables from
20820         the original pointer if the destination is pointing to an
20821         unknown location.
20822         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
20823         (add_pointed_to_var): Do not add a variable to the points-to
20824         set if the pointer is already pointing to anywhere.
20825         (collect_points_to_info_r): If the defining statement is a PHI
20826         node, only merge pointed-to information if the argument has
20827         already been visited.
20828         (get_tmt_for): Only create a new tag if the pointer didn't
20829         have one already.
20830         (dump_alias_info): Emit more information.
20831         (dump_points_to_info_for): Likewise.
20832         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
20833         try to get the annotation of an SSA_NAME.
20834         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
20835         alias sets when checking is enabled.
20836         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
20837         (eliminate): Mark basic blocks that will need
20838         EH information cleaned up.
20839         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
20840         predecessor.
20841         Initialize need_eh_cleanup.
20842         (fini_pre): Call tree_purge_all_dead_eh_edges and
20843         cleanup_tree_cfg if needed.
20844         Free need_eh_cleanup.
20845         * tree-ssa.c (verify_ssa_name): New function.
20846         (verify_def): Call it.
20847         Re-arrange to avoid printing too many error messages.
20848         (verify_use): Likewise.
20849         (verify_phi_args): Likewise.
20850         (verify_flow_insensitive_alias_info): New function.
20851         (verify_flow_sensitive_alias_info): New function.
20852         (verify_alias_info): New function.
20853         (verify_ssa): Call verify_alias_info.
20854         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
20855         program.
20856         Re-arrange to avoid printing too many error messages.
20857         * tree-ssanames.c (make_ssa_name): Clear
20858         SSA_NAME_IN_FREE_LIST.
20859         (release_ssa_name): Never release a default definition.
20860         (release_defs): New function.
20861         * tree.h: Declare it.
20862         * tree-ssa-dce.c (remove_dead_stmt): Call it.
20863
20864 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
20865
20866         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
20867         If true, do a depth-first search.  Do a breadht-first search,
20868         otherwise.
20869         (walk_use_def_chains): Add new argument IS_DFS.
20870         Update all users.
20871         * tree-flow.h (walk_use_def_chains): Update prototype.
20872
20873 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
20874
20875         * config/cris/cris.md: Tweak formatting.
20876         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
20877         (mover2side, moverside, movemside, movei, op3, andu): Replace
20878         live define_peephole:s with define_peephole2 near-equivalents.
20879         Delete the rest.
20880         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
20881         word-size modes.
20882         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
20883         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
20884         "*mov_sidesi_mem" respectively.
20885
20886 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
20887
20888         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
20889         (gimplify_build1): Move from tree-complex.c do_unop.
20890         (gimplify_build2): Move from tree-complex.c do_binop.
20891         (gimplify_build3): New.
20892         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
20893         Adjust throughout to call the functions above.
20894         * tree-flow.h: Declare the functions above.
20895         * tree-nested.c (gimplify_val): Rename to...
20896         (tsi_gimplify_val): ... this.
20897
20898         * Makefile.in (tree_complex.o): Update dependencies.
20899         (stor-layout.o): Depend on regs.h.
20900         * c-common.c (handle_vector_size_attribute): Update for
20901         vector types without corresponding vector modes.
20902         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
20903         a corresponding vector mode is not available.
20904         * print-tree.c (print_node): Print nunits for vector types
20905         * regclass.c (have_regs_of_mode): New.
20906         (init_reg_sets_1): Initialize it and use it instead
20907         of allocatable_regs_of_mode.
20908         * regs.h (have_regs_of_mode): Declare it.
20909         * stor-layout.c (layout_type): Pick a mode for vector types.
20910         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
20911         build_replicated_const, do_unop, do_binop, do_plus_minus,
20912         do_negate, expand_vector_piecewise, expand_vector_parallel,
20913         expand_vector_addition, expand_vector_operations_1,
20914         expand_vector_operations, tree_lower_operations,
20915         pass_lower_vector_ssa, pass_pre_expand): New.
20916         (expand_complex_operations, pass_lower_complex): Remove.
20917         * tree-optimize.c (init_tree_optimization_passes): Adjust
20918         pass ordering for changes in tree-complex.c.
20919         * tree-pass.h: Declare new passes.
20920         * tree.c (finish_vector_type): Remove.
20921         (make_vector_type): New.
20922         (build_vector_type_for_mode, build_vector_type): Rewritten.
20923         * tree.def (VECTOR_TYPE): Document where the number of
20924         subparts is stored.
20925         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
20926         (make_vector): Remove declaration.
20927
20928 2004-07-21  Richard Henderson  <rth@redhat.com>
20929
20930         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
20931         TREE_THIS_VOLATILE, may_aliases, or optimization level.
20932         (remove_useless_vars): Dump debugging info.
20933         (expand_used_vars): Move ...
20934         * cfgexpand.c (expand_used_vars): ... here.  Make static.
20935         * tree-flow-inline.h (set_is_used): New.
20936         (set_default_def): Use get_var_ann.
20937         * tree-flow.h: Update decls.
20938         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
20939         (create_ssa_var_map): Use it.
20940         * tree-ssa.c (set_is_used): Remove.
20941
20942 2004-07-22  Ben Elliston  <bje@au.ibm.com>
20943
20944         * gdbinit.in: Set a breakpoint on internal_error.
20945
20946 2004-07-21  Richard Henderson  <rth@redhat.com>
20947
20948         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
20949         to create a new basic block.
20950
20951 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20952
20953         PR c/15052
20954         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
20955         return type on function definitions.  Move other warnings for
20956         qualified return type to -Wreturn-type.  Do not condition any such
20957         warnings on -pedantic.  Update comments.
20958         (start_function): Only copy function type from previous prototype
20959         declaration if return types are compatible.
20960         * c-typeck.c (function_types_compatible_p): Don't condition
20961         warning for incompatibility of volatile qualifiers on the return
20962         type on -pedantic.  Update comment.
20963         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
20964
20965 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20966
20967         * c-typeck.c (set_init_index): Require designator to be of integer
20968         type.
20969
20970 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20971
20972         PR c/11250
20973         * c-parse.in (init): Change to exprtype.
20974         (primary): Set original_code for STRING to STRING_CST.
20975         Call maybe_warn_string_init for compound literals.
20976         (initdcl, notype_initdcl): Call maybe_warn_string_init.
20977         (initval): Update.
20978         * c-tree.h (maybe_warn_string_init): New.
20979         (pop_init_level, process_init_element): Use struct c_expr.
20980         (struct c_expr): Update comment.
20981         * c-typeck.c (maybe_warn_string_init): New function.
20982         (digest_init): Call it.  Additional parameter strict_string.  All
20983         callers changed.
20984         (output_init_element): Likewise.
20985         (struct constructor_stack): Use struct c_expr for
20986         replacement_value.
20987         (really_start_incremental_init, push_init_level): Update.
20988         (pop_init_level): Update.  Return struct c_expr.
20989         (process_init_level): Update.  Take struct c_expr argument.
20990
20991 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
20992
20993         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
20994         commit.
20995
20996 2004-07-21  Eric Christopher  <echristo@redhat.com>
20997
20998         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
20999         removal.
21000         * c-decl.c (pop_scope): Ditto.
21001         * calls.c (expand_call): Remove call to current_nesting_level,
21002         update comment accordingly. Remove calls to expand_start_target_temps
21003         and expand_end_target_temps.
21004         * cfgexpand.c (construct_init_block): Remove call to
21005         expand_start_bindings_and_block.
21006         (construct_exit_block): Remove call to expand_end_bindings.
21007         * expr.c (safe_from_p): Remove BIND_EXPR handling.
21008         (expand_expr_real_1): Ditto. Fix formatting.
21009         (expand_vars): Delete.
21010         * stmt.c (POPSTACK): Remove block_stack.
21011         (stmt_status): Remove x_block_stack.
21012         (block_stack): Delete.
21013         (expand_start_bindings_and_block): Ditto.
21014         (expand_start_target_temps): Ditto.
21015         (expand_end_target_temps): Ditto.
21016         (current_nesting_level): Ditto.
21017         (warn_about_unused_variables): Ditto.
21018         (expand_end_bindings): Ditto.
21019         * tree.h: Remove declarations for above.
21020
21021 2004-07-21  Steven Bosscher  <stevenb@suse.de>
21022
21023         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
21024         * rtl.c (note_insn_name): Likewise.
21025         * print-rtl.c (print_rtx): Don't print it.
21026         * cfgrtl.h (can_delete_note_p): Don't handle it.
21027         (rtl_delete_block): Likewise.
21028         * passes.c (rest_of_handle_guess_branch_prob): Remove.
21029         (rest_of_compilation): Don't call it.
21030         * predict.c (process_note_predictions, process_note_prediction,
21031         note_prediction_to_br_prob): Remove.
21032         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
21033         * stmt.c (return_prediction): Remove.
21034         (expand_value_return): Don't call it.  Don't add prediction
21035         notes for return statements.
21036
21037 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
21038
21039         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
21040         once.
21041
21042 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
21043
21044         * c-common.c (vector_types_convertible_p): Use vector types'
21045         TYPE_SIZE and TREE_TYPE instead of their mode.
21046         * convert.c (convert_to_integer): Likewise.
21047         (convert_to_vector): Likewise.
21048         * fold-const.c (fold_convert): Likewise.
21049         * varasm.c (output_constant): Likewise.
21050         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
21051         Allow a VECTOR_TYPE initializer to be made of several vectors.
21052         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
21053         of cleared and need_to_clear, and use fold_convert.
21054         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
21055         integer vectors.
21056
21057 2004-07-20  Richard Henderson  <rth@redhat.com>
21058
21059         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
21060         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
21061
21062 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
21063
21064         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
21065         enormous cost if not TARGET_HARD_MUL.
21066
21067 2004-07-20  Andrew Pinski  <apinski@apple.com>
21068
21069         PR target/16557
21070         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
21071         (ASM_SPEC): here.
21072
21073 2004-07-21  Paul brook  <paul@codesourcery.com>
21074
21075         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
21076
21077 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21078
21079         * fold-const.c (operand_equal_p): Temporarily support NULL args.
21080         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
21081         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
21082
21083 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
21084
21085         * rtl.h (plus_constant): Delete.
21086         (plus_constant_wide): Rename to plus_constant.
21087         (plus_constant_for_output_wide): Delete vestigial prototype.
21088         (GEN_INT): Remove unnecessary cast.
21089         * tree.h (build_int_2, size_int_type): Delete.
21090         (build_int_2_wide): Rename to build_int_2.
21091         (size_int_wide): Rename to size_int_kind.
21092         (size_int_type_wide): Rename to size_int_type.
21093         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
21094         Remove unnecessary cast.
21095         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
21096         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
21097         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
21098         (size_int_type_wide): Rename size_int_type.
21099         (int_const_binop): Use size_int_type.
21100         * c-lex.c (interpret_integer): Use build_int_2.
21101         * final.c (split_double): Remove unnecessary casts.
21102         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
21103
21104 2004-07-20  Richard Henderson  <rth@redhat.com>
21105
21106         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
21107         (gimplify_compound_lval): Use is_gimple_tmp_reg.
21108         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
21109         (is_gimple_tmp_reg): New.
21110         * tree-gimple.h (is_gimple_tmp_reg): Declare.
21111
21112 2004-07-20  Richard Henderson  <rth@redhat.com>
21113
21114         * tree-pretty-print.c (dump_generic_node): Dump
21115         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
21116
21117 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
21118
21119         * tree-mudflap.c (mf_set_options_fndecl): New tree.
21120         (mudflap_init): Set it.
21121         (mudflap_register_call): Remove __mf_init call.
21122         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
21123         to pass "-ignore-reads" option to libmudflap if needed.
21124
21125 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
21126
21127         PR c++/14607
21128         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
21129         (MAKE_DECL_ONE_ONLY): Undefine.
21130         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
21131         readonly_data, one_only_data_section, forget_section): New prototypes.
21132         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
21133         functions.
21134         (pa_select_section): Add one-only (COMDAT) support.
21135         * pa.h (struct machine_function): Define.
21136         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
21137         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
21138         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
21139         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
21140         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
21141         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
21142         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
21143         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
21144         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
21145         for EXTRA_SECTION_FUNCTIONS.
21146         * doc/install.texi: Update binutils requirements.
21147
21148 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
21149
21150         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
21151         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
21152         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
21153         size_t.
21154         (struct VEC): Use unsigned for num and alloc.
21155         * vec.c (struct vec_prefix): Likewise.
21156         (vec_o_reserve): Adjust.
21157
21158         * dbxout.c (dbxout_type): Fix printf format.
21159
21160         * tree.h (binfo_member): Remove.
21161         * tree.c (binfo_member): Remove.
21162
21163 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
21164
21165         * tree.h: Include vec.h
21166         (DEF_VEC_P(tree)): New type.
21167         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
21168         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
21169         (BINFO_LANG_SLOT): Remove.
21170         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
21171         (struct tree_binfo): Turn base_binfos into a trailing
21172         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
21173         (binfo_lang_slots): Remove.
21174         * tree.c (binfo_lang_slots): Remove.
21175         (make_tree_binfo_stat): Take a base binfo count, not a
21176         lang slot count.  Adjust.
21177         * Makefile.in (TREE_H): Add vec.h
21178         * alias.c (record_component_aliases): Adjust BINFO access.
21179         * dbxout.c (dbxout_type): Likewise.
21180         * dwarf2out.c (gen_member_die): Likewise.
21181         * sdbout.c (sdbout_one_type): Likewise.
21182         * tree-dump.c (deque_and_dump): Likewise.
21183         * config/i386/i386.c (classify_argument,
21184         contains_128bit_aligned_vector_p): Likewise.
21185         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
21186         * doc/c-tree.texi (Classes): Update BINFO documentation.
21187
21188 2004-07-20  Steven Bosscher  <stevenb@suse.de>
21189
21190         * c-common.h (check_case_value): Remove prototype.
21191         (c_add_case_label): Adjust prototype.
21192         * c-common.c (check_case_value): Make static.
21193         (check_case_bounds): New function.
21194         (c_add_case_label): Use it.  Take new argument orig_type.
21195         * c-typeck.c (struct c_switch): New orig_type field.
21196         (c_start_case): Set it.
21197         (do_case): Pass it to c_add_case_label.
21198         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
21199         cases from here.  Add the labels in reverse order.
21200         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
21201         (add_case_node): Return nothing, don't check for duplicate cases.
21202         Insert new case nodes in a list, not in an AVL tree.
21203         (expand_end_case_type): Don't turn a case tree into a case list.
21204         (case_tree2list): Remove.
21205         * tree.h (add_case_node): Adjust prototype.
21206
21207 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
21208
21209         * genattr.c (struct range, struct function_unit,
21210         write_units, extend_range, init_range): Remove them.
21211         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21212         Output "#define INSN_SCHEDULING" here.
21213         * genattrtab.c (struct range, struct function_unit_op,
21214         struct function_unit, struct dimension, enum operator,
21215         operate_exp, expand_units, simplify_knowing,
21216         encode_units_mask, simplify_by_exploding,
21217         find_and_mark_used_attributes, unmark_used_attributes,
21218         add_values_to_cover, increment_current_value,
21219         test_for_current_value, simplify_with_current_value,
21220         simplify_with_current_value_aux, gen_unit,
21221         write_unit_name, write_function_unit_info,
21222         write_complex_function, write_toplevel_expr,
21223         find_single_value, extend_range): Remove.
21224         (write_attr_get): Do not handle common_av->value
21225         being an FFS.
21226         (struct attr_desc): Remove func_units_p and blockage_p.
21227         (write_attr_valueq): Do not handle them.
21228         (find_attr): Do not clear them.
21229         (make_internal_attr): Do not initialize them.
21230         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21231         * sched-vis.c (init_target_units, insn_print_units,
21232         init_block_visualization, print_block_visualization,
21233         visualize_scheduled_insns, visualize_no_unit,
21234         visualize_stall_cycles, visualize_alloc,
21235         visualize_free, target_units, get_visual_tbl_length,
21236         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
21237         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
21238         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
21239         * haifa-sched.c (blockage_range, clear_units,
21240         schedule_unit, actual_hazard, potential_hazard,
21241         insn_unit, unit_last_insn, unit_tick,
21242         actual_hazard_this_instance, potential_hazard,
21243         schedule_unit, max_insn_queue_index_value): Remove.
21244         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
21245         max_insn_queue_index.
21246         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
21247         * doc/md.texi (Processor pipeline description): Remove
21248         references to old pipeline descriptions.
21249         (Automaton pipeline description): Merge with the above.
21250         (Old pipeline description, Comparison of the two descriptions):
21251         Remove.
21252
21253         * bt-load.c (migrate_btr_def): Remove references to
21254         use_pipeline_interface.
21255         * haifa-sched.c (insn_cost, schedule_insn,
21256         schedule_block, advance_one_cycle, sched_init,
21257         queue_to_ready, sched_finish): Likewise.
21258         * modulo-sched.c (sms_schedule, advance_one_cycle,
21259         ps_has_conflicts): Likewise.
21260         * sched-rgn.c (init_ready): Likewise.
21261         (debug_dependencies): Likewise, and remove an "if (1)".
21262         * target.h (use_dfa_pipeline_interface): Remove.
21263         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21264         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21265         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21266         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21267         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21268         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21269         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21270         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21271         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21272         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21273         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21274         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21275         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21276         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21277         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21278         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21279         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21280         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21281         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21282
21283 2004-07-19  Roger Sayle  <roger@eyesopen.com>
21284
21285         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
21286
21287 2004-07-19  Jeff Law  <law@redhat.com>
21288
21289         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
21290         (get_eq_expr_value): Use it.  Simplify slightly.
21291
21292 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
21293
21294         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
21295         (umulsidi3_32bit_r4000): Likewise.
21296
21297 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
21298
21299         * vec.h: Propagate location information properly.
21300         (VEC_T_iterate): Add result pointer parameter.
21301         (VEC_T_space): New.
21302         (VEC_T_reserve): Use it.
21303
21304 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
21305
21306         * Makefile.in (c-format.o): Depend on c-format.h.
21307         * c-format.h: New file.
21308         (struct format_char_info): Add CHAIN member.
21309         * c-format.c: Move some types and constants to c-format.h.
21310         (format_type_error): Set to -1.
21311         (struct function_format_info): Use an int for format_type.
21312         (decode_format_type): Return an int.  Return format_type_error
21313         on error.
21314         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
21315         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
21316         (scan_char_table, time_char_table, monetary_char_table): Initialize
21317         CHAIN to NULL.
21318         (n_format_types): New variable.
21319         (check_format_info_main): Handle CHAIN in format_char_info.
21320         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
21321         TARGET_N_FORMAT_TYPES.
21322         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
21323         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
21324         * config/sol2-c.c: New file.
21325         * config/t-sol2: New file.
21326         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
21327         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
21328         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
21329
21330         * doc/extend.texi (Target Format Checks): New section.
21331         (Function Attributes): Mention it.
21332         * doc/invoke.texi: Mention target format checks.
21333         * doc/sourcebuild.texi: Mention target format checks.
21334         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
21335         TARGET_FORMAT_TYPES.
21336
21337 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
21338
21339         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
21340         added.
21341         * config/s390/s390.c (regclass_map initializer): Register 35 added to
21342         ADDR_REGS.
21343         (load_multiple_operation, store_multiple_operation): Removed
21344         pointless sanity check.
21345         (s390_decompose_address): Added check for return_address_pointer_rtx.
21346         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
21347         (s390_return_address_offset): New function.
21348         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
21349         (FRAME_REGNO_P): Added check for register 35.
21350         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
21351         REG_ALLOC_ORDER): Appended entry for register 35.
21352         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
21353         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
21354         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
21355         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
21356         is eliminable using stack pointer or hard frame pointer.
21357         (REGISTER_NAMES): Added name for register 35.
21358         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
21359         pointless sanity check.
21360
21361 2004-07-19  Roger Sayle  <roger@eyesopen.com>
21362
21363         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
21364         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
21365         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
21366         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
21367         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
21368         (fold_relational_const): Tidy up handling of floating point
21369         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
21370         transformation; fold_relational_const assumes constant operands.
21371
21372 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
21373
21374         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
21375         directory.
21376
21377 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
21378
21379         * c-tree.h (struct c_expr): Define.
21380         (C_SET_EXP_ORIGINAL_CODE): Remove.
21381         (parser_build_binary_op, build_compound_expr): Update prototypes.
21382         * c-parse.in (%union): Add exprtype.
21383         (FUNC_NAME): Mark as ttype.
21384         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
21385         exprtype.
21386         (expr): Update.  Define directly in terms of expr_no_commas
21387         instead of using nonnull_exprlist.
21388         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
21389         offsetof_member_designator, typespec_nonreserved_nonattr, init,
21390         initval, designator, component_declarator,
21391         component_notype_declarator, enumerator, array_declarator,
21392         condition, exexpr, switch_statement, stmt_nocomp, stmt,
21393         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
21394         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
21395         where appropriate.
21396         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
21397         * c-common.c (c_common_truthvalue_conversion): Don't check
21398         C_EXP_ORIGINAL_CODE.
21399         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
21400         Don't use C_EXP_ORIGINAL_CODE.
21401         (default_conversion, default_function_array_conversion): Don't use
21402         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
21403         (internal_build_compound_expr): Merge into build_compound_expr.
21404         (build_compound_expr): Take two operands instead of a TREE_LIST.
21405         * objc/objc-act.c (get_super_receiver): Update calls to
21406         build_compound_expr.
21407
21408 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
21409
21410         * config/sh/sh.c (sh_use_dfa_interface): Remove.
21411         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
21412         hook_int_void_1.
21413         * config/sh/sh.md: Extract pipeline descriptions
21414         into separate files.
21415         * config/sh/sh1.md: New file, extracted from sh.md.
21416         * config/sh/sh4.md: New file, extracted from sh.md.
21417         * config/sh/shmedia.md: New file, extracted from sh.md
21418         and rewritten using new-style pipeline description.
21419
21420 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
21421
21422         * config/pa/pa.md: Delete the two remaining define_peephole
21423         patterns.
21424
21425 2004-07-18  Steven Bosscher  <stevenb@suse.de>
21426             Joseph S. Myers  <jsm@polyomino.org.uk>
21427
21428         * c-common.c (c_common_truthvalue_conversion): Don't warn if
21429         TREE_NO_WARNING is set.
21430
21431 2004-07-18  Roger Sayle  <roger@eyesopen.com>
21432
21433         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
21434         simplify_builtin_strncmp): Delete.
21435         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
21436         Change argument to accept an arglist instead of an "exp".  Assume
21437         that the return type is always integer_type_node.  Copy missing
21438         transformations from their now obsolete simplify_builtin_*
21439         equivalents.
21440         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
21441         fold_builtin_strcmp and fold_builtin_strncmp.
21442         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
21443         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
21444         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
21445
21446 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
21447
21448         * Makefile.in (tree-alias-common.o): Update dependencies.
21449
21450 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
21451
21452         * cfgloop.c (flow_loop_nested_p): Fix comment.
21453
21454 2004-07-17  Jason Merrill  <jason@redhat.com>
21455
21456         PR c++/16115
21457         * stor-layout.c (relayout_decl): New fn.
21458         * tree.h: Declare it.
21459         (DECL_BY_REFERENCE): New macro.
21460
21461 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
21462
21463         * libgcc2.c (__enable_execute_stack): New symbol.
21464         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
21465         and declare __enable_execute_stack.
21466         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
21467         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
21468         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21469         ENABLE_EXECUTE_STACK.
21470         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
21471         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21472         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21473         ENABLE_EXECUTE_STACK.
21474         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21475         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
21476         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21477         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21478         ENABLE_EXECUTE_STACK.
21479         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21480         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21481         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21482         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21483         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
21484         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21485         (sparc64_initialize_trampoline): Likewise.
21486         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
21487
21488 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
21489
21490         * langhooks.h (builtin_function): New langhook.
21491         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
21492         (LANG_HOOKS_INITIALIZER): Update.
21493         * tree.h (builtin_function): Remove.
21494         * doc/tm.texi: Update.
21495         * c-tree.h (builtin_function): Declare.
21496         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
21497         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
21498         config/ia64/ia64.c, config/iq2000/iq2000.c,
21499         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
21500         config/stormy16/stormy16.c: All callers of builtin_function
21501         changed.
21502
21503 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
21504
21505         PR target/16556
21506         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
21507         Remove white space after the backslash.
21508
21509 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
21510
21511         PR rtl-optimization/16294
21512         * resource.c (return_insn_p): New predicate.
21513         (mark_target_live_regs): Use it.  Special-case return insns.
21514         (init_resource_info): Use it.  Don't scan the epilogue past
21515         a return.
21516
21517 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
21518
21519         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
21520         destroy dominance information.
21521         * passes.c (rest_of_handle_loop2):  Free dominance information.
21522         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
21523         jump threading.
21524         (thread_jumps): Update dominance information and remove unreachable
21525         blocks.
21526         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
21527         information and remove the unreachable block.
21528
21529 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
21530
21531         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
21532
21533 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
21534
21535         * doc/sourcebuild.texi: Remove libf2c entry.
21536
21537 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
21538
21539         * config/i386/i386.md (movv16qi_internal): Fix typo.
21540
21541 2004-07-17  Steven Bosscher  <stevenb@suse.de>
21542
21543         * final.c (final_scan_insn): Fix broken commit from previous
21544         patch.
21545
21546 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
21547
21548         * c-typeck.c (parser_build_binary_op): Condition warnings for
21549         X<=Y<=Z on -Wparentheses instead of -Wextra.
21550         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
21551         supported for C only.
21552
21553 2004-07-17  Steven Bosscher  <stevenb@suse.de>
21554
21555         * cfgcleanup.c (try_simplify_condjump): Don't remove line
21556         notes to avoid unreachable code warnings.
21557         * toplev.c (backend_init): Don't emit line notes for
21558         unreachable code warnings.
21559
21560         * combine.c (distribute_notes): Don't distribute a
21561         REG_VTABLE_REF note.
21562         * final.c (final_scan_insn): Don't handle it.
21563         * rtl.c (reg_note_name): Remove it.
21564         * rtl.h (enum reg_node): Dito.
21565
21566         * emit-rtl.c (force_line_numbers, restore_line_number_status):
21567         Remove.
21568         * rtl.h (force_line_numbers, restore_line_number_status):
21569         Remove prototypes.
21570
21571         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
21572         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
21573         (using_eh_for_cleanups): Also moved here.
21574
21575         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
21576         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
21577         to expand_start_case and add_case_node.
21578         * stmt.c (struct nesting): Cleanup unused fields condition_code,
21579         last_unconditional_cleanup, nominal_type, printname, and
21580         line_number_status.
21581         (struct fixup_goto): Remove.
21582         (struct stmt_status): Remove x_goto_fixup_chain field.
21583         (goto_fixup_chain): Remove.
21584         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
21585         pushcase, pushcase_range): Remove.
21586         (expand_start_bindings_and_block): Don't set unused fields in
21587         the nesting stack.
21588         (expand_start_case, add_case_node): Cleanup unused formal arguments.
21589         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
21590         instead of emit_jump_if_reachable.
21591         (emit_case_nodes): Likewise.
21592         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
21593         static.
21594         (update_eh_label): Work around left-over exception handing regions.
21595         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
21596         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
21597         (pass_cleanup_cfg_post_optimizing): New pass.
21598         (init_tree_optimization_passes): Run the new pass after all
21599         optimizations.
21600         * tree.h (pushcase, pushcase_range): Remove prototypes.
21601         (expand_start_case, add_case_node): Update prototypes.
21602
21603 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
21604
21605         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
21606
21607 2004-07-16  Richard Henderson  <rth@redhat.com>
21608
21609         * builtins.c (std_expand_builtin_va_arg): Remove.
21610         (expand_builtin_va_arg): Remove.
21611         * expr.h: Don't declare them.
21612         * gimplify.c (mark_decls_volatile_r): Remove.
21613         (copy_if_shared_r): Don't call it.
21614         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
21615         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
21616         * gimple-low.c (lower_stmt): Likewise.
21617         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
21618         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
21619         * tree-ssa-operands.c (get_expr_operands): Likewise.
21620         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
21621         EXPAND_BUILTIN_VA_ARG.
21622         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
21623         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
21624         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
21625         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
21626
21627 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
21628
21629         * tree-ssa-pre.c (insert_aux): Break out if we hit
21630         a critical edge.
21631
21632 2004-07-16  Richard Henderson  <rth@redhat.com>
21633
21634         * basic-block.h (remove_fake_exit_edges): Declare.
21635         * cfganal.c (remove_fake_predecessors): Rename from
21636         remove_fake_successors; iterate over predecessors.
21637         (remove_fake_exit_edges): New.
21638         * cfgcleanup.c (try_optimize_cfg): Use it.
21639         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
21640         * predict.c (estimate_probability): Likewise.
21641         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
21642         * tree-cfg.c (make_edges): Likewise.
21643         * tree-ssa-pre.c (fini_pre): Likewise.
21644         * profile.c (instrument_edges): Don't remove_fake_edges.
21645         (branch_prob): Do it earlier here.
21646
21647 2004-07-16  Richard Henderson  <rth@redhat.com>
21648
21649         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
21650         switchification wrt CONSTRUCTOR.  Document the reason.
21651
21652 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
21653
21654         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
21655         that prevented descriptive __mf_check source location strings.
21656
21657 2004-07-16  Richard Henderson  <rth@redhat.com>
21658
21659         * tree-def (WITH_SIZE_EXPR): New.
21660         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
21661         * expr.c (expand_expr_real_1): Likewise.
21662         * gimplify.c (maybe_with_size_expr): New.
21663         (gimplify_arg, gimplify_modify_expr): Use it.
21664         (gimplify_modify_expr_to_memcpy): Take size parameter.
21665         (gimplify_modify_expr_to_memset): Likewise.
21666         (gimplify_expr): Handle WITH_SIZE_EXPR.
21667         * tree-alias-common.c (find_func_aliases): Likewise.
21668         * tree-eh.c (tree_could_trap_p): Likewise.
21669         (tree_could_throw_p): Likewise.
21670         * tree-gimple.c (is_gimple_lvalue): Likewise.
21671         (get_call_expr_in): Likewise.
21672         * tree-inline.c (estimate_num_insns_1): Likewise.
21673         (expand_calls_inline): Likewise.
21674         * tree-nested.c (convert_call_expr): Likewise.
21675         * tree-pretty-print.c (dump_generic_node): Likewise.
21676         * tree-sra.c (sra_walk_expr): Likewise.
21677         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
21678         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
21679         * tree-ssa-operands.c (get_expr_operands): Likewise.
21680         * tree-tailcall.c (find_tail_calls): Likewise.
21681
21682         * calls.c (expand_call): Reset old_stack_allocated after
21683         calling emit_stack_restore.
21684
21685 2004-07-16  Richard Henderson  <rth@redhat.com>
21686
21687         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
21688         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
21689         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
21690         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
21691         copy_res_decl_for_inlining.
21692
21693         * tree-inline.c (declare_return_variable): New modify_dest argument.
21694         Use it as the return value, when possible or manditory.  Handle
21695         TREE_ADDRESSABLE types.
21696         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
21697         replacement of CALL_EXPR.
21698
21699 2004-07-16  Richard Henderson  <rth@redhat.com>
21700
21701         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
21702         * gimple-low.c (expand_var_p): Don't check it.
21703         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
21704         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
21705         * tree-ssa-operands.c (add_stmt_operand): Likewise.
21706         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
21707         (find_referenced_vars): Don't call them.
21708         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
21709
21710 2004-07-16  Richard Henderson  <rth@redhat.com>
21711
21712         * function.c (pass_by_reference): True for all variable sized types.
21713
21714 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
21715
21716         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
21717         * tree-pretty-print.c: Include tree-chrec.h.
21718         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
21719         and POLYNOMIAL_CHREC nodes.
21720
21721 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
21722
21723         * builtins.c (expand_builtin_stpcpy): Do not create temporary
21724         reg with VOIDmode.
21725
21726 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
21727
21728         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
21729
21730 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
21731
21732         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
21733         to BASE_REGNUM.
21734         * config/s390/s390.c: Likewise.
21735         * config/s390/s390.h: Likewise.
21736
21737 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21738
21739         * config/mips/mips.md (addsi3, adddi3): Remove special handling
21740         of $sp adds.  Remove REGNO checks from mips16 patterns.
21741
21742 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21743
21744         * config/mips/mips.md: Delete outdated comment.
21745
21746 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21747
21748         * config/mips/mips.c (get_float_compare_codes): Delete.
21749         (mips_emit_compare): New function, mostly extracted from
21750         get_float_compare_codes and gen_conditional_branch.
21751         (gen_conditional_branch, gen_conditional_move): Use it.
21752
21753 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
21754
21755         * genautomata.c (add_vect): Speedup by using integers as
21756         bit-vectors for walking through the comb_vect and finding
21757         a match.
21758
21759 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21760
21761         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
21762         operand is an uns_arith_operand; use subtraction otherwise.
21763         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
21764         not just arith_operands.
21765
21766 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21767
21768         * config/mips/mips-protos.h (gen_int_relational): Delete.
21769         (mips_emit_scc): Declare.
21770         * config/mips/mips.c (internal_test): Delete.
21771         (sle_operand, sleu_operand): New functions.
21772         (map_test_to_internal_test, gen_int_relational): Delete.
21773         (mips_emit_binary, mips_relational_operand_ok_p)
21774         (mips_emit_int_relational, mips_zero_if_equal)
21775         (mips_emit_scc): New functions.
21776         (gen_conditional_branch): Rework to use mips_emit_int_relational.
21777         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
21778         sleu_operand.
21779         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
21780         (sltu, sleu): Use mips_emit_scc.
21781         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
21782         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
21783         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
21784
21785 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21786
21787         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
21788
21789 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21790
21791         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
21792         (*sne_[sd]i): Likewise sne_[sd]i_zero.
21793         (*sgt_[sd]i): ...and sgt_[sd]i.
21794         (*slt_[sd]i): ...and slt_[sd]i.
21795         (*sgtu_[sd]i): ...and sgtu_[sd]i.
21796         (*sltu_[sd]i): ...and sltu_[sd]i.
21797         (*sleu_[sd]i): ...and sleu_[sd]i_const.
21798         Name previously unnamed mips16 patterns.  Formatting fixes.
21799
21800 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21801
21802         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
21803         (branch_type): Delete.
21804         (gen_conditional_branch, gen_conditional_move)
21805         (mips_gen_conditional_trap): Update after name change.  Get the
21806         comparison mode from cmp_operands[0].
21807         * config/mips/mips.h (cmp_type, branch_type): Delete.
21808         (cmp_operands): Renamed from branch_cmp.
21809         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
21810         name change.  Don't set branch_type.
21811         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
21812         mode class of cmp_operands[0] rather than branch_type.  Update after
21813         name change.
21814
21815 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21816
21817         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
21818         of 0...255 to 0 when inside a SET.
21819
21820 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21821
21822         * config/mips/mips.md: Remove mips16 define_peepholes.
21823
21824 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
21825
21826         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
21827         (fini_pre): Remove fake edges.
21828
21829 2004-07-15  Richard Henderson  <rth@redhat.com>
21830
21831         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
21832         (get_indirect_ref_operands, get_call_expr_operands): ... these.
21833
21834 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21835
21836         * vec.h (VEC_address): New function.
21837
21838 2004-07-14  Jason Merrill  <jason@redhat.com>
21839
21840         PR middle-end/15885
21841         * gimplify.c (gimplify_arg): New fn, split out from...
21842         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
21843
21844 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
21845
21846         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
21847         generate code which is generated by pushqi1 now
21848         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
21849
21850 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
21851
21852         * combine.c (simplify_set): match the mode of the constant 0 with
21853         the tested operand to match the compare behaviour and the
21854         simplify_relational_operation() expectation.
21855
21856 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
21857
21858         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
21859         ("bordered"): Same.
21860
21861 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
21862
21863         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
21864         unconditionally.
21865         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
21866
21867 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
21868
21869         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
21870         calls in mips16 code.
21871
21872 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
21873
21874         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
21875         the destination of the li as well as for the neg.
21876
21877 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
21878
21879         g++/15861
21880         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
21881         * cgraph.h: Update declaration.
21882         * c-decl.c (build_cdtor): Update call with default priority.
21883         * coverage.c (create_coverage): Ditto.
21884         * tree-mudflap.c (mf_init_fndecl): New tree.
21885         (mudflap_init): Set it.
21886         (mudflap_register_call): Arrange to call __mf_init before the first
21887         __mf_register call.
21888         (mudflap_finish_file): Mark the mudflap static initializer as extra
21889         high priority, to beat all C++ static constructors.
21890
21891 2004-07-15  Jeff Law  <law@redhat.com>
21892
21893         * loop.c (check_insn_for_givs): Restore check for code labels that was
21894         accidentally deleted by a recent checkin.
21895
21896 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21897
21898         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
21899         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
21900
21901 2004-07-14  Richard Henderson  <rth@redhat.com>
21902
21903         * print-tree.c (print_node): Fix casts last change.
21904
21905 2004-07-15  Paul Brook  <paul@codesourcery.com>
21906
21907         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
21908         to TARGET_UNWIND_INFO.
21909         * except.c (output_function_exception_table): Ditto.
21910         * except.h: Ditto.
21911         * opts.c (decode_options): Ditto.
21912         * passes.c (rest_of_handle_final): Ditto.
21913         * final.c (final_start_function): Ditto.
21914         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
21915         target hook.
21916         * targhooks.h (default_unwind_emit): Declare.
21917         * targhooks.c (default_unwind_emit): New function.
21918         * target-def.h: Define and use TARGET_UNWIND_EMIT.
21919         * target.h (struct gcc_target): Add unwind_emit.
21920         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
21921         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
21922         Remove IA64_UNWIND_EMIT.
21923         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
21924
21925 2004-07-14  Richard Henderson  <rth@redhat.com>
21926
21927         * print-tree.c (print_node): Handle SSA_NAME.
21928
21929 2004-07-14  James E Wilson  <wilson@specifixinc.com>
21930
21931         PR target/16325
21932         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
21933         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
21934
21935 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
21936
21937         * expr.c (expand_assignment): Reenable bitfield += optimizations.
21938         Use alias set 0 for memory, do proper mode calculations and adjust
21939         address for memories.
21940
21941 2004-07-14  Per Bothner  <per@bothner.com>
21942
21943         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
21944         structure with extra column field.
21945         * tree.c (expand_location):  Also fill in column field.
21946         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
21947         gets confused by the two conditionally-compiled definitions.
21948
21949 2004-07-14  Eric Christopher  <echristo@redhat.com>
21950
21951         * calls.c (expand_call): Fix typo in comment.
21952
21953 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
21954
21955         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
21956         comparision of TFmode.
21957
21958 2004-07-14  Richard Henderson  <rth@redhat.com>
21959
21960         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
21961         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
21962         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
21963         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
21964         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
21965         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
21966         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
21967         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
21968         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
21969
21970 2004-07-14  Mike Stump  <mrs@apple.com>
21971
21972         * config/darwin.h (WINT_TYPE): Define to be int to match
21973         system header files.
21974
21975 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
21976
21977         * config/xtensa/xtensa.c (function_arg_advance): Check for args
21978         that must be passed in the stack.
21979         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
21980         arguments if the size is not a constant.
21981
21982 2004-07-14  Per Bothner  <per@bothner.com>
21983
21984         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
21985         instead of EXPR_LOCUS in a boolean context, which is always true
21986         if --enable-mapped-location.
21987         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
21988
21989 2004-07-14  Richard Henderson  <rth@redhat.com>
21990
21991         * dominance.c (struct dom_info): Add fake_exit_edge.
21992         (init_dom_info): Allocate it.
21993         (free_dom_info): Free it.
21994         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
21995         in two passes.
21996         (calc_idoms): Honor fake_exit_edge.
21997
21998 2004-07-13  Jason Merrill  <jason@redhat.com>
21999
22000         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
22001         (rhs_test_for): New fn.
22002         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
22003         * tree-gimple.h: Declare them.
22004         * gimplify.c (gimplify_modify_expr): Use the new fns.
22005
22006 2004-07-14  Richard Henderson  <rth@redhat.com>
22007
22008         * config/arm/arm-protos.h (arm_va_arg): Remove.
22009         * config/arm/arm.c (arm_va_arg): Remove.
22010         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
22011         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
22012
22013 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22014
22015         * pa.c (fix_range): New function to mark a range(s) of registers as
22016         fixed registers.
22017         (override_options): Call fix_range if the -mfixed-range option string
22018         is not empty.
22019         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
22020         * doc/invoke.texi (-mfixed-range): Document new option.
22021
22022 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
22023
22024         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
22025         for TARGET_64BIT.
22026         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
22027
22028 2004-07-14  Roger Sayle  <roger@eyesopen.com>
22029
22030         * expmed.c (expand_sdiv_pow2): New function to expand signed division
22031         by a positive power of two, split out from expand_divmod.  Provide
22032         an alternate implementation when shifts are expensive.  Lower the
22033         threshold for using a branchless implementation to BRANCH_COST >= 2.
22034         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
22035
22036 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
22037
22038         * tree-dfa.c (make_rename_temp): *Really* work just
22039         like create_tmp_var if called while outside SSA form.
22040
22041 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
22042
22043         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
22044         for division by zero.
22045         ("umodsi3"): Likewise.
22046
22047 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
22048
22049         * config/mips/mips.c (mips_output_move): When generating mips16 code,
22050         force loads of negative constants to be split.
22051         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
22052         Generalize SImode li/neg splitter to cope with other modes.
22053
22054 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
22055
22056         * expmed.c: Remove more references to QUEUED in the comments.
22057         * expr.c: Likewise.
22058
22059 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
22060
22061         Revert:
22062         2004-07-13  Richard Henderson  <rth@redhat.com>
22063         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
22064         correctly.
22065
22066 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
22067
22068         * tree-dfa.c (make_rename_temp): Work just like
22069         create_tmp_var if called while outside SSA form.
22070
22071 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
22072
22073         * expr.c (enqueue_insn, finish_expr_for_function,
22074         protect_from_queue, queued_subexp_p, mark_queue,
22075         emit_insns_enqueued_after_mark, emit_queue,
22076         expand_increment): Remove.
22077         (store_constructor): Expand increment as an assignment.
22078         (expand_expr_real_1 <case PREINCREMENT_EXPR,
22079         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
22080         case POSTDECREMENT_EXPR>): Abort.
22081         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
22082         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
22083         protect_from_queue, emit_queue, queued_subexp_p): Remove.
22084         * function.h (pending_chain, x_pending_chain): Remove.
22085         * rtl.def (QUEUED): Remove.
22086
22087         * emit-rtl.c (copy_insn_1, copy_most_rtx,
22088         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
22089         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
22090         encode_units_mask): Likewise.
22091         * local-alloc.c (equiv_init_varies_p): Likewise.
22092         * rtl.c (copy_rtx): Likewise.
22093         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
22094         * simplify-rtx.c (simplify_gen_subreg): Likewise.
22095         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
22096
22097         * builtins.c (expand_builtin, expand_builtin_apply,
22098         expand_builtin_mathfn, expand_builtin_mathfn_2,
22099         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
22100         Remove calls to emit_queue and protect_from_queue.
22101         * calls.c (expand_call, precompute_arguments,
22102         precompute_register_parameters, rtx_for_function_call,
22103         store_one_arg): Likewise.
22104         * dojump.c (do_compare_and_jump, do_jump): Likewise.
22105         * explow.c (memory_address): Likewise.
22106         * expmed.c (clear_by_pieces_1, clear_storage,
22107         clear_storage_via_libcall, emit_group_load,
22108         emit_group_store, emit_store_flag,
22109         expand_expr_real_1, store_by_pieces,
22110         store_constructor, store_expr, try_casesi,
22111         try_tablejump): Likewise.
22112         * function.c (expand_pending_sizes): Likewise.
22113         * optabs.c (emit_cmp_and_jump_insns,
22114         emit_conditional_add, emit_conditional_move,
22115         expand_fix, expand_float, prepare_cmp_insn): Likewise.
22116         * stmt.c (emit_case_bit_tests,
22117         expand_asm_expr, expand_computed_goto,
22118         expand_decl_init, expand_end_case_type,
22119         expand_end_stmt_expr, expand_expr_stmt_value,
22120         expand_return, expand_start_case,
22121         optimize_tail_recursion): Likewise.
22122         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
22123         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
22124
22125 2004-07-14  Ben Elliston  <bje@au.ibm.com>
22126
22127         * vec.h: Comment fix.
22128
22129 2004-07-13  Richard Henderson  <rth@redhat.com>
22130
22131         * target.h (struct gcc_target): Add calls.pass_by_reference.
22132         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
22133         * function.c (pass_by_reference): Use the hook.
22134         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
22135         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
22136         (hook_pass_by_reference_must_pass_in_stack): New.
22137         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
22138         (alpha_pass_by_reference): New.
22139         (TARGET_PASS_BY_REFERENCE): New.
22140         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22141         * config/arc/arc.c (arc_pass_by_reference): New.
22142         (TARGET_PASS_BY_REFERENCE): New.
22143         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22144         (FUNCTION_ARG_CALLEE_COPIES): True.
22145         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
22146         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
22147         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
22148         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22149         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22150         * config/cris/cris.c (cris_pass_by_reference): New.
22151         (TARGET_PASS_BY_REFERENCE): New.
22152         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
22153         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
22154         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22155         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
22156         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22157         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
22158         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
22159         (frv_function_arg_pass_by_reference): Remove.
22160         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22161         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
22162         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
22163         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
22164         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22165         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
22166         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
22167         (ia64_pass_by_reference): Rename from
22168         ia64_function_arg_pass_by_reference.
22169         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22170         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22171         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
22172         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
22173         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
22174         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22175         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22176         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
22177         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
22178         (m32r_pass_by_reference): Adjust prototype.  Make static.
22179         Handle mode sizes correctly.
22180         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22181         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
22182         (m68hc11_function_arg_pass_by_reference): Remove.
22183         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22184         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22185         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
22186         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22187         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
22188         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
22189         (mips_va_arg): Use pass_by_reference.
22190         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
22191         Handle mode sizes correctly.
22192         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22193         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22194         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
22195         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
22196         (mmix_pass_by_reference): Rename from
22197         mmix_function_arg_pass_by_reference.
22198         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22199         (FUNCTION_ARG_CALLEE_COPIES): True.
22200         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
22201         (mn10300_pass_by_reference): New.
22202         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22203         (FUNCTION_ARG_CALLEE_COPIES): True.
22204         * config/pa/pa.c (pa_pass_by_reference): New.
22205         (TARGET_PASS_BY_REFERENCE): New.
22206         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22207         (FUNCTION_ARG_CALLEE_COPIES): True.
22208         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
22209         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
22210         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
22211         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22212         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
22213         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
22214         (s390_pass_by_reference): Rename from
22215         s390_function_arg_pass_by_reference.
22216         (s390_function_arg_advance): Don't query pass-by-ref.
22217         (s390_function_arg): Likewise.
22218         (s390_gimplify_va_arg): Use pass_by_reference.
22219         (s390_call_saved_register_used): Likewise.
22220         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22221         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
22222         (shcompact_byref, sh_pass_by_reference): New.
22223         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22224         (SHCOMPACT_BYREF): Remove.
22225         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
22226         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
22227         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
22228         (sparc_gimplify_va_arg): Use pass_by_reference.
22229         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22230         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22231         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
22232         (v850_pass_by_reference): New.
22233         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22234         (FUNCTION_ARG_CALLEE_COPIES): True.
22235         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
22236         FUNCTION_ARG_PASS_BY_REFERENCE docs.
22237
22238 2004-07-14  Richard Henderson  <rth@redhat.com>
22239             Richard Sandiford  <rsandifo@redhat.com>
22240
22241         * config/mips/mips-protos.h (mips_va_arg): Delete.
22242         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
22243         * config/mips/mips.c: Include tree-gimple.h.
22244         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22245         (mips_arg_info): Remove special handling of must_pass_in_stck args.
22246         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
22247         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
22248
22249 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
22250
22251         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
22252         arguments for COND_EXPR in big-endian adjustment code.
22253
22254 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22255
22256         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
22257         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
22258         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
22259         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
22260
22261 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
22262
22263         PR tree-optimization/16443
22264         * tree-ssa-alias.c: Add more description for
22265         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
22266         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
22267         clobbering of call-clobbered and addressable variables.  If
22268         there are any before aliases have been computed, add them.
22269
22270 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
22271
22272         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
22273         verification.
22274
22275 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
22276
22277         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
22278         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
22279         to the same type.
22280
22281 2004-07-13  Per Bothner  <per@bothner.com>
22282
22283         * collect2.c (main):  Handle --no-demangle and --demangle flags.
22284
22285 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
22286
22287         * Makefile.in (OBJS-common): Add tree-data-ref.o.
22288         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
22289         (tree-data-ref.o): New rule.
22290         * lambda.h: New file.
22291         * tree-data-ref.c: New file.
22292         * tree-data-ref.h: New file.
22293         * tree.c (int_cst_value, tree_fold_gcd): New functions.
22294         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
22295
22296 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
22297
22298         PR target/13926
22299         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
22300         * config/sparc/sparc.c (output_ubranch): New function.
22301         * config/sparc/sparc.md (jump pattern): Use it.
22302
22303 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
22304
22305         PR target/16494
22306         * config/sparc/sparc.c (output_cbranch): Properly guard
22307         the code handling far branches with TARGET_V9.
22308         * config/sparc/sparc.md (length attribute): Document the
22309         side-effect of having a length greater or equal to 3.
22310
22311 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
22312             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
22313
22314         PR target/15186
22315         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
22316         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
22317
22318 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
22319             Martin Sebor  <sebor@roguewave.com>
22320
22321         PR target/12602
22322         * doc/invoke.texi (SPARC options): Document -threads
22323         and -pthreads on Solaris.
22324
22325 2004-07-13  Richard Henderson  <rth@redhat.com>
22326
22327         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
22328         by reference.
22329         (ind_gimplify_va_arg_expr): Remove.
22330         * tree.h (ind_gimplify_va_arg_expr): Remove.
22331         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
22332         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
22333         argsp to be null.
22334
22335         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
22336         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
22337         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
22338         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
22339         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
22340
22341 2004-07-13  Richard Henderson  <rth@redhat.com>
22342
22343         * function.c (pass_by_reference): New.
22344         (assign_parm_find_data_types): Use it.
22345         * calls.c (initialize_argument_information): Likewise.
22346         (emit_library_call_value_1): Likewise.
22347         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22348         * function.h (pass_by_reference): Declare.
22349
22350 2004-07-13  Richard Henderson  <rth@redhat.com>
22351
22352         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
22353         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
22354         * expr.h (MUST_PASS_IN_STACK): Remove.
22355         * system.h (MUST_PASS_IN_STACK): Poison.
22356         * tree.h (must_pass_in_stack_var_size): Declare.
22357         (must_pass_in_stack_var_size_or_pad): Declare.
22358         * calls.c (must_pass_in_stack_var_size): New.
22359         (must_pass_in_stack_var_size_or_pad): Rename from
22360         default_must_pass_in_stack.
22361         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
22362         (TARGET_MUST_PASS_IN_STACK): New.
22363         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
22364         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
22365         (TARGET_MUST_PASS_IN_STACK): New.
22366         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
22367         * config/frv/frv.c (frv_must_pass_in_stack): New.
22368         (TARGET_MUST_PASS_IN_STACK): New.
22369         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
22370         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
22371         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
22372         (ix86_must_pass_in_stack): Make static.
22373         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
22374         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
22375         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
22376         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
22377         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
22378         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
22379         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
22380         (mcore_must_pass_on_stack): Remove.
22381         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
22382         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
22383         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
22384         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
22385         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
22386         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
22387         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
22388         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
22389         (TARGET_MUST_PASS_IN_STACK): New.
22390         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
22391         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
22392         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
22393         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
22394         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
22395         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
22396         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
22397         MUST_PASS_IN_STACK.
22398
22399         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
22400         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
22401         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
22402         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
22403         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
22404         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
22405         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
22406         config/xtensa/xtensa.c: Use target hook.
22407
22408 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
22409
22410         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
22411         * configure: Rebuilt.
22412
22413 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
22414
22415         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
22416         * config/mips/mips.h (mips_reg_names): Don't declare.
22417         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
22418         (TARGET_NAME_REGS): Delete.
22419         (TARGET_SWITCHES): Remove -mrnames.
22420         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
22421         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
22422         in REGISTER_NAMES.
22423         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
22424         (override_options): Remove handling of TARGET_NAME_REGS.
22425
22426 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
22427
22428         * config/mips/mips.h (TARGET_*): Boolify.
22429
22430 2004-07-12  Nick Clifton  <nickc@redhat.com>
22431
22432         * config.gcc: Add sh-*-symbianelf target.
22433         * config/sh/sh.c: Add new target macros:
22434         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
22435         TARGET_CXX_IMPORT_EXPORT_CLASS.
22436         (sh_file_start): Create a definition of the .directive section.
22437         (sh_attribute): Add dllimport and dllexport attributes.
22438         * config/sh/symbian-pre.h: New file.
22439         * config/sh/symbian-post.h: New file.
22440         * config/sh/symbian.c: New file. Contains Symbian specific
22441         functions.
22442         * config/sh/sh-protos.h: Add prototypes for new functions
22443         provided by symbian.c.
22444         * config/sh/t-symbian: New file.
22445         * doc/extend.texi: Document support for dllimport and dllexport
22446         attributes by the sh-symbianelf target.
22447
22448 2004-07-12  James E Wilson  <wilson@specifixinc.com>
22449
22450         * Makefile.in (AR): Use @AR@ not ar.
22451         (NM): New.
22452         (AR_FOR_TARGET): Use $(AR) not ar for native.
22453         (NM_FOR_TARGET): Use $(NM) not nm for native.
22454         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
22455         * configure: Regenerate.
22456
22457 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
22458
22459         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
22460         special case.
22461         (ashldi3_sp64): Likewise.
22462
22463 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22464
22465         PR target/16477
22466         * pa.c (function_arg): Update comment.
22467         * pa.h (BLOCK_REG_PADDING): Define.
22468
22469 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22470
22471         PR tree-optimization/16461
22472         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
22473         arguments of phi nodes.
22474
22475 2004-07-12  Devang Patel  <dpatel@apple.com>
22476
22477         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
22478
22479 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
22480
22481         * function.c (expand_function_start): Ensure r_save is in Pmode.
22482         * calls.c (prepare_call_address): Ensure static_chain_value is
22483         in Pmode.
22484         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
22485         r_save_area are in Pmode.
22486         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
22487         fnaddr, and static_chain are in Pmode.
22488
22489 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
22490
22491         PR target/16445
22492         * config/ia64/ia64.c (bundling): Don't count ignored insns.
22493
22494 2004-07-12  Richard Henderson  <rth@redhat.com>
22495
22496         * target.h (struct gcc_target): Move gimplify_va_arg_expr
22497         next to build_builtin_va_list.
22498         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
22499         * builtins.c (gimplify_va_arg_expr): Likewise.
22500         * gimplify.c (copy_if_shared_r): Likewise.
22501
22502 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
22503
22504         * passes.c (rest_of_decl_compilation): Don't defer call of
22505         assemble_variable if its DECL_RTL is already set.
22506
22507 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
22508
22509         * cfgloop.h (struct loop): Add nb_iterations field.
22510         (current_loops): Declare.
22511         * tree-chrec.c (chrec_not_analyzed_yet,
22512         chrec_dont_know, chrec_known, count_ev_in_wider_type,
22513         chrec_contains_symbols_defined_in_loop): Remove the temporary
22514         hooks.
22515         * tree-flow-inline.h (loop_containing_stmt): New function.
22516         * tree-scalar-evolution.c: Add implementation.
22517         * tree-scalar-evolution.h: Add declarations.
22518
22519 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
22520
22521         PR rtl-optimization/15921
22522         * Makefile.in (global.o): Add recog.h.
22523
22524         * global.c (recog.h): Add the include-clause.
22525         (bb_info): New member earlyclobber.
22526         (allocate_bb_info, free_bb_info): Initialize/finish the new
22527         member.
22528         (earlyclobber_regclass, earlyclobber_regclass_length): The new
22529         global variables.
22530         (check_earlyclobber, regclass_intersect,
22531         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
22532         New functions.
22533         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
22534         (make_accurate_live_analysis): Modify pavin.
22535
22536 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
22537
22538         * tree-cfg.c (find_taken_edge): Statically compute the truth
22539         value of a predicate comparing an SSA_NAME to itself.
22540
22541 2004-07-12  Roger Sayle  <roger@eyesopen.com>
22542
22543         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
22544         rs6000 doesn't have shift-and-add or shift-and-sub instructions
22545         by returning the cost of a multiplication plus an addition.
22546
22547 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
22548
22549         PR tree-optimization/14107
22550         * gimplify.c (gimplify_return_expr): Accept a
22551         RETURN_EXPR with an error argument.
22552         * tree-optimize.c (init_tree_optimization_passes):
22553         Run pass_warn_function_return at -O0.
22554
22555 2004-07-12  Roger Sayle  <roger@eyesopen.com>
22556
22557         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
22558         index entry.
22559
22560 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
22561
22562         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
22563         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22564         * config/mips/3000.md: Add copyright notice.  Remove automota and
22565         function units; use generic ones instead.  Only define reservations
22566         for things that are different from generic.md.  Extend each clause
22567         to include r3900.
22568         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
22569         * config/mips/mips.md: Include them. Remove define_function_units.
22570         (alu, imuldiv): New automata and units.
22571
22572 2004-07-12  Ben Elliston  <bje@au.ibm.com>
22573
22574         * doc/invoke.texi (Optimize Options): Document -frename-registers
22575         not being enabled by default at -O3.
22576
22577 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22578
22579         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
22580         floating point additions, to keep real immediate constant positive.
22581         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
22582         into X + C, and leave positive real constants as X - C.
22583
22584 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22585
22586         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
22587
22588 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22589
22590         PR tree-optimization/15654
22591         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
22592
22593 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22594
22595         * builtins.c (fold_builtin_fputs): Don't bother converting the
22596         return type to integer_type_node, as we've already checked that
22597         the result will be ignored.
22598
22599         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
22600         that signed addition, subtraction, multiplication, division,
22601         remainder, negation and absolute value may potentially trap.
22602
22603         * fold-const.c (fold_ignored_result): New function to strip
22604         non-side-effecting tree nodes from an expression whose result
22605         is ignored.
22606         (fold_convert): Call fold_ignored_result when casting a value
22607         to VOID_TYPE.
22608         (omit_one_operand):  Call fold_ignored_result on the "omitted"
22609         operand when building a COMPOUND_EXPR.
22610         (pedantic_omit_one_operand): Likewise.
22611         * tree.h (fold_ignored_result): Prototype here.
22612         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
22613         when we're going to ignore the result.
22614
22615 2004-07-11  Richard Henderson  <rth@redhat.com>
22616
22617         PR tree-opt/16383
22618         * tree-ssa-ccp.c (fold_stmt_r): Split out...
22619         * tree.c (fields_compatible_p, find_compatible_field): ... new.
22620         * tree.h (fields_compatible_p, find_compatible_field): Declare.
22621         * tree-sra.c (sra_hash_tree): Hash fields by offset.
22622         (sra_elt_eq): Use fields_compatible_p.
22623         (generate_one_element_ref): Use find_compatible_field.
22624
22625 2004-07-11  Richard Henderson  <rth@redhat.com>
22626
22627         PR tree-opt/16422
22628         * tree-sra.c (generate_one_element_init): New.
22629         (generate_element_init): Use it.
22630         (scalarize_init): Push/pop gimplify context around it.
22631         (find_new_referenced_vars_1, find_new_referenced_vars): New.
22632         * gimplify.c (gimplify_expr): Allow SSA_NAME.
22633
22634 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22635
22636         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
22637         combine.c's combine_insn_cost.
22638         * rtl.h (insn_rtx_cost): Prototype here.
22639         * combine.c (combine_insn_cost): Delete function.
22640         (combine_validate_cost): Update callers of combine_insn_cost to
22641         call insn_rtx_cost instead.
22642         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
22643         requesting the rtx_cost of call and/or jump instructions.
22644
22645         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
22646         rtx_cost directly.  Don't request/use the cost of call or jump
22647         instructions.  Return -1 if the cost of any instruction can't be
22648         determined (or the BB contains a function call).
22649         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
22650         -1 (i.e. can't determine the cost of any instruction or the basic
22651         block contains a subroutine call).
22652         (find_if_case_2): Likewise.
22653
22654 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22655
22656         * rs6000.c (struct processor_costs): Change semantics of fields to
22657         include the COST_N_INSNS scaling, and update all initializers.
22658         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
22659         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
22660         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
22661         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
22662
22663 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22664
22665         * LANGUAGES: Remove obsolete information.
22666
22667 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
22668
22669         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
22670         SIGBUS signal frames, the PSW address points *to* the faulting
22671         instruction, not after it.
22672
22673 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
22674
22675         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
22676         added to TLS symbol addresses.
22677
22678 2004-07-11  Richard Henderson  <rth@redhat.com>
22679
22680         * expmed.c (init_expmed): Use stack-local structures for
22681         temporary rtl.  Don't recognize shifts.
22682
22683 2004-07-11  Richard Henderson  <rth@redhat.com>
22684
22685         * expr.c (store_expr): Don't fiddle subreg promotion for types
22686         with precision smaller than the mode.
22687
22688 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22689
22690         * tree.h (all_types_permanent): Remove.
22691
22692 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22693
22694         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
22695         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
22696         * langhooks.c (lhd_clear_binding_stack): Remove.
22697         * langhooks-def.h (lhd_clear_binding_stack,
22698         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
22699         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
22700         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
22701         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22702         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
22703         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
22704         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
22705         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
22706         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
22707         * tree.h (poplevel): Don't declare.
22708         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
22709         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22710         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
22711         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
22712         Remove.
22713
22714 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22715
22716         PR tree-optimization/16437
22717         * c-common.c (shorten_compare): Don't mark result of conversion to
22718         narrower signed type as overflowing.
22719         * fold-const.c (decode_field_reference): Determine whether
22720         signedness comes from outer type using precision rather than size.
22721
22722 2004-07-11  Phil Edwards  <phil@codesourcery.com>
22723
22724         * configure.ac:  Alphabetize --enable-checking list, add
22725         missing valgrind entry.
22726         * configure:  Regenerate.
22727
22728 2004-07-11  Phil Edwards  <phil@codesourcery.com>
22729
22730         * doc/install.texi (Testing):  Fix syntax in "make check" example.
22731
22732 2004-07-10  James E Wilson  <wilson@specifixinc.com>
22733
22734         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
22735
22736 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22737
22738         PR rtl-optimization/16001
22739         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
22740         niter_expr.
22741
22742 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
22743
22744         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
22745
22746 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
22747             James Morrison  <phython@gcc.gnu.org>
22748
22749         * doc/contrib.texi (Contributors): Add gfortran contributors and
22750         fix a couple of typos.
22751
22752 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22753
22754         PR rtl-optimization/15387
22755         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
22756         to incoming args space correctly.
22757
22758 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22759
22760         * pa.c (output_indirect_call): Only use %r2 as the link register in
22761         indirect calls with the long PA 2.0 pc-relative branch.
22762
22763 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
22764
22765         * config/i386/i386.c (override_options): Pick a 64-bit CPU
22766         for the default tuning if TARGET_64BIT.
22767
22768 2004-07-10  Richard Henderson  <rth@redhat.com>
22769
22770         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
22771         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
22772
22773 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
22774
22775         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
22776         * expmed.c (store_bit_field, extract_bit_field): Remove last
22777         argument.
22778         * builtins.c (expand_builtin_signbit): Adjust callers.
22779         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
22780         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
22781         * ifcvt.c (noce_emit_move_insn): Likewise.
22782         * stmt.c (expand_return): Likewise.
22783         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
22784         store_field, expand_expr_real_1): Likewise.
22785
22786 2004-07-10  Richard Henderson  <rth@redhat.com>
22787
22788         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
22789
22790 2004-07-09  Mike Stump  <mrs@apple.com>
22791
22792         * config/darwin.c (no_dead_strip): Add.
22793         (HAVE_DEAD_STRIP): Add.
22794         (darwin_emit_unwind_label): Ensure that we don't dead code strip
22795         the .eh label.
22796
22797 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22798
22799         * tree-ssa-loop-im.c: New file.
22800         * Makefile.in (tree-ssa-loop-im.o): Add.
22801         * cfgloop.c (superloop_at_depth): New function.
22802         * cfgloop.h (superloop_at_depth): Declare.
22803         * common.opt (ftree-lim): New flag.
22804         * expr.c (array_ref_up_bound): New function.
22805         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
22806         * timevar.def (TV_LIM): New timevar.
22807         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
22808         computing immediate uses of a phi node.
22809         * tree-flow.h (struct tree_ann_common_d): Add aux field.
22810         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
22811         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
22812         * tree-pass.h (pass_lim): Declare.
22813         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
22814         functions.
22815         (pass_lim): New pass structure.
22816         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
22817         * tree.c (in_array_bounds_p): New function.
22818         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
22819         (in_array_bounds_p, array_ref_up_bound): Declare.
22820         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
22821         * doc/passes.texi (tree-ssa-loop-im.c): Document.
22822
22823 2004-07-09  Richard Henderson  <rth@redhat.com>
22824
22825         * builtins.c (expand_builtin_stpcpy): Don't modify len.
22826
22827         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
22828         with prejudice.
22829
22830 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
22831
22832         * flags.h: Delete redundant prototypes that are being generated
22833         in options.h from common.opt.
22834         * common.opt: Add in the expository comments formerly in flags.h.
22835
22836 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22837
22838         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
22839         available for use only when TARGET_MMX/_SSE is set, and check for
22840         variable argument function if any register count is non-zero.
22841         (function_arg): Correctly suppress repeated warnings for passing SSE
22842         vectors are arguments without SSE enabled.
22843         (ix86_function_arg_boundary): Without SSE enabled, the use of what
22844         would be SSE register modes does no longer influence the alignment.
22845
22846 2004-07-09  Richard Henderson  <rth@redhat.com>
22847
22848         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
22849         Always align upward to arg boundary.  Use size_in_bytes/round_up.
22850         Maintain type-correctness of constants.
22851         * stor-layout.c (round_up, round_down): Special-case powers of 2.
22852
22853 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
22854
22855         * config/sparc/sparc.c (*_costs): Scale instruction costs
22856         by COSTS_N_INSNS.
22857         (sparc_rtx_costs): Adjust as appropriate.
22858
22859 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22860
22861         * config/i386/mm3dnow.h: New.
22862         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
22863
22864 2004-07-09  Richard Henderson  <rth@redhat.com>
22865
22866         * simplify-rtx.c (simplify_const_relational_operation): Only
22867         look at bounds of scalar integers.
22868
22869 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22870
22871         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
22872
22873 2004-07-09  Andrew Pinski  <apinski@apple.com>
22874
22875         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
22876         always referenced.
22877         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
22878         UOBJC_METACLASS_decl.
22879
22880 2004-07-09  James E Wilson  <wilson@specifixinc.com>
22881
22882         PR target/16364
22883         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
22884         do return a parallel if hfa_mode == XFmode and mode == TImode.
22885
22886 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22887
22888         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
22889         permissible for unary plus.
22890
22891 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22892
22893         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
22894         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
22895         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
22896         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
22897         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
22898         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
22899         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
22900         (BUILTIN_xxxIMAX): New.
22901         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
22902         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
22903         BUILT_IN_PARITYIMAX.
22904
22905 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
22906
22907         * config/sparc/sparc.h (processor_costs): Define.
22908         (sparc_costs): Declare.
22909         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
22910         hypersparc_costs, sparclet_costs, ultrasparc_costs,
22911         ultrasparc3_costs): New.
22912         (sparc_override_options): Set sparc_costs as appropriate.
22913         (sparc_rtx_costs): Use sparc_costs instead of messy
22914         conditionals.
22915
22916 2004-07-09  Steven Bosscher  <stevenb@suse.de>
22917
22918         * doc/md.texi (Processor pipeline description): Mention that
22919         the old pipeline description is deprecated.
22920
22921         * config/rs6000/7450.md (automaton ppc7450): Split up, move
22922         mciu_7450 function unit to...
22923         (automaton ppc7450mciu): ...new automaton.
22924
22925         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
22926         (schedule_block): Don't consider inserting bubbles.
22927         (sched_init): Don't initialize DFA bubbles.
22928         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
22929         TARGET_SCHED_DFA_BUBBLE): Remove.
22930         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
22931         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
22932         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
22933
22934         * stmt.c (conditional_context): Remove prototype.
22935         * tree.h (conditional_context): Remove.
22936         * tree-cfg.c (pre_insert_on_edge): Remove.
22937
22938         * c-common.h (c_expand_asm_operands): Remove prototype.
22939         * c-typeck.c (c_expand_asm_operands): Remove.
22940
22941 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22942
22943         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
22944         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
22945         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
22946         and V8QI are class SSE. All sufficiently small remaining vector modes
22947         must be passed in one or two integer registers.
22948         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
22949         returned in memory.
22950         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
22951         __builtin_ia32_pmuludq128 have non-uniform argument and return types
22952         and must thus be handled explicitly.
22953         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
22954         MMX and XMM regs.
22955         (movv8qi_internal, movv4hi_internal, movv2si_internal,
22956         movv2sf_internal): Permit moving between MMX and XMM registers (since
22957         MMX areguments and return values are passed in XMM registers).
22958         (sse2_umulsidi3): Correct type and mode.
22959
22960 2004-07-09  Richard Henderson  <rth@redhat.com>
22961
22962         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
22963
22964 2004-07-09  Eric Christopher  <echristo@redhat.com>
22965
22966         * config/rs6000/40x.md: Split into two automatons.
22967
22968 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
22969             Andrew Pinski  <apinski@apple.com>
22970
22971         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
22972         on when we have more than one input file.
22973         (c_common_parse_file): Restore loop over all input files.
22974         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
22975
22976         * c-decl.c (set_type_context): New function.
22977         (pop_scope): Use it to set context of types.  When we
22978         encounter a TYPE_DECL, set the context of the attached type too.
22979         (pop_file_scope): Don't call cpp_undef_all here.
22980         (diagnose_mismatched_decls): Do not complain about a second
22981         definition of an 'extern inline' function if it's not in the
22982         same translation unit.  Do not complain about inline
22983         declaration after use if the use was in a different
22984         translation unit.
22985         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
22986         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
22987         the external scope.
22988         (pushdecl_top_level): Likewise.
22989         (grokdeclarator): Clarify what is going on with setting
22990         DECL_EXTERNAL on function types, a little.
22991         (c_write_global_declarations): Don't do anything if
22992         -fsyntax-only or errors have been encountered.
22993
22994 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
22995
22996         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
22997
22998 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22999
23000         PR target/16459
23001         * pa.c (output_indirect_call): Use %r2 as the link register when
23002         calling $$dyncall with a pc-relative branch.
23003
23004 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
23005
23006         * doc/install.texi (Binaries): Mention OpenPKG.
23007
23008 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
23009
23010         Fix PR tree-optimization/15555
23011         * tree-dfa.c (dump_variable): If the variable is a pointer
23012         SSA_NAME, also dump its points-to information.
23013         * tree-flow.h (struct ptr_info_def): Add field
23014         is_dereferenced.
23015         (dump_points_to_info_for): Declare.
23016         (debug_points_to_info_for): Declare.
23017         * tree-optimize.c (init_tree_optimization_passes): Add a
23018         second alias analysis pass after DOM2.
23019         Move pass_del_pta to a later spot.
23020         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
23021         create a name tags when we find a dereferenced pointer.  Just
23022         mark the pointer dereferenced.
23023         (collect_points_to_info_for): Move code to clear points-to
23024         information to create_name_tags.
23025         (create_name_tags): New function.
23026         (compute_flow_sensitive_aliasing): Call it.
23027         (setup_pointers_and_addressables): Mark type tags for renaming
23028         here instead of ...
23029         (create_memory_tag): ... here.
23030         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
23031         (dump_points_to_info_for): Declare extern.
23032         (debug_points_to_info_for): New function.
23033
23034 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
23035
23036         * config/arc/arc.md: Switch to DFA-based scheduler description.
23037         * config/arc/arc.c: Switch to DFA-based scheduler description.
23038
23039 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
23040
23041         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
23042         pointer.
23043
23044 2004-07-09  Richard Henderson  <rth@redhat.com>
23045
23046         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
23047         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23048         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
23049         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23050
23051         * config/v850/v850-protos.h (v850_va_arg): Remove.
23052         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23053         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
23054         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
23055         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
23056         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
23057
23058 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
23059
23060         PR target/12133
23061         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
23062         and DImode to use +/-4k offset.
23063
23064 2004-07-09  Richard Henderson  <rth@redhat.com>
23065
23066         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
23067         Remove.
23068         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23069         (xstormy16_gimplify_va_arg_expr): Rewrite from
23070         xstormy16_expand_builtin_va_arg.
23071         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
23072
23073         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
23074         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
23075
23076         * config/sh/sh-protos.h (sh_va_arg): Remove.
23077         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23078         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
23079         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
23080
23081         * config/pa/pa-protos.h (hppa_va_arg): Remove.
23082         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23083         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
23084         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23085
23086         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
23087         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23088         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
23089         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
23090
23091 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
23092
23093         * config/sparc/sparc.md (return): Rewrite length formula.
23094         * config/sparc/sparc.c (output_return): Pass 1 as 5th
23095         argument to final_scan_insn when in a delay slot.
23096         (output_sibcall): Likewise.
23097
23098 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
23099
23100         * arm.c (arm_cpp_interwork): New variable.
23101         (arm_override_options): Set it if TARGET_INTERWORK was on the command
23102         line.
23103         * arm.h (arm_cpp_interwork): Declare it.
23104         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
23105         __THUMB_INTERWORK__ in the preprocessor.
23106
23107 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
23108
23109         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
23110
23111 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
23112
23113         PR target/16416
23114         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
23115         Override default settings to account for -m32 and -m64.
23116
23117 2004-07-08  Randolph Chung  <tausq@debian.org>
23118
23119         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
23120
23121 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
23122
23123         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
23124         before comparing it as such.
23125
23126 2004-07-08  Richard Henderson  <rth@redhat.com>
23127
23128         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
23129         temporary.  Use bit arithmetic to align.
23130
23131 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
23132
23133         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
23134         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
23135         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
23136         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
23137         add_labels_and_missing_jumps, find_jump_block,
23138         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
23139         Likewise.
23140         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
23141         link_btr_uses, move_btr_def): Likewise.
23142         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
23143         expand_builtin_expect_jump): Likewise.
23144         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
23145         * calls.c (expand_call, emit_library_call_value_1): Likewise.
23146         * cfganal.c (forwarder_block_p): Likewise.
23147         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
23148         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
23149         find_bb_boundaries): Likewise.
23150         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
23151         merge_blocks_move_predecessor_nojumps,
23152         merge_blocks_move_successor_nojumps, insns_match_p,
23153         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
23154         try_optimize_cfg): Likewise.
23155         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
23156         * cfglayout.c (skip_insns_after_block, label_for_bb,
23157         record_effective_endpoints, insn_locators_initialize,
23158         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
23159         * cfgmainloop.c (create_loop_notes): Likewise.
23160         * cfgrtl.c (delete_insn, delete_insn_chain,
23161         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
23162         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
23163         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
23164         redirect_branch_edge, force_nonfallthru_and_redirect,
23165         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
23166         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
23167         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
23168         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
23169         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
23170         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
23171         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
23172         * combine.c (combine_instructions, can_combine_p, try_combine,
23173         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
23174         distribute_notes, distribute_links, insn_cuid): Likewise.
23175         * cse.c (fold_rtx, cse_insn, cse_around_loop,
23176         invalidate_skipped_block, cse_set_around_loop,
23177         cse_end_of_basic_block, cse_main, cse_basic_block,
23178         cse_condition_code_reg): Likewise.
23179         * cselib.c (cselib_process_insn): Likewise.
23180         * ddg.c (create_ddg): Likewise.
23181         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
23182         Likewise.
23183         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
23184         gen_label_die, dwarf2out_var_location): Likewise.
23185         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
23186         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
23187         last_call_insn, active_insn_p, next_label, prev_label,
23188         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
23189         add_insn_before, remove_insn, add_function_usage_to,
23190         reorder_insns, find_line_note, remove_unnecessary_notes,
23191         emit_insn_after_1, classify_insn): Likewise.
23192         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
23193         connect_post_landing_pads, sjlj_mark_call_sites,
23194         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
23195         can_throw_internal, can_throw_external, set_nothrow_function_flags,
23196         convert_to_eh_region_ranges): Likewise.
23197         * explow.c (optimize_save_area_alloca): Likewise.
23198         * expr.c (expand_expr_real): Likewise.
23199         * final.c (insn_current_reference_address, compute_alignments,
23200         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
23201         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
23202         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
23203         propagate_block_delete_insn, propagate_one_insn,
23204         init_propagate_block_info, propagate_block, libcall_dead_p,
23205         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
23206         Likewise.
23207         * function.c (instantiate_virtual_regs, reorder_blocks_1,
23208         expand_function_start, expand_function_end, contains,
23209         thread_prologue_and_epilogue_insns,
23210         reposition_prologue_and_epilogue_notes): Likewise.
23211         * gcse.c (constprop_register, bypass_conditional_jumps,
23212         insert_insn_end_bb, gcse_after_reload): Likewise.
23213         * genemit.c (gen_expand, gen_split): Likewise.
23214         * genpeep.c (gen_peephole, main): Likewise.
23215         * global.c (build_insn_chain): Likewise.
23216         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
23217         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
23218         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
23219         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
23220         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
23221         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
23222         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
23223         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
23224         dead_or_predicable): Likewise.
23225         * integrate.c (try_constants): Likewise.
23226         * jump.c (rebuild_jump_labels, cleanup_barriers,
23227         purge_line_number_notes, init_label_info, mark_all_labels,
23228         squeeze_notes, get_label_before, get_label_after,
23229         reversed_comparison_code_parts, simplejump_p, pc_set,
23230         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
23231         delete_barrier, delete_prior_computation, delete_computation,
23232         delete_related_insns, delete_for_peephole, redirect_jump):
23233         Likewise.
23234         * lcm.c (optimize_mode_switching): Likewise.
23235         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
23236         Likewise.
23237         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
23238         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
23239         * loop-iv.c (simplify_using_assignment): Likewise.
23240         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
23241         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
23242         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
23243         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
23244         check_insn_for_givs, check_final_value, update_giv_derive,
23245         basic_induction_var, product_cheap_p, check_dbra_loop,
23246         loop_insn_first_p, last_use_this_basic_block,
23247         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
23248         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
23249         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
23250         sms_schedule_by_order): Likewise.
23251         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
23252         * postreload.c (reload_cse_simplify_operands, reload_combine,
23253         reload_cse_move2add): Likewise.
23254         * predict.c (can_predict_insn_p, estimate_probability,
23255         expected_value_to_br_prob, process_note_predictions): Likewise.
23256         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
23257         * profile.c (branch_prob): Likewise.
23258         * ra-build.c (live_out_1, livethrough_conflicts_bb,
23259         detect_webs_set_in_cond_jump): Likewise.
23260         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
23261         ra_print_rtl_with_bb): Likewise.
23262         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
23263         * recog.c (next_insn_tests_no_inequality, find_single_use,
23264         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
23265         * reg-stack.c (next_flags_user, record_label_references,
23266         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
23267         compensate_edge, convert_regs_1): Likewise.
23268         * regclass.c (scan_one_insn): Likewise.
23269         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
23270         regmove_optimize, fixup_match_1, single_set_for_csa,
23271         combine_stack_adjustments_for_block): Likewise.
23272         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
23273         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
23274         find_equiv_reg): Likewise.
23275         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
23276         reload_as_needed, emit_input_reload_insns, do_output_reload,
23277         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
23278         Likewise.
23279         * reorg.c (find_end_label, emit_delay_sequence,
23280         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
23281         get_jump_flags, rare_destination, mostly_true_jump,
23282         try_merge_delay_insns, redundant_insn, own_thread_p,
23283         fill_simple_delay_slots, fill_slots_from_thread,
23284         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
23285         dbr_schedule): Likewise.
23286         * resource.c (find_basic_block, next_insn_no_annul,
23287         find_dead_or_set_registers, mark_target_live_regs): Likewise.
23288         * rtl.h (RTX_PREV): Likewise.
23289         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
23290         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
23291         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
23292         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
23293         tablejump_p, computed_jump_p, insns_safe_to_move_p,
23294         find_first_parameter_load, can_hoist_insn_p): Likewise.
23295         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
23296         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
23297         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
23298         schedule_ebbs): Likewise.
23299         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
23300         is_conditionally_protected, can_schedule_ready_p,
23301         add_branch_dependences, debug_dependencies): Likewise.
23302         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
23303         Likewise.
23304         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
23305         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
23306         set_dominates_use, ujump_to_loop_cont): Likewise.
23307         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
23308         * varasm.c (output_constant_pool_1): Likewise.
23309
23310 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
23311
23312         * tree-scalar-evolution.c: New file.
23313         * tree-scalar-evolution.h: New file.
23314         * tree-ssa-loop-niter.c: New file.
23315         * Makefile.in (SCEV_H): New.
23316         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
23317         * cfgloop.h (struct loop): Add bounds field.
23318         * tree-flow.h (struct tree_niter_desc): New type.
23319         (number_of_iterations_cond, number_of_iterations_exit,
23320         loop_niter_by_eval, find_loop_niter_by_eval,
23321         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
23322         free_numbers_of_iterations_estimates): Declare.
23323         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
23324         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
23325         * doc/invoke.texi (max-iterations-to-track): Document.
23326
23327 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23328
23329         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
23330         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
23331         (MODE_AFTER): Add cast appropriately.
23332         * config/sh/sh.md (movdi splitter): Likewise.
23333         (casesi_worker_2): Add const qualifier appropriately.
23334         (eh_return): Remove unused variable.
23335         (insv): Initialize v;
23336
23337 2004-07-08  Richard Henderson  <rth@redhat.com>
23338
23339         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
23340         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23341         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
23342         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
23343         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
23344
23345         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
23346         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23347         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
23348         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
23349
23350         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
23351         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23352         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
23353         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
23354
23355         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
23356         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23357         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
23358         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
23359
23360         * config/i860/i860-protos.h (i860_va_arg): Remove.
23361         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23362         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
23363         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
23364
23365 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
23366
23367         * system.h: Prototype getpagesize if missing.
23368         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
23369         * configure: Regenerate.
23370         * config.in: Regenerate.
23371
23372 2004-07-08  Richard Henderson  <rth@redhat.com>
23373
23374         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
23375         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23376         (fr30_gimplify_va_arg_expr): New.
23377         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
23378         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
23379
23380 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
23381
23382         PR target/16414
23383         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
23384         of asm_noperands result.
23385
23386 2004-07-08  Richard Henderson  <rth@redhat.com>
23387
23388         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
23389         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23390         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
23391         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
23392
23393 2004-07-08  Richard Henderson  <rth@redhat.com>
23394
23395         * builtins.c (ind_gimplify_va_arg_expr): New.
23396         * tree.h (ind_gimplify_va_arg_expr): Declare.
23397         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
23398
23399 2004-07-08  Jan Beulich  <jbeulich@novell.com>
23400
23401         * expmed.c (extract_bit_field): Correct condition to use vec_extract
23402         patterns also on vector elements other than the first one.
23403         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
23404         break statements.
23405
23406 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
23407
23408         * config/rs6000/darwin-ldouble.c: Correct reference
23409         to the Linnainmaa paper.
23410
23411 2004-07-08  Richard Henderson  <rth@redhat.com>
23412
23413         * config/arc/arc-protos.h (arc_va_arg): Remove.
23414         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23415         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
23416         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
23417
23418         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
23419         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23420         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
23421         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
23422
23423 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23424
23425         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
23426
23427 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
23428
23429         * c-decl.c (static_ctors, static_dtors): Make static.
23430         (pop_file_scope): Call c_common_write_pch and
23431         cgraph_finalize_compilation_unit here.
23432         (build_cdtor): Moved here from c-objc-common.c; simplify.
23433         (c_write_global_declarations_1): Clarify comment.
23434         (c_write_global_declarations): Close the external scope before
23435         doing anything else.  Call build_cdtor, cgraph_optimize, and
23436         mudflap_finish_file here.
23437         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
23438         Clarify comment.
23439         * c-objc-common.c: No need to include cgraph.h.
23440         (build_cdtor): Moved to c-decl.c.
23441         (c_objc_common_finish_file): Delete.
23442         * c-tree.h: Update to match.
23443         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
23444         (generate_static_references): Set TREE_USED before calling finish_decl.
23445         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
23446         on the static_instances_decl.
23447
23448 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
23449
23450         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
23451         decls when there is only one input translation unit.
23452         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
23453         change of 2004-07-05; do not treat declarations with
23454         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
23455         * opts.c (cur_in_fname): Delete.
23456         * opts.h: Likewise.
23457         * tree.c: Revert changes of 2004-07-05; no special treatment
23458         for TRANSLATION_UNIT_DECLs.
23459         * Makefile.in (tree.o): Update dependencies.
23460
23461 2004-07-08  Roger Sayle  <roger@eyesopen.com>
23462
23463         * builtins.c (fold_builtin_strcpy): Merge functionality from
23464         simplify_builtin_strcpy.  Add additional len argument.  No longer
23465         static.  Remove function prototype.
23466         (fold_builtin_strncpy): Likewise integrate functionality from
23467         simplify_builtin_strncpy.  Add additional slen argument.  No
23468         longer static.  Remove function prototype.
23469         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
23470         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
23471         types of "ignore" and "unlocked" parameters to bool.
23472         (fold_builtin_1):  Add additional ignore argument.  Call renamed
23473         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
23474         builtins.  Update arguments to fold_builtin_strncpy and
23475         fold_builtin_strcpy.  Add function prototype.
23476         (fold_builtin): Add additional Boolean ignore argument to pass
23477         to fold_builtin_1.
23478         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
23479         and fold_builtin_strncpy instead of simplify_builtin_fputs,
23480         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
23481
23482         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
23483         simplify_builtin_strncpy): Delete function prototypes.
23484         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
23485         fold_builtin_strncpy): Add function prototypes here.
23486         (fold_builtin): Update function prototype with new "bool ignore".
23487
23488         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
23489         (ccp_fold_builtin):  Update call to fold_builtin.  Call
23490         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
23491         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
23492         simplify_builtin_strncpy respectively.
23493         * fold-const.c (fold): Update call to fold_builtin.
23494
23495 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
23496
23497         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
23498         to strcpy.
23499
23500         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
23501         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
23502         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
23503         * calls.c: Remove ifdefs of macros above.
23504         * functions.c: Likewise.
23505         * expr.c: Likewise.
23506
23507 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23508
23509         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
23510         (arch attribute): Delete.
23511         (current_function_calls_alloca attribute): Rename into calls_alloca.
23512         (calls_eh_return): New attribute.
23513         (leaf_function): Likewise.
23514         (length attribute): Fix formula for sibcalls.
23515         (return insn): Correctly compute the 'length' attribute.
23516         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
23517
23518 2004-07-08  Richard Henderson  <rth@redhat.com>
23519
23520         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
23521         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
23522         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
23523         * tree-eh.c (lower_eh_constructs_1): Likewise.
23524         * tree-sra.c (sra_walk_modify_expr): Likewise.
23525         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23526         (eliminate_unnecessary_stmts): Likewise.
23527         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
23528         * tree-tailcall.c (optimize_tail_call): Likewise.
23529         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
23530
23531 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
23532             Jakub Jelinek  <jakub@redhat.com>
23533
23534         * config/i386/i386.c (override_options): Enable
23535         SSE prefetches with -mtune, as long as we are
23536         compiling for i686 or higher.  All i686 processors
23537         accept SSE prefetches as NOPS, some i586's don't.
23538
23539 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23540
23541         PR target/10567
23542         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
23543
23544 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
23545
23546         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
23547         the handling of clobbering ASM_EXPRs.
23548
23549 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23550
23551         PR target/16430
23552         * config/sparc/sparc.c (function_value): In 64-bit mode,
23553         return the aggregates larger than 16 bytes like unions.
23554
23555 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23556
23557         PR target/16199
23558         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
23559         'temp' is zero, generate new pseudos as needed and emit the
23560         sequence of insns in single-assignment form.  Resync comments
23561         with code.
23562         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
23563         function before reload.
23564
23565 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
23566
23567         * vec.c (vec_assert_fail): Remove duplicate 'function'.
23568
23569         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
23570
23571         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
23572         Allocation is signed.
23573         (VEC_reserve): Return flag, allocation is signed.
23574
23575 2004-07-08  Richard Henderson  <rth@redhat.com>
23576
23577         * tree-ssa-ccp.c (fold_stmt): Get type directly from
23578         OBJ_TYPE_REF_OBJECT.
23579
23580 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
23581             Neil Booth  <neil@daikokuya.co.uk>
23582
23583         PR c/2511
23584         PR c/3325
23585         * c-decl.c (finish_struct): Ensure bit-fields are given the
23586         correct type.
23587         * c-common.c (c_common_signed_or_unsigned_type): For C, require
23588         the precision to match as well as the mode.
23589         * expr.c (reduce_to_bit_field_precision): New function.
23590         (expand_expr_real_1): Reduce expressions of bit-field type to
23591         proper precision.
23592         * langhooks.h (reduce_bit_field_operations): New hook.
23593         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
23594         Define.
23595         * c-lang.c, objc/objc-lang.c
23596         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
23597         * objc/objc-act.c (check_ivars): Convert types to bit-field types
23598         before checking.
23599         * tree.c (build_nonstandard_integer_type): New function.
23600         * tree.h (build_nonstandard_integer_type): New prototype.
23601         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
23602         conversions between integer and boolean types as useless.
23603
23604 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
23605
23606         * c-common.c (c_common_nodes_and_builtins): Do not
23607         create __builtin_ptrdiff_t and __builtin_size_t.
23608
23609 2004-07-08  Andrew Pinski  <apinski@apple.com>
23610
23611         * Makefile.in (libbackend.o): Add -combine to the gcc
23612         command line.
23613
23614 2004-07-08  Nick Clifton  <nickc@redhat.com>
23615
23616         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
23617         Set to -Os.
23618
23619 2004-07-08  Richard Henderson  <rth@redhat.com>
23620
23621         * except.c (expand_eh_region_start, expand_eh_region_end,
23622         expand_eh_handler, expand_eh_region_end_cleanup,
23623         expand_start_all_catch, expand_start_catch, expand_end_catch,
23624         expand_end_all_catch, expand_eh_region_end_allowed,
23625         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
23626         expand_eh_region_end_fixup): Remove.
23627         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
23628         cleanups, outer_cleanups, label_chain, exception_region.
23629         (struct goto_fixup): Remove stack_level, cleanup_list_list.
23630         (struct label_chain): Remove.
23631         (struct stmt_status): Remove x_stack_block_stack.
23632         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
23633         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
23634         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
23635         end_cleanup_deferral, last_cleanup_this_contour,
23636         containing_blocks_have_cleanups_or_stack_level,
23637         any_pending_cleanups): Remove.
23638         (expand_null_return_1): Take no arguments.
23639         (expand_label, expand_naked_return, expand_return,
23640         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
23641         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
23642         expand_end_case_type): Don't use any of them.
23643         * calls.c (expand_call): Likewise.
23644         * dojump.c (do_jump): Likewise.
23645         * function.c (expand_function_end): Likewise.
23646         * expr.c (store_expr, expand_expr_real_1): Likewise.
23647         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
23648         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
23649         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
23650         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
23651         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
23652         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
23653         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
23654         for WITH_CLEANUP_EXPR.
23655         (gimple_push_cleanup): Likewise.
23656         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
23657         * print-tree.c (print_node): Likewise.
23658         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
23659         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
23660         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
23661         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
23662         (GOTO_SUBROUTINE_EXPR): Remove.
23663         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
23664         (DECL_TOO_LATE): Remove.
23665         * except.h, tree.h: Update decls.
23666
23667 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
23668
23669         * explow.c (optimize_save_area_alloca): Do not accept parameters.
23670         * passes.c (rest_of_handle_final): Handle symout.
23671         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
23672         Push timevar here.
23673         (rest_of_handle_sched): Break out SMS.  Remove ifs for
23674         flag_schedule_insns and flag_modulo_sched.
23675         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
23676         collect at the end.
23677         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
23678         (rest_of_handle_partition_blocks, rest_of_handle_sms,
23679         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
23680         rest_of_handle_mode_switching, rest_of_handle_jump,
23681         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
23682         rest_of_handle_jump2, rest_of_handle_postreload,
23683         rest_of_handle_flow2, rest_of_clean_state,
23684         rest_of_handle_shorten_branches,
23685         rest_of_handle_prologue_epilogue,
23686         rest_of_handle_branch_target_load_optimize): New.
23687         (rest_of_compilation): Call the above.  Remove ggc_collect
23688         calls moved to rest_of_handle_*.
23689         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
23690
23691         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
23692         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
23693         * except.h (set_nothrow_function_flags): Update comment.
23694         * function.c (current_function_nothrow): Remove.
23695         * output.h (current_function_nothrow): Remove.
23696         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
23697         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
23698
23699 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23700
23701         PR bootstrap/16326
23702         * reorg.c: Revert 2004-06-30 change.
23703         (find_end_label): If HAVE_epilogue and !HAVE_return,
23704         return 0 instead of creating a label at the end of the insn chain.
23705         (optimize_skip): Account for the failure mode of find_end_label.
23706         (fill_simple_delay_slots): Likewise.
23707         (fill_slots_from_thread): Likewise.
23708         (relax_delay_slots): Likewise.
23709
23710 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
23711
23712         * tree-flow.h (addressable_vars): Declare.
23713         * tree-ssa-alias.c (addressable_vars): Define.
23714         (setup_pointers_and_addressables): Add addressable variables
23715         to addressable_vars.
23716         * tree-ssa-operands.c (get_stmt_operands): Move
23717         handling of ASM_EXPRs ...
23718         (get_asm_expr_operands): ... here.
23719         When the ASM_EXPR clobbers memory, also clobber addressable
23720         variables.
23721         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
23722         (delete_tree_ssa): Reset addressable_vars.
23723
23724 2004-07-07  Jan Beulich  <jbeulich@novell.com>
23725             Richard Henderson  <rth@redhat.com>
23726
23727         * varasm.c (assemble_variable): Use assemble_zeros for
23728         zero-initialized variables.
23729         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
23730         for SECCAT_BSS and SECCAT_TBSS.
23731
23732 2004-07-07  Jan Beulich  <jbeulich@novell.com>
23733
23734         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
23735
23736         * expmed.c (emit_store_flag): Also special-case double-word
23737         (in-)equality comparison against -1.
23738
23739         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
23740         passing arguments the containers for which are registers.
23741
23742         * calls.c (emit_library_call_value_1): Use mode of function parameter
23743         rather than that of argument since constants have none.
23744
23745 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
23746
23747         Introduce H8SX support.
23748         * expr.c (expand_strcpy): Renamed and moved to...
23749         * builtins.c (expand_movstr): ... here.  Tweak.
23750         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
23751         computed or has side effects.
23752         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
23753         unused, or if mempcpy fails.  Adjust the return value in the
23754         latter case.  Use movstr if everything else fails.
23755         * doc/md.texi (movstr): Document.
23756         (movmemM, clrmemM): Fix explanation of memory block operands.
23757         * config/h8300/h8300.md (stpcpy): Renamed to...
23758         (movstr): ... this.  Adjust.
23759         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
23760         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
23761         movmem* and clrstr* to clrmem*.
23762         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
23763         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
23764         GENERAL_REGS, always.
23765         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
23766         getting the stack pointer as addr.
23767         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
23768         from general_operand_dst.
23769         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
23770         variant of...
23771         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
23772         instead of requiring it to match only before reload.
23773         (stpcpy_internal_normal): New, normal-mode variant of...
23774         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
23775         `D' instead of requiring it to match only before reload.
23776         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
23777         mode argument.
23778         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
23779         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
23780         h8300_get_index.
23781         * config/h8300/h8300.md (attr type): Add call.
23782         (attr can_delay): If type is call, set it no.
23783         (call, call_value): Set type to call.
23784         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
23785         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
23786         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
23787         * tree.c (get_narrower): Don't narrow integral types into
23788         non-integral types.
23789         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
23790         frame_size *before* the first use.
23791         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
23792         on input.
23793         (peephole2): Don't widen instructions that push SP.  Move
23794         decrement of SP to the end of all stm-generating peepholes.
23795         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
23796         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
23797         and OR to set it to all ones.
23798         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
23799         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
23800         (call, call_value): Set can_delay to "no".
23801         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
23802         * config/h8300/h8300.md (extzv): Make subreg check more robust.
23803         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23804         * config/h8300/h8300.md (*brabit): Remove.
23805         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
23806         zero_extract.  Use bit_memory_operand as the predicate for
23807         operand 1 and 'WU' as the constraint.  Check the difference
23808         between the base length and the final one when deciding which
23809         type of branch to use.
23810         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23811         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
23812         Use convert_move to extend the result for TARGET_H8300SX.  Check
23813         for QImode memory references.  Optimize the case where the
23814         destination is a paradoxical subreg.
23815         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23816         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
23817         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
23818         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23819         * config/h8300/h8300.md: Include mova.md
23820         (length_table): Add mova and mova_zero.
23821         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
23822         after all constant addresses for '%R', '%X', '%T' and '%S'.
23823         (h8300_mova_length): New function.
23824         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
23825         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
23826         dependencies for s-config, etc.
23827         * config/h8300/gemova.sh: New file.
23828         * config/h8300/mova.md: Generated.
23829         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
23830         * config/h8300/h8300.c (h8300_bitfield_length): New.
23831         (nibble_operand): Adjust.
23832         (h8300_binary_length): Handle conditional binary op.
23833         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
23834         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
23835         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
23836         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
23837         constraints.  WU is introduced as a variant of U that requires a
23838         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
23839         * config/h8300/h8300.md (attr type): Added bitbranch.
23840         (attr length_table): Added bitfield and bitbranch.
23841         (attr length): Compute bitbranch length.
23842         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
23843         least-significant bit of a byte.
23844         (brabit, brabc, brabs): New.
23845         (insv, extzv): Emit bfst and bfld on H8300SX.
23846         (bfld, bfst, seq, sne): New.
23847         (bstzhireg, cmpstz, bstz, bistz): New.
23848         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
23849         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
23850         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
23851         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
23852         (h8sx_unary_memory_operator): New function.
23853         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
23854         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
23855         * config/h8300/h8300.md: Add peepholes to combine reloads and
23856         arithmetic insns.
23857         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
23858         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
23859         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
23860         (and?i, ior?i, xor?i): Likewise.
23861         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
23862         * config/h8300/h8300.c: Move enums and prototypes to head of file.
23863         Various whitespace fixes.
23864         (h8300_constant_length): New function, split out from...
23865         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
23866         (h8300_classify_operand): Use IN_RANGE.
23867         (h8300_classify_operand): Use h8300_constant_length.
23868         (h8300_short_move_mem_p): Tighten size check.
23869         (h8sx_mergeable_memrefs_p): Tighten equality check.
23870         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
23871         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
23872         for -msx.
23873         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
23874         * config/h8300/crtn.asm: Likewise.
23875         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
23876         if __H8300SX__ is defined.
23877         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
23878         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
23879         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
23880         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
23881         addresses as mode-dependent.
23882         * config/h8300/h8300.c (print_operand_address): Update call to
23883         h8300_get_index.
23884         (h8300_get_index): Take a mode argument.  Rework to fix an
23885         earlier misunderstanding.
23886         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
23887         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
23888         into a register if TARGET_H8300SX.
23889         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
23890         TARGET_H8300SX.  Also disable related define_splits.
23891         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
23892         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
23893         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
23894         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
23895         * config/h8300/h8300.h (OK_FOR_Z): New macro.
23896         (EXTRA_CONSTRAINT_STR): Check it.
23897         * config/h8300/h8300.c (h8300_classify_operand): Accept null
23898         class arguments.
23899         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
23900         * config/h8300/h8300.md (length_table): Add mov_imm4.
23901         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
23902         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
23903         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
23904         be a label.
23905         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
23906         * config/h8300/h8300.c (h8300_reorg): New function.
23907         (TARGET_MACHINE_DEPENDENT_REORG): Define.
23908         * config/h8300/h8300.md (length): Subtract the length of the
23909         delay slot from (pc) when checking the range of forward branches.
23910         (delay_slot, can_delay): New attributes.
23911         (define_delay): Add bra/s handling.
23912         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
23913         (jump): Add delayed-branch handling.
23914         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
23915         * expr.c (expand_strcpy): New function.
23916         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
23917         (expand_builtin_stpcpy): Likewise.
23918         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
23919         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
23920         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
23921         handling to improve register allocation for -fno-omit-frame-pointer.
23922         (h8sx_split_movmd): Delete, moving er6 handling into...
23923         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
23924         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
23925         (movmd): Add calls to copy_rtx.
23926         (movmd_internal): In the second alternative, allow the initial and
23927         final destination registers to be different .  Update the splitter
23928         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
23929         instead of h8sx_split_movmd.
23930         (stpcpy, movsd): New expanders.
23931         (movsd_internal): New define_insn.
23932         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
23933         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
23934         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
23935         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
23936         and DESTINATION_REGS.
23937         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
23938         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
23939         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
23940         (h8300_move_ratio): Declare.
23941         (MOVE_RATIO): Use it.
23942         * config/h8300/h8300.c (h8300_move_ratio): New variable.
23943         (h8300_init_once): Initialize it.
23944         (h8300_reg_class_from_letter): New function.
23945         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
23946         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
23947         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
23948         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
23949         (movstrsi, movmd): New expanders.
23950         (movmd_internal): New insn.
23951         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
23952         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
23953         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
23954         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
23955         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
23956         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
23957         * config/h8300/h8300.c (nibble_operand): Fix warning.
23958         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
23959         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
23960         (movsf_h8300h): Disable for TARGET_H8300SX.
23961         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
23962         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
23963         h8300_stm_parallel and h8300_return_parallel.
23964         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
23965         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
23966         h8300_stm_parallel, h8300_return_parallel): New functions.
23967         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
23968         if TARGET_H8300SX.  Use h8300_push_pop.
23969         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
23970         and final pop when generating h8sx code.  Always emit some form
23971         of return insn.
23972         * config/h8300/h8300.md: Don't enforce register alignment in
23973         stm peepholes if TARGET_H8300SX.
23974         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
23975         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
23976         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
23977         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
23978         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
23979         (MULTILIB_DIRNAMES): Add a directory for it.
23980         (MULTILIB_MATCHES): Delete.
23981         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
23982         * final.c (walk_alter_subreg): Handle addresses with subregs
23983         inside a ZERO_EXTEND or AND.
23984         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
23985         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
23986         if TARGET_H8300SX.
23987         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
23988         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
23989         @(dd,Rn.w) and @(dd,ERn.L).
23990         (h8300_displacement_size): Take the whole address as argument.
23991         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
23992         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
23993         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
23994         (h8sx_mergeable_memrefs_p): Declare.
23995         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
23996         (HAVE_PRE_INCREMENT): Likewise.
23997         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
23998         addresses for TARGET_H8300SX,
23999         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
24000         and POST_DEC.
24001         (movb_length_table, movl_length_table): New tables.
24002         (movw_length_table): Define to movb_length_table.
24003         (h8300_displacement_size): New, split out from...
24004         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
24005         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
24006         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
24007         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
24008         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
24009         (compute_plussi_length, compute_plussi_cc): Update accordingly.
24010         (h8sx_unary_shift_operator): Get the mode from the operator.
24011         (binary_shift_operator): Likewise.
24012         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
24013         a memory reference, check whether the reference is offsettable.
24014         (length_table): Add movb, movw and movl.
24015         (movqi): Add new h8sx pattern.  Don't force one operand to be a
24016         register when generating h8sx code.
24017         (movhi, movsi, movsf): Likewise.
24018         (movstrictqi): Use the length_table attribute.
24019         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
24020         (addqi3): Split into a define_expand and define_insn.  Don't accept
24021         memory operands in the expander.  Use h8300_operands_match_p to
24022         check for matching operands in the define_insn.
24023         (subqi3, negqi2, one_cmplqi2): Likewise.
24024         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
24025         in any patterns that are unused in h8sx code.  In the h8sx patterns,
24026         use h8300_operands_match_p to check whether operands match.
24027         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
24028         one_cmpl[hs]i3): Likewise.
24029         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
24030         in the expander.
24031         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
24032         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
24033         (h8300_insn_length_from_table): Add a second parameter.
24034         (output_h8sx_shift): Declare.
24035         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
24036         (EXTRA_CONSTRAINT): Replace with...
24037         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
24038         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
24039         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
24040         and h8sx_binary_shift_operator.
24041         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
24042         for TARGET_H8300SX.
24043         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
24044         (bit_memory_operand, fix_bit_operand): Likewise.
24045         (h8300_length_table_for_insn): Remove.
24046         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
24047         instructions.
24048         (h8300_short_immediate_length, h8300_binary_length): New functions.
24049         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
24050         (output_plussi): Use sub to add negative constants.
24051         (compute_plussi_length): Adjust accordingly.
24052         (h8sx_single_shift_type): New enum.
24053         (h8sx_single_shift, h8sx_unary_shift_operator,
24054         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
24055         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
24056         single h8sx instruction.  Return false in this case.
24057         * config/h8300/h8300.md (length_table): Add short_immediate.
24058         (length): Pass the operand array to h8300_insn_length_from_table.
24059         (adjust_length): Assume "no" for insns with a length_table attribute.
24060         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
24061         (*addhi3_h8300hs): Don't use for h8sx.
24062         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
24063         and sub.w #xx:3.
24064         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
24065         1's predicate to nonimmediate_operand.  Only skip default expansion
24066         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
24067         for single h8sx shift instructions.
24068         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
24069         * config/h8300/h8300.c (nibble_operand): Split out of...
24070         (reg_or_nibble_operand): ... this.
24071         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
24072         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
24073         umulhisi3): Introduce expand, and introduce separate insns for
24074         sign- or zero-extended REG and already-extended CONST_INT.
24075         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
24076         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
24077         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
24078         (subhi3): Likewise.  Don't accept immediates for operand 1.
24079         Remove the early clobber from second alternative of the h8300s pattern.
24080         (subsi3): Generalize for h8sx.  Force operand 2 into a register
24081         on plain h8300 targets.
24082         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
24083         (subsi3_h8300h): Generalize for h8sx.
24084         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
24085         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
24086         * config/h8300/h8300.c (reg_or_nibble_operand): New.
24087         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24088         (TARGET_H8300SXMUL): New.
24089         (CONST_OK_FOR_P): New.
24090         (CONST_OK_FOR_LETTER_P): Adjust.
24091         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
24092         umulhisi3): Accept 4-bit immediate on H8SX.
24093         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
24094         (udivsi3, divhi3, udivsi3, divsi3): New.
24095         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
24096         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
24097         * config/h8300/h8300.h (OK_FOR_Q): New macro.
24098         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
24099         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
24100         Add ADDRESSOF to the bit_operand entry.
24101         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
24102         (h8300_src_operand): Likewise.
24103         (bit_operand): Check nonimmediate_operand rather than general_operand.
24104         Accept any nonimmediate_operand in h8sx code.
24105         (h8300_and_costs): Initialize operands[1].
24106         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
24107         (h8300_operand_class): New enum.
24108         (h8300_length_table): New typedef.
24109         (addb_length_table, addw_length_table, addl_length_table,
24110         logicl_length_table): New tables.
24111         (logicb_length_table, logicw_length_table): New macros.
24112         (h8300_classify_operand, h8300_length_from_table,
24113         h8300_length_table_for_insn, h8300_unary_length,
24114         h8300_insn_length_from_table): New functions.
24115         (output_plussi): Only use adds and subs for register destinations.
24116         Disable redundant clause.
24117         (compute_plussi_cc): Likewise.
24118         (compute_plussi_length): Likewise.  Use h8300_length_from_table
24119         to work out the length of an insn.
24120         (output_logical_op): Only use narrower immediate instructions
24121         if the destination is a register.
24122         (compute_logical_op_cc): Likewise.
24123         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
24124         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
24125         * config/h8300/h8300.md (length_table): New attribute.
24126         (length): When an instruction has a length_table attribute, use
24127         h8300_insn_length_from_table to calculate its default length.
24128         (cmpqi): Use h8300_dst_operand for the first operand and
24129         h8300_src_operand for the second.
24130         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
24131         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
24132         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
24133         iorsi3, xorhi3, xorsi3): Likewise.
24134         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
24135         so that it allows any combination of operands for TARGET_H8300SX.
24136         (iorqi3, xorqi3): Likewise.
24137         (cmpqi): Use the length_table attribute.
24138         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
24139         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24140         (cmpqi): Add 'Q' constraint.
24141         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
24142         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24143         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
24144         * config/h8300/h8300.h (MASK_H8300SX): New macro.
24145         (TARGET_H8300S): True for both -ms and -msx.
24146         (TARGET_H8300SX): New macro.
24147         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
24148         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
24149         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
24150         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
24151         [Temporary change.]
24152         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
24153         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
24154         16-bit pointers and 32-bit ints.
24155         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
24156         CONST_DOUBLE with mode no wider than SImode.
24157         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
24158         output operand.
24159         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
24160         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
24161         or SUBREG thereof.
24162         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24163         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
24164         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
24165
24166 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24167
24168         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
24169
24170 2004-07-07  Per Bothner  <per@bothner.com>
24171
24172         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
24173
24174 2004-07-07  Mike Stump  <mrs@apple.com>
24175
24176         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
24177         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
24178         (machopic_finish): Likewise.
24179
24180 2004-07-07  Richard Henderson  <rth@redhat.com>
24181
24182         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
24183         through any value-preserving cast.
24184
24185 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
24186
24187         * function.c (assign_parm_find_data_types): Call
24188         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
24189
24190 2004-07-07  Steven Bosscher  <stevenb@suse.de>
24191
24192         * tree-cfg.c (group_case_labels): Remove case labels that have
24193         the same target as the default case.
24194
24195 2004-07-07  Steven Bosscher  <stevenb@suse.de>
24196
24197         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
24198         regardless of DECL_LANG_SPECIFIC being present or not.
24199         * tree.h (DECL_NUM_STMTS): Purge.
24200
24201 2004-07-07  Andrew Pinski  <apinski@apple.com>
24202
24203         * configure: Regenerate with the right autoconf.
24204
24205 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
24206
24207         * ifcvt.c (total_bb_rtx_cost): New function.
24208         (find_if_case_1): Compare rtx_cost of basic block to cost of
24209         BRANCH_COST insns.
24210         (find_if_case_2): Same.
24211
24212 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
24213
24214         PR target/10567
24215         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
24216         (output_return): Likewise.
24217         (output_sibcall): Abort if !flag_delayed_branch.
24218         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
24219         (emit_and_preserve): New function.
24220         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
24221         indirect jump to the thunked-to function if !flag_delayed_branch.
24222         * config/sparc/sparc.md (delayed_branch): New attribute.
24223         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
24224         attribute to compute the length of the insn.
24225         (goto_handler_and_restore): Likewise.
24226
24227 2004-07-07  Andrew Pinski  <apinski@apple.com>
24228
24229         PR tree-optimization/15777
24230         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
24231
24232         * expr.c (expand_expr_real_1): Fix formating.
24233         BUFFER_REF and IN_EXPR are dead.
24234         * fold-const.c (non_lvalue): BUFFER_REF is dead.
24235         * tree-inline.c (estimate_num_insns_1): Likewise.
24236         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
24237         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
24238         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
24239
24240 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
24241
24242         * collect2.c (dump_file): Don't call cplus_demangle if
24243         HAVE_LD_DEMANGLE is defined.
24244         (main): Pass "--demangle" to ld if no_demangle is not 0 and
24245         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
24246         if HAVE_LD_DEMANGLE is defined.
24247
24248         * configure.ac (--with-demangler-in-ld): Added
24249         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
24250         --with-demangler-in-ld is used.
24251         * config.in: Regenerated.
24252         * configure: Likewise.
24253
24254 2004-07-07  Roger Sayle  <roger@eyesopen.com>
24255
24256         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
24257         for simple floating point operations "fp", double precision
24258         multiplication "dmul", and single and double precision division
24259         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
24260         (ppc630_cost): New table split from ppc620_cost, to distinguish
24261         differences in floating point latencies.
24262         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
24263         (rs6000_rtx_costs): Add support for single and double precision
24264         floating point addition, subtraction, multiplication, division,
24265         fused-multiply-add, fused-multiply-sub, negation, absolute value
24266         and negative absolute value.  Tweak MEM case to use prefered idiom.
24267
24268 2004-07-07  Richard Henderson  <rth@redhat.com>
24269
24270         * tree-flow-inline.h (may_propagate_copy): Move...
24271         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
24272         attempt to copy between types requiring conversion.
24273         * tree-flow.h (may_propagate_copy): Update decl.
24274         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
24275
24276 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
24277
24278         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
24279         from -mtune= option.
24280
24281 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
24282
24283         * builtins.c: Rename movstr*, except for movstrict*, to
24284         movmem* and clrstr* to clrmem*.
24285         * expr.c: Likewise.
24286         * expr.h: Likewise.
24287         * genopinit.c: Likewise.
24288         * integrate.c: Likewise.
24289         * local-alloc.c: Likewise.
24290         * optabs.c: Likewise.
24291         * optabs.h: Likewise.
24292         * config/alpha/alpha.h: Likewise.
24293         * config/alpha/alpha.md: Likewise.
24294         * config/arm/arm-protos.h: Likewise.
24295         * config/arm/arm.c: Likewise.
24296         * config/arm/arm.md: Likewise.
24297         * config/avr/avr.md: Likewise.
24298         * config/c4x/c4x.c: Likewise.
24299         * config/c4x/c4x.md: Likewise.
24300         * config/frv/frv.md: Likewise.
24301         * config/i386/i386-protos.h: Likewise.
24302         * config/i386/i386.c: Likewise.
24303         * config/i386/i386.h: Likewise.
24304         * config/i386/i386.md: Likewise.
24305         * config/i860/i860.c: Likewise.
24306         * config/i860/i860.md: Likewise.
24307         * config/ip2k/ip2k.md: Likewise.
24308         * config/ip2k/libgcc.S: Likewise.
24309         * config/ip2k/t-ip2k: Likewise.
24310         * config/m32r/m32r.c: Likewise.
24311         * config/m32r/m32r.md: Likewise.
24312         * config/mcore/mcore.md: Likewise.
24313         * config/mips/mips.c: Likewise.
24314         * config/mips/mips.md: Likewise.
24315         * config/ns32k/ns32k.c: Likewise.
24316         * config/ns32k/ns32k.h: Likewise.
24317         * config/ns32k/ns32k.md: Likewise.
24318         * config/pa/pa.c: Likewise.
24319         * config/pa/pa.md: Likewise.
24320         * config/pdp11/pdp11.h: Likewise.
24321         * config/pdp11/pdp11.md: Likewise.
24322         * config/rs6000/rs6000.c: Likewise.
24323         * config/rs6000/rs6000.md: Likewise.
24324         * config/s390/s390-protos.h: Likewise.
24325         * config/s390/s390.c: Likewise.
24326         * config/s390/s390.md: Likewise.
24327         * config/sh/lib1funcs.asm: Likewise.
24328         * config/sh/sh.c: Likewise.
24329         * config/sh/sh.md: Likewise.
24330         * config/sh/t-sh: Likewise.
24331         * config/sparc/sparc.h: Likewise.
24332         * config/vax/vax.md: Likewise.
24333         * config/xtensa/xtensa.c: Likewise.
24334         * config/xtensa/xtensa.md: Likewise.
24335         * doc/invoke.texi: Likewise.
24336         * doc/md.texi: Likewise.
24337         * doc/rtl.texi: Likewise.
24338
24339 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
24340
24341         PR target/16407
24342         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
24343         * config/mips/mips.c (mips_declare_common_object): New function,
24344         mostly split out from...
24345         (mips_output_aligned_decl_common): ...here.
24346         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
24347         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
24348         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
24349         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
24350
24351 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24352
24353         PR c/16392
24354         * function.c (assign_parms): Fix typo from previous change.
24355
24356 2004-07-07  Jason Merrill  <jason@redhat.com>
24357
24358         PR c++/15815
24359         * doc/extend.texi (C++ Interface): Correct information and
24360         discourage use.
24361
24362 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
24363
24364         PR target/16130
24365         PR target/16142
24366         PR target/16143
24367         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
24368         insn.
24369
24370 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
24371
24372         PR target/1679.
24373         * config/m32r/m32r.c (m32r_function_symbol): New function:
24374         Generate a symbol name RTX with the correct m32r specific flags
24375         set.
24376         (block_move_call): Use new function to generate correct symbol.
24377         * config/m32r/m32r-protos.h: Add prototype for new funcion.
24378         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
24379         function.
24380
24381 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
24382
24383         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
24384         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
24385         TYPE_BINFO_BASETYPE): Remove.
24386         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
24387         to ...
24388         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
24389         here.
24390         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
24391         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
24392         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
24393         (struct tree_binfo): Rename base_types to base_binfos.
24394         * alias.c (record_component_aliases): Adjust BINFO macros.
24395         * dbxout.c (dbxout_type): Likewise.
24396         * dwarf2out.c (gen_member_die): Likewise.
24397         * sdbout.c (sdbout_one_type): Likewise.
24398         * tree-dump.c (deque_and_dump): Likewise.
24399         * config/i386/i386.c (classify_argument,
24400         contains_128bit_aligned_vector_p): Likewise.
24401
24402 2004-07-07  Nick Clifton  <nickc@redhat.com>
24403
24404         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
24405         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
24406
24407 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
24408
24409         * vec.h: Fix the example use.
24410
24411 2004-07-06  Richard Henderson  <rth@redhat.com>
24412
24413         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
24414         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
24415         * tree-inline.c (copy_body_r, setup_one_parameter,
24416         initialize_inlined_parameters, expand_call_inline,
24417         declare_inline_vars): Don't check it.
24418         (expand_calls_inline): Remove old version, rename new version
24419         from gimple_expand_calls_inline.
24420         * tree-optimize.c (execute_gimple): Remove.
24421         (pass_gimple): Don't run anything.
24422
24423 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
24424
24425         * doc/sourcebuild.texi: Use semicolons instead of commas in
24426         section title.
24427
24428 2004-07-06  Richard Henderson  <rth@redhat.com>
24429
24430         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
24431         (sra_walk_modify_expr, scan_init): Likewise.
24432         (generate_element_zero): Check visited before scanning children.
24433         (generate_element_init): Set visited on error.
24434         (scalarize_init): Handle generate_element_init failure similar
24435         to use_block_copy.
24436
24437 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
24438
24439         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
24440         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
24441
24442 2004-07-06  Richard Henderson  <rth@redhat.com>
24443
24444         * config/i386/i386.c (legitimize_pic_address): Make static.
24445         (legitimize_address): Handle CONST with TLS operand.
24446         (ix86_expand_move): Don't call legitimize_pic_address directly.
24447         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
24448
24449 2004-07-06  Roger Sayle  <roger@eyesopen.com>
24450
24451         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
24452         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
24453         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
24454         is currently executed unconditionally, i.e. not in "else_bb".
24455
24456 2004-07-06  Steven Bosscher  <stevenb@suse.de>
24457
24458         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
24459         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24460         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
24461         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24462         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
24463         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24464         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
24465         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24466         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
24467         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24468         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
24469         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24470         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
24471         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24472         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
24473         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24474
24475 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
24476
24477         * dojump.c (do_jump): REFERENCE_EXPR is dead.
24478         * expr.c (expand_expr_real_1): Ditto.
24479         * tree-inline.c (estimate_num_insns_1): Ditto.
24480         * tree-pretty-print.c (dump_generic_node): Ditto.
24481         (op_symbol): Ditto.
24482         * tree.def: Ditto.
24483
24484 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
24485
24486         * tree-ssa-pre.c (reference_node_pool): New pool.
24487         (find_or_generate_expression): Class 'r' is okay too.
24488         (create_value_expr_from): Ditto.
24489         (add_to_sets): LHS should not include vuses.
24490         (eliminate): Ditto.
24491         (compute_avail): Reverse ordering of tests.
24492         Valuize INDIRECT_REF as well.
24493
24494 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
24495
24496         PR rtl-optimization/16380
24497         * loop.c (check_dbra_loop): Sink comparison instructions if they
24498         do something other than set cc0.
24499
24500 2004-07-06  James E Wilson  <wilson@specifixinc.com>
24501
24502         * doc/interface.texi (longjmp and automatic variables): Delete
24503         paragraph recommending taking the address of a variable.
24504
24505 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
24506
24507         * vec.h (VEC_embedded_alloc): Remove.
24508         (VEC_embedded_size, VEC_embedded_init): New.
24509         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
24510         MEM_STAT_INFO.
24511         (VEC_truncate): New.
24512         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
24513         (vec_embedded_alloc): Remove.
24514         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
24515         (vec_embedded_alloc): Remove.
24516
24517 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
24518
24519         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
24520         (gt-langhooks.h): Remove.
24521
24522 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
24523
24524         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
24525
24526 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
24527
24528         * config/sparc/sparc.c (get_pc_symbol): Rename into
24529         add_pc_to_pic_symbol.
24530         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
24531         (load_pic_register): Account for previous changes.
24532         Use reg_names.  Don't create the label twice.
24533         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
24534         UNSPEC_LOAD_PCREL_SYM.
24535         (get_pc): Rename into load_pcrel_sym.  Add predicate to
24536         operands.  Remove condition.
24537
24538 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
24539
24540         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
24541         RECORD, UNION & QUAL_UNION is actually a binfo.
24542
24543         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
24544         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
24545         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
24546         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
24547         * dwarf2out.c (add_data_member_location_attribute): Likewise.
24548         (gen_inheritance_die): Likewise.
24549         * tree-dump.c (deque_and_dump): Likewise.
24550         * doc/c-tree.texi (Binfos): Add under reconstruction note.
24551
24552 2004-07-06  Steven Bosscher  <stevenb@suse.de>
24553
24554         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
24555         Define.
24556         * config/mcore/mcore.md: Model memory latency with a simple DFA
24557         pipeline description instead of a define_function_unit.
24558
24559 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24560
24561         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
24562         * langhooks.h (var_mod_type_p): Likewise.
24563         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
24564         * expr.c (count_type_elements): Properly handle return from
24565         array_type_nelts and properly test for overflow.
24566         * gimplify.c (gimplify_init_constructor): Properly handle return
24567         from array_type_nelts.
24568         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
24569         * integrate.c (copy_decl_for_inlining): Correct comments.
24570         * tree-inline.c (remap_decl): Update comments, remove dead code,
24571         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
24572         (remap_type): Only remap if variably modified by vars in function
24573         being inlined.
24574         (copy_body_r): Use compatible_type langhooks to see when can fold.
24575         (setup_one_parameter): Don't remap type.
24576         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
24577         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
24578         compute TREE_INVARIANT for decl case.
24579         (find_var_from_fn): New function.
24580         (variably_modified_type_p): Add arg and call new function.
24581         * tree.h (variably_modified_type_p): Add extra arg.
24582
24583 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
24584
24585         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
24586         (goto_handler_and_restore_v9): Delete disabled insn.
24587         (goto_handler_and_restore_v9_sp64): Likewise.
24588
24589 2004-07-05  Roger Sayle  <roger@eyesopen.com>
24590
24591         * calls.c (load_register_parameters): Call expand_shift instead
24592         of expand_binop with ashl_optab (or other shift optab) directly.
24593         * expr.c (emit_group_load, emit_group_store): Likewise.
24594         * function.c (assign_parm_setup_block): Likewise.
24595         * stmt.c (shift_return_value): Likewise.
24596
24597 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
24598
24599         * expr.c (expand_assignment): Disable the bitfield += optimizations.
24600
24601 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
24602
24603         * doc/sourcebuild.texi: Revert previous patch.
24604
24605 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
24606
24607         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
24608         TARGET_MEM_FUNCTIONS.
24609         * system.h: Poison TARGET_MEM_FUNCTIONS.
24610         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
24611         bcmp_libfunc, bzero_libfunc): Remove.
24612         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
24613         bzero_libfunc.
24614         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
24615         * doc/standards.texi: Don't mention calling BSD string functions.
24616         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
24617         * config/vax/t-memfuncs: New.
24618         * config/memcmp.c, config/memcpy.c, config/memmove.c,
24619         config/memset.c: New.
24620         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
24621         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
24622         vax/t-memfuncs.
24623         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
24624         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
24625         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
24626         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
24627         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
24628         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
24629         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
24630         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
24631         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
24632         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
24633
24634 2004-07-05  Richard Henderson  <rth@redhat.com>
24635
24636         * function.c (assign_parm_setup_reg): Properly rename variables in
24637         FUNCTION_ARG_CALLEE_COPIES section.
24638
24639 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
24640
24641         * tree-mudflap.c: Include cgraph.h.
24642         (mf_init_extern_trees): Rename to mudflap_init.  Export.
24643         Rewrite to create synthetic declarations instead of looking
24644         up declarations from mf-runtime.h.
24645         (mf_make_builtin, mf_make_cache_struct_type): New functions.
24646         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
24647         Correct commentary.
24648         (execute_mudflap_function_decls, mudflap_register_call):
24649         Don't call mf_init_extern_trees.
24650         (mudflap_finish_file): Use cgraph_build_static_cdtor.
24651
24652         * tree-mudflap.h: Update prototypes.
24653         * c-mudflap.c: Delete file.
24654         * c-common.c: Include tree-mudflap.h.
24655         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
24656         * Makefile.in: Remove all references to c-mudflap.o.
24657         Update dependencies.
24658
24659 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24660
24661         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
24662         displacements with the spatial-locality cache-control completer.
24663
24664 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
24665
24666         * langhooks.c: Don't include gt-langhooks.h.
24667         (var_labelno): Delete.
24668         (lhd_set_decl_assembler_name): Do not append a distinguishing
24669         number to file-scope internal-linkage declarations for the first
24670         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
24671         the declaration itself (if at block scope), or its containing
24672         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
24673         number.
24674
24675         * opts.c (cur_in_fname): New global.
24676         * opts.h: Declare it.
24677         * tree.c: Include opts.h.
24678         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
24679         DECL_UID equal to cur_in_fname.
24680         (copy_node_stat): Do not change DECL_UID when copying a
24681         TRANSLATION_UNIT_DECL.
24682         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
24683         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
24684
24685         * c-decl.c (c_static_assembler_name): Delete.
24686         * c-tree.h (c_static_assembler_name): Delete prototype.
24687         * c-lang.c, objc/objc-lang.c: Don't override
24688         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
24689
24690         * Makefile.in (tree.o): Update dependencies.
24691         (GTFILES): Remove langhooks.c.
24692
24693 2004-07-05  Roger Sayle  <roger@eyesopen.com>
24694
24695         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
24696         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
24697         Normalize "X % C" as "X % -C" for signed modulus and negative C.
24698         Optimize "X % -Y" as "X % Y" for signed modulus.
24699         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
24700         into "((unsigned) X % Y) == 0".
24701
24702 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
24703
24704         * sourcebuild.texi (Config Fragments): Use @comma{} in
24705         cross-reference to section title.
24706
24707 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24708
24709         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
24710         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
24711         (gimplify_target_expr, gimplify_expr): Likewise.
24712         (copy_if_shared_r): No longer need special case for BIND_EXPR.
24713         (unshare_body, unvisit_body): Only look at nested if BODY_P is
24714         whole function.
24715         (gimplify_compound_lval): See if we can strip any useless conversion.
24716         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
24717         from RHS, not LHS.
24718         (gimplify_modify_expr_to_memset): Likewise.
24719         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
24720         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
24721         (declare_inline_vars): Likewise.
24722         (walk_type_fields): New function.
24723         (walk_tree): Use it.
24724         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
24725
24726         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
24727         (sra_walk_modify_expr): Allow init function to fail.
24728         (scan_init): Now returns bool.
24729         (generate_element_init): If can't understand INIT, return false.
24730         (scalarize_init): Return false if generate_element_init does.
24731
24732         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
24733         print bounds.
24734
24735         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
24736         bounds if bounds aren't constant.
24737
24738         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
24739
24740         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
24741         to type hooks; remove bogus PARAMS.
24742
24743 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
24744
24745         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
24746         * dwarf2out.c (add_data_member_location_attribute): Check for
24747         TREE_BINFO.
24748         * tree.c (tree_node_kinds): Add "binfos".
24749         (binfo_lang_slots): New.
24750         (make_node_stat): Add TREE_BINFO.
24751         (make_tree_binfo_stat): New.
24752         (tree_node_structure): Add TREE_BINFO.
24753         * tree.def (TREE_BINFO): New.
24754         * tree.h (REC_OR_UNION_CHECK): Rename to ...
24755         (RECORD_OR_UNION_CHECK): ... here.
24756         (NOT_RECORD_OR_UNION_CHECK): New.
24757         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
24758         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
24759         RECORD_OR_UNION_CHECK.
24760         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
24761         (TYPE_LANG_SLOT_1): New.
24762         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
24763         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
24764         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
24765         (BINFO_ELTS): Remove.
24766         (BINFO_LANG_SLOT): New.
24767         (struct tree_binfo): New.
24768         (binfo_lang_slots): Declare.
24769         (enum tree_node_structure_enum): Add TS_BINFO.
24770         (union tree_node): Add binfo.
24771         (make_tree_binfo_stat): Declare.
24772         (make_tree_binfo): New.
24773         (enum tree_node_kind): Add binfo_kind.
24774
24775         * objc/objc-act.c (start_class, objc_declare_protocols,
24776         start_protocols): Use TYPE_LANG_SLOT_1.
24777         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
24778         to ...
24779         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
24780         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
24781         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
24782         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
24783
24784 2004-07-05  Steven Bosscher  <stevenb@suse.de>
24785
24786         * rtl.h (struct rtx_def): Remove the integrated flag.
24787         Use the return_val flag for MEM_SCALAR_P.
24788         Reshuffle and update flags in CLEAR_RTX_FLAGS.
24789
24790 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
24791
24792         PR target/16357
24793         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
24794         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
24795         move_by_pieces.
24796
24797 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
24798
24799         * var-tracking.c: Fix some comments.
24800         (frame_stack_adjust): New.
24801         (vt_stack_adjustments): Init stack_adjust of entry block to
24802         minus stack adjustment of function prologue.
24803         (adjust_stack_reference): Do not adjust if adjustment == 0.
24804         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
24805         (emit_notes_in_bb): Likewise.
24806         (vt_add_function_parameters): Do not adjust locations of
24807         function arguments.
24808         (vt_initialize): Compute the stack adjustment of function
24809         prologue and offset the initial "location" of frame_base_decl
24810         from the stack pointer after prologue.
24811
24812 2004-07-04  Richard Henderson  <rth@redhat.com>
24813
24814         * function.c (struct assign_parm_data_all): New.
24815         (struct assign_parm_data_one): New.
24816         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
24817         assign_parm_find_data_types, assign_parms_setup_varargs,
24818         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
24819         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
24820         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
24821         assign_parm_setup_block, assign_parm_setup_reg,
24822         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
24823         (assign_parms): ... here.
24824
24825 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
24826
24827         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
24828         now are bitmap_set_t's.
24829         (bitmap_insert_into_set): No point in inserting the value if
24830         it's invariant.
24831         (bitmap_set_contains): New function.
24832         (bitmap_set_replace_value): Add comment on why we do it
24833         this way.
24834         (set_contains): Removed.
24835         (bitmap_set_subtract_from_value_set): New name of
24836         set_subtract now that it's arguments are two different
24837         types of sets.
24838         Update callers.
24839         (bitmap_find_leader): Change algorithm used.
24840         (find_or_generate_expression): Update use of functions for new
24841         bitmap sets.
24842         (create_expression_by_pieces): Ditto.
24843         (insert_aux): Ditto.
24844         (insert): Ditto.
24845         (add_to_sets): Ditto.
24846         (init_pre): Ditto.
24847         (execute_pre): Ditto.
24848         (compute_avail): Ditto.
24849         Also ignore virtual phis.
24850
24851 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
24852
24853         * combine.c (simplify_comparison): Fix comment typo.
24854
24855 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
24856
24857         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
24858         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
24859         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
24860         (output_restore): Change parameter from 'insn' to 'pat'.
24861         (output_return): Adjust call to output_restore.
24862         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
24863         Adjust call to output_restore.
24864
24865 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
24866
24867         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
24868         and assert system is bsd.
24869
24870 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
24871
24872         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
24873         (TARGET_SWITCHES): Remove -mdebugc.
24874         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
24875         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
24876         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
24877         (sle_[sd]i_reg): Delete.
24878
24879 2004-07-04  Steven Bosscher  <stevenb@suse.de>
24880
24881         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
24882         Define.
24883         * config/iq2000/iq2000.md: Translate old pipeline description to an
24884         equivalent new one.
24885
24886 2004-07-04  Roger Sayle  <roger@eyesopen.com>
24887
24888         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
24889         Ensure the replacement rhs is valid gimple before performing
24890         the substitution.  Return false if these sanity checks fail.
24891         (fold_stmt): Only set changed to true, if set_rhs returns true.
24892         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
24893         succeeds.
24894
24895 2004-07-04  Richard Henderson  <rth@redhat.com>
24896
24897         PR c/16348
24898         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
24899
24900 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
24901
24902         * configure.ac (ranlib_flags): New variable.
24903         * Makefile.in (RANLIB_FLAGS): New variable.
24904         (libbackend.a): Use it.
24905         * configure: Regenerated.
24906
24907 2004-07-04  Roger Sayle  <roger@eyesopen.com>
24908
24909         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
24910         a "sign mask" instead of using ashr_optab directly.
24911
24912 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
24913
24914         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
24915         * doc/cppopts.texi: Clarify processing of command-line defines.
24916
24917 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
24918
24919         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
24920
24921 2004-07-04  Richard Henderson  <rth@redhat.com>
24922
24923         * rtl.def (ADDRESSOF): Remove.
24924         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
24925         (find_base_term, memrefs_conflict_p): Likewise.
24926         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
24927         (fold_rtx, cse_insn, set_live_p): Likewise.
24928         * dwarf2out.c (mem_loc_descriptor): Likewise.
24929         (add_location_or_const_value_attribute): Likewise.
24930         * emit-rtl.c (copy_insn_1): Likewise.
24931         * explow.c (memory_address): Likewise.
24932         * expmed.c (store_split_bit_field): Likewise.
24933         * expr.c (expand_expr_real_1): Likewise.
24934         * function.c (instantiate_decl
24935         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
24936         * genrecog.c (preds, validate_pattern): Likewise.
24937         * integrate.c (copy_rtx_and_substitute): Likewise.
24938         * recog.c (general_operand, register_operand): Likewise.
24939         (memory_address_p): Likwise.
24940         * reload1.c (eliminate_regs, elimination_effects): Likewise.
24941         * rtl.c (copy_rtx): Likewise.
24942         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
24943         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
24944         * rtlhooks.c (gen_lowpart_general): Likewise.
24945         * stmt.c (expand_asm_operands): Likewise.
24946         * web.c (entry_register, replace_ref, web_main): Likewise.
24947         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
24948         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
24949         * config/arm/arm.c (thumb_rtx_costs): Likewise.
24950         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
24951         * config/frv/frv.c (move_destination_operand, move_source_operand,
24952         condexec_dest_operand, condexec_source_operand,
24953         condexec_memory_operand): Likewise.
24954         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
24955         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
24956         (destination_xfmode_operand): Likewise.
24957         * config/mips/mips.h (PREDICATE_CODES): Likewise.
24958         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
24959         * config/s390/s390.c (general_s_operand): Likewise.
24960         * config/s390/s390.md (mov*): Likewise.
24961         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
24962
24963         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
24964         * expr.c (expand_expr_real_1): Likewise.
24965         * stmt.c (expand_decl): Likewise.
24966         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
24967
24968         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
24969         postponed_insns, put_var_into_stack, put_reg_into_stack,
24970         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
24971         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
24972         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
24973         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
24974         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
24975         purge_bitfield_addressof_replacements, purge_addressof_replacements,
24976         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
24977         struct insns_for_mem_walk_info, insns_for_mem_walk,
24978         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
24979         setjmp_protect_args): Remove.
24980         (push_function_context_to): Don't handle var_refs_queue.
24981         (pop_function_context_from, free_after_compilation): Likewise.
24982         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
24983         (assign_parms, allocate_struct_function): Likewise.
24984         (use_register_for_decl): New.
24985         (expand_function_end): Don't setjmp_protect.
24986         * function.h (struct emit_status): Update commentary.
24987         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
24988         (max_parm_reg, parm_reg_stack_loc): Remove.
24989         * passes.c (DFI_addressof): Remove.
24990         (dump_file_info): Remove addressof.
24991         (rest_of_handle_addressof): Remove.
24992         (rest_of_compilation): Don't call it.
24993         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
24994         * stmt.c (expand_decl): Use use_register_for_decl.
24995         * tree.h: Update decls.
24996         * web.c (mark_addressof): Remove.
24997         * doc/invoke.texi (-dF): Remove.
24998
24999 2004-07-03  Richard Henderson  <rth@redhat.com>
25000
25001         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
25002         instead of gen_mem_addressof.
25003         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
25004         TImode output register.
25005
25006 2004-07-03  Richard Henderson  <rth@redhat.com>
25007
25008         PR tree-optimization/16341
25009         * tree-sra.c (sra_walk_function): Increment to next stmt before
25010         processing the current stmt.
25011         (sra_insert_after): Always use BSI_SAME_STMT.
25012
25013 2004-07-03  Richard Henderson  <rth@redhat.com>
25014
25015         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
25016         fp plus with minus.
25017
25018 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
25019
25020         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
25021         with tree_int_cst_equal.
25022
25023 2004-07-03  Andreas Schwab  <schwab@suse.de>
25024
25025         * config/ia64/ia64.md: Define new attribute "empty".
25026         (prologue_use, nop_x, insn_group_barrier): Set it.
25027
25028         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
25029         skip over "empty" insns.
25030
25031 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25032
25033         * tree-inline.c (initialize_inlined_parameters): Pass proper function
25034         context to gimplify_body.
25035         (walk_tree): Don't walk into types twice.
25036         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
25037
25038         * tree-sra.c (generate_element_init): Remove any useless conversions.
25039
25040         * gimplify.c (gimplify_conversion): Remove stripping useless
25041         conversions from here.
25042         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
25043         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
25044         Unshare before substituting PLACEHOLDER_EXPR.
25045         (gimplify_modify_expr_to_memset): Likewise.
25046         Pass address of TO to memset, not TO itself.
25047         (gimplify_init_constructor): Make copy of OBJECT so we have it each
25048         time we make an expression (to match a PLACEHOLDER_EXPR).
25049
25050         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
25051         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
25052         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
25053         * tree-ssa-dom.c (local_fold): Likewise.
25054
25055         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
25056         * langhooks.h (strct lang_hooks): New field type_max_size.
25057         * function.c (assign_temp): Call it.
25058
25059 2004-07-03  Steven Bosscher  <stevenb@suse.de>
25060
25061         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
25062         * config/sh/sh.md: Convert the SH1 pipeline description to
25063         a DFA model.
25064
25065 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
25066
25067         * c-decl.c (struct c_binding): Remove contour field; add
25068         depth, invisible, nested fields.
25069         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
25070         (B_IN_EXTERNAL_SCOPE): New convenience macros.
25071         (bind): Add invisible and nested arguments. Initialize
25072         new fields of struct c_binding; adjust loop scanning for
25073         insertion point.
25074         (free_binding_and_advance): Clear structure with memset.
25075         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
25076         in file scope, even if it's in external scope too.
25077         (pushdecl): Adjust to match.  Create invisible file-scope
25078         declarations for block-scope forward declarations of static functions.
25079         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
25080         (undeclared_variable, lookup_label, declare_label, define_label)
25081         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
25082         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
25083         (store_parm_decls_oldstyle): Adjust to match.
25084         (diagnose_mismatched_decls): Correct handling of linkage clashes.
25085         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
25086
25087         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
25088         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
25089
25090 2004-07-02  Richard Henderson  <rth@redhat.com>
25091
25092         * c-decl.c (grokdeclarator): Don't frob current_function_decl
25093         around variable_size.
25094         (set_decl_nonlocal): Remove.
25095         (store_parm_decls): Add stmts for pending sizes.
25096         * calls.c (calls_function, calls_function_1): Remove.
25097         (precompute_arguments): Don't call it.
25098         * cfgexpand.c (set_save_expr_context): Remove.
25099         (tree_expand_cfg): Don't call it.
25100         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
25101         (dwarf2out_finish): Likewise.
25102         * expr.c (emit_block_move): Adjust addresses to BLKmode.
25103         (store_constructor): Don't pre-evaluate SAVE_EXPR.
25104         (safe_from_p): Don't queue SAVE_EXPRs.
25105         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
25106         or build plain VAR_DECLs.
25107         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
25108         (fold): Likewise.
25109         (fold_checksum_tree): Don't special-case SAVE_EXPR.
25110         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
25111         (put_var_into_stack): Don't handle SAVE_EXPR.
25112         (gen_mem_addressof): Likewise.
25113         * function.h (struct function): Remove x_save_expr_regs.
25114         (save_expr_regs): Remove.
25115         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
25116         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
25117         * stor-layout.c (variable_size): Don't set it.
25118         (force_type_save_exprs, force_type_save_exprs_1): Remove.
25119         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
25120         all callers.  Don't set SAVE_EXPR_CONTEXT.
25121         * tree-inline.h (remap_save_expr): Update decl.
25122         * tree.c (save_expr): Update build size.
25123         (first_rtl_op): Don't handle SAVE_EXPR.
25124         (unsave_expr_1, contains_placeholder_p): Likewise.
25125         (decl_function_context): Likewise.
25126         * tree.def (SAVE_EXPR): Remove args 1 and 2.
25127         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
25128         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
25129
25130 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
25131
25132         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
25133         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
25134         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
25135         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
25136         some first-person references and patronizing comments.  Based on
25137         printed manual.
25138         * doc/invoke.texi: Don't reference fortran@gnu.org.
25139         * doc/trouble.texi (Warning when a non-void function value is
25140         ignored): Rewrite.  From Russ Allbery and Chris Devers.
25141
25142 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
25143
25144         * tree-ssa-pre.c (bitmap_set_t): New.
25145         (bb_value_sets): avail_out is now a bitmap_set_t.
25146         (bitmap_find_leader): New function.
25147         (bitmap_value_insert_into_set): Ditto.
25148         (bitmap_set_copy): Ditto.
25149         (bitmap_value_replace_in_set): Ditto.
25150         (bitmap_set_contains_value): Ditto.
25151         (bitmap_set_new): Ditto.
25152         (bitmap_set_pool): New pool.
25153         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
25154         (insert_aux): Ditto.
25155         (add_to_sets): Ditto.
25156         (compute_avail): Ditto
25157         (eliminate): Ditto.
25158         (init_pre): Ditto.
25159         (fini_pre): Ditto.
25160         (execute_pre): Ditto.
25161
25162 2004-07-02  Roger Sayle  <roger@eyesopen.com>
25163
25164         * config/rs6000/rs6000.c (struct processor_costs): New structure
25165         used to hold instruction latencies/sizes for processor types.
25166         (rs6000_cost): New global variable pointing to current CPU's costs.
25167         (rs6000_override_options): Initialize rs6000_cost to point to the
25168         appropriate cost table based upon rs6000_cpu and optimize_size.
25169         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
25170         timings inline.
25171
25172 2004-07-02  Richard Henderson  <rth@redhat.com>
25173
25174         * expmed.c (make_tree): Don't use SET_DECL_RTL.
25175
25176 2004-07-02  Steven Bosscher  <stevenb@suse.de>
25177
25178         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
25179
25180 2004-07-01  Richard Henderson  <rth@redhat.com>
25181
25182         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
25183         (alpha_gp_save_rtx): Use assign_stack_local instead of
25184         gen_mem_addressof.
25185
25186 2004-07-01  Richard Henderson  <rth@redhat.com>
25187
25188         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
25189         (alpha_rtx_cost_data): Update to match.
25190         (alpha_rtx_cost_size): New.
25191         (alpha_rtx_costs): Honor optimize_size.
25192
25193 2004-07-01  Richard Henderson  <rth@redhat.com>
25194
25195         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
25196         * cfgexpand.c (tree_expand_cfg): Do it here.
25197         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
25198         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
25199         * config/mips/mips.c (mips_output_mi_thunk): And here.
25200         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
25201         * config/sh/sh.c (sh_output_mi_thunk): And here.
25202         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
25203
25204 2004-07-01  Richard Henderson  <rth@redhat.com>
25205
25206         * tree.def (RTL_EXPR): Remove.
25207         * c-typeck.c (lvalue_p): Don't handle it.
25208         * expr.c (safe_from_p): Likewise.
25209         (expand_expr_real_1): Likewise.
25210         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
25211         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
25212         * gengtype.c (adjust_field_tree_exp): Likewise.
25213         * stmt.c (warn_if_unused_value): Likewise.
25214         * tree-gimple.c (recalculate_side_effects): Likewise.
25215         * tree-pretty-print.c (dump_generic_node): Likewise.
25216         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
25217         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
25218         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
25219
25220         * stmt.c (struct stmt_status): Remove x_last_expr_type,
25221         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
25222         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
25223         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
25224         all the bits that tracked last_expr.
25225         (expand_end_bindings): Don't track last_expr.
25226         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
25227         (clear_last_expr): Remove.
25228         (expand_asm): Don't call it.
25229         (expand_asm_operands, expand_end_cond): Likewise.
25230         (expand_naked_return, expand_null_return_1): Likewise.
25231         * c-typeck.c (c_begin_compound_stmt): Likewise.
25232         * cfgexpand.c (expand_block): Use expand_expr_stmt.
25233         * expr.c (expand_expr_real_1): Likewise.
25234         * tree.h: Update prototypes.
25235
25236         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
25237         (struct emit_status): Remove sequence_rtl_expr.
25238         (struct function): Remove x_rtl_expr_chain.
25239         (seq_rtl_expr, rtl_expr_chain): Remove.
25240         * function.c (struct temp_slot): Remove rtl_expr.
25241         (assign_stack_temp_for_type): Don't set it.
25242         (free_temp_slots, pop_temp_slots): Don't check it.
25243         (free_after_compilation): Don't clear x_rtl_expr_chain.
25244         (fixup_var_refs): Don't search it.
25245         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
25246         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
25247         or seq_rtl_expr.
25248         (push_topmost_sequence): Likewise.
25249         (end_sequence, init_emit): Likewise.
25250         (start_sequence_for_rtl_expr): Remove.
25251         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
25252         * rtl.h (preserve_rtl_expr_result): Remove.
25253
25254 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
25255
25256         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
25257         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
25258         typos.
25259
25260 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
25261
25262         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
25263         (STANDARD_STARTFILE_PREFIX_2): Define.
25264         (standard_startfile_prefix_1): Initialize to
25265         STANDARD_STARTFILE_PREFIX_1.
25266         (standard_startfile_prefix_2): Initialize to
25267         STANDARD_STARTFILE_PREFIX_2.
25268         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
25269         (STANDARD_STARTFILE_PREFIX_1): Define.
25270         (STANDARD_STARTFILE_PREFIX_2): Define.
25271         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
25272         (STANDARD_STARTFILE_PREFIX_2): Document.
25273
25274 2004-07-01  Richard Henderson  <rth@redhat.com>
25275
25276         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
25277         in order to disable scalarization.  Instead set a flag and wait
25278         for a candidate decl.
25279
25280 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
25281
25282         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
25283         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
25284         Use terminology "testsuite" and "enumerated".
25285
25286 2004-07-01  Richard Henderson  <rth@redhat.com>
25287
25288         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
25289         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
25290         (initial_return_save): Likewise.
25291         (flush_queued_reg_saves): Remap register numbers.
25292         (dwarf2out_return_reg): Likewise.
25293
25294 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25295
25296         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
25297
25298         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
25299         access functions for lower bound and element size and only output
25300         if lower bound nonzero or element size not same as that of type.
25301         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
25302
25303 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
25304
25305         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
25306
25307 2004-07-01  Per Bothner  <per@bothner.com>
25308
25309         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
25310
25311 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
25312
25313         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
25314         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
25315         first operand.  Don't optimize if the bitfield is volatile.
25316
25317 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
25318
25319         * c-pretty-print.c (pp_c_postfix_expression): Handle
25320         floating-point comparison operators.
25321         (pp_c_expression): Pass floating-point comparison
25322         operators to pp_c_postfix_expression.
25323
25324 2004-07-01  Roger Sayle  <roger@eyesopen.com>
25325
25326         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
25327         rtx_cost instead of "had_mult" to determine whether the transformed
25328         expression is cheaper than the original.
25329
25330 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
25331
25332         * alias.c (get_alias_set, canon_rtx, get_addr,
25333         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
25334         Use MEM_P.
25335         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
25336         expand_builtin): Likewise.
25337         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
25338         Likewise.
25339         * combine.c (can_combine_p, combinable_i3pat, try_combine,
25340         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
25341         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
25342         record_dead_and_set_regs_1, get_last_value_validate,
25343         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
25344         * cse.c (check_dependence, canon_hash, equiv_constant,
25345         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
25346         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
25347         count_reg_usage): Likewise.
25348         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
25349         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
25350         cselib_record_sets): Likewise.
25351         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
25352         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
25353         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
25354         * df.c (df_uses_record): Likewise.
25355         * dojump (do_jump): Likewise.
25356         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
25357         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
25358         decl_start_label): Likewise.
25359         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
25360         operand_subword, change_address_1, make_safe_from): Likewise.
25361         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
25362         stabilize, force_not_mem): Likewise.
25363         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
25364         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
25365         * expr.c (convert_move, convert_modes, emit_block_move,
25366         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
25367         emit_move_insn_1, expand_assignment, store_expr,
25368         store_constructor_field, store_constructor, store_field,
25369         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
25370         Likewise.
25371         * final.c (cleanup_subreg_operands, alter_subreg,
25372         get_mem_expr_from_op): Likewise.
25373         * flow.c (notice_stack_pointer_modification_1,
25374         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
25375         Likewise.
25376         * function.c (mark_temp_addr_taken, preserve_temp_slots,
25377         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
25378         optimize_bit_field, flush_addressof, purge_addressof_1,
25379         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
25380         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
25381         keep_stack_depressed): Likewise.
25382         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
25383         noce_process_if_block, find_memory): Likewise.
25384         * integrate.c (subst_constants, allocate_initial_values): Likewise.
25385         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
25386         update_equiv_regs): Likewise.
25387         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
25388         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
25389         * optabs.c (expand_abs, emit_unop_insn): Likewise.
25390         * passes.c (rest_of_handle_final): Likewise.
25391         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
25392         move2add_note_store): Likewise.
25393         * ra-build.c (detect_remat_webs): Likewise.
25394         * ra-debug.c (dump_static_insn_cost): Likewise.
25395         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
25396         * recog.c (validate_change, apply_change_group, cancel_changes,
25397         validate_replace_rtx_1, general_operand, register_operand,
25398         nonmemory_operand, push_operand, pop_operand, memory_operand,
25399         indirect_operand, asm_operand_ok, offsettable_memref_p,
25400         offsettable_nonstrict_memref_p, constrain_operands,
25401         store_data_bypass_p): Likewise.
25402         * reg-stack.c (subst_stack_regs_pat): Likewise.
25403         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
25404         copy_cost, reg_scan_mark_refs): Likewise.
25405         * regmove.c (optimize_reg_copy_3, stack_memref_p,
25406         combine_stack_adjustments_for_block): Likewise.
25407         * regrename.c (copyprop_hardreg_forward_1): Likewise.
25408         * reload.c (can_reload_into, push_reload, decompose, immune_p,
25409         find_reloads, find_reloads_address, find_reloads_address_1,
25410         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
25411         find_equiv_reg): Likewise.
25412         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
25413         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
25414         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
25415         delete_address_reloads): Likewise.
25416         * resource.c (mark_referenced_resources): Likewise.
25417         * rtlanal.c (get_jump_table_offset, count_occurrences,
25418         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
25419         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
25420         num_sign_bit_copies1): Likewise.
25421         * rtlhooks.c (gen_lowpart_general): Likewise.
25422         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
25423         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
25424         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
25425         sdbout_global_decl): Likewise.
25426         * simplify-rtx.c (simplify_subreg): Likewise.
25427         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
25428         expand_anon_union_decl, expand_end_case_type): Likewise.
25429         * unroll.c (calculate_giv_inc): Likewise.
25430         * var-tracking.c (stack_adjust_offset_pre_post,
25431         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
25432         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
25433         vt_add_function_parameters): Likewise.
25434         * varasm.c (make_var_volatile, notice_global_symbol,
25435         assemble_external, decode_addr_const, mark_weak,
25436         default_encode_section_info): Likewise.
25437
25438 2004-07-01  Steven Bosscher  <stevenb@suse.de>
25439
25440         * stmt.c (check_seenlabel): Remove.
25441         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
25442
25443 2004-07-01  Richard Henderson  <rth@redhat.com>
25444
25445         * function.h (struct function): Remove x_function_call_count.
25446         (function_call_count): Remove.
25447         * calls.c (expand_call): Don't set it.
25448         * integrate.c (copy_rtx_and_substitute): Likewise.
25449
25450         * function.h (struct function): Remove x_cleanup_label.
25451         (cleanup_label): Remove.
25452         * stmt.c (expand_value_return): Don't use it.
25453         * function.c (free_after_compilation): Don't set it.
25454         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
25455         * cfgexpand.c (tree_expand_cfg): Update call.
25456         * tree.h (expand_function_start): Update decl.
25457
25458 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
25459
25460         PR c/1027
25461         * c-lang.c (c_initialize_diagnostics): Move from here ...
25462         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
25463         (c_tree_printer): Use pretty-printer to format %T.
25464         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
25465         before '*' if not C++.
25466         (pp_c_direct_abstract_declarator): Don't try to print array upper
25467         bound for flexible array members.
25468         * c-tree.h: Include "diagnostic.h".
25469         (c_initialize_diagnostics): Declare.
25470         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
25471         * c-format.c (format_type_warning): New function.  Improve
25472         diagnostics for incorrect format argument types.
25473         (check_format_types): Use it.  Add two parameters.  Use the
25474         TYPE_MAIN_VARIANT of wanted_type.
25475         (check_format_info_main): Pass new parameters to
25476         check_format_types.
25477         (struct format_wanted_type): Update comment.
25478
25479 2004-07-01  Nick Clifton  <nickc@redhat.com>
25480
25481         * target.h (struct gcc_target): Add new field to struct cxx:
25482         import_export_class.
25483         * target-def.h (TARGET_CXX): Initialise the new field.
25484         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
25485         the new field.
25486         * doc/tm.texi: Document the new target hook.
25487
25488 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
25489
25490         * builtins.c (fold_builtin_classify): Fix typo.
25491
25492 2004-07-01  Richard Henderson  <rth@redhat.com>
25493
25494         * function.c (identify_blocks, identify_blocks_1): Remove.
25495         * function.h (identify_blocks): Remove.
25496         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
25497
25498 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
25499
25500         * builtins.c (fold_builtin_classify): New.
25501         (fold_builtin_unordered_cmp): Fix commentary.
25502         (fold_builtin): Use it.
25503         * builtins.def: Define builtins for isnan,
25504         isnanf, isnanl, finite, finitef, finitel,
25505         isinf, isinff, isinfl.
25506
25507 2004-07-01  Richard Henderson  <rth@redhat.com>
25508
25509         * function.h (struct function): Remove dont_emit_block_notes.
25510         * gimple-low.c (lower_function_body): Don't set it.
25511         * cfgexpand.c (expand_block): Don't check it.
25512         * cfglayout.c (insn_locators_initialize): Likewise.
25513         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
25514         * passes.c (rest_of_compilation): Likewise.
25515         * stmt.c (expand_start_bindings_and_block): Likewise.
25516         (expand_end_bindings): Likewise.
25517
25518 2004-07-01  Richard Henderson  <rth@redhat.com>
25519
25520         * cgraph.h (cgraph_build_static_cdtor): Declare.
25521         * cgraphunit.c (cgraph_build_static_cdtor): New.
25522         * c-objc-common.c (build_cdtor): Use it.
25523         * coverage.c (create_coverage): Likewise.
25524         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
25525         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
25526
25527 See ChangeLog.11 for earlier changes.