OSDN Git Service

1188b6100f7fc6eca28bcd92cad90b816c4ca481
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
2
3         * final.c (output_in_slot): Delete.
4         (final_scan_insn): Revert 2004-09-03 change.
5         (output_asm_insn): Likewise.
6         * config/sparc/sparc.c (output_return): Likewise.
7         (output_sibcall): Likewise.
8
9 2004-09-06  Jan Hubicka  <jh@suse.cz>
10
11         * loop.c (loop_dump_aux): Do not print RTL when not available.
12         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
13         frontend specific type nodes.
14         (produce_memory_decl_rtl): Break out from ...
15         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
16         (get_computation_at): Avoid random tree sharing.
17         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
18
19 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
20
21         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
22         unnecessary commands.
23
24 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
25
26         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
27         (bitmap.o): Likewise.
28
29 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
30
31         Unify the management of RTL and tree-level dump files.
32
33         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
34         Don't print function name to the dump file, the pass manager
35         would do this for us. Add code from the top of
36         rest_of_compilation, up to the initial RTL dump.
37         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
38         close the DFI_sibling dump file.
39         (rest_of_compilation): Don't do that here.  Remove code up to the
40         initial RTL dump.
41         (init_optimization_passes): Remove.
42         (pass_rest_of_compilation): Change pass name to NULL.
43         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
44         Do not call init_optimization_passes.
45         * toplev.h (init_optimization_passes): Remove.
46
47         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
48         finish_graph_dump_file): Remove SUFFIX parameter.
49         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
50         finish_graph_dump_file): Likewise.
51
52         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
53         * cfgexpand.c (pass_expand): Adjust.
54         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
55         * passes.c (pass_rest_of_compilation): Adjust.
56         * predict.c (pass_profile): Adjust.
57         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
58         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
59         pass_split_crit_edges, pass_warn_function_return): Adjust.
60         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
61         * tree-dfa.c (pass_referenced_vars): Adjust.
62         * tree-eh.c (pass_lower_eh): Adjust.
63         * tree-if-conv.c (pass_build_ssa): Adjust.
64         * tree-into-ssa.c (pass_build_ssa): Adjust.
65         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
66         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
67         * tree-nrv.c (pass_nrv): Adjust.
68         * tree-optimize.c (pass_gimple, pass_all_optimizations,
69         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
70         pass_init_datastructures): Adjust.
71         * tree-outof-ssa.c (pass_del_ssa): Adjust.
72         * tree-profile.c (pass_tree_profile): Adjust.
73         * tree-sra.c (pass_sra): Adjust.
74         * tree-ssa-alias.c (pass_may_alias): Adjust.
75         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
76         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
77         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
78         * tree-ssa-dom.c (pass_dominator): Adjust.
79         * tree-ssa-dse.c (pass_dse): Adjust.
80         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
81         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
82         * tree-ssa-loop-ch.c (pass_ch): Adjust.
83         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
84         pass_loop_done, pass_complete_unroll, pass_iv_canon,
85         pass_iv_optimize, pass_vectorize): Adjust.
86         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
87         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
88         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
89         pass_late_warn_uninnitialized): Adjust.
90         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
91
92         * Makefile.in (tree-dump.o): Add new dependencies.
93         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
94         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
95         Likewise.
96         * toplev.c (dump_file_name): New.
97         * tree-dump.c (dump_enable_all): Add LETTER parameter.
98         (struct dump_file_info): Add NUM and LETTER fields.
99         (dump_files): Adjust and add RTL dump files.
100         (dump_register): Add NUM and LETTER fields.
101         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
102         (dump_begin): Use get_dump_file_name.
103         (dump_switch_p_1): Adjust call to dump_enable_all.
104         * tree-dump.h (dump_register): Adjust prototype.
105         * tree-optimize.c (register_one_dump_file): Take dump file index.
106         Support flags for RTL dumps.
107         (register_dump_files): Fill in NUM field of struct dump_file_info.
108         Track properties both when the gate is executed and when it is not.
109         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
110         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
111         dumps of RTL.
112         * tree-pass.h (dump_file_name): New.
113         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
114         New.
115
116         * Makefile.in (passes.o): Add new dependencies.
117         * passes.c (struct dump_file_info, enum dump_file_index,
118         dump_file_tbl, init_optimization_passes): Remove.
119         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
120         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
121         dump_enabled_p.
122         (finish_optimization_passes): Update finish_graph_dump_file loop.
123         (enable_rtl_dump_file): Remove.
124         * tree-dump.c (dump_files): Adjust and add RTL dump files.
125         (enable_rtl_dump_file): Add here.
126         * tree.h (enum tree_dump_index): Add RTL dump file indices.
127         * doc/invoke.texi (Debugging options): Document new RTL debugging
128         options.  Update.
129
130 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
131
132         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
133         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
134         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
135         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
136         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
137         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
138         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
139         vec.h: Fix comment formatting.
140
141 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
142
143         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
144         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
145         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
146         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
147         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
148         tree-ssa-loop-niter.c, tree-ssa-operands.c,
149         tree-ssa-operands.h, tree-ssa-propagate.c,
150         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
151         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
152
153 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
154
155         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
156         vectorizer is enabled.
157
158 2004-09-05  Andreas Jaeger  <aj@suse.de>
159
160         * tree-if-conv.c: Spell check comments and clean up whitespace.
161
162 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
163
164         * tree-ssa-loop-ivopts.c: New file.
165         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
166         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
167         target_pres_cost, target_spill_cost): Declare.
168         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
169         spill_cost): Renamed to ...
170         (target_avail_regs, target_res_regs, target_small_cost,
171         target_pres_cost, target_spill_cost): ... and exported.
172         (init_set_costs, global_cost_for_size): Work with renamed variables.
173         * common.opt (flag_ivopts): New flag.
174         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
175         REF_ORIGINAL.
176         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
177         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
178         generating SSA form.
179         (force_gimple_operand): New function.
180         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
181         * tree-cfg.c (stmt_bsi): New function.
182         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
183         PARAM_IV_MAX_CONSIDERED_USES): New.
184         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
185         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
186         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
187         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
188         * tree-nested.c (build_addr): Export.
189         * tree-optimize.c (init_tree_optimization_passes): Add
190         pass_iv_optimize.
191         * tree-pass.h (pass_iv_optimize): Declare.
192         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
193         IMAGPART_EXPR.
194         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
195         as a phi node argument.
196         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
197         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
198         functions.
199         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
200         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
201         pass_iv_optimize): New pass.
202         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
203         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
204         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
205         * tree.h (REF_ORIGINAL): New macro.
206         (build_int_cst_type, unsigned_type_for, zero_p,
207         cst_and_fits_in_hwi, build_addr): Declare.
208         * doc/invoke.texi (-fivopts): Document.
209         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
210         PARAM_IV_MAX_CONSIDERED_USES): Document.
211         * doc/passes.texi: Document induction variable optimizations pass.
212
213 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
214
215         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
216         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
217         * c-common.c (c_common_attribute_table): Accept parameters to
218         sentinel attribute.
219         (check_function_sentinel, handle_sentinel_attribute): Likewise.
220         * doc/extend.texi: Update accordingly.
221
222 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
223
224         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
225         New.
226         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
227         attribute.
228         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
229         New functions.
230         (c_common_attribute_table): Add `sentinel' attribute.
231         (check_function_arguments): Handle `sentinel' attribute.
232         * doc/extend.texi: Document `sentinel' attribute.
233
234 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
235
236         * configure: Regenerated.
237
238 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
239
240         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
241
242         * tree.c (save_expr): No longer TREE_READONLY.
243
244 2004-09-04  Jan Hubicka  <jh@suse.cz>
245
246         * passes.c (rest_of_clean_state):  Fix merge conflict made during
247         commiting the patch.
248
249 2004-09-04  Jan Hubicka  <jh@suse.cz>
250
251         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
252
253 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
254
255         * doc/md.texi (shift patterns): New anchor.  Add reference to
256         TARGET_SHIFT_TRUNCATION_MASK.
257         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
258         * target.h (shift_truncation_mask): New target hook.
259         * targhook.h (default_shift_truncation_mask): Declare.
260         * targhook.c (default_shift_truncation_mask): Define.
261         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
262         (TARGET_INITIALIZER): Include it.
263         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
264         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
265         reject all out-of-range values.  Fix sign-extension code for modes
266         whose width is smaller than HOST_BITS_PER_WIDE_INT.
267         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
268         (expand_superword_shift, expand_subword_shift): Likewise.
269         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
270         (expand_binop): Use them to implement double-word shifts.
271         * config/arm/arm.c (arm_shift_truncation_mask): New function.
272         (TARGET_SHIFT_TRUNCATION_MASK): Define.
273
274 2004-09-04  Jan Hubicka  <jh@suse.cz>
275
276         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
277         (mix): New macro copied from hashtab.c
278         (iterative_hash_hashval_t, iterative_hash_pointer,
279         iterative_hash_host_wide_int): New functions based on hashtab.c
280         implementation.
281
282 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
283
284         * config/mips/mips.md (mask): New mode attribute.
285         (zero_extendsidi2): Add memory alternative.
286         (*zero_extendsidi2_mem): Delete.
287         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
288         memory_operand in the TARGET_MIPS16 check.
289         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
290         Redefine using :GPR and :SHORT.
291         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
292
293 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
294
295         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
296         using rint_optab.
297         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
298         expand_builtin_mathfn.
299         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
300         btrunc?f patterns for btrunc_optab. Implement rint_optab using
301         rint?f patterns.
302         * optabs.c (init_optabs): Initialize rint_optab.
303         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
304         Add new OTI_rint.
305         (btrunc_optab): Rename macro from trunc_optab.
306         (rint_optab): Define corresponding macro.
307
308         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
309         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
310
311         * config/i386/i386-protos.h (emit_i387_cw_initialization):
312         Change prototype. Add new int parameter.
313         * config/i386/i386.c (emit_i387_cw_initialization):
314         Handle new rounding modes.
315
316         * config/i386/i386.h (enum fp_cw_mode): Delete.
317         (MODE_NEEDED): Handle new rounding modes.
318         (EMIT_MODE_SET): Change condition to handle new rounding modes.
319
320         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
321         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
322         represent different rounding modes of frndint insn.
323         (type): Add frndint type.
324         (i387, length, memory): Handle this type.
325         (i387_cw): New attribute definition.
326         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
327         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
328         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
329         Add "i387_cw" attribute defined to "trunc".
330         (x86_fnstcw_1): Remove comment.
331         (*frndintxf2): Rename insn definition to frndintxf2. Move
332         insn definition near rint?f2 expanders.
333         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
334         rintf and rintl built-ins as inline x87 intrinsics.
335         (frndintxf2_floor): New pattern to implement floor rounding
336         mode with frndint x87 instruction.
337         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
338         floorf and floorl built-ins as inline x87 intrinsics.
339         (frndintxf2_ceil): New pattern to implement ceil rounding
340         mode with frndint x87 instruction.
341         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
342         ceilf and ceill built-ins as inline x87 intrinsics.
343         (frndintxf2_trunc): New pattern to implement trunc rounding
344         mode with frndint x87 instruction.
345         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
346         truncf and truncl built-ins as inline x87 intrinsics.
347         (frndintxf2_mask_pm): New pattern to implement rounding
348         mode with exceptions with frndint x87 instruction.
349         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
350         implement nearbyint, nearbyintf and nearbyintl built-ins as
351         inline x87 intrinsics.
352
353 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
354
355         * config/mips/mips.md (SHORT): New mode macro.
356         (size): New mode attribute.
357         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
358         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
359         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
360         !ISA_HAS_SEB_SEH.
361         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
362         *extend[qh]isi2_hw patterns and extending them to di.
363         (extendqihi2): Implement as define_insn_and_split that produces
364         extendqisi2 after reload.
365
366 2004-09-03  Devang Patel  <dpatel@apple.com>
367
368         * Makefile.in (OBJS-common): Add tree-if-conv.o
369         (tree-if-conv.o): New rule.
370         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
371         (get_loop_body_in_bfs_order): New.
372         * cfgloop.h (get_loop_body_in_bfs_order): New.
373         * tree-flow.h (enum move_pos): Move here from ..
374         * tree-ssa-loop-im.c (enum move_pos): here.
375         (movement_possibility): Make externally visible.
376         * tree-optimize.c (init_tree_optimization_passes): New entry for
377         if conversion pass.
378         * tree-pass.h (pass_if_conversion): New.
379         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
380         * tree-if-conv.c: New file.
381         * doc/passes.texi: Document tree if-conversion pass.
382         * doc/tree-ssa.texi: Same.
383
384 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
385
386         PR target/14925:
387         Makefile.in (LIB2ADDEHSTATIC): New.
388         (LIB2ADDEHSHARED): New.
389         (LIBUNWIND): New.
390         (LIBUNWINDDEP): New.
391         (SHLIBUNWIND_LINK): New.
392         (SHLIBUNWIND_INSTALL): New.
393         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
394         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
395         (clean): Remove libunwind*
396         (stage1-start): Remove and copy stage1/libunwind*.
397         (stage2-start): Remove and copy stage2/libunwind*.
398         (stage3-start): Remove and copy stage3/libunwind*.
399         (stage4-start): Remove and copy stage4/libunwind*.
400         (stageprofile-start): Remove and copy stageprofile/libunwind*.
401         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
402
403         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
404         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
405         tmake_file if --with-system-libunwind isn't used.
406
407         * config/ia64/t-glibc-libunwind: New file.
408         * config/t-libunwind-elf: Likewise.
409         * unwind-compat.c: Likewise.
410         * unwind-compat.h: Likewise.
411         * unwind-dw2-fde-compat.c: Likewise.
412
413         * config/ia64/t-glibc (LIB2ADDEH): Updated.
414         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
415
416         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
417         aliases if needed.
418         * unwind-dw2-fde-glibc.c: Likewise.
419         * unwind-dw2.c: Likewise.
420
421         * config/t-libunwind (LIB2ADDEH): Updated.
422         (LIB2ADDEHSTATIC): New.
423         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
424         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
425
426         * configure.ac: Change --enable-libunwind-exceptions to
427         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
428         * configure: Regenerated.
429         * config.in: Updated.
430
431         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
432         above and mention --with-system-libunwind.
433         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
434         removed in gcc 3.4.3 and later.
435
436         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
437         USE_LIBUNWIND_EXCEPTIONS is defined.
438
439         * mklibgcc.in: Support libunwind.
440
441 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
442
443         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
444         m_NOCONA.
445
446 2004-09-03  Richard Henderson  <rth@redhat.com>
447
448         PR middle-end/9997
449         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
450         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
451         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
452         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
453         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
454         resize_stack_vars_conflict, add_stack_var_conflict,
455         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
456         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
457         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
458         expand_one_static_var, expand_one_hard_reg_var,
459         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
460         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
461         (expand_used_vars): Rewrite.
462         * Makefile.in (cfgexpand.o): Update dependencies.
463
464 2004-09-04  Jan Hubicka  <jh@suse.cz>
465
466         * cfg.c (free_edge): Use ggc_free.
467         (expunge_block): Use ggc_free.
468         * passes.c (rest_of_clean_state): Free after compilation.
469         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
470         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
471
472 2004-09-03  James E Wilson  <wilson@specifixinc.com>
473
474         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
475         DECL_EXTERNAL check.
476
477 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
478
479         * final.c (output_in_slot): New global variable.
480         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
481         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
482         'output_in_slot' before invoking output_asm_insn.
483         (output_asm_insn): Add a space after the tab if 'output_in_slot'
484         is set.
485         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
486         final_scan_insn.
487         (output_sibcall): Likewise.
488
489 2004-09-03  Jan Hubicka  <jh@suse.cz>
490
491         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
492         * tree-ssanames (init_ssanames): Likewise.
493
494 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
495
496         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
497         objc_declare_protocols, objc_start_protocol,
498         objc_start_class_interface, objc_start_category_interface,
499         objc_continue_interface, objc_finish_interface,
500         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
501         objc_start_class_implementation, objc_start_category_implementation,
502         objc_continue_implementation, objc_finish_implementation,
503         objc_add_method_declaration, objc_start_method_definition,
504         objc_finish_method_definition, objc_build_keyword_decl,
505         objc_build_method_signature, objc_build_encode_expr,
506         objc_build_protocol_expr, objc_build_selector_expr,
507         objc_build_message_expr, objc_build_string_object,
508         objc_get_class_reference, objc_get_protocol_qualified_type,
509         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
510
511 2004-09-03  James E Wilson  <wilson@specifixinc.com>
512
513         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
514
515         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
516         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
517         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
518         (mips_recip1_<fmt>): Use frdiv1 type.
519         (mips_recip2_<fmt>): Use frdiv2 type.
520         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
521         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
522         and frsqrt1.
523         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
524
525 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
526
527         * reload.c (find_reloads): Swap operand_loc pointers for
528         find_dummy_reload if we have swapped two operands.
529
530 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
531
532         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
533         to get the tablejump-insn before the jump-table label.
534
535 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
536
537         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
538         objc_declare_protocols, objc_build_message_expr,
539         objc_finish_message_expr, objc_build_selector_expr,
540         objc_build_protocol_expr, objc_build_encode_expr,
541         objc_build_string_object, objc_get_protocol_qualified_type,
542         objc_get_class_reference, objc_get_class_ivars,
543         objc_start_class_interface, objc_start_category_interface,
544         objc_start_protocol, objc_continue_interface, objc_finish_interface,
545         objc_start_class_implementation, objc_start_category_implementation,
546         objc_continue_implementation, objc_finish_implementation,
547         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
548         objc_add_method_declaration, objc_start_method_definition,
549         objc_finish_method_definition, objc_add_instance_variable,
550         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
551         objc_finish_try_stmt, objc_begin_catch_clause,
552         objc_finish_catch_clause, objc_build_finally_clause,
553         objc_build_synchronized, objc_static_init_needed_p,
554         objc_generate_static_init_call): New prototypes.
555
556 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
557
558         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
559         is only one reg.
560         (ia64_function_value): Ditto.
561
562 2004-09-03  Jan Beulich  <jbeulich@novell.com>
563
564         * config.gcc: Resurrect NetWare as a target. Handle special case of
565         Novell linker to be used (specified through --with-ld=) and threading
566         model of either Posix (default) or NKS.
567         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
568         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
569         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
570         * config/i386/netware.c, config/i386/netware.h: New.
571         * config/i386/nwld.c, config/i386/nwld.h: New.
572         * config/i386/netware-crt0.c: New.
573         * config/i386/netware-libgcc.c: New.
574         * config/i386/netware-libgcc.def: New.
575         * config/i386/netware-libgcc.exp: New.
576         * config/i386/t-netware, config/i386/t-nwld: New.
577         * gthr-nks.h: New.
578         * doc/install.texi: Document NKS threading model.
579
580 2004-09-03  Jan Beulich  <jbeulich@novell.com>
581
582         PR c/7054
583         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
584         * tree.h (initial_max_fld_align): Declare
585         * stor-layout.c (initial_max_fld_align): Define and initialize.
586         (maximum_field_alignment): Initialize to the same value.
587         * common.opt: Add -fpack-struct= variant of switch.
588         * opts.c: Handle -fpack-struct= variant of switch.
589         * c-pragma.c: Change #pragma pack() handling so that it becomes
590         compatible to other compilers: accept individual 'push' argument,
591         make final pop restore (command line) default, correct interaction
592         of push/pop and sole specification of a new alignment (so that the
593         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
594         to #pragma pack(push, <n>).
595         * doc/extend.texi: New node "Structure-Packing Pragmas" under
596         "Pragmas", describing #pragma pack.
597         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
598         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
599         Document new TARGET_DEFAULT_PACK_STRUCT.
600
601 2004-09-03  Devang Patel  <dpatel@apple.com>
602
603         * dwarf2out.c (gen_field_die). Equate decl number to die.
604
605 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
606
607         PR target/15832
608         * global.c (modify_reg_pav): New function.
609         (make_accurate_live_analysis): Call the new function.  Move pavin
610         modification by earlyclobber set into the new function.
611
612 2004-09-03  Andreas Schwab  <schwab@suse.de>
613
614         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
615         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
616         extended.
617
618 2004-09-02  Jan Beulich  <jbeulich@novell.com>
619
620         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
621         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
622         not unwind code specific ones.
623         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
624         Remove unwind code specific dependencies.
625         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
626         Remove gbl-ctors.h.
627         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
628         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
629         * tsystem.h: Declare memcpy and memset when inhibit_libc.
630
631 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
632
633         * combine.c (try_combine): Delay modifying of insns which cannot
634         be easily undone.
635
636 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
637
638         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
639         tree-loop-im.
640         * gcc/tree-ssa-loop.c: Ditto
641         * gcc/tree-ssa-loop-ivcanon.c: Ditto
642         * gcc/doc/invoke.texi: Ditto.
643
644 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
645
646         * c-decl.c (store_parm_decls_newstyle): Make static.
647         (store_parm_decls_from): New function.
648         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
649         (store_parm_decls_from): New prototype.
650
651 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
652
653         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
654         HImode with STRICT_ALIGNMENT.
655
656 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
657
658         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
659         (TARGET_OS_CPP_BUILTINS): Likewise.
660         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
661         TARGET_BPABI_CPP_BUILTINS.
662
663 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
664
665         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
666
667 2004-09-02  Eric Christopher  <echristo@redhat.com>
668
669         * builtins.c (expand_builtin_cabs): Delete.
670         (expand_builtin): If unable to fold the values do a normal
671         library call for builtin_cab*.
672         (fold_builtin_cabs): Depend on optimize and optimize_size.
673         * optabs.c (expand_cmplxdiv_straight): Delete.
674         (expand_cmplxdiv_wide): Ditto.
675         (expand_vector_binop): Ditto.
676         (expand_vector_unop): Ditto.
677         (expand_complex_abs): Delete.
678         (expand_binop): Remove calls to above functions.
679         Remove open coding of complex arithmetic.
680         (expand_unop): Ditto.
681         * optabs.h: Remove prototypes.
682
683 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
684
685         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
686         * c-tree.h (store_parm_decls_newstyle): New prototype.
687
688 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
689
690         * config/rs6000/rs6000.c (expand_block_clear): Use vector
691         instructions if available.
692         (expand_block_move): Likewise.
693
694 2004-09-03  Jan Hubicka  <jh@suse.cz>
695
696         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
697
698 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
699
700         * config/arm/symbian.h (LIB_SPEC): Define to empty.
701         * config/arm/t-symbian (SHLIB_LC): Likewise.
702
703 2004-09-02  Paul Brook  <paul@codesourcery.com>
704
705         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
706
707 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
708
709         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
710         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
711         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
712         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
713         (mips_issue_rate): Remove unreachable abort.
714         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
715         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
716         (mips_block_move_straight, print_operand_address, mips_file_start)
717         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
718         (mips_output_conditional_branch, mips_expand_builtin_direct)
719         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
720         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
721         with gcc_assert.
722
723 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
724
725         * config/mips/mips.md (*lea_high64): Change split condition to
726         flow2_completed.  Add a peephole2 to generate a more parallel version.
727
728 2004-09-02  Jan Hubicka  <jh@suse.cz>
729
730         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
731         GGC.
732
733         * ggc-page.c: include tree-flow.h.
734         (extra_order_size_table): Add stmt_ann_d.
735         (STAT_LABEL): Rename from ....
736         (LABEL): ... this one.
737         * Makefile.in (ggc-page.o): Add dependency.
738
739         * ggc-common.c (ggc_force_collect): New global variable.
740         (loc_description): Add fields "freed", "collected"
741         (ptr_hash): New static hash
742         (ptr_hash_entry): New structure.
743         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
744         (ggc_record_overhead): Take ptr argument, record it
745         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
746         (cmp_statistics): Imrove sorting.
747         (dump_ggc_loc_statistics): Output newly collected statistics
748         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
749         (ggc_free): Call ggc_free_overhead.
750         (ggc_collect): Force collection when asked to be forced.
751         (ggc_collect): Call ggc_prune_overhead_list.
752         * ggc.h (ggc_force_collect): Declare
753         (ggc_record_overhead): Update prototype.
754         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
755
756 2004-09-02  James E Wilson  <wilson@specifixinc.com>
757
758         * common.opt (ftrapping-math): Default to on.
759
760 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
761
762         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
763
764 2004-09-02  Denis Chertykov  <denisc@overta.ru>
765
766         PR target/16884
767         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
768         match_scratch.
769         (*movmemqi_insn): Likewise.
770         (*movmemhi): Likewise.
771         (clrmemhi): Likewise.
772         (*clrmemqi): Likewise.
773         (*clrmemhi): Likewise.
774
775 2004-09-02  Paul Brook  <paul@codesourcery.com>
776
777         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
778         default_use_cxa_atexit=yes.
779
780 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
781
782         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
783         (struct kernel_old_ucontext): Delete.
784         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
785         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
786         when IN_LIGGCC2.
787
788 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
789
790         * toplev.c (process_options): Fix typo.
791
792 2004-09-01  Richard Henderson  <rth@redhat.com>
793
794         PR middle-end/17258
795         * calls.c (initialize_argument_information): Tighten pass-through
796         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
797         Use build_fold_addr_expr.
798         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
799         that assumes ADDR_EXPR allocates stack space.
800         * fold-const.c (build_fold_addr_expr_with_type): Look through
801         WITH_SIZE_EXPR.
802
803 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
804
805         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
806         * ggc.h (ggc_alloc_rtx): Delete.
807
808 2004-09-01  Roger Sayle  <roger@eyesopen.com>
809
810         * expmed.c (enum alg_code): Remove long unused enumeration values.
811         (struct mult_cost): New structure to hold the "score" of a synthetic
812         multiply sequence, including both a rtx_cost and a latency field.
813         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
814         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
815         (struct algorithm): Change type of cost field to be mult_cost.
816         (synth_mult): Change type of cost_limit argument to be a
817         pointer to a mult_cost.  Update all cost comparisons to use the
818         new mult_cost infrastructure.  For alg_add_factor and
819         alg_sub_factor operations, latency is lower than the rtx_cost.
820         (choose_mult_variant):  Update calls to synth_mult.  Perform
821         cost comparisons using the new mult_cost infrastructure.
822         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
823         to optain the total rtx_cost of a synth_mult "algorithm".
824
825 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
826
827         * config/rs6000/power4.md: Increase store latency to 12.
828         * config/rs6000/power5.md: Same.
829
830 2004-09-01  James E Wilson  <wilson@specifixinc.com>
831
832         PR target/14064
833         * config/avr/avr.c (avr_unique_section): Delete prototype and
834         definition.
835         (TARGET_ASM_UNIQUE_SECTION): Delete.
836
837 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
838
839         * c-parse.in (primary): Call objc_build_message_expr(),
840         objc_build_selector_expr(), objc_build_protocol_expr(),
841         objc_build_encode_expr() and objc_build_string_object() instead of
842         build_message_expr(), build_selector_expr(), build_protocol_expr(),
843         build_encode_expr() and build_objc_string_object(), respectively.
844         (component_decl_list2): Call objc_get_class_ivars() instead of
845         get_class_ivars_from_name().
846         (keyworddecl): Call objc_build_keyword_decl() instead of
847         build_keyword_decl().
848         (receiver): Call objc_get_class_reference() instead of
849         get_class_reference().
850         (reswords): Add blank line before @@ifobjc section, for clarity.
851
852 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
853
854         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
855         to Altivec vetors.
856
857 2004-09-01  Wu Yongwei  <adah@sh163.net>
858             Danny Smith  <dannysmith@users.sourceforge.net>
859
860         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
861         not Windows 'DWORD'.
862         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
863         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
864         (__gthr_win32_recursive_mutex_init_function): Add prototype for
865         __GTHREAD_HIDE_WIN32API case..
866         (__gthr_win32_recursive_mutex_lock): Likewise.
867         (__gthr_win32_recursive_mutex_trylock): Likewise.
868         (__gthr_win32_recursive_mutex_unlock): Likewise.
869         (__gthread_recursive_mutex_init_function); Add definition for
870         __GTHREAD_HIDE_WIN32API case.
871         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
872         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
873         call to InterlockedDecrement.
874
875 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
876
877         * tree-tailcall.c (find_tail_calls): Also fail is statement has
878         volatile operands.
879
880         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
881
882         * doc/c-tree.texi: Document new operands for ARRAY_REF and
883         COMPONENT_REF.
884
885 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
886
887         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
888         * common.opt (fspeculative-prefetching): New.
889         * flags.h (flag_speculative_prefetching_set): Declare.
890         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
891         values.
892         * opts.c (flag_sepculative_prefetching_set): New variable.
893         (common_handle_option): Handle -fspeculative-prefetching.
894         * passes.c (rest_of_compilation): Ditto.
895         * profile.c (instrument_values, compute_value_histograms, branch_prob):
896         Use vectors instead of arrays.
897         * toplev.c (process_options): Handle -fspeculative-prefetching.
898         * rtl-profile.c: Include ggc.h.
899         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
900         rtl_gen_one_value_profiler_no_edge_manipulation,
901         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
902         argument changed.
903         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
904         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
905         argument changed.
906         * value-prof.c: Include ggc.h.
907         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
908         macros.
909         (insn_prefetch_values_to_profile, find_mem_reference_1,
910         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
911         speculative_prefetching_transform): New.
912         (value_profile_transformations): Call speculative_prefetching_transform.
913         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
914         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
915         tree_find_values_to_profile, find_values to profile): Use vectors
916         instead of arrays.
917         (free_profiled_values): Removed.
918         * value-prof.h (struct histogram_value): Renamed to
919         struct histogram_value_t.
920         (histogram_value, histogram_values): New types.
921         (find_values_to_profile): Declaration changed.
922         (free_profiled_values): Removed.
923         (struct profile_hooks): Type of argument of the hooks changed to
924         histogram_value.
925         * doc/invoke.texi (-fspeculative-prefetching): Document.
926
927 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
928
929         PR rtl-optimization/16408
930         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
931
932 2004-09-01  Richard Henderson  <rth@redhat.com>
933
934         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
935         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
936
937 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
938
939         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
940
941 2004-09-01  Mike Stump  <mrs@apple.com>
942
943         * config/darwin.c (machopic_symbol_defined_p): In addition to
944         being SYMBOL_REF_LOCAL_P, a symbol must also be
945         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
946         defined in this output file, or translation unit in the case
947         of IMA not being used.
948         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
949         never need .indirect_symbol when indirecting.
950
951 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
952
953         * Makefile.in (bb-reorder.o): Add several dependencies.
954
955 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
956
957         * fold-const.c (operand_equal_p): Require equal sign also for
958         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
959
960 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
961
962         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
963         for use in configargs.h.  Put the cname in a separate variable.  Use
964         that to set target_cpu_default2.
965
966 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
967             Nick Clifton  <nickc@redhat.com>
968
969         * config/sh/sh.md ("length"): Increase branch length when
970         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
971         constant, 2 byte for aligning the constant.
972
973 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
974
975         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
976         CPU.
977         (arm7tdmi-s): New CPU name.
978         * arm/arm.c (ARM_CORE): Update for new format.
979         * arm/arm.h (ARM_CORE): Likewise.
980         * arm/gentune.sh: Update for extra field.
981         * config.gcc: Likewise.
982         * arm/arm-tune.md: Regenerate.
983         * doc/invoke.texi: Document the real processor names for ARM cpus.
984
985 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
986
987         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
988         (floatdidf): New functions.
989         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
990         (floatdisf): New functions.
991         * t-arm-elf: Use them.
992
993 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
994
995         * c-common.h (lookup_interface): Remove prototype.
996         (is_class_name): Rename to objc_is_class_name.
997         (lookup_objc_ivar): Rename to objc_lookup_ivar.
998         (get_current_scope): Rename to objc_get_current_scope.
999         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
1000         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
1001         (yylexname): Call objc_is_class_name() instead of is_class_name().
1002         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
1003         instead of lookup_objc_ivar().
1004         * stub-objc.c (lookup_interface): Remove stub.
1005         (is_class_name): Rename to objc_is_class_name.
1006         (lookup_objc_ivar): Rename to objc_lookup_ivar.
1007
1008 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
1009
1010         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
1011         * config/arm/lib1funcs.asm: Do not include supplemental .S files
1012         when compiling for Symbian.
1013         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
1014         (TARGET_OS_CPP_BUILTINS): Likewise.
1015         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
1016
1017 2004-08-31  Stan Shebs  <shebs@apple.com>
1018
1019         * toplev.c (process_options): Ensure debug_hooks is initialized.
1020
1021 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
1022
1023         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
1024         * target.h (cxx): Add export_class_data.
1025         * config/arm/arm.c (arm_cxx_export_class_data): New function.
1026         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
1027         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
1028
1029 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1030
1031         * config/sh/sh.c (output_branch): Check the insn length possibly
1032         in the delayed slot.
1033
1034 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1035
1036         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
1037         blank after ')'.
1038         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
1039
1040         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
1041         (c_sizeof_of_alignof_type): Likewise.
1042         * expr.c (array_ref_element_size): Likewise.
1043         (highest_pow2_factor_for_target): Likewise.
1044         * gimplify.c (canonicalize_addr_expr): Likewise.
1045         (gimplify_compound_lval): Likewise.
1046         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
1047         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
1048         * varasm.c (assemble_variable): Likewise.
1049         (output_constant_def_contents): Alignments are unsigned.
1050
1051 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1052             Jeff Law  <law@redhat.com>
1053
1054         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
1055         gets modified.
1056
1057 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
1058
1059         * hooks.c (hook_bool_void_true): New function.
1060         * hooks.h (hook_bool_void_true): Declare.
1061         * target-def.h (TARGET_CXX): Add
1062         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
1063         * target.h (struct cxx): Add key_method_may_be_inline.
1064         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
1065         function.
1066         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
1067         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
1068         __THUMB_INTERWORK.
1069
1070 2004-08-31  Denis Chertykov  <denisc@overta.ru>
1071
1072         PR target/15417
1073         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
1074         frame pointer register only in Pmode while reload in progress.
1075
1076 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
1077
1078         PR target/15334
1079         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
1080         because it breaks the 32-bit shift patterns that rely on a match_dup.
1081
1082 2004-08-31  Matt Austern  <austern@apple.com>
1083
1084         * config/darwin.c (darwin_make_decl_one_only): Allocate section
1085         names once per compilation, instead of once per symbol.
1086
1087 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
1088
1089         * Makefile.in (build_subdir): New substitution.
1090         (fixinc.sh): Simplify heavily since fixincludes is already built.
1091         (stmp-fixinc): Depend on specs.ready.
1092         (install-mkheaders): Use new location of fixincludes.
1093         (clean): Do not descend into fixinc.
1094         (FORBUILD): Replace with ../$(build_subdir).
1095         * configure.ac (build_subdir): Substitute.
1096         (FORBUILD): Do not set.
1097         (all_outputs): Remove fixinc/Makefile.
1098         (default commands): Do not create links in fixinc.
1099         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
1100         the fixincludes configuration steps and substituting
1101         @FIXINCL@ in fixinc.in.
1102         * fixinc.in: New, from fixinc/fixincl.sh.
1103
1104         * fixinc/*: Removed.
1105
1106 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
1107
1108         * attribs.c (strip_attrs): Remove.
1109         (split_specs_attrs): Move ...
1110         * c-decl.c: ... to here.
1111         * tree.h (split_specs_attrs, strip_attrs): Remove.
1112         * c-tree.h (split_specs_attrs): Declare.
1113
1114 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
1115
1116         * read-rtl.c: Disable RTL checking.
1117         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
1118
1119 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
1120
1121         * config/mips/mips.md (fcond): New code macro and attribute.
1122         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
1123         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
1124         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
1125
1126 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
1127
1128         Revert:
1129         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
1130         PR rtl-optimization/16590
1131         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
1132
1133 2004-08-30  Andrew Pinski  <apinski@apple.com>
1134
1135         * hard-reg-set.h:
1136         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
1137         * ChangeLog: Fix previous ChangeLog entry.
1138
1139         PR rtl-opt/13987
1140         * config.host (use_long_long_for_widest_fast_int): New, default is
1141         off.
1142         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
1143         * configure.ac: If use_long_long_for_widest_fast_int, then
1144         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
1145         * configure: Regenerate.
1146         * config.in: Regenerate.
1147         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
1148         New: widest integer type supported efficiently in hardware for the
1149         host.
1150         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
1151         HOST_BITS_PER_WIDEST_FAST_INT.
1152         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
1153         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
1154         HOST_WIDEST_FAST_INT
1155         instead of HOST_WIDE_INT.
1156         (HARD_REG_SET_LONGS): Likewise.
1157         (UHOST_BITS_PER_WIDE_INT): Likewise.
1158         Change the checks for the fast cases to be based on
1159         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
1160
1161 2004-08-30  Steven Bosscher  <stevenb@suse.de>
1162
1163         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
1164         not the pointers.
1165
1166 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
1167
1168         PR 12738
1169         PR 17205
1170         Radar 3460526
1171         Radar 3775729
1172         * c-decl.c (grokdeclarator): Produce error for 'static' on local
1173         function declaration.
1174
1175 2004-08-30  Richard Henderson  <rth@redhat.com>
1176
1177         * expr.c (array_ref_element_size): Force aligned_size back to
1178         sizetype.
1179         (component_ref_field_offset): Similarly for aligned_offset.
1180         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
1181         low-bound, element-size, field-offset fields rather than
1182         computed values.
1183
1184 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
1185
1186         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
1187         redundant code.
1188
1189 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
1190
1191         * c-tree.h (struct language_function): Add arg_info element.
1192         * c-decl.c (current_function_arg_info): New.
1193         (grokdeclarator, store_parm_decls): Use it instead of
1194         DECL_ARGUMENTS.
1195         (c_push_function_context, c_pop_function_context): Save and
1196         restore it.
1197
1198 2004-08-30  Richard Henderson  <rth@redhat.com>
1199
1200         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
1201         COMPONENT_REF to pointer arithmetic.
1202         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
1203         constant "c" as a valid constant initializer.  Allow narrowing of
1204         differences against the same base object, for any base object.
1205
1206 2004-08-30  Richard Henderson  <rth@redhat.com>
1207
1208         * expr.c (expand_expr_addr_expr): New.
1209         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
1210
1211 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
1212
1213         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
1214         (mips_fp_condition): New enum.
1215         (mips_fp_conditions): New array.
1216         (print_fcc_operand): Delete.
1217         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
1218         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
1219         (builtin_description): Add "cond" field.
1220         (DIRECT_BUILTIN): Initialize it.
1221         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
1222         into INSN and CODE.  Initialize the "cond" field.
1223         (CMP_BUILTINS): Update accordingly.
1224         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
1225         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
1226         mips_fp_condition as argument.  Make it the final operand of the
1227         comparison instruction.
1228         (mips_expand_builtin): Update accordingly.
1229         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
1230         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
1231         the gaps.
1232         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
1233         Don't use the 'Q' operand prefix; just print the operand normally.
1234         (mips_cabs_*, mips_c_*): Delete, replacing with...
1235         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
1236         patterns.  Split the 4s versions into 2 ps patterns after reload.
1237
1238 2004-08-30  Richard Henderson  <rth@redhat.com>
1239
1240         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
1241         assuming an ADDR_EXPR is non-null.
1242
1243 2004-08-30  Jason Merrill  <jason@redhat.com>
1244
1245         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
1246
1247 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
1248
1249         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
1250         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
1251         gcc_assert and gcc_unreachable instead of abort.
1252         * alloc-pool.c (abort, fancy_abort): Remove.
1253         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
1254         gcc_assert or gcc_unreachable.
1255         * attribs.c (init_attributes, decl_attributes): Likewise.
1256         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
1257         mark_bb_for_unlikely_executed_section,
1258         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
1259         fix_crossing_unconditional_branches):  Likewise.
1260         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
1261         bitmap_operation):  Likewise.
1262         * bt-load.c (insn_sets_btr_p, augment_live_range,
1263         move_btr_def):  Likewise.
1264         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
1265         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
1266         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
1267         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
1268         expand_builtin_memcmp, expand_builtin_args_info,
1269         std_gimplify_va_arg_expr, expand_builtin_unop,
1270         expand_builtin_fputs, expand_builtin_profile_func,
1271         expand_builtin_fork_or_exec, fold_builtin_bitop,
1272         fold_builtin_classify, fold_builtin_fputs): Likewise.
1273
1274 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
1275
1276         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
1277         * gcov.c (abort): Remove undef.
1278
1279         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
1280         (struct tree_binfo): Remove primary field.
1281
1282 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
1283
1284         * fixinc/Makefile.in (machname.h): Remove.
1285         (fixincl.x): Do not pass $@ to genfixes.
1286         * fixinc/genfixes: Remove code to produce machname.h.
1287         * fixinc/fixincl.sh: Move it here instead.
1288         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
1289         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
1290         return a bool indicating whether pz_mn_name_pat is NULL.
1291         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
1292         Declare extern C variables for the ENV_TABLE.
1293         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
1294         instead use the result of mn_get_regexps.
1295         * fixinc/fixtests.c: Likewise.
1296
1297 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
1298
1299         * configure.ac: Do not run fixincludes after stage1 during
1300         toplevel bootstrap.
1301         * configure: Regenerate.
1302
1303 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
1304
1305         * sched-deps.c (get_condition): Partially revert previous, by never
1306         trying to extract the condition from a condjump.
1307
1308 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
1309
1310         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
1311         (handle_visibility_attribute, c_determine_visibility): Likewise.
1312         * c-common.h (my_friendly_assert): Remove.
1313
1314 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
1315
1316         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
1317         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
1318         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
1319         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
1320         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
1321
1322 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
1323
1324         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
1325         in COMPONENT_REF nodes.
1326
1327 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1328
1329         PR c++/15378
1330         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
1331         global_dc->warning_as_error_requested.
1332         * diagnostic.c (diagnostic_initialize): Tidy.
1333         * diagnostic.h (diagnostic_context::x_data): Remove
1334         (diagnostic_context::issue_warnings_are_errors_message): Rename
1335         from warnings_are_errors_message.
1336         (diagnostic_context::warning_as_error_requested): New.
1337
1338 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
1339
1340         * sched-deps.c (get_condition): Fix breakage in previous patch.
1341
1342 2004-08-30  Paul Brook  <paul@codesourcery.com>
1343
1344         * doc/install.texi: Fix broken mpfr link.
1345
1346 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
1347
1348         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
1349         other FreeBSD platforms.
1350
1351 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
1352
1353         * arm.h (REVERSE_CONDITION): Define.
1354         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
1355
1356 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
1357
1358         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
1359         just the codes, call reversed_comparison_code ().
1360         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
1361         (not_reg_cond): Use reversed_comparison_code.
1362         (and_reg_cond): Likewise.
1363         * ifcvt.c (cond_exec_process_if_block): Likewise.
1364         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
1365
1366 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
1367
1368         * sched-deps.c (get_condition): Rewrite using jump support functions.
1369         Use reversed_comparison_code.
1370         (conditions_mutex_p): Use reversed_comparison_code.
1371
1372 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
1373
1374         * config/mips/mips.c (override_options): Disable hot/cold partitioning
1375         for MIPS16.
1376
1377 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
1378
1379         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
1380         (mips_function_type): Move to mips.c.
1381         * config/mips/mips.c (mips_builtin_type): New enum.
1382         (builtin_description): Replace code and ftype with builtin_type
1383         and function_type.
1384         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
1385         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
1386         (CODE_FOR_mips_abs_ps): Define.
1387         (mips_bdesc): Use new macros.
1388         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
1389         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
1390         (mips_expand_builtin_direct): New function.
1391         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
1392         builtin.  Replace boolean parameter with builtin_type.
1393         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
1394         (mips_expand_4s_compare_builtin): Delete, replacing with...
1395         (mips_expand_builtin_compare): ...this new function.
1396
1397 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
1398
1399         PR rtl-optimization/16590
1400         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
1401
1402 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
1403
1404         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
1405         * tree-ssa-propagate.c: Fix documentation.
1406
1407 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
1408
1409         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
1410         (mov[sd]fcc): Likewise.
1411
1412 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
1413
1414         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
1415
1416 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
1417
1418         * config/mips/mips.md (divide_condition): New mode attribute.
1419         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
1420         (sqrt[sd]f3): Redefine using SCALARF.
1421         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
1422         patterns.
1423
1424 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
1425
1426         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
1427         (loadx, storex, fmt, UNITMODE): New mode attributes.
1428         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
1429         (mul[sd]f3): Redefine using :SCALARF.
1430         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
1431         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
1432         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
1433         Check TARGET_FUSED_MADD for V2SF too.
1434         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
1435         were already named.
1436         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
1437         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
1438
1439 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
1440
1441         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
1442         V2SF_type_node if it will be needed.
1443
1444 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
1445
1446         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
1447         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
1448         (mips_prepare_builtin_target): New function.
1449         (mips_expand_builtin): Use them.  Update calls to subroutines.
1450         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
1451         cmp_choice with a boolean argument to select between movt and movf.
1452         Take the comparison's icode as an argument, not the function's fcode.
1453         (mips_expand_compare_builtin): New function.  Rename existing function
1454         to mips_expand_scalar_compare_builtin.
1455         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
1456         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
1457         comparison's icode as an argument, not the builtin's fcode.
1458
1459 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
1460
1461         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
1462         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
1463         registers are false and -1 if all registers are true.
1464         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
1465         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
1466         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
1467         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
1468         (bc1any2t, bc1any2f): Likewise CCV2.
1469         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
1470
1471 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
1472
1473         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
1474         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
1475         UNSPEC rather than an IF_THEN_ELSE.
1476         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
1477         mips_cond_move_tf_ps by name.
1478
1479 2004-08-29  Chao-ying Fu  <fu@mips.com>
1480             James E Wilson  <wilson@specifixinc.com>
1481
1482         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
1483         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
1484         * config/mips/mips-ps-3d.md: New file.
1485         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
1486         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1487         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
1488         (mips_output_move): Emit "mov.ps" for V2SFmode.
1489         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
1490         MODE_VECTOR_FLOAT.
1491         (override_options): Check if TARGET_MIPS3D and there was an explicit
1492         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
1493         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
1494         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
1495         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
1496         and allow CCV2 and CCV4 to occupy two and four CC registers.
1497         (print_fcc_operand): New function.
1498         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
1499         %Z to call print_fcc_operand.
1500         (mips_function_value): Handle MODE_VECTOR_FLOAT.
1501         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
1502         (mips_vector_mode_supported_p): New function.
1503         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
1504         (builtin_description): New struct.
1505         (mips_bdesc): New array of struct builtin_description.
1506         (mips_expand_builtin, mips_init_builtins,
1507         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
1508         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
1509         functions.
1510         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
1511         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
1512         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
1513         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
1514         "-mips3d", and "-mno-mips3d".
1515         (ASM_SPEC): Map -mips3d to -mips3d in gas.
1516         (EXTRA_CONSTRAINT_Y): New macro.
1517         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
1518         multi-letter constraint 'Y'.
1519         (CONSTRAINT_LEN): New macro.
1520         (enum mips_builtins): New for MIPS builtin functions.
1521         (enum mips_function_type): New for the types of MIPS builtin functions.
1522         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
1523         * config/mips/mips.md: New constants for paired single and MIPS-3D
1524         instructions.  Include the new mips-ps-3d.md file.
1525         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
1526         movv2sf_hardfloat_64bit): New named patterns.
1527         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
1528         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
1529         sdxc1_v2sf_di): New unnamed patterns.
1530         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
1531         const_vector support.
1532         (const_0_or_1_operand): New predicate.
1533         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
1534
1535 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
1536
1537         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
1538         (tree-ssa-propagate.o): New rule.
1539         (GTFILES): Add tree-ssa-propagate.c.
1540         * tree-flow.h (struct stmt_ann_d): Remove field
1541         in_ccp_worklist.
1542         * tree-ssa-propagate.c: New file.
1543         * tree-ssa-propagate.h: New file.
1544         * tree-ssa-ccp.c: Re-write to use the routines from
1545         tree-ssa-propagate.c.
1546
1547 2004-08-28  Andrew Pinski  <apinski@apple.com>
1548
1549         * tree-ssa-loop.c: Remove extra include of basic-block.h.
1550
1551 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
1552
1553         * c-common.h: Update comments about ObjC/ObjC++ entry points.
1554         (objc_is_reserved_word): New prototype.
1555         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
1556         separate section; these are call-backs.
1557         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
1558         ObjC/ObjC++ "@" keywords.
1559         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
1560         prototypes; they already live in c-common.h.
1561         * stub-objc.c: Update copyright notice.
1562         (objc_is_reserved_word): New stub.
1563
1564 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
1565
1566         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
1567         even when not checking.
1568
1569 2004-08-27  Jason Merrill  <jason@redhat.com>
1570
1571         PR c++/13684
1572         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
1573         (gimple_push_cleanup): Add eh_only parm.
1574         (gimplify_target_expr): Pass it.
1575         * c.opt (-fno-threadsafe-statics): New option.
1576         * c-opts.c (c_common_handle_option): Handle it.
1577         * c-common.h (flag_threadsafe_statics): Declare it.
1578         * c-common.c (flag_threadsafe_statics): Record it.
1579         * doc/invoke.texi: Document it.
1580         * tsystem.h (_GNU_SOURCE): Define.
1581         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
1582         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
1583         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
1584         (__gthread_recursive_mutex_init_function): New fn.
1585         (__gthread_recursive_mutex_lock): New fn.
1586         (__gthread_recursive_mutex_trylock): New fn.
1587         (__gthread_recursive_mutex_unlock): New fn.
1588         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
1589         * gthr-win32.h, gthr-vxworks.h: Likewise.
1590         * gthr.h: Document.
1591
1592 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
1593
1594         * config/rs6000/rs6000.c (rs6000_override_options): Increase
1595         maximum skip to 15.  Set function alignment, jump alignment, and
1596         loop alignment to 16 for processors that form dispatch groups.
1597         (rs6000_rtx_costs): outer_code is used.
1598
1599 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
1600
1601         * stor-layout.c (sizetype_set): Remove.
1602         (set_sizetype): Don't test or set it.
1603
1604         * tree.h (size_int_type): Remove.
1605         * fold-const.c: Do not #include gt-fold-const.h.
1606         (size_htab_hash, size_htab_eq): Remove.
1607         (size_int_kind): Use build_int_cst.
1608         (new_const, size_htab): Remove.
1609         (size_int_type): Remove.
1610         (round_up): Use build_int_cst.
1611         (round_down): Likewise. Remove spurious constant build.
1612
1613 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
1614
1615         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
1616         Add is_release variable, use it for --enable-werror and
1617         --enable-checking defaults.
1618         * system.h (gcc_assert, gcc_unreachable): New.
1619         * doc/install.texi (--enable-checking): Update.
1620         * configure, config.in: Rebuilt.
1621
1622 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
1623
1624         * rtl.h (read_rtx): Change prototype.
1625         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
1626         line number.  Return true on success.
1627         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
1628         callers accordingly.
1629
1630 2004-08-26  Richard Henderson  <rth@redhat.com>
1631
1632         * c-typeck.c (build_offsetof): Remove.
1633         * c-tree.h (build_offsetof): Remove.
1634         * c-common.c (fold_offsetof_1, fold_offsetof): New.
1635         * c-common.h (fold_offsetof): Declare.
1636         * c-parse.in (offsetof_base): New.
1637         (offsetof_member_designator): Use it.  Build references, not just
1638         a tree list.
1639         (primary): Use fold_offsetof, not build_offsetof.
1640
1641 2004-08-26  Richard Henderson  <rth@redhat.com>
1642
1643         * tree.c (staticp): Return the static object.
1644         * tree.h (staticp): Update decl.
1645         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
1646         * langhooks.c (lhd_staticp): Return NULL_TREE.
1647         * langhooks-def.h (lhd_staticp): Update decl.
1648         * c-common.c (c_staticp): Return the static object.
1649         * c-common.h (c_staticp): Update decl.
1650
1651 2004-08-26  Richard Henderson  <rth@redhat.com>
1652
1653         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
1654         modes.
1655
1656 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
1657
1658         PR c/13801
1659         * c-decl.c (struct c_binding): Add type and inner_comp fields.
1660         (bind): Set type and inner_comp fields.
1661         (pop_scope): Restore type of decl to the correct type from an
1662         outer scope.  Give error when popping file scope for incomplete
1663         arrays completed incompatibly with default initialization in an
1664         inner scope.
1665         (diagnose_mismatched_decls): Handle externs with initializers at
1666         block scope.
1667         (pushdecl): Set type of external declaration at block scope based
1668         only on the visible declarations.  Save type when changing the
1669         type of a declaration.  Merge an external declaration at block
1670         scope with a visible static declaration at file scope.
1671         (implicitly_declare): Give recycled old declaration the new type
1672         except for incompatible declarations of built-in functions, saving
1673         the old type.
1674
1675 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
1676
1677         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
1678
1679 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
1680
1681         * tree-alias-common.c (gate_pta): New function.
1682         (pass_build_pta): Use it.
1683         (pass_del_pta): Use it.
1684         (delete_alias_vars): Don't check flag_tree_points_to.
1685
1686 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
1687
1688         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
1689         TFmode as additional register mode cloberred by call.
1690
1691 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
1692
1693         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
1694         parallel pattern for library call returning DImode in
1695         mixed mode.
1696
1697 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
1698
1699         * config/rs6000/rs6000.c (function_arg): Generate parallel
1700         pattern for more split args.
1701
1702 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
1703
1704         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
1705         either gen_movdi_di_update or gen_movdi_si_update depending on
1706         target mode.
1707         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
1708         to generate two versions.
1709
1710 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
1711
1712         * Makefile.in (lambda-code.o): New.
1713         (lambda-trans.o): Ditto.
1714         (TREE_DATA_REF_H): Ditto.
1715         (LAMBDA_H): Ditto.
1716         (lambda-mat.o): Use LAMBDA_H.
1717         (tree-data-ref.o): Ditto.
1718         * lambda-code.c: New file.  Lambda code generation algorithm.
1719         * lambda-trans.c: Ditto. Lambda transformation matrix support.
1720         * lambda.h: Add lambda loop structures.
1721         Add lambda loopnest structures.
1722         Add lambda body vector structure.
1723         Add lambda linear expression structures.
1724         Add prototypes for functions in new files.
1725         * lambda-mat.c: Include tree.h
1726
1727 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
1728             Sebastian Pop  <pop@cri.ensmp.fr>
1729
1730         * tree-data-ref.h: Include lambda.h
1731         (free_dependence_relation): Declared here.
1732         (free_dependence_relations): Ditto.
1733         (free_data_refs): Ditto.
1734         * tree-data-ref.c (free_dependence_relation): New function.
1735         (free_dependence_relations): Ditto.
1736         (free_data_refs): Ditot.
1737         (analyze_all_data_dependences): Free datarefs and dependence_relations.
1738         (build_classic_dist_vector): Store in the dependence_relations the
1739         information. Each arc in the dependence_relations graph is labelled
1740         with the distance and direction vectors.
1741         (build_classic_dir_vector): Ditto.
1742         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
1743         Now computes again the whole dependence graph including read-read
1744         relations.
1745         (compute_data_dependences_for_loop): Now dependence_relations contains
1746         all the data, and thus it doesn't need to initialize the classic_dir
1747         and classic_dist vectors.
1748         (analyze_all_data_dependences): Adjusted for using the new interface of
1749         compute_data_dependences_for_loop.  Remove the statistics dump.
1750
1751 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
1752
1753         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
1754         (xtensa_expand_block_move): Update comment.
1755         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
1756
1757 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
1758
1759         PR target/13506
1760         * toplev.c (crash_signal): If we crashed while emitting
1761         a user asm, then die more gracefully.
1762
1763 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1764
1765         PR target/17119.
1766         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
1767         checking for a valid constant, regardless of sign.
1768
1769 2004-08-25  Richard Henderson  <rth@redhat.com>
1770
1771         PR target/16974
1772         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
1773         if the constant satisfies add_operand.
1774
1775 2004-08-25  Richard Henderson  <rth@redhat.com>
1776
1777         PR debug/10695
1778         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
1779         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
1780         unwind info for >16-bit frames.
1781
1782 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
1783
1784         PR target/17171
1785         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
1786
1787 2004-08-25  Richard Henderson  <rth@redhat.com>
1788
1789         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
1790         (TARGET_CANNOT_FORCE_CONST_MEM): New.
1791
1792 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
1793
1794         * doc/tree-ssa.texi: Document new operand iterator.
1795
1796 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
1797
1798         PR target/16480
1799         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
1800         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
1801         as PLUS base regs.
1802
1803 2005-08-28  Paul Brook  <paul@codesourcery.com>
1804
1805         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
1806         -mfpu=vfp -march=armv5t
1807         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
1808
1809 2004-08-25  Richard Henderson  <rth@redhat.com>
1810
1811         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1812         * target.h (struct gcc_target): Add scalar_mode_supported_p.
1813         * targhooks.c (default_scalar_mode_supported_p): New.
1814         * targhooks.h (default_scalar_mode_supported_p): Declare.
1815         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
1816
1817         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
1818         before attempting to create types.  Tidy.
1819         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
1820
1821         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
1822         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1823
1824 2004-08-25  Richard Henderson  <rth@redhat.com>
1825
1826         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
1827         set REAL_MODE_FORMAT for TFmode.
1828
1829 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
1830
1831         * c-decl.c (grokparm): New function.
1832         * c-tree.h (grokparm): New prototype.
1833
1834 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
1835
1836         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
1837         iterator controlling structure.
1838         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
1839         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
1840         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
1841         iterator flags.
1842         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
1843         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
1844         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
1845         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
1846         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
1847         Empty operand pointers.
1848         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
1849         (op_iter_next_use): New.  Return next use_operand_p.
1850         (op_iter_next_def): New.  Return next def_operand_p.
1851         (op_iter_next_tree): New.  Return next operands as a tree.
1852         (op_iter_init): New.  Initialize an iterator structure.
1853         (op_iter_init_use): New.  Initialize structure and get the first use.
1854         (op_iter_init_def): New.  Initialize structure and get the first def.
1855         (op_iter_init_tree): New.  Initialize structure and get the first tree.
1856         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
1857         (op_iter_init_maydef): New.  Initialize structure and get the first
1858         V_MAY_DEF operands.
1859         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
1860         * tree-dfa.c (compute_immediate_uses_for_stmt,
1861         redirect_immediate_uses): Use new operand iterator.
1862         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
1863         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
1864         operands instead of using *_disappeared_p routines.
1865         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
1866         ssa_rewrite_stmt): Use new operand iterator.
1867         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
1868         rewrite_trees): Use new operand iterator.
1869         * tree-pretty-print.c (dump_vops): Use new operand iterator.
1870         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
1871         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
1872         dump_points_to_info): Use new operand iterator.
1873         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
1874         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
1875         operand iterator.
1876         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
1877         propagate_necessity): Use new operand iterator.
1878         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
1879         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
1880         a parameter instead of a stmt_ann_t.
1881         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
1882         build_tree_conflict_graph): Use new operand iterator.
1883         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
1884         rewrite_mem_refs): Use new operand iterator.
1885         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
1886         check_loop_closed_ssa_use): Use new operand iterator.
1887         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
1888         * tree-ssanames.c (release_defs): Use new operand iterator.
1889         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
1890
1891 2004-08-25  Adam Nemet  <anemet@lnxw.com>
1892
1893         * tlink.c (initial_cwd): New variable.
1894         (tlink_init): Initialize it.
1895         (recompile_files): Use tlink_execute() instead of system().  Don't
1896         duplicate verbose output of collect_execute.  Restore initial_cwd.
1897         Update comment before the function.
1898
1899 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
1900
1901         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
1902         accept) a cast from one Objective-C pointer type to another.
1903
1904 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
1905
1906         * doc/install.texi: Document that libstdc++-v3 requires
1907         now automake 1.9.1.
1908
1909 2004-08-25  Caroline Tice  <ctice@apple.com>
1910
1911         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
1912         to comments at start of function.
1913         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
1914         comment.
1915         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1916         merge_blocks_move_predecessor_nojumps,
1917         merge_blocks_move_successor_nojumps, merge_blocks_move,
1918         try_crossjump_to_edge, try_crossjump_bb): Likewise.
1919         * cfglayout.c (fixup_reorder_chain): Likewise.
1920         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
1921         cfg_layout_can_merge_blocks_p):  Likewise.
1922         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
1923         * passes.c (rest_of_compilation): Update comments for calling
1924         optimization that partitions hot/cold basic blocks.
1925         * doc/invoke.texi:  Update documentation of
1926         freorder-blocks-and-partition flag.
1927
1928 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
1929
1930         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
1931         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
1932
1933 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
1934
1935         * config/mips/mips.md (any_shift): New code macro.
1936         (optab, insn): New code attributes.
1937         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
1938         Use the standard rather than internal patterns for the MIPS16
1939         double-shift optimization.
1940         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
1941         Redefine using :GPR and any_shift.
1942         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
1943         to cover all three shifts.
1944         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
1945         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
1946         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
1947
1948 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
1949
1950         * gimplify.c (lookup_tmp_var): Separate temporaries when not
1951         optimizing.
1952
1953 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1954
1955         PR libstdc++/17005 (fix for HP-UX 11.11)
1956         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
1957         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
1958         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
1959         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
1960         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
1961         (LINK_SPEC): Handle march=1.0 option.
1962         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
1963         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
1964         (SUBTARGET_OPTIONS): New define.
1965         (LINK_SPEC): Handle march=1.0 option.
1966         (STARTFILE_SPEC): New define.
1967         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
1968         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
1969         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
1970         (SUBTARGET_OPTIONS): New define.
1971         (LINK_SPEC): Handle march=1.0 option.
1972         (STARTFILE_SPEC): New define.
1973         * config/pa/pa.c (override_options): Add code to process -munix= option.
1974         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
1975         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
1976         defines.
1977         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
1978         (SUBTARGET_OPTIONS): Provide default define.
1979         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
1980         STANDARD_STARTFILE_PREFIX_2): New defines.
1981         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
1982         (ENDFILE_SPEC): Use %O.
1983         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
1984         Mention issue caused by changing namespace and runtime to UNIX 95/98.
1985         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
1986         Document -munix=std option.
1987
1988 2004-08-25  Steven Bosscher  <stevenb@suse.de>
1989
1990         * cse.c (cse_around_loop, cse_check_loop_start,
1991         cse_set_around_loop): Remove.
1992         (cse_basic_block): Remove the around_loop argument.
1993         (cse_end_of_basic_block): Remove the after_loop argument.
1994         (cse_main): Likewise.
1995         * rtl.h (cse_main): Update prototype.
1996         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
1997         rest_of_handle_gcse): Update cse_main calls.
1998
1999 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
2000
2001         * tree.h  (build_int_cst): New, sign extended constant.
2002         (build_int_cstu): New, zero extended constant.
2003         (build_int_cst_wide): Renamed from build_int_cst.
2004         * tree.c (build_int_cst, build_int_cstu): New.
2005         (build_int_cst_wide): Renamed from build_int_cst.
2006         (make_vector_type, build_common_tree_nodes,
2007         build_common_tree_nodes_2): Adjust build_int_cst calls.
2008         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
2009         expand_builtin_strpbrk, expand_builtin_fputs,
2010         build_string_literal, expand_builtin_printf,
2011         expand_builtin_sprintf, fold_builtin_classify_type,
2012         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
2013         fold_builtin_toascii, fold_builtin_isdigit,
2014         simplify_builtin_strstr, simplify_builtin_strpbrk,
2015         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
2016         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
2017         DEF_ATTR_INT): Likewise.
2018         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
2019         Likewise.
2020         * c-lex.c (interpret_integer, lex_charconst): Likewise.
2021         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
2022         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2023         * c-typeck.c (really_start_incremental_init, push_init_level,
2024         set_nonincremental_init_from_string): Likewise.
2025         * calls.c (load_register_parameters): Likewise.
2026         convert.c (convert_to_pointer): Likewise.
2027         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
2028         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
2029         build_gcov_info): Likewise.
2030         * except.c (init_eh, assign_filter_values): Likewise.
2031         * expmed.c (store_fixed_bit_field, extract_bit_field,
2032         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
2033         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
2034         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
2035         * expr.c (convert_move, emit_group_load, emit_group_store,
2036         expand_assignment, store_constructor, store_field,
2037         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2038         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
2039         invert_truthvalue, optimize_bit_field_compare,
2040         decode_field_reference, all_ones_mask_p, constant_boolean_node,
2041         fold_div_compare, fold, fold_read_from_constant_string,
2042         fold_negate_const, fold_abs_const, fold_not_const, round_up,
2043         round_down): Likewise.
2044         * function.c (assign_parm_setup_block): Likewise.
2045         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
2046         Likewise.
2047         * stor-layout.c (layout_type, initialize_sizetypes,
2048         set_min_and_max_values_for_integral_type): Likewise.
2049         * tree-chrec.c (chrec_fold_multiply_poly_poly,
2050         reset_evolution_in_loop): Likewise.
2051         * tree-chrec.h (build_polynomial_chrec): Likewise.
2052         * tree-complex.c (build_replicated_const): Likewise.
2053         * tree-eh.c (honor_protect_cleanup_actions,
2054         lower_try_finally_onedest, lower_try_finally_copy,
2055         lower_try_finally_switch): Likewise.
2056         * tree-mudflap.c (mf_build_string, mx_register_decls,
2057         mudflap_register_call, mudflap_enqueue_constant): Likewise.
2058         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
2059         * tree-pretty-print.c (dump_generic_node): Likewise.
2060         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
2061         Likewise.
2062         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2063         * tree-ssa-loop-niter.c (number_of_iterations_cond,
2064         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
2065         Likewise.
2066         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
2067         canonicalize_loop_induction_variables): Likewise.
2068         * tree-vectorizer.c (vect_create_index_for_array_ref,
2069         vect_transform_loop_bound, vect_compute_data_ref_alignment):
2070         Likewise.
2071
2072         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
2073         alpha_gimplify_va_arg_1): Likewise.
2074         * config/arm/arm.c (arm_get_cookie_size): Likewise.
2075         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2076         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2077         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2078         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
2079         mips_gimplify_va_arg_expr): Likewise.
2080         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2081         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
2082         add_compiler_branch_island): Likewise.
2083         * config/s390/s390.c (s390_va_start): Likewise.
2084         * config/sh/sh.c (sh_va_start): Likewise.
2085         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2086         Likewise.
2087         * config/xtensa/xtensa.c (xtensa_va_start,
2088         xtensa_gimplify_va_arg_expr): Likewise.
2089
2090         * objc/objc-act.c (build_objc_string_object,
2091         build_objc_symtab_template, init_def_list, init_objc_symtab,
2092         init_module_descriptor, generate_static_references,
2093         build_selector_translation_table, get_proto_encoding,
2094         build_typed_selector_reference, build_selector_reference,
2095         build_next_objc_exception_stuff,
2096         build_method_prototype_list_template, generate_descriptor_table,
2097         generate_protocols, build_protocol_initializer,
2098         build_ivar_list_template, build_method_list_template,
2099         build_ivar_list_initializer, generate_ivars_list,
2100         generate_dispatch_table, generate_protocol_list,
2101         build_category_initializer, build_shared_structure_initializer,
2102         generate_shared_structures, handle_impent,
2103         generate_objc_image_info): Likewise.
2104
2105 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
2106
2107         * cfglayout.c (duplicate_insn_chain): Remove references to
2108         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
2109         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
2110         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
2111         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
2112         and NOTE_INSN_LOOP_CONT.
2113         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
2114         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
2115         and NOTE_INSN_LOOP_CONT.
2116         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
2117         check_dbra_loop, loop_dump_aux): Remove references to removed notes
2118         and fields.
2119         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
2120         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
2121         references to removed notes and fields.
2122         (subtract_reg_term, ujump_to_loop_cont): Remove.
2123
2124 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
2125
2126         * doc/install.texi: Document that libcpp does not require
2127         Automake any longer.  Document that Automake 1.9.1 should
2128         work everywhere.
2129
2130 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
2131
2132         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
2133         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
2134         DWARF_DEBUGGING_INFO from choice-of-definition chain;
2135         restructure using C89 features (#elif, #error).
2136         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
2137         * config/sh/sh.h: Remove references to DWARF_DEBUG.
2138         * doc/invoke.texi: Remove references to DWARF version 1;
2139         clarify why -gdwarf-2<n> doesn't work.
2140
2141 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
2142
2143         * basic-block.h (BB_SET_PARTITION): Clear old value first.
2144         * cfg.c (clear_bb_flags): Don't clear partition setting.
2145         * ifcvt.c (find_if_case_1): Remove ??? comment.
2146
2147 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
2148
2149         PR target/17052
2150         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
2151         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
2152         current_function_stdarg in place of sysv_varargs_p.
2153         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
2154         sysv_varargs_p.
2155
2156 2004-08-24  Richard Henderson  <rth@redhat.com>
2157
2158         PR target/16298
2159         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
2160         random codes within CONST.
2161
2162 2004-08-24  James E Wilson  <wilson@specifixinc.com>
2163
2164         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
2165         -freorder-blocks-and-partition.
2166
2167 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2168
2169         PR middle-end/17044
2170         * tree-ssa-threadupdate.c (redirection_data): Make static.
2171         (thread_block): Use ggc_alloc_cleared to allocate struct
2172         redirection_data.  Don't free elements in redirection_data.
2173
2174 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
2175
2176         * config/mips/predicates.md (small_data_pattern): Match prefetches.
2177
2178 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2179
2180         PR tree-optimization/17016
2181         * tree-ssa-loop-niter.c (number_of_iterations_cond,
2182         number_of_iterations_exit): Use POINTER_TYPE_P instead
2183         of testing for POINTER_TYPE.
2184
2185 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2186
2187         * tree-ssa-loop-ivcanon.c: New file.
2188         * tree-ssa-loop-manip.c (create_iv): New function.
2189         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
2190         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
2191         * cfgloop.c (mark_single_exit_loops): New function.
2192         (verify_loop_structure): Verify single-exit loops.
2193         * cfgloop.h (struct loop): Add single_exit field.
2194         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
2195         (mark_single_exit_loops): Declare.
2196         (tree_num_loop_insns): Declare.
2197         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
2198         (duplicate_loop_to_header_edge): Use it.
2199         * common.opt (fivcanon): New flag.
2200         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
2201         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
2202         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
2203         (bsi_insert_on_edge_immediate): New function.
2204         * tree-flow.h (bsi_insert_on_edge_immediate,
2205         canonicalize_induction_variables, tree_unroll_loops_completely,
2206         create_iv): Declare.
2207         * tree-optimize.c (init_tree_optimization_passes): Add
2208         pass_iv_canon and pass_complete_unroll.
2209         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
2210         * tree-scalar-evolution.c (get_loop_exit_condition,
2211         get_exit_conditions_rec, number_of_iterations_in_loop,
2212         scev_initialize): Use single_exit information.
2213         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
2214         missing assumptions.
2215         (loop_niter_by_eval):  Return number of iterations as unsigned
2216         int.
2217         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
2218         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
2219         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
2220         New passes.
2221         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
2222         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
2223         the defining statement is ready.
2224         * tree-vectorizer.c (vect_create_iv_simple): Removed.
2225         (vect_create_index_for_array_ref, vect_transform_loop_bound):
2226         Use create_iv.
2227         (vect_transform_loop_bound): Use single_exit information.
2228         (vect_analyze_loop_form): Cleanup bogus tests.
2229         (vectorize_loops): Do not call flow_loop_scan.
2230         * tree.h (may_negate_without_overflow_p): Declare.
2231         * fold-const.c (may_negate_without_overflow_p): Split out from ...
2232         (negate_expr_p): ... this function.
2233         (tree_expr_nonzero_p): Handle overflowed constants correctly.
2234         * doc/invoke.texi (-fivcanon): Document.
2235         * doc/passes.texi: Document canonical induction variable creation.
2236
2237 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
2238
2239         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
2240         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
2241         using the mode of the operand to decide between them.
2242         * config/mips/mips.md (MOVECC): New mode macro.
2243         (ccreg): New mode attribute.
2244         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
2245         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
2246         (mov[sd]icc): Redefine using :GPR.
2247
2248 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
2249
2250         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
2251         (mips_prefetch_cookie): New function.
2252         * config/mips/mips.c (print_operand_address): Fix handling of
2253         ADDRESS_CONST_INT.
2254         (mips_emit_prefetch): Delete.
2255         (mips_prefetch_cookie): New function.
2256         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
2257         mode of QImode for the address_operand.  Use mips_prefetch_cookie
2258         to calculate the first "pref" operand.
2259         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
2260         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
2261
2262 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
2263
2264         * arm.md: Include predicates.md.
2265         * predicates.md: New file.
2266         * arm.c (s_register_operand, arm_hard_register_operand)
2267         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
2268         (arm_immediate_operand, arm_neg_immediate_operand)
2269         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
2270         (arm_add_operand, arm_addimm_operand, arm_not_operand)
2271         (offsettable_memory_operand, alignable_memory_operand)
2272         (arm_reload_memory_operand, arm_float_rhs_operand)
2273         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
2274         (index_operand, shiftable_operator, logical_binary_operator)
2275         (shift_operator, equality_operator, arm_comparison_operator)
2276         (minmax_operator, cc_register, dominant_cc_register)
2277         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
2278         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
2279         (const_shift_operand, load_multiple_operation)
2280         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
2281         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
2282         (cirrus_register_operand, cirrus_fp_register)
2283         (cirrus_shift_const): Delete, replaced with equivalents in
2284         predicates.md.
2285         (shift_op): Handle ROTATE.
2286         * arm-protos.h: Delete declarations for above.
2287         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
2288         * t-arm (MD_INCLUDES): Add predicates.md.
2289         (s-preds): Depends on MD_INCLUDES.
2290
2291 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
2292
2293         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
2294         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
2295         patterns.  Redefine using :GPR.  Give the match_operator a mode.
2296         Use '%2' rather than '%z2' for operand 2.
2297
2298 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
2299
2300         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
2301         attribute.
2302
2303 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
2304
2305         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
2306         of internal patterns.
2307         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
2308         Redefine using :P.
2309         (tablejump): Use expand_binop to calculate address.  Adjust names
2310         of internal patterns.
2311         (tablejump[sd]i): Renamed from tablejump_internal[12].
2312         Redefine using :P.
2313         (tablejump_mips16[12]): Delete.
2314
2315 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
2316
2317         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
2318         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
2319         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
2320         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
2321         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
2322
2323 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
2324
2325         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
2326         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
2327         using :GPR.
2328         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
2329         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
2330         (*branch_equality[sd]i_inverted): Likewise
2331         branch_equality{,_di}_inverted.
2332         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
2333         Redefine using :GPR.
2334
2335 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
2336
2337         * rtl.def: Reorganize, placing all codes used only in machine
2338         descriptions at the end.
2339
2340         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
2341         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
2342         rtx_name, rtx_format arrays by direct reference to rtl.def,
2343         first undefining GENERATOR_FILE.  Define enum insn_note and
2344         note_insn_name array by direct reference to insn-notes.def.
2345         (adjust_field_rtx_def): Remove local definition of rtx_name.
2346         Use symbolic names for insn notes.
2347         * Makefile.in (gengtype.o): Update dependencies.
2348
2349 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
2350
2351         * basic-block.h (struct basic_block_def): Reorder fields to
2352         eliminate interior padding.  Remove 'partition' field.
2353         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
2354         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
2355         (BB_COPY_PARTITION): New macros.
2356         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
2357         Replace all references to the 'partition' field of a basic
2358         block with new macros.
2359
2360         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
2361         * final.c (final_scan_insn): Don't handle it.
2362         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
2363         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
2364         * sched-rgn.c (sched_is_disabled_for_current_region_p):
2365         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
2366
2367 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
2368
2369         * c-decl.c (c_init_decl_processing): Adjust
2370         build_common_tree_nodes call.
2371         * expmed.c (const_mult_add_overflow_p): Use
2372         build_distinct_type_copy.
2373         * stor-layout.c (early_type_list): Remove.
2374         (layout_type): Don't append to early_type_list.
2375         (initialize_sizetypes): Add signed_p argument.
2376         (set_sizetype): Overwrite the stub type nodes directly.
2377         * tree.c (copy_node_stat): Clear a type's value cache here ...
2378         (build_distinct_type): ... not here.
2379         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
2380         * tree.h (initialize_sizetypes): Add signed_p argument.
2381         (build_common_tree_nodes): Likewise.
2382
2383         * objc/objc-act.c (get_static_reference): Use
2384         build_variant_type_copy.
2385         (get_protocol_reference): Likewise.
2386         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
2387
2388 2004-08-24  Richard Henderson  <rth@redhat.com>
2389             Andrew Pinski  <apinski@apple.com>
2390
2391         * gimplify.c (gimplify_array_ref_to_plus): Delete.
2392         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
2393         for ARRAY_REF.
2394
2395         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
2396         ARRAY_REF also to get to the STRING_CST.
2397
2398 2004-08-24  Paul Brook  <paul@codesourcery.com>
2399
2400         * config/arm/arm.c (arm_override_options): Update error message.
2401         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
2402         TARGET_HARD_FLOAT_ABI.
2403         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
2404         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
2405
2406 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2407
2408         PR target/17093
2409         * config/m32r.md (movsi_sda): Add SI mode specification to
2410         UNSPEC.
2411
2412 2004-08-24  Nick Clifton  <nickc@redhat.com>
2413
2414         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
2415         of seth_add3_operand.
2416
2417 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
2418
2419         * Makefile.in (PROTO_OBJS): Add errors.o.
2420         * protoize.c (fancy_abort): Remove.
2421         * mips-tfile.c (fancy_abort): Add parameters.
2422
2423 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
2424
2425         * doc/trouble.texi (C++ misunderstandings): Fix example code.
2426
2427 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
2428
2429         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
2430         (host-default.o): Add dependency on HOOKS_H.
2431         * config/x-linux: Likewise.
2432         * config/x-solaris: Likewise.
2433         * config/i386/x-mingw32: Likewise.
2434         * config/rs6000/x-darwin: Likewise.
2435
2436 2004-08-23  James E Wilson  <wilson@specifixinc.com>
2437
2438         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
2439         DEF_REG_NOTE.
2440
2441 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
2442
2443         PR c/14492
2444         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
2445
2446 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
2447
2448         * cfg.c (check_bb_profile): Fix typos.
2449         * function.c (assign_parm_is_stack_parm): Likewise.
2450         * tree-nested.c: Likewise.
2451
2452 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
2453
2454         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
2455         Remove TYPECODE.
2456         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
2457
2458 2004-08-23  Eric Christopher  <echristo@redhat.com>
2459
2460         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
2461         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
2462         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
2463         * target.h: Ditto.
2464         * hooks.h: Include machmode.h.
2465         (hook_bool_mode_false): Declare.
2466         * hooks.c (hook_bool_mode_false): Define.
2467         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
2468         * stor-layout.c (layout_type): Ditto.
2469         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
2470         Define to target macro.
2471         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
2472         * config/arm/arm.c: Ditto. Use.
2473         * config/arm/arm.h: Ditto.
2474         * config/arm/arm-protos.h: Ditto.
2475         * config/i386/i386.c: Ditto.
2476         * config/i386/i386.h: Ditto.
2477         * config/rs6000/rs6000.c: Ditto.
2478         * config/rs6000/rs6000.h: Ditto.
2479         * config/sh/sh.c: Ditto.
2480         * config/sh/sh.h: Ditto.
2481         * config/sh/sh-protos.h: Ditto.
2482         * config/sh/sh.md: Use.
2483         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
2484         to TARGET_VECTOR_MODE_SUPPORTED_P.
2485
2486 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
2487
2488         * Makefile.in (BUILD_ERRORS): Set to build-errors.
2489         (errors.o): New target for host.
2490         (build-errors.o): New target for build.
2491         (genobjs): Replace errors.o with build-errors.
2492         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
2493         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
2494         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
2495         (fix-header.o): Add errors.h
2496         * collect2.c (fancy_abort): Add parameters.
2497         * collect2.h (fancy_abort): Don't declare.
2498         * errors.h (fancy_abort): Don't declare.
2499         * errors.c: Include either bconfig.h or config.h.
2500         (fancy_abort): Trim filename.
2501         * fix-header.c (v_fatal, fatal): Remove.
2502         (progname): Remove definition.
2503         (main): Set progname here.
2504         * gcc.c (fancy_abort): Add parameters.
2505         * gcc.h (fancy_abort): Remove declaration.
2506         * gcov.c (fancy_abort): Remove.
2507         * rtl.h (fancy_abort): Don't declare.
2508         (abort): Don't define.
2509         * tree.h (fancy_abort): Don't declare.
2510         (abort): Don't define.
2511         * system.h (fancy_abort): Declare.
2512         (abort): Define to fancy_abort.
2513         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
2514
2515         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
2516         (usize_type, ubitsizetype): Remove.
2517         * stor-layout.c (set_sizetype): Don't initialize usizetype,
2518         ubitsizetype.
2519         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
2520
2521         * tree.h (build_distinct_type_copy): New.
2522         (build_type_copy): ... here.  Rename to ...
2523         (build_variant_type_copy): ... here.
2524         * tree.c (build_qualified_type): Rename build_type_copy call.
2525         (build_distinct_type_copy): New, broken out of ...
2526         (build_type_copy): ... here.  Rename to ...
2527         (build_variant_type_copy): ... here.  Use
2528         build_distinct_type_copy.
2529         (build_common_tree_nodes_2): Rename build_type_copy call.
2530         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
2531         call.
2532         (handle_packed_attribute, handle_unused_attribute,
2533         handle_transparanet_union_attribute, handle_aligned_attribute,
2534         handle_deprecated_attribute): Likewise.
2535         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
2536         Likewise.
2537         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
2538         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
2539         build_distinct_type_copy.
2540
2541 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2542
2543         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
2544         attribute.
2545
2546 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2547
2548         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
2549         loads and stores.
2550         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
2551         formerly unnamed patterns.  Redefine using :P for the address.  Remove
2552         explicit length attributes.
2553
2554 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2555
2556         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
2557         New functions.
2558         (single_reachable_address): Use them.
2559         (schedule_sm): Add dump.
2560         (is_call_clobbered_ref): New function.
2561         (determine_lsm_reg): Check whether the reference is call clobbered.
2562         Only work for gimple_reg_type values.
2563
2564 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2565
2566         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
2567         $31 store insns.  Redefine using :GPR.
2568
2569 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2570
2571         * config/mips/mips.md (P): New mode macro.
2572         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
2573         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
2574         Add mode attributes.
2575
2576 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2577
2578         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
2579         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
2580         later constants to cover the gap.
2581         (load, store): New mode attributes.
2582         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
2583         Use new unspec constants.
2584
2585 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2586
2587         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
2588         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
2589         to use register_operand rather than uns_arith_operand as the predicate
2590         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
2591         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
2592         Redefine using :GPR.  Make same predicate change here.  Extend the
2593         commutativity of operands 1 and 2 from the SImode version to the
2594         DImode one.
2595         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
2596         but with no predicate changes.
2597         (*nor[sd]i3): Redefine using :GPR.
2598
2599 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2600
2601         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
2602         noreturn functions.
2603
2604 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2605
2606         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
2607         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
2608         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
2609         rather than "%z2" (with a fake const0_rtx for operand 2).
2610         (ffs[sd]i2): Redefine using :GPR.
2611         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
2612
2613 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2614
2615         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
2616
2617 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2618
2619         * config/mips/mips.md (any_extend): New code macro.
2620         (u, su): New code attributes.
2621         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
2622         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
2623         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
2624         (*{s,u}mul_acc_di): Redefine using any_extend.
2625         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
2626         to reflect real insn names.
2627         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
2628         with an any_extend template.
2629         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
2630         Add '*' to name.
2631
2632 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2633
2634         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
2635         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
2636         (mul[sd]i3_r4000): Redefine using :GPR.
2637         (mulsi3_mult3): Don't check TARGET_MAD separately.
2638         (muldi3_mult3): Moved after mulsi_mult3.
2639
2640 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2641
2642         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
2643         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
2644         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
2645         (TARGET_GAS, TARGET_MIPS_AS): Delete.
2646         (TARGET_GPWORD): Define to true for n32 on IRIX.
2647         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
2648         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
2649         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
2650         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
2651         (MDEBUG_ASM_SPEC): Delete, folding into...
2652         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
2653         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
2654         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
2655         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
2656         to define asm_abi_default_spec.
2657         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
2658         (TARGET_ASM_SELECT_SECTION): Delete.
2659         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
2660         for non-mips16 code, removing previous workaround for SGI assemblers.
2661         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
2662         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
2663         (override_options): Remove !TARGET_GAS and !have_named_sections code.
2664         (print_operand): Fold TARGET_GAS conditionals into asm strings.
2665         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
2666         ASM_STABS_OP and ASM_STABN_OP.
2667         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
2668         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
2669         (mips_output_function_prologue): Remove !TARGET_GAS code.
2670         (mips_select_rtx_section): Remove !have_named_sections code.
2671         (mips_select_section): Delete.
2672         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
2673         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
2674         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
2675         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
2676         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
2677         * config/mips/windiss.h (ASM_SPEC): Likewise.
2678
2679 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2680
2681         * read-rtl.c (map_value, mapping, macro_group): New structures.
2682         (BELLWETHER_CODE): New macro.
2683         (modes, codes, bellwether_codes): New variables.
2684         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
2685         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
2686         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
2687         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
2688         (add_map_value, initialize_macros): New functions.
2689         (def_hash, def_hash_eq_p): Generalize to anything that points to,
2690         or starts with, a char * field.
2691         (find_macro, read_mapping, check_code_macro): New functions.
2692         (read_rtx_1): New, split out from read_rtx.  Handle the new
2693         define_{mode,code}_{macro,attr} constructs.  Use find_macro
2694         to parse the name of a code or mode.  Use BELLWETHER_CODE to
2695         extract the format and to choose a suitable code for rtx_alloc.
2696         Modify recursive invocations to use read_rtx_1.
2697         (read_rtx): Call initialize_macros.  Apply code and mode macros
2698         to the rtx returned by read_rtx_1.  Cache everything after the
2699         first macro expansion for subsequent read_rtx calls.
2700         * doc/md.texi: Document new .md constructs.
2701         * config/mips/mips.md (GPR): New mode macro.
2702         (d, si8_di5): New mode attributes.
2703         (any_cond): New code macro.
2704         (add[sd]i3): Redefine using :GPR.
2705         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
2706         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
2707         previously unnamed MIPS16 patterns.
2708         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
2709         lines.  Don't match (plus (const_int 0) ...).
2710         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
2711         Use a define_split to generate the addition.
2712         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
2713         (subsi3_internal): Delete.
2714         (*subsi3_extended): Renamed from subsi3_internal_2.
2715         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
2716         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
2717         using an any_cond template.
2718
2719 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2720
2721         * read-rtl.c (read_rtx): Tidy use of format_ptr.
2722
2723 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
2724
2725         * read-rtl.c (string_obstack): New file-scope variable.
2726         (read_string, read_quoted_string, read_braced_string)
2727         (read_escape): Remove obstack parameter and use string_obstack instead.
2728         (read_rtx): Remove function-local rtl_obstack and initialize
2729         string_obstack instead.  Update call to read_string.
2730
2731 2004-08-22  Andrew Pinski  <apinski@apple.com>
2732
2733         PR c/15262
2734         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
2735         expression is not constant.
2736         (c_finish_return): Do not go through INDIRECT_REF when looking
2737         for the inner expression of an ADDR_EXPR for warning about.
2738
2739 2004-08-22  Richard Henderson  <rth@redhat.com>
2740
2741         PR 17075
2742         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
2743         create new blocks and fall through.
2744         (expand_gimple_basic_block): Update to match.
2745
2746 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
2747
2748         * reload.c (find_reloads_address): Make return value tri-state.
2749         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
2750         (find_reloads): Assume that reloaded addresses match 'o' or
2751         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
2752         returned 1 (not -1).  Omit optional reloads for address operands
2753         only if find_reloads_address returned 1 (not -1).
2754
2755         * config/s390/s390.c (legitimize_reload_address): New function.
2756         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
2757         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
2758         legitimize_reload_address.
2759
2760 2004-08-22  Richard Hendersion  <rth@redhat.com>
2761
2762         * tree.h (SAVE_EXPR_RESOLVED_P): New.
2763         * gimplify.c (gimplify_save_expr): Use it.
2764         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
2765         on the temporary variable.
2766
2767 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
2768
2769         * fold-const.c (rtl_expr_nonnegative_p): Delete.
2770         * tree.h (rtl_expr_nonnegative_p): Remove.
2771
2772 2004-08-22  Steven Bosscher  <stevenb@suse.de>
2773
2774         * config/i386/ppro.md (ppro_complex_insn): Add missing check
2775         for cpu==pentiumpro.
2776
2777         * combine.c (struct reg_stat): Fix comment typo.
2778
2779 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
2780
2781         * c-tree.h (c_sizeof_nowarn): Remove.
2782
2783 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
2784
2785         * c-decl.c (set_array_declarator_type): Rename to
2786         set_array_declarator_inner.
2787         (build_c_parm, build_attrs_declarator, build_function_declarator):
2788         New functions.
2789         (make_pointer_declarator): Call build_attrs_declarator.
2790         * c-tree.h (set_array_declarator_type): Rename to
2791         set_array_declarator_inner.
2792         (build_c_parm, build_attrs_declarator, build_function_declarator):
2793         New prototypes.
2794         * c-parse.in (after_type_declarator,
2795         parm_declarator_starttypename, parm_declarator_nostarttypename,
2796         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
2797         firstparm): Use these functions
2798
2799 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
2800
2801         * c-decl.c (build_array_declarator, set_array_declarator_type,
2802         start_decl, grokdeclarator, grokparms): Change boolean parameters
2803         to type bool.
2804         * c-tree.h (build_array_declarator, set_array_declarator_type,
2805         start_decl): Update prototypes.
2806         * c-decl.c, c-parse.in: All callers changed.
2807
2808 2004-08-21  Mike Stump  <mrs@apple.com>
2809
2810         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
2811         (darwin_fix_and_continue): Likewise.
2812         (darwin_fix_and_continue_switch): Likewise.
2813         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
2814         (darwin_fix_and_continue): Likewise.
2815         (darwin_fix_and_continue_switch): Likewise.
2816
2817 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
2818
2819         PR  c++/16030
2820         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
2821         Remove, merging into ...
2822         (gen_stdcall_or_fastcall_suffix): New function, returning tree
2823         rather than const char*, and accepting additional parameter.
2824         Don't add suffix to '*'-prefixed symbols or variadic functions.
2825         (i386_pe_encode_section_info): Adjust for call to new function.
2826         Call change_decl_assembler_name.
2827
2828 2004-08-20  Mike Stump  <mrs@apple.com>
2829
2830         * config/darwin.c (machopic_indirect_data_reference): Mark
2831         stubs as defined.
2832         * config/386/386.c (darwin_local_data_pic): Add.
2833         (legitimate_constant_p): Reorder so that PLUS handling runs
2834         before darwin_local_data_pic to match the ordering in
2835         legitimate_pic_address_disp_p and so that MINUS runs after
2836         darwin_local_data_pic as otherwise the darwin_local_data_pic
2837         logic can be skipped, which would be very bad.
2838         (legitimate_pic_address_disp_p): Move from from here to
2839         darwin_local_data_pic so it can be reused.
2840
2841 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
2842
2843         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
2844         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
2845         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
2846         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
2847         (RS6000_ABI_NAME): Define as "linux".
2848         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
2849         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
2850         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
2851         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
2852         * config/rs6000/rs6000.c (dot_symbols): New global var.
2853         (rs6000_output_function_entry): New function, modified for
2854         !DOT_SYMBOLS..
2855         (print_operand <case 'z'>): ..extracted from here.
2856         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
2857         (rs6000_output_function_epilogue): Likewise.
2858         (rs6000_elf_declare_function_name): Likewise.
2859         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
2860         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
2861         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
2862         * configure: Regenerate.
2863         * config.in: Regenerate.
2864
2865 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
2866
2867         * reload.c (find_reloads_address): Fix thinko in previous change.
2868
2869         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
2870         a CONST_INT.
2871
2872 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
2873
2874         PR rtl-optimization/17099
2875         * combine.c (force_to_mode): Check if inner_mask has any bits set
2876         outside of GET_MODE (x) instead of op_mode.
2877
2878 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
2879
2880         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
2881         fragment.
2882         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
2883         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
2884         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
2885         architecture.
2886         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
2887         configurations.
2888         * config/arm/t-symbian: New file.
2889
2890 2004-08-20  Andrew Pinski  <apinski@apple.com>
2891
2892         * regrename.c (kill_value_regno): ANSIfy.
2893
2894 2004-08-20  Dale Johannesen  <dalej@apple.com>
2895
2896         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
2897
2898 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
2899
2900         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
2901         (kill_value_regno): New function, derived from kill_value.
2902         (kill_value): Update.
2903         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
2904
2905 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
2906
2907         Fix PR tree-optimization/17111
2908         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
2909         of non-value_handles.
2910         (bitmap_set_contains): All constants are in every set.
2911
2912 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
2913
2914         * fold-const.c (round_up, round_down): Use build_int_cst.
2915         Optimize common case.
2916
2917 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
2918             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2919
2920         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
2921         one_only_data_section): Rename to som_readonly_data_section,
2922         som_one_only_readonly_data_section and som_one_only_data_section.
2923         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
2924         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
2925         conditional defines.
2926         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
2927         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
2928         string values.
2929         (pa_select_section): Use renamed section functions.
2930         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
2931         SOM_READONLY_DATA_SECTION_FUNCTION,
2932         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
2933         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
2934         Define here ...
2935         * config/pa/som.h: ... not here.
2936         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
2937         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
2938         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
2939         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
2940         (READONLY_DATA_SECTION): Use som_readonly_data_section.
2941
2942 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
2943
2944         * fold-const.c (int_const_binop): Don't generate non-overflowing
2945         size-types specially.
2946         (fold_convert_const): Likewise.
2947
2948         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
2949         clear cache on copied sizetype.
2950
2951 2004-08-20  Ben Elliston  <bje@au.ibm.com>
2952
2953         * configure.ac: Don't escape apostrophe in --enable-coverage help.
2954         * configure: Regenerate.
2955
2956 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
2957
2958         PR 5620
2959         * gcc.c (struct stat input_stat): Don't define if
2960         HOST_LACKS_INODE_NUMBERS
2961         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
2962         than stat to determine if temp file is same as input file.
2963         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
2964         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
2965
2966 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
2967
2968         * configure.ac (mips*-*-*): Print an error if not using GAS.
2969         * configure: Regenerated.
2970         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
2971         comments about buggy MIPSpro assemblers.
2972         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
2973         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
2974         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
2975         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
2976         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
2977         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
2978         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
2979         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
2980         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
2981         of more general IRIX 6 definitions.
2982         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
2983         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
2984         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
2985         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
2986         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
2987         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
2988         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
2989         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
2990         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
2991         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
2992         (LINK_SPEC): Move most of definition to iris.h.
2993         (SUBTARGET_LINK_SPEC): New macro.
2994         (IRIX_STARTFILE_SPEC): Fold into...
2995         (STARTFILE_SPEC): ...here.
2996         (IRIX_ENDFILE_SPEC): Fold into...
2997         (ENDFILE_SPEC): ...here.
2998         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
2999         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
3000         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
3001         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
3002         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
3003         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
3004         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
3005         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
3006         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
3007         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
3008         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
3009         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
3010         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
3011         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
3012         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
3013         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
3014         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
3015         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
3016         (TARGET_IRIX6): Define to 1.
3017         (DRIVER_SELF_SPECS): Define.
3018         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
3019         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
3020         (SUBTARGET_LINK_SPEC): New macro.
3021         (IRIX_STARTFILE_SPEC): Fold into...
3022         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
3023         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
3024         (LIB_SPEC, LIBGCC_SPEC): Use them.
3025         (LIB_SPEC): Remove !mabi=* case.
3026         (IRIX_ENDFILE_SPEC): Fold into...
3027         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
3028         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
3029         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
3030         (TARGET_IRIX6): New macro.
3031         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
3032         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
3033         (LABEL_AFTER_LOC): Delete.
3034         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
3035         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
3036         (mips_build_builtin_va_list): Check TARGET_IRIX6.
3037         (override_options): Remove TARGET_SGI_O32_AS-related code.
3038         (irix_output_external_libcall): Make static.
3039         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
3040         LABEL_AFTER_LOC.
3041         (mips_file_start): Tidy guard for ABI sections.  Remove use of
3042         ABICALLS_ASM_OP; use .abicalls instead.
3043         (mips_output_aligned_decl_common, mips_declare_object_name)
3044         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
3045         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
3046         .globl foo .text directives.
3047         (irix_asm_named_section_1, irix_asm_named_section)
3048         (irix_section_align_entry, irix_section_align_htab)
3049         (irix_orig_asm_out_file, irix_section_align_entry_eq)
3050         (irix_section_align_entry_hash, irix_asm_output_align)
3051         (irix_file_start, irix_section_align_1, copy_file_data)
3052         (irix_file_end, irix_section_type_flags): Delete.
3053         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
3054         Use standard section syntax.  Remove protective "jr $31".
3055         (__gcc_fini): Likewise .gcc_fini.
3056         * config/mips/irix-crtn.asm: Adjust sections accordingly.
3057         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
3058         iris5gas.h.
3059         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
3060         from t-irix-gld.
3061         (EXTRA_MULTILIB_PARTS): Define.
3062         * config/mips/t-iris6: Remove bogus comment.
3063         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
3064         * config/mips/iris5gas.h, config/mips/iris5gld.h,
3065         config/mips/iris6gas.h, config/mips/iris6gld.h,
3066         config/mips/t-iris5-as, config/mips/t-iris5-gas
3067         config/mips/t-irix-gld: Delete.
3068         * config/mips/iris.h: New file.
3069         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
3070
3071 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
3072
3073         * postreload.c (reload_cse_move2add): Allow any condjump, but check
3074         that the implicit set isn't clobbered in the jump insn.
3075
3076 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
3077
3078         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
3079         * optabs.c (init_optabs): Don't check it.
3080         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
3081         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
3082
3083 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
3084
3085         * config/s390/s390.md (s390_warn_framesize_string)
3086         (s390_warn_dynamic_string, s390_stack_size_string)
3087         (s390_stack_guard_string): New global string variables.
3088         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
3089         (s390_stack_guard): New global variables.
3090         (override_options): Added checks for the new options.
3091         (s390_emit_prologue): Emit stack check and trap code and perform
3092         compile time stack size checking.
3093
3094         * config/s390/s390.h (TARGET_OPTIONS): Added new options
3095         "warn-framesize", "warn-dynamicstack", "stack-size" and
3096         "stack-guard".
3097
3098         * doc/invoke.texi: Added documentation for the new options.
3099
3100 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
3101
3102         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
3103         to eliminate warning.
3104         (linear_search_fdes): Declare p as unsigned.
3105         (binary_search_mixed_encoding_fdes): Likewise.
3106         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
3107         to eliminate warning.
3108         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
3109         type cast.
3110
3111 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
3112
3113         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
3114         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
3115         instead of one.  Check for strictly legitimate address.
3116         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
3117         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
3118
3119 2004-08-19  Eric Christopher  <echristo@redhat.com>
3120
3121         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
3122         * langhooks.h (unsave_expr_now): Ditto.
3123         * tree.h (unsave_expr_1): Remove prototype.
3124         (lhd_unsave_expr_now): Rename to unsave_expr_now.
3125         * tree-inline.c (unsave_expr_1): Move here
3126         from tree.c. Make static.
3127         (unsave_expr_now): Rename from lhd_unsave_expr_now.
3128         * tree-sra.c: Fix up for rename.
3129         * tree-ssa-copy.c: Ditto.
3130         * tree-eh.c: Ditto.
3131         * tree.c (unsave_expr_1): Move to tree-inline.c.
3132
3133 2004-08-19  Caroline Tice  <ctice@apple.com>
3134
3135         * config/i386/cygming.h (switch_to_section):  Fix typo (change
3136         in_unlikely_text_section to in_unlikely_executed_text).
3137
3138 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
3139
3140         * vec.h (VEC_lower_bound): New macro.
3141
3142 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
3143
3144         PR target/16446
3145         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
3146         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
3147         treat each ABI separately.  Deal with n32/n64 complex float arguments.
3148         (function_arg): Add associated complex handling here.
3149
3150 2004-08-19  Richard Henderson  <rth@redhat.com>
3151
3152         * config/arm/arm.c (arm_gen_load_multiple): Use
3153         adjust_automodify_address.  Take base memory and offset instead
3154         of unchanging/struct/scalar bits.
3155         (arm_gen_store_multiple): Likewise.
3156         (arm_gen_movmemqi): Use adjust_automodify_address.
3157         * config/arm/arm-protos.h: Update decls.
3158         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
3159         (store_multiple): Similarly.
3160
3161 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
3162
3163         * regclass.c (globalize_reg): Update call_really_used_regs.
3164
3165 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
3166
3167         * doc/invoke.texi (integer-share-limit): Document.
3168
3169         * tree.h (TYPE_CACHED_VALUES_P): New.
3170         (TYPE_CACHED_VALUES): New.
3171         (TYPE_ORIG_SIZE_TYPE): Adjust.
3172         * tree.def (INTEGER_CST): Update documentation.
3173         * tree.c: Inlcude params.h.
3174         (build_int_cst): Cache small values.
3175         (build_type_copy): Do not copy the value cache.
3176         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
3177         unneeded zeroing.
3178         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
3179         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
3180         cache.
3181         * fold-const.c (force_fit_type): Copy value when setting
3182         overflows.
3183         (int_const_binop): Likewise.
3184         * stor-layout.c: Include params.h
3185         (set_sizetype): Create values cache.
3186         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
3187         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
3188         * params.h (INTEGER_SHARE_LIMIT): New.
3189         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
3190
3191 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
3192
3193         * gimplify.c (gimplify_minimax_expr): Remove.
3194         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
3195
3196 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
3197
3198         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
3199         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
3200
3201 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
3202
3203         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
3204
3205 2004-08-18  Andrew Pinski  <apinski@apple.com>
3206
3207         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
3208
3209 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
3210
3211         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
3212         (__aeabi_ul2f): Likewise.
3213
3214 2004-08-18  Richard Henderson  <rth@redhat.com>
3215
3216         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
3217         move to rtl completely.
3218         (struct meminsnbuf, xtensa_emit_block_move): Remove.
3219         (xtensa_find_mode_for_size): Remove.
3220         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
3221         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
3222
3223 2004-08-18  Richard Henderson  <rth@redhat.com>
3224
3225         * config/mcore/mcore.c (mode_from_align): Remove DImode.
3226         (block_move_sequence): Rewrite to use adjust_address.
3227         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
3228         Return boolean indicating success/failure.
3229         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
3230         * config/mcore/mcore.md (movmemsi): Update to match.
3231
3232 2004-08-18  Mike Stump  <mrs@apple.com>
3233
3234         * doc/invoke.texi (-mfix-and-continue): Add support for
3235         fast turn around debugging.
3236         (-ffix-and-continue): Likewise.
3237         (-mindirect-data): Likewise.
3238         (-findirect-data): Likewise.
3239         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
3240         (indirect_data): Likewise.
3241         (machopic_data_defined_p): Likewise.
3242         (machopic_output_indirection): Likewise.
3243         (darwin_encode_section_info): Likewise.
3244         (darwin_fix_and_continue): Likewise.
3245         (darwin_fix_and_continue_switch): Likewise.
3246         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
3247         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3248         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
3249         (SUBTARGET_OPTIONS): Likewise.
3250         (darwin_fix_and_continue): Likewise.
3251         (darwin_fix_and_continue_switch): Likewise.
3252         (TARGET_FIX_AND_CONTINUE): Likewise.
3253         * config/rs6000.c (rs6000_emit_prologue): Likewise.
3254
3255 2004-08-19  Steven Bosscher  <stevenb@suse.de>
3256
3257         * basic-block.h (struct edge_def): Remove crossing_edge.
3258         (EDGE_CROSSING): New define.
3259         (EDGE_ALL_FLAGS): Update.
3260         * bb-reorder.c (find_traces_1_round, better_edge_p,
3261         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
3262         find_jump_block, fix_crossing_conditional_branches,
3263         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
3264         Replace all occurences of crossing_edge with an edge flag check
3265         or set/reset.
3266         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3267         try_crossjump_bb): Likewise.
3268         * cfglayout.c (fixup_reorder_chain): Likewise.
3269         * cfgrtl.c (force_nonfallthru_and_redirect,
3270         commit_one_edge_insertion): Likewise.
3271
3272         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
3273         * tree-flow.h (compute_dominance_frontiers): Move prototype...
3274         * basic-block.h:  ...here.
3275         * tree-cfg.c (compute_dominance_frontiers_1,
3276         compute_dominance_frontiers): Move from here...
3277         * cfganal.c: ...to here.  Include timevar.h.
3278
3279 2004-08-18  James E Wilson  <wilson@specifixinc.com>
3280
3281         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
3282         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
3283
3284         * config/mips/mips.md (type): Add frdiv.
3285         (divsf3+1, divsf3+2): Change type to frdiv.
3286         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
3287         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
3288
3289         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
3290         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
3291         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
3292         * config/mips/5000.md (r5k_fdiv_single): Likewise.
3293         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
3294         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
3295         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
3296         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
3297         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
3298         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
3299         Likewise.
3300         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
3301
3302 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
3303
3304         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
3305         get regression tester working again.
3306
3307 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
3308
3309         * insn-notes.def, reg-notes.def: New files.
3310         * rtl.h: Use them to define enum insn_note and enum reg_note.
3311         * rtl.c: Use them to define note_insn_name and reg_note_name.
3312         * Makefile.in (RTL_BASE_H): Update.
3313
3314         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
3315         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
3316
3317 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
3318
3319         * arm.c (arm_size_rtx_costs): New function.
3320         (arm_override_options): Use it if optimizing for space.
3321
3322 2004-08-18  Richard Henderson  <rth@redhat.com>
3323
3324         * emit-rtl.c (gen_const_mem): New.
3325         * rtl.h (gen_const_mem): Declare.
3326         * expr.c (do_tablejump): Use it.
3327         * varasm.c (force_const_mem): Likewise.
3328         * config/darwin.c (machopic_indirect_data_reference): Likewise.
3329         (machopic_legitimize_pic_address): Likewise.
3330         * config/arm/arm.c (legitimize_pic_address): Likewise.
3331         * config/i386/i386.c (legitimize_pic_address): Likewise.
3332         (legitimize_tls_address): Likewise.
3333         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
3334         * config/ia64/ia64.md (load_fptr): Likewise.
3335         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
3336         * config/pa/pa.c (legitimize_pic_address): Likewise.
3337         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3338         (rs6000_emit_move): Likewise.
3339         * config/s390/s390.c (legitimize_pic_address): Likewise.
3340         (legitimize_tls_address): Likewise.
3341         * config/s390/s390.md (casesi): Likewise.
3342         * config/sh/sh.c (sh_reorg): Likewise.
3343         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
3344         * config/v850/v850.md (casesi): Likewise.
3345
3346         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
3347         * config/sh/sh.c (prepare_move_operands): Remove incorrect
3348         use of MEM_READONLY_P.
3349
3350 2004-08-18  Steven Bosscher  <stevenb@suse.de>
3351
3352         * Makefile.in (OBJS-common): Add postreload-gcse.c.
3353         Add new postreload-gcse.o.
3354         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
3355         (lookup_as_function, insert, rehash_using_reg, use_related_value,
3356         equiv_constant): Use SAFE_HASH instead of safe_hash.
3357         (exp_equiv_p): Export.  Add for_gcse argument when comparing
3358         for GCSE.
3359         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
3360         find_comparison_args, fold_rtx, cse_insn): Update callers.
3361         (hash_rtx): New function derived from old canon_hash and bits
3362         from gcse.c hash_expr_1.
3363         (canon_hash_string): Rename to hash_rtx_string.
3364         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
3365         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
3366         (cselib_lookup): Update this caller.
3367         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
3368         Make static.
3369         (hash_expr): Call hash_rtx.
3370         (ldst_entry): Likewise.
3371         (expr_equiv_p): Call exp_equiv_p.
3372         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
3373         reg_used_on_edge, reg_set_between_after_reload_p,
3374         reg_used_between_after_reload_p, get_avail_load_store_reg,
3375         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
3376         get_bb_avail_insn, hash_scan_set_after_reload,
3377         compute_hash_table_after_reload,
3378         eliminate_partially_redundant_loads, gcse_after_reload,
3379         get_bb_avail_insn, gcse_after_reload_main): Remove.
3380         * postreload-gcse.c: New file, reincarnating most of the above.
3381         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
3382         (gcse_after_reload_main): Update prototype.
3383         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
3384         * passes.c (rest_of_handle_gcse2): Use it.
3385
3386 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
3387
3388         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
3389         (pass_loop_done): Likewise.
3390
3391 2004-08-18  Andrew Pinski  <apinski@apple.com>
3392
3393         * config/rs6000/darwin.md: Delete the altivec patterns which are
3394         handled differently now.
3395         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
3396         (macho_correct_pic_di): Likewise.
3397         (call_indirect_nonlocal_darwin64): Likewise.
3398         Delete the save world/saveFP/saveVec patterns.
3399
3400         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
3401         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
3402         * config/rs6000/rs6000.md: Include darwin.md.
3403         (builtin_setjmp_receiver): Add DImode case.
3404         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
3405         Darwin bits.
3406
3407 2004-08-18  Matt Austern  <austern@apple.com>
3408
3409         Dead code stripping
3410         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
3411         * darwin.c (darwin_file_end): Mark file as potentially strippable.
3412
3413 2004-08-18  Richard Henderson  <rth@redhat.com>
3414
3415         * alias.c (readonly_fields_p): Remove.
3416         (objects_must_conflict_p): Don't call it.
3417         * tree.h (readonly_fields_p): Remove.
3418         * langhooks.h (struct lang_hooks): Remove honor_readonly.
3419         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
3420
3421 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
3422
3423         * tree-dfa.c (add_referenced_var): Only global variables are
3424         call-clobbered.
3425         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
3426         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
3427         all pointers dereferenced if the statement dereferences them.
3428         (create_name_tags): Do not create memory tags for pointers
3429         that have PT_ANYTHING set.
3430         Also check if PT_VARS is not empty before creating a name tag.
3431         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
3432         variables that share the same alias set with a pointer that
3433         may point anywhere.
3434         (add_may_alias): Add FIXME comment to remove clobbering
3435         aliased variables and tags.
3436         (replace_may_alias): Likewise.
3437         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
3438         (merge_pointed_to_info): If the original variable has not
3439         points-to information, call set_pt_anything.
3440         (add_pointed_to_var): Do not prevent adding a pointed-to
3441         variable if the pointers is PT_ANYTHING.
3442         If the variable is a global, set PT_GLOBAL_MEM.
3443         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
3444         pointer type only come in PTR+OFFSET flavours.
3445         Always call merge_pointed_to_info on PHI arguments that are
3446         SSA_NAMEs.
3447         (get_nmt_for): Mark call-clobbered tags whose pointer points
3448         to global memory.
3449         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
3450         values.
3451         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
3452         FLAGS.
3453         (add_stmt_operand): Abort if the caller tried to add a killing
3454         definition for a memory tag.
3455         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
3456         unnecessary checks.
3457
3458 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
3459
3460         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
3461         from call_used_regs.  Update call_really_used_regs.
3462         (CALL_REALLY_USED_REGISTERS): Define.
3463         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
3464         Replace call_used_regs with call_really_used_regs.
3465         (calc_live_regs, sh_media_register_for_return): Likewise.
3466         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
3467         * sh.md (return_media): Likewise.
3468
3469 2004-08-18  Andrew Pinski  <apinski@apple.com>
3470
3471         * config/darwin.c (machopic_legitimize_pic_address): Only set
3472         MEM_READONLY_P in the non TARGET_TOC case.
3473
3474 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
3475
3476         * rtl.def (NIL): Delete.
3477         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
3478         Tighten the syntax a little.
3479
3480         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
3481         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
3482         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
3483         * config/i386/predicates.md, config/m32r/m32r.h
3484         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
3485         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
3486         * config/sparc/sparc.h, doc/tm.texi:
3487         Replace all occurrences of NIL with UNKNOWN.
3488
3489 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
3490
3491         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
3492         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
3493         sequence inline.  Move drop_through_label code into this
3494         block, being the only place it is used.  Adjust comments.
3495
3496 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
3497
3498         * config/rs6000/altivec.md: Add new patterns for calls to
3499         save_world/rest_world functions.
3500
3501         * config/rs6000/rs6000-protos.h: (save_world_operation,
3502         restore_world_operation) new declarations.
3503
3504         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
3505         field added.
3506         (rs6000_stack_info): Set world_save_p field.
3507         (save_world_operation): New function.
3508         (restore_world_operation): New function.
3509         (compute_save_world_info): New function.
3510         (rs6000_stack_info): Call compute_save_world_info.
3511         (rs6000_emit_prologue): Check for world_save_p and generate
3512         pattern to call save_world for saving all non-volatile and
3513         special registers.
3514         (rs6000_emit_epilogue): Check for world_save_p and generate
3515         pattern to call rest_world to restore saved registers.
3516
3517         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
3518         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
3519         (rs6000_reg_names): New entries added for save_world_operation and
3520         restore_world_operation.
3521
3522 2004-08-18  Caroline Tice  <ctice@apple.com>
3523
3524         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
3525         "-freorder-blocks-and-partition" to the flags used in second
3526         stage of profiledbootstrap.
3527         * bb-reorder.c (push_to_next_round_p): Add new variable,
3528         next_round_is_last; set and use variable to make sure, when
3529         partitioning, that the last trace construction round consists
3530         of all (and only) cold basic blocks.
3531         (rotate_loop): Don't copy blocks that end in a section
3532         crossing jump.
3533         (copy_bb): Correctly initialize "partition" of duplicated bb.
3534         (add_unlikely_executed_notes): Add a comment.
3535         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
3536         to make sure, if function contains hot blocks, that the
3537         successors of ENTRY_BLOCK_PTR are hot; also, only look for
3538         crossing edges if the architecture supports named sections.
3539         (mark_bb_for_unlikely_executed_section): Modify to always
3540         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
3541         the basic block note insn.
3542         (fix_crossing_unconditional_branches): Remove extra space.
3543         (fix_edges_for_rarely_executed_code): Modify to only do
3544         partitioning work if the architecture supports named sections.
3545         (reorder_basic_blocks): Modify to only add
3546         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
3547         supports named sections.
3548         * c-common.c (handle_section_attribute): Initialize new global
3549         variable, user_defined_section_attribute, to true if user has
3550         specified one.
3551         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
3552         forward edges that cross section boundaries.
3553         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
3554         partitioning information if the architecture supports named
3555         sections.
3556         * cfgrtl.c (target.h): Add statement to include this.
3557         (rtl_split_block): Make sure newly created bb gets correct
3558         partition.
3559         (try_redirect_by_replacing_jump): Make sure redirection isn't
3560         attempting to cross section boundaries.
3561         (force_nonfallthru_and_redirect): Only do partition fix up if
3562         architecture supports named sections.
3563         (rtl_split_edge): Make sure newly created bb ends up in
3564         correct partition.
3565         (commit_one_edge_insertion): Remove code that incorrectly
3566         updated basic block partition; Make sure partition fix up only
3567         happens if architecture supports named sections and it's not
3568         already done.
3569         (rtl_verify_flow_info_1): Fix if-condition on test/error
3570         condition that fallthru edges are not allowed to cross section
3571         boundaries.
3572         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
3573         * final.c (final_scan_insn): Remove redundant test from if-statement;
3574         change calls to text_section into calls to function_section; add code
3575         to only to partitioning fix up if architecture supports named
3576         sections.
3577         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
3578         partition.
3579         (if_convert): Add targetm.have_named_sections to test.
3580         * output.h (unlikely_section_label): Extern declaration for new global
3581         variable.
3582         (unlikely_text_section_name): Likewise.
3583         * opts.c (decode_options): If both partitioning and DWARF debugging
3584         are turned on, issue a warning that this doesn't work, and change
3585         partitiong to basic block reordering (without hot/cold partitions).
3586         * passes.c (rest_of_handle_final): Re-set new global variable,
3587         user_defined_section_attribute, to false.
3588         (rest_of_compilation): Change options for calling partitioning
3589         function: Don't call if the user defined the section attribute, and
3590         don't call if DECL_ONE_ONLY is true for the current function.
3591         * predict.c (choose_function_section): Return immediately if we
3592         are doing hot/cold partitioning (i.e. let the basic block partitioning
3593         determine where the function belongs).
3594         * reg-stack.c (emit_swap_insn): Add condition to step over
3595         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
3596         * toplev.c (user_defined_section_attribute): New global variable.
3597         * toplev.h (user_defined_section_attribute): Extern declaration
3598         for new global variable.
3599         * varasm.c (unlikely_section_label): New global variable.
3600         (unlikely_text_section_name): New global variable.
3601         (unlikely_text_section): Add code to initialize
3602         unlikely_text_section_name if necessary; modify to use
3603         unlikely_text_section_name and unlikely_section_label; also to use
3604         named_section properly.
3605         (in_unlikely_text_section):  Modify to work correctly with
3606         named_section and to use unlikely_text_section_name.
3607         (named_section):  Add code to work properly with cold section.
3608         (function_section): Clean up if-statement.
3609         * config/darwin.c (darwin_asm_named_section): Return to original
3610         code, removing use of SECTION_FORMAT_STRING.
3611         * config/arm/pe.h (switch_to_section):  Add case for
3612         in_unlikely_executed_text to switch statement.
3613         * config/i386/cygming.h (switch_to_section): Likewise.
3614         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
3615         (SECTION_FORMAT_STRING): Likewise.
3616         * config/mcore/mcore.h (switch_to_section): Likewise.
3617         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
3618         (SECTION_FORMAT_STRING): Remove.
3619
3620 2004-08-18  Roger Sayle  <roger@eyesopen.com>
3621
3622         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
3623         -ffixed-reg safe, by preserving the meanings of zero and one.
3624         (CALL_USED_REGISTERS): Likewise.
3625         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
3626
3627 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3628
3629         * config/sh/sh.c (split_branches): Check the result of
3630         next_active_insn.
3631         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
3632         Call rtl_register_cfg_hooks.
3633
3634 2004-08-18  Richard Henderson  <rth@redhat.com>
3635
3636         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
3637         * alias.c (true_dependence): Update to match new semantics.
3638         (canon_true_dependence, write_dependence_p): Likewise.
3639         (anti_dependence, output_dependence): Update write_dependence_p args.
3640         (unchanging_anti_dependence): Remove.
3641         * calls.c (purge_mem_unchanging_flag): Remove.
3642         (fixup_tail_calls): Don't call it.
3643         (expand_call): Don't add unchanging memory to function usage.
3644         * expr.c (emit_block_move_via_libcall): Likewise.
3645         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
3646         (get_subtarget): Don't use RTX_UNCHANGING_P.
3647         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
3648         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
3649         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
3650         * cse.c (insert): Don't use RTX_UNCHANGING_P.
3651         (cse_insn, canon_hash): Use MEM_READONLY_P.
3652         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
3653         instead of RTX_UNCHANGING_P.
3654         * explow.c (maybe_set_unchanging): Remove.
3655         * expr.h (maybe_set_unchanging): Remove.
3656         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
3657         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
3658         (assign_parm_setup_reg, expand_function_start): Likewise.
3659         * integrate.c (copy_rtx_and_substitute): Likewise.
3660         * ra-rewrite.c (emit_colors): Likewise.
3661         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
3662         (fixup_match_1): Likewise.
3663         * reload1.c (reload, alter_reg): Likewise.
3664         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
3665         not RTX_UNCHANGING_P.
3666         (equiv_init_varies_p): Likewise.
3667         * loop-invariant.c (check_maybe_invariant): Likewise.
3668         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
3669         * loop.c (note_addr_stored): Likewise.
3670         (prescan_loop): Likewise. Don't check function usage for clobbered
3671         unchanging memory.
3672         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
3673         not RTX_UNCHANGING_P.
3674         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
3675         * varasm.c (force_const_mem): Likewise.
3676         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
3677         * web.c (entry_register): Likewise.
3678         * tree-gimple.h (get_base_address): Move decl ...
3679         * tree.h: ... here.
3680         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
3681
3682         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
3683         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
3684         (alpha_set_memflags): Update to match.
3685
3686         * config/darwin.c (machopic_indirect_data_reference): Set
3687         MEM_READONLY_P instead of RTX_UNCHANGING_P.
3688         (machopic_indirect_call_target): Likewise.
3689         (machopic_legitimize_pic_address): Likewise.
3690         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
3691         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
3692         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
3693         * config/frv/frv.md (symGOT2reg): Likewise.
3694         * config/i386/i386.c (legitimize_pic_address,
3695         legitimize_tls_address, ix86_split_to_parts): Likewise.
3696         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
3697         * config/ia64/ia64.md (load_fptr): Likewise.
3698         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
3699         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
3700         * config/mcore/mcore.c (block_move_sequence): Likewise.
3701         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
3702         * config/pa/pa.c (legitimize_pic_address): Likewise.
3703         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3704         (rs6000_emit_move): Likewise.
3705         * config/s390/s390.c (legitimize_pic_address): Likewise.
3706         (legitimize_tls_address): Likewise.
3707         * config/s390/s390.md (casesi): Likewise.
3708         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
3709         * config/sh/sh.md (symGOT2reg): Likewise.
3710         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
3711         * config/v850/v850.md (casesi): Likewise.
3712
3713         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
3714         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
3715         * config/mips/mips.c (mips_restore_gp): Likewise.
3716         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
3717         * config/sh/sh.c (sh_reorg): Likewise.
3718
3719 2004-08-18  Richard Henderson  <rth@redhat.com>
3720
3721         * tree.h (struct tree_decl): Add gimple_formal_temp.
3722         (DECL_GIMPLE_FORMAL_TEMP_P): New.
3723         * gimplify.c (pop_gimplify_context): Clear it.
3724         (lookup_tmp_var): Set it, if is_formal.
3725         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
3726         Use is_gimple_val for VECTOR.  Simplify return value.
3727         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
3728         (gimplify_expr): Likewise.
3729         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
3730         is_gimple_tmp_rhs for clarity.  Update all callers.
3731         (is_gimple_reg_rhs): Simplify logic.
3732         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
3733         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
3734         (is_gimple_formal_tmp_reg): Similarly.
3735         * tree-gimple.h: Update decls.
3736         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
3737         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
3738         * tree-ssa-live.c (var_union, type_var_init): Likewise.
3739
3740 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
3741
3742         * c4x.c (legitimize_operands): Remove calls to
3743         preserve_subexpressions_p.
3744
3745 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
3746
3747         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
3748         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
3749
3750 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
3751
3752         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
3753         Objective-C++ extensions.
3754         * gengtype.c (get_file_basename): Match entire subdirectory name
3755         ('cp', 'objc', 'objcp') rather than just its suffix.
3756         (get_base_file_bitmap): Allow for files to belong to more than one
3757         language.
3758         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
3759         used by more than one front-end.
3760
3761 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
3762
3763         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
3764         avoid use of preserve_subexpressions_p.
3765
3766 2004-08-17  Richard Henderson  <rth@redhat.com>
3767
3768         PR 17051
3769         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
3770
3771 2004-08-17  DJ Delorie  <dj@redhat.com>
3772
3773         * doc/extend.texi: Document new xstormy16 attribute.
3774
3775         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
3776         (xstormy16_splittable_below100_or_register): New.
3777         (combine_bnp): New.
3778         (xstormy16_reorg): New.
3779         (TARGET_MACHINE_DEPENDENT_REORG): Define.
3780
3781         * config/stormy16/stormy16.md (movqi_internal): Make name public.
3782         (movhi_internal): Likewise.
3783         (cbhranchhi): Likewise.
3784         (cbhranchhi_neg): Likewise.
3785         (andhi3): Only allow splittable below100 operands.
3786         (iorhi3): Likewise.
3787         (peephole2): New and/zero_extend->and peephole.
3788         (peephole2): New load/ior/save->set1 peephole.
3789         (peephole2): New load/and/save->clr1 peephole.
3790         (bclrx, bclrx2, bclr7, bclr15): New.
3791         (bsetx, bsetx2, bset7, bset15): New.
3792
3793         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
3794         liberal about acceptable 'B' masks.
3795
3796         * config/stormy16/stormy16-protos.h
3797         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
3798         xstormy16_below100_operand, xstormy16_below100_or_register,
3799         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
3800         (PREDICATE_CODES): Add new predicates.
3801
3802         * config/stormy16/stormy16.c
3803         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
3804         xstormy16_below100_operand, xstormy16_below100_or_register,
3805         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
3806         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
3807         (xstormy16_legitimate_address_p): Allow below100 symbols.
3808         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
3809         (xstormy16_expand_move): Leave below100 operands as-is.
3810         (xstormy16_encode_section_info): Encode below100 symbols.
3811         (xstormy16_strip_name_encoding): New.
3812         (xstormy16_print_operand): Print 'b' as shift mask.
3813         (xstormy16_attribute_table): Add below100 attributes.
3814         (xstormy16_handle_below100_attribute): New.
3815
3816         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
3817         (XSTORMY16_SECTION_FUNCTION): New.
3818         (EXTRA_SECTION_FUNCTIONS): Define using the above.
3819         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3820         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
3821         (ASM_OUTPUT_LABELREF): Define.
3822
3823         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
3824         (movhi_internal): Add below100 support.
3825         (andhi3): Add below100 support.
3826         (iorhi3): Add below100 support.
3827         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
3828
3829 2004-08-17  James E Wilson  <wilson@specifixinc.com>
3830
3831         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
3832         of VOIDmode for comparison code mode.
3833         * config/mips/mips.md: For conditional move patterns, use mode of
3834         first compare operand for comparison mode, instead of VOIDmode.
3835
3836         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
3837         normal and -ffast-math code.
3838
3839 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
3840
3841         PR c++/15871
3842         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
3843
3844 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
3845
3846         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
3847
3848 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
3849
3850         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
3851         for non Darwin targets.
3852         (*call_value_nonlocal_darwin64): Likewise.
3853
3854 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
3855
3856         * config/rs6000/rs6000.c (rs6000_function_value): Check for
3857         altivec mode for altivec return register.
3858
3859 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
3860
3861         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
3862         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
3863         * config/rs6000/rs6000.md: Include darwin.md.
3864         (builtin_setjmp_receiver): Add DImode case.
3865         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
3866         Darwin bits.
3867
3868 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
3869
3870         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
3871         trees.
3872         * tree-vectorizer.h: New File: Same.
3873         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
3874         * common.opt (ftree-vectorize): New flag to enable vectorization.
3875         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
3876         vectorization pass.
3877         * tree-data-ref.h (init_data_ref): Additional argument.
3878         (array_base_name_differ_p): Moved to tree-data-ref.c.
3879         * tree-data-ref.c (array_base_name_differ_p): Revised.
3880         (initialize_data_dependence_relation): Call array_base_name_differ_p
3881         with an extra argument.
3882         (analyze_all_data_dependences): Same.
3883         (init_data_ref): Additional argument is_read to set DR_IS_READ.
3884         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
3885         file.
3886         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
3887         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
3888         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
3889         vectorization pass.
3890         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
3891         (tree_ssa_loop_done): Call scev_finalize.
3892         (tree_vectorize): Define the new vectorization pass.
3893         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
3894         size of the vector they support (until support for multiple vector
3895         sizes is added to the vectorizer).
3896         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
3897         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
3898         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
3899         documentation.
3900
3901 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
3902
3903         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
3904         usage.
3905         (generate_protocol_list, handle_impent): Likewise.
3906
3907 2004-08-17  Roger Sayle  <roger@eyesopen.com>
3908
3909         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
3910         ensure that call_used_regs is a superset of both fixed_regs and
3911         call_really_used_regs.
3912
3913 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
3914
3915         PR target/17019
3916         * arm.md (addsi3_cbranch_scratch): Correct case labels.
3917
3918 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
3919
3920         PR middle-end/17036
3921         * fold-const.c (fold): Check for integer operand when
3922         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
3923         Pinski  <pinskia@physics.uc.edu>.
3924
3925 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
3926
3927         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
3928         No need to check if in a cross configuration.
3929         * configure: Regenerate.