Another MIPS vector cleanup patch, fix bad type attribute for FP zero moves.
[gcc.git] / gcc / ChangeLog
1 2004-09-06 James E Wilson <wilson@specifixinc.com>
2
3 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
4 movdf_hardfloat_32bit): Split fG into two alternatives.
5 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
6
7 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
8
9 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
10
11 * final.c (output_in_slot): Delete.
12 (final_scan_insn): Revert 2004-09-03 change.
13 (output_asm_insn): Likewise.
14 * config/sparc/sparc.c (output_return): Likewise.
15 (output_sibcall): Likewise.
16
17 2004-09-06 Jan Hubicka <jh@suse.cz>
18
19 * loop.c (loop_dump_aux): Do not print RTL when not available.
20 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
21 frontend specific type nodes.
22 (produce_memory_decl_rtl): Break out from ...
23 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
24 (get_computation_at): Avoid random tree sharing.
25 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
26
27 2004-09-06 Zack Weinberg <zack@codesourcery.com>
28
29 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
30 unnecessary commands.
31
32 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
33
34 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
35 (bitmap.o): Likewise.
36
37 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
38
39 Unify the management of RTL and tree-level dump files.
40
41 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
42 Don't print function name to the dump file, the pass manager
43 would do this for us. Add code from the top of
44 rest_of_compilation, up to the initial RTL dump.
45 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
46 close the DFI_sibling dump file.
47 (rest_of_compilation): Don't do that here. Remove code up to the
48 initial RTL dump.
49 (init_optimization_passes): Remove.
50 (pass_rest_of_compilation): Change pass name to NULL.
51 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
52 Do not call init_optimization_passes.
53 * toplev.h (init_optimization_passes): Remove.
54
55 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
56 finish_graph_dump_file): Remove SUFFIX parameter.
57 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
58 finish_graph_dump_file): Likewise.
59
60 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
61 * cfgexpand.c (pass_expand): Adjust.
62 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
63 * passes.c (pass_rest_of_compilation): Adjust.
64 * predict.c (pass_profile): Adjust.
65 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
66 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
67 pass_split_crit_edges, pass_warn_function_return): Adjust.
68 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
69 * tree-dfa.c (pass_referenced_vars): Adjust.
70 * tree-eh.c (pass_lower_eh): Adjust.
71 * tree-if-conv.c (pass_build_ssa): Adjust.
72 * tree-into-ssa.c (pass_build_ssa): Adjust.
73 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
74 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
75 * tree-nrv.c (pass_nrv): Adjust.
76 * tree-optimize.c (pass_gimple, pass_all_optimizations,
77 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
78 pass_init_datastructures): Adjust.
79 * tree-outof-ssa.c (pass_del_ssa): Adjust.
80 * tree-profile.c (pass_tree_profile): Adjust.
81 * tree-sra.c (pass_sra): Adjust.
82 * tree-ssa-alias.c (pass_may_alias): Adjust.
83 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
84 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
85 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
86 * tree-ssa-dom.c (pass_dominator): Adjust.
87 * tree-ssa-dse.c (pass_dse): Adjust.
88 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
89 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
90 * tree-ssa-loop-ch.c (pass_ch): Adjust.
91 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
92 pass_loop_done, pass_complete_unroll, pass_iv_canon,
93 pass_iv_optimize, pass_vectorize): Adjust.
94 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
95 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
96 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
97 pass_late_warn_uninnitialized): Adjust.
98 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
99
100 * Makefile.in (tree-dump.o): Add new dependencies.
101 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
102 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
103 Likewise.
104 * toplev.c (dump_file_name): New.
105 * tree-dump.c (dump_enable_all): Add LETTER parameter.
106 (struct dump_file_info): Add NUM and LETTER fields.
107 (dump_files): Adjust and add RTL dump files.
108 (dump_register): Add NUM and LETTER fields.
109 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
110 (dump_begin): Use get_dump_file_name.
111 (dump_switch_p_1): Adjust call to dump_enable_all.
112 * tree-dump.h (dump_register): Adjust prototype.
113 * tree-optimize.c (register_one_dump_file): Take dump file index.
114 Support flags for RTL dumps.
115 (register_dump_files): Fill in NUM field of struct dump_file_info.
116 Track properties both when the gate is executed and when it is not.
117 (execute_todo): Dump RTL. Add PROPERTIES parameter.
118 (execute_one_pass): Pass properties to execute_todo. Handle VCG
119 dumps of RTL.
120 * tree-pass.h (dump_file_name): New.
121 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
122 New.
123
124 * Makefile.in (passes.o): Add new dependencies.
125 * passes.c (struct dump_file_info, enum dump_file_index,
126 dump_file_tbl, init_optimization_passes): Remove.
127 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
128 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
129 dump_enabled_p.
130 (finish_optimization_passes): Update finish_graph_dump_file loop.
131 (enable_rtl_dump_file): Remove.
132 * tree-dump.c (dump_files): Adjust and add RTL dump files.
133 (enable_rtl_dump_file): Add here.
134 * tree.h (enum tree_dump_index): Add RTL dump file indices.
135 * doc/invoke.texi (Debugging options): Document new RTL debugging
136 options. Update.
137
138 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
139
140 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
141 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
142 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
143 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
144 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
145 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
146 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
147 vec.h: Fix comment formatting.
148
149 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
150
151 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
152 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
153 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
154 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
155 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
156 tree-ssa-loop-niter.c, tree-ssa-operands.c,
157 tree-ssa-operands.h, tree-ssa-propagate.c,
158 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
159 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
160
161 2004-09-05 Diego Novillo <dnovillo@redhat.com>
162
163 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
164 vectorizer is enabled.
165
166 2004-09-05 Andreas Jaeger <aj@suse.de>
167
168 * tree-if-conv.c: Spell check comments and clean up whitespace.
169
170 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
171
172 * tree-ssa-loop-ivopts.c: New file.
173 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
174 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
175 target_pres_cost, target_spill_cost): Declare.
176 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
177 spill_cost): Renamed to ...
178 (target_avail_regs, target_res_regs, target_small_cost,
179 target_pres_cost, target_spill_cost): ... and exported.
180 (init_set_costs, global_cost_for_size): Work with renamed variables.
181 * common.opt (flag_ivopts): New flag.
182 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
183 REF_ORIGINAL.
184 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
185 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
186 generating SSA form.
187 (force_gimple_operand): New function.
188 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
189 * tree-cfg.c (stmt_bsi): New function.
190 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
191 PARAM_IV_MAX_CONSIDERED_USES): New.
192 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
193 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
194 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
195 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
196 * tree-nested.c (build_addr): Export.
197 * tree-optimize.c (init_tree_optimization_passes): Add
198 pass_iv_optimize.
199 * tree-pass.h (pass_iv_optimize): Declare.
200 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
201 IMAGPART_EXPR.
202 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
203 as a phi node argument.
204 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
205 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
206 functions.
207 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
208 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
209 pass_iv_optimize): New pass.
210 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
211 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
212 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
213 * tree.h (REF_ORIGINAL): New macro.
214 (build_int_cst_type, unsigned_type_for, zero_p,
215 cst_and_fits_in_hwi, build_addr): Declare.
216 * doc/invoke.texi (-fivopts): Document.
217 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
218 PARAM_IV_MAX_CONSIDERED_USES): Document.
219 * doc/passes.texi: Document induction variable optimizations pass.
220
221 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
222
223 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
224 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
225 * c-common.c (c_common_attribute_table): Accept parameters to
226 sentinel attribute.
227 (check_function_sentinel, handle_sentinel_attribute): Likewise.
228 * doc/extend.texi: Update accordingly.
229
230 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
231
232 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
233 New.
234 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
235 attribute.
236 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
237 New functions.
238 (c_common_attribute_table): Add `sentinel' attribute.
239 (check_function_arguments): Handle `sentinel' attribute.
240 * doc/extend.texi: Document `sentinel' attribute.
241
242 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
243
244 * configure: Regenerated.
245
246 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
247
248 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
249
250 * tree.c (save_expr): No longer TREE_READONLY.
251
252 2004-09-04 Jan Hubicka <jh@suse.cz>
253
254 * passes.c (rest_of_clean_state): Fix merge conflict made during
255 commiting the patch.
256
257 2004-09-04 Jan Hubicka <jh@suse.cz>
258
259 * passes.c (rest_of_clean_state): Decompose the instruction stream.
260
261 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
262
263 * doc/md.texi (shift patterns): New anchor. Add reference to
264 TARGET_SHIFT_TRUNCATION_MASK.
265 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
266 * target.h (shift_truncation_mask): New target hook.
267 * targhook.h (default_shift_truncation_mask): Declare.
268 * targhook.c (default_shift_truncation_mask): Define.
269 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
270 (TARGET_INITIALIZER): Include it.
271 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
272 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
273 reject all out-of-range values. Fix sign-extension code for modes
274 whose width is smaller than HOST_BITS_PER_WIDE_INT.
275 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
276 (expand_superword_shift, expand_subword_shift): Likewise.
277 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
278 (expand_binop): Use them to implement double-word shifts.
279 * config/arm/arm.c (arm_shift_truncation_mask): New function.
280 (TARGET_SHIFT_TRUNCATION_MASK): Define.
281
282 2004-09-04 Jan Hubicka <jh@suse.cz>
283
284 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
285 (mix): New macro copied from hashtab.c
286 (iterative_hash_hashval_t, iterative_hash_pointer,
287 iterative_hash_host_wide_int): New functions based on hashtab.c
288 implementation.
289
290 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
291
292 * config/mips/mips.md (mask): New mode attribute.
293 (zero_extendsidi2): Add memory alternative.
294 (*zero_extendsidi2_mem): Delete.
295 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
296 memory_operand in the TARGET_MIPS16 check.
297 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
298 Redefine using :GPR and :SHORT.
299 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
300
301 2004-09-04 Uros Bizjak <uros@kss-loka.si>
302
303 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
304 using rint_optab.
305 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
306 expand_builtin_mathfn.
307 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
308 btrunc?f patterns for btrunc_optab. Implement rint_optab using
309 rint?f patterns.
310 * optabs.c (init_optabs): Initialize rint_optab.
311 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
312 Add new OTI_rint.
313 (btrunc_optab): Rename macro from trunc_optab.
314 (rint_optab): Define corresponding macro.
315
316 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
317 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
318
319 * config/i386/i386-protos.h (emit_i387_cw_initialization):
320 Change prototype. Add new int parameter.
321 * config/i386/i386.c (emit_i387_cw_initialization):
322 Handle new rounding modes.
323
324 * config/i386/i386.h (enum fp_cw_mode): Delete.
325 (MODE_NEEDED): Handle new rounding modes.
326 (EMIT_MODE_SET): Change condition to handle new rounding modes.
327
328 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
329 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
330 represent different rounding modes of frndint insn.
331 (type): Add frndint type.
332 (i387, length, memory): Handle this type.
333 (i387_cw): New attribute definition.
334 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
335 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
336 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
337 Add "i387_cw" attribute defined to "trunc".
338 (x86_fnstcw_1): Remove comment.
339 (*frndintxf2): Rename insn definition to frndintxf2. Move
340 insn definition near rint?f2 expanders.
341 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
342 rintf and rintl built-ins as inline x87 intrinsics.
343 (frndintxf2_floor): New pattern to implement floor rounding
344 mode with frndint x87 instruction.
345 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
346 floorf and floorl built-ins as inline x87 intrinsics.
347 (frndintxf2_ceil): New pattern to implement ceil rounding
348 mode with frndint x87 instruction.
349 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
350 ceilf and ceill built-ins as inline x87 intrinsics.
351 (frndintxf2_trunc): New pattern to implement trunc rounding
352 mode with frndint x87 instruction.
353 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
354 truncf and truncl built-ins as inline x87 intrinsics.
355 (frndintxf2_mask_pm): New pattern to implement rounding
356 mode with exceptions with frndint x87 instruction.
357 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
358 implement nearbyint, nearbyintf and nearbyintl built-ins as
359 inline x87 intrinsics.
360
361 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
362
363 * config/mips/mips.md (SHORT): New mode macro.
364 (size): New mode attribute.
365 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
366 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
367 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
368 !ISA_HAS_SEB_SEH.
369 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
370 *extend[qh]isi2_hw patterns and extending them to di.
371 (extendqihi2): Implement as define_insn_and_split that produces
372 extendqisi2 after reload.
373
374 2004-09-03 Devang Patel <dpatel@apple.com>
375
376 * Makefile.in (OBJS-common): Add tree-if-conv.o
377 (tree-if-conv.o): New rule.
378 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
379 (get_loop_body_in_bfs_order): New.
380 * cfgloop.h (get_loop_body_in_bfs_order): New.
381 * tree-flow.h (enum move_pos): Move here from ..
382 * tree-ssa-loop-im.c (enum move_pos): here.
383 (movement_possibility): Make externally visible.
384 * tree-optimize.c (init_tree_optimization_passes): New entry for
385 if conversion pass.
386 * tree-pass.h (pass_if_conversion): New.
387 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
388 * tree-if-conv.c: New file.
389 * doc/passes.texi: Document tree if-conversion pass.
390 * doc/tree-ssa.texi: Same.
391
392 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
393
394 PR target/14925:
395 Makefile.in (LIB2ADDEHSTATIC): New.
396 (LIB2ADDEHSHARED): New.
397 (LIBUNWIND): New.
398 (LIBUNWINDDEP): New.
399 (SHLIBUNWIND_LINK): New.
400 (SHLIBUNWIND_INSTALL): New.
401 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
402 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
403 (clean): Remove libunwind*
404 (stage1-start): Remove and copy stage1/libunwind*.
405 (stage2-start): Remove and copy stage2/libunwind*.
406 (stage3-start): Remove and copy stage3/libunwind*.
407 (stage4-start): Remove and copy stage4/libunwind*.
408 (stageprofile-start): Remove and copy stageprofile/libunwind*.
409 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
410
411 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
412 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
413 tmake_file if --with-system-libunwind isn't used.
414
415 * config/ia64/t-glibc-libunwind: New file.
416 * config/t-libunwind-elf: Likewise.
417 * unwind-compat.c: Likewise.
418 * unwind-compat.h: Likewise.
419 * unwind-dw2-fde-compat.c: Likewise.
420
421 * config/ia64/t-glibc (LIB2ADDEH): Updated.
422 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
423
424 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
425 aliases if needed.
426 * unwind-dw2-fde-glibc.c: Likewise.
427 * unwind-dw2.c: Likewise.
428
429 * config/t-libunwind (LIB2ADDEH): Updated.
430 (LIB2ADDEHSTATIC): New.
431 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
432 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
433
434 * configure.ac: Change --enable-libunwind-exceptions to
435 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
436 * configure: Regenerated.
437 * config.in: Updated.
438
439 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
440 above and mention --with-system-libunwind.
441 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
442 removed in gcc 3.4.3 and later.
443
444 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
445 USE_LIBUNWIND_EXCEPTIONS is defined.
446
447 * mklibgcc.in: Support libunwind.
448
449 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
450
451 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
452 m_NOCONA.
453
454 2004-09-03 Richard Henderson <rth@redhat.com>
455
456 PR middle-end/9997
457 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
458 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
459 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
460 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
461 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
462 resize_stack_vars_conflict, add_stack_var_conflict,
463 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
464 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
465 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
466 expand_one_static_var, expand_one_hard_reg_var,
467 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
468 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
469 (expand_used_vars): Rewrite.
470 * Makefile.in (cfgexpand.o): Update dependencies.
471
472 2004-09-04 Jan Hubicka <jh@suse.cz>
473
474 * cfg.c (free_edge): Use ggc_free.
475 (expunge_block): Use ggc_free.
476 * passes.c (rest_of_clean_state): Free after compilation.
477 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
478 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
479
480 2004-09-03 James E Wilson <wilson@specifixinc.com>
481
482 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
483 DECL_EXTERNAL check.
484
485 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
486
487 * final.c (output_in_slot): New global variable.
488 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
489 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
490 'output_in_slot' before invoking output_asm_insn.
491 (output_asm_insn): Add a space after the tab if 'output_in_slot'
492 is set.
493 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
494 final_scan_insn.
495 (output_sibcall): Likewise.
496
497 2004-09-03 Jan Hubicka <jh@suse.cz>
498
499 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
500 * tree-ssanames (init_ssanames): Likewise.
501
502 2004-09-03 Ziemowit Laski <zlaski@apple.com>
503
504 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
505 objc_declare_protocols, objc_start_protocol,
506 objc_start_class_interface, objc_start_category_interface,
507 objc_continue_interface, objc_finish_interface,
508 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
509 objc_start_class_implementation, objc_start_category_implementation,
510 objc_continue_implementation, objc_finish_implementation,
511 objc_add_method_declaration, objc_start_method_definition,
512 objc_finish_method_definition, objc_build_keyword_decl,
513 objc_build_method_signature, objc_build_encode_expr,
514 objc_build_protocol_expr, objc_build_selector_expr,
515 objc_build_message_expr, objc_build_string_object,
516 objc_get_class_reference, objc_get_protocol_qualified_type,
517 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
518
519 2004-09-03 James E Wilson <wilson@specifixinc.com>
520
521 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
522
523 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
524 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
525 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
526 (mips_recip1_<fmt>): Use frdiv1 type.
527 (mips_recip2_<fmt>): Use frdiv2 type.
528 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
529 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
530 and frsqrt1.
531 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
532
533 2004-09-03 Daniel Jacobowitz <dan@debian.org>
534
535 * reload.c (find_reloads): Swap operand_loc pointers for
536 find_dummy_reload if we have swapped two operands.
537
538 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
539
540 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
541 to get the tablejump-insn before the jump-table label.
542
543 2004-09-03 Ziemowit Laski <zlaski@apple.com>
544
545 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
546 objc_declare_protocols, objc_build_message_expr,
547 objc_finish_message_expr, objc_build_selector_expr,
548 objc_build_protocol_expr, objc_build_encode_expr,
549 objc_build_string_object, objc_get_protocol_qualified_type,
550 objc_get_class_reference, objc_get_class_ivars,
551 objc_start_class_interface, objc_start_category_interface,
552 objc_start_protocol, objc_continue_interface, objc_finish_interface,
553 objc_start_class_implementation, objc_start_category_implementation,
554 objc_continue_implementation, objc_finish_implementation,
555 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
556 objc_add_method_declaration, objc_start_method_definition,
557 objc_finish_method_definition, objc_add_instance_variable,
558 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
559 objc_finish_try_stmt, objc_begin_catch_clause,
560 objc_finish_catch_clause, objc_build_finally_clause,
561 objc_build_synchronized, objc_static_init_needed_p,
562 objc_generate_static_init_call): New prototypes.
563
564 2004-09-03 Steve Ellcey <sje@cup.hp.com>
565
566 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
567 is only one reg.
568 (ia64_function_value): Ditto.
569
570 2004-09-03 Jan Beulich <jbeulich@novell.com>
571
572 * config.gcc: Resurrect NetWare as a target. Handle special case of
573 Novell linker to be used (specified through --with-ld=) and threading
574 model of either Posix (default) or NKS.
575 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
576 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
577 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
578 * config/i386/netware.c, config/i386/netware.h: New.
579 * config/i386/nwld.c, config/i386/nwld.h: New.
580 * config/i386/netware-crt0.c: New.
581 * config/i386/netware-libgcc.c: New.
582 * config/i386/netware-libgcc.def: New.
583 * config/i386/netware-libgcc.exp: New.
584 * config/i386/t-netware, config/i386/t-nwld: New.
585 * gthr-nks.h: New.
586 * doc/install.texi: Document NKS threading model.
587
588 2004-09-03 Jan Beulich <jbeulich@novell.com>
589
590 PR c/7054
591 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
592 * tree.h (initial_max_fld_align): Declare
593 * stor-layout.c (initial_max_fld_align): Define and initialize.
594 (maximum_field_alignment): Initialize to the same value.
595 * common.opt: Add -fpack-struct= variant of switch.
596 * opts.c: Handle -fpack-struct= variant of switch.
597 * c-pragma.c: Change #pragma pack() handling so that it becomes
598 compatible to other compilers: accept individual 'push' argument,
599 make final pop restore (command line) default, correct interaction
600 of push/pop and sole specification of a new alignment (so that the
601 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
602 to #pragma pack(push, <n>).
603 * doc/extend.texi: New node "Structure-Packing Pragmas" under
604 "Pragmas", describing #pragma pack.
605 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
606 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
607 Document new TARGET_DEFAULT_PACK_STRUCT.
608
609 2004-09-03 Devang Patel <dpatel@apple.com>
610
611 * dwarf2out.c (gen_field_die). Equate decl number to die.
612
613 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
614
615 PR target/15832
616 * global.c (modify_reg_pav): New function.
617 (make_accurate_live_analysis): Call the new function. Move pavin
618 modification by earlyclobber set into the new function.
619
620 2004-09-03 Andreas Schwab <schwab@suse.de>
621
622 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
623 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
624 extended.
625
626 2004-09-02 Jan Beulich <jbeulich@novell.com>
627
628 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
629 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
630 not unwind code specific ones.
631 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
632 Remove unwind code specific dependencies.
633 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
634 Remove gbl-ctors.h.
635 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
636 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
637 * tsystem.h: Declare memcpy and memset when inhibit_libc.
638
639 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
640
641 * combine.c (try_combine): Delay modifying of insns which cannot
642 be easily undone.
643
644 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
645
646 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
647 tree-loop-im.
648 * gcc/tree-ssa-loop.c: Ditto
649 * gcc/tree-ssa-loop-ivcanon.c: Ditto
650 * gcc/doc/invoke.texi: Ditto.
651
652 2004-09-02 Ziemowit Laski <zlaski@apple.com>
653
654 * c-decl.c (store_parm_decls_newstyle): Make static.
655 (store_parm_decls_from): New function.
656 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
657 (store_parm_decls_from): New prototype.
658
659 2004-09-02 David Edelsohn <edelsohn@gnu.org>
660
661 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
662 HImode with STRICT_ALIGNMENT.
663
664 2004-09-02 Mark Mitchell <mark@codesourcery.com>
665
666 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
667 (TARGET_OS_CPP_BUILTINS): Likewise.
668 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
669 TARGET_BPABI_CPP_BUILTINS.
670
671 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
672
673 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
674
675 2004-09-02 Eric Christopher <echristo@redhat.com>
676
677 * builtins.c (expand_builtin_cabs): Delete.
678 (expand_builtin): If unable to fold the values do a normal
679 library call for builtin_cab*.
680 (fold_builtin_cabs): Depend on optimize and optimize_size.
681 * optabs.c (expand_cmplxdiv_straight): Delete.
682 (expand_cmplxdiv_wide): Ditto.
683 (expand_vector_binop): Ditto.
684 (expand_vector_unop): Ditto.
685 (expand_complex_abs): Delete.
686 (expand_binop): Remove calls to above functions.
687 Remove open coding of complex arithmetic.
688 (expand_unop): Ditto.
689 * optabs.h: Remove prototypes.
690
691 2004-09-02 Ziemowit Laski <zlaski@apple.com>
692
693 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
694 * c-tree.h (store_parm_decls_newstyle): New prototype.
695
696 2004-09-02 Geoffrey Keating <geoffk@apple.com>
697
698 * config/rs6000/rs6000.c (expand_block_clear): Use vector
699 instructions if available.
700 (expand_block_move): Likewise.
701
702 2004-09-03 Jan Hubicka <jh@suse.cz>
703
704 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
705
706 2004-09-02 Mark Mitchell <mark@codesourcery.com>
707
708 * config/arm/symbian.h (LIB_SPEC): Define to empty.
709 * config/arm/t-symbian (SHLIB_LC): Likewise.
710
711 2004-09-02 Paul Brook <paul@codesourcery.com>
712
713 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
714
715 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
716
717 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
718 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
719 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
720 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
721 (mips_issue_rate): Remove unreachable abort.
722 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
723 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
724 (mips_block_move_straight, print_operand_address, mips_file_start)
725 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
726 (mips_output_conditional_branch, mips_expand_builtin_direct)
727 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
728 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
729 with gcc_assert.
730
731 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
732
733 * config/mips/mips.md (*lea_high64): Change split condition to
734 flow2_completed. Add a peephole2 to generate a more parallel version.
735
736 2004-09-02 Jan Hubicka <jh@suse.cz>
737
738 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
739 GGC.
740
741 * ggc-page.c: include tree-flow.h.
742 (extra_order_size_table): Add stmt_ann_d.
743 (STAT_LABEL): Rename from ....
744 (LABEL): ... this one.
745 * Makefile.in (ggc-page.o): Add dependency.
746
747 * ggc-common.c (ggc_force_collect): New global variable.
748 (loc_description): Add fields "freed", "collected"
749 (ptr_hash): New static hash
750 (ptr_hash_entry): New structure.
751 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
752 (ggc_record_overhead): Take ptr argument, record it
753 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
754 (cmp_statistics): Imrove sorting.
755 (dump_ggc_loc_statistics): Output newly collected statistics
756 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
757 (ggc_free): Call ggc_free_overhead.
758 (ggc_collect): Force collection when asked to be forced.
759 (ggc_collect): Call ggc_prune_overhead_list.
760 * ggc.h (ggc_force_collect): Declare
761 (ggc_record_overhead): Update prototype.
762 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
763
764 2004-09-02 James E Wilson <wilson@specifixinc.com>
765
766 * common.opt (ftrapping-math): Default to on.
767
768 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
769
770 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
771
772 2004-09-02 Denis Chertykov <denisc@overta.ru>
773
774 PR target/16884
775 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
776 match_scratch.
777 (*movmemqi_insn): Likewise.
778 (*movmemhi): Likewise.
779 (clrmemhi): Likewise.
780 (*clrmemqi): Likewise.
781 (*clrmemhi): Likewise.
782
783 2004-09-02 Paul Brook <paul@codesourcery.com>
784
785 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
786 default_use_cxa_atexit=yes.
787
788 2004-09-02 Alan Modra <amodra@bigpond.net.au>
789
790 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
791 (struct kernel_old_ucontext): Delete.
792 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
793 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
794 when IN_LIGGCC2.
795
796 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
797
798 * toplev.c (process_options): Fix typo.
799
800 2004-09-01 Richard Henderson <rth@redhat.com>
801
802 PR middle-end/17258
803 * calls.c (initialize_argument_information): Tighten pass-through
804 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
805 Use build_fold_addr_expr.
806 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
807 that assumes ADDR_EXPR allocates stack space.
808 * fold-const.c (build_fold_addr_expr_with_type): Look through
809 WITH_SIZE_EXPR.
810
811 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
812
813 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
814 * ggc.h (ggc_alloc_rtx): Delete.
815
816 2004-09-01 Roger Sayle <roger@eyesopen.com>
817
818 * expmed.c (enum alg_code): Remove long unused enumeration values.
819 (struct mult_cost): New structure to hold the "score" of a synthetic
820 multiply sequence, including both a rtx_cost and a latency field.
821 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
822 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
823 (struct algorithm): Change type of cost field to be mult_cost.
824 (synth_mult): Change type of cost_limit argument to be a
825 pointer to a mult_cost. Update all cost comparisons to use the
826 new mult_cost infrastructure. For alg_add_factor and
827 alg_sub_factor operations, latency is lower than the rtx_cost.
828 (choose_mult_variant): Update calls to synth_mult. Perform
829 cost comparisons using the new mult_cost infrastructure.
830 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
831 to optain the total rtx_cost of a synth_mult "algorithm".
832
833 2004-09-01 David Edelsohn <edelsohn@gnu.org>
834
835 * config/rs6000/power4.md: Increase store latency to 12.
836 * config/rs6000/power5.md: Same.
837
838 2004-09-01 James E Wilson <wilson@specifixinc.com>
839
840 PR target/14064
841 * config/avr/avr.c (avr_unique_section): Delete prototype and
842 definition.
843 (TARGET_ASM_UNIQUE_SECTION): Delete.
844
845 2004-09-01 Ziemowit Laski <zlaski@apple.com>
846
847 * c-parse.in (primary): Call objc_build_message_expr(),
848 objc_build_selector_expr(), objc_build_protocol_expr(),
849 objc_build_encode_expr() and objc_build_string_object() instead of
850 build_message_expr(), build_selector_expr(), build_protocol_expr(),
851 build_encode_expr() and build_objc_string_object(), respectively.
852 (component_decl_list2): Call objc_get_class_ivars() instead of
853 get_class_ivars_from_name().
854 (keyworddecl): Call objc_build_keyword_decl() instead of
855 build_keyword_decl().
856 (receiver): Call objc_get_class_reference() instead of
857 get_class_reference().
858 (reswords): Add blank line before @@ifobjc section, for clarity.
859
860 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
861
862 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
863 to Altivec vetors.
864
865 2004-09-01 Wu Yongwei <adah@sh163.net>
866 Danny Smith <dannysmith@users.sourceforge.net>
867
868 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
869 not Windows 'DWORD'.
870 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
871 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
872 (__gthr_win32_recursive_mutex_init_function): Add prototype for
873 __GTHREAD_HIDE_WIN32API case..
874 (__gthr_win32_recursive_mutex_lock): Likewise.
875 (__gthr_win32_recursive_mutex_trylock): Likewise.
876 (__gthr_win32_recursive_mutex_unlock): Likewise.
877 (__gthread_recursive_mutex_init_function); Add definition for
878 __GTHREAD_HIDE_WIN32API case.
879 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
880 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
881 call to InterlockedDecrement.
882
883 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
884
885 * tree-tailcall.c (find_tail_calls): Also fail is statement has
886 volatile operands.
887
888 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
889
890 * doc/c-tree.texi: Document new operands for ARRAY_REF and
891 COMPONENT_REF.
892
893 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
894
895 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
896 * common.opt (fspeculative-prefetching): New.
897 * flags.h (flag_speculative_prefetching_set): Declare.
898 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
899 values.
900 * opts.c (flag_sepculative_prefetching_set): New variable.
901 (common_handle_option): Handle -fspeculative-prefetching.
902 * passes.c (rest_of_compilation): Ditto.
903 * profile.c (instrument_values, compute_value_histograms, branch_prob):
904 Use vectors instead of arrays.
905 * toplev.c (process_options): Handle -fspeculative-prefetching.
906 * rtl-profile.c: Include ggc.h.
907 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
908 rtl_gen_one_value_profiler_no_edge_manipulation,
909 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
910 argument changed.
911 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
912 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
913 argument changed.
914 * value-prof.c: Include ggc.h.
915 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
916 macros.
917 (insn_prefetch_values_to_profile, find_mem_reference_1,
918 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
919 speculative_prefetching_transform): New.
920 (value_profile_transformations): Call speculative_prefetching_transform.
921 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
922 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
923 tree_find_values_to_profile, find_values to profile): Use vectors
924 instead of arrays.
925 (free_profiled_values): Removed.
926 * value-prof.h (struct histogram_value): Renamed to
927 struct histogram_value_t.
928 (histogram_value, histogram_values): New types.
929 (find_values_to_profile): Declaration changed.
930 (free_profiled_values): Removed.
931 (struct profile_hooks): Type of argument of the hooks changed to
932 histogram_value.
933 * doc/invoke.texi (-fspeculative-prefetching): Document.
934
935 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
936
937 PR rtl-optimization/16408
938 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
939
940 2004-09-01 Richard Henderson <rth@redhat.com>
941
942 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
943 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
944
945 2004-09-01 Jakub Jelinek <jakub@redhat.com>
946
947 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
948
949 2004-09-01 Mike Stump <mrs@apple.com>
950
951 * config/darwin.c (machopic_symbol_defined_p): In addition to
952 being SYMBOL_REF_LOCAL_P, a symbol must also be
953 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
954 defined in this output file, or translation unit in the case
955 of IMA not being used.
956 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
957 never need .indirect_symbol when indirecting.
958
959 2004-09-01 Jakub Jelinek <jakub@redhat.com>
960
961 * Makefile.in (bb-reorder.o): Add several dependencies.
962
963 2004-09-01 Jakub Jelinek <jakub@redhat.com>
964
965 * fold-const.c (operand_equal_p): Require equal sign also for
966 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
967
968 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
969
970 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
971 for use in configargs.h. Put the cname in a separate variable. Use
972 that to set target_cpu_default2.
973
974 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
975 Nick Clifton <nickc@redhat.com>
976
977 * config/sh/sh.md ("length"): Increase branch length when
978 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
979 constant, 2 byte for aligning the constant.
980
981 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
982
983 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
984 CPU.
985 (arm7tdmi-s): New CPU name.
986 * arm/arm.c (ARM_CORE): Update for new format.
987 * arm/arm.h (ARM_CORE): Likewise.
988 * arm/gentune.sh: Update for extra field.
989 * config.gcc: Likewise.
990 * arm/arm-tune.md: Regenerate.
991 * doc/invoke.texi: Document the real processor names for ARM cpus.
992
993 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
994
995 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
996 (floatdidf): New functions.
997 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
998 (floatdisf): New functions.
999 * t-arm-elf: Use them.
1000
1001 2004-09-01 Ziemowit Laski <zlaski@apple.com>
1002
1003 * c-common.h (lookup_interface): Remove prototype.
1004 (is_class_name): Rename to objc_is_class_name.
1005 (lookup_objc_ivar): Rename to objc_lookup_ivar.
1006 (get_current_scope): Rename to objc_get_current_scope.
1007 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
1008 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
1009 (yylexname): Call objc_is_class_name() instead of is_class_name().
1010 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
1011 instead of lookup_objc_ivar().
1012 * stub-objc.c (lookup_interface): Remove stub.
1013 (is_class_name): Rename to objc_is_class_name.
1014 (lookup_objc_ivar): Rename to objc_lookup_ivar.
1015
1016 2004-08-31 Mark Mitchell <mark@codesourcery.com>
1017
1018 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
1019 * config/arm/lib1funcs.asm: Do not include supplemental .S files
1020 when compiling for Symbian.
1021 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
1022 (TARGET_OS_CPP_BUILTINS): Likewise.
1023 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
1024
1025 2004-08-31 Stan Shebs <shebs@apple.com>
1026
1027 * toplev.c (process_options): Ensure debug_hooks is initialized.
1028
1029 2004-08-31 Mark Mitchell <mark@codesourcery.com>
1030
1031 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
1032 * target.h (cxx): Add export_class_data.
1033 * config/arm/arm.c (arm_cxx_export_class_data): New function.
1034 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
1035 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
1036
1037 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
1038
1039 * config/sh/sh.c (output_branch): Check the insn length possibly
1040 in the delayed slot.
1041
1042 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1043
1044 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
1045 blank after ')'.
1046 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
1047
1048 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
1049 (c_sizeof_of_alignof_type): Likewise.
1050 * expr.c (array_ref_element_size): Likewise.
1051 (highest_pow2_factor_for_target): Likewise.
1052 * gimplify.c (canonicalize_addr_expr): Likewise.
1053 (gimplify_compound_lval): Likewise.
1054 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
1055 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
1056 * varasm.c (assemble_variable): Likewise.
1057 (output_constant_def_contents): Alignments are unsigned.
1058
1059 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1060 Jeff Law <law@redhat.com>
1061
1062 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
1063 gets modified.
1064
1065 2004-08-31 Mark Mitchell <mark@codesourcery.com>
1066
1067 * hooks.c (hook_bool_void_true): New function.
1068 * hooks.h (hook_bool_void_true): Declare.
1069 * target-def.h (TARGET_CXX): Add
1070 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
1071 * target.h (struct cxx): Add key_method_may_be_inline.
1072 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
1073 function.
1074 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
1075 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
1076 __THUMB_INTERWORK.
1077
1078 2004-08-31 Denis Chertykov <denisc@overta.ru>
1079
1080 PR target/15417
1081 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
1082 frame pointer register only in Pmode while reload in progress.
1083
1084 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
1085
1086 PR target/15334
1087 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
1088 because it breaks the 32-bit shift patterns that rely on a match_dup.
1089
1090 2004-08-31 Matt Austern <austern@apple.com>
1091
1092 * config/darwin.c (darwin_make_decl_one_only): Allocate section
1093 names once per compilation, instead of once per symbol.
1094
1095 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
1096
1097 * Makefile.in (build_subdir): New substitution.
1098 (fixinc.sh): Simplify heavily since fixincludes is already built.
1099 (stmp-fixinc): Depend on specs.ready.
1100 (install-mkheaders): Use new location of fixincludes.
1101 (clean): Do not descend into fixinc.
1102 (FORBUILD): Replace with ../$(build_subdir).
1103 * configure.ac (build_subdir): Substitute.
1104 (FORBUILD): Do not set.
1105 (all_outputs): Remove fixinc/Makefile.
1106 (default commands): Do not create links in fixinc.
1107 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
1108 the fixincludes configuration steps and substituting
1109 @FIXINCL@ in fixinc.in.
1110 * fixinc.in: New, from fixinc/fixincl.sh.
1111
1112 * fixinc/*: Removed.
1113
1114 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
1115
1116 * attribs.c (strip_attrs): Remove.
1117 (split_specs_attrs): Move ...
1118 * c-decl.c: ... to here.
1119 * tree.h (split_specs_attrs, strip_attrs): Remove.
1120 * c-tree.h (split_specs_attrs): Declare.
1121
1122 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
1123
1124 * read-rtl.c: Disable RTL checking.
1125 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
1126
1127 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
1128
1129 * config/mips/mips.md (fcond): New code macro and attribute.
1130 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
1131 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
1132 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
1133
1134 2004-08-30 Mark Mitchell <mark@codesourcery.com>
1135
1136 Revert:
1137 2004-08-29 Mark Mitchell <mark@codesourcery.com>
1138 PR rtl-optimization/16590
1139 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
1140
1141 2004-08-30 Andrew Pinski <apinski@apple.com>
1142
1143 * hard-reg-set.h:
1144 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
1145 * ChangeLog: Fix previous ChangeLog entry.
1146
1147 PR rtl-opt/13987
1148 * config.host (use_long_long_for_widest_fast_int): New, default is
1149 off.
1150 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
1151 * configure.ac: If use_long_long_for_widest_fast_int, then
1152 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
1153 * configure: Regenerate.
1154 * config.in: Regenerate.
1155 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
1156 New: widest integer type supported efficiently in hardware for the
1157 host.
1158 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
1159 HOST_BITS_PER_WIDEST_FAST_INT.
1160 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
1161 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
1162 HOST_WIDEST_FAST_INT
1163 instead of HOST_WIDE_INT.
1164 (HARD_REG_SET_LONGS): Likewise.
1165 (UHOST_BITS_PER_WIDE_INT): Likewise.
1166 Change the checks for the fast cases to be based on
1167 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
1168
1169 2004-08-30 Steven Bosscher <stevenb@suse.de>
1170
1171 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
1172 not the pointers.
1173
1174 2004-08-30 Geoffrey Keating <geoffk@apple.com>
1175
1176 PR 12738
1177 PR 17205
1178 Radar 3460526
1179 Radar 3775729
1180 * c-decl.c (grokdeclarator): Produce error for 'static' on local
1181 function declaration.
1182
1183 2004-08-30 Richard Henderson <rth@redhat.com>
1184
1185 * expr.c (array_ref_element_size): Force aligned_size back to
1186 sizetype.
1187 (component_ref_field_offset): Similarly for aligned_offset.
1188 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
1189 low-bound, element-size, field-offset fields rather than
1190 computed values.
1191
1192 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
1193
1194 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
1195 redundant code.
1196
1197 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
1198
1199 * c-tree.h (struct language_function): Add arg_info element.
1200 * c-decl.c (current_function_arg_info): New.
1201 (grokdeclarator, store_parm_decls): Use it instead of
1202 DECL_ARGUMENTS.
1203 (c_push_function_context, c_pop_function_context): Save and
1204 restore it.
1205
1206 2004-08-30 Richard Henderson <rth@redhat.com>
1207
1208 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
1209 COMPONENT_REF to pointer arithmetic.
1210 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
1211 constant "c" as a valid constant initializer. Allow narrowing of
1212 differences against the same base object, for any base object.
1213
1214 2004-08-30 Richard Henderson <rth@redhat.com>
1215
1216 * expr.c (expand_expr_addr_expr): New.
1217 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
1218
1219 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
1220
1221 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
1222 (mips_fp_condition): New enum.
1223 (mips_fp_conditions): New array.
1224 (print_fcc_operand): Delete.
1225 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
1226 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
1227 (builtin_description): Add "cond" field.
1228 (DIRECT_BUILTIN): Initialize it.
1229 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
1230 into INSN and CODE. Initialize the "cond" field.
1231 (CMP_BUILTINS): Update accordingly.
1232 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
1233 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
1234 mips_fp_condition as argument. Make it the final operand of the
1235 comparison instruction.
1236 (mips_expand_builtin): Update accordingly.
1237 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
1238 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
1239 the gaps.
1240 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
1241 Don't use the 'Q' operand prefix; just print the operand normally.
1242 (mips_cabs_*, mips_c_*): Delete, replacing with...
1243 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
1244 patterns. Split the 4s versions into 2 ps patterns after reload.
1245
1246 2004-08-30 Richard Henderson <rth@redhat.com>
1247
1248 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
1249 assuming an ADDR_EXPR is non-null.
1250
1251 2004-08-30 Jason Merrill <jason@redhat.com>
1252
1253 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
1254
1255 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
1256
1257 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
1258 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
1259 gcc_assert and gcc_unreachable instead of abort.
1260 * alloc-pool.c (abort, fancy_abort): Remove.
1261 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
1262 gcc_assert or gcc_unreachable.
1263 * attribs.c (init_attributes, decl_attributes): Likewise.
1264 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
1265 mark_bb_for_unlikely_executed_section,
1266 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
1267 fix_crossing_unconditional_branches): Likewise.
1268 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
1269 bitmap_operation): Likewise.
1270 * bt-load.c (insn_sets_btr_p, augment_live_range,
1271 move_btr_def): Likewise.
1272 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
1273 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
1274 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
1275 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
1276 expand_builtin_memcmp, expand_builtin_args_info,
1277 std_gimplify_va_arg_expr, expand_builtin_unop,
1278 expand_builtin_fputs, expand_builtin_profile_func,
1279 expand_builtin_fork_or_exec, fold_builtin_bitop,
1280 fold_builtin_classify, fold_builtin_fputs): Likewise.
1281
1282 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
1283
1284 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
1285 * gcov.c (abort): Remove undef.
1286
1287 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
1288 (struct tree_binfo): Remove primary field.
1289
1290 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
1291
1292 * fixinc/Makefile.in (machname.h): Remove.
1293 (fixincl.x): Do not pass $@ to genfixes.
1294 * fixinc/genfixes: Remove code to produce machname.h.
1295 * fixinc/fixincl.sh: Move it here instead.
1296 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
1297 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
1298 return a bool indicating whether pz_mn_name_pat is NULL.
1299 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
1300 Declare extern C variables for the ENV_TABLE.
1301 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
1302 instead use the result of mn_get_regexps.
1303 * fixinc/fixtests.c: Likewise.
1304
1305 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
1306
1307 * configure.ac: Do not run fixincludes after stage1 during
1308 toplevel bootstrap.
1309 * configure: Regenerate.
1310
1311 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
1312
1313 * sched-deps.c (get_condition): Partially revert previous, by never
1314 trying to extract the condition from a condjump.
1315
1316 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
1317
1318 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
1319 (handle_visibility_attribute, c_determine_visibility): Likewise.
1320 * c-common.h (my_friendly_assert): Remove.
1321
1322 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
1323
1324 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
1325 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
1326 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
1327 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
1328 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
1329
1330 2004-08-30 Diego Novillo <dnovillo@redhat.com>
1331
1332 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
1333 in COMPONENT_REF nodes.
1334
1335 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
1336
1337 PR c++/15378
1338 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
1339 global_dc->warning_as_error_requested.
1340 * diagnostic.c (diagnostic_initialize): Tidy.
1341 * diagnostic.h (diagnostic_context::x_data): Remove
1342 (diagnostic_context::issue_warnings_are_errors_message): Rename
1343 from warnings_are_errors_message.
1344 (diagnostic_context::warning_as_error_requested): New.
1345
1346 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
1347
1348 * sched-deps.c (get_condition): Fix breakage in previous patch.
1349
1350 2004-08-30 Paul Brook <paul@codesourcery.com>
1351
1352 * doc/install.texi: Fix broken mpfr link.
1353
1354 2004-08-29 David O'Brien <obrien@FreeBSD.org>
1355
1356 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
1357 other FreeBSD platforms.
1358
1359 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
1360
1361 * arm.h (REVERSE_CONDITION): Define.
1362 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
1363
1364 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
1365
1366 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
1367 just the codes, call reversed_comparison_code ().
1368 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
1369 (not_reg_cond): Use reversed_comparison_code.
1370 (and_reg_cond): Likewise.
1371 * ifcvt.c (cond_exec_process_if_block): Likewise.
1372 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
1373
1374 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
1375
1376 * sched-deps.c (get_condition): Rewrite using jump support functions.
1377 Use reversed_comparison_code.
1378 (conditions_mutex_p): Use reversed_comparison_code.
1379
1380 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
1381
1382 * config/mips/mips.c (override_options): Disable hot/cold partitioning
1383 for MIPS16.
1384
1385 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
1386
1387 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
1388 (mips_function_type): Move to mips.c.
1389 * config/mips/mips.c (mips_builtin_type): New enum.
1390 (builtin_description): Replace code and ftype with builtin_type
1391 and function_type.
1392 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
1393 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
1394 (CODE_FOR_mips_abs_ps): Define.
1395 (mips_bdesc): Use new macros.
1396 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
1397 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
1398 (mips_expand_builtin_direct): New function.
1399 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
1400 builtin. Replace boolean parameter with builtin_type.
1401 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
1402 (mips_expand_4s_compare_builtin): Delete, replacing with...
1403 (mips_expand_builtin_compare): ...this new function.
1404
1405 2004-08-29 Mark Mitchell <mark@codesourcery.com>
1406
1407 PR rtl-optimization/16590
1408 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
1409
1410 2004-08-29 Diego Novillo <dnovillo@redhat.com>
1411
1412 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
1413 * tree-ssa-propagate.c: Fix documentation.
1414
1415 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
1416
1417 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
1418 (mov[sd]fcc): Likewise.
1419
1420 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
1421
1422 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
1423
1424 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
1425
1426 * config/mips/mips.md (divide_condition): New mode attribute.
1427 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
1428 (sqrt[sd]f3): Redefine using SCALARF.
1429 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
1430 patterns.
1431
1432 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
1433
1434 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
1435 (loadx, storex, fmt, UNITMODE): New mode attributes.
1436 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
1437 (mul[sd]f3): Redefine using :SCALARF.
1438 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
1439 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
1440 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
1441 Check TARGET_FUSED_MADD for V2SF too.
1442 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
1443 were already named.
1444 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
1445 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
1446
1447 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
1448
1449 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
1450 V2SF_type_node if it will be needed.
1451
1452 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
1453
1454 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
1455 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
1456 (mips_prepare_builtin_target): New function.
1457 (mips_expand_builtin): Use them. Update calls to subroutines.
1458 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
1459 cmp_choice with a boolean argument to select between movt and movf.
1460 Take the comparison's icode as an argument, not the function's fcode.
1461 (mips_expand_compare_builtin): New function. Rename existing function
1462 to mips_expand_scalar_compare_builtin.
1463 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
1464 (mips_expand_ps_compare_builtin): Use the new functions. Take the
1465 comparison's icode as an argument, not the builtin's fcode.
1466
1467 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
1468
1469 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
1470 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
1471 registers are false and -1 if all registers are true.
1472 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
1473 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
1474 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
1475 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
1476 (bc1any2t, bc1any2f): Likewise CCV2.
1477 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
1478
1479 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
1480
1481 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
1482 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
1483 UNSPEC rather than an IF_THEN_ELSE.
1484 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
1485 mips_cond_move_tf_ps by name.
1486
1487 2004-08-29 Chao-ying Fu <fu@mips.com>
1488 James E Wilson <wilson@specifixinc.com>
1489
1490 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
1491 8 byte size and alignment. Give CCV4 16 byte size and alignment.
1492 * config/mips/mips-ps-3d.md: New file.
1493 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
1494 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1495 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
1496 (mips_output_move): Emit "mov.ps" for V2SFmode.
1497 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
1498 MODE_VECTOR_FLOAT.
1499 (override_options): Check if TARGET_MIPS3D and there was an explicit
1500 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
1501 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
1502 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
1503 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
1504 and allow CCV2 and CCV4 to occupy two and four CC registers.
1505 (print_fcc_operand): New function.
1506 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
1507 %Z to call print_fcc_operand.
1508 (mips_function_value): Handle MODE_VECTOR_FLOAT.
1509 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
1510 (mips_vector_mode_supported_p): New function.
1511 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
1512 (builtin_description): New struct.
1513 (mips_bdesc): New array of struct builtin_description.
1514 (mips_expand_builtin, mips_init_builtins,
1515 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
1516 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
1517 functions.
1518 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
1519 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
1520 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
1521 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
1522 "-mips3d", and "-mno-mips3d".
1523 (ASM_SPEC): Map -mips3d to -mips3d in gas.
1524 (EXTRA_CONSTRAINT_Y): New macro.
1525 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
1526 multi-letter constraint 'Y'.
1527 (CONSTRAINT_LEN): New macro.
1528 (enum mips_builtins): New for MIPS builtin functions.
1529 (enum mips_function_type): New for the types of MIPS builtin functions.
1530 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
1531 * config/mips/mips.md: New constants for paired single and MIPS-3D
1532 instructions. Include the new mips-ps-3d.md file.
1533 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
1534 movv2sf_hardfloat_64bit): New named patterns.
1535 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
1536 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
1537 sdxc1_v2sf_di): New unnamed patterns.
1538 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
1539 const_vector support.
1540 (const_0_or_1_operand): New predicate.
1541 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
1542
1543 2004-08-29 Diego Novillo <dnovillo@redhat.com>
1544
1545 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
1546 (tree-ssa-propagate.o): New rule.
1547 (GTFILES): Add tree-ssa-propagate.c.
1548 * tree-flow.h (struct stmt_ann_d): Remove field
1549 in_ccp_worklist.
1550 * tree-ssa-propagate.c: New file.
1551 * tree-ssa-propagate.h: New file.
1552 * tree-ssa-ccp.c: Re-write to use the routines from
1553 tree-ssa-propagate.c.
1554
1555 2004-08-28 Andrew Pinski <apinski@apple.com>
1556
1557 * tree-ssa-loop.c: Remove extra include of basic-block.h.
1558
1559 2004-08-28 Ziemowit Laski <zlaski@apple.com>
1560
1561 * c-common.h: Update comments about ObjC/ObjC++ entry points.
1562 (objc_is_reserved_word): New prototype.
1563 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
1564 separate section; these are call-backs.
1565 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
1566 ObjC/ObjC++ "@" keywords.
1567 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
1568 prototypes; they already live in c-common.h.
1569 * stub-objc.c: Update copyright notice.
1570 (objc_is_reserved_word): New stub.
1571
1572 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
1573
1574 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
1575 even when not checking.
1576
1577 2004-08-27 Jason Merrill <jason@redhat.com>
1578
1579 PR c++/13684
1580 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
1581 (gimple_push_cleanup): Add eh_only parm.
1582 (gimplify_target_expr): Pass it.
1583 * c.opt (-fno-threadsafe-statics): New option.
1584 * c-opts.c (c_common_handle_option): Handle it.
1585 * c-common.h (flag_threadsafe_statics): Declare it.
1586 * c-common.c (flag_threadsafe_statics): Record it.
1587 * doc/invoke.texi: Document it.
1588 * tsystem.h (_GNU_SOURCE): Define.
1589 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
1590 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
1591 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
1592 (__gthread_recursive_mutex_init_function): New fn.
1593 (__gthread_recursive_mutex_lock): New fn.
1594 (__gthread_recursive_mutex_trylock): New fn.
1595 (__gthread_recursive_mutex_unlock): New fn.
1596 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
1597 * gthr-win32.h, gthr-vxworks.h: Likewise.
1598 * gthr.h: Document.
1599
1600 2004-08-27 David Edelsohn <edelsohn@gnu.org>
1601
1602 * config/rs6000/rs6000.c (rs6000_override_options): Increase
1603 maximum skip to 15. Set function alignment, jump alignment, and
1604 loop alignment to 16 for processors that form dispatch groups.
1605 (rs6000_rtx_costs): outer_code is used.
1606
1607 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1608
1609 * stor-layout.c (sizetype_set): Remove.
1610 (set_sizetype): Don't test or set it.
1611
1612 * tree.h (size_int_type): Remove.
1613 * fold-const.c: Do not #include gt-fold-const.h.
1614 (size_htab_hash, size_htab_eq): Remove.
1615 (size_int_kind): Use build_int_cst.
1616 (new_const, size_htab): Remove.
1617 (size_int_type): Remove.
1618 (round_up): Use build_int_cst.
1619 (round_down): Likewise. Remove spurious constant build.
1620
1621 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1622
1623 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
1624 Add is_release variable, use it for --enable-werror and
1625 --enable-checking defaults.
1626 * system.h (gcc_assert, gcc_unreachable): New.
1627 * doc/install.texi (--enable-checking): Update.
1628 * configure, config.in: Rebuilt.
1629
1630 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
1631
1632 * rtl.h (read_rtx): Change prototype.
1633 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
1634 line number. Return true on success.
1635 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
1636 callers accordingly.
1637
1638 2004-08-26 Richard Henderson <rth@redhat.com>
1639
1640 * c-typeck.c (build_offsetof): Remove.
1641 * c-tree.h (build_offsetof): Remove.
1642 * c-common.c (fold_offsetof_1, fold_offsetof): New.
1643 * c-common.h (fold_offsetof): Declare.
1644 * c-parse.in (offsetof_base): New.
1645 (offsetof_member_designator): Use it. Build references, not just
1646 a tree list.
1647 (primary): Use fold_offsetof, not build_offsetof.
1648
1649 2004-08-26 Richard Henderson <rth@redhat.com>
1650
1651 * tree.c (staticp): Return the static object.
1652 * tree.h (staticp): Update decl.
1653 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
1654 * langhooks.c (lhd_staticp): Return NULL_TREE.
1655 * langhooks-def.h (lhd_staticp): Update decl.
1656 * c-common.c (c_staticp): Return the static object.
1657 * c-common.h (c_staticp): Update decl.
1658
1659 2004-08-26 Richard Henderson <rth@redhat.com>
1660
1661 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
1662 modes.
1663
1664 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
1665
1666 PR c/13801
1667 * c-decl.c (struct c_binding): Add type and inner_comp fields.
1668 (bind): Set type and inner_comp fields.
1669 (pop_scope): Restore type of decl to the correct type from an
1670 outer scope. Give error when popping file scope for incomplete
1671 arrays completed incompatibly with default initialization in an
1672 inner scope.
1673 (diagnose_mismatched_decls): Handle externs with initializers at
1674 block scope.
1675 (pushdecl): Set type of external declaration at block scope based
1676 only on the visible declarations. Save type when changing the
1677 type of a declaration. Merge an external declaration at block
1678 scope with a visible static declaration at file scope.
1679 (implicitly_declare): Give recycled old declaration the new type
1680 except for incompatible declarations of built-in functions, saving
1681 the old type.
1682
1683 2004-08-26 Ziemowit Laski <zlaski@apple.com>
1684
1685 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
1686
1687 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
1688
1689 * tree-alias-common.c (gate_pta): New function.
1690 (pass_build_pta): Use it.
1691 (pass_del_pta): Use it.
1692 (delete_alias_vars): Don't check flag_tree_points_to.
1693
1694 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1695
1696 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
1697 TFmode as additional register mode cloberred by call.
1698
1699 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1700
1701 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
1702 parallel pattern for library call returning DImode in
1703 mixed mode.
1704
1705 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1706
1707 * config/rs6000/rs6000.c (function_arg): Generate parallel
1708 pattern for more split args.
1709
1710 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1711
1712 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
1713 either gen_movdi_di_update or gen_movdi_si_update depending on
1714 target mode.
1715 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
1716 to generate two versions.
1717
1718 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
1719
1720 * Makefile.in (lambda-code.o): New.
1721 (lambda-trans.o): Ditto.
1722 (TREE_DATA_REF_H): Ditto.
1723 (LAMBDA_H): Ditto.
1724 (lambda-mat.o): Use LAMBDA_H.
1725 (tree-data-ref.o): Ditto.
1726 * lambda-code.c: New file. Lambda code generation algorithm.
1727 * lambda-trans.c: Ditto. Lambda transformation matrix support.
1728 * lambda.h: Add lambda loop structures.
1729 Add lambda loopnest structures.
1730 Add lambda body vector structure.
1731 Add lambda linear expression structures.
1732 Add prototypes for functions in new files.
1733 * lambda-mat.c: Include tree.h
1734
1735 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
1736 Sebastian Pop <pop@cri.ensmp.fr>
1737
1738 * tree-data-ref.h: Include lambda.h
1739 (free_dependence_relation): Declared here.
1740 (free_dependence_relations): Ditto.
1741 (free_data_refs): Ditto.
1742 * tree-data-ref.c (free_dependence_relation): New function.
1743 (free_dependence_relations): Ditto.
1744 (free_data_refs): Ditot.
1745 (analyze_all_data_dependences): Free datarefs and dependence_relations.
1746 (build_classic_dist_vector): Store in the dependence_relations the
1747 information. Each arc in the dependence_relations graph is labelled
1748 with the distance and direction vectors.
1749 (build_classic_dir_vector): Ditto.
1750 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
1751 Now computes again the whole dependence graph including read-read
1752 relations.
1753 (compute_data_dependences_for_loop): Now dependence_relations contains
1754 all the data, and thus it doesn't need to initialize the classic_dir
1755 and classic_dist vectors.
1756 (analyze_all_data_dependences): Adjusted for using the new interface of
1757 compute_data_dependences_for_loop. Remove the statistics dump.
1758
1759 2004-08-26 Bob Wilson <bob.wilson@acm.org>
1760
1761 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
1762 (xtensa_expand_block_move): Update comment.
1763 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
1764
1765 2004-08026 Richard Earnshaw <rearnsha@arm.com>
1766
1767 PR target/13506
1768 * toplev.c (crash_signal): If we crashed while emitting
1769 a user asm, then die more gracefully.
1770
1771 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1772
1773 PR target/17119.
1774 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
1775 checking for a valid constant, regardless of sign.
1776
1777 2004-08-25 Richard Henderson <rth@redhat.com>
1778
1779 PR target/16974
1780 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
1781 if the constant satisfies add_operand.
1782
1783 2004-08-25 Richard Henderson <rth@redhat.com>
1784
1785 PR debug/10695
1786 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
1787 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
1788 unwind info for >16-bit frames.
1789
1790 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
1791
1792 PR target/17171
1793 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
1794
1795 2004-08-25 Richard Henderson <rth@redhat.com>
1796
1797 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
1798 (TARGET_CANNOT_FORCE_CONST_MEM): New.
1799
1800 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
1801
1802 * doc/tree-ssa.texi: Document new operand iterator.
1803
1804 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1805
1806 PR target/16480
1807 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
1808 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
1809 as PLUS base regs.
1810
1811 2005-08-28 Paul Brook <paul@codesourcery.com>
1812
1813 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
1814 -mfpu=vfp -march=armv5t
1815 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
1816
1817 2004-08-25 Richard Henderson <rth@redhat.com>
1818
1819 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1820 * target.h (struct gcc_target): Add scalar_mode_supported_p.
1821 * targhooks.c (default_scalar_mode_supported_p): New.
1822 * targhooks.h (default_scalar_mode_supported_p): Declare.
1823 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
1824
1825 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
1826 before attempting to create types. Tidy.
1827 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
1828
1829 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
1830 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1831
1832 2004-08-25 Richard Henderson <rth@redhat.com>
1833
1834 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
1835 set REAL_MODE_FORMAT for TFmode.
1836
1837 2004-08-25 Ziemowit Laski <zlaski@apple.com>
1838
1839 * c-decl.c (grokparm): New function.
1840 * c-tree.h (grokparm): New prototype.
1841
1842 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
1843
1844 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
1845 iterator controlling structure.
1846 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
1847 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
1848 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
1849 iterator flags.
1850 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
1851 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
1852 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
1853 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
1854 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
1855 Empty operand pointers.
1856 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
1857 (op_iter_next_use): New. Return next use_operand_p.
1858 (op_iter_next_def): New. Return next def_operand_p.
1859 (op_iter_next_tree): New. Return next operands as a tree.
1860 (op_iter_init): New. Initialize an iterator structure.
1861 (op_iter_init_use): New. Initialize structure and get the first use.
1862 (op_iter_init_def): New. Initialize structure and get the first def.
1863 (op_iter_init_tree): New. Initialize structure and get the first tree.
1864 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
1865 (op_iter_init_maydef): New. Initialize structure and get the first
1866 V_MAY_DEF operands.
1867 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
1868 * tree-dfa.c (compute_immediate_uses_for_stmt,
1869 redirect_immediate_uses): Use new operand iterator.
1870 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
1871 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
1872 operands instead of using *_disappeared_p routines.
1873 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
1874 ssa_rewrite_stmt): Use new operand iterator.
1875 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
1876 rewrite_trees): Use new operand iterator.
1877 * tree-pretty-print.c (dump_vops): Use new operand iterator.
1878 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
1879 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
1880 dump_points_to_info): Use new operand iterator.
1881 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
1882 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
1883 operand iterator.
1884 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
1885 propagate_necessity): Use new operand iterator.
1886 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
1887 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
1888 a parameter instead of a stmt_ann_t.
1889 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
1890 build_tree_conflict_graph): Use new operand iterator.
1891 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
1892 rewrite_mem_refs): Use new operand iterator.
1893 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
1894 check_loop_closed_ssa_use): Use new operand iterator.
1895 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
1896 * tree-ssanames.c (release_defs): Use new operand iterator.
1897 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
1898
1899 2004-08-25 Adam Nemet <anemet@lnxw.com>
1900
1901 * tlink.c (initial_cwd): New variable.
1902 (tlink_init): Initialize it.
1903 (recompile_files): Use tlink_execute() instead of system(). Don't
1904 duplicate verbose output of collect_execute. Restore initial_cwd.
1905 Update comment before the function.
1906
1907 2004-08-25 Ziemowit Laski <zlaski@apple.com>
1908
1909 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
1910 accept) a cast from one Objective-C pointer type to another.
1911
1912 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1913
1914 * doc/install.texi: Document that libstdc++-v3 requires
1915 now automake 1.9.1.
1916
1917 2004-08-25 Caroline Tice <ctice@apple.com>
1918
1919 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
1920 to comments at start of function.
1921 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
1922 comment.
1923 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1924 merge_blocks_move_predecessor_nojumps,
1925 merge_blocks_move_successor_nojumps, merge_blocks_move,
1926 try_crossjump_to_edge, try_crossjump_bb): Likewise.
1927 * cfglayout.c (fixup_reorder_chain): Likewise.
1928 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
1929 cfg_layout_can_merge_blocks_p): Likewise.
1930 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
1931 * passes.c (rest_of_compilation): Update comments for calling
1932 optimization that partitions hot/cold basic blocks.
1933 * doc/invoke.texi: Update documentation of
1934 freorder-blocks-and-partition flag.
1935
1936 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
1937
1938 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
1939 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
1940
1941 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
1942
1943 * config/mips/mips.md (any_shift): New code macro.
1944 (optab, insn): New code attributes.
1945 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
1946 Use the standard rather than internal patterns for the MIPS16
1947 double-shift optimization.
1948 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
1949 Redefine using :GPR and any_shift.
1950 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
1951 to cover all three shifts.
1952 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
1953 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
1954 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
1955
1956 2004-08-24 Geoffrey Keating <geoffk@apple.com>
1957
1958 * gimplify.c (lookup_tmp_var): Separate temporaries when not
1959 optimizing.
1960
1961 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1962
1963 PR libstdc++/17005 (fix for HP-UX 11.11)
1964 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
1965 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
1966 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
1967 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
1968 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
1969 (LINK_SPEC): Handle march=1.0 option.
1970 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
1971 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
1972 (SUBTARGET_OPTIONS): New define.
1973 (LINK_SPEC): Handle march=1.0 option.
1974 (STARTFILE_SPEC): New define.
1975 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
1976 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
1977 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
1978 (SUBTARGET_OPTIONS): New define.
1979 (LINK_SPEC): Handle march=1.0 option.
1980 (STARTFILE_SPEC): New define.
1981 * config/pa/pa.c (override_options): Add code to process -munix= option.
1982 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
1983 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
1984 defines.
1985 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
1986 (SUBTARGET_OPTIONS): Provide default define.
1987 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
1988 STANDARD_STARTFILE_PREFIX_2): New defines.
1989 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
1990 (ENDFILE_SPEC): Use %O.
1991 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
1992 Mention issue caused by changing namespace and runtime to UNIX 95/98.
1993 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
1994 Document -munix=std option.
1995
1996 2004-08-25 Steven Bosscher <stevenb@suse.de>
1997
1998 * cse.c (cse_around_loop, cse_check_loop_start,
1999 cse_set_around_loop): Remove.
2000 (cse_basic_block): Remove the around_loop argument.
2001 (cse_end_of_basic_block): Remove the after_loop argument.
2002 (cse_main): Likewise.
2003 * rtl.h (cse_main): Update prototype.
2004 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
2005 rest_of_handle_gcse): Update cse_main calls.
2006
2007 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
2008
2009 * tree.h (build_int_cst): New, sign extended constant.
2010 (build_int_cstu): New, zero extended constant.
2011 (build_int_cst_wide): Renamed from build_int_cst.
2012 * tree.c (build_int_cst, build_int_cstu): New.
2013 (build_int_cst_wide): Renamed from build_int_cst.
2014 (make_vector_type, build_common_tree_nodes,
2015 build_common_tree_nodes_2): Adjust build_int_cst calls.
2016 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
2017 expand_builtin_strpbrk, expand_builtin_fputs,
2018 build_string_literal, expand_builtin_printf,
2019 expand_builtin_sprintf, fold_builtin_classify_type,
2020 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
2021 fold_builtin_toascii, fold_builtin_isdigit,
2022 simplify_builtin_strstr, simplify_builtin_strpbrk,
2023 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
2024 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
2025 DEF_ATTR_INT): Likewise.
2026 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
2027 Likewise.
2028 * c-lex.c (interpret_integer, lex_charconst): Likewise.
2029 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
2030 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2031 * c-typeck.c (really_start_incremental_init, push_init_level,
2032 set_nonincremental_init_from_string): Likewise.
2033 * calls.c (load_register_parameters): Likewise.
2034 convert.c (convert_to_pointer): Likewise.
2035 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
2036 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
2037 build_gcov_info): Likewise.
2038 * except.c (init_eh, assign_filter_values): Likewise.
2039 * expmed.c (store_fixed_bit_field, extract_bit_field,
2040 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
2041 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
2042 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
2043 * expr.c (convert_move, emit_group_load, emit_group_store,
2044 expand_assignment, store_constructor, store_field,
2045 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2046 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
2047 invert_truthvalue, optimize_bit_field_compare,
2048 decode_field_reference, all_ones_mask_p, constant_boolean_node,
2049 fold_div_compare, fold, fold_read_from_constant_string,
2050 fold_negate_const, fold_abs_const, fold_not_const, round_up,
2051 round_down): Likewise.
2052 * function.c (assign_parm_setup_block): Likewise.
2053 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
2054 Likewise.
2055 * stor-layout.c (layout_type, initialize_sizetypes,
2056 set_min_and_max_values_for_integral_type): Likewise.
2057 * tree-chrec.c (chrec_fold_multiply_poly_poly,
2058 reset_evolution_in_loop): Likewise.
2059 * tree-chrec.h (build_polynomial_chrec): Likewise.
2060 * tree-complex.c (build_replicated_const): Likewise.
2061 * tree-eh.c (honor_protect_cleanup_actions,
2062 lower_try_finally_onedest, lower_try_finally_copy,
2063 lower_try_finally_switch): Likewise.
2064 * tree-mudflap.c (mf_build_string, mx_register_decls,
2065 mudflap_register_call, mudflap_enqueue_constant): Likewise.
2066 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
2067 * tree-pretty-print.c (dump_generic_node): Likewise.
2068 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
2069 Likewise.
2070 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2071 * tree-ssa-loop-niter.c (number_of_iterations_cond,
2072 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
2073 Likewise.
2074 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
2075 canonicalize_loop_induction_variables): Likewise.
2076 * tree-vectorizer.c (vect_create_index_for_array_ref,
2077 vect_transform_loop_bound, vect_compute_data_ref_alignment):
2078 Likewise.
2079
2080 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
2081 alpha_gimplify_va_arg_1): Likewise.
2082 * config/arm/arm.c (arm_get_cookie_size): Likewise.
2083 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2084 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2085 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2086 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
2087 mips_gimplify_va_arg_expr): Likewise.
2088 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2089 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
2090 add_compiler_branch_island): Likewise.
2091 * config/s390/s390.c (s390_va_start): Likewise.
2092 * config/sh/sh.c (sh_va_start): Likewise.
2093 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2094 Likewise.
2095 * config/xtensa/xtensa.c (xtensa_va_start,
2096 xtensa_gimplify_va_arg_expr): Likewise.
2097
2098 * objc/objc-act.c (build_objc_string_object,
2099 build_objc_symtab_template, init_def_list, init_objc_symtab,
2100 init_module_descriptor, generate_static_references,
2101 build_selector_translation_table, get_proto_encoding,
2102 build_typed_selector_reference, build_selector_reference,
2103 build_next_objc_exception_stuff,
2104 build_method_prototype_list_template, generate_descriptor_table,
2105 generate_protocols, build_protocol_initializer,
2106 build_ivar_list_template, build_method_list_template,
2107 build_ivar_list_initializer, generate_ivars_list,
2108 generate_dispatch_table, generate_protocol_list,
2109 build_category_initializer, build_shared_structure_initializer,
2110 generate_shared_structures, handle_impent,
2111 generate_objc_image_info): Likewise.
2112
2113 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
2114
2115 * cfglayout.c (duplicate_insn_chain): Remove references to
2116 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
2117 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
2118 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
2119 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
2120 and NOTE_INSN_LOOP_CONT.
2121 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
2122 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
2123 and NOTE_INSN_LOOP_CONT.
2124 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
2125 check_dbra_loop, loop_dump_aux): Remove references to removed notes
2126 and fields.
2127 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
2128 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
2129 references to removed notes and fields.
2130 (subtract_reg_term, ujump_to_loop_cont): Remove.
2131
2132 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
2133
2134 * doc/install.texi: Document that libcpp does not require
2135 Automake any longer. Document that Automake 1.9.1 should
2136 work everywhere.
2137
2138 2004-08-25 Zack Weinberg <zack@codesourcery.com>
2139
2140 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
2141 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
2142 DWARF_DEBUGGING_INFO from choice-of-definition chain;
2143 restructure using C89 features (#elif, #error).
2144 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
2145 * config/sh/sh.h: Remove references to DWARF_DEBUG.
2146 * doc/invoke.texi: Remove references to DWARF version 1;
2147 clarify why -gdwarf-2<n> doesn't work.
2148
2149 2004-08-25 Zack Weinberg <zack@codesourcery.com>
2150
2151 * basic-block.h (BB_SET_PARTITION): Clear old value first.
2152 * cfg.c (clear_bb_flags): Don't clear partition setting.
2153 * ifcvt.c (find_if_case_1): Remove ??? comment.
2154
2155 2004-08-25 Alan Modra <amodra@bigpond.net.au>
2156
2157 PR target/17052
2158 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
2159 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
2160 current_function_stdarg in place of sysv_varargs_p.
2161 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
2162 sysv_varargs_p.
2163
2164 2004-08-24 Richard Henderson <rth@redhat.com>
2165
2166 PR target/16298
2167 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
2168 random codes within CONST.
2169
2170 2004-08-24 James E Wilson <wilson@specifixinc.com>
2171
2172 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
2173 -freorder-blocks-and-partition.
2174
2175 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2176
2177 PR middle-end/17044
2178 * tree-ssa-threadupdate.c (redirection_data): Make static.
2179 (thread_block): Use ggc_alloc_cleared to allocate struct
2180 redirection_data. Don't free elements in redirection_data.
2181
2182 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
2183
2184 * config/mips/predicates.md (small_data_pattern): Match prefetches.
2185
2186 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2187
2188 PR tree-optimization/17016
2189 * tree-ssa-loop-niter.c (number_of_iterations_cond,
2190 number_of_iterations_exit): Use POINTER_TYPE_P instead
2191 of testing for POINTER_TYPE.
2192
2193 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2194
2195 * tree-ssa-loop-ivcanon.c: New file.
2196 * tree-ssa-loop-manip.c (create_iv): New function.
2197 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
2198 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
2199 * cfgloop.c (mark_single_exit_loops): New function.
2200 (verify_loop_structure): Verify single-exit loops.
2201 * cfgloop.h (struct loop): Add single_exit field.
2202 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
2203 (mark_single_exit_loops): Declare.
2204 (tree_num_loop_insns): Declare.
2205 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
2206 (duplicate_loop_to_header_edge): Use it.
2207 * common.opt (fivcanon): New flag.
2208 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
2209 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
2210 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
2211 (bsi_insert_on_edge_immediate): New function.
2212 * tree-flow.h (bsi_insert_on_edge_immediate,
2213 canonicalize_induction_variables, tree_unroll_loops_completely,
2214 create_iv): Declare.
2215 * tree-optimize.c (init_tree_optimization_passes): Add
2216 pass_iv_canon and pass_complete_unroll.
2217 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
2218 * tree-scalar-evolution.c (get_loop_exit_condition,
2219 get_exit_conditions_rec, number_of_iterations_in_loop,
2220 scev_initialize): Use single_exit information.
2221 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
2222 missing assumptions.
2223 (loop_niter_by_eval): Return number of iterations as unsigned
2224 int.
2225 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
2226 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
2227 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
2228 New passes.
2229 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
2230 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
2231 the defining statement is ready.
2232 * tree-vectorizer.c (vect_create_iv_simple): Removed.
2233 (vect_create_index_for_array_ref, vect_transform_loop_bound):
2234 Use create_iv.
2235 (vect_transform_loop_bound): Use single_exit information.
2236 (vect_analyze_loop_form): Cleanup bogus tests.
2237 (vectorize_loops): Do not call flow_loop_scan.
2238 * tree.h (may_negate_without_overflow_p): Declare.
2239 * fold-const.c (may_negate_without_overflow_p): Split out from ...
2240 (negate_expr_p): ... this function.
2241 (tree_expr_nonzero_p): Handle overflowed constants correctly.
2242 * doc/invoke.texi (-fivcanon): Document.
2243 * doc/passes.texi: Document canonical induction variable creation.
2244
2245 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
2246
2247 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
2248 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
2249 using the mode of the operand to decide between them.
2250 * config/mips/mips.md (MOVECC): New mode macro.
2251 (ccreg): New mode attribute.
2252 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
2253 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
2254 (mov[sd]icc): Redefine using :GPR.
2255
2256 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
2257
2258 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
2259 (mips_prefetch_cookie): New function.
2260 * config/mips/mips.c (print_operand_address): Fix handling of
2261 ADDRESS_CONST_INT.
2262 (mips_emit_prefetch): Delete.
2263 (mips_prefetch_cookie): New function.
2264 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
2265 mode of QImode for the address_operand. Use mips_prefetch_cookie
2266 to calculate the first "pref" operand.
2267 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
2268 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
2269
2270 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
2271
2272 * arm.md: Include predicates.md.
2273 * predicates.md: New file.
2274 * arm.c (s_register_operand, arm_hard_register_operand)
2275 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
2276 (arm_immediate_operand, arm_neg_immediate_operand)
2277 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
2278 (arm_add_operand, arm_addimm_operand, arm_not_operand)
2279 (offsettable_memory_operand, alignable_memory_operand)
2280 (arm_reload_memory_operand, arm_float_rhs_operand)
2281 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
2282 (index_operand, shiftable_operator, logical_binary_operator)
2283 (shift_operator, equality_operator, arm_comparison_operator)
2284 (minmax_operator, cc_register, dominant_cc_register)
2285 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
2286 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
2287 (const_shift_operand, load_multiple_operation)
2288 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
2289 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
2290 (cirrus_register_operand, cirrus_fp_register)
2291 (cirrus_shift_const): Delete, replaced with equivalents in
2292 predicates.md.
2293 (shift_op): Handle ROTATE.
2294 * arm-protos.h: Delete declarations for above.
2295 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
2296 * t-arm (MD_INCLUDES): Add predicates.md.
2297 (s-preds): Depends on MD_INCLUDES.
2298
2299 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
2300
2301 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
2302 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
2303 patterns. Redefine using :GPR. Give the match_operator a mode.
2304 Use '%2' rather than '%z2' for operand 2.
2305
2306 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
2307
2308 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
2309 attribute.
2310
2311 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
2312
2313 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
2314 of internal patterns.
2315 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
2316 Redefine using :P.
2317 (tablejump): Use expand_binop to calculate address. Adjust names
2318 of internal patterns.
2319 (tablejump[sd]i): Renamed from tablejump_internal[12].
2320 Redefine using :P.
2321 (tablejump_mips16[12]): Delete.
2322
2323 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
2324
2325 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
2326 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
2327 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
2328 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
2329 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
2330
2331 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
2332
2333 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
2334 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
2335 using :GPR.
2336 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
2337 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
2338 (*branch_equality[sd]i_inverted): Likewise
2339 branch_equality{,_di}_inverted.
2340 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
2341 Redefine using :GPR.
2342
2343 2004-08-24 Zack Weinberg <zack@codesourcery.com>
2344
2345 * rtl.def: Reorganize, placing all codes used only in machine
2346 descriptions at the end.
2347
2348 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
2349 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
2350 rtx_name, rtx_format arrays by direct reference to rtl.def,
2351 first undefining GENERATOR_FILE. Define enum insn_note and
2352 note_insn_name array by direct reference to insn-notes.def.
2353 (adjust_field_rtx_def): Remove local definition of rtx_name.
2354 Use symbolic names for insn notes.
2355 * Makefile.in (gengtype.o): Update dependencies.
2356
2357 2004-08-24 Zack Weinberg <zack@codesourcery.com>
2358
2359 * basic-block.h (struct basic_block_def): Reorder fields to
2360 eliminate interior padding. Remove 'partition' field.
2361 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
2362 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
2363 (BB_COPY_PARTITION): New macros.
2364 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
2365 Replace all references to the 'partition' field of a basic
2366 block with new macros.
2367
2368 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
2369 * final.c (final_scan_insn): Don't handle it.
2370 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
2371 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
2372 * sched-rgn.c (sched_is_disabled_for_current_region_p):
2373 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
2374
2375 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
2376
2377 * c-decl.c (c_init_decl_processing): Adjust
2378 build_common_tree_nodes call.
2379 * expmed.c (const_mult_add_overflow_p): Use
2380 build_distinct_type_copy.
2381 * stor-layout.c (early_type_list): Remove.
2382 (layout_type): Don't append to early_type_list.
2383 (initialize_sizetypes): Add signed_p argument.
2384 (set_sizetype): Overwrite the stub type nodes directly.
2385 * tree.c (copy_node_stat): Clear a type's value cache here ...
2386 (build_distinct_type): ... not here.
2387 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
2388 * tree.h (initialize_sizetypes): Add signed_p argument.
2389 (build_common_tree_nodes): Likewise.
2390
2391 * objc/objc-act.c (get_static_reference): Use
2392 build_variant_type_copy.
2393 (get_protocol_reference): Likewise.
2394 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
2395
2396 2004-08-24 Richard Henderson <rth@redhat.com>
2397 Andrew Pinski <apinski@apple.com>
2398
2399 * gimplify.c (gimplify_array_ref_to_plus): Delete.
2400 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
2401 for ARRAY_REF.
2402
2403 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
2404 ARRAY_REF also to get to the STRING_CST.
2405
2406 2004-08-24 Paul Brook <paul@codesourcery.com>
2407
2408 * config/arm/arm.c (arm_override_options): Update error message.
2409 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
2410 TARGET_HARD_FLOAT_ABI.
2411 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
2412 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
2413
2414 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2415
2416 PR target/17093
2417 * config/m32r.md (movsi_sda): Add SI mode specification to
2418 UNSPEC.
2419
2420 2004-08-24 Nick Clifton <nickc@redhat.com>
2421
2422 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
2423 of seth_add3_operand.
2424
2425 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
2426
2427 * Makefile.in (PROTO_OBJS): Add errors.o.
2428 * protoize.c (fancy_abort): Remove.
2429 * mips-tfile.c (fancy_abort): Add parameters.
2430
2431 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
2432
2433 * doc/trouble.texi (C++ misunderstandings): Fix example code.
2434
2435 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
2436
2437 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
2438 (host-default.o): Add dependency on HOOKS_H.
2439 * config/x-linux: Likewise.
2440 * config/x-solaris: Likewise.
2441 * config/i386/x-mingw32: Likewise.
2442 * config/rs6000/x-darwin: Likewise.
2443
2444 2004-08-23 James E Wilson <wilson@specifixinc.com>
2445
2446 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
2447 DEF_REG_NOTE.
2448
2449 2004-08-23 Mark Mitchell <mark@codesourcery.com>
2450
2451 PR c/14492
2452 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
2453
2454 2004-08-23 Diego Novillo <dnovillo@redhat.com>
2455
2456 * cfg.c (check_bb_profile): Fix typos.
2457 * function.c (assign_parm_is_stack_parm): Likewise.
2458 * tree-nested.c: Likewise.
2459
2460 2004-08-23 Daniel Jacobowitz <dan@debian.org>
2461
2462 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
2463 Remove TYPECODE.
2464 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
2465
2466 2004-08-23 Eric Christopher <echristo@redhat.com>
2467
2468 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
2469 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
2470 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
2471 * target.h: Ditto.
2472 * hooks.h: Include machmode.h.
2473 (hook_bool_mode_false): Declare.
2474 * hooks.c (hook_bool_mode_false): Define.
2475 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
2476 * stor-layout.c (layout_type): Ditto.
2477 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
2478 Define to target macro.
2479 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
2480 * config/arm/arm.c: Ditto. Use.
2481 * config/arm/arm.h: Ditto.
2482 * config/arm/arm-protos.h: Ditto.
2483 * config/i386/i386.c: Ditto.
2484 * config/i386/i386.h: Ditto.
2485 * config/rs6000/rs6000.c: Ditto.
2486 * config/rs6000/rs6000.h: Ditto.
2487 * config/sh/sh.c: Ditto.
2488 * config/sh/sh.h: Ditto.
2489 * config/sh/sh-protos.h: Ditto.
2490 * config/sh/sh.md: Use.
2491 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
2492 to TARGET_VECTOR_MODE_SUPPORTED_P.
2493
2494 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
2495
2496 * Makefile.in (BUILD_ERRORS): Set to build-errors.
2497 (errors.o): New target for host.
2498 (build-errors.o): New target for build.
2499 (genobjs): Replace errors.o with build-errors.
2500 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
2501 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
2502 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
2503 (fix-header.o): Add errors.h
2504 * collect2.c (fancy_abort): Add parameters.
2505 * collect2.h (fancy_abort): Don't declare.
2506 * errors.h (fancy_abort): Don't declare.
2507 * errors.c: Include either bconfig.h or config.h.
2508 (fancy_abort): Trim filename.
2509 * fix-header.c (v_fatal, fatal): Remove.
2510 (progname): Remove definition.
2511 (main): Set progname here.
2512 * gcc.c (fancy_abort): Add parameters.
2513 * gcc.h (fancy_abort): Remove declaration.
2514 * gcov.c (fancy_abort): Remove.
2515 * rtl.h (fancy_abort): Don't declare.
2516 (abort): Don't define.
2517 * tree.h (fancy_abort): Don't declare.
2518 (abort): Don't define.
2519 * system.h (fancy_abort): Declare.
2520 (abort): Define to fancy_abort.
2521 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
2522
2523 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
2524 (usize_type, ubitsizetype): Remove.
2525 * stor-layout.c (set_sizetype): Don't initialize usizetype,
2526 ubitsizetype.
2527 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
2528
2529 * tree.h (build_distinct_type_copy): New.
2530 (build_type_copy): ... here. Rename to ...
2531 (build_variant_type_copy): ... here.
2532 * tree.c (build_qualified_type): Rename build_type_copy call.
2533 (build_distinct_type_copy): New, broken out of ...
2534 (build_type_copy): ... here. Rename to ...
2535 (build_variant_type_copy): ... here. Use
2536 build_distinct_type_copy.
2537 (build_common_tree_nodes_2): Rename build_type_copy call.
2538 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
2539 call.
2540 (handle_packed_attribute, handle_unused_attribute,
2541 handle_transparanet_union_attribute, handle_aligned_attribute,
2542 handle_deprecated_attribute): Likewise.
2543 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
2544 Likewise.
2545 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
2546 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
2547 build_distinct_type_copy.
2548
2549 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2550
2551 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
2552 attribute.
2553
2554 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2555
2556 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
2557 loads and stores.
2558 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
2559 formerly unnamed patterns. Redefine using :P for the address. Remove
2560 explicit length attributes.
2561
2562 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2563
2564 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
2565 New functions.
2566 (single_reachable_address): Use them.
2567 (schedule_sm): Add dump.
2568 (is_call_clobbered_ref): New function.
2569 (determine_lsm_reg): Check whether the reference is call clobbered.
2570 Only work for gimple_reg_type values.
2571
2572 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2573
2574 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
2575 $31 store insns. Redefine using :GPR.
2576
2577 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2578
2579 * config/mips/mips.md (P): New mode macro.
2580 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
2581 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
2582 Add mode attributes.
2583
2584 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2585
2586 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
2587 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
2588 later constants to cover the gap.
2589 (load, store): New mode attributes.
2590 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
2591 Use new unspec constants.
2592
2593 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2594
2595 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
2596 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
2597 to use register_operand rather than uns_arith_operand as the predicate
2598 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
2599 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
2600 Redefine using :GPR. Make same predicate change here. Extend the
2601 commutativity of operands 1 and 2 from the SImode version to the
2602 DImode one.
2603 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
2604 but with no predicate changes.
2605 (*nor[sd]i3): Redefine using :GPR.
2606
2607 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2608
2609 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
2610 noreturn functions.
2611
2612 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2613
2614 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
2615 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
2616 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
2617 rather than "%z2" (with a fake const0_rtx for operand 2).
2618 (ffs[sd]i2): Redefine using :GPR.
2619 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
2620
2621 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2622
2623 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
2624
2625 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2626
2627 * config/mips/mips.md (any_extend): New code macro.
2628 (u, su): New code attributes.
2629 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
2630 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
2631 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
2632 (*{s,u}mul_acc_di): Redefine using any_extend.
2633 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
2634 to reflect real insn names.
2635 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
2636 with an any_extend template.
2637 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
2638 Add '*' to name.
2639
2640 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2641
2642 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
2643 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
2644 (mul[sd]i3_r4000): Redefine using :GPR.
2645 (mulsi3_mult3): Don't check TARGET_MAD separately.
2646 (muldi3_mult3): Moved after mulsi_mult3.
2647
2648 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2649
2650 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
2651 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
2652 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
2653 (TARGET_GAS, TARGET_MIPS_AS): Delete.
2654 (TARGET_GPWORD): Define to true for n32 on IRIX.
2655 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
2656 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
2657 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
2658 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
2659 (MDEBUG_ASM_SPEC): Delete, folding into...
2660 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
2661 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
2662 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
2663 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
2664 to define asm_abi_default_spec.
2665 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
2666 (TARGET_ASM_SELECT_SECTION): Delete.
2667 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
2668 for non-mips16 code, removing previous workaround for SGI assemblers.
2669 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
2670 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
2671 (override_options): Remove !TARGET_GAS and !have_named_sections code.
2672 (print_operand): Fold TARGET_GAS conditionals into asm strings.
2673 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
2674 ASM_STABS_OP and ASM_STABN_OP.
2675 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
2676 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
2677 (mips_output_function_prologue): Remove !TARGET_GAS code.
2678 (mips_select_rtx_section): Remove !have_named_sections code.
2679 (mips_select_section): Delete.
2680 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
2681 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
2682 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
2683 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
2684 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
2685 * config/mips/windiss.h (ASM_SPEC): Likewise.
2686
2687 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2688
2689 * read-rtl.c (map_value, mapping, macro_group): New structures.
2690 (BELLWETHER_CODE): New macro.
2691 (modes, codes, bellwether_codes): New variables.
2692 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
2693 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
2694 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
2695 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
2696 (add_map_value, initialize_macros): New functions.
2697 (def_hash, def_hash_eq_p): Generalize to anything that points to,
2698 or starts with, a char * field.
2699 (find_macro, read_mapping, check_code_macro): New functions.
2700 (read_rtx_1): New, split out from read_rtx. Handle the new
2701 define_{mode,code}_{macro,attr} constructs. Use find_macro
2702 to parse the name of a code or mode. Use BELLWETHER_CODE to
2703 extract the format and to choose a suitable code for rtx_alloc.
2704 Modify recursive invocations to use read_rtx_1.
2705 (read_rtx): Call initialize_macros. Apply code and mode macros
2706 to the rtx returned by read_rtx_1. Cache everything after the
2707 first macro expansion for subsequent read_rtx calls.
2708 * doc/md.texi: Document new .md constructs.
2709 * config/mips/mips.md (GPR): New mode macro.
2710 (d, si8_di5): New mode attributes.
2711 (any_cond): New code macro.
2712 (add[sd]i3): Redefine using :GPR.
2713 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
2714 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
2715 previously unnamed MIPS16 patterns.
2716 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
2717 lines. Don't match (plus (const_int 0) ...).
2718 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
2719 Use a define_split to generate the addition.
2720 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
2721 (subsi3_internal): Delete.
2722 (*subsi3_extended): Renamed from subsi3_internal_2.
2723 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
2724 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
2725 using an any_cond template.
2726
2727 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2728
2729 * read-rtl.c (read_rtx): Tidy use of format_ptr.
2730
2731 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2732
2733 * read-rtl.c (string_obstack): New file-scope variable.
2734 (read_string, read_quoted_string, read_braced_string)
2735 (read_escape): Remove obstack parameter and use string_obstack instead.
2736 (read_rtx): Remove function-local rtl_obstack and initialize
2737 string_obstack instead. Update call to read_string.
2738
2739 2004-08-22 Andrew Pinski <apinski@apple.com>
2740
2741 PR c/15262
2742 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
2743 expression is not constant.
2744 (c_finish_return): Do not go through INDIRECT_REF when looking
2745 for the inner expression of an ADDR_EXPR for warning about.
2746
2747 2004-08-22 Richard Henderson <rth@redhat.com>
2748
2749 PR 17075
2750 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
2751 create new blocks and fall through.
2752 (expand_gimple_basic_block): Update to match.
2753
2754 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2755
2756 * reload.c (find_reloads_address): Make return value tri-state.
2757 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
2758 (find_reloads): Assume that reloaded addresses match 'o' or
2759 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
2760 returned 1 (not -1). Omit optional reloads for address operands
2761 only if find_reloads_address returned 1 (not -1).
2762
2763 * config/s390/s390.c (legitimize_reload_address): New function.
2764 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
2765 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
2766 legitimize_reload_address.
2767
2768 2004-08-22 Richard Hendersion <rth@redhat.com>
2769
2770 * tree.h (SAVE_EXPR_RESOLVED_P): New.
2771 * gimplify.c (gimplify_save_expr): Use it.
2772 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
2773 on the temporary variable.
2774
2775 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
2776
2777 * fold-const.c (rtl_expr_nonnegative_p): Delete.
2778 * tree.h (rtl_expr_nonnegative_p): Remove.
2779
2780 2004-08-22 Steven Bosscher <stevenb@suse.de>
2781
2782 * config/i386/ppro.md (ppro_complex_insn): Add missing check
2783 for cpu==pentiumpro.
2784
2785 * combine.c (struct reg_stat): Fix comment typo.
2786
2787 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
2788
2789 * c-tree.h (c_sizeof_nowarn): Remove.
2790
2791 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
2792
2793 * c-decl.c (set_array_declarator_type): Rename to
2794 set_array_declarator_inner.
2795 (build_c_parm, build_attrs_declarator, build_function_declarator):
2796 New functions.
2797 (make_pointer_declarator): Call build_attrs_declarator.
2798 * c-tree.h (set_array_declarator_type): Rename to
2799 set_array_declarator_inner.
2800 (build_c_parm, build_attrs_declarator, build_function_declarator):
2801 New prototypes.
2802 * c-parse.in (after_type_declarator,
2803 parm_declarator_starttypename, parm_declarator_nostarttypename,
2804 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
2805 firstparm): Use these functions
2806
2807 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
2808
2809 * c-decl.c (build_array_declarator, set_array_declarator_type,
2810 start_decl, grokdeclarator, grokparms): Change boolean parameters
2811 to type bool.
2812 * c-tree.h (build_array_declarator, set_array_declarator_type,
2813 start_decl): Update prototypes.
2814 * c-decl.c, c-parse.in: All callers changed.
2815
2816 2004-08-21 Mike Stump <mrs@apple.com>
2817
2818 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
2819 (darwin_fix_and_continue): Likewise.
2820 (darwin_fix_and_continue_switch): Likewise.
2821 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
2822 (darwin_fix_and_continue): Likewise.
2823 (darwin_fix_and_continue_switch): Likewise.
2824
2825 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
2826
2827 PR c++/16030
2828 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
2829 Remove, merging into ...
2830 (gen_stdcall_or_fastcall_suffix): New function, returning tree
2831 rather than const char*, and accepting additional parameter.
2832 Don't add suffix to '*'-prefixed symbols or variadic functions.
2833 (i386_pe_encode_section_info): Adjust for call to new function.
2834 Call change_decl_assembler_name.
2835
2836 2004-08-20 Mike Stump <mrs@apple.com>
2837
2838 * config/darwin.c (machopic_indirect_data_reference): Mark
2839 stubs as defined.
2840 * config/386/386.c (darwin_local_data_pic): Add.
2841 (legitimate_constant_p): Reorder so that PLUS handling runs
2842 before darwin_local_data_pic to match the ordering in
2843 legitimate_pic_address_disp_p and so that MINUS runs after
2844 darwin_local_data_pic as otherwise the darwin_local_data_pic
2845 logic can be skipped, which would be very bad.
2846 (legitimate_pic_address_disp_p): Move from from here to
2847 darwin_local_data_pic so it can be reused.
2848
2849 2004-08-21 Alan Modra <amodra@bigpond.net.au>
2850
2851 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
2852 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
2853 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
2854 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
2855 (RS6000_ABI_NAME): Define as "linux".
2856 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
2857 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
2858 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
2859 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
2860 * config/rs6000/rs6000.c (dot_symbols): New global var.
2861 (rs6000_output_function_entry): New function, modified for
2862 !DOT_SYMBOLS..
2863 (print_operand <case 'z'>): ..extracted from here.
2864 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
2865 (rs6000_output_function_epilogue): Likewise.
2866 (rs6000_elf_declare_function_name): Likewise.
2867 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
2868 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
2869 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
2870 * configure: Regenerate.
2871 * config.in: Regenerate.
2872
2873 2004-08-20 Mark Mitchell <mark@codesourcery.com>
2874
2875 * reload.c (find_reloads_address): Fix thinko in previous change.
2876
2877 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
2878 a CONST_INT.
2879
2880 2004-08-20 Jakub Jelinek <jakub@redhat.com>
2881
2882 PR rtl-optimization/17099
2883 * combine.c (force_to_mode): Check if inner_mask has any bits set
2884 outside of GET_MODE (x) instead of op_mode.
2885
2886 2004-08-20 Mark Mitchell <mark@codesourcery.com>
2887
2888 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
2889 fragment.
2890 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
2891 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
2892 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
2893 architecture.
2894 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
2895 configurations.
2896 * config/arm/t-symbian: New file.
2897
2898 2004-08-20 Andrew Pinski <apinski@apple.com>
2899
2900 * regrename.c (kill_value_regno): ANSIfy.
2901
2902 2004-08-20 Dale Johannesen <dalej@apple.com>
2903
2904 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
2905
2906 2004-08-20 Daniel Jacobowitz <dan@debian.org>
2907
2908 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
2909 (kill_value_regno): New function, derived from kill_value.
2910 (kill_value): Update.
2911 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
2912
2913 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
2914
2915 Fix PR tree-optimization/17111
2916 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
2917 of non-value_handles.
2918 (bitmap_set_contains): All constants are in every set.
2919
2920 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
2921
2922 * fold-const.c (round_up, round_down): Use build_int_cst.
2923 Optimize common case.
2924
2925 2004-08-20 Zack Weinberg <zack@codesourcery.com>
2926 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2927
2928 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
2929 one_only_data_section): Rename to som_readonly_data_section,
2930 som_one_only_readonly_data_section and som_one_only_data_section.
2931 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
2932 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
2933 conditional defines.
2934 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
2935 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
2936 string values.
2937 (pa_select_section): Use renamed section functions.
2938 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
2939 SOM_READONLY_DATA_SECTION_FUNCTION,
2940 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
2941 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
2942 Define here ...
2943 * config/pa/som.h: ... not here.
2944 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
2945 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
2946 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
2947 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
2948 (READONLY_DATA_SECTION): Use som_readonly_data_section.
2949
2950 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
2951
2952 * fold-const.c (int_const_binop): Don't generate non-overflowing
2953 size-types specially.
2954 (fold_convert_const): Likewise.
2955
2956 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
2957 clear cache on copied sizetype.
2958
2959 2004-08-20 Ben Elliston <bje@au.ibm.com>
2960
2961 * configure.ac: Don't escape apostrophe in --enable-coverage help.
2962 * configure: Regenerate.
2963
2964 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
2965
2966 PR 5620
2967 * gcc.c (struct stat input_stat): Don't define if
2968 HOST_LACKS_INODE_NUMBERS
2969 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
2970 than stat to determine if temp file is same as input file.
2971 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
2972 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
2973
2974 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
2975
2976 * configure.ac (mips*-*-*): Print an error if not using GAS.
2977 * configure: Regenerated.
2978 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
2979 comments about buggy MIPSpro assemblers.
2980 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
2981 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
2982 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
2983 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
2984 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
2985 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
2986 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
2987 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
2988 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
2989 of more general IRIX 6 definitions.
2990 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
2991 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
2992 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
2993 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
2994 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
2995 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
2996 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
2997 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
2998 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
2999 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
3000 (LINK_SPEC): Move most of definition to iris.h.
3001 (SUBTARGET_LINK_SPEC): New macro.
3002 (IRIX_STARTFILE_SPEC): Fold into...
3003 (STARTFILE_SPEC): ...here.
3004 (IRIX_ENDFILE_SPEC): Fold into...
3005 (ENDFILE_SPEC): ...here.
3006 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
3007 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
3008 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
3009 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
3010 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
3011 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
3012 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
3013 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
3014 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
3015 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
3016 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
3017 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
3018 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
3019 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
3020 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
3021 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
3022 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
3023 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
3024 (TARGET_IRIX6): Define to 1.
3025 (DRIVER_SELF_SPECS): Define.
3026 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
3027 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
3028 (SUBTARGET_LINK_SPEC): New macro.
3029 (IRIX_STARTFILE_SPEC): Fold into...
3030 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
3031 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
3032 (LIB_SPEC, LIBGCC_SPEC): Use them.
3033 (LIB_SPEC): Remove !mabi=* case.
3034 (IRIX_ENDFILE_SPEC): Fold into...
3035 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
3036 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
3037 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
3038 (TARGET_IRIX6): New macro.
3039 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
3040 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
3041 (LABEL_AFTER_LOC): Delete.
3042 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
3043 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
3044 (mips_build_builtin_va_list): Check TARGET_IRIX6.
3045 (override_options): Remove TARGET_SGI_O32_AS-related code.
3046 (irix_output_external_libcall): Make static.
3047 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
3048 LABEL_AFTER_LOC.
3049 (mips_file_start): Tidy guard for ABI sections. Remove use of
3050 ABICALLS_ASM_OP; use .abicalls instead.
3051 (mips_output_aligned_decl_common, mips_declare_object_name)
3052 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
3053 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
3054 .globl foo .text directives.
3055 (irix_asm_named_section_1, irix_asm_named_section)
3056 (irix_section_align_entry, irix_section_align_htab)
3057 (irix_orig_asm_out_file, irix_section_align_entry_eq)
3058 (irix_section_align_entry_hash, irix_asm_output_align)
3059 (irix_file_start, irix_section_align_1, copy_file_data)
3060 (irix_file_end, irix_section_type_flags): Delete.
3061 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
3062 Use standard section syntax. Remove protective "jr $31".
3063 (__gcc_fini): Likewise .gcc_fini.
3064 * config/mips/irix-crtn.asm: Adjust sections accordingly.
3065 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
3066 iris5gas.h.
3067 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
3068 from t-irix-gld.
3069 (EXTRA_MULTILIB_PARTS): Define.
3070 * config/mips/t-iris6: Remove bogus comment.
3071 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
3072 * config/mips/iris5gas.h, config/mips/iris5gld.h,
3073 config/mips/iris6gas.h, config/mips/iris6gld.h,
3074 config/mips/t-iris5-as, config/mips/t-iris5-gas
3075 config/mips/t-irix-gld: Delete.
3076 * config/mips/iris.h: New file.
3077 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
3078
3079 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
3080
3081 * postreload.c (reload_cse_move2add): Allow any condjump, but check
3082 that the implicit set isn't clobbered in the jump insn.
3083
3084 2004-08-19 Mark Mitchell <mark@codesourcery.com>
3085
3086 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
3087 * optabs.c (init_optabs): Don't check it.
3088 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
3089 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
3090
3091 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
3092
3093 * config/s390/s390.md (s390_warn_framesize_string)
3094 (s390_warn_dynamic_string, s390_stack_size_string)
3095 (s390_stack_guard_string): New global string variables.
3096 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
3097 (s390_stack_guard): New global variables.
3098 (override_options): Added checks for the new options.
3099 (s390_emit_prologue): Emit stack check and trap code and perform
3100 compile time stack size checking.
3101
3102 * config/s390/s390.h (TARGET_OPTIONS): Added new options
3103 "warn-framesize", "warn-dynamicstack", "stack-size" and
3104 "stack-guard".
3105
3106 * doc/invoke.texi: Added documentation for the new options.
3107
3108 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
3109
3110 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
3111 to eliminate warning.
3112 (linear_search_fdes): Declare p as unsigned.
3113 (binary_search_mixed_encoding_fdes): Likewise.
3114 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
3115 to eliminate warning.
3116 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
3117 type cast.
3118
3119 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
3120
3121 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
3122 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
3123 instead of one. Check for strictly legitimate address.
3124 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
3125 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
3126
3127 2004-08-19 Eric Christopher <echristo@redhat.com>
3128
3129 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
3130 * langhooks.h (unsave_expr_now): Ditto.
3131 * tree.h (unsave_expr_1): Remove prototype.
3132 (lhd_unsave_expr_now): Rename to unsave_expr_now.
3133 * tree-inline.c (unsave_expr_1): Move here
3134 from tree.c. Make static.
3135 (unsave_expr_now): Rename from lhd_unsave_expr_now.
3136 * tree-sra.c: Fix up for rename.
3137 * tree-ssa-copy.c: Ditto.
3138 * tree-eh.c: Ditto.
3139 * tree.c (unsave_expr_1): Move to tree-inline.c.
3140
3141 2004-08-19 Caroline Tice <ctice@apple.com>
3142
3143 * config/i386/cygming.h (switch_to_section): Fix typo (change
3144 in_unlikely_text_section to in_unlikely_executed_text).
3145
3146 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
3147
3148 * vec.h (VEC_lower_bound): New macro.
3149
3150 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
3151
3152 PR target/16446
3153 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
3154 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
3155 treat each ABI separately. Deal with n32/n64 complex float arguments.
3156 (function_arg): Add associated complex handling here.
3157
3158 2004-08-19 Richard Henderson <rth@redhat.com>
3159
3160 * config/arm/arm.c (arm_gen_load_multiple): Use
3161 adjust_automodify_address. Take base memory and offset instead
3162 of unchanging/struct/scalar bits.
3163 (arm_gen_store_multiple): Likewise.
3164 (arm_gen_movmemqi): Use adjust_automodify_address.
3165 * config/arm/arm-protos.h: Update decls.
3166 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
3167 (store_multiple): Similarly.
3168
3169 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
3170
3171 * regclass.c (globalize_reg): Update call_really_used_regs.
3172
3173 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
3174
3175 * doc/invoke.texi (integer-share-limit): Document.
3176
3177 * tree.h (TYPE_CACHED_VALUES_P): New.
3178 (TYPE_CACHED_VALUES): New.
3179 (TYPE_ORIG_SIZE_TYPE): Adjust.
3180 * tree.def (INTEGER_CST): Update documentation.
3181 * tree.c: Inlcude params.h.
3182 (build_int_cst): Cache small values.
3183 (build_type_copy): Do not copy the value cache.
3184 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
3185 unneeded zeroing.
3186 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
3187 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
3188 cache.
3189 * fold-const.c (force_fit_type): Copy value when setting
3190 overflows.
3191 (int_const_binop): Likewise.
3192 * stor-layout.c: Include params.h
3193 (set_sizetype): Create values cache.
3194 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
3195 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
3196 * params.h (INTEGER_SHARE_LIMIT): New.
3197 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
3198
3199 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
3200
3201 * gimplify.c (gimplify_minimax_expr): Remove.
3202 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
3203
3204 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
3205
3206 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
3207 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
3208
3209 2004-08-19 Mark Mitchell <mark@codesourcery.com>
3210
3211 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
3212
3213 2004-08-18 Andrew Pinski <apinski@apple.com>
3214
3215 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
3216
3217 2004-08-18 Mark Mitchell <mark@codesourcery.com>
3218
3219 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
3220 (__aeabi_ul2f): Likewise.
3221
3222 2004-08-18 Richard Henderson <rth@redhat.com>
3223
3224 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
3225 move to rtl completely.
3226 (struct meminsnbuf, xtensa_emit_block_move): Remove.
3227 (xtensa_find_mode_for_size): Remove.
3228 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
3229 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
3230
3231 2004-08-18 Richard Henderson <rth@redhat.com>
3232
3233 * config/mcore/mcore.c (mode_from_align): Remove DImode.
3234 (block_move_sequence): Rewrite to use adjust_address.
3235 (mcore_expand_block_move): Cleanup logic. Accept only operands.
3236 Return boolean indicating success/failure.
3237 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
3238 * config/mcore/mcore.md (movmemsi): Update to match.
3239
3240 2004-08-18 Mike Stump <mrs@apple.com>
3241
3242 * doc/invoke.texi (-mfix-and-continue): Add support for
3243 fast turn around debugging.
3244 (-ffix-and-continue): Likewise.
3245 (-mindirect-data): Likewise.
3246 (-findirect-data): Likewise.
3247 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
3248 (indirect_data): Likewise.
3249 (machopic_data_defined_p): Likewise.
3250 (machopic_output_indirection): Likewise.
3251 (darwin_encode_section_info): Likewise.
3252 (darwin_fix_and_continue): Likewise.
3253 (darwin_fix_and_continue_switch): Likewise.
3254 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
3255 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3256 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
3257 (SUBTARGET_OPTIONS): Likewise.
3258 (darwin_fix_and_continue): Likewise.
3259 (darwin_fix_and_continue_switch): Likewise.
3260 (TARGET_FIX_AND_CONTINUE): Likewise.
3261 * config/rs6000.c (rs6000_emit_prologue): Likewise.
3262
3263 2004-08-19 Steven Bosscher <stevenb@suse.de>
3264
3265 * basic-block.h (struct edge_def): Remove crossing_edge.
3266 (EDGE_CROSSING): New define.
3267 (EDGE_ALL_FLAGS): Update.
3268 * bb-reorder.c (find_traces_1_round, better_edge_p,
3269 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
3270 find_jump_block, fix_crossing_conditional_branches,
3271 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
3272 Replace all occurences of crossing_edge with an edge flag check
3273 or set/reset.
3274 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3275 try_crossjump_bb): Likewise.
3276 * cfglayout.c (fixup_reorder_chain): Likewise.
3277 * cfgrtl.c (force_nonfallthru_and_redirect,
3278 commit_one_edge_insertion): Likewise.
3279
3280 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
3281 * tree-flow.h (compute_dominance_frontiers): Move prototype...
3282 * basic-block.h: ...here.
3283 * tree-cfg.c (compute_dominance_frontiers_1,
3284 compute_dominance_frontiers): Move from here...
3285 * cfganal.c: ...to here. Include timevar.h.
3286
3287 2004-08-18 James E Wilson <wilson@specifixinc.com>
3288
3289 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
3290 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
3291
3292 * config/mips/mips.md (type): Add frdiv.
3293 (divsf3+1, divsf3+2): Change type to frdiv.
3294 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
3295 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
3296
3297 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
3298 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
3299 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
3300 * config/mips/5000.md (r5k_fdiv_single): Likewise.
3301 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
3302 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
3303 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
3304 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
3305 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
3306 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
3307 Likewise.
3308 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
3309
3310 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
3311
3312 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
3313 get regression tester working again.
3314
3315 2004-08-18 Zack Weinberg <zack@codesourcery.com>
3316
3317 * insn-notes.def, reg-notes.def: New files.
3318 * rtl.h: Use them to define enum insn_note and enum reg_note.
3319 * rtl.c: Use them to define note_insn_name and reg_note_name.
3320 * Makefile.in (RTL_BASE_H): Update.
3321
3322 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
3323 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
3324
3325 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
3326
3327 * arm.c (arm_size_rtx_costs): New function.
3328 (arm_override_options): Use it if optimizing for space.
3329
3330 2004-08-18 Richard Henderson <rth@redhat.com>
3331
3332 * emit-rtl.c (gen_const_mem): New.
3333 * rtl.h (gen_const_mem): Declare.
3334 * expr.c (do_tablejump): Use it.
3335 * varasm.c (force_const_mem): Likewise.
3336 * config/darwin.c (machopic_indirect_data_reference): Likewise.
3337 (machopic_legitimize_pic_address): Likewise.
3338 * config/arm/arm.c (legitimize_pic_address): Likewise.
3339 * config/i386/i386.c (legitimize_pic_address): Likewise.
3340 (legitimize_tls_address): Likewise.
3341 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
3342 * config/ia64/ia64.md (load_fptr): Likewise.
3343 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
3344 * config/pa/pa.c (legitimize_pic_address): Likewise.
3345 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3346 (rs6000_emit_move): Likewise.
3347 * config/s390/s390.c (legitimize_pic_address): Likewise.
3348 (legitimize_tls_address): Likewise.
3349 * config/s390/s390.md (casesi): Likewise.
3350 * config/sh/sh.c (sh_reorg): Likewise.
3351 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
3352 * config/v850/v850.md (casesi): Likewise.
3353
3354 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
3355 * config/sh/sh.c (prepare_move_operands): Remove incorrect
3356 use of MEM_READONLY_P.
3357
3358 2004-08-18 Steven Bosscher <stevenb@suse.de>
3359
3360 * Makefile.in (OBJS-common): Add postreload-gcse.c.
3361 Add new postreload-gcse.o.
3362 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
3363 (lookup_as_function, insert, rehash_using_reg, use_related_value,
3364 equiv_constant): Use SAFE_HASH instead of safe_hash.
3365 (exp_equiv_p): Export. Add for_gcse argument when comparing
3366 for GCSE.
3367 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
3368 find_comparison_args, fold_rtx, cse_insn): Update callers.
3369 (hash_rtx): New function derived from old canon_hash and bits
3370 from gcse.c hash_expr_1.
3371 (canon_hash_string): Rename to hash_rtx_string.
3372 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
3373 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
3374 (cselib_lookup): Update this caller.
3375 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
3376 Make static.
3377 (hash_expr): Call hash_rtx.
3378 (ldst_entry): Likewise.
3379 (expr_equiv_p): Call exp_equiv_p.
3380 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
3381 reg_used_on_edge, reg_set_between_after_reload_p,
3382 reg_used_between_after_reload_p, get_avail_load_store_reg,
3383 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
3384 get_bb_avail_insn, hash_scan_set_after_reload,
3385 compute_hash_table_after_reload,
3386 eliminate_partially_redundant_loads, gcse_after_reload,
3387 get_bb_avail_insn, gcse_after_reload_main): Remove.
3388 * postreload-gcse.c: New file, reincarnating most of the above.
3389 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
3390 (gcse_after_reload_main): Update prototype.
3391 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
3392 * passes.c (rest_of_handle_gcse2): Use it.
3393
3394 2004-08-18 Diego Novillo <dnovillo@redhat.com>
3395
3396 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
3397 (pass_loop_done): Likewise.
3398
3399 2004-08-18 Andrew Pinski <apinski@apple.com>
3400
3401 * config/rs6000/darwin.md: Delete the altivec patterns which are
3402 handled differently now.
3403 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
3404 (macho_correct_pic_di): Likewise.
3405 (call_indirect_nonlocal_darwin64): Likewise.
3406 Delete the save world/saveFP/saveVec patterns.
3407
3408 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
3409 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
3410 * config/rs6000/rs6000.md: Include darwin.md.
3411 (builtin_setjmp_receiver): Add DImode case.
3412 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
3413 Darwin bits.
3414
3415 2004-08-18 Matt Austern <austern@apple.com>
3416
3417 Dead code stripping
3418 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
3419 * darwin.c (darwin_file_end): Mark file as potentially strippable.
3420
3421 2004-08-18 Richard Henderson <rth@redhat.com>
3422
3423 * alias.c (readonly_fields_p): Remove.
3424 (objects_must_conflict_p): Don't call it.
3425 * tree.h (readonly_fields_p): Remove.
3426 * langhooks.h (struct lang_hooks): Remove honor_readonly.
3427 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
3428
3429 2004-08-18 Diego Novillo <dnovillo@redhat.com>
3430
3431 * tree-dfa.c (add_referenced_var): Only global variables are
3432 call-clobbered.
3433 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
3434 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
3435 all pointers dereferenced if the statement dereferences them.
3436 (create_name_tags): Do not create memory tags for pointers
3437 that have PT_ANYTHING set.
3438 Also check if PT_VARS is not empty before creating a name tag.
3439 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
3440 variables that share the same alias set with a pointer that
3441 may point anywhere.
3442 (add_may_alias): Add FIXME comment to remove clobbering
3443 aliased variables and tags.
3444 (replace_may_alias): Likewise.
3445 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
3446 (merge_pointed_to_info): If the original variable has not
3447 points-to information, call set_pt_anything.
3448 (add_pointed_to_var): Do not prevent adding a pointed-to
3449 variable if the pointers is PT_ANYTHING.
3450 If the variable is a global, set PT_GLOBAL_MEM.
3451 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
3452 pointer type only come in PTR+OFFSET flavours.
3453 Always call merge_pointed_to_info on PHI arguments that are
3454 SSA_NAMEs.
3455 (get_nmt_for): Mark call-clobbered tags whose pointer points
3456 to global memory.
3457 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
3458 values.
3459 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
3460 FLAGS.
3461 (add_stmt_operand): Abort if the caller tried to add a killing
3462 definition for a memory tag.
3463 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
3464 unnecessary checks.
3465
3466 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
3467
3468 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
3469 from call_used_regs. Update call_really_used_regs.
3470 (CALL_REALLY_USED_REGISTERS): Define.
3471 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
3472 Replace call_used_regs with call_really_used_regs.
3473 (calc_live_regs, sh_media_register_for_return): Likewise.
3474 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
3475 * sh.md (return_media): Likewise.
3476
3477 2004-08-18 Andrew Pinski <apinski@apple.com>
3478
3479 * config/darwin.c (machopic_legitimize_pic_address): Only set
3480 MEM_READONLY_P in the non TARGET_TOC case.
3481
3482 2004-08-18 Zack Weinberg <zack@codesourcery.com>
3483
3484 * rtl.def (NIL): Delete.
3485 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
3486 Tighten the syntax a little.
3487
3488 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
3489 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
3490 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
3491 * config/i386/predicates.md, config/m32r/m32r.h
3492 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
3493 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
3494 * config/sparc/sparc.h, doc/tm.texi:
3495 Replace all occurrences of NIL with UNKNOWN.
3496
3497 2004-08-18 Zack Weinberg <zack@codesourcery.com>
3498
3499 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
3500 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
3501 sequence inline. Move drop_through_label code into this
3502 block, being the only place it is used. Adjust comments.
3503
3504 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
3505
3506 * config/rs6000/altivec.md: Add new patterns for calls to
3507 save_world/rest_world functions.
3508
3509 * config/rs6000/rs6000-protos.h: (save_world_operation,
3510 restore_world_operation) new declarations.
3511
3512 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
3513 field added.
3514 (rs6000_stack_info): Set world_save_p field.
3515 (save_world_operation): New function.
3516 (restore_world_operation): New function.
3517 (compute_save_world_info): New function.
3518 (rs6000_stack_info): Call compute_save_world_info.
3519 (rs6000_emit_prologue): Check for world_save_p and generate
3520 pattern to call save_world for saving all non-volatile and
3521 special registers.
3522 (rs6000_emit_epilogue): Check for world_save_p and generate
3523 pattern to call rest_world to restore saved registers.
3524
3525 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
3526 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
3527 (rs6000_reg_names): New entries added for save_world_operation and
3528 restore_world_operation.
3529
3530 2004-08-18 Caroline Tice <ctice@apple.com>
3531
3532 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
3533 "-freorder-blocks-and-partition" to the flags used in second
3534 stage of profiledbootstrap.
3535 * bb-reorder.c (push_to_next_round_p): Add new variable,
3536 next_round_is_last; set and use variable to make sure, when
3537 partitioning, that the last trace construction round consists
3538 of all (and only) cold basic blocks.
3539 (rotate_loop): Don't copy blocks that end in a section
3540 crossing jump.
3541 (copy_bb): Correctly initialize "partition" of duplicated bb.
3542 (add_unlikely_executed_notes): Add a comment.
3543 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
3544 to make sure, if function contains hot blocks, that the
3545 successors of ENTRY_BLOCK_PTR are hot; also, only look for
3546 crossing edges if the architecture supports named sections.
3547 (mark_bb_for_unlikely_executed_section): Modify to always
3548 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
3549 the basic block note insn.
3550 (fix_crossing_unconditional_branches): Remove extra space.
3551 (fix_edges_for_rarely_executed_code): Modify to only do
3552 partitioning work if the architecture supports named sections.
3553 (reorder_basic_blocks): Modify to only add
3554 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
3555 supports named sections.
3556 * c-common.c (handle_section_attribute): Initialize new global
3557 variable, user_defined_section_attribute, to true if user has
3558 specified one.
3559 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
3560 forward edges that cross section boundaries.
3561 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
3562 partitioning information if the architecture supports named
3563 sections.
3564 * cfgrtl.c (target.h): Add statement to include this.
3565 (rtl_split_block): Make sure newly created bb gets correct
3566 partition.
3567 (try_redirect_by_replacing_jump): Make sure redirection isn't
3568 attempting to cross section boundaries.
3569 (force_nonfallthru_and_redirect): Only do partition fix up if
3570 architecture supports named sections.
3571 (rtl_split_edge): Make sure newly created bb ends up in
3572 correct partition.
3573 (commit_one_edge_insertion): Remove code that incorrectly
3574 updated basic block partition; Make sure partition fix up only
3575 happens if architecture supports named sections and it's not
3576 already done.
3577 (rtl_verify_flow_info_1): Fix if-condition on test/error
3578 condition that fallthru edges are not allowed to cross section
3579 boundaries.
3580 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
3581 * final.c (final_scan_insn): Remove redundant test from if-statement;
3582 change calls to text_section into calls to function_section; add code
3583 to only to partitioning fix up if architecture supports named
3584 sections.
3585 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
3586 partition.
3587 (if_convert): Add targetm.have_named_sections to test.
3588 * output.h (unlikely_section_label): Extern declaration for new global
3589 variable.
3590 (unlikely_text_section_name): Likewise.
3591 * opts.c (decode_options): If both partitioning and DWARF debugging
3592 are turned on, issue a warning that this doesn't work, and change
3593 partitiong to basic block reordering (without hot/cold partitions).
3594 * passes.c (rest_of_handle_final): Re-set new global variable,
3595 user_defined_section_attribute, to false.
3596 (rest_of_compilation): Change options for calling partitioning
3597 function: Don't call if the user defined the section attribute, and
3598 don't call if DECL_ONE_ONLY is true for the current function.
3599 * predict.c (choose_function_section): Return immediately if we
3600 are doing hot/cold partitioning (i.e. let the basic block partitioning
3601 determine where the function belongs).
3602 * reg-stack.c (emit_swap_insn): Add condition to step over
3603 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
3604 * toplev.c (user_defined_section_attribute): New global variable.
3605 * toplev.h (user_defined_section_attribute): Extern declaration
3606 for new global variable.
3607 * varasm.c (unlikely_section_label): New global variable.
3608 (unlikely_text_section_name): New global variable.
3609 (unlikely_text_section): Add code to initialize
3610 unlikely_text_section_name if necessary; modify to use
3611 unlikely_text_section_name and unlikely_section_label; also to use
3612 named_section properly.
3613 (in_unlikely_text_section): Modify to work correctly with
3614 named_section and to use unlikely_text_section_name.
3615 (named_section): Add code to work properly with cold section.
3616 (function_section): Clean up if-statement.
3617 * config/darwin.c (darwin_asm_named_section): Return to original
3618 code, removing use of SECTION_FORMAT_STRING.
3619 * config/arm/pe.h (switch_to_section): Add case for
3620 in_unlikely_executed_text to switch statement.
3621 * config/i386/cygming.h (switch_to_section): Likewise.
3622 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
3623 (SECTION_FORMAT_STRING): Likewise.
3624 * config/mcore/mcore.h (switch_to_section): Likewise.
3625 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
3626 (SECTION_FORMAT_STRING): Remove.
3627
3628 2004-08-18 Roger Sayle <roger@eyesopen.com>
3629
3630 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
3631 -ffixed-reg safe, by preserving the meanings of zero and one.
3632 (CALL_USED_REGISTERS): Likewise.
3633 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
3634
3635 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
3636
3637 * config/sh/sh.c (split_branches): Check the result of
3638 next_active_insn.
3639 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
3640 Call rtl_register_cfg_hooks.
3641
3642 2004-08-18 Richard Henderson <rth@redhat.com>
3643
3644 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
3645 * alias.c (true_dependence): Update to match new semantics.
3646 (canon_true_dependence, write_dependence_p): Likewise.
3647 (anti_dependence, output_dependence): Update write_dependence_p args.
3648 (unchanging_anti_dependence): Remove.
3649 * calls.c (purge_mem_unchanging_flag): Remove.
3650 (fixup_tail_calls): Don't call it.
3651 (expand_call): Don't add unchanging memory to function usage.
3652 * expr.c (emit_block_move_via_libcall): Likewise.
3653 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
3654 (get_subtarget): Don't use RTX_UNCHANGING_P.
3655 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
3656 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
3657 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
3658 * cse.c (insert): Don't use RTX_UNCHANGING_P.
3659 (cse_insn, canon_hash): Use MEM_READONLY_P.
3660 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
3661 instead of RTX_UNCHANGING_P.
3662 * explow.c (maybe_set_unchanging): Remove.
3663 * expr.h (maybe_set_unchanging): Remove.
3664 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
3665 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
3666 (assign_parm_setup_reg, expand_function_start): Likewise.
3667 * integrate.c (copy_rtx_and_substitute): Likewise.
3668 * ra-rewrite.c (emit_colors): Likewise.
3669 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
3670 (fixup_match_1): Likewise.
3671 * reload1.c (reload, alter_reg): Likewise.
3672 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
3673 not RTX_UNCHANGING_P.
3674 (equiv_init_varies_p): Likewise.
3675 * loop-invariant.c (check_maybe_invariant): Likewise.
3676 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
3677 * loop.c (note_addr_stored): Likewise.
3678 (prescan_loop): Likewise. Don't check function usage for clobbered
3679 unchanging memory.
3680 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
3681 not RTX_UNCHANGING_P.
3682 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
3683 * varasm.c (force_const_mem): Likewise.
3684 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
3685 * web.c (entry_register): Likewise.
3686 * tree-gimple.h (get_base_address): Move decl ...
3687 * tree.h: ... here.
3688 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
3689
3690 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
3691 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
3692 (alpha_set_memflags): Update to match.
3693
3694 * config/darwin.c (machopic_indirect_data_reference): Set
3695 MEM_READONLY_P instead of RTX_UNCHANGING_P.
3696 (machopic_indirect_call_target): Likewise.
3697 (machopic_legitimize_pic_address): Likewise.
3698 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
3699 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
3700 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
3701 * config/frv/frv.md (symGOT2reg): Likewise.
3702 * config/i386/i386.c (legitimize_pic_address,
3703 legitimize_tls_address, ix86_split_to_parts): Likewise.
3704 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
3705 * config/ia64/ia64.md (load_fptr): Likewise.
3706 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
3707 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
3708 * config/mcore/mcore.c (block_move_sequence): Likewise.
3709 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
3710 * config/pa/pa.c (legitimize_pic_address): Likewise.
3711 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3712 (rs6000_emit_move): Likewise.
3713 * config/s390/s390.c (legitimize_pic_address): Likewise.
3714 (legitimize_tls_address): Likewise.
3715 * config/s390/s390.md (casesi): Likewise.
3716 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
3717 * config/sh/sh.md (symGOT2reg): Likewise.
3718 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
3719 * config/v850/v850.md (casesi): Likewise.
3720
3721 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
3722 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
3723 * config/mips/mips.c (mips_restore_gp): Likewise.
3724 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
3725 * config/sh/sh.c (sh_reorg): Likewise.
3726
3727 2004-08-18 Richard Henderson <rth@redhat.com>
3728
3729 * tree.h (struct tree_decl): Add gimple_formal_temp.
3730 (DECL_GIMPLE_FORMAL_TEMP_P): New.
3731 * gimplify.c (pop_gimplify_context): Clear it.
3732 (lookup_tmp_var): Set it, if is_formal.
3733 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
3734 Use is_gimple_val for VECTOR. Simplify return value.
3735 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
3736 (gimplify_expr): Likewise.
3737 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
3738 is_gimple_tmp_rhs for clarity. Update all callers.
3739 (is_gimple_reg_rhs): Simplify logic.
3740 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
3741 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
3742 (is_gimple_formal_tmp_reg): Similarly.
3743 * tree-gimple.h: Update decls.
3744 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
3745 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
3746 * tree-ssa-live.c (var_union, type_var_init): Likewise.
3747
3748 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
3749
3750 * c4x.c (legitimize_operands): Remove calls to
3751 preserve_subexpressions_p.
3752
3753 2004-08-18 David Edelsohn <edelsohn@gnu.org>
3754
3755 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
3756 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
3757
3758 2004-08-18 Ziemowit Laski <zlaski@apple.com>
3759
3760 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
3761 Objective-C++ extensions.
3762 * gengtype.c (get_file_basename): Match entire subdirectory name
3763 ('cp', 'objc', 'objcp') rather than just its suffix.
3764 (get_base_file_bitmap): Allow for files to belong to more than one
3765 language.
3766 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
3767 used by more than one front-end.
3768
3769 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
3770
3771 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
3772 avoid use of preserve_subexpressions_p.
3773
3774 2004-08-17 Richard Henderson <rth@redhat.com>
3775
3776 PR 17051
3777 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
3778
3779 2004-08-17 DJ Delorie <dj@redhat.com>
3780
3781 * doc/extend.texi: Document new xstormy16 attribute.
3782
3783 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
3784 (xstormy16_splittable_below100_or_register): New.
3785 (combine_bnp): New.
3786 (xstormy16_reorg): New.
3787 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3788
3789 * config/stormy16/stormy16.md (movqi_internal): Make name public.
3790 (movhi_internal): Likewise.
3791 (cbhranchhi): Likewise.
3792 (cbhranchhi_neg): Likewise.
3793 (andhi3): Only allow splittable below100 operands.
3794 (iorhi3): Likewise.
3795 (peephole2): New and/zero_extend->and peephole.
3796 (peephole2): New load/ior/save->set1 peephole.
3797 (peephole2): New load/and/save->clr1 peephole.
3798 (bclrx, bclrx2, bclr7, bclr15): New.
3799 (bsetx, bsetx2, bset7, bset15): New.
3800
3801 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
3802 liberal about acceptable 'B' masks.
3803
3804 * config/stormy16/stormy16-protos.h
3805 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
3806 xstormy16_below100_operand, xstormy16_below100_or_register,
3807 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
3808 (PREDICATE_CODES): Add new predicates.
3809
3810 * config/stormy16/stormy16.c
3811 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
3812 xstormy16_below100_operand, xstormy16_below100_or_register,
3813 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
3814 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
3815 (xstormy16_legitimate_address_p): Allow below100 symbols.
3816 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
3817 (xstormy16_expand_move): Leave below100 operands as-is.
3818 (xstormy16_encode_section_info): Encode below100 symbols.
3819 (xstormy16_strip_name_encoding): New.
3820 (xstormy16_print_operand): Print 'b' as shift mask.
3821 (xstormy16_attribute_table): Add below100 attributes.
3822 (xstormy16_handle_below100_attribute): New.
3823
3824 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
3825 (XSTORMY16_SECTION_FUNCTION): New.
3826 (EXTRA_SECTION_FUNCTIONS): Define using the above.
3827 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3828 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
3829 (ASM_OUTPUT_LABELREF): Define.
3830
3831 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
3832 (movhi_internal): Add below100 support.
3833 (andhi3): Add below100 support.
3834 (iorhi3): Add below100 support.
3835 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
3836
3837 2004-08-17 James E Wilson <wilson@specifixinc.com>
3838
3839 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
3840 of VOIDmode for comparison code mode.
3841 * config/mips/mips.md: For conditional move patterns, use mode of
3842 first compare operand for comparison mode, instead of VOIDmode.
3843
3844 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
3845 normal and -ffast-math code.
3846
3847 2004-08-17 Mark Mitchell <mark@codesourcery.com>
3848
3849 PR c++/15871
3850 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
3851
3852 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
3853
3854 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
3855
3856 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
3857
3858 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
3859 for non Darwin targets.
3860 (*call_value_nonlocal_darwin64): Likewise.
3861
3862 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
3863
3864 * config/rs6000/rs6000.c (rs6000_function_value): Check for
3865 altivec mode for altivec return register.
3866
3867 2004-08-17 David Edelsohn <edelsohn@gnu.org>
3868
3869 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
3870 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
3871 * config/rs6000/rs6000.md: Include darwin.md.
3872 (builtin_setjmp_receiver): Add DImode case.
3873 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
3874 Darwin bits.
3875
3876 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
3877
3878 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
3879 trees.
3880 * tree-vectorizer.h: New File: Same.
3881 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
3882 * common.opt (ftree-vectorize): New flag to enable vectorization.
3883 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
3884 vectorization pass.
3885 * tree-data-ref.h (init_data_ref): Additional argument.
3886 (array_base_name_differ_p): Moved to tree-data-ref.c.
3887 * tree-data-ref.c (array_base_name_differ_p): Revised.
3888 (initialize_data_dependence_relation): Call array_base_name_differ_p
3889 with an extra argument.
3890 (analyze_all_data_dependences): Same.
3891 (init_data_ref): Additional argument is_read to set DR_IS_READ.
3892 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
3893 file.
3894 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
3895 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
3896 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
3897 vectorization pass.
3898 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
3899 (tree_ssa_loop_done): Call scev_finalize.
3900 (tree_vectorize): Define the new vectorization pass.
3901 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
3902 size of the vector they support (until support for multiple vector
3903 sizes is added to the vectorizer).
3904 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
3905 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
3906 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
3907 documentation.
3908
3909 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
3910
3911 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
3912 usage.
3913 (generate_protocol_list, handle_impent): Likewise.
3914
3915 2004-08-17 Roger Sayle <roger@eyesopen.com>
3916
3917 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
3918 ensure that call_used_regs is a superset of both fixed_regs and
3919 call_really_used_regs.
3920
3921 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
3922
3923 PR target/17019
3924 * arm.md (addsi3_cbranch_scratch): Correct case labels.
3925
3926 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
3927
3928 PR middle-end/17036
3929 * fold-const.c (fold): Check for integer operand when
3930 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
3931 Pinski <pinskia@physics.uc.edu>.
3932
3933 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
3934
3935 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
3936 No need to check if in a cross configuration.
3937 * configure: Regenerate.
3938
3939 * calls.c (precompute_register_parameters):
3940 Inline preserve_subexpressions_p ().
3941 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
3942 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
3943 Likewise.
3944 * expr.c (get_subtarget): Likewise.
3945 * rtl.h (preserve_subexpressions_p): Remove.
3946 * stmt.c (preserve_subexpressions_p): Remove.
3947
3948 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
3949 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
3950 Abort on gimplified cases.
3951
3952 2004-08-16 James E Wilson <wilson@specifixinc.com>
3953
3954 * tree.h (VECTOR_FLOAT_TYPE_P): New.
3955 (FLOAT_TYPE_P): Use it.
3956 * c-typeck.c (build_binary_op): After convert calls, check for
3957 check for ERROR_MARK operands.
3958
3959 2004-08-16 Zack Weinberg <zack@codesourcery.com>
3960
3961 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
3962 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
3963 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
3964 (genobjs static pattern rule): Remove %.c dependency.
3965 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
3966 Rename rules; delete commands; fix dependencies.
3967 (mostlyclean): Do not delete temporary source copies.
3968 * configure.ac: Delete all references to BUILD_PREFIX and
3969 BUILD_PREFIX_1.
3970 * configure: Regenerate.
3971
3972 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
3973 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
3974 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
3975 with #ifndef GENERATOR_FILE so that nothing from those headers
3976 is used.
3977
3978 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
3979
3980 2004-08-16 Adam Nemet <anemet@lnxw.com>
3981
3982 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
3983
3984 2004-08-16 Andrew Pinski <apinski@apple.com>
3985
3986 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
3987 extraneous semicolon.
3988
3989 2004-08-16 Devang Patel <dpatel@apple.com>
3990
3991 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
3992 * print-tree.c (print_node): Print DECL_PRESERVE_P.
3993 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
3994 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
3995 * target.h (struct gcc_target): New member, mark_decl_preserved.
3996 * hooks.c (hook_void_charptr): Rename to ...
3997 (hook_void_constcharptr): ... new name.
3998 * hooks.h (hook_void_charptr): Rename to ..
3999 (hook_void_constcharptr): ... new name.
4000 * tree.h (DECL_PRESERVE_P): New #define.
4001 (struct tree_decl): New member, preserve_flag.
4002 * varasm.c (assemble_start_function): Mark decl preserved.
4003 (assemble_variable): Same.
4004 * darwin.c (darwin_mark_decl_preserved): New function.
4005 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
4006 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
4007 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
4008
4009 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
4010
4011 * c-decl.c (grokdeclarator): Allow for function definition where
4012 innermost declarator has attributes.
4013
4014 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
4015
4016 * except.c (get_exception_filter, build_post_landing_pads,
4017 dw2_build_landing_pads): Use target-specific mode for 'filter'.
4018 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
4019 * target.h (eh_return_filter_mode): New field added.
4020 * targhooks.c (default_eh_return_filter_mode): Defined.
4021 * targhooks.h (default_eh_return_filter_mode): Declared.
4022 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
4023
4024 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
4025
4026 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
4027 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
4028 * configure: Regenerate.
4029
4030 2004-08-16 Stan Shebs <shebs@apple.com>
4031
4032 Basic support for 64-bit Darwin.
4033 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
4034 (machopic_legitimize_pic_address): Similarly, plus use Pmode
4035 instead of SImode.
4036 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
4037 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
4038 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
4039 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
4040 (PROCESSOR_DEFAULT64): Define.
4041 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
4042 Darwin.
4043 * config/rs6000/rs6000.md: Include darwin.md.
4044 (builtin_setjmp_receiver): Add DImode case.
4045 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
4046 Darwin.
4047 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
4048 (rs6000_emit_move): Add DImode case to Darwin bits.
4049 (machopic_output_stub): Use .quad if 64-bit.
4050 * invoke.texi: Document -m32 and -m64.
4051
4052 2004-08-16 Janis Johnson <janis187@us.ibm.com>
4053
4054 * doc/extend.texi (AltiVec builtins): Document additional differences
4055 from the Motorola AltiVec PIM.
4056
4057 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
4058
4059 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
4060 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
4061 (struct tree_common): Update public_flag documentation.
4062
4063 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
4064
4065 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
4066 Check for artificial variables, not is_gimple_tmp_var.
4067 * tree-ssa-live.c (var_union): Likewise.
4068
4069 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
4070
4071 * calls.c (load_register_parameters): Remove spurious FIXME token.
4072
4073 2004-08-15 Ziemowit Laski <zlaski@apple.com>
4074
4075 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
4076 (c-lang.o): Depend on c-objc-common.h.
4077 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
4078 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
4079 * c-lang.c: Include c-objc-common.h.
4080 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
4081 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
4082 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
4083 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
4084 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
4085 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
4086 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
4087 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
4088 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
4089 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
4090 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
4091 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
4092 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
4093 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
4094 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
4095 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
4096 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
4097 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
4098 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
4099 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
4100 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
4101 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
4102 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
4103 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
4104 Move to c-objc-common.h.
4105 * c-objc-common.c: Include c-objc-common.h.
4106 * c-objc-common.h: New file.
4107
4108 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
4109 Andrew Pinski <pinskia@physics.uc.edu>
4110
4111 PR target/14931
4112 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
4113 style.
4114
4115 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
4116
4117 * tree.h (build_int_cst): New.
4118 (build_int_2): Remove.
4119 * tree.c (build_int_2): Remove.
4120 (build_int_cst): New.
4121 (make_vector_type, build_common_tree_nodes,
4122 build_common_tree_nodes_2): Use build_int_cst.
4123 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
4124 expand_builtin_strpbrk, expand_builtin_fputs,
4125 build_string_literal, expand_builtin_printf,
4126 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
4127 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
4128 fold_builtin_isdigit, simplify_builtin_strstr,
4129 simplify_builtin_strpbrk, fold_builtin_fputs,
4130 simplify_builtin_sprintf): Use build_int_cst.
4131 * c-common.c (start_fname_decls, fix_string_type,
4132 c_common_nodes_and_builtins, c_init_attributes,
4133 shorten_compare): Likewise.
4134 * c-decl.c (complete_array_type,
4135 check_bitfield_type_and_width): Likewise.
4136 * c-lex.c (interpret_integer, lex_charconst): Likewise.
4137 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
4138 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4139 * c-typeck.c (really_start_incremental_init, push_init_level,
4140 set_nonincremental_init_from_string): Likewise.
4141 * calls.c (load_register_parameters): Likewise.
4142 * convert.c (convert_to_pointer): Likewise.
4143 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
4144 build_fn_info_type, build_ctr_info_value, build_gcov_info):
4145 Likewise.
4146 * except.c (init_eh, assign_filter_values, assign_filter_values):
4147 Likewise.
4148 * expmed.c (store_fixed_bit_field, extract_bit_field,
4149 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
4150 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
4151 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
4152 * expr.c (convert_move, emit_group_load, emit_group_store,
4153 expand_assignment, store_constructor, store_field,
4154 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
4155 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
4156 invert_truthvalue, optimize_bit_field_compare,
4157 decode_field_reference, all_ones_mask_p, constant_boolean_node,
4158 fold_div_compare, fold, fold_read_from_constant_string,
4159 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
4160 * function.c (assign_parm_setup_block): Likewise.
4161 * stmt.c (shift_return_value, expand_end_case_type,
4162 estimate_case_costs): Likewise.
4163 * stor-layout.c (layout_type, initialize_sizetypes,
4164 set_min_and_max_values_for_integral_type): Likewise.
4165 * tree-chrec.c (chrec_fold_multiply_poly_poly,
4166 reset_evolution_in_loop): Likewise.
4167 * tree-chrec.h (build_polynomial_chrec): Likewise.
4168 * tree-complex.c (build_replicated_const): Likewise.
4169 * tree-eh.c (honor_protect_cleanup_actions,
4170 lower_try_finally_onedest, lower_try_finally_copy,
4171 lower_try_finally_switch): Likewise.
4172 * tree-mudflap.c (mf_build_string, mx_register_decls,
4173 mudflap_register_call, mudflap_enqueue_constant): Likewise.
4174 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
4175 * tree-pretty-print.c (dump_generic_node): Likewise.
4176 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
4177 Likewise.
4178 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
4179 * tree-ssa-loop-niter.c (number_of_iterations_cond,
4180 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
4181 Likewise.
4182
4183 * config/alpha/alpha.c (alpha_initialize_trampoline,
4184 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
4185 * config/arm/arm.c (arm_get_cookie_size): Likewise.
4186 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
4187 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
4188 * config/i860/i860.c (i860_va_start): Likewise.
4189 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4190 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
4191 mips_gimplify_va_arg_expr): Likewise.
4192 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4193 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
4194 add_compiler_branch_island): Likewise.
4195 * config/s390/s390.c (s390_va_start): Likewise.
4196 * config/sh/sh.c (sh_va_start): Likewise.
4197 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
4198 Likewise.
4199 * config/xtensa/xtensa.c (xtensa_va_start,
4200 xtensa_gimplify_va_arg_expr): Likewise.
4201
4202 * objc/objc-act.c (build_objc_string_object,
4203 build_objc_symtab_template, init_def_list, init_objc_symtab,
4204 init_module_descriptor, generate_static_references,
4205 build_selector_translation_table, get_proto_encoding,
4206 build_typed_selector_reference, build_selector_reference,
4207 build_next_objc_exception_stuff,
4208 build_method_prototype_list_template, generate_descriptor_table,
4209 generate_protocols, build_protocol_initializer,
4210 build_ivar_list_template, build_method_list_template,
4211 build_ivar_list_initializer, generate_ivars_list,
4212 generate_dispatch_table, generate_protocol_list,
4213 build_category_initializer, build_shared_structure_initializer,
4214 generate_shared_structures, handle_impent,
4215 generate_objc_image_info): Use build_int_cst.
4216
4217 2004-08-15 Ben Elliston <bje@au.ibm.com>
4218
4219 * vec.h: Comment improvements.
4220
4221 2004-08-14 Roger Sayle <roger@eyesopen.com>
4222
4223 * c-common.c (shorten_compare, pointer_int_sum,
4224 c_common_truthvalue_conversion, boolean_increment): Replace calls
4225 to build with calls to buildN.
4226 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
4227 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
4228 gimplify_switch_stmt): Likewise.
4229 * c-typeck.c (default_function_array_conversion,
4230 build_component_ref, build_array_ref, build_function_call,
4231 pointer_diff, build_unary_op, build_conditional_expr,
4232 build_compound_expr, build_modify_expr, c_finish_goto_label,
4233 c_finish_goto_ptr, c_finish_return, c_finish_loop,
4234 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
4235 build_binary_op): Likewise.
4236
4237 2004-08-15 Steven Bosscher <stevenb@suse.de>
4238
4239 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
4240
4241 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4242
4243 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
4244 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
4245 * fixinc/fixincl.x: Rebuilt.
4246
4247 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
4248
4249 * config/mips/mips-protos.h (mips_symbolic_constant_p)
4250 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
4251 (mips_small_data_pattern_p): Declare.
4252 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
4253 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
4254 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
4255 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
4256 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
4257 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
4258 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
4259 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
4260 (pc_or_label_operand, call_insn_operand, move_operand)
4261 (consttable_operand, symbolic_operand, general_symbolic_operand)
4262 (global_got_operand, local_got_operand, stack_operand)
4263 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
4264 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
4265 (mips_small_data_pattern_p): Replace previous small_data_pattern
4266 predicate. Turn into a bool () (rtx) function.
4267 * config/mips/predicates.md: New file.
4268 * config/mips/mips.md: Include it. Use the target-independent
4269 comparison_operator instead of cmp_op. Rename trap_cmp_op to
4270 trap_comparison_operator and equality_op to equality_operator.
4271 Replace uses of small_int with the equivalent const_arith_operand.
4272 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
4273 const_float_1_operand to const_1_operand. Rename fcc_register_operand
4274 to fcc_reload_operand.
4275 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
4276
4277 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4278
4279 PR libstdc++/17005 partial fix.
4280 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
4281 except when generating ANSI/C89 code.
4282
4283 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
4284
4285 * c-common.c (shorten_compare): Use force_fit_type directly.
4286
4287 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
4288 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
4289 Dave Korn <dk@artimi.com>
4290
4291 * doc/install.texi (Building): Avoid duplicate reference to GNU
4292 make requirement.
4293 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
4294
4295 2004-08-14 Richard Henderson <rth@redhat.com>
4296
4297 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
4298 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
4299
4300 2004-08-13 Richard Henderson <rth@redhat.com>
4301
4302 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
4303 for constant_call_address_operand.
4304 (call_value_pop_1, call_value_1): Likewise.
4305 (sibcall_value_1, call_value_1_rex64): Likewise.
4306
4307 2004-08-13 James E Wilson <wilson@specifixinc.com>
4308
4309 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
4310 Correct mode from SFmode to DFmode.
4311
4312 2004-08-13 Ziemowit Laski <zlaski@apple.com>
4313
4314 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
4315 __cstring_object and __image_info sections with the no_dead_strip
4316 attribute.
4317
4318 2004-08-13 Roger Sayle <roger@eyesopen.com>
4319 David Billinghurst <David.Billinghurst@riotinto.com>
4320
4321 PR libgfortran/15930
4322 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
4323 * fixinc/fixincl.x: Regenerate.
4324 * fixinc/tests/base/internal/math_core.h: New file.
4325
4326 2004-08-13 Richard Henderson <rth@redhat.com>
4327
4328 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
4329 (dbxout_function_end): Remove ifdefs for it.
4330 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
4331
4332 2004-08-13 Richard Henderson <rth@redhat.com>
4333
4334 * Makefile.in (insn-preds.o): Depend on TREE_H.
4335 * genpreds.c (write_insn_preds_c): Include tree.h.
4336 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
4337 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
4338 const48_operand, and_operand, or_operand, mode_width_operand,
4339 mode_mask_operand, mul8_operand, const0_operand,
4340 hard_fp_register_operand, hard_int_register_operand,
4341 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
4342 samegp_function_operand, direct_call_operand, small_symbolic_operand,
4343 global_symbolic_operand, call_operand, symbolic_operand,
4344 dtp16_symbolic_operand, dtp32_symbolic_operand,
4345 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
4346 gottp_symbolic_operand, alpha_comparison_operator,
4347 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
4348 signed_comparison_operator, alpha_fp_comparison_operator,
4349 divmod_operator, fix_operator, aligned_memory_operand,
4350 unaligned_memory_operand, reg_or_unaligned_mem_operand,
4351 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
4352 reg_no_subreg_operand, addition_operation): Move to predicates.md.
4353 (reg_or_const_int_operand): Remove. Replace all users with
4354 reg_or_cint_operand.
4355 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
4356 (resolve_reload_operand): Split out of aligned_memory_operand.
4357 * config/alpha/alpha-protos.h: Update for exports.
4358 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
4359 * config/alpha/alpha.md: Include predicates.md.
4360 * config/alpha/predicates.md: New file.
4361
4362 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
4363
4364 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
4365 fields with a pointer to the instruction definition.
4366 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
4367 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
4368 (write_attr_case, write_const_num_delay_slots): Update accordingly.
4369 (write_attr_case, write_const_num_delay_slots): Write the name of
4370 an insn next to its case statement.
4371 * genoutput.c (data): Add a filename field.
4372 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
4373 (output_insn_data): Print the location of each insn definition.
4374 * genrecog.c (write_action): Print the name of an insn above
4375 the statement that returns its code.
4376
4377 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
4378
4379 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
4380 * config/libgloss.h: Likewise.
4381 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
4382 * c4x/c4x-modes.def: Likewise.
4383 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
4384 (c4x_rptb_nop_p): Likewise.
4385 (c4x_rptb_valid_p): Likewise.
4386 (c4x_rptb_insert): Likewise.
4387 (c4x_address_conflict): Likewise.
4388 * config/c4x/c4x.md: Likewise.
4389 * config/frv/frv.md: Likewise.
4390 * config/i386/athlon.md: Likewise.
4391 * config/i386/i386.md: Likewise.
4392 * config/i386/predicates.md: Likewise.
4393 * config/ia64/ia64.c: Likewise.
4394 * config/ia64/itanium1.md: Likewise.
4395 * config/ia64/itanium2.md: Likewise.
4396 * config/iq2000/iq2000.md: Likewise.
4397 * config/mcore/mcore.c: Likewise.
4398 * config/mips/mips.c: Likewise.
4399 * config/mips/r3900.h: Likewise.
4400 * config/mips/sb1.md: Likewise.
4401 * config/pa/milli64.S: Likewise.
4402 * config/pa/pa.c: Likewise.
4403 * config/pa/pa.h: Likewise.
4404 * config/rs6000/8540.md: Likewise.
4405
4406 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
4407
4408 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
4409
4410 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
4411
4412 * sh.md (cbranch define_delay) Use cond_delay_slot for
4413 non-anulled condition too.
4414
4415 2004-08-12 David Edelsohn <edelsohn@gnu.org>
4416
4417 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
4418 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
4419 any_parallel_operand, lmw_operation, stmw_operation,
4420 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
4421 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
4422 any_parallel_operand.
4423 (return_and_restore_fpregs_{si,di}): Same.
4424
4425 2004-08-12 Zack Weinberg <zack@codesourcery.com>
4426
4427 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
4428 if pred->singleton != PARALLEL, issue a warning and pretend it was.
4429 Also issue a warning for any predicate we don't know about.
4430
4431 2004-08-12 Richard Henderson <rth@redhat.com>
4432
4433 * config/i386/i386.c (internal_label_prefix): Export.
4434 (internal_label_prefix_len, struct ix86_address,
4435 ix86_decompose_address, maybe_get_pool_constant,
4436 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
4437 memory_address_length): Export.
4438 (any_fp_register_operand, fp_register_operand,
4439 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
4440 x86_64_general_operand, x86_64_szext_general_operand,
4441 x86_64_nonmemory_operand, x86_64_movabs_operand,
4442 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
4443 x86_64_zext_immediate_operand, const_int_1_31_operand,
4444 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
4445 tls_symbolic_operand, global_dynamic_symbolic_operand,
4446 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
4447 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
4448 constant_call_address_operand, const0_operand, const1_operand,
4449 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
4450 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
4451 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
4452 general_no_elim_operand, nonmemory_no_elim_operand,
4453 index_register_operand, q_regs_operand, flags_reg_operand,
4454 non_q_regs_operand, zero_extended_scalar_load_operand,
4455 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
4456 ix86_comparison_operator, ix86_carry_flag_operator,
4457 fcmov_comparison_operator, promotable_binary_operator,
4458 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
4459 mult_operator, div_operator, arith_or_logical_operator,
4460 memory_displacement_operand, cmpsi_operand, long_memory_operand,
4461 aligned_operand): Move to predicates.md as define_predicates.
4462 (tls_symbolic_operand_1): Remove.
4463 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
4464 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
4465 (legitimize_address): Merge tls_symbolic_operand contents.
4466 (ix86_expand_move): Likewise.
4467 * config/i386/i386-protos.h: Update for exports.
4468 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
4469 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
4470 * config/i386/i386.md: Include predicates.md.
4471 * config/i386/predicates.md: New file.
4472
4473 2004-08-13 Mark Mitchell <mark@codesourcery.com>
4474
4475 PR c++/16924
4476 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
4477 SYMBOL_REF_DECL.
4478 (i386_pe_mark_dllimport): Likewise.
4479 (i386_pe_encode_section_info): Likewise, when overriding
4480 dllimport attribute.
4481
4482 2004-08-12 Geoffrey Keating <geoffk@apple.com>
4483
4484 * configure.ac: When testing for flex, nm, ar, and bison, check
4485 that they will actually be built.
4486 * configure: Regenerate.
4487
4488 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4489
4490 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
4491 (MOVE_MAX_PIECES): Define.
4492
4493 2004-08-12 Devang patel <dpatel@apple.com>
4494
4495 * dbxout.c (dbxout_begin_prologue): New function.
4496 (dbx_debug_hooks): Use new begin prologue hook.
4497 (dbxout_function_end): Emit N_ENSYM.
4498 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
4499
4500 2004-08-12 Janis Johnson <janis187@us.ibm.com>
4501
4502 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
4503 argument is float*.
4504
4505 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
4506 for vec_dss.
4507
4508 * doc/extend.texi (AltiVec builtins): Fix description for recent
4509 changes. Update operation list to match current support.
4510
4511 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
4512
4513 * config/s390/s390.c (struct s390_frame_layout): New struct as element
4514 of struct machine_function.
4515 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
4516 changed all uses.
4517 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
4518 changed all uses.
4519 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
4520 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
4521 (s390_frame_area, s390_register_info): New functions.
4522 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
4523 for base register.
4524 (s390_return_addr_rtx, s390_return_address_offset)
4525 (s390_va_start, s390_gimplify_va_arg)
4526 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
4527 layouts.
4528 (s390_frame_info): Functionality partly moved to s390_register_info.
4529 Made adaptions for new stack layout.
4530 (save_gprs, restore_gprs): Changed meaning of second parameter and
4531 adapted all callers.
4532
4533 * config/s390/s390.h (s390_backchain_string): New global variable.
4534 (MASK_BACKCHAIN): Removed definition.
4535 (TARGET_BACKCHAIN): Changed check.
4536 (TARGET_KERNEL_BACKCHAIN): New macro.
4537 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
4538 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
4539 "kernel-backchain".
4540 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
4541
4542 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
4543 as condition. Adjusted for new stack layout.
4544
4545 * doc/invoke.texi: Added documentation for new option
4546 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
4547 "-mno-backchain".
4548
4549 2004-08-12 Paul Brook <paul@codesourcery.com>
4550
4551 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
4552 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
4553
4554 2004-08-12 David Daney <ddaney@avtrex.com>
4555
4556 * java/gcj.texi: Add subsection on signal usage.
4557
4558 2004-08-12 David Edelsohn <edelsohn@gnu.org>
4559
4560 * expr.c (move_by_pieces): Set alignment for move to minimum of
4561 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
4562 alignment, but not less than the original alignment.
4563 (move_by_pieces_ninsns): Same.
4564 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
4565 (store_by_pieces_1): Same.
4566
4567 2004-08-12 Diego Novillo <dnovillo@redhat.com>
4568
4569 PR tree-optimization/16867
4570 * tree.c (is_global_var): New function.
4571 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
4572 Call is_global_var.
4573 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
4574 Update all users.
4575 (is_global_var): Declare.
4576 * tree-dfa.c (dump_variable): Display global and addressable
4577 attributes.
4578 (add_referenced_var): Clarify documentation when marking
4579 variables call-clobbered.
4580 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
4581 instead of needs_to_live_in_memory.
4582 (mark_call_clobbered): If the variable is a tag, mark it
4583 DECL_EXTERNAL.
4584 * tree-gimple.c (is_gimple_reg): Don't check for
4585 TREE_ADDRESSABLE.
4586 (is_gimple_non_addressable): Likewise.
4587 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
4588 needs to be marked call-clobbered.
4589 (setup_pointers_and_addressables): Call is_global_var instead
4590 of needs_to_live_in_memory.
4591 * tree-ssa-dce.c (need_to_preserve_store): Remove.
4592 Update all users with is_global_var.
4593 (mark_stmt_if_obviously_necessary): Fix processing of aliased
4594 stores. Don't check the virtual definitions. Rather, check
4595 whether the store is going into global memory.
4596 (find_obviously_necessary_stmts): Get the symbol from the PHI
4597 result.
4598 * tree-ssa-operands.c (get_call_expr_operands): Do not add
4599 clobbering may-defs if the call does not have side effects.
4600
4601 2004-08-12 Jakub Jelinek <jakub@redhat.com>
4602
4603 PR c++/16276
4604 * output.h (default_function_rodata_section,
4605 default_no_function_rodata_section): New prototypes.
4606 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
4607 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
4608 (TARGET_ASM_OUT): Add it.
4609 * varasm.c (default_function_rodata_section,
4610 default_no_function_rodata_section): New functions.
4611 * final.c (final_scan_insn): Call
4612 targetm.asm_out.function_rodata_section instead of
4613 readonly_data_section.
4614 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
4615 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4616 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4617 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
4618 Likewise.
4619 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4620 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
4621 Likewise.
4622 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
4623 Likewise.
4624 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4625 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4626 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
4627
4628 2004-08-12 Paul Brook <paul@codesourcery.com>
4629
4630 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
4631 frame info.
4632 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
4633 DWARF2_UNWIND_INFO.
4634
4635 2004-08-12 Ben Elliston <bje@au.ibm.com>
4636
4637 PR target/16286
4638 * config/rs6000/altivec.h: Change vector to __vector throughout.
4639 (Except for the `vector' macro itself).
4640
4641 2004-08-12 Zack Weinberg <zack@codesourcery.com>
4642
4643 * genpreds.c: Add capability to generate predicate bodies as
4644 well as function prototypes. Write function prototypes for
4645 the generic predicates too.
4646 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
4647 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
4648 (write_match_code, write_predicate_expr, write_one_predicate_function)
4649 (parse_option): New functions.
4650 (output_predicate_decls): Delete.
4651 (main): Read the machine description, process DEFINE_PREDICATE or
4652 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
4653 as appropriate.
4654
4655 * genrecog.c (struct decision_test): Replace index with
4656 struct pred_data pointer.
4657 (next_index): Remove, unused.
4658 (pred_table, preds, special_mode_pred_table): Delete.
4659 (compute_predicate_codes, process_define_predicate): New functions.
4660 (validate_pattern, add_to_sequence, write_switch): Update for
4661 new data structures.
4662 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
4663 Check both error_count and have_error.
4664
4665 * gensupport.c (in_fname, first_predicate): New globals.
4666 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
4667 (predicate_table, last_predicate, old_pred_table)
4668 (old_special_pred_table): New statics.
4669 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
4670 (add_predicate, init_predicate_table): New functions.
4671 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
4672 (init_md_reader_args_cb): Use the global in_fname. No need to zero
4673 it or max_include_len. Call init_predicate_table.
4674 (read_rtx): Run the predicate queue after the attribute queue
4675 but before all the others.
4676 * gensupport.h (in_fname, struct pred_data, first_predicate)
4677 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
4678 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
4679 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
4680 * dummy-conditions.c: Don't include bconfig.h, system.h,
4681 coretypes.h, tm.h, or system.h. Do include stddef.h.
4682 Duplicate declaration of struct c_test from gensupport.h.
4683
4684 * Makefile.in (OBJS-common): Add insn-preds.o.
4685 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
4686 (insn-preds.c, insn-preds.o): New rules.
4687 (s-preds): Also generate insn-preds.c.
4688 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
4689 Update dependencies.
4690 (print-rtl.o, print-rtl1.o): Correct dependencies.
4691
4692 * recog.h: Delete prototypes of predicate functions.
4693
4694 * doc/md.texi (Predicates): New section with complete
4695 documentation of operand/operator predicates. Remove some
4696 incomplete documentation of predicates from other places.
4697 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
4698 PREDICATE_CODES; indicate that both are deprecated in favor
4699 of define_predicate/define_special_predicate.
4700
4701 * config/ia64/ia64.c: All predicate function definitions moved
4702 to ia64.md, except
4703 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
4704 (ia64_expand_load_address, ia64_expand_move):
4705 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
4706
4707 * config/ia64/ia64.md: All predicates now defined here.
4708 (symbolic_operand): Is now a special predicate.
4709
4710 * config/ia64/ia64.h: Declare ia64_section_threshold.
4711 (PREDICATE_CODES): Delete.
4712
4713 2004-08-12 Richard Henderson <rth@redhat.com>
4714
4715 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
4716 * c-semantics.c (add_stmt): Set it.
4717 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
4718 before instantiating a variable sized type.
4719
4720 2004-08-12 Richard Henderson <rth@redhat.com>
4721
4722 * stor-layout.c (round_up, round_down): Move ...
4723 * fold-const.c (round_up, round_down): ... here. Use
4724 multiple_of_p to avoid any arithmetic at all.
4725
4726 2004-08-12 Richard Henderson <rth@redhat.com>
4727
4728 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
4729 (gimplify_init_ctor_preeval_1): New.
4730 (gimplify_init_ctor_preeval): New.
4731 (gimplify_init_ctor_eval): New.
4732 (gimplify_init_constructor): Use them. Always gimplify the LHS
4733 object first.
4734
4735 2004-08-12 Ziemowit Laski <zlaski@apple.com>
4736
4737 (This patch is part of merge of objc-improvements-branch
4738 into mainline.)
4739
4740 * doc/frontends.texi: Mention Objective-C++ in addition to
4741 Objective-C.
4742 * doc/install.texi: Add 'obj-c++' to list of configurable
4743 languages.
4744 * doc/invoke.texi: Rename Objective-C option headings to
4745 indicate they also apply to Objective-C++. List file
4746 extensions for Objective-C++ sources. Mention that
4747 ObjC and ObjC++ compilations may also use C and C++ options,
4748 respectively. Point users to doc/standards.texi for
4749 further info on ObjC and ObjC++.
4750 * doc/sourcebuild.texi: Mention the objcp/ directory and
4751 the Objective-C++ sources it contains.
4752 * doc/standards.texi: Update link to Apple ObjC site;
4753 add link to gcc readings.html WWW doc.
4754
4755 2004-08-12 Alan Modra <amodra@bigpond.net.au>
4756
4757 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
4758 and 2004-07-14 changes.
4759
4760 2004-08-12 Paul Brook <paul@codesourcery.com>
4761
4762 * doc/invoke.texi: Fix typo.
4763
4764 2004-08-11 Devang Patel <dpatel@apple.com>
4765
4766 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
4767 and -no_dead_strip_inits_and_terms.
4768 (LINK_SPEC): Same.
4769 * doc/invoke.texi (Darwin Options): Document -dead_strip and
4770 -no_dead_strip_inits_and_terms.
4771
4772 2004-08-11 Paul Brook <paul@codesourcery.com>
4773
4774 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
4775 (arm_load_pic_register): ... to this.
4776 * config/arm/arm.c (arm_finalize_pic): Rename ...
4777 (arm_load_pic_register): ... to this. Always output insns at the
4778 current location. Load via low reg in thumb mode.
4779 (arm_expand_prologue): Call arm_load_pic_register.
4780 (thumb_expand_prologue): Ditto.
4781 * config/arm/arm.h (FINALIZE_PIC): Remove.
4782 * config/arm/arm.md (builtin_setjmp_receiver): Call
4783 arm_load_pic_register.
4784
4785 2004-08-11 Paul Brook <paul@codesourcery.com>
4786
4787 * arm.c (thumb_force_lr_save): Add prototype.
4788 (thumb_compute_save_reg_mask): New function.
4789 (thumb_find_work_register): New function.
4790 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
4791 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
4792 Don't clobber r3 when removing pretend args.
4793 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
4794 (thumb_output_function_prologue): Use new functions.
4795 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
4796 * arm.h (THUMB_REG_PUSHED_P): Remove.
4797
4798 2004-08-11 James E Wilson <wilson@specifixinc.com>
4799
4800 PR rtl-optimization/16490
4801 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
4802 global_live_at_end for new basic block if already set for other blocks.
4803
4804 2004-08-11 David Edelsohn <edelsohn@gnu.org>
4805
4806 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
4807
4808 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
4809 (mfcr rlwinm rlwinm patterns): Set length to 12.
4810
4811 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
4812
4813 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
4814 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
4815 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
4816 (start_ssa_stmt_operands): Delete.
4817 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
4818 struct stmt_operands_d.
4819 (build_ssa_operands): New extern entry point.
4820 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
4821 building code, replace with create_ssa_artficial_load_stmt().
4822 * tree-ssa-operands.c (struct voperands_d): Delete.
4823 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
4824 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
4825 (free_uses, free_defs, free_vuses, free_v_may_defs,
4826 free_v_must_defs): Remove dealloc parameter.
4827 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
4828 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
4829 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
4830 vector comparisons, ssa_name reuse, and allocations here.
4831 (verify_start_operands): Delete.
4832 (finalize_ssa_stmt_operands): Set new operands by calling finalize
4833 routines.
4834 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
4835 (append_def, append_usei): Simplify to simple accumulation.
4836 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
4837 duplicates and simple accumulation.
4838 (free_ssa_operands): Free vectors in a stmt_operand structure.
4839 (build_ssa_operands): New. Create a new stmt_operand structure from
4840 a stmt and an old set of stmt_operands.
4841 (get_stmt_operands): Simplify and call build_ssa_operands.
4842 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
4843 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
4844 add_call_read_ops): Don't pass prev_vops around anymore.
4845 (note_addressable): Return if no stmt annotation.
4846 (copy_virtual_operands): Access v_may_def operands through a struct.
4847 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
4848 hash tables without treating the stmt as a real stmt.
4849 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
4850 v_may_def def and use through a struct instead of 2 array elements.
4851 (struct v_may_def_optype_d): Use v_may_def_operand_type.
4852 (struct stmt_operands_d): New. Struct for storing all operand vectors.
4853
4854 2004-08-11 Nick Clifton <nickc@redhat.com>
4855
4856 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
4857 this funciton's behaviour. Return true when the current function
4858 has a section attribute and -mlong-calls is in effect.
4859 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
4860 short-call marker when -mlong-calls is in effect and the function
4861 has a section attribute.
4862
4863 2004-08-10 Zack Weinberg <zack@codesourcery.com>
4864
4865 * stmt.c (expand_return): If asked to return the RESULT_DECL,
4866 just call expand_value_return on result_rtl.
4867
4868 2004-08-10 Richard Henderson <rth@redhat.com>
4869
4870 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
4871 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
4872 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
4873 (add_location_or_const_value_attribute): ... not here. Use
4874 loc_descriptor_from_tree if possible.
4875 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
4876 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
4877 values specially.
4878 (loc_descriptor_from_tree): New. Update callers.
4879 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
4880 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
4881 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
4882 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
4883 and BUILT_IN_STACK_RESTORE.
4884 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
4885 * stmt.c (expand_stack_alloc): Remove.
4886 * tree-mudflap.c (mx_register_decls): Don't look for
4887 BUILT_IN_STACK_ALLOC.
4888 * tree-nested.c (convert_local_reference): Likewise.
4889 * tree.h (DECL_VALUE_EXPR): New.
4890
4891 2004-08-10 Richard Henderson <rth@redhat.com>
4892
4893 * stor-layout.c (round_up): Check for 0/1 before dividing.
4894 (round_down): Likewise.
4895
4896 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
4897
4898 2004-08-09 Mark Mitchell <mark@codesourcery.com>
4899
4900 * config.gcc (arm*-*-eabi*): New target.
4901 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
4902 (TARGET_LIB_INT_CMP_BIASED): Likewise.
4903 * expmed.c (expand_divmod): Try a two-valued divmod function as a
4904 last resort.
4905 * gthr.h: Remove bogus tokens at end of #pragma.
4906 * optabs.c (expand_twoval_binop_libfunc): New function.
4907 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
4908 (prepare_float_lib_cmp): Try reversing the condition.
4909 (debug_optab_libfuncs): New function.
4910 * optabs.h (expand_twoval_binop_libfunc): Declare.
4911 * config/arm/arm.c (arm_init_libfuncs): New function.
4912 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
4913 (TARGET_INIT_LIBFUNCS): Define it.
4914 * config/arm/arm.h (TARGET_BPABI): New macro.
4915 * config/arm/arm-protos.h
4916 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
4917 * config/arm/bpabi.S: New file.
4918 * config/arm/bpabi.c: Likewise.
4919 * config/arm/bpabi.h: Likewise.
4920 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
4921 (__aeabi_drsub): Likewise.
4922 (__aeabi_dsub): Likewise.
4923 (__aeabi_dadd): Likewise.
4924 (__aeabi_ui2d): Likewise.
4925 (__aeabi_i2d): Likewise.
4926 (__aeabi_f2d): Likewise.
4927 (__aeabi_dmul): Likewise.
4928 (__aeabi_ddiv): Likewise.
4929 (__aeabi_cdrcmple): Likewise.
4930 (__aeabi_cdcmpeq): Likewise.
4931 (__aeabi_cdcmple): Likewise.
4932 (__aeabi_dcmpeq): Likewise.
4933 (__aeabi_dcmplt): Likewise.
4934 (__aeabi_dcmple): Likewise.
4935 (__aeabi_dcmpge): Likewise.
4936 (__aeabi_dcmpgt): Likewise.
4937 (__aeabi_dcmpun): Likewise.
4938 (__aeabi_d2iz): Likewise.
4939 (__aeabi_d2uiz): Likewise.
4940 (__aeabi_d2f): Likewise.
4941 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
4942 (__aeabi_frsub): Likewise.
4943 (__aeabi_fsub): Likewise.
4944 (__aeabi_fadd): Likewise.
4945 (__aeabi_ui2f): Likewise.
4946 (__aeabi_i2f): Likewise.
4947 (__aeabi_fmul): Likewise.
4948 (__aeabi_fdiv): Likewise.
4949 (__aeabi_cfrcmple): Likewise.
4950 (__aeabi_cfcmpeq): Likewise.
4951 (__aeabi_cfcmple): Likewise.
4952 (__aeabi_fcmpeq): Likewise.
4953 (__aeabi_fcmplt): Likewise.
4954 (__aeabi_fcmple): Likewise.
4955 (__aeabi_fcmpge): Likewise.
4956 (__aeabi_fcmpgt): Likewise.
4957 (__aeabi_fcmpun): Likewise.
4958 (__aeabi_f2iz): Likewise.
4959 (__aeabi_f2uiz): Likewise.
4960 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
4961 (__aeabi_uidivmod): New function or alias.
4962 (__aeabi_idivmod): Likewise.
4963 (__aeabi_idiv0): Likewise.
4964 (__aeabi_ldiv0): Likewise.
4965 (__aeabi_llsr): Likewise.
4966 (__aeabi_lasr): Likewise.
4967 (__aeabi_llsl): Likewise.
4968 (bpabi.S): Include it.
4969 * config/arm/libgcc-bpabi.ver: New file.
4970 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
4971 (LINK_SPEC): Remove.
4972 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
4973 __aeabi_ulcmp.
4974 * config/arm/t-bpabi: New file.
4975 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
4976 (TARGET_LIB_INT_CMP_BIASED): Likewise.
4977
4978 2004-08-10 David Edelsohn <edelsohn@gnu.org>
4979
4980 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
4981 * config/rs6000/rs6000.md (clrmemsi): New pattern.
4982 * config/rs6000/rs6000.c (expand_block_clear): New function.
4983 (expand_block_move): Convert alignment to bits. Use SImode and
4984 HImode for unaligned addresses if not STRICT_ALIGNMENT.
4985
4986 2004-08-10 Caroline Tice <ctice@apple.com>
4987
4988 * varasm.c (unlikely_section_label): New global variable.
4989 (unlikely_text_section_name): New global variable.
4990 (text_section): Remove alignment statement.
4991 (unlikely_text_section): Remove alignment statement; use
4992 unlikely_section_label rather than hard-coded string.
4993 (assemble_start_function): Initialize unlikely_section_label and
4994 unlikely_text_section_name; make sure cold section is properly
4995 aligned at start of function; output unlikely_section_label if
4996 appropriate.
4997
4998 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
4999
5000 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
5001 * config/s390/s390.c (s390_canonicalize_comparison): New function.
5002 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
5003 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
5004 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
5005 ("*tmqi_mem"): Remove SUBREG from pattern.
5006 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
5007 ("*andsi3_cconly"): Likewise.
5008
5009 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
5010
5011 PR target/16909
5012 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
5013
5014 2004-08-10 Janis Johnson <janis187@us.ibm.com>
5015
5016 * doc/sourcebuild.texi (compat testing): Document available test
5017 framework commands. Use the preferred spelling of DejaGnu.
5018
5019 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
5020
5021 * lambda.h: Add matrix type, and prototypes for remainder of
5022 matrix and vector functions.
5023 (lambda_vector_mult_const): New function.
5024 (lambda_vector_negate): Ditto.
5025 (lambda_vector_add): Ditto.
5026 (lambda_vector_add_mc): Ditto.
5027 (lambda_vector_copy): Ditto.
5028 (lambda_vector_zerop): Ditto.
5029 (lambda_vector_equal): Ditto.
5030 (lambda_vector_min_nz): Ditto.
5031 (lambda_vector_first_nz): Ditto.
5032 (lambda_vector_matrix_mult): Ditto.
5033 * lambda-mat.c: New file.
5034 * Makefile.in (lambda-mat.o): New.
5035
5036 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
5037
5038 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
5039 after linking stmt into the program.
5040 (bsi_remove): Don't call modify_stmt.
5041 * tree-complex.c (update_complex_assignment,
5042 expand_complex_comparison): Call modify_stmt after changing the stmt.
5043 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
5044 removing the stmt.
5045 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
5046 the stmt, and only if needed.
5047 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
5048 expression.
5049 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
5050 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
5051 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
5052 (eliminate_redundant_computations): Don't pass an annotation. Call
5053 modify_stmt rather than setting the annotation directly.
5054 (record_equivalences_from_stmt): Remove unused local 'j'.
5055 (cprop_operand): Take a stmt rather than an annotation as a parameter.
5056 Call modify_stmt.
5057 (cprop_into_stmt): Pass stmt rather than annotation.
5058 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
5059 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
5060 modify_stmt.
5061 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
5062
5063 2004-08-10 Jason Merrill <jason@redhat.com>
5064
5065 PR middle-end/16948
5066 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
5067 the RESULT_DECL.
5068
5069 2004-08-10 Geoffrey Keating <geoffk@apple.com>
5070
5071 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
5072 hash function.
5073
5074 2004-08-10 Roger Sayle <roger@eyesopen.com>
5075
5076 * config/mips/mips.md: New reciprocal square root patterns that
5077 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
5078
5079 2004-08-10 Paul Brook <paul@codesourcery.com>
5080
5081 * config/arm/arm-protos.h (arm_set_return_address,
5082 thumb_set_return_address): Add prototypes.
5083 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
5084 * config/arm/arm.c (arm_compute_func_type,
5085 use_return_insn, arm_compute_save_reg0_reg12_mask,
5086 arm_compute_save_reg_mask, arm_output_function_prologue,
5087 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
5088 current_function_calls_eh_return.
5089 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
5090 old eh code.
5091 (arm_set_return_address, thumb_set_return_address): New functions.
5092 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
5093 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
5094 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
5095 (epilogue): Use the stackadj register.
5096 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
5097
5098 2004-08-10 Jakub Jelinek <jakub@redhat.com>
5099
5100 PR target/3144
5101 * expr.c (move_by_pieces_ninsns): Add max_size argument.
5102 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
5103 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
5104 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
5105 but using MOVE_RATIO.
5106 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
5107 (can_store_by_pieces): Change max_size type to unsigned int.
5108 (store_by_pieces_1): Likewise. Pass max_size to
5109 move_by_pieces_ninsns.
5110 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
5111 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
5112 to move_by_pieces_ninsns.
5113 (STORE_BY_PIECES_P): Define.
5114 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
5115 to move_by_pieces_ninsns.
5116 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
5117
5118 * config/i386/i386.h (CLEAR_RATIO): Define.
5119
5120 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
5121
5122 * expr.c (expand_expr_real_1): Add back code that was not dead.
5123
5124 2004-08-09 Andrew Pinski <apinski@apple.com>
5125
5126 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
5127 which is found to be compatible before returning the aliasing set.
5128
5129 2004-08-09 Daniel Jacobowitz <dan@debian.org>
5130
5131 * ggc-zone.c (struct alloc_zone): Add statistics counters.
5132 (always_collect): New flag.
5133 (ggc_alloc_zone_1): Update statistics support. Don't include
5134 overhead in allocated counter.
5135 (sweep_pages): Update allocated counter for large pages. Don'y
5136 include overhead.
5137 (ggc_collect_1): Always collect.
5138 (ggc_collect): Honor always_collect flag. Sum all zones to decide
5139 whether to collect.
5140 (SCALE, LABEL): New macros.
5141 (ggc_print_statistics): Add statistics support.
5142
5143 2004-08-09 Roger Sayle <roger@eyesopen.com>
5144
5145 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
5146 (init_expmed): Fix potential overrun problem with "all.reg".
5147 (expand_sdiv2_pow2): Add an alternate implementation for signed
5148 division, if the target provides a suitable conditional move insn.
5149
5150 2004-08-09 Paul Brook <paul@codesourcery.com>
5151 Richard Henderson <rth@redhat.com>
5152
5153 * unwind-dw2.c (uw_install_context_1): Update target saved stack
5154 pointer.
5155
5156 2004-08-09 Geoffrey Keating <geoffk@apple.com>
5157
5158 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
5159 Check DATA limit only if there's no AS limit. Ignore insanely
5160 low DATA limits.
5161 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
5162 but take care that the AS limit isn't overrun.
5163 * doc/invoke.texi: Update documentation of min-heapsize parameter.
5164
5165 2004-08-09 Jeff Law <law@redhat.com>
5166
5167 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
5168 (tree-ssa-threadupdate.o): Add dependencies.
5169 * tree-ssa-threadupdate.c: New file.
5170 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
5171 (rewrite_vars_out_of_ssa): Remove prototype.
5172 (cleanup_tree_cfg): Returns a bool.
5173 * tree.h (thread_through_all_blocks): Prototype.
5174 * tree-outof-ssa.c (SSANORM_*): Move into here.
5175 (remove_ssa_form): Now static.
5176 (rewrite_vars_out_of_ssa): Kill.
5177 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
5178 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
5179 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
5180 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
5181 anything was changed.
5182 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
5183 from the PHI's annotation rather than the edge associated with
5184 the new argument.
5185 * tree-ssa-dom.c (redirection_edges): Kill.
5186 (redirect_edges_and_update_ssa_graph): Kill.
5187 (tree_ssa_dominator_optimize): Do not reset forwardable flag
5188 for blocks anymore. Do not initialize redirection_edges.
5189 Call thread_through_all_blocks. Simplify code for cleanup
5190 of the CFG and iterating. No longer call cleanup_tree_cfg
5191 outside the iteration loop.
5192 (thread_across_edge): No longer mess with forwardable blocks.
5193
5194 2004-08-09 Zack Weinberg <zack@codesourcery.com>
5195
5196 * explow.c (memory_address): Use memory_address_p.
5197 * recog.c (general_operand): Likewise.
5198 * regrename.c: No need to define REG_OK_STRICT.
5199
5200 2004-08-09 Steven Bosscher <stevenb@suse.de>
5201
5202 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
5203 New timers.
5204 * gcse.c: Include timevar.h.
5205 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
5206 and global_copy_prop_count.
5207 (local_const_prop_count, local_copy_prop_count): New static globals.
5208 (gcse_main): Set the right timevar for each pass.
5209 (cprop_jump): Increment global_const_prop_count when a constant is
5210 propagated. Add "GLOBAL" to dump output.
5211 (cprop_insn): Increment global_const_prop_count when a constant is
5212 propagated, or global_copy_prop_count when a copy is propagated.
5213 (do_local_cprop): Likewise for local_const_prop_count and
5214 local_copy_prop_count.
5215 (one_cprop_pass): Initialize const/cprop counters to zero.
5216 Print out results of local and global const/cprop separately.
5217 (bypass_block): Break over-length line.
5218 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
5219 for bb-reorder.o and tracer.o.
5220
5221 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
5222
5223 * Makefile.in (GTFILES): Remove stmt.c
5224 (stmt.o): Do not depend on gt-stmt.h.
5225 * emit-rtl.c (emit_line_note): Do not call
5226 set_file_and_line_for_stmt.
5227 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
5228 do everything.
5229 * function.c (free_after_parsing): Do not free STMT field.
5230 (allocate_struct_function): Do not call init_stmt_for_function.
5231 (assign_stack_temp_for_type): Do not accept values of keep
5232 other than 0 or 1.
5233 (init_temp_slots): Do not initialize removed variables.
5234 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
5235 and X_VAR_TEMP_SLOT_LEVEL fields.
5236 * rtl.h (set_file_and_line_for_stmt): Remove.
5237 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
5238 struct stmt_status, cond_stack, case_stack, nesting_stack,
5239 nesting_depth, emit_locus, set_file_and_line_for_stmt,
5240 same_case_target_p, init_stmt_for_function, emit_nop,
5241 expand_start_cond, expand_start_elseif, expand_start_else,
5242 expand_elseif, expand_end_cond): Remove.
5243 (preserve_subexpressions_p): Remove references to CFUN->STMT.
5244 (expand_start_case, expand_end_case_type): Remove, merge into...
5245 (expand_case): ... this one, including other bits from
5246 expand_expr_real_1. Inline same_case_target_p. Turn members
5247 of CASE_STACK into local variables.
5248 (emit_case_bit_tests): Inline same_case_target_p.
5249 (add_case_node): Add HEAD argument, return new head of the list,
5250 do not handle default label here.
5251 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
5252 expand_start_elseif, current_nesting_level, expand_start_case,
5253 expand_end_case_type, expand_end_case, add_case_node,
5254 init_stmt_for_function, expand_elseif): Remove prototypes.
5255 (expand_case): Add prototype.
5256
5257 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
5258
5259 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
5260
5261 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
5262
5263 * expr.c (var_rtx): Remove.
5264 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
5265 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
5266 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
5267 Abort.
5268 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
5269 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
5270 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
5271
5272 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
5273 Ayal Zaks <zaks@il.ibm.com>
5274
5275 * common.opt (freschedule-modulo-scheduled-loops): New flag.
5276 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
5277 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
5278 when -freschedule-modulo-scheduled-loops flag is not specified.
5279 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
5280 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
5281 More accurate placing of insn in row of partial schedule.
5282 (ps_insn_find_column): New function.
5283 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
5284 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
5285 (schedule_region): Use sched_is_disabled_for_current_region_p.
5286 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
5287
5288 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
5289
5290 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
5291 change.
5292
5293 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
5294
5295 * config/i386/i386.c (ix86_expand_clrmem): Properly call
5296 gen_strset for 64bit target.
5297
5298 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
5299
5300 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
5301
5302 2004-08-07 Jason Merrill <jason@redhat.com>
5303
5304 Make return in memory explicit.
5305 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
5306 (assign_parm_find_data_types): Remove code for old front end
5307 invisible reference handling.
5308 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
5309 (expand_function_end): Likewise.
5310 * gimplify.c (gimplify_return_expr): Handle a dereferenced
5311 RESULT_DECL.
5312 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
5313 (declare_return_variable): Handle DECL_BY_REFERENCE.
5314 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
5315 (cp_genericize_r): Use convert_from_reference.
5316 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
5317 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
5318
5319 * c-common.c (c_warn_unused_result): Check TREE_USED before
5320 warning about a CALL_EXPR with an unused value.
5321
5322 2004-08-06 Mark Mitchell <mark@codesourcery.com>
5323
5324 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
5325 to the compiler. Use -fshort-wchar by default.
5326
5327 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
5328
5329 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
5330 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
5331 threshhold.
5332 * doc/invoke.texi (param): Document min-crossjump-insns.
5333
5334 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
5335
5336 PR c/13282
5337 * c.opt (Wmissing-field-initializers): New option.
5338 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
5339 * c-typeck.c (pop_init_level): Guard the missing field warning with
5340 warn_missing_field_initializers rather than extra_warnings.
5341 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
5342 some of the explanation from...
5343 (-Wextra): ...here. Say that the missing field warning can be
5344 seperately controlled by -Wmissing-field-initializers.
5345
5346 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
5347
5348 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
5349 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
5350 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
5351 * tree.def (ENTRY_VALUE_EXPR): Remove.
5352
5353 2004-08-06 Jakub Jelinek <jakub@redhat.com>
5354
5355 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
5356 the places where it is actually needed. Don't use repz; stosb
5357 for -Os with sufficiently small constant sizes.
5358 For sufficiently small repz; stos{l,q} repeat counts use a sequence
5359 of stos{l,q} instructions instead.
5360
5361 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5362
5363 PR tree-optimization/16807
5364 * loop-iv.c (dump_iv_info): Dump invariants correctly.
5365 (iv_subreg, iv_extend): Express value of invariant purely in
5366 base field.
5367
5368 2004-08-06 Mark Mitchell <mark@codesourcery.com>
5369
5370 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
5371 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
5372
5373 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
5374
5375 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
5376 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
5377 pre_dec_operand.
5378 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
5379 pattern until reload is finished to allow better code generation
5380 and split them completely into separate instrunctions.
5381 (*andsi3_split): New pattern.
5382
5383 2004-08-05 Mark Mitchell <mark@codesourcery.com>
5384
5385 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
5386 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
5387 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
5388 * tree.h (handle_dll_attribute): Declare. Test
5389 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
5390 * c-common.h (c_determine_visibility): Declare.
5391 * c-common.c (c_determine_visibility): New function.
5392 * c-decl.c (finish_decl): Use it.
5393 (finish_function): Likewise.
5394 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
5395 zero, by default. Use #if, not #ifdef, to test it.
5396 * config/arm/arm.c (arm_attribute_table): Use
5397 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
5398 #if.
5399 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
5400 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
5401 to 1.
5402 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
5403 * config/i386/i386.c (ix86_attribute_table): Use
5404 handle_dll_attribute for dllimport/dllexport. Test
5405 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
5406 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
5407 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
5408 it to 1.
5409 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
5410 with #if.
5411 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
5412 it to 1.
5413 * doc/extend.texi (dllexport): Clarify and correct documentation.
5414 (dllimport): Likewise.
5415 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
5416 handle_dll_attribute.
5417
5418 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5419
5420 * tree-ssa-loop-manip.c: New file.
5421 * Makefile.in (tree-ssa-loop-manip.o): Add.
5422 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
5423 Declare.
5424 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
5425 form.
5426 (tree_ssa_loop_done): Verify loop closed ssa form.
5427 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
5428
5429 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5430
5431 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
5432 pa_asm_output_aligned_local): New functions.
5433 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
5434 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
5435 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
5436 pa_asm_output_aligned_common.
5437 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
5438 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
5439 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
5440 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
5441 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
5442 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
5443 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
5444 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
5445 common data.
5446
5447 2004-08-05 Andrew Pinski <apinski@apple.com>
5448
5449 * objc/objc-act.c (build_objc_string_object): Mark the address
5450 expression as constant.
5451
5452 2004-08-05 David Edelsohn <edelsohn@gnu.org>
5453
5454 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
5455 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
5456 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
5457
5458 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
5459
5460 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
5461 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
5462 out, and associated obsolete comments.
5463
5464 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
5465
5466 * tree.h (force_fit_type): Return a tree, take three flags.
5467 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
5468 TREE_CONSTANT_OVERFLOW here.
5469 (int_const_binop, const_binop): Adjust.
5470 (size_int_type): Do sign extension here.
5471 (fold_convert_const, optimize_bit_field_compare,
5472 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
5473 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
5474 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
5475
5476 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5477
5478 PR tree-optimization/16864
5479 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
5480 for ssa names without default_def.
5481
5482 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
5483
5484 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
5485 frame pointer, restore eax with an ebp-relative address.
5486
5487 2004-08-04 Geoffrey Keating <geoffk@apple.com>
5488
5489 PR 14516
5490 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
5491 * c-common.h (make_rtl_for_local_static): Delete.
5492 * c-decl.c (shadow_tag_warned): Clean up comment.
5493 (finish_decl): Clean up spacing. Use set_user_assembler_name when
5494 appropriate. Don't pass asmspec to rest_of_decl_compilation.
5495 * c-semantics.c (make_rtl_for_local_static): Delete.
5496 * expr.c (init_block_move_fn): Use set_user_assembler_name.
5497 (init_block_clear_fn): Likewise.
5498 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
5499 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
5500 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
5501 * tree.h (make_decl_rtl): Remove second parameter.
5502 (set_user_assembler_name): New.
5503 * varasm.c (set_user_assembler_name): New.
5504 (make_decl_rtl): Remove second parameter. Update callers in many
5505 files.
5506
5507 2004-08-05 Adam Nemet <anemet@lnxw.com>
5508
5509 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
5510 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
5511 to LynxOS 4.0.
5512 * gthr-lynx.h: New file.
5513 * config/lynx-ng.h: Remove file.
5514 * config/lynx.h: Update to LynxOS 4.0.
5515 * config/t-lynx: New file.
5516 * config/i386/lynx-ng.h: Remove file.
5517 * config/i386/lynx.h: Update to LynxOS 4.0.
5518 * config/rs6000/lynxbase.h: Remove file.
5519 * config/rs6000/lynx.h: Update to LynxOS 4.0.
5520 * config/rs6000/t-lynx: New file.
5521 * doc/install.texi (Options specification): Remove reference to
5522 LynxOS from systems where --with-gnu-as makes a difference.
5523
5524 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
5525
5526 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
5527 __UINTMAX_TYPE__.
5528 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
5529 __INTMAX_MAX__.
5530 (c_cpp_builtins): Call it.
5531 * doc/cpp.texi: Update.
5532
5533 2004-08-04 David Edelsohn <edelsohn@gnu.org>
5534
5535 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
5536 cost.
5537
5538 2004-08-04 Jan Hubicka <jh@suse.cz>
5539
5540 * basic-block.h (profile_staus): New global variable.
5541 * cfg.c (profile_status): Declare.
5542 (check_bb_profile): Break out from ....; use profile_status
5543 (dump_flow_info): ... here.
5544 * cfgbuild.c (find_basic_blocks): Set profile_status.
5545 * cfgexpand.c (tree_expand_cfg): Likewise.
5546 * predict.c (estimate_probability): Likewise.
5547 * profile.c (branch_prob): Likewise.
5548 * tree-cfg.c (build_tree_cfg): Likewise.
5549 (dump_function_to_file): Use check_bb_profile.
5550 * tree-pretty-print (dump_bb_header): Likewise.
5551 * tree-profile.c (do_tree_profiling): Cleanup.
5552
5553 2004-08-04 Zack Weinberg <zack@codesourcery.com>
5554
5555 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
5556 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
5557 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
5558 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
5559 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
5560 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
5561 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
5562 (ggc-none.o, errors.o): Move rule to generators section;
5563 correct dependencies.
5564 (min-insn-modes.o): Move rule to generators section; remove
5565 unnecessary explicit command; correct dependencies.
5566 (print-rtl.o, print-rtl1.o): Correct dependencies.
5567 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
5568 (mostlyclean): Update.
5569
5570 * errors.c: Include bconfig.h not config.h. Correct comment.
5571 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
5572 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
5573 * print-rtl.c: Don't include tm_p.h.
5574
5575 * rtl.h: Move forward-decl of struct function down where it's
5576 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
5577 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
5578
5579 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5580 Jeff Law <law@redhat.com>
5581
5582 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
5583 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
5584 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
5585 manipulate the duplicated ssa names.
5586 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
5587 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
5588 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
5589 New functions.
5590 (release_ssa_name): Do not release ssa names that may have multiple
5591 definitions.
5592 * tree.h (release_ssa_name_force, mark_for_rewrite,
5593 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
5594 marked_ssa_names): Declare.
5595 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
5596 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
5597 Update call to rewrite_ssa_into_ssa.
5598
5599 2004-08-04 Mark Mitchell <mark@codesourcery.com>
5600
5601 * defaults.h (TARGET_DECLSPEC): New macro.
5602 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
5603 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
5604 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
5605 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
5606 __declspec support.
5607 (TARGET_DECLSPEC): Define.
5608 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
5609 __declspec support.
5610 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
5611 __declspec support.
5612 (TARGET_DECLSPEC): Define.
5613 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
5614 __declspec support.
5615 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
5616 support.
5617 * doc/tm.texi (TARGET_DECLSPEC): Document.
5618
5619 * doc/extend.texi: Fix typo in comment.
5620
5621 2004-08-04 Paul Brook <paul@codesourcery.com>
5622
5623 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
5624 (TARGET_CXX): Use it.
5625 * target.h (struct gcc_target): Add cdtor_returns_this.
5626 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
5627 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
5628 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
5629
5630 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
5631
5632 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
5633 low/high pair. Do range checking directly.
5634 (interpret_integer): Adjust.
5635
5636 2004-08-04 Nick Clifton <nickc@redhat.com>
5637
5638 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
5639 GCC ABI.
5640 * doc/invoke.texi: Document this new switch and also the -mrenesas
5641 switch.
5642
5643 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
5644
5645 * cfglayout.c (insn_locators_initialize): Update the current
5646 location before initializing a location.
5647
5648 2004-08-03 Zack Weinberg <zack@codesourcery.com>
5649
5650 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
5651 (dbxout_function_end): Return after emitting the "Lscope" symbol
5652 under the same conditions that this function formerly wasn't called.
5653 Add explanatory comments.
5654
5655 PR 14860
5656 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
5657 on the new decl.
5658
5659 PR 13956
5660 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
5661 functions, broken out of dbxout_block.
5662 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
5663 stabs too, if it contains symbols. Use the begin_label and
5664 the Lscope label (emitted by dbxout_function_end) for the
5665 range of this block.
5666
5667 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
5668
5669 * doc/install.texi: Update autoconf version requirements.
5670
5671 2004-08-03 Zack Weinberg <zack@codesourcery.com>
5672
5673 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
5674 * recog.c (general_operand, immediate_operand, nonmemory_operand)
5675 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
5676 * regclass.c (record_reg_classes): Likewise.
5677 * reload.c (find_reloads): Likewise.
5678 * reload1.c (reload): Likewise.
5679
5680 2004-08-03 Zack Weinberg <zack@codesourcery.com>
5681
5682 * gensupport.c (init_md_reader_args_cb): Renamed from
5683 init_md_reader_args. Add third option, callback function for
5684 parsing program-specific options. Add diagnosis of incorrect
5685 number of input files.
5686 (init_md_reader): Fold into init_md_reader_args_cb.
5687 (init_md_reader_args): Now a thin wrapper around
5688 init_md_reader_args_cb.
5689 * gensupport.h: Update prototypes.
5690
5691 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
5692 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
5693 * genrecog.c: No need to diagnose lack of an input file;
5694 init_md_reader_args will handle it.
5695 * genconditions.c: Likewise, and use init_md_reader_args.
5696 * genconstants.c: Likewise, and no need to call read_md_rtx.
5697
5698 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
5699
5700 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
5701 declarations.
5702
5703 2004-08-03 Mike Stump <mrs@apple.com>
5704
5705 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
5706 for frameworks.
5707 * doc/invoke.texi (Darwin Options): Update to reflect above.
5708
5709 2004-08-03 Roger Sayle <roger@eyesopen.com>
5710
5711 PR middle-end/16790
5712 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
5713 truncations, not just global truncations.
5714
5715 2004-08-03 Andrew Pinski <apinski@apple.com>
5716
5717 PR bootstrap/16865
5718 * loop-iv.c (simplify_using_assignment): Initialize lhs.
5719
5720 2004-08-03 Paul Brook <paul@codesourcery.com>
5721
5722 * gcc/doc/install.texi: Document MPFR requirement.
5723
5724 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
5725
5726 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
5727 and mmap() explicitly instead of relying on preset autoconf cache
5728 variables.
5729 * configure: Regenerate.
5730
5731 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
5732
5733 PR target/16570
5734 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
5735 to tmake_file.
5736 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
5737 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
5738 to tmake_file.
5739
5740 * config/i386/t-gmm_malloc: New file.
5741 * config/i386/t-pmm_malloc: Likewise.
5742
5743 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
5744
5745 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
5746 Tanguy Fautrà <tfautre@pandora.be>
5747
5748 * config/i386/pmm_malloc.h: New file.
5749
5750 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
5751
5752 * config/i386/gmm_malloc.h: New file.
5753
5754 2004-08-03 Dale Johannesen <dalej@apple.com>
5755
5756 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
5757 * c-common.c: Include opts.h.
5758 (c_common_get_alias_set): Fix check for a single input file.
5759 * toplev.c: Remove current_file_decl.
5760 * tree.h: Ditto.
5761
5762 2004-08-03 Mark Mitchell <mark@codesourcery.com>
5763
5764 * config.gcc (arm*-*-symbianelf*): New target.
5765 * config/arm/symbian.h: New file.
5766
5767 * gthr-gnat.c: Add visibility #pragmas.
5768 * gthr-gnat.h : Likewise.
5769 * gthr.h: Likewise.
5770 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
5771 (__ffsDI2): Likewise.
5772 (__clzSI2): Likewise.
5773 (__ctzSI2): Likewise.
5774 (__ctzDI2): Likewise.
5775 (__popcountSI2): Likewise.
5776 (__popcountDI2): Likewise.
5777 (__paritySI2): Likewise.
5778 (__parityDI2): Likewise.
5779 * libgcc2.h: Add visibility #pragmas.
5780 (__clzDI2): Add prototype.
5781 (__clzSI2): Likewise.
5782 (__ctzSI2): Likewise.
5783 (__ffsDI2): Likewise.
5784 (__ffsSI2): Likewise.
5785 (__ctzDI2): Likewise.
5786 (__popcountSI2): Likewise.
5787 (__popcountDI2): Likewise.
5788 (__paritySI2): Likewise.
5789 (__parityDI2): Likewise.
5790 * unwind-dw2-fde.h: Add visibility #pragmas.
5791 * unwind.h: Likewise.
5792
5793 2004-08-03 David Edelsohn <edelsohn@gnu.org>
5794 Dale Johannesen <dalej@apple.com>
5795 Roger Sayle <roger@eyesopen.com>
5796
5797 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
5798 constants more accurately. Adjust costs for FMA instructions.
5799 Add cases for most logical and float operations. Recurse into
5800 most operands.
5801
5802 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
5803
5804 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
5805
5806 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
5807
5808 * ra-build.c (conflicts_between_webs): For webs that cross a call add
5809 conflicts to regs_invalidated_by_call.
5810
5811 2004-08-03 Paul Brook <paul@codesourcery.com>
5812
5813 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
5814
5815 2004-08-03 Jan Hubicka <jh@suse.cz>
5816
5817 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
5818 ARRAY_REF argument.
5819
5820 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
5821
5822 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
5823 arm968es, arm10e, arm1020e, arm1022e.
5824 * invoke.texi: Update list of ARM cores.
5825 * arm-tune.md: Regenerate.
5826
5827 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
5828
5829 * arm/gentune.sh: New file.
5830 * arm/t-arm: New file.
5831 * arm/arm-tune.md: New file (autogenerated).
5832 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
5833 * arm.md (attribute tune): Delete. Include arm-tune.md.
5834
5835 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
5836
5837 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
5838 penultimate parameter. All callers adjusted.
5839 (struct prefix_list): Remove used_flag_ptr.
5840 (find_a_file): Do not set *pl->used_flag_ptr.
5841 (warn_B, warn_std_ptr): Remove.
5842
5843 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
5844 Mostafa Hagog <mustafa@il.ibm.com>
5845
5846 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
5847
5848 2004-08-02 Geoffrey Keating <geoffk@apple.com>
5849
5850 * dwarf2out.c (output_call_frame_info): Don't change data format
5851 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
5852 label. Use 'true' not '1'.
5853 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
5854 required.
5855
5856 2004-08-02 Gabriel Dos Reis <gdr@cs.tamu.edu>
5857
5858 * gdbinit.in: Reflect previous changes to rtunion_def.
5859
5860 2004-08-02 Roger Sayle <roger@eyesopen.com>
5861
5862 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
5863 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
5864
5865 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
5866
5867 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
5868 vec_p_reserve.
5869 * langhooks.h (lang_hooks::builtin_function): Rename parameter
5870 from "class" to "bt_class".
5871
5872 2004-08-02 Paul Brook <paul@codesourcery.com>
5873
5874 PR rtl-optimization/15068
5875 * flow.c (init_propagate_block_info): Check condition is reversible.
5876
5877 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
5878
5879 * gengtype.h (options::info): Change type to const char *.
5880 (enum gc_used_enum): Move out of struct type scope.
5881 * gengtype.c (create_option): Convert initializer for option::info to
5882 appropiate type.
5883 (adjust_field_type, walk_type, write_func_for_structure,
5884 write_root, write_roots): Remove pointless cast.
5885
5886 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
5887
5888 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
5889
5890 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
5891
5892 * rtl.h (union rtunion_def): Have all members start with the
5893 prefix "rt_".
5894 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
5895 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
5896 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
5897 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
5898 access.
5899 * gengtype.c (adjust_field_rtx_def): Likewise.
5900 * rtlanal.c (loc_mentioned_in_p): Likewise.
5901
5902 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
5903
5904 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
5905 Replace uses of mips/elf64.h with mips/elf.h
5906 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
5907 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
5908 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
5909 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
5910 (HANDLE_SYSV_PRAGMA): Delete.
5911 (ASM_OUTPUT_DEF): Fix formatting.
5912 * config/mips/elf64.h: Delete.
5913
5914 2004-08-01 Zack Weinberg <zack@codesourcery.com>
5915
5916 * config/ia64/ia64.c (got_symbolic_operand): Do require a
5917 symbol+offset operand to have its offset be zero mod 0x3fff
5918 when GOT entries are in use. Clarify logic in SYMBOL_REF
5919 case. Clarify comments.
5920 (ia64_expand_load_address): Split a symbol+offset load when
5921 the offset is nonzero mod 0x3fff, not 0x1fff.
5922
5923 2004-08-01 Geoffrey Keating <geoffk@apple.com>
5924
5925 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
5926 if trying to *store* to a non-offsettable address.
5927 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
5928 a nonoffsettable address.
5929 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
5930 Clean up.
5931 (movti_string): Don't move GPRs to a nonoffsettable address.
5932 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
5933
5934 2004-08-02 Ben Elliston <bje@au.ibm.com>
5935
5936 PR target/16155
5937 * config/rs6000/altivec.h: Replace typeof with __typeof__.
5938
5939 2004-08-01 Richard Henderson <rth@redhat.com>
5940
5941 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
5942 variable sized types.
5943
5944 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
5945
5946 * doc/invoke.texi: In the MIPS options section, remove the passage
5947 saying that -mexplicit-relocs is usually disabled for -mabicalls
5948 -fno-unit-at-a-time.
5949 * config/mips/mips.c (override_options): Remove the code that enforced
5950 this rule.
5951
5952 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
5953
5954 * config/mips/mips.md (cprestore): Provide two alternatives, one for
5955 an in-range offset and one for an out-of-range offset. Wrap the latter
5956 in .set macro/.set nomacro if it's inside a .set nomacro block.
5957
5958 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
5959
5960 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
5961 (mips_restore_gp): Declare.
5962 * config/mips/mips.c (mips_add_offset): Add a scratch register
5963 argument. Reimplement in rtl only, reusing MIPS16 logic from
5964 mips_output_mi_thunk.
5965 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
5966 to mips_add_offset.
5967 (mips_gp_save_slot): Delete.
5968 (mips_restore_gp): New function.
5969 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
5970 * config/mips/mips.md (exception_receiver): Turn into a
5971 define_insn_and_split. Use mips_restore_gp to do the split.
5972 (call_internal, call_value_internal, call_value_multiple_internal): Use
5973 mips_restore_gp to restore $gp.
5974
5975 2004-07-31 Andrew Pinski <apinski@apple.com>
5976
5977 PR other/16842
5978 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
5979
5980 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
5981
5982 * c-decl.c (diagnose_mismatched_decls): Give error for external
5983 redeclaration of identifier declared with no linkage, not just
5984 warning with -Wtraditional. Do not check DECL_CONTEXT to give
5985 error for redeclaration with no linkage.
5986
5987 2004-07-30 Geoffrey Keating <geoffk@apple.com>
5988 Fariborz Jahanian <fjahanian@apple.com>
5989
5990 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
5991 non-offsettable addresses even for DImode.
5992 (rs6000_split_multireg_move): Cope with non-offsettable addresses
5993 being moved into multiple GPRs.
5994
5995 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
5996 to 64.
5997 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
5998 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
5999 to 128.
6000 * config/rs6000/darwin-ldouble.c (isless): New macro.
6001 (inf): New macro.
6002 (nonfinite): New macro.
6003 (FPKINF): Delete.
6004 (_xlqadd): Completely rewrite.
6005 (_xlqmul): Correct overflow handling.
6006 (_xlqdiv): Correct overflow handling.
6007 * config/rs6000/darwin-ldouble-format: New file.
6008
6009 2004-07-30 Roger Sayle <roger@eyesopen.com>
6010 Richard Henderson <rth@redhat.com>
6011
6012 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
6013 9 into the equivalent lea instruction.
6014
6015 2004-07-30 Richard Henderson <rth@redhat.com>
6016
6017 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
6018 with DECL_INITIAL if fb_lvalue.
6019 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
6020 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
6021 with <Cxxx>.
6022 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
6023
6024 2004-07-30 Diego Novillo <dnovillo@redhat.com>
6025
6026 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
6027 pointer escapes through a function call, assume that the
6028 callee will dereference it.
6029 (add_pointed_to_var): Assume that VALUE is always an
6030 ADDR_EXPR.
6031 (collect_points_to_info_r): Only call add_pointed_to_var if
6032 the value is an ADDR_EXPR.
6033
6034 2004-07-30 Diego Novillo <dnovillo@redhat.com>
6035
6036 * tree-ssa-alias.c (create_alias_map_for): Do not get the
6037 alias set of the inner type of ARRAY_TYPEs.
6038
6039 2004-07-29 Diego Novillo <dnovillo@redhat.com>
6040
6041 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
6042 setting a non-register to UNDEFINED right before the call to
6043 set_lattice_value.
6044
6045 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
6046
6047 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
6048
6049 2004-07-29 Diego Novillo <dnovillo@redhat.com>
6050
6051 * tree-ssa.c (verify_flow_sensitive_alias_info): When
6052 comparing points-to sets of different pointers, make sure the
6053 second pointer is actually referenced in the code.
6054
6055 2004-07-29 Zack Weinberg <zack@codesourcery.com>
6056
6057 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
6058 (got_symbolic_operand): Remove unreachable code.
6059 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
6060 setjmp_operand; add entry for tls_symbolic_operand.
6061 * config/ia64/ia64-protos.h: Remove all prototypes of
6062 predicate functions.
6063
6064 2004-07-29 Mark Mitchell <mark@codesourcery.com>
6065
6066 * c-common.h (lang_post_pch_load): New variable.
6067 * c-pch.c (lang_post_pch_load): Define it.
6068 (c_common_read_pch): Use it.
6069 * cgraphunit.c (record_call_1): Give the front end a chance to
6070 record additional needed entities when a variable is marked as
6071 needed.
6072 * tlink.c (recompile_files): Robustify.
6073 (scan_linker_output): If a symbol is assigned to a file,
6074 but after recompilation is not present there, issue an error
6075 message.
6076
6077 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6078
6079 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
6080 Take orig_loop argument and pass it to set_level.
6081 (schedule_sm): Pass the correct orig_loop to force_move_till.
6082
6083 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6084
6085 * cfgloop.c (update_latch_info): Update dominator of the new block.
6086 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
6087 info.
6088 * dominance.c (verify_dominators): Check that the dominance tree is
6089 connected.
6090 (recount_dominator): Ignore unreachable blocks.
6091 (iterate_fix_dominators): Cleanup old dominance information before
6092 recomputing it.
6093
6094 2004-07-29 Diego Novillo <dnovillo@redhat.com>
6095
6096 * tree-ssa-operands.c (get_expr_operands): Revert changes
6097 to ADDR_EXPR processing introduced by:
6098 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6099 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
6100
6101 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
6102
6103 * doc/implement-c.texi: Add C90 subclause references. Point to
6104 preprocessor documentation instead of duplicating it. Add points
6105 only present in C90. Fill in documentation for all points.
6106
6107 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6108
6109 * pa.c (output_movb): Correct typo.
6110
6111 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
6112
6113 * ra.h (single_reg_in_regclass): Declare.
6114 * ra.c (single_reg_in_regclass): Define.
6115 (first_hard_reg): New.
6116 (init_ra): Initialize single_reg_in_regclass.
6117 * ra-colorize.c (ok_class): New.
6118 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
6119
6120 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
6121
6122 * gcov-io.h: Allow zero tag as EOF indicator.
6123 (gcov_is_eof): Remove.
6124 (gcov_truncate): Remove.
6125 * gcov-io.c (gcov_seek): Always SEEK_SET.
6126 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
6127 EOF tag.
6128 * coverage.c (read_counts_file): Don't use gcov_is_eof.
6129 * gcov-dump.c (dump_file): Likewise.
6130 * gcov.c (read_graph_file, read_count_file): Likewise.
6131
6132 * c-decl.c (complete_array_type): Don't gratuitously copy
6133 maxindex. Check it always has a type.
6134
6135 2004-07-29 Steven Bosscher <stevenb@suse.de>
6136
6137 * rtl.c (currently_expanding_to_rtl): New.
6138 * rtl.h (currently_expanding_to_rtl): Export it.
6139 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
6140
6141 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
6142 inliner hack.
6143 * config/sh/sh.c: Replace rtx_equal_function_value_matters
6144 with currently_expanding_to_rtl.
6145 * config/sh/sh.md: Likewise.
6146 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
6147
6148 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
6149
6150 Introduce sh2a support.
6151 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
6152 * config.gcc: Build multilibs for sh2a and sh2a-single by
6153 default.
6154 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
6155 default. Split their tests out of the corresponding SH4
6156 multilibs.
6157 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
6158 multilibs for SH2a.
6159 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
6160 * config.gcc: Handle sh2a multilibs and cpu selection.
6161 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
6162 * config/sh/t-mlib-sh2a: New.
6163 * config/sh/t-mlib-sh2a-nofpu: New.
6164 * config/sh/t-mlib-sh2a-single: New.
6165 * config/sh/t-mlib-sh2a-single-only: New.
6166 2004-07-09 Nick Clifton <nickc@redhat.com>
6167 Issue 43400
6168 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
6169 -ml and -m2a are used together.
6170 2004-03-23 DJ Delorie <dj@redhat.com>
6171 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
6172 when we have a double-sized FPU.
6173 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
6174 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
6175 is set.
6176 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
6177 -msh2a-single and -msh2a-single-only
6178 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
6179 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
6180 is set.
6181 2004-02-20 DJ Delorie <dj@delorie.com>
6182 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
6183 2004-02-20 Fred Fish <fnf@redhat.com>,
6184 Corinna Vinschen <vinschen@redhat.com>
6185 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
6186 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
6187 2004-02-18 DJ Delorie <dj@redhat.com>
6188 * config/sh/sh.c (broken_move): Add support for movi20.
6189 * config/sh/sh.h: Likewise.
6190 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
6191 * config/sh/sh.md (udivsi3_sh2a): New.
6192 (udivsi3): Call it.
6193 (divsi3_sh2a): New.
6194 (divsi3): Call it.
6195 (mul_r): New.
6196 (ashlsi3_sh2a): New.
6197 (ashrsi3_sh2a): New.
6198 (lshrsi3_sh2a): New.
6199 (movsi_i): Disable for sh2a.
6200 (movsi_ie): Add movi20.
6201 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
6202 sh2a, for -m2a-nofpu mode.
6203 2004-02-13 DJ Delorie <dj@redhat.com>
6204 * config/sh/lib1funcs.asm: Handle double vs single better.
6205 * config/sh/sh.h: Likewise.
6206 2004-02-09 DJ Delorie <dj@redhat.com>
6207 * config/sh/crt1.asm: Add support for sh2a.
6208 * config/sh/elf.h: Likewise.
6209 * config/sh/lib1funcs.asm: Likewise.
6210 * config/sh/sh.c: Likewise.
6211 * config/sh/sh.md: Likewise.
6212 * config/sh/sh.h: Likewise.
6213 * config/sh/t-sh: Likewise.
6214
6215 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
6216
6217 * config/frv/frv.md (movqi_internal, movhi_internal,
6218 movsi_internal): Add backup alternatives for memory inputs.
6219
6220 2004-07-28 Matt Austern <austern@apple.com>
6221
6222 * config/darwin.c (darwin_one_byte_bool): New global variable.
6223 * config/darwin.h (darwin_one_byte_bool): Declare.
6224 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
6225 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
6226 value of darwin_one_byte_bool.
6227 * doc/invoke.texi: Document -mone-byte-bool flag.
6228
6229 2004-07-28 Eric Christopher <echristo@redhat.com>
6230
6231 * c-common.c (c_common_unsafe_for_reeval): Delete.
6232 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
6233 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
6234 * calls.c (fix_unsafe_tree): Delete.
6235 (expand_call): Delete code which used above.
6236 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
6237 * expr.c (expand_expr_real_1): Ditto.
6238 * fold-const.c (non_lvalue): Ditto.
6239 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
6240 (lhd_unsafe_for_reeval): Ditto.
6241 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
6242 * langhooks.h (unsafe_for_reeval): Ditto.
6243 (unsave_expr_now): Adjust comment.
6244 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
6245 (estimate_num_insns_1): Ditto.
6246 * tree-pretty-print.c (dump_generic_node): Ditto.
6247 * tree.c (expr_align): Ditto.
6248 (unsave_expr): Delete.
6249 (unsafe_for_reeval): Ditto.
6250 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
6251 * tree.def (UNSAVE_EXPR): Delete.
6252 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
6253
6254 2004-07-28 Zack Weinberg <zack@codesourcery.com>
6255
6256 * tree.h (enum tls_model): Move ...
6257 * coretypes.h: ... here.
6258
6259 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
6260
6261 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
6262
6263 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
6264
6265 * cse.c (validate_canon_reg): New function, split out from...
6266 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
6267
6268 2004-07-28 Diego Novillo <dnovillo@redhat.com>
6269
6270 * tree-ssa-alias.c (maybe_create_global_var): Don't just
6271 return if .GLOBAL_VAR has been created.
6272
6273 2004-07-28 Diego Novillo <dnovillo@redhat.com>
6274
6275 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
6276 every variable that may have aliases, not just tags.
6277
6278 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
6279
6280 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
6281 move_from_CR_eq_bit.
6282 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
6283
6284
6285 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
6286 e500_flip_eq_bit.
6287
6288 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
6289 output_e500_flip_eq_bit.
6290
6291 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
6292 output_e500_flip_eq_bit.
6293 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
6294 output_e500_flip_eq_bit.
6295 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
6296 (print_operand): case D. Get to EQ bit.
6297
6298 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
6299
6300 * gcov.c (function_summary): Add missing \n.
6301
6302 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
6303
6304 Introduce sh4a support.
6305 * config.gcc: Handle sh4a multilibs and cpu selection.
6306 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
6307 * config/sh/t-mlib-sh4a: New.
6308 * config/sh/t-mlib-sh4al: New.
6309 * config/sh/t-mlib-sh4a-nofpu: New.
6310 * config/sh/t-mlib-sh4a-single: New.
6311 * config/sh/t-mlib-sh4a-single-only: New.
6312 2004-02-20 DJ Delorie <dj@redhat.com>
6313 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
6314 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
6315 2003-08-22 Eric Christopher <echristo@redhat.com>
6316 * config/sh/sh4a.md: Update for chip errata.
6317 2003-08-07 Eric Christopher <echristo@redhat.com>
6318 * config/sh/sh4a.md: New file. sh4a processor description.
6319 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
6320 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
6321 of -m4a-nofpu.
6322 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
6323 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
6324 * doc/invoke.texi (SH Options): Document -m4al.
6325 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
6326 * config/sh/sh.c (expand_block_move): Remove commented-out code
6327 checked in by mistake.
6328 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
6329 single elements from SFmode vectors.
6330 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
6331 register.
6332 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
6333 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
6334 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
6335 sh_fsca_int2sf): Remove variable declarations.
6336 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
6337 sh_fsca_int2sf): New functions.
6338 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
6339 sh_fsca_int2sf_rtx): New static variables.
6340 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
6341 sh_fsca_int2sf): Declare.
6342 * config/sh/sh.md: Adjust.
6343 * doc/invoke.texi (SH Options): Document new options.
6344 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
6345 compatibility from SH4 code.
6346 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
6347 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
6348 early.
6349 (memory_movsrc_operand): Renamed to...
6350 (unaligned_load_operand): ... this. Simplified.
6351 * config/sh/sh.h (PREDICATE_CODES): Adjust.
6352 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
6353 input operand to SImode, and adjust the others. Introduce
6354 post-increment by peephole.
6355 * config/sh/sh.c (expand_block_move): Give the target address the
6356 same mode as the temp reg.
6357 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
6358 copying.
6359 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
6360 Introduce support for SH4a.
6361 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
6362 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
6363 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
6364 sh_fsca_int2sf): New.
6365 (sh_init_builtins): Initialize them.
6366 (print_operand): Support `d'.
6367 (expand_block_move): Use movua if src is misaligned.
6368 (memory_movsrc_operand): New.
6369 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
6370 and one of the SH4 macros.
6371 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
6372 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
6373 SELECT_SH4A_SINGLE): New.
6374 (TARGET_NONE): Add SH4A_BIT.
6375 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
6376 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
6377 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
6378 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
6379 (enum processor_type): Added PROCESSOR_SH4A.
6380 (PREDICATE_CODES): Add memory_movsrc_operand.
6381 * config/sh/sh.md: Removed unused variables.
6382 (attr cpu): Add sh4a.
6383 (attr type): Add movua, fsrra and fsca.
6384 (prefetch): New, for SH4.
6385 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
6386 (toggle_sz): Set type to fp.
6387 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
6388 (movua, extv, extzv): New.
6389 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
6390 and 4a-single-only.
6391
6392 2004-07-28 Diego Novillo <dnovillo@redhat.com>
6393
6394 * tree-optimize.c (init_tree_optimization_passes): Schedule
6395 pass_may_alias right after the program is renamed into SSA.
6396 * tree-pass.h (PROP_alias): Define.
6397 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
6398 * tree-sra.c (pass_sra): Likewise.
6399 * tree-ssa-ccp.c (pass_ccp): Likewise.
6400 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
6401 * tree-ssa-dce.c (pass_dce): Likewise.
6402 * tree-ssa-dom.c (pass_dominator): Likewise.
6403 * tree-ssa-dse.c (pass_dse): Likewise.
6404 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
6405 * tree-ssa-loop-ch.c (pass_ch): Likewise.
6406 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
6407 * tree-ssa-pre.c (pass_pre): Likewise.
6408 * tree-tailcall.c (pass_tail_recursion): Likewise.
6409 * tree-ssa.c (pass_redundant_phi): Likewise.
6410 * tree-ssa-alias.c (aliases_computed_p): Remove.
6411 Update all users.
6412 (init_alias_info): Do not mark all type tags for renaming
6413 unconditionally.
6414 Clear may_aliases from every symbol.
6415 (setup_pointers_and_addressables): If a pointer has not been
6416 dereferenced and it had a type tag, clear it and mark the old
6417 tag for renaming.
6418
6419 2004-07-28 Diego Novillo <dnovillo@redhat.com>
6420
6421 PR tree-optimization/16705
6422 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
6423 .GLOBAL_VAR.
6424
6425 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6426
6427 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
6428 check.
6429
6430 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
6431 don't make another one.
6432
6433 PR optimization/15077
6434 * function.h (struct function): Add field saved_static_chain_decl.
6435 Fix comment for static_chain_decl.
6436 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
6437 * tree-inline.h (save_body): Add new arg.
6438 * tree-optimize.c (tree_rest_of_compilation): Handle saving
6439 static_chain_decl.
6440
6441 2004-07-27 Richard Henderson <rth@redhat.com>
6442
6443 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
6444 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
6445 is_gimple_addressable.
6446 * tree-gimple.c (is_gimple_addressable): Rename from
6447 is_gimple_addr_expr_arg; accept INDIRECT_REF.
6448 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
6449 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
6450 rename to is_gimple_addressable.
6451
6452 2004-07-28 Alan Modra <amodra@bigpond.net.au>
6453
6454 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
6455
6456 2004-07-27 Richard Henderson <rth@redhat.com>
6457
6458 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
6459 before rounding.
6460
6461 2004-07-27 Zack Weinberg <zack@codesourcery.com>
6462
6463 * libgcc2.c: Change all conditionals testing
6464 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
6465 * libgcc2.h: Likewise.
6466 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
6467 TYPE_PRECISION of float80_type to 80.
6468 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
6469 of fpreg_type and float80_type to 80.
6470 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
6471 * config/m68k/netbsd-elf.h:
6472 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
6473 to evaluate to 80 whenever they would formerly have evaluated to 96.
6474 * config/i386/sco5.h: Remove unnecessary redefinition of
6475 LONG_DOUBLE_TYPE_SIZE.
6476 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
6477 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
6478 XFmode, with a bitsize of 80. Update commentary.
6479 * config/ia64/ia64-modes.def: Likewise.
6480 * config/m68k/m68k-modes.def: Likewise.
6481
6482 2004-07-27 Steven Bosscher <stevenb@suse.de>
6483
6484 * cfgexpand.c (tree_expand_cfg): Fix comment.
6485
6486 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
6487 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
6488 Remove.
6489 (prepare_function_start): Don't set rtx_equal_function_value_matters.
6490 * integrate.c (copy_rtx_and_substitute): Don't test for it.
6491 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
6492 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
6493 here again. Update leading comment.
6494 * rtl.c (rtx_equal_function_value_matters): Remove.
6495 (rtx_equal_p): Don't test for it.
6496 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
6497 Likewise.
6498
6499 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
6500 * rtl.c (note_insn_name): Likewise.
6501 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
6502 * final.c (final_scan_insn): Likewise.
6503
6504 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
6505 * passes.c (rest_of_handle_eh): Do it here.
6506
6507 * stmt.c (struct nesting): Remove struct nesting block member.
6508 (struct stmt_status): Remove x_block_start_count field.
6509 (current_block_start_count): Remove.
6510
6511 2004-07-27 Brian Booth <bbooth@redhat.com>
6512
6513 * tree-optimize.c (register_one_dump_file): Update condition that uses
6514 static_pass_number.
6515 (dup_pass_1): Replace with...
6516 (next_pass_1): This.
6517 (NEXT_PASS): Call next_pass_1.
6518 (DUP_PASS): Remove.
6519 (init_tree_optimization_passes): Remove uses of DUP_PASS.
6520 (execute_one_pass): Update condition that uses
6521 static_pass_number.
6522 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
6523 integer.
6524
6525 2004-07-27 Nick Clifton <nickc@redhat.com>
6526
6527 * config/m32r/m32r.c: Include integrate.h in order to get the
6528 prototype for get_hard_reg_initial_val().
6529
6530 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
6531 and tidy up indentation.
6532 (final_presence_set): Use absence_set instead, so that if there is
6533 nothing in the "o" pipe the "s" pipe can be scheduled.
6534
6535 2004-07-27 Diego Novillo <dnovillo@redhat.com>
6536
6537 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
6538 don't have PT_VARS nor PT_MALLOC set.
6539 Clear name tag from pointers that have not been dereferenced.
6540 (set_pt_anything, set_pt_malloc): Forward declare.
6541 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
6542 not type compatibility when determining if a pointer can be
6543 copy propagated.
6544
6545 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
6546
6547 * expr.h (canonicalize_condition, get_condition): Add an int argument.
6548 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
6549 it to check whether the condition is still valid at the jump insn.
6550 * ifcvt.c (noce_get_condition): Likewise.
6551 (noce_get_alt_condition): Update call to canonicalize_condition.
6552 * loop-iv.c (simplify_using_initial_values): Update call to
6553 get_condition. Remove FIXME.
6554 (check_simple_exit): Update call to get_condition.
6555 * loop-unswitch.c (may_unswitch_on): Likewise.
6556 * loop.c (check_dbra_loop): Likewise.
6557 (canonicalize_condition, get_condition): Add an argument to say whether
6558 the condition must still be valid at INSN.
6559 (get_condition_for_loop): Update call to get_condition. Require that
6560 the condition be valid at INSN.
6561 * predict.c (estimate_probability): Update call to get_condition.
6562 Remove unused earliest parameter.
6563 (expected_value_to_br_prob): Update call to canonicalize_condition.
6564
6565 2004-07-26 Eric Christopher <echristo@redhat.com>
6566
6567 * tree-dfa.c (add_referenced_var): Register initializers of global
6568 variables.
6569
6570 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
6571
6572 * config/i386/i386.c (function_arg): Always treat 8-
6573 and 16-byte wide vectors the same, even if MMX/SSE
6574 are disabled.
6575 (contains_128bit_aligned_vector_p): Add comment.
6576
6577 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
6578
6579 * ra.h (enum node_type): Rename to:
6580 (enum ra_node_type).
6581 * ra-colorize.c: Likewise.
6582
6583 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
6584
6585 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
6586 after simplifying the jump.
6587
6588 2004-06-26 Richard Henderson <rth@redhat.com>
6589
6590 * calls.c (combine_pending_stack_adjustment_and_call): Make
6591 preferred_unit_stack_boundary argument unsigned. Make
6592 unadjusted_alignment unsigned.
6593 (expand_call): Make preferred_stack_boundary and
6594 preferred_unit_stack_boundary variables unsigned.
6595 * function.c (assign_stack_local_1): Make alignment unsigned.
6596 * function.h (struct function): Make stack_alignment_needed,
6597 preferred_stack_boundary unsigned.
6598 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
6599 (ix86_compute_frame_layout): Make stack_alignment_needed,
6600 preferred_alignment variables unsigned.
6601 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
6602
6603 2004-07-26 Tom Tromey <tromey@redhat.com>
6604
6605 * tree.h: Fix typo in comment.
6606
6607 2004-07-26 Daniel Jacobowitz <dan@debian.org>
6608
6609 PR bootstrap/12804
6610 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
6611 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
6612 (ggc_free): Remove incorrect freeing.
6613 (sweep_pages): Advance PP for large pages. Fix indentation.
6614
6615 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
6616
6617 PR rtl-optimization/16643
6618 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
6619 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
6620 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
6621 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
6622 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
6623 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6624 * rtl.h (tracer): Add a flags parameter.
6625 * tracer.c (tracer): Pass it to cfg_layout_initialise.
6626 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
6627 (rest_of_handle_reorder_blocks): Update calls to tracer and
6628 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
6629 (rest_of_handle_tracer): Pass 0 to tracer.
6630 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
6631
6632 2004-07-25 David Edelsohn <edelsohn@gnu.org>
6633
6634 PR target/16239
6635 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
6636 f->f.
6637
6638 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
6639
6640 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
6641 (BINFO_BASE_ACCESS): Adjust.
6642 (BINFO_BASE_ACCESS_APPEND): New.
6643 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
6644 * dbxout.c (dbxout_type): Adjust binfo access accessing.
6645 * dwarf2out.c (gen_member_die): Likewise.
6646 * tree-dump.c (deque_and_dump): Likewise.
6647
6648 2004-07-26 Falk Hueffner <falk@debian.org>
6649
6650 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
6651 costs.
6652
6653 2004-07-25 Roger Sayle <roger@eyesopen.com>
6654
6655 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
6656 value off of the stack if TARGET_USE_FFREEP.
6657
6658 2004-07-26 Bernardo Innocenti <bernie@develer.com>
6659
6660 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
6661 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
6662 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
6663 check on invocation of XRESIZEVEC ().
6664
6665 2004-07-26 Bernardo Innocenti <bernie@develer.com>
6666
6667 * c-common.c (disable_builtin_function): Rename variable n to
6668 new_disabled_builtin.
6669 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
6670 Rename local variable old to old_decl.
6671 * gensupport.c (shift_output_template): Rename parameter old to src.
6672 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
6673 old_rtx and newx to new_rtx.
6674
6675 2004-07-26 Bernardo Innocenti <bernie@develer.com>
6676
6677 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
6678 of c-pragma.h.
6679 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
6680 enum cpp_ttype.
6681 * c-lex.c: Likewise.
6682
6683 2004-07-25 Roger Sayle <roger@eyesopen.com>
6684
6685 * fold-const.c (constant_boolean_node): Make extern.
6686 (make_range): Wrap long lines.
6687 (fold_cond_expr_with_comparison): Remove unnecessary call to
6688 pedantic_non_lvalue. Add missing calls to fold_convert.
6689 (fold_truthop): Add missing calls to fold_convert.
6690 (fold): Likewise.
6691 * tree.h (constant_boolean_node): Add prototype here.
6692 * builtins.c (expand_builtin_strncmp): Add missing calls to
6693 fold_convert.
6694 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
6695 Call fold_convert and constant_boolean_node to correct types.
6696 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
6697 missing call to fold_convert to correct types.
6698
6699 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
6700 Brian Ryner <bryner@brianryner.com>
6701
6702 PR c++/9283
6703 PR c++/15000
6704 * c-common.c (c_common_attribute_table): Allow
6705 handle_visibility_attribute to be called for types.
6706 (handle_visibility_attribute) When given a type, set the visibility
6707 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
6708 so that we can check later whether the attribute was present. Added
6709 warning if attribute applied to non class type.
6710 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
6711 decls and checking that they are consistent.
6712 * common.opt: Added -fvisibility.
6713 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
6714 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
6715 * flags.h, tree.h: Added assorted support defines for overall patch
6716 * opts.c: Added parsing support for -fvisibility.
6717 * tree.c (build_decl): Set visibility for all decls to be whatever
6718 is in force at that time.
6719 * varasm.c (default_binds_local_p_1): Reworked logic determining
6720 when to make a symbol locally bound.
6721 * doc/invoke.texi: Added documentation for -fvisibility and
6722 -fvisibility-inlines-hidden.
6723
6724 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6725
6726 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
6727 * c-common.c: Add missing casts from void * to other types.
6728 * c-decl.c: Likewise.
6729 * c-format.c: Likewise.
6730 * c-lex.c: Likewise.
6731 * c-pragma.c: Likewise.
6732 * c-typeck.c: Likewise.
6733 * defaults.h: Likewise.
6734 * genconstants.c: Likewise.
6735 * gengtype-lex.l: Likewise.
6736 * genmodes.c: Likewise.
6737 * read-rtl.c: Likewise.
6738 * rtl.c: Likewise.
6739
6740 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6741
6742 * bitmap.c: Use type-safe memory allocation macros from libiberty.
6743 * c-common.c: Likewise.
6744 * c-decl.c: Likewise.
6745 * c-lang.c: Likewise.
6746 * c-lex.c: Likewise.
6747 * c-opts.c: Likewise.
6748 * c-parse.in: Likewise.
6749 * c-typeck.c: Likewise.
6750 * genconditions.c: Likewise.
6751 * gengtype-lex.l: Likewise.
6752 * gengtype-yacc.y: Likewise.
6753 * gengtype.c: Likewise.
6754 * genmodes.c: Likewise.
6755 * gensupport.c: Likewise.
6756 * read-rtl.c: Likewise.
6757 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
6758 htab_find_slot().
6759
6760 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6761
6762 * c-decl.c (groktypename, groktypename_in_param_context): Rename
6763 variable typename to type_name.
6764 * c-lex.c (interpret_float): Likewise.
6765
6766 2004-07-25 Roger Sayle <roger@eyesopen.com>
6767
6768 * convert.c (convert_to_real, convert_to_integer,
6769 convert_to_complex): Replace calls to build with calls to buildN.
6770 * coverage.c (tree_coverage_counter_ref): Likewise.
6771 * dojump.c (do_jump): Likewise.
6772 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
6773 * emit-rtl.c (component_ref_for_mem_expr,
6774 set_mem_attributes_minus_bitpos): Likewise.
6775 * explow.c (update_nonlocal_goto_save_area): Likewise.
6776 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
6777 expand_mult_add): Likewise.
6778 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
6779 store_constructor, get_inner_reference, expand_expr_real_1,
6780 try_casesi, try_tablejump): Likewise.
6781 * function.c (expand_function_start): Likewise.
6782 * stmt.c (emit_case_bit_tests, expand_end_case_type,
6783 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
6784 * stor-layout.c (place_union_field, layout_type): Likewise.
6785 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
6786 * varasm.c (copy_constant): Likewise.
6787
6788 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6789
6790 * c-common.c: Rename all identifiers named `new'.
6791 * c-decl.c: Likewise.
6792 * gensupport.c: Likewise.
6793 * simplify-rtx.c: Likewise.
6794 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
6795 with XNEW().
6796 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
6797 with XNEWVEC().
6798
6799 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
6800
6801 PR c/15360
6802 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
6803 declarations until after calling pushdecl.
6804 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
6805 "extern" and not on whether the declaration is initialized.
6806
6807 2004-07-25 Daniel Jacobowitz <dan@debian.org>
6808
6809 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
6810 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
6811 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
6812 "cpplib.h", "c-pragma.h", "c-common.h".
6813 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
6814 (solaris_register_pragmas): New functions.
6815 * config/sol2-protos.h: New file.
6816 * config/sol2.c: New file.
6817 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
6818 (REGISTER_TARGET_PRAGMAS): New macros.
6819 (solaris_pending_aligns, solaris_pending_inits)
6820 (solaris_pending_finis): New variables.
6821 * config/t-sol2 (sol2-c.o): Update dependencies.
6822 (sol2.o): New rule.
6823 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
6824 SUBTARGET_INSERT_ATTRIBUTES.
6825 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
6826 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
6827 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
6828 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
6829 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
6830 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
6831 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
6832 * config/sparc/sparc.c (sparc_attribute_table): New.
6833 (TARGET_INSERT_ATTRIBUTES): Define in terms of
6834 SUBTARGET_INSERT_ATTRIBUTES.
6835 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
6836 is defined.
6837 * doc/extend.texi (Solaris Pragmas): New section.
6838
6839 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6840
6841 * c-common.c: Rename all identifiers named `class' to `cl'.
6842 * c-common.h: Likewise.
6843 * c-parse.in: Likewise.
6844 * c-typeck.c: Likewise.
6845 * genmodes.c: Likewise.
6846 * real.c: Likewise.
6847 * real.h: Likewise.
6848 * recog.c: Likewise.
6849 * recog.h: Likewise.
6850 * regrename.c: Likewise.
6851 * tree.h: Likewise.
6852 * c-common.c (builtin_function_2): Change type of 5th parameter from
6853 int to enum built_in_function. Change type of 8th parameter from int
6854 to bool.
6855 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
6856 with GGC_CNEW().
6857 * c-typeck.c (convert_arguments): Change type of formal_prec from
6858 int to unsigned int.
6859 * genmodes.c (blank_mode): Make a few negative constants unsigned.
6860 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
6861 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
6862 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
6863 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
6864 iterator to for_all_modes () instead of an enum because enums can't
6865 be incremented in C++.
6866
6867
6868 2004-07-25 Daniel Jacobowitz <dan@debian.org>
6869
6870 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
6871 hard registers.
6872
6873 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6874
6875 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
6876 Handle ARRAY_RANGE_REF like ARRAY_REF.
6877
6878 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
6879
6880 * c-typeck.c (digest_init): Don't allow arrays of signed or
6881 unsigned variants of wchar_t to be initialized by wide string
6882 constants. Do allow arrays of enumerated types compatible with
6883 wchar_t to be initialized by wide string constants. Refine tests
6884 distinguishing wide and narrow strings and arrays. Give specific
6885 error for arrays of other integer types initialized by string
6886 constants.
6887 (output_init_element, process_init_element): Check for
6888 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
6889 initializing with string constants.
6890
6891 2004-07-25 Richard Henderson <rth@redhat.com>
6892
6893 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
6894 on the RESULT_DECL.
6895 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
6896 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
6897 DECL_IGNORED_P to new decl.
6898
6899 2004-07-24 Zack Weinberg <zack@codesourcery.com>
6900
6901 * config/ia64/ia64.c (general_xfmode_operand)
6902 (destination_xfmode_operand): Delete.
6903 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
6904 * config/ia64/ia64.md (*movxf_internal): Use general_operand
6905 and destination_operand.
6906
6907 2004-07-24 Alexander Kabaev <kan@freebsd.org>
6908
6909 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
6910 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
6911
6912 2004-07-24 Alexander Kabaev <kan@freebsd.org>
6913 Zack Weinberg <zack@codesourcery.com
6914
6915 PR 16684
6916 * c-decl.c (diagnose_mismatched_decls): Don't issue a
6917 redundant-declaration warning the first time a builtin is
6918 declared explicitly.
6919
6920 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6921
6922 * tree.h (staticp): Change return type to bool.
6923
6924 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6925
6926 * c-common.c (c_staticp): Last episode of the staticp saga.
6927
6928 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6929
6930 * c-common.h (c_staticp): Change return type from int to bool.
6931 * tree.c (staticp): Likewise.
6932 * langhooks.h (staticp): Likewise.
6933
6934 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6935
6936 * langhooks-def.h (lhd_staticp): Change return type from int to
6937 bool in prototype to match definition.
6938
6939 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6940
6941 * system.h (bool, true, false): Don't redefine as preprocessor macros
6942 in C++.
6943
6944 2004-07-24 Roger Sayle <roger@eyesopen.com>
6945
6946 * expmed.c (init_expmed): A signed modulus by a power of two is
6947 considered cheap if its less than or equal to four instructions.
6948
6949 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6950
6951 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
6952 GGC_CNEWVAR): New macros.
6953
6954 2004-07-25 Bernardo Innocenti <bernie@develer.com>
6955
6956 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
6957 lists.
6958 * c-decl.c: Likewise.
6959 * c-format.c: Likewise.
6960 * c-lex.c: Likewise.
6961 * c-opts.c: Likewise.
6962 * c-pragma.c: Likewise.
6963 * c-typeck.c: Likewise.
6964 * gencheck.c: Likewise.
6965 * genconditions.c: Likewise.
6966 * genconfig.c: Likewise.
6967 * genflags.c: Likewise.
6968 * gengtype.c: Likewise.
6969 * gensupport.c: Likewise.
6970 * ggc-none.c: Likewise.
6971 * langhooks.c: Likewise.
6972 * statistics.h: Likewise.
6973 * stub-objc.c: Likewise.
6974 * java/decl.c: Likewise.
6975
6976 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
6977
6978 * config/m68k/m68k.c (output_scc_di): Fix coding style.
6979 (symbolic_operand): Fix prototype.
6980 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
6981 * config/m68k/m68k.md: Add constants for registers a0 and sp and
6982 use them, change from the "{...}" syntax to the simpler {...}
6983 syntax.
6984 (*cfv4_extendqisi2): Fix destination predicate.
6985 * config/m68k/m68k-protos.h: Remove various declarations also
6986 generated via PREDICATE_CODES.
6987
6988 2004-07-23 Mike Stump <mrs@apple.com>
6989
6990 * c-typeck.c (convert_for_assignment): Tightened up pointer
6991 converstions that differ in signedness.
6992
6993 2004-07-23 Zack Weinberg <zack@codesourcery.com>
6994
6995 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
6996
6997 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6998
6999 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
7000 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
7001
7002 * gimplify.c (gimplify_compound_lval): Check for no handled
7003 operations, rather than checking for explicit list of nodes.
7004 (is_gimple_addr_expr_arg_or_indirect): New function.
7005 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
7006 redundant setting of TREE_INVARIANT.
7007 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
7008 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
7009
7010 2004-07-23 Diego Novillo <dnovillo@redhat.com>
7011
7012 PR tree-optimization/16688
7013 PR tree-optimization/16689
7014 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
7015 unnecessary initialization of 'tag'.
7016 (get_tmt_for): Check that the new type tag has the same alias
7017 set as the pointed-to type.
7018 (group_aliases): Only regular variables need to be removed
7019 from the alias set of a name tag.
7020 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
7021 propagation if the two types are not compatible.
7022 (merge_alias_info): Rename from replace_ssa_names_ann.
7023 Add more checking.
7024 (replace_exp_1): If both arguments are SSA_NAMEs, check that
7025 the propagation can be done.
7026 Only call merge_alias_info on pointers.
7027 (propagate_value): Likewise.
7028 * tree-ssa-copyrename.c: Include langhooks.h.
7029 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
7030 to do the merging.
7031 Do not coalesce variables with incompatible types.
7032 (rename_ssa_copies): Call replace_ssa_name_symbol.
7033 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
7034 the same type as the underlying _DECL.
7035 * tree-ssanames.c (replace_ssa_name_symbol): New function.
7036 * tree.h (replace_ssa_name_symbol): Declare.
7037
7038 2004-07-23 Richard Henderson <rth@redhat.com>
7039
7040 PR c++/16277
7041 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
7042 unshare it properly.
7043 (gimplify_modify_expr_rhs): Push assignment from a conditional into
7044 the conditional for all non-register types.
7045
7046 2004-07-23 Richard Henderson <rth@redhat.com>
7047
7048 * expr.c (expand_expr_real_1): Don't handle non-local variables.
7049 * expr.h (fix_lexical_addr): Remove.
7050 * function.c (NEED_SEPARATE_AP): Remove.
7051 (fix_lexical_addr): Remove.
7052 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
7053 not null decl_function_context.
7054 (create_alias_vars): Likewise.
7055 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
7056 (simple_goto_p): Likewise.
7057 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
7058 * tree-ssa-ccp.c (get_default_value): Likewise.
7059 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7060 * tree.c (needs_to_live_in_memory): Likewise.
7061 * tree-flow-inline.h (may_be_aliased): Move...
7062 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
7063 when TREE_STATIC variables may be addressable.
7064
7065 2004-07-24 Jakub Jelinek <jakub@redhat.com>
7066
7067 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
7068
7069 2004-07-23 Zack Weinberg <zack@codesourcery.com>
7070
7071 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
7072 bitmap contents if GENERATOR_FILE is defined.
7073 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
7074 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
7075
7076 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
7077
7078 * c-decl.c (start_function): Form composite type of function types
7079 rather than copying type from previous prototype declaration.
7080
7081 2004-07-23 Janis Johnson <janis187@us.ibm.com>
7082
7083 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
7084 the const qualifier for the second argument in the C++ functions.
7085
7086 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
7087 specific pointer types.
7088
7089 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
7090 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
7091 for vector bool and/or vector pixel, add C++ and C missing support.
7092 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
7093 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
7094 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
7095 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
7096 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
7097 missing C++ and C support for vector bool and/or vector pixel.
7098 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
7099 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
7100 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
7101 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
7102 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
7103 C++ and C types used for vector bool and/or vector pixel.
7104 (vec_st, vec_stl): Add C++ support for vector pixel.
7105 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
7106 (vec_all_ne): Add C++ support for vector pixel.
7107
7108 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
7109 (vec_vmulesb): Add missing C++ function.
7110 (vec_perm): Fix type of third argument in C++ function.
7111 (vec_vsum4shs): Fix C++ function name.
7112 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
7113 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
7114 argument passed to the error handler in C macro.
7115 (vec_nmsub): Remove extra parens around argument names in C macro.
7116 (vec_packpx): Add missing parens in C macro.
7117
7118 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
7119
7120 * machmode.def: Remove vector modes.
7121 * config/alpha/alpha-modes.def: Add supported vector modes.
7122 * config/arm/arm-modes.def: Likewise.
7123 * config/frv/frv-modes.def: Likewise.
7124 * config/i386/i386-modes.def: Likewise.
7125 * config/rs6000/rs6000-modes.def: Likewise.
7126 * config/sh/sh-modes.def: Likewise.
7127
7128 2004-07-23 Matthias Klose <doko@debian.org>
7129
7130 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
7131 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
7132 * config.h: Regenerate.
7133 * configure: Likewise.
7134
7135 2004-07-22 Mark Mitchell <mark@codesourcery.com>
7136
7137 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
7138 generated SYMBOL_REFs for labels.
7139 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
7140 Change prototype.
7141 (machopic_stub_name): Remove.
7142 (machopic_indirection_name): New function.
7143 (machopic_mcount_stub_name): Likewise.
7144 (machopic_classify_name): Remove.
7145 (machopic_function_base_sym): New function.
7146 (machpoic_classify_symbol): Likewise.
7147 (machopic_classify_ident): Remove.
7148 (machopic_define_ident): Likewise.
7149 (machopic_define_name): Likewise.
7150 (machopic_name_defined_p): Likewise.
7151 (machopic_ident_defined_p): Likewise.
7152 (darwin_strip_name_encoding): Likewise.
7153 (machopic_define_symbol): New function.
7154 * config/darwin.c (hashtab.h): Include.
7155 (machopic_defined_list): Remove.
7156 (machopic_classify_ident): Likewise.
7157 (machopic_classify_name): Likewise.
7158 (machopic_ident_defined_p): Likewise.
7159 (machopic_define_ident): Likewise.
7160 (machopic_define_name): Likewise.
7161 (machopic_symbol_defined_p): New function.
7162 (machopic_classify_symbol): Likewise.
7163 (machopic_data_defined_p): Use machopic_classify_symbol.
7164 (machopic_define_symbol): New function.
7165 (machopic_function_base_sym): New function.
7166 (machopic_non_lazy_pointers): Remove.
7167 (machopic_non_lazy_ptr_name): Likewise.
7168 (machopic_stubs): Likewise.
7169 (machopic_stub_name): Likewise.
7170 (NON_LAZY_POINTER_SUFFIX): New macro.
7171 (STUB_SUFFIX): Likewise.
7172 (machopic_indirection): New structure.
7173 (machopic_indirections): New variable.
7174 (machopic_indirection_hash): New function.
7175 (machopic_indirection_eq): Likewise.
7176 (machopic_indirection_name): Likewise.
7177 (machopic_mcount_stub_name): New function.
7178 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
7179 hash table.
7180 (machopic_indirect_data_reference): Rework to use new functions.
7181 (machopic_indirect_call_target): Likewise.
7182 (machopic_legitimize_pic_address): Likewise.
7183 (machopic_output_indirection): New function.
7184 (machopic_finish): Use it.
7185 (machopic_operand_p): Rework to use new functions.
7186 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
7187 (darwin_strip_name_encoding): Remove.
7188 (update_non_lazy_ptrs): Remove.
7189 (update_stubs): Likewise.
7190 (darwin_non_lazy_pcrel): Use new functions.
7191 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
7192 (ASM_OUTPUT_LABELREF): Likewise.
7193 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
7194 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
7195 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
7196 (TARGET_STRIP_NAME_ENCODING): Do not use
7197 darwin_strip_name_encoding.
7198 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
7199 darwin_strip_name_encoding.
7200 * config/i386/darwin.h (FUNCTION_PROFILER): Use
7201 machopic_mcount_stub_name.
7202 * config/i386/i386.c (x86_output_mi_thunk): Use
7203 machopic_indirection_name, not machopic_stub_name.
7204 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
7205 machopic_function_base_sym.
7206 (print_operand): Use machopic_classify_symbol.
7207 (rs6000_emit_prologue): Use machopic_function_base_sym.
7208 (output_profile_hook): Do not use machopic_stub_name.
7209 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
7210
7211 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
7212
7213 PR c/7284
7214 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
7215 as multiplication.
7216
7217 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
7218
7219 * doc/implement-c.texi: New file.
7220 * doc/extend.texi (C Implementation): Move to there.
7221 * doc/gcc.texi: Include implement-c.texi.
7222 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
7223
7224 2004-07-22 Jason Merrill <jason@redhat.com>
7225
7226 * integrate.c (copy_decl_for_inlining): Remove invisible reference
7227 handling.
7228 * tree-inline.c (setup_one_parameter): Likewise.
7229
7230 2004-07-22 Brian Booth <bbooth@redhat.com>
7231
7232 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
7233 (substitute_and_fold): Propigate into VUSE operands when possible.
7234 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
7235 (cp_lattice_meet): Handle merging of latticevalues when
7236 UNKNOWN_VAL is present.
7237 (visit_stmt): Visit assignments with V_MUST_DEFs.
7238 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
7239 (ccp_fold): Deal with RHS' that are constant and virtual.
7240 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
7241 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
7242 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
7243 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
7244 computing immediate uses.
7245 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
7246 transition.
7247 (replace_vuse_in): New function.
7248 (likely_value): Add check of vuse operands.
7249 (get_default_value): Set the default value of virtually defined
7250 variables to UKNOWN_VAL instead of VARYING.
7251
7252 2004-07-22 Richard Henderson <rth@redhat.com>
7253
7254 * expr.c (emit_push_insn): Don't use set_mem_attributes.
7255
7256 2004-07-22 Richard Henderson <rth@redhat.com>
7257
7258 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
7259 variables due to conditional compilation.
7260
7261 2004-07-22 Diego Novillo <dnovillo@redhat.com>
7262
7263 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
7264 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
7265 Release SSA names that have been re-renamed.
7266 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
7267 variable.
7268 * tree-ssa-alias.c (init_alias_info): If aliases have been
7269 computed before, clear existing alias information.
7270 (create_name_tags): Do no fixup PT_ANYTHING pointers.
7271 If the new name tag for a pointer is different than the one it
7272 had before, mark the old tag for renaming.
7273 (replace_may_alias): New function.
7274 (group_aliases): Call it.
7275 (setup_pointers_and_addressables): Always call get_tmt_for.
7276 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
7277 once.
7278 (set_pt_anything): New local function.
7279 (set_pt_malloc): New local function.
7280 (merge_pointed_to_info): Don't merge pointed-to variables from
7281 the original pointer if the destination is pointing to an
7282 unknown location.
7283 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
7284 (add_pointed_to_var): Do not add a variable to the points-to
7285 set if the pointer is already pointing to anywhere.
7286 (collect_points_to_info_r): If the defining statement is a PHI
7287 node, only merge pointed-to information if the argument has
7288 already been visited.
7289 (get_tmt_for): Only create a new tag if the pointer didn't
7290 have one already.
7291 (dump_alias_info): Emit more information.
7292 (dump_points_to_info_for): Likewise.
7293 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
7294 try to get the annotation of an SSA_NAME.
7295 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
7296 alias sets when checking is enabled.
7297 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
7298 (eliminate): Mark basic blocks that will need
7299 EH information cleaned up.
7300 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
7301 predecessor.
7302 Initialize need_eh_cleanup.
7303 (fini_pre): Call tree_purge_all_dead_eh_edges and
7304 cleanup_tree_cfg if needed.
7305 Free need_eh_cleanup.
7306 * tree-ssa.c (verify_ssa_name): New function.
7307 (verify_def): Call it.
7308 Re-arrange to avoid printing too many error messages.
7309 (verify_use): Likewise.
7310 (verify_phi_args): Likewise.
7311 (verify_flow_insensitive_alias_info): New function.
7312 (verify_flow_sensitive_alias_info): New function.
7313 (verify_alias_info): New function.
7314 (verify_ssa): Call verify_alias_info.
7315 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
7316 program.
7317 Re-arrange to avoid printing too many error messages.
7318 * tree-ssanames.c (make_ssa_name): Clear
7319 SSA_NAME_IN_FREE_LIST.
7320 (release_ssa_name): Never release a default definition.
7321 (release_defs): New function.
7322 * tree.h: Declare it.
7323 * tree-ssa-dce.c (remove_dead_stmt): Call it.
7324
7325 2004-07-22 Diego Novillo <dnovillo@redhat.com>
7326
7327 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
7328 If true, do a depth-first search. Do a breadht-first search,
7329 otherwise.
7330 (walk_use_def_chains): Add new argument IS_DFS.
7331 Update all users.
7332 * tree-flow.h (walk_use_def_chains): Update prototype.
7333
7334 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
7335
7336 * config/cris/cris.md: Tweak formatting.
7337 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
7338 (mover2side, moverside, movemside, movei, op3, andu): Replace
7339 live define_peephole:s with define_peephole2 near-equivalents.
7340 Delete the rest.
7341 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
7342 word-size modes.
7343 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
7344 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
7345 "*mov_sidesi_mem" respectively.
7346
7347 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
7348
7349 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
7350 (gimplify_build1): Move from tree-complex.c do_unop.
7351 (gimplify_build2): Move from tree-complex.c do_binop.
7352 (gimplify_build3): New.
7353 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
7354 Adjust throughout to call the functions above.
7355 * tree-flow.h: Declare the functions above.
7356 * tree-nested.c (gimplify_val): Rename to...
7357 (tsi_gimplify_val): ... this.
7358
7359 * Makefile.in (tree_complex.o): Update dependencies.
7360 (stor-layout.o): Depend on regs.h.
7361 * c-common.c (handle_vector_size_attribute): Update for
7362 vector types without corresponding vector modes.
7363 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
7364 a corresponding vector mode is not available.
7365 * print-tree.c (print_node): Print nunits for vector types
7366 * regclass.c (have_regs_of_mode): New.
7367 (init_reg_sets_1): Initialize it and use it instead
7368 of allocatable_regs_of_mode.
7369 * regs.h (have_regs_of_mode): Declare it.
7370 * stor-layout.c (layout_type): Pick a mode for vector types.
7371 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
7372 build_replicated_const, do_unop, do_binop, do_plus_minus,
7373 do_negate, expand_vector_piecewise, expand_vector_parallel,
7374 expand_vector_addition, expand_vector_operations_1,
7375 expand_vector_operations, tree_lower_operations,
7376 pass_lower_vector_ssa, pass_pre_expand): New.
7377 (expand_complex_operations, pass_lower_complex): Remove.
7378 * tree-optimize.c (init_tree_optimization_passes): Adjust
7379 pass ordering for changes in tree-complex.c.
7380 * tree-pass.h: Declare new passes.
7381 * tree.c (finish_vector_type): Remove.
7382 (make_vector_type): New.
7383 (build_vector_type_for_mode, build_vector_type): Rewritten.
7384 * tree.def (VECTOR_TYPE): Document where the number of
7385 subparts is stored.
7386 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
7387 (make_vector): Remove declaration.
7388
7389 2004-07-21 Richard Henderson <rth@redhat.com>
7390
7391 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
7392 TREE_THIS_VOLATILE, may_aliases, or optimization level.
7393 (remove_useless_vars): Dump debugging info.
7394 (expand_used_vars): Move ...
7395 * cfgexpand.c (expand_used_vars): ... here. Make static.
7396 * tree-flow-inline.h (set_is_used): New.
7397 (set_default_def): Use get_var_ann.
7398 * tree-flow.h: Update decls.
7399 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
7400 (create_ssa_var_map): Use it.
7401 * tree-ssa.c (set_is_used): Remove.
7402
7403 2004-07-22 Ben Elliston <bje@au.ibm.com>
7404
7405 * gdbinit.in: Set a breakpoint on internal_error.
7406
7407 2004-07-21 Richard Henderson <rth@redhat.com>
7408
7409 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
7410 to create a new basic block.
7411
7412 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
7413
7414 PR c/15052
7415 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
7416 return type on function definitions. Move other warnings for
7417 qualified return type to -Wreturn-type. Do not condition any such
7418 warnings on -pedantic. Update comments.
7419 (start_function): Only copy function type from previous prototype
7420 declaration if return types are compatible.
7421 * c-typeck.c (function_types_compatible_p): Don't condition
7422 warning for incompatibility of volatile qualifiers on the return
7423 type on -pedantic. Update comment.
7424 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
7425
7426 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
7427
7428 * c-typeck.c (set_init_index): Require designator to be of integer
7429 type.
7430
7431 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
7432
7433 PR c/11250
7434 * c-parse.in (init): Change to exprtype.
7435 (primary): Set original_code for STRING to STRING_CST.
7436 Call maybe_warn_string_init for compound literals.
7437 (initdcl, notype_initdcl): Call maybe_warn_string_init.
7438 (initval): Update.
7439 * c-tree.h (maybe_warn_string_init): New.
7440 (pop_init_level, process_init_element): Use struct c_expr.
7441 (struct c_expr): Update comment.
7442 * c-typeck.c (maybe_warn_string_init): New function.
7443 (digest_init): Call it. Additional parameter strict_string. All
7444 callers changed.
7445 (output_init_element): Likewise.
7446 (struct constructor_stack): Use struct c_expr for
7447 replacement_value.
7448 (really_start_incremental_init, push_init_level): Update.
7449 (pop_init_level): Update. Return struct c_expr.
7450 (process_init_level): Update. Take struct c_expr argument.
7451
7452 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
7453
7454 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
7455 commit.
7456
7457 2004-07-21 Eric Christopher <echristo@redhat.com>
7458
7459 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
7460 removal.
7461 * c-decl.c (pop_scope): Ditto.
7462 * calls.c (expand_call): Remove call to current_nesting_level,
7463 update comment accordingly. Remove calls to expand_start_target_temps
7464 and expand_end_target_temps.
7465 * cfgexpand.c (construct_init_block): Remove call to
7466 expand_start_bindings_and_block.
7467 (construct_exit_block): Remove call to expand_end_bindings.
7468 * expr.c (safe_from_p): Remove BIND_EXPR handling.
7469 (expand_expr_real_1): Ditto. Fix formatting.
7470 (expand_vars): Delete.
7471 * stmt.c (POPSTACK): Remove block_stack.
7472 (stmt_status): Remove x_block_stack.
7473 (block_stack): Delete.
7474 (expand_start_bindings_and_block): Ditto.
7475 (expand_start_target_temps): Ditto.
7476 (expand_end_target_temps): Ditto.
7477 (current_nesting_level): Ditto.
7478 (warn_about_unused_variables): Ditto.
7479 (expand_end_bindings): Ditto.
7480 * tree.h: Remove declarations for above.
7481
7482 2004-07-21 Steven Bosscher <stevenb@suse.de>
7483
7484 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
7485 * rtl.c (note_insn_name): Likewise.
7486 * print-rtl.c (print_rtx): Don't print it.
7487 * cfgrtl.h (can_delete_note_p): Don't handle it.
7488 (rtl_delete_block): Likewise.
7489 * passes.c (rest_of_handle_guess_branch_prob): Remove.
7490 (rest_of_compilation): Don't call it.
7491 * predict.c (process_note_predictions, process_note_prediction,
7492 note_prediction_to_br_prob): Remove.
7493 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
7494 * stmt.c (return_prediction): Remove.
7495 (expand_value_return): Don't call it. Don't add prediction
7496 notes for return statements.
7497
7498 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
7499
7500 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
7501 once.
7502
7503 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
7504
7505 * c-common.c (vector_types_convertible_p): Use vector types'
7506 TYPE_SIZE and TREE_TYPE instead of their mode.
7507 * convert.c (convert_to_integer): Likewise.
7508 (convert_to_vector): Likewise.
7509 * fold-const.c (fold_convert): Likewise.
7510 * varasm.c (output_constant): Likewise.
7511 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
7512 Allow a VECTOR_TYPE initializer to be made of several vectors.
7513 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
7514 of cleared and need_to_clear, and use fold_convert.
7515 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
7516 integer vectors.
7517
7518 2004-07-20 Richard Henderson <rth@redhat.com>
7519
7520 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
7521 (expand_gimple_basic_block): out from here. Renamed from expand_block.
7522
7523 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
7524
7525 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
7526 enormous cost if not TARGET_HARD_MUL.
7527
7528 2004-07-20 Andrew Pinski <apinski@apple.com>
7529
7530 PR target/16557
7531 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
7532 (ASM_SPEC): here.
7533
7534 2004-07-21 Paul brook <paul@codesourcery.com>
7535
7536 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
7537
7538 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7539
7540 * fold-const.c (operand_equal_p): Temporarily support NULL args.
7541 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
7542 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
7543
7544 2004-07-20 Zack Weinberg <zack@codesourcery.com>
7545
7546 * rtl.h (plus_constant): Delete.
7547 (plus_constant_wide): Rename to plus_constant.
7548 (plus_constant_for_output_wide): Delete vestigial prototype.
7549 (GEN_INT): Remove unnecessary cast.
7550 * tree.h (build_int_2, size_int_type): Delete.
7551 (build_int_2_wide): Rename to build_int_2.
7552 (size_int_wide): Rename to size_int_kind.
7553 (size_int_type_wide): Rename to size_int_type.
7554 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
7555 Remove unnecessary cast.
7556 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
7557 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
7558 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
7559 (size_int_type_wide): Rename size_int_type.
7560 (int_const_binop): Use size_int_type.
7561 * c-lex.c (interpret_integer): Use build_int_2.
7562 * final.c (split_double): Remove unnecessary casts.
7563 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
7564
7565 2004-07-20 Richard Henderson <rth@redhat.com>
7566
7567 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
7568 (gimplify_compound_lval): Use is_gimple_tmp_reg.
7569 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
7570 (is_gimple_tmp_reg): New.
7571 * tree-gimple.h (is_gimple_tmp_reg): Declare.
7572
7573 2004-07-20 Richard Henderson <rth@redhat.com>
7574
7575 * tree-pretty-print.c (dump_generic_node): Dump
7576 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
7577
7578 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
7579
7580 * tree-mudflap.c (mf_set_options_fndecl): New tree.
7581 (mudflap_init): Set it.
7582 (mudflap_register_call): Remove __mf_init call.
7583 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
7584 to pass "-ignore-reads" option to libmudflap if needed.
7585
7586 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
7587
7588 PR c++/14607
7589 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
7590 (MAKE_DECL_ONE_ONLY): Undefine.
7591 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
7592 readonly_data, one_only_data_section, forget_section): New prototypes.
7593 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
7594 functions.
7595 (pa_select_section): Add one-only (COMDAT) support.
7596 * pa.h (struct machine_function): Define.
7597 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
7598 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
7599 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
7600 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
7601 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
7602 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
7603 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
7604 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
7605 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
7606 for EXTRA_SECTION_FUNCTIONS.
7607 * doc/install.texi: Update binutils requirements.
7608
7609 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
7610
7611 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
7612 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
7613 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
7614 size_t.
7615 (struct VEC): Use unsigned for num and alloc.
7616 * vec.c (struct vec_prefix): Likewise.
7617 (vec_o_reserve): Adjust.
7618
7619 * dbxout.c (dbxout_type): Fix printf format.
7620
7621 * tree.h (binfo_member): Remove.
7622 * tree.c (binfo_member): Remove.
7623
7624 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
7625
7626 * tree.h: Include vec.h
7627 (DEF_VEC_P(tree)): New type.
7628 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
7629 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
7630 (BINFO_LANG_SLOT): Remove.
7631 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
7632 (struct tree_binfo): Turn base_binfos into a trailing
7633 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
7634 (binfo_lang_slots): Remove.
7635 * tree.c (binfo_lang_slots): Remove.
7636 (make_tree_binfo_stat): Take a base binfo count, not a
7637 lang slot count. Adjust.
7638 * Makefile.in (TREE_H): Add vec.h
7639 * alias.c (record_component_aliases): Adjust BINFO access.
7640 * dbxout.c (dbxout_type): Likewise.
7641 * dwarf2out.c (gen_member_die): Likewise.
7642 * sdbout.c (sdbout_one_type): Likewise.
7643 * tree-dump.c (deque_and_dump): Likewise.
7644 * config/i386/i386.c (classify_argument,
7645 contains_128bit_aligned_vector_p): Likewise.
7646 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
7647 * doc/c-tree.texi (Classes): Update BINFO documentation.
7648
7649 2004-07-20 Steven Bosscher <stevenb@suse.de>
7650
7651 * c-common.h (check_case_value): Remove prototype.
7652 (c_add_case_label): Adjust prototype.
7653 * c-common.c (check_case_value): Make static.
7654 (check_case_bounds): New function.
7655 (c_add_case_label): Use it. Take new argument orig_type.
7656 * c-typeck.c (struct c_switch): New orig_type field.
7657 (c_start_case): Set it.
7658 (do_case): Pass it to c_add_case_label.
7659 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
7660 cases from here. Add the labels in reverse order.
7661 * stmt.c (struct case_node): Adjust comment. Remove balance field.
7662 (add_case_node): Return nothing, don't check for duplicate cases.
7663 Insert new case nodes in a list, not in an AVL tree.
7664 (expand_end_case_type): Don't turn a case tree into a case list.
7665 (case_tree2list): Remove.
7666 * tree.h (add_case_node): Adjust prototype.
7667
7668 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
7669
7670 * genattr.c (struct range, struct function_unit,
7671 write_units, extend_range, init_range): Remove them.
7672 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
7673 Output "#define INSN_SCHEDULING" here.
7674 * genattrtab.c (struct range, struct function_unit_op,
7675 struct function_unit, struct dimension, enum operator,
7676 operate_exp, expand_units, simplify_knowing,
7677 encode_units_mask, simplify_by_exploding,
7678 find_and_mark_used_attributes, unmark_used_attributes,
7679 add_values_to_cover, increment_current_value,
7680 test_for_current_value, simplify_with_current_value,
7681 simplify_with_current_value_aux, gen_unit,
7682 write_unit_name, write_function_unit_info,
7683 write_complex_function, write_toplevel_expr,
7684 find_single_value, extend_range): Remove.
7685 (write_attr_get): Do not handle common_av->value
7686 being an FFS.
7687 (struct attr_desc): Remove func_units_p and blockage_p.
7688 (write_attr_valueq): Do not handle them.
7689 (find_attr): Do not clear them.
7690 (make_internal_attr): Do not initialize them.
7691 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
7692 * sched-vis.c (init_target_units, insn_print_units,
7693 init_block_visualization, print_block_visualization,
7694 visualize_scheduled_insns, visualize_no_unit,
7695 visualize_stall_cycles, visualize_alloc,
7696 visualize_free, target_units, get_visual_tbl_length,
7697 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
7698 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
7699 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
7700 * haifa-sched.c (blockage_range, clear_units,
7701 schedule_unit, actual_hazard, potential_hazard,
7702 insn_unit, unit_last_insn, unit_tick,
7703 actual_hazard_this_instance, potential_hazard,
7704 schedule_unit, max_insn_queue_index_value): Remove.
7705 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
7706 max_insn_queue_index.
7707 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
7708 * doc/md.texi (Processor pipeline description): Remove
7709 references to old pipeline descriptions.
7710 (Automaton pipeline description): Merge with the above.
7711 (Old pipeline description, Comparison of the two descriptions):
7712 Remove.
7713
7714 * bt-load.c (migrate_btr_def): Remove references to
7715 use_pipeline_interface.
7716 * haifa-sched.c (insn_cost, schedule_insn,
7717 schedule_block, advance_one_cycle, sched_init,
7718 queue_to_ready, sched_finish): Likewise.
7719 * modulo-sched.c (sms_schedule, advance_one_cycle,
7720 ps_has_conflicts): Likewise.
7721 * sched-rgn.c (init_ready): Likewise.
7722 (debug_dependencies): Likewise, and remove an "if (1)".
7723 * target.h (use_dfa_pipeline_interface): Remove.
7724 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7725 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7726 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7727 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7728 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7729 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7730 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7731 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7732 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7733 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7734 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7735 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7736 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7737 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7738 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7739 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7740 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7741 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7742 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
7743
7744 2004-07-19 Roger Sayle <roger@eyesopen.com>
7745
7746 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
7747
7748 2004-07-19 Jeff Law <law@redhat.com>
7749
7750 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
7751 (get_eq_expr_value): Use it. Simplify slightly.
7752
7753 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
7754
7755 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
7756 (umulsidi3_32bit_r4000): Likewise.
7757
7758 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
7759
7760 * vec.h: Propagate location information properly.
7761 (VEC_T_iterate): Add result pointer parameter.
7762 (VEC_T_space): New.
7763 (VEC_T_reserve): Use it.
7764
7765 2004-07-19 Daniel Jacobowitz <dan@debian.org>
7766
7767 * Makefile.in (c-format.o): Depend on c-format.h.
7768 * c-format.h: New file.
7769 (struct format_char_info): Add CHAIN member.
7770 * c-format.c: Move some types and constants to c-format.h.
7771 (format_type_error): Set to -1.
7772 (struct function_format_info): Use an int for format_type.
7773 (decode_format_type): Return an int. Return format_type_error
7774 on error.
7775 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
7776 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
7777 (scan_char_table, time_char_table, monetary_char_table): Initialize
7778 CHAIN to NULL.
7779 (n_format_types): New variable.
7780 (check_format_info_main): Handle CHAIN in format_char_info.
7781 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
7782 TARGET_N_FORMAT_TYPES.
7783 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
7784 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
7785 * config/sol2-c.c: New file.
7786 * config/t-sol2: New file.
7787 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
7788 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
7789 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
7790
7791 * doc/extend.texi (Target Format Checks): New section.
7792 (Function Attributes): Mention it.
7793 * doc/invoke.texi: Mention target format checks.
7794 * doc/sourcebuild.texi: Mention target format checks.
7795 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
7796 TARGET_FORMAT_TYPES.
7797
7798 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
7799
7800 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
7801 added.
7802 * config/s390/s390.c (regclass_map initializer): Register 35 added to
7803 ADDR_REGS.
7804 (load_multiple_operation, store_multiple_operation): Removed
7805 pointless sanity check.
7806 (s390_decompose_address): Added check for return_address_pointer_rtx.
7807 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
7808 (s390_return_address_offset): New function.
7809 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
7810 (FRAME_REGNO_P): Added check for register 35.
7811 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7812 REG_ALLOC_ORDER): Appended entry for register 35.
7813 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
7814 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
7815 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
7816 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
7817 is eliminable using stack pointer or hard frame pointer.
7818 (REGISTER_NAMES): Added name for register 35.
7819 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
7820 pointless sanity check.
7821
7822 2004-07-19 Roger Sayle <roger@eyesopen.com>
7823
7824 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
7825 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
7826 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
7827 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
7828 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
7829 (fold_relational_const): Tidy up handling of floating point
7830 comparisons by calling real_compare. Remove tree_expr_nonzero_p
7831 transformation; fold_relational_const assumes constant operands.
7832
7833 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
7834
7835 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
7836 directory.
7837
7838 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
7839
7840 * c-tree.h (struct c_expr): Define.
7841 (C_SET_EXP_ORIGINAL_CODE): Remove.
7842 (parser_build_binary_op, build_compound_expr): Update prototypes.
7843 * c-parse.in (%union): Add exprtype.
7844 (FUNC_NAME): Mark as ttype.
7845 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
7846 exprtype.
7847 (expr): Update. Define directly in terms of expr_no_commas
7848 instead of using nonnull_exprlist.
7849 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
7850 offsetof_member_designator, typespec_nonreserved_nonattr, init,
7851 initval, designator, component_declarator,
7852 component_notype_declarator, enumerator, array_declarator,
7853 condition, exexpr, switch_statement, stmt_nocomp, stmt,
7854 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
7855 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
7856 where appropriate.
7857 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
7858 * c-common.c (c_common_truthvalue_conversion): Don't check
7859 C_EXP_ORIGINAL_CODE.
7860 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
7861 Don't use C_EXP_ORIGINAL_CODE.
7862 (default_conversion, default_function_array_conversion): Don't use
7863 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
7864 (internal_build_compound_expr): Merge into build_compound_expr.
7865 (build_compound_expr): Take two operands instead of a TREE_LIST.
7866 * objc/objc-act.c (get_super_receiver): Update calls to
7867 build_compound_expr.
7868
7869 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
7870
7871 * config/sh/sh.c (sh_use_dfa_interface): Remove.
7872 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
7873 hook_int_void_1.
7874 * config/sh/sh.md: Extract pipeline descriptions
7875 into separate files.
7876 * config/sh/sh1.md: New file, extracted from sh.md.
7877 * config/sh/sh4.md: New file, extracted from sh.md.
7878 * config/sh/shmedia.md: New file, extracted from sh.md
7879 and rewritten using new-style pipeline description.
7880
7881 2004-07-18 Zack Weinberg <zack@codesourcery.com>
7882
7883 * config/pa/pa.md: Delete the two remaining define_peephole
7884 patterns.
7885
7886 2004-07-18 Steven Bosscher <stevenb@suse.de>
7887 Joseph S. Myers <jsm@polyomino.org.uk>
7888
7889 * c-common.c (c_common_truthvalue_conversion): Don't warn if
7890 TREE_NO_WARNING is set.
7891
7892 2004-07-18 Roger Sayle <roger@eyesopen.com>
7893
7894 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
7895 simplify_builtin_strncmp): Delete.
7896 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
7897 Change argument to accept an arglist instead of an "exp". Assume
7898 that the return type is always integer_type_node. Copy missing
7899 transformations from their now obsolete simplify_builtin_*
7900 equivalents.
7901 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
7902 fold_builtin_strcmp and fold_builtin_strncmp.
7903 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
7904 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
7905 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
7906
7907 2004-07-18 Daniel Jacobowitz <dan@debian.org>
7908
7909 * Makefile.in (tree-alias-common.o): Update dependencies.
7910
7911 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
7912
7913 * cfgloop.c (flow_loop_nested_p): Fix comment.
7914
7915 2004-07-17 Jason Merrill <jason@redhat.com>
7916
7917 PR c++/16115
7918 * stor-layout.c (relayout_decl): New fn.
7919 * tree.h: Declare it.
7920 (DECL_BY_REFERENCE): New macro.
7921
7922 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
7923
7924 * libgcc2.c (__enable_execute_stack): New symbol.
7925 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
7926 and declare __enable_execute_stack.
7927 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
7928 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
7929 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
7930 ENABLE_EXECUTE_STACK.
7931 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
7932 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
7933 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
7934 ENABLE_EXECUTE_STACK.
7935 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
7936 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
7937 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
7938 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
7939 ENABLE_EXECUTE_STACK.
7940 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
7941 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
7942 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
7943 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
7944 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
7945 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
7946 (sparc64_initialize_trampoline): Likewise.
7947 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
7948
7949 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
7950
7951 * langhooks.h (builtin_function): New langhook.
7952 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
7953 (LANG_HOOKS_INITIALIZER): Update.
7954 * tree.h (builtin_function): Remove.
7955 * doc/tm.texi: Update.
7956 * c-tree.h (builtin_function): Declare.
7957 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
7958 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
7959 config/ia64/ia64.c, config/iq2000/iq2000.c,
7960 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
7961 config/stormy16/stormy16.c: All callers of builtin_function
7962 changed.
7963
7964 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
7965
7966 PR target/16556
7967 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7968 Remove white space after the backslash.
7969
7970 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
7971
7972 PR rtl-optimization/16294
7973 * resource.c (return_insn_p): New predicate.
7974 (mark_target_live_regs): Use it. Special-case return insns.
7975 (init_resource_info): Use it. Don't scan the epilogue past
7976 a return.
7977
7978 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7979
7980 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
7981 destroy dominance information.
7982 * passes.c (rest_of_handle_loop2): Free dominance information.
7983 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
7984 jump threading.
7985 (thread_jumps): Update dominance information and remove unreachable
7986 blocks.
7987 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
7988 information and remove the unreachable block.
7989
7990 2004-07-17 Graham Stott <graham.stott@btinternet.com>
7991
7992 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
7993
7994 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
7995
7996 * doc/sourcebuild.texi: Remove libf2c entry.
7997
7998 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
7999
8000 * config/i386/i386.md (movv16qi_internal): Fix typo.
8001
8002 2004-07-17 Steven Bosscher <stevenb@suse.de>
8003
8004 * final.c (final_scan_insn): Fix broken commit from previous
8005 patch.
8006
8007 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
8008
8009 * c-typeck.c (parser_build_binary_op): Condition warnings for
8010 X<=Y<=Z on -Wparentheses instead of -Wextra.
8011 * doc/invoke.texi: Update. Document that most of -Wparentheses is
8012 supported for C only.
8013
8014 2004-07-17 Steven Bosscher <stevenb@suse.de>
8015
8016 * cfgcleanup.c (try_simplify_condjump): Don't remove line
8017 notes to avoid unreachable code warnings.
8018 * toplev.c (backend_init): Don't emit line notes for
8019 unreachable code warnings.
8020
8021 * combine.c (distribute_notes): Don't distribute a
8022 REG_VTABLE_REF note.
8023 * final.c (final_scan_insn): Don't handle it.
8024 * rtl.c (reg_note_name): Remove it.
8025 * rtl.h (enum reg_node): Dito.
8026
8027 * emit-rtl.c (force_line_numbers, restore_line_number_status):
8028 Remove.
8029 * rtl.h (force_line_numbers, restore_line_number_status):
8030 Remove prototypes.
8031
8032 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
8033 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
8034 (using_eh_for_cleanups): Also moved here.
8035
8036 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
8037 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
8038 to expand_start_case and add_case_node.
8039 * stmt.c (struct nesting): Cleanup unused fields condition_code,
8040 last_unconditional_cleanup, nominal_type, printname, and
8041 line_number_status.
8042 (struct fixup_goto): Remove.
8043 (struct stmt_status): Remove x_goto_fixup_chain field.
8044 (goto_fixup_chain): Remove.
8045 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
8046 pushcase, pushcase_range): Remove.
8047 (expand_start_bindings_and_block): Don't set unused fields in
8048 the nesting stack.
8049 (expand_start_case, add_case_node): Cleanup unused formal arguments.
8050 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
8051 instead of emit_jump_if_reachable.
8052 (emit_case_nodes): Likewise.
8053 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
8054 static.
8055 (update_eh_label): Work around left-over exception handing regions.
8056 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
8057 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
8058 (pass_cleanup_cfg_post_optimizing): New pass.
8059 (init_tree_optimization_passes): Run the new pass after all
8060 optimizations.
8061 * tree.h (pushcase, pushcase_range): Remove prototypes.
8062 (expand_start_case, add_case_node): Update prototypes.
8063
8064 2004-07-16 Krister Walfridsson <cato@df.lth.se>
8065
8066 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
8067
8068 2004-07-16 Richard Henderson <rth@redhat.com>
8069
8070 * builtins.c (std_expand_builtin_va_arg): Remove.
8071 (expand_builtin_va_arg): Remove.
8072 * expr.h: Don't declare them.
8073 * gimplify.c (mark_decls_volatile_r): Remove.
8074 (copy_if_shared_r): Don't call it.
8075 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
8076 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
8077 * gimple-low.c (lower_stmt): Likewise.
8078 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
8079 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
8080 * tree-ssa-operands.c (get_expr_operands): Likewise.
8081 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
8082 EXPAND_BUILTIN_VA_ARG.
8083 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
8084 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
8085 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
8086 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
8087
8088 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
8089
8090 * tree-ssa-pre.c (insert_aux): Break out if we hit
8091 a critical edge.
8092
8093 2004-07-16 Richard Henderson <rth@redhat.com>
8094
8095 * basic-block.h (remove_fake_exit_edges): Declare.
8096 * cfganal.c (remove_fake_predecessors): Rename from
8097 remove_fake_successors; iterate over predecessors.
8098 (remove_fake_exit_edges): New.
8099 * cfgcleanup.c (try_optimize_cfg): Use it.
8100 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
8101 * predict.c (estimate_probability): Likewise.
8102 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
8103 * tree-cfg.c (make_edges): Likewise.
8104 * tree-ssa-pre.c (fini_pre): Likewise.
8105 * profile.c (instrument_edges): Don't remove_fake_edges.
8106 (branch_prob): Do it earlier here.
8107
8108 2004-07-16 Richard Henderson <rth@redhat.com>
8109
8110 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
8111 switchification wrt CONSTRUCTOR. Document the reason.
8112
8113 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
8114
8115 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
8116 that prevented descriptive __mf_check source location strings.
8117
8118 2004-07-16 Richard Henderson <rth@redhat.com>
8119
8120 * tree-def (WITH_SIZE_EXPR): New.
8121 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
8122 * expr.c (expand_expr_real_1): Likewise.
8123 * gimplify.c (maybe_with_size_expr): New.
8124 (gimplify_arg, gimplify_modify_expr): Use it.
8125 (gimplify_modify_expr_to_memcpy): Take size parameter.
8126 (gimplify_modify_expr_to_memset): Likewise.
8127 (gimplify_expr): Handle WITH_SIZE_EXPR.
8128 * tree-alias-common.c (find_func_aliases): Likewise.
8129 * tree-eh.c (tree_could_trap_p): Likewise.
8130 (tree_could_throw_p): Likewise.
8131 * tree-gimple.c (is_gimple_lvalue): Likewise.
8132 (get_call_expr_in): Likewise.
8133 * tree-inline.c (estimate_num_insns_1): Likewise.
8134 (expand_calls_inline): Likewise.
8135 * tree-nested.c (convert_call_expr): Likewise.
8136 * tree-pretty-print.c (dump_generic_node): Likewise.
8137 * tree-sra.c (sra_walk_expr): Likewise.
8138 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
8139 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
8140 * tree-ssa-operands.c (get_expr_operands): Likewise.
8141 * tree-tailcall.c (find_tail_calls): Likewise.
8142
8143 * calls.c (expand_call): Reset old_stack_allocated after
8144 calling emit_stack_restore.
8145
8146 2004-07-16 Richard Henderson <rth@redhat.com>
8147
8148 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
8149 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
8150 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
8151 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
8152 copy_res_decl_for_inlining.
8153
8154 * tree-inline.c (declare_return_variable): New modify_dest argument.
8155 Use it as the return value, when possible or manditory. Handle
8156 TREE_ADDRESSABLE types.
8157 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
8158 replacement of CALL_EXPR.
8159
8160 2004-07-16 Richard Henderson <rth@redhat.com>
8161
8162 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
8163 * gimple-low.c (expand_var_p): Don't check it.
8164 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
8165 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
8166 * tree-ssa-operands.c (add_stmt_operand): Likewise.
8167 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
8168 (find_referenced_vars): Don't call them.
8169 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
8170
8171 2004-07-16 Richard Henderson <rth@redhat.com>
8172
8173 * function.c (pass_by_reference): True for all variable sized types.
8174
8175 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
8176
8177 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
8178 * tree-pretty-print.c: Include tree-chrec.h.
8179 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
8180 and POLYNOMIAL_CHREC nodes.
8181
8182 2004-07-16 Steve Ellcey <sje@cup.hp.com>
8183
8184 * builtins.c (expand_builtin_stpcpy): Do not create temporary
8185 reg with VOIDmode.
8186
8187 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
8188
8189 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
8190
8191 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
8192
8193 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
8194 to BASE_REGNUM.
8195 * config/s390/s390.c: Likewise.
8196 * config/s390/s390.h: Likewise.
8197
8198 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
8199
8200 * config/mips/mips.md (addsi3, adddi3): Remove special handling
8201 of $sp adds. Remove REGNO checks from mips16 patterns.
8202
8203 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
8204
8205 * config/mips/mips.md: Delete outdated comment.
8206
8207 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
8208
8209 * config/mips/mips.c (get_float_compare_codes): Delete.
8210 (mips_emit_compare): New function, mostly extracted from
8211 get_float_compare_codes and gen_conditional_branch.
8212 (gen_conditional_branch, gen_conditional_move): Use it.
8213
8214 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
8215
8216 * genautomata.c (add_vect): Speedup by using integers as
8217 bit-vectors for walking through the comb_vect and finding
8218 a match.
8219
8220 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
8221
8222 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
8223 operand is an uns_arith_operand; use subtraction otherwise.
8224 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
8225 not just arith_operands.
8226
8227 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
8228
8229 * config/mips/mips-protos.h (gen_int_relational): Delete.
8230 (mips_emit_scc): Declare.
8231 * config/mips/mips.c (internal_test): Delete.
8232 (sle_operand, sleu_operand): New functions.
8233 (map_test_to_internal_test, gen_int_relational): Delete.
8234 (mips_emit_binary, mips_relational_operand_ok_p)
8235 (mips_emit_int_relational, mips_zero_if_equal)
8236 (mips_emit_scc): New functions.
8237 (gen_conditional_branch): Rework to use mips_emit_int_relational.
8238 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
8239 sleu_operand.
8240 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
8241 (sltu, sleu): Use mips_emit_scc.
8242 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
8243 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
8244 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
8245
8246 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
8247
8248 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
8249
8250 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
8251
8252 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
8253 (*sne_[sd]i): Likewise sne_[sd]i_zero.
8254 (*sgt_[sd]i): ...and sgt_[sd]i.
8255 (*slt_[sd]i): ...and slt_[sd]i.
8256 (*sgtu_[sd]i): ...and sgtu_[sd]i.
8257 (*sltu_[sd]i): ...and sltu_[sd]i.
8258 (*sleu_[sd]i): ...and sleu_[sd]i_const.
8259 Name previously unnamed mips16 patterns. Formatting fixes.
8260
8261 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
8262
8263 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
8264 (branch_type): Delete.
8265 (gen_conditional_branch, gen_conditional_move)
8266 (mips_gen_conditional_trap): Update after name change. Get the
8267 comparison mode from cmp_operands[0].
8268 * config/mips/mips.h (cmp_type, branch_type): Delete.
8269 (cmp_operands): Renamed from branch_cmp.
8270 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
8271 name change. Don't set branch_type.
8272 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
8273 mode class of cmp_operands[0] rather than branch_type. Update after
8274 name change.
8275
8276 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
8277
8278 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
8279 of 0...255 to 0 when inside a SET.
8280
8281 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
8282
8283 * config/mips/mips.md: Remove mips16 define_peepholes.
8284
8285 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
8286
8287 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
8288 (fini_pre): Remove fake edges.
8289
8290 2004-07-15 Richard Henderson <rth@redhat.com>
8291
8292 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
8293 (get_indirect_ref_operands, get_call_expr_operands): ... these.
8294
8295 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
8296
8297 * vec.h (VEC_address): New function.
8298
8299 2004-07-14 Jason Merrill <jason@redhat.com>
8300
8301 PR middle-end/15885
8302 * gimplify.c (gimplify_arg): New fn, split out from...
8303 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
8304
8305 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
8306
8307 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
8308 generate code which is generated by pushqi1 now
8309 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
8310
8311 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
8312
8313 * combine.c (simplify_set): match the mode of the constant 0 with
8314 the tested operand to match the compare behaviour and the
8315 simplify_relational_operation() expectation.
8316
8317 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
8318
8319 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
8320 ("bordered"): Same.
8321
8322 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
8323
8324 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
8325 unconditionally.
8326 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
8327
8328 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
8329
8330 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
8331 calls in mips16 code.
8332
8333 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
8334
8335 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
8336 the destination of the li as well as for the neg.
8337
8338 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
8339
8340 g++/15861
8341 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
8342 * cgraph.h: Update declaration.
8343 * c-decl.c (build_cdtor): Update call with default priority.
8344 * coverage.c (create_coverage): Ditto.
8345 * tree-mudflap.c (mf_init_fndecl): New tree.
8346 (mudflap_init): Set it.
8347 (mudflap_register_call): Arrange to call __mf_init before the first
8348 __mf_register call.
8349 (mudflap_finish_file): Mark the mudflap static initializer as extra
8350 high priority, to beat all C++ static constructors.
8351
8352 2004-07-15 Jeff Law <law@redhat.com>
8353
8354 * loop.c (check_insn_for_givs): Restore check for code labels that was
8355 accidentally deleted by a recent checkin.
8356
8357 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
8358
8359 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
8360 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
8361
8362 2004-07-14 Richard Henderson <rth@redhat.com>
8363
8364 * print-tree.c (print_node): Fix casts last change.
8365
8366 2004-07-15 Paul Brook <paul@codesourcery.com>
8367
8368 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
8369 to TARGET_UNWIND_INFO.
8370 * except.c (output_function_exception_table): Ditto.
8371 * except.h: Ditto.
8372 * opts.c (decode_options): Ditto.
8373 * passes.c (rest_of_handle_final): Ditto.
8374 * final.c (final_start_function): Ditto.
8375 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
8376 target hook.
8377 * targhooks.h (default_unwind_emit): Declare.
8378 * targhooks.c (default_unwind_emit): New function.
8379 * target-def.h: Define and use TARGET_UNWIND_EMIT.
8380 * target.h (struct gcc_target): Add unwind_emit.
8381 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
8382 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
8383 Remove IA64_UNWIND_EMIT.
8384 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
8385
8386 2004-07-14 Richard Henderson <rth@redhat.com>
8387
8388 * print-tree.c (print_node): Handle SSA_NAME.
8389
8390 2004-07-14 James E Wilson <wilson@specifixinc.com>
8391
8392 PR target/16325
8393 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
8394 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
8395
8396 2004-07-15 Jakub Jelinek <jakub@redhat.com>
8397
8398 * expr.c (expand_assignment): Reenable bitfield += optimizations.
8399 Use alias set 0 for memory, do proper mode calculations and adjust
8400 address for memories.
8401
8402 2004-07-14 Per Bothner <per@bothner.com>
8403
8404 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
8405 structure with extra column field.
8406 * tree.c (expand_location): Also fill in column field.
8407 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
8408 gets confused by the two conditionally-compiled definitions.
8409
8410 2004-07-14 Eric Christopher <echristo@redhat.com>
8411
8412 * calls.c (expand_call): Fix typo in comment.
8413
8414 2004-07-14 Steve Ellcey <sje@cup.hp.com>
8415
8416 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
8417 comparision of TFmode.
8418
8419 2004-07-14 Richard Henderson <rth@redhat.com>
8420
8421 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
8422 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
8423 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
8424 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
8425 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
8426 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8427 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
8428 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
8429 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
8430
8431 2004-07-14 Mike Stump <mrs@apple.com>
8432
8433 * config/darwin.h (WINT_TYPE): Define to be int to match
8434 system header files.
8435
8436 2004-07-14 Bob Wilson <bob.wilson@acm.org>
8437
8438 * config/xtensa/xtensa.c (function_arg_advance): Check for args
8439 that must be passed in the stack.
8440 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
8441 arguments if the size is not a constant.
8442
8443 2004-07-14 Per Bothner <per@bothner.com>
8444
8445 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
8446 instead of EXPR_LOCUS in a boolean context, which is always true
8447 if --enable-mapped-location.
8448 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
8449
8450 2004-07-14 Richard Henderson <rth@redhat.com>
8451
8452 * dominance.c (struct dom_info): Add fake_exit_edge.
8453 (init_dom_info): Allocate it.
8454 (free_dom_info): Free it.
8455 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
8456 in two passes.
8457 (calc_idoms): Honor fake_exit_edge.
8458
8459 2004-07-13 Jason Merrill <jason@redhat.com>
8460
8461 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
8462 (rhs_test_for): New fn.
8463 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
8464 * tree-gimple.h: Declare them.
8465 * gimplify.c (gimplify_modify_expr): Use the new fns.
8466
8467 2004-07-14 Richard Henderson <rth@redhat.com>
8468
8469 * config/arm/arm-protos.h (arm_va_arg): Remove.
8470 * config/arm/arm.c (arm_va_arg): Remove.
8471 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
8472 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
8473
8474 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8475
8476 * pa.c (fix_range): New function to mark a range(s) of registers as
8477 fixed registers.
8478 (override_options): Call fix_range if the -mfixed-range option string
8479 is not empty.
8480 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
8481 * doc/invoke.texi (-mfixed-range): Document new option.
8482
8483 2004-07-14 David Edelsohn <edelsohn@gnu.org>
8484
8485 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
8486 for TARGET_64BIT.
8487 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
8488
8489 2004-07-14 Roger Sayle <roger@eyesopen.com>
8490
8491 * expmed.c (expand_sdiv_pow2): New function to expand signed division
8492 by a positive power of two, split out from expand_divmod. Provide
8493 an alternate implementation when shifts are expensive. Lower the
8494 threshold for using a branchless implementation to BRANCH_COST >= 2.
8495 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
8496
8497 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
8498
8499 * tree-dfa.c (make_rename_temp): *Really* work just
8500 like create_tmp_var if called while outside SSA form.
8501
8502 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
8503
8504 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
8505 for division by zero.
8506 ("umodsi3"): Likewise.
8507
8508 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
8509
8510 * config/mips/mips.c (mips_output_move): When generating mips16 code,
8511 force loads of negative constants to be split.
8512 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
8513 Generalize SImode li/neg splitter to cope with other modes.
8514
8515 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
8516
8517 * expmed.c: Remove more references to QUEUED in the comments.
8518 * expr.c: Likewise.
8519
8520 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
8521
8522 Revert:
8523 2004-07-13 Richard Henderson <rth@redhat.com>
8524 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
8525 correctly.
8526
8527 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
8528
8529 * tree-dfa.c (make_rename_temp): Work just like
8530 create_tmp_var if called while outside SSA form.
8531
8532 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
8533
8534 * expr.c (enqueue_insn, finish_expr_for_function,
8535 protect_from_queue, queued_subexp_p, mark_queue,
8536 emit_insns_enqueued_after_mark, emit_queue,
8537 expand_increment): Remove.
8538 (store_constructor): Expand increment as an assignment.
8539 (expand_expr_real_1 <case PREINCREMENT_EXPR,
8540 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
8541 case POSTDECREMENT_EXPR>): Abort.
8542 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
8543 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
8544 protect_from_queue, emit_queue, queued_subexp_p): Remove.
8545 * function.h (pending_chain, x_pending_chain): Remove.
8546 * rtl.def (QUEUED): Remove.
8547
8548 * emit-rtl.c (copy_insn_1, copy_most_rtx,
8549 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
8550 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
8551 encode_units_mask): Likewise.
8552 * local-alloc.c (equiv_init_varies_p): Likewise.
8553 * rtl.c (copy_rtx): Likewise.
8554 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
8555 * simplify-rtx.c (simplify_gen_subreg): Likewise.
8556 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
8557
8558 * builtins.c (expand_builtin, expand_builtin_apply,
8559 expand_builtin_mathfn, expand_builtin_mathfn_2,
8560 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
8561 Remove calls to emit_queue and protect_from_queue.
8562 * calls.c (expand_call, precompute_arguments,
8563 precompute_register_parameters, rtx_for_function_call,
8564 store_one_arg): Likewise.
8565 * dojump.c (do_compare_and_jump, do_jump): Likewise.
8566 * explow.c (memory_address): Likewise.
8567 * expmed.c (clear_by_pieces_1, clear_storage,
8568 clear_storage_via_libcall, emit_group_load,
8569 emit_group_store, emit_store_flag,
8570 expand_expr_real_1, store_by_pieces,
8571 store_constructor, store_expr, try_casesi,
8572 try_tablejump): Likewise.
8573 * function.c (expand_pending_sizes): Likewise.
8574 * optabs.c (emit_cmp_and_jump_insns,
8575 emit_conditional_add, emit_conditional_move,
8576 expand_fix, expand_float, prepare_cmp_insn): Likewise.
8577 * stmt.c (emit_case_bit_tests,
8578 expand_asm_expr, expand_computed_goto,
8579 expand_decl_init, expand_end_case_type,
8580 expand_end_stmt_expr, expand_expr_stmt_value,
8581 expand_return, expand_start_case,
8582 optimize_tail_recursion): Likewise.
8583 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
8584 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
8585
8586 2004-07-14 Ben Elliston <bje@au.ibm.com>
8587
8588 * vec.h: Comment fix.
8589
8590 2004-07-13 Richard Henderson <rth@redhat.com>
8591
8592 * target.h (struct gcc_target): Add calls.pass_by_reference.
8593 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
8594 * function.c (pass_by_reference): Use the hook.
8595 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
8596 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
8597 (hook_pass_by_reference_must_pass_in_stack): New.
8598 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
8599 (alpha_pass_by_reference): New.
8600 (TARGET_PASS_BY_REFERENCE): New.
8601 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8602 * config/arc/arc.c (arc_pass_by_reference): New.
8603 (TARGET_PASS_BY_REFERENCE): New.
8604 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8605 (FUNCTION_ARG_CALLEE_COPIES): True.
8606 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
8607 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
8608 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
8609 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8610 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8611 * config/cris/cris.c (cris_pass_by_reference): New.
8612 (TARGET_PASS_BY_REFERENCE): New.
8613 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
8614 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
8615 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8616 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
8617 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8618 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
8619 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
8620 (frv_function_arg_pass_by_reference): Remove.
8621 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8622 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
8623 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
8624 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
8625 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8626 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
8627 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
8628 (ia64_pass_by_reference): Rename from
8629 ia64_function_arg_pass_by_reference.
8630 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8631 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8632 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
8633 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
8634 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
8635 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8636 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
8637 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
8638 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
8639 (m32r_pass_by_reference): Adjust prototype. Make static.
8640 Handle mode sizes correctly.
8641 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8642 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
8643 (m68hc11_function_arg_pass_by_reference): Remove.
8644 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8645 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
8646 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
8647 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8648 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
8649 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
8650 (mips_va_arg): Use pass_by_reference.
8651 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
8652 Handle mode sizes correctly.
8653 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8654 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
8655 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
8656 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
8657 (mmix_pass_by_reference): Rename from
8658 mmix_function_arg_pass_by_reference.
8659 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8660 (FUNCTION_ARG_CALLEE_COPIES): True.
8661 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
8662 (mn10300_pass_by_reference): New.
8663 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8664 (FUNCTION_ARG_CALLEE_COPIES): True.
8665 * config/pa/pa.c (pa_pass_by_reference): New.
8666 (TARGET_PASS_BY_REFERENCE): New.
8667 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8668 (FUNCTION_ARG_CALLEE_COPIES): True.
8669 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
8670 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
8671 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
8672 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8673 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
8674 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
8675 (s390_pass_by_reference): Rename from
8676 s390_function_arg_pass_by_reference.
8677 (s390_function_arg_advance): Don't query pass-by-ref.
8678 (s390_function_arg): Likewise.
8679 (s390_gimplify_va_arg): Use pass_by_reference.
8680 (s390_call_saved_register_used): Likewise.
8681 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8682 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
8683 (shcompact_byref, sh_pass_by_reference): New.
8684 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8685 (SHCOMPACT_BYREF): Remove.
8686 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
8687 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
8688 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
8689 (sparc_gimplify_va_arg): Use pass_by_reference.
8690 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8691 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8692 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
8693 (v850_pass_by_reference): New.
8694 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8695 (FUNCTION_ARG_CALLEE_COPIES): True.
8696 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
8697 FUNCTION_ARG_PASS_BY_REFERENCE docs.
8698
8699 2004-07-14 Richard Henderson <rth@redhat.com>
8700 Richard Sandiford <rsandifo@redhat.com>
8701
8702 * config/mips/mips-protos.h (mips_va_arg): Delete.
8703 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
8704 * config/mips/mips.c: Include tree-gimple.h.
8705 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
8706 (mips_arg_info): Remove special handling of must_pass_in_stck args.
8707 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
8708 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
8709
8710 2004-07-13 Bob Wilson <bob.wilson@acm.org>
8711
8712 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
8713 arguments for COND_EXPR in big-endian adjustment code.
8714
8715 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8716
8717 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
8718 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
8719 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
8720 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
8721
8722 2004-07-13 Diego Novillo <dnovillo@redhat.com>
8723
8724 PR tree-optimization/16443
8725 * tree-ssa-alias.c: Add more description for
8726 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
8727 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
8728 clobbering of call-clobbered and addressable variables. If
8729 there are any before aliases have been computed, add them.
8730
8731 2004-07-13 Diego Novillo <dnovillo@redhat.com>
8732
8733 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
8734 verification.
8735
8736 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
8737
8738 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
8739 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
8740 to the same type.
8741
8742 2004-07-13 Per Bothner <per@bothner.com>
8743
8744 * collect2.c (main): Handle --no-demangle and --demangle flags.
8745
8746 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
8747
8748 * Makefile.in (OBJS-common): Add tree-data-ref.o.
8749 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
8750 (tree-data-ref.o): New rule.
8751 * lambda.h: New file.
8752 * tree-data-ref.c: New file.
8753 * tree-data-ref.h: New file.
8754 * tree.c (int_cst_value, tree_fold_gcd): New functions.
8755 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
8756
8757 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
8758
8759 PR target/13926
8760 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
8761 * config/sparc/sparc.c (output_ubranch): New function.
8762 * config/sparc/sparc.md (jump pattern): Use it.
8763
8764 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
8765
8766 PR target/16494
8767 * config/sparc/sparc.c (output_cbranch): Properly guard
8768 the code handling far branches with TARGET_V9.
8769 * config/sparc/sparc.md (length attribute): Document the
8770 side-effect of having a length greater or equal to 3.
8771
8772 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
8773 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
8774
8775 PR target/15186
8776 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
8777 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
8778
8779 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
8780 Martin Sebor <sebor@roguewave.com>
8781
8782 PR target/12602
8783 * doc/invoke.texi (SPARC options): Document -threads
8784 and -pthreads on Solaris.
8785
8786 2004-07-13 Richard Henderson <rth@redhat.com>
8787
8788 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
8789 by reference.
8790 (ind_gimplify_va_arg_expr): Remove.
8791 * tree.h (ind_gimplify_va_arg_expr): Remove.
8792 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
8793 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
8794 argsp to be null.
8795
8796 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
8797 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
8798 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
8799 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
8800 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
8801
8802 2004-07-13 Richard Henderson <rth@redhat.com>
8803
8804 * function.c (pass_by_reference): New.
8805 (assign_parm_find_data_types): Use it.
8806 * calls.c (initialize_argument_information): Likewise.
8807 (emit_library_call_value_1): Likewise.
8808 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
8809 * function.h (pass_by_reference): Declare.
8810
8811 2004-07-13 Richard Henderson <rth@redhat.com>
8812
8813 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
8814 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
8815 * expr.h (MUST_PASS_IN_STACK): Remove.
8816 * system.h (MUST_PASS_IN_STACK): Poison.
8817 * tree.h (must_pass_in_stack_var_size): Declare.
8818 (must_pass_in_stack_var_size_or_pad): Declare.
8819 * calls.c (must_pass_in_stack_var_size): New.
8820 (must_pass_in_stack_var_size_or_pad): Rename from
8821 default_must_pass_in_stack.
8822 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
8823 (TARGET_MUST_PASS_IN_STACK): New.
8824 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
8825 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
8826 (TARGET_MUST_PASS_IN_STACK): New.
8827 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
8828 * config/frv/frv.c (frv_must_pass_in_stack): New.
8829 (TARGET_MUST_PASS_IN_STACK): New.
8830 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
8831 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
8832 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
8833 (ix86_must_pass_in_stack): Make static.
8834 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
8835 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
8836 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
8837 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
8838 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
8839 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
8840 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
8841 (mcore_must_pass_on_stack): Remove.
8842 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
8843 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
8844 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
8845 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
8846 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
8847 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
8848 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
8849 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
8850 (TARGET_MUST_PASS_IN_STACK): New.
8851 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
8852 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
8853 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
8854 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
8855 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
8856 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
8857 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
8858 MUST_PASS_IN_STACK.
8859
8860 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
8861 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
8862 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
8863 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
8864 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
8865 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
8866 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
8867 config/xtensa/xtensa.c: Use target hook.
8868
8869 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
8870
8871 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
8872 * configure: Rebuilt.
8873
8874 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
8875
8876 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
8877 * config/mips/mips.h (mips_reg_names): Don't declare.
8878 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
8879 (TARGET_NAME_REGS): Delete.
8880 (TARGET_SWITCHES): Remove -mrnames.
8881 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
8882 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
8883 in REGISTER_NAMES.
8884 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
8885 (override_options): Remove handling of TARGET_NAME_REGS.
8886
8887 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
8888
8889 * config/mips/mips.h (TARGET_*): Boolify.
8890
8891 2004-07-12 Nick Clifton <nickc@redhat.com>
8892
8893 * config.gcc: Add sh-*-symbianelf target.
8894 * config/sh/sh.c: Add new target macros:
8895 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
8896 TARGET_CXX_IMPORT_EXPORT_CLASS.
8897 (sh_file_start): Create a definition of the .directive section.
8898 (sh_attribute): Add dllimport and dllexport attributes.
8899 * config/sh/symbian-pre.h: New file.
8900 * config/sh/symbian-post.h: New file.
8901 * config/sh/symbian.c: New file. Contains Symbian specific
8902 functions.
8903 * config/sh/sh-protos.h: Add prototypes for new functions
8904 provided by symbian.c.
8905 * config/sh/t-symbian: New file.
8906 * doc/extend.texi: Document support for dllimport and dllexport
8907 attributes by the sh-symbianelf target.
8908
8909 2004-07-12 James E Wilson <wilson@specifixinc.com>
8910
8911 * Makefile.in (AR): Use @AR@ not ar.
8912 (NM): New.
8913 (AR_FOR_TARGET): Use $(AR) not ar for native.
8914 (NM_FOR_TARGET): Use $(NM) not nm for native.
8915 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
8916 * configure: Regenerate.
8917
8918 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
8919
8920 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
8921 special case.
8922 (ashldi3_sp64): Likewise.
8923
8924 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8925
8926 PR target/16477
8927 * pa.c (function_arg): Update comment.
8928 * pa.h (BLOCK_REG_PADDING): Define.
8929
8930 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8931
8932 PR tree-optimization/16461
8933 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
8934 arguments of phi nodes.
8935
8936 2004-07-12 Devang Patel <dpatel@apple.com>
8937
8938 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
8939
8940 2004-07-12 Steve Ellcey <sje@cup.hp.com>
8941
8942 * function.c (expand_function_start): Ensure r_save is in Pmode.
8943 * calls.c (prepare_call_address): Ensure static_chain_value is
8944 in Pmode.
8945 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
8946 r_save_area are in Pmode.
8947 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
8948 fnaddr, and static_chain are in Pmode.
8949
8950 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
8951
8952 PR target/16445
8953 * config/ia64/ia64.c (bundling): Don't count ignored insns.
8954
8955 2004-07-12 Richard Henderson <rth@redhat.com>
8956
8957 * target.h (struct gcc_target): Move gimplify_va_arg_expr
8958 next to build_builtin_va_list.
8959 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
8960 * builtins.c (gimplify_va_arg_expr): Likewise.
8961 * gimplify.c (copy_if_shared_r): Likewise.
8962
8963 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
8964
8965 * passes.c (rest_of_decl_compilation): Don't defer call of
8966 assemble_variable if its DECL_RTL is already set.
8967
8968 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
8969
8970 * cfgloop.h (struct loop): Add nb_iterations field.
8971 (current_loops): Declare.
8972 * tree-chrec.c (chrec_not_analyzed_yet,
8973 chrec_dont_know, chrec_known, count_ev_in_wider_type,
8974 chrec_contains_symbols_defined_in_loop): Remove the temporary
8975 hooks.
8976 * tree-flow-inline.h (loop_containing_stmt): New function.
8977 * tree-scalar-evolution.c: Add implementation.
8978 * tree-scalar-evolution.h: Add declarations.
8979
8980 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
8981
8982 PR rtl-optimization/15921
8983 * Makefile.in (global.o): Add recog.h.
8984
8985 * global.c (recog.h): Add the include-clause.
8986 (bb_info): New member earlyclobber.
8987 (allocate_bb_info, free_bb_info): Initialize/finish the new
8988 member.
8989 (earlyclobber_regclass, earlyclobber_regclass_length): The new
8990 global variables.
8991 (check_earlyclobber, regclass_intersect,
8992 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
8993 New functions.
8994 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
8995 (make_accurate_live_analysis): Modify pavin.
8996
8997 2004-07-12 Diego Novillo <dnovillo@redhat.com>
8998
8999 * tree-cfg.c (find_taken_edge): Statically compute the truth
9000 value of a predicate comparing an SSA_NAME to itself.
9001
9002 2004-07-12 Roger Sayle <roger@eyesopen.com>
9003
9004 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
9005 rs6000 doesn't have shift-and-add or shift-and-sub instructions
9006 by returning the cost of a multiplication plus an addition.
9007
9008 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
9009
9010 PR tree-optimization/14107
9011 * gimplify.c (gimplify_return_expr): Accept a
9012 RETURN_EXPR with an error argument.
9013 * tree-optimize.c (init_tree_optimization_passes):
9014 Run pass_warn_function_return at -O0.
9015
9016 2004-07-12 Roger Sayle <roger@eyesopen.com>
9017
9018 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
9019 index entry.
9020
9021 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
9022
9023 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
9024 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
9025 * config/mips/3000.md: Add copyright notice. Remove automota and
9026 function units; use generic ones instead. Only define reservations
9027 for things that are different from generic.md. Extend each clause
9028 to include r3900.
9029 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
9030 * config/mips/mips.md: Include them. Remove define_function_units.
9031 (alu, imuldiv): New automata and units.
9032
9033 2004-07-12 Ben Elliston <bje@au.ibm.com>
9034
9035 * doc/invoke.texi (Optimize Options): Document -frename-registers
9036 not being enabled by default at -O3.
9037
9038 2004-07-11 Roger Sayle <roger@eyesopen.com>
9039
9040 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
9041 floating point additions, to keep real immediate constant positive.
9042 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
9043 into X + C, and leave positive real constants as X - C.
9044
9045 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9046
9047 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
9048
9049 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9050
9051 PR tree-optimization/15654
9052 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
9053
9054 2004-07-11 Roger Sayle <roger@eyesopen.com>
9055
9056 * builtins.c (fold_builtin_fputs): Don't bother converting the
9057 return type to integer_type_node, as we've already checked that
9058 the result will be ignored.
9059
9060 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
9061 that signed addition, subtraction, multiplication, division,
9062 remainder, negation and absolute value may potentially trap.
9063
9064 * fold-const.c (fold_ignored_result): New function to strip
9065 non-side-effecting tree nodes from an expression whose result
9066 is ignored.
9067 (fold_convert): Call fold_ignored_result when casting a value
9068 to VOID_TYPE.
9069 (omit_one_operand): Call fold_ignored_result on the "omitted"
9070 operand when building a COMPOUND_EXPR.
9071 (pedantic_omit_one_operand): Likewise.
9072 * tree.h (fold_ignored_result): Prototype here.
9073 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
9074 when we're going to ignore the result.
9075
9076 2004-07-11 Richard Henderson <rth@redhat.com>
9077
9078 PR tree-opt/16383
9079 * tree-ssa-ccp.c (fold_stmt_r): Split out...
9080 * tree.c (fields_compatible_p, find_compatible_field): ... new.
9081 * tree.h (fields_compatible_p, find_compatible_field): Declare.
9082 * tree-sra.c (sra_hash_tree): Hash fields by offset.
9083 (sra_elt_eq): Use fields_compatible_p.
9084 (generate_one_element_ref): Use find_compatible_field.
9085
9086 2004-07-11 Richard Henderson <rth@redhat.com>
9087
9088 PR tree-opt/16422
9089 * tree-sra.c (generate_one_element_init): New.
9090 (generate_element_init): Use it.
9091 (scalarize_init): Push/pop gimplify context around it.
9092 (find_new_referenced_vars_1, find_new_referenced_vars): New.
9093 * gimplify.c (gimplify_expr): Allow SSA_NAME.
9094
9095 2004-07-11 Roger Sayle <roger@eyesopen.com>
9096
9097 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
9098 combine.c's combine_insn_cost.
9099 * rtl.h (insn_rtx_cost): Prototype here.
9100 * combine.c (combine_insn_cost): Delete function.
9101 (combine_validate_cost): Update callers of combine_insn_cost to
9102 call insn_rtx_cost instead.
9103 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
9104 requesting the rtx_cost of call and/or jump instructions.
9105
9106 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
9107 rtx_cost directly. Don't request/use the cost of call or jump
9108 instructions. Return -1 if the cost of any instruction can't be
9109 determined (or the BB contains a function call).
9110 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
9111 -1 (i.e. can't determine the cost of any instruction or the basic
9112 block contains a subroutine call).
9113 (find_if_case_2): Likewise.
9114
9115 2004-07-11 Roger Sayle <roger@eyesopen.com>
9116
9117 * rs6000.c (struct processor_costs): Change semantics of fields to
9118 include the COST_N_INSNS scaling, and update all initializers.
9119 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
9120 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
9121 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
9122 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
9123
9124 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
9125
9126 * LANGUAGES: Remove obsolete information.
9127
9128 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
9129
9130 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
9131 SIGBUS signal frames, the PSW address points *to* the faulting
9132 instruction, not after it.
9133
9134 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
9135
9136 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
9137 added to TLS symbol addresses.
9138
9139 2004-07-11 Richard Henderson <rth@redhat.com>
9140
9141 * expmed.c (init_expmed): Use stack-local structures for
9142 temporary rtl. Don't recognize shifts.
9143
9144 2004-07-11 Richard Henderson <rth@redhat.com>
9145
9146 * expr.c (store_expr): Don't fiddle subreg promotion for types
9147 with precision smaller than the mode.
9148
9149 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
9150
9151 * tree.h (all_types_permanent): Remove.
9152
9153 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
9154
9155 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
9156 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
9157 * langhooks.c (lhd_clear_binding_stack): Remove.
9158 * langhooks-def.h (lhd_clear_binding_stack,
9159 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
9160 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
9161 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
9162 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
9163 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
9164 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
9165 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
9166 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
9167 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
9168 * tree.h (poplevel): Don't declare.
9169 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
9170 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
9171 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
9172 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
9173 Remove.
9174
9175 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
9176
9177 PR tree-optimization/16437
9178 * c-common.c (shorten_compare): Don't mark result of conversion to
9179 narrower signed type as overflowing.
9180 * fold-const.c (decode_field_reference): Determine whether
9181 signedness comes from outer type using precision rather than size.
9182
9183 2004-07-11 Phil Edwards <phil@codesourcery.com>
9184
9185 * configure.ac: Alphabetize --enable-checking list, add
9186 missing valgrind entry.
9187 * configure: Regenerate.
9188
9189 2004-07-11 Phil Edwards <phil@codesourcery.com>
9190
9191 * doc/install.texi (Testing): Fix syntax in "make check" example.
9192
9193 2004-07-10 James E Wilson <wilson@specifixinc.com>
9194
9195 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
9196
9197 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9198
9199 PR rtl-optimization/16001
9200 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
9201 niter_expr.
9202
9203 2004-07-10 Geoffrey Keating <geoffk@apple.com>
9204
9205 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
9206
9207 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
9208 James Morrison <phython@gcc.gnu.org>
9209
9210 * doc/contrib.texi (Contributors): Add gfortran contributors and
9211 fix a couple of typos.
9212
9213 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9214
9215 PR rtl-optimization/15387
9216 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
9217 to incoming args space correctly.
9218
9219 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9220
9221 * pa.c (output_indirect_call): Only use %r2 as the link register in
9222 indirect calls with the long PA 2.0 pc-relative branch.
9223
9224 2004-07-10 Daniel Jacobowitz <dan@debian.org>
9225
9226 * config/i386/i386.c (override_options): Pick a 64-bit CPU
9227 for the default tuning if TARGET_64BIT.
9228
9229 2004-07-10 Richard Henderson <rth@redhat.com>
9230
9231 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
9232 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
9233
9234 2004-07-10 Jakub Jelinek <jakub@redhat.com>
9235
9236 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
9237 * expmed.c (store_bit_field, extract_bit_field): Remove last
9238 argument.
9239 * builtins.c (expand_builtin_signbit): Adjust callers.
9240 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
9241 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
9242 * ifcvt.c (noce_emit_move_insn): Likewise.
9243 * stmt.c (expand_return): Likewise.
9244 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
9245 store_field, expand_expr_real_1): Likewise.
9246
9247 2004-07-10 Richard Henderson <rth@redhat.com>
9248
9249 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
9250
9251 2004-07-09 Mike Stump <mrs@apple.com>
9252
9253 * config/darwin.c (no_dead_strip): Add.
9254 (HAVE_DEAD_STRIP): Add.
9255 (darwin_emit_unwind_label): Ensure that we don't dead code strip
9256 the .eh label.
9257
9258 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9259
9260 * tree-ssa-loop-im.c: New file.
9261 * Makefile.in (tree-ssa-loop-im.o): Add.
9262 * cfgloop.c (superloop_at_depth): New function.
9263 * cfgloop.h (superloop_at_depth): Declare.
9264 * common.opt (ftree-lim): New flag.
9265 * expr.c (array_ref_up_bound): New function.
9266 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
9267 * timevar.def (TV_LIM): New timevar.
9268 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
9269 computing immediate uses of a phi node.
9270 * tree-flow.h (struct tree_ann_common_d): Add aux field.
9271 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
9272 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
9273 * tree-pass.h (pass_lim): Declare.
9274 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
9275 functions.
9276 (pass_lim): New pass structure.
9277 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
9278 * tree.c (in_array_bounds_p): New function.
9279 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
9280 (in_array_bounds_p, array_ref_up_bound): Declare.
9281 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
9282 * doc/passes.texi (tree-ssa-loop-im.c): Document.
9283
9284 2004-07-09 Richard Henderson <rth@redhat.com>
9285
9286 * builtins.c (expand_builtin_stpcpy): Don't modify len.
9287
9288 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
9289 with prejudice.
9290
9291 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
9292
9293 * flags.h: Delete redundant prototypes that are being generated
9294 in options.h from common.opt.
9295 * common.opt: Add in the expository comments formerly in flags.h.
9296
9297 2004-07-09 Jan Beulich <jbeulich@novell.com>
9298
9299 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
9300 available for use only when TARGET_MMX/_SSE is set, and check for
9301 variable argument function if any register count is non-zero.
9302 (function_arg): Correctly suppress repeated warnings for passing SSE
9303 vectors are arguments without SSE enabled.
9304 (ix86_function_arg_boundary): Without SSE enabled, the use of what
9305 would be SSE register modes does no longer influence the alignment.
9306
9307 2004-07-09 Richard Henderson <rth@redhat.com>
9308
9309 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
9310 Always align upward to arg boundary. Use size_in_bytes/round_up.
9311 Maintain type-correctness of constants.
9312 * stor-layout.c (round_up, round_down): Special-case powers of 2.
9313
9314 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
9315
9316 * config/sparc/sparc.c (*_costs): Scale instruction costs
9317 by COSTS_N_INSNS.
9318 (sparc_rtx_costs): Adjust as appropriate.
9319
9320 2004-07-09 Jan Beulich <jbeulich@novell.com>
9321
9322 * config/i386/mm3dnow.h: New.
9323 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
9324
9325 2004-07-09 Richard Henderson <rth@redhat.com>
9326
9327 * simplify-rtx.c (simplify_const_relational_operation): Only
9328 look at bounds of scalar integers.
9329
9330 2004-07-09 Jan Beulich <jbeulich@novell.com>
9331
9332 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
9333
9334 2004-07-09 Andrew Pinski <apinski@apple.com>
9335
9336 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
9337 always referenced.
9338 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
9339 UOBJC_METACLASS_decl.
9340
9341 2004-07-09 James E Wilson <wilson@specifixinc.com>
9342
9343 PR target/16364
9344 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
9345 do return a parallel if hfa_mode == XFmode and mode == TImode.
9346
9347 2004-07-09 Jan Beulich <jbeulich@novell.com>
9348
9349 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
9350 permissible for unary plus.
9351
9352 2004-07-09 Jan Beulich <jbeulich@novell.com>
9353
9354 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
9355 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
9356 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
9357 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
9358 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
9359 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
9360 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
9361 (BUILTIN_xxxIMAX): New.
9362 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
9363 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
9364 BUILT_IN_PARITYIMAX.
9365
9366 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
9367
9368 * config/sparc/sparc.h (processor_costs): Define.
9369 (sparc_costs): Declare.
9370 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
9371 hypersparc_costs, sparclet_costs, ultrasparc_costs,
9372 ultrasparc3_costs): New.
9373 (sparc_override_options): Set sparc_costs as appropriate.
9374 (sparc_rtx_costs): Use sparc_costs instead of messy
9375 conditionals.
9376
9377 2004-07-09 Steven Bosscher <stevenb@suse.de>
9378
9379 * doc/md.texi (Processor pipeline description): Mention that
9380 the old pipeline description is deprecated.
9381
9382 * config/rs6000/7450.md (automaton ppc7450): Split up, move
9383 mciu_7450 function unit to...
9384 (automaton ppc7450mciu): ...new automaton.
9385
9386 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
9387 (schedule_block): Don't consider inserting bubbles.
9388 (sched_init): Don't initialize DFA bubbles.
9389 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
9390 TARGET_SCHED_DFA_BUBBLE): Remove.
9391 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
9392 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
9393 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
9394
9395 * stmt.c (conditional_context): Remove prototype.
9396 * tree.h (conditional_context): Remove.
9397 * tree-cfg.c (pre_insert_on_edge): Remove.
9398
9399 * c-common.h (c_expand_asm_operands): Remove prototype.
9400 * c-typeck.c (c_expand_asm_operands): Remove.
9401
9402 2004-07-09 Jan Beulich <jbeulich@novell.com>
9403
9404 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
9405 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
9406 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
9407 and V8QI are class SSE. All sufficiently small remaining vector modes
9408 must be passed in one or two integer registers.
9409 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
9410 returned in memory.
9411 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
9412 __builtin_ia32_pmuludq128 have non-uniform argument and return types
9413 and must thus be handled explicitly.
9414 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
9415 MMX and XMM regs.
9416 (movv8qi_internal, movv4hi_internal, movv2si_internal,
9417 movv2sf_internal): Permit moving between MMX and XMM registers (since
9418 MMX areguments and return values are passed in XMM registers).
9419 (sse2_umulsidi3): Correct type and mode.
9420
9421 2004-07-09 Richard Henderson <rth@redhat.com>
9422
9423 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
9424
9425 2004-07-09 Eric Christopher <echristo@redhat.com>
9426
9427 * config/rs6000/40x.md: Split into two automatons.
9428
9429 2004-07-09 Zack Weinberg <zack@codesourcery.com>
9430 Andrew Pinski <apinski@apple.com>
9431
9432 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
9433 on when we have more than one input file.
9434 (c_common_parse_file): Restore loop over all input files.
9435 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
9436
9437 * c-decl.c (set_type_context): New function.
9438 (pop_scope): Use it to set context of types. When we
9439 encounter a TYPE_DECL, set the context of the attached type too.
9440 (pop_file_scope): Don't call cpp_undef_all here.
9441 (diagnose_mismatched_decls): Do not complain about a second
9442 definition of an 'extern inline' function if it's not in the
9443 same translation unit. Do not complain about inline
9444 declaration after use if the use was in a different
9445 translation unit.
9446 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
9447 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
9448 the external scope.
9449 (pushdecl_top_level): Likewise.
9450 (grokdeclarator): Clarify what is going on with setting
9451 DECL_EXTERNAL on function types, a little.
9452 (c_write_global_declarations): Don't do anything if
9453 -fsyntax-only or errors have been encountered.
9454
9455 2004-07-09 Zack Weinberg <zack@codesourcery.com>
9456
9457 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
9458
9459 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9460
9461 PR target/16459
9462 * pa.c (output_indirect_call): Use %r2 as the link register when
9463 calling $$dyncall with a pc-relative branch.
9464
9465 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
9466
9467 * doc/install.texi (Binaries): Mention OpenPKG.
9468
9469 2004-07-09 Diego Novillo <dnovillo@redhat.com>
9470
9471 Fix PR tree-optimization/15555
9472 * tree-dfa.c (dump_variable): If the variable is a pointer
9473 SSA_NAME, also dump its points-to information.
9474 * tree-flow.h (struct ptr_info_def): Add field
9475 is_dereferenced.
9476 (dump_points_to_info_for): Declare.
9477 (debug_points_to_info_for): Declare.
9478 * tree-optimize.c (init_tree_optimization_passes): Add a
9479 second alias analysis pass after DOM2.
9480 Move pass_del_pta to a later spot.
9481 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
9482 create a name tags when we find a dereferenced pointer. Just
9483 mark the pointer dereferenced.
9484 (collect_points_to_info_for): Move code to clear points-to
9485 information to create_name_tags.
9486 (create_name_tags): New function.
9487 (compute_flow_sensitive_aliasing): Call it.
9488 (setup_pointers_and_addressables): Mark type tags for renaming
9489 here instead of ...
9490 (create_memory_tag): ... here.
9491 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
9492 (dump_points_to_info_for): Declare extern.
9493 (debug_points_to_info_for): New function.
9494
9495 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
9496
9497 * config/arc/arc.md: Switch to DFA-based scheduler description.
9498 * config/arc/arc.c: Switch to DFA-based scheduler description.
9499
9500 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
9501
9502 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
9503 pointer.
9504
9505 2004-07-09 Richard Henderson <rth@redhat.com>
9506
9507 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
9508 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9509 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
9510 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
9511
9512 * config/v850/v850-protos.h (v850_va_arg): Remove.
9513 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9514 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
9515 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
9516 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
9517 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
9518
9519 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
9520
9521 PR target/12133
9522 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
9523 and DImode to use +/-4k offset.
9524
9525 2004-07-09 Richard Henderson <rth@redhat.com>
9526
9527 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
9528 Remove.
9529 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9530 (xstormy16_gimplify_va_arg_expr): Rewrite from
9531 xstormy16_expand_builtin_va_arg.
9532 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
9533
9534 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
9535 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
9536
9537 * config/sh/sh-protos.h (sh_va_arg): Remove.
9538 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9539 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
9540 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
9541
9542 * config/pa/pa-protos.h (hppa_va_arg): Remove.
9543 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9544 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
9545 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
9546
9547 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
9548 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9549 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
9550 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
9551
9552 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
9553
9554 * config/sparc/sparc.md (return): Rewrite length formula.
9555 * config/sparc/sparc.c (output_return): Pass 1 as 5th
9556 argument to final_scan_insn when in a delay slot.
9557 (output_sibcall): Likewise.
9558
9559 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
9560
9561 * arm.c (arm_cpp_interwork): New variable.
9562 (arm_override_options): Set it if TARGET_INTERWORK was on the command
9563 line.
9564 * arm.h (arm_cpp_interwork): Declare it.
9565 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
9566 __THUMB_INTERWORK__ in the preprocessor.
9567
9568 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
9569
9570 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
9571
9572 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
9573
9574 PR target/16416
9575 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
9576 Override default settings to account for -m32 and -m64.
9577
9578 2004-07-08 Randolph Chung <tausq@debian.org>
9579
9580 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
9581
9582 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
9583
9584 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
9585 before comparing it as such.
9586
9587 2004-07-08 Richard Henderson <rth@redhat.com>
9588
9589 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
9590 temporary. Use bit arithmetic to align.
9591
9592 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
9593
9594 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
9595 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
9596 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
9597 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
9598 add_labels_and_missing_jumps, find_jump_block,
9599 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
9600 Likewise.
9601 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
9602 link_btr_uses, move_btr_def): Likewise.
9603 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
9604 expand_builtin_expect_jump): Likewise.
9605 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
9606 * calls.c (expand_call, emit_library_call_value_1): Likewise.
9607 * cfganal.c (forwarder_block_p): Likewise.
9608 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
9609 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
9610 find_bb_boundaries): Likewise.
9611 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
9612 merge_blocks_move_predecessor_nojumps,
9613 merge_blocks_move_successor_nojumps, insns_match_p,
9614 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
9615 try_optimize_cfg): Likewise.
9616 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
9617 * cfglayout.c (skip_insns_after_block, label_for_bb,
9618 record_effective_endpoints, insn_locators_initialize,
9619 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
9620 * cfgmainloop.c (create_loop_notes): Likewise.
9621 * cfgrtl.c (delete_insn, delete_insn_chain,
9622 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
9623 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
9624 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
9625 redirect_branch_edge, force_nonfallthru_and_redirect,
9626 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
9627 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
9628 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
9629 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
9630 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
9631 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
9632 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
9633 * combine.c (combine_instructions, can_combine_p, try_combine,
9634 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
9635 distribute_notes, distribute_links, insn_cuid): Likewise.
9636 * cse.c (fold_rtx, cse_insn, cse_around_loop,
9637 invalidate_skipped_block, cse_set_around_loop,
9638 cse_end_of_basic_block, cse_main, cse_basic_block,
9639 cse_condition_code_reg): Likewise.
9640 * cselib.c (cselib_process_insn): Likewise.
9641 * ddg.c (create_ddg): Likewise.
9642 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
9643 Likewise.
9644 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
9645 gen_label_die, dwarf2out_var_location): Likewise.
9646 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
9647 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
9648 last_call_insn, active_insn_p, next_label, prev_label,
9649 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
9650 add_insn_before, remove_insn, add_function_usage_to,
9651 reorder_insns, find_line_note, remove_unnecessary_notes,
9652 emit_insn_after_1, classify_insn): Likewise.
9653 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
9654 connect_post_landing_pads, sjlj_mark_call_sites,
9655 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
9656 can_throw_internal, can_throw_external, set_nothrow_function_flags,
9657 convert_to_eh_region_ranges): Likewise.
9658 * explow.c (optimize_save_area_alloca): Likewise.
9659 * expr.c (expand_expr_real): Likewise.
9660 * final.c (insn_current_reference_address, compute_alignments,
9661 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
9662 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
9663 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
9664 propagate_block_delete_insn, propagate_one_insn,
9665 init_propagate_block_info, propagate_block, libcall_dead_p,
9666 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
9667 Likewise.
9668 * function.c (instantiate_virtual_regs, reorder_blocks_1,
9669 expand_function_start, expand_function_end, contains,
9670 thread_prologue_and_epilogue_insns,
9671 reposition_prologue_and_epilogue_notes): Likewise.
9672 * gcse.c (constprop_register, bypass_conditional_jumps,
9673 insert_insn_end_bb, gcse_after_reload): Likewise.
9674 * genemit.c (gen_expand, gen_split): Likewise.
9675 * genpeep.c (gen_peephole, main): Likewise.
9676 * global.c (build_insn_chain): Likewise.
9677 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
9678 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
9679 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
9680 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
9681 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
9682 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
9683 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
9684 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
9685 dead_or_predicable): Likewise.
9686 * integrate.c (try_constants): Likewise.
9687 * jump.c (rebuild_jump_labels, cleanup_barriers,
9688 purge_line_number_notes, init_label_info, mark_all_labels,
9689 squeeze_notes, get_label_before, get_label_after,
9690 reversed_comparison_code_parts, simplejump_p, pc_set,
9691 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
9692 delete_barrier, delete_prior_computation, delete_computation,
9693 delete_related_insns, delete_for_peephole, redirect_jump):
9694 Likewise.
9695 * lcm.c (optimize_mode_switching): Likewise.
9696 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
9697 Likewise.
9698 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
9699 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
9700 * loop-iv.c (simplify_using_assignment): Likewise.
9701 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
9702 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
9703 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
9704 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
9705 check_insn_for_givs, check_final_value, update_giv_derive,
9706 basic_induction_var, product_cheap_p, check_dbra_loop,
9707 loop_insn_first_p, last_use_this_basic_block,
9708 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
9709 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
9710 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
9711 sms_schedule_by_order): Likewise.
9712 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
9713 * postreload.c (reload_cse_simplify_operands, reload_combine,
9714 reload_cse_move2add): Likewise.
9715 * predict.c (can_predict_insn_p, estimate_probability,
9716 expected_value_to_br_prob, process_note_predictions): Likewise.
9717 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
9718 * profile.c (branch_prob): Likewise.
9719 * ra-build.c (live_out_1, livethrough_conflicts_bb,
9720 detect_webs_set_in_cond_jump): Likewise.
9721 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
9722 ra_print_rtl_with_bb): Likewise.
9723 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
9724 * recog.c (next_insn_tests_no_inequality, find_single_use,
9725 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
9726 * reg-stack.c (next_flags_user, record_label_references,
9727 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
9728 compensate_edge, convert_regs_1): Likewise.
9729 * regclass.c (scan_one_insn): Likewise.
9730 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
9731 regmove_optimize, fixup_match_1, single_set_for_csa,
9732 combine_stack_adjustments_for_block): Likewise.
9733 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
9734 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
9735 find_equiv_reg): Likewise.
9736 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
9737 reload_as_needed, emit_input_reload_insns, do_output_reload,
9738 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
9739 Likewise.
9740 * reorg.c (find_end_label, emit_delay_sequence,
9741 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
9742 get_jump_flags, rare_destination, mostly_true_jump,
9743 try_merge_delay_insns, redundant_insn, own_thread_p,
9744 fill_simple_delay_slots, fill_slots_from_thread,
9745 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
9746 dbr_schedule): Likewise.
9747 * resource.c (find_basic_block, next_insn_no_annul,
9748 find_dead_or_set_registers, mark_target_live_regs): Likewise.
9749 * rtl.h (RTX_PREV): Likewise.
9750 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
9751 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
9752 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
9753 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
9754 tablejump_p, computed_jump_p, insns_safe_to_move_p,
9755 find_first_parameter_load, can_hoist_insn_p): Likewise.
9756 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
9757 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
9758 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
9759 schedule_ebbs): Likewise.
9760 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
9761 is_conditionally_protected, can_schedule_ready_p,
9762 add_branch_dependences, debug_dependencies): Likewise.
9763 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
9764 Likewise.
9765 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
9766 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
9767 set_dominates_use, ujump_to_loop_cont): Likewise.
9768 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
9769 * varasm.c (output_constant_pool_1): Likewise.
9770
9771 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9772
9773 * tree-scalar-evolution.c: New file.
9774 * tree-scalar-evolution.h: New file.
9775 * tree-ssa-loop-niter.c: New file.
9776 * Makefile.in (SCEV_H): New.
9777 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
9778 * cfgloop.h (struct loop): Add bounds field.
9779 * tree-flow.h (struct tree_niter_desc): New type.
9780 (number_of_iterations_cond, number_of_iterations_exit,
9781 loop_niter_by_eval, find_loop_niter_by_eval,
9782 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
9783 free_numbers_of_iterations_estimates): Declare.
9784 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
9785 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
9786 * doc/invoke.texi (max-iterations-to-track): Document.
9787
9788 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
9789
9790 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
9791 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
9792 (MODE_AFTER): Add cast appropriately.
9793 * config/sh/sh.md (movdi splitter): Likewise.
9794 (casesi_worker_2): Add const qualifier appropriately.
9795 (eh_return): Remove unused variable.
9796 (insv): Initialize v;
9797
9798 2004-07-08 Richard Henderson <rth@redhat.com>
9799
9800 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
9801 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9802 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
9803 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
9804 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
9805
9806 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
9807 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9808 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
9809 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
9810
9811 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
9812 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9813 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
9814 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
9815
9816 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
9817 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9818 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
9819 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
9820
9821 * config/i860/i860-protos.h (i860_va_arg): Remove.
9822 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9823 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
9824 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
9825
9826 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
9827
9828 * system.h: Prototype getpagesize if missing.
9829 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
9830 * configure: Regenerate.
9831 * config.in: Regenerate.
9832
9833 2004-07-08 Richard Henderson <rth@redhat.com>
9834
9835 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
9836 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9837 (fr30_gimplify_va_arg_expr): New.
9838 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
9839 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
9840
9841 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
9842
9843 PR target/16414
9844 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
9845 of asm_noperands result.
9846
9847 2004-07-08 Richard Henderson <rth@redhat.com>
9848
9849 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
9850 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9851 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
9852 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
9853
9854 2004-07-08 Richard Henderson <rth@redhat.com>
9855
9856 * builtins.c (ind_gimplify_va_arg_expr): New.
9857 * tree.h (ind_gimplify_va_arg_expr): Declare.
9858 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
9859
9860 2004-07-08 Jan Beulich <jbeulich@novell.com>
9861
9862 * expmed.c (extract_bit_field): Correct condition to use vec_extract
9863 patterns also on vector elements other than the first one.
9864 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
9865 break statements.
9866
9867 2004-07-08 Geoffrey Keating <geoffk@apple.com>
9868
9869 * config/rs6000/darwin-ldouble.c: Correct reference
9870 to the Linnainmaa paper.
9871
9872 2004-07-08 Richard Henderson <rth@redhat.com>
9873
9874 * config/arc/arc-protos.h (arc_va_arg): Remove.
9875 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9876 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
9877 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
9878
9879 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
9880 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
9881 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
9882 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
9883
9884 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9885
9886 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
9887
9888 2004-07-08 Zack Weinberg <zack@codesourcery.com>
9889
9890 * c-decl.c (static_ctors, static_dtors): Make static.
9891 (pop_file_scope): Call c_common_write_pch and
9892 cgraph_finalize_compilation_unit here.
9893 (build_cdtor): Moved here from c-objc-common.c; simplify.
9894 (c_write_global_declarations_1): Clarify comment.
9895 (c_write_global_declarations): Close the external scope before
9896 doing anything else. Call build_cdtor, cgraph_optimize, and
9897 mudflap_finish_file here.
9898 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
9899 Clarify comment.
9900 * c-objc-common.c: No need to include cgraph.h.
9901 (build_cdtor): Moved to c-decl.c.
9902 (c_objc_common_finish_file): Delete.
9903 * c-tree.h: Update to match.
9904 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
9905 (generate_static_references): Set TREE_USED before calling finish_decl.
9906 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
9907 on the static_instances_decl.
9908
9909 2004-07-08 Zack Weinberg <zack@codesourcery.com>
9910
9911 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
9912 decls when there is only one input translation unit.
9913 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
9914 change of 2004-07-05; do not treat declarations with
9915 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
9916 * opts.c (cur_in_fname): Delete.
9917 * opts.h: Likewise.
9918 * tree.c: Revert changes of 2004-07-05; no special treatment
9919 for TRANSLATION_UNIT_DECLs.
9920 * Makefile.in (tree.o): Update dependencies.
9921
9922 2004-07-08 Roger Sayle <roger@eyesopen.com>
9923
9924 * builtins.c (fold_builtin_strcpy): Merge functionality from
9925 simplify_builtin_strcpy. Add additional len argument. No longer
9926 static. Remove function prototype.
9927 (fold_builtin_strncpy): Likewise integrate functionality from
9928 simplify_builtin_strncpy. Add additional slen argument. No
9929 longer static. Remove function prototype.
9930 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
9931 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
9932 types of "ignore" and "unlocked" parameters to bool.
9933 (fold_builtin_1): Add additional ignore argument. Call renamed
9934 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
9935 builtins. Update arguments to fold_builtin_strncpy and
9936 fold_builtin_strcpy. Add function prototype.
9937 (fold_builtin): Add additional Boolean ignore argument to pass
9938 to fold_builtin_1.
9939 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
9940 and fold_builtin_strncpy instead of simplify_builtin_fputs,
9941 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
9942
9943 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
9944 simplify_builtin_strncpy): Delete function prototypes.
9945 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
9946 fold_builtin_strncpy): Add function prototypes here.
9947 (fold_builtin): Update function prototype with new "bool ignore".
9948
9949 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
9950 (ccp_fold_builtin): Update call to fold_builtin. Call
9951 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
9952 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
9953 simplify_builtin_strncpy respectively.
9954 * fold-const.c (fold): Update call to fold_builtin.
9955
9956 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
9957
9958 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
9959 to strcpy.
9960
9961 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
9962 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
9963 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
9964 * calls.c: Remove ifdefs of macros above.
9965 * functions.c: Likewise.
9966 * expr.c: Likewise.
9967
9968 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
9969
9970 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
9971 (arch attribute): Delete.
9972 (current_function_calls_alloca attribute): Rename into calls_alloca.
9973 (calls_eh_return): New attribute.
9974 (leaf_function): Likewise.
9975 (length attribute): Fix formula for sibcalls.
9976 (return insn): Correctly compute the 'length' attribute.
9977 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
9978
9979 2004-07-08 Richard Henderson <rth@redhat.com>
9980
9981 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
9982 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
9983 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
9984 * tree-eh.c (lower_eh_constructs_1): Likewise.
9985 * tree-sra.c (sra_walk_modify_expr): Likewise.
9986 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9987 (eliminate_unnecessary_stmts): Likewise.
9988 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
9989 * tree-tailcall.c (optimize_tail_call): Likewise.
9990 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
9991
9992 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
9993 Jakub Jelinek <jakub@redhat.com>
9994
9995 * config/i386/i386.c (override_options): Enable
9996 SSE prefetches with -mtune, as long as we are
9997 compiling for i686 or higher. All i686 processors
9998 accept SSE prefetches as NOPS, some i586's don't.
9999
10000 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
10001
10002 PR target/10567
10003 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
10004
10005 2004-07-08 Diego Novillo <dnovillo@redhat.com>
10006
10007 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
10008 the handling of clobbering ASM_EXPRs.
10009
10010 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
10011
10012 PR target/16430
10013 * config/sparc/sparc.c (function_value): In 64-bit mode,
10014 return the aggregates larger than 16 bytes like unions.
10015
10016 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
10017
10018 PR target/16199
10019 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
10020 'temp' is zero, generate new pseudos as needed and emit the
10021 sequence of insns in single-assignment form. Resync comments
10022 with code.
10023 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
10024 function before reload.
10025
10026 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
10027
10028 * vec.c (vec_assert_fail): Remove duplicate 'function'.
10029
10030 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
10031
10032 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
10033 Allocation is signed.
10034 (VEC_reserve): Return flag, allocation is signed.
10035
10036 2004-07-08 Richard Henderson <rth@redhat.com>
10037
10038 * tree-ssa-ccp.c (fold_stmt): Get type directly from
10039 OBJ_TYPE_REF_OBJECT.
10040
10041 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
10042 Neil Booth <neil@daikokuya.co.uk>
10043
10044 PR c/2511
10045 PR c/3325
10046 * c-decl.c (finish_struct): Ensure bit-fields are given the
10047 correct type.
10048 * c-common.c (c_common_signed_or_unsigned_type): For C, require
10049 the precision to match as well as the mode.
10050 * expr.c (reduce_to_bit_field_precision): New function.
10051 (expand_expr_real_1): Reduce expressions of bit-field type to
10052 proper precision.
10053 * langhooks.h (reduce_bit_field_operations): New hook.
10054 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
10055 Define.
10056 * c-lang.c, objc/objc-lang.c
10057 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
10058 * objc/objc-act.c (check_ivars): Convert types to bit-field types
10059 before checking.
10060 * tree.c (build_nonstandard_integer_type): New function.
10061 * tree.h (build_nonstandard_integer_type): New prototype.
10062 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
10063 conversions between integer and boolean types as useless.
10064
10065 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
10066
10067 * c-common.c (c_common_nodes_and_builtins): Do not
10068 create __builtin_ptrdiff_t and __builtin_size_t.
10069
10070 2004-07-08 Andrew Pinski <apinski@apple.com>
10071
10072 * Makefile.in (libbackend.o): Add -combine to the gcc
10073 command line.
10074
10075 2004-07-08 Nick Clifton <nickc@redhat.com>
10076
10077 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
10078 Set to -Os.
10079
10080 2004-07-08 Richard Henderson <rth@redhat.com>
10081
10082 * except.c (expand_eh_region_start, expand_eh_region_end,
10083 expand_eh_handler, expand_eh_region_end_cleanup,
10084 expand_start_all_catch, expand_start_catch, expand_end_catch,
10085 expand_end_all_catch, expand_eh_region_end_allowed,
10086 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
10087 expand_eh_region_end_fixup): Remove.
10088 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
10089 cleanups, outer_cleanups, label_chain, exception_region.
10090 (struct goto_fixup): Remove stack_level, cleanup_list_list.
10091 (struct label_chain): Remove.
10092 (struct stmt_status): Remove x_stack_block_stack.
10093 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
10094 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
10095 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
10096 end_cleanup_deferral, last_cleanup_this_contour,
10097 containing_blocks_have_cleanups_or_stack_level,
10098 any_pending_cleanups): Remove.
10099 (expand_null_return_1): Take no arguments.
10100 (expand_label, expand_naked_return, expand_return,
10101 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
10102 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
10103 expand_end_case_type): Don't use any of them.
10104 * calls.c (expand_call): Likewise.
10105 * dojump.c (do_jump): Likewise.
10106 * function.c (expand_function_end): Likewise.
10107 * expr.c (store_expr, expand_expr_real_1): Likewise.
10108 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
10109 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
10110 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
10111 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
10112 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
10113 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
10114 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
10115 for WITH_CLEANUP_EXPR.
10116 (gimple_push_cleanup): Likewise.
10117 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
10118 * print-tree.c (print_node): Likewise.
10119 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
10120 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
10121 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
10122 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
10123 (GOTO_SUBROUTINE_EXPR): Remove.
10124 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
10125 (DECL_TOO_LATE): Remove.
10126 * except.h, tree.h: Update decls.
10127
10128 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
10129
10130 * explow.c (optimize_save_area_alloca): Do not accept parameters.
10131 * passes.c (rest_of_handle_final): Handle symout.
10132 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
10133 Push timevar here.
10134 (rest_of_handle_sched): Break out SMS. Remove ifs for
10135 flag_schedule_insns and flag_modulo_sched.
10136 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
10137 collect at the end.
10138 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
10139 (rest_of_handle_partition_blocks, rest_of_handle_sms,
10140 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
10141 rest_of_handle_mode_switching, rest_of_handle_jump,
10142 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
10143 rest_of_handle_jump2, rest_of_handle_postreload,
10144 rest_of_handle_flow2, rest_of_clean_state,
10145 rest_of_handle_shorten_branches,
10146 rest_of_handle_prologue_epilogue,
10147 rest_of_handle_branch_target_load_optimize): New.
10148 (rest_of_compilation): Call the above. Remove ggc_collect
10149 calls moved to rest_of_handle_*.
10150 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
10151
10152 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
10153 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
10154 * except.h (set_nothrow_function_flags): Update comment.
10155 * function.c (current_function_nothrow): Remove.
10156 * output.h (current_function_nothrow): Remove.
10157 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
10158 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
10159
10160 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
10161
10162 PR bootstrap/16326
10163 * reorg.c: Revert 2004-06-30 change.
10164 (find_end_label): If HAVE_epilogue and !HAVE_return,
10165 return 0 instead of creating a label at the end of the insn chain.
10166 (optimize_skip): Account for the failure mode of find_end_label.
10167 (fill_simple_delay_slots): Likewise.
10168 (fill_slots_from_thread): Likewise.
10169 (relax_delay_slots): Likewise.
10170
10171 2004-07-08 Diego Novillo <dnovillo@redhat.com>
10172
10173 * tree-flow.h (addressable_vars): Declare.
10174 * tree-ssa-alias.c (addressable_vars): Define.
10175 (setup_pointers_and_addressables): Add addressable variables
10176 to addressable_vars.
10177 * tree-ssa-operands.c (get_stmt_operands): Move
10178 handling of ASM_EXPRs ...
10179 (get_asm_expr_operands): ... here.
10180 When the ASM_EXPR clobbers memory, also clobber addressable
10181 variables.
10182 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
10183 (delete_tree_ssa): Reset addressable_vars.
10184
10185 2004-07-07 Jan Beulich <jbeulich@novell.com>
10186 Richard Henderson <rth@redhat.com>
10187
10188 * varasm.c (assemble_variable): Use assemble_zeros for
10189 zero-initialized variables.
10190 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
10191 for SECCAT_BSS and SECCAT_TBSS.
10192
10193 2004-07-07 Jan Beulich <jbeulich@novell.com>
10194
10195 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
10196
10197 * expmed.c (emit_store_flag): Also special-case double-word
10198 (in-)equality comparison against -1.
10199
10200 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
10201 passing arguments the containers for which are registers.
10202
10203 * calls.c (emit_library_call_value_1): Use mode of function parameter
10204 rather than that of argument since constants have none.
10205
10206 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
10207
10208 Introduce H8SX support.
10209 * expr.c (expand_strcpy): Renamed and moved to...
10210 * builtins.c (expand_movstr): ... here. Tweak.
10211 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
10212 computed or has side effects.
10213 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
10214 unused, or if mempcpy fails. Adjust the return value in the
10215 latter case. Use movstr if everything else fails.
10216 * doc/md.texi (movstr): Document.
10217 (movmemM, clrmemM): Fix explanation of memory block operands.
10218 * config/h8300/h8300.md (stpcpy): Renamed to...
10219 (movstr): ... this. Adjust.
10220 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
10221 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
10222 movmem* and clrstr* to clrmem*.
10223 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
10224 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
10225 GENERAL_REGS, always.
10226 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
10227 getting the stack pointer as addr.
10228 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
10229 from general_operand_dst.
10230 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
10231 variant of...
10232 (movmd_internal): ... this. Add modes to operands. Disparage `D'
10233 instead of requiring it to match only before reload.
10234 (stpcpy_internal_normal): New, normal-mode variant of...
10235 (stpcpy_internal): ... this. Add modes to operands. Disparage
10236 `D' instead of requiring it to match only before reload.
10237 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
10238 mode argument.
10239 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
10240 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
10241 h8300_get_index.
10242 * config/h8300/h8300.md (attr type): Add call.
10243 (attr can_delay): If type is call, set it no.
10244 (call, call_value): Set type to call.
10245 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
10246 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
10247 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
10248 * tree.c (get_narrower): Don't narrow integral types into
10249 non-integral types.
10250 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
10251 frame_size *before* the first use.
10252 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
10253 on input.
10254 (peephole2): Don't widen instructions that push SP. Move
10255 decrement of SP to the end of all stm-generating peepholes.
10256 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
10257 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
10258 and OR to set it to all ones.
10259 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
10260 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
10261 (call, call_value): Set can_delay to "no".
10262 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
10263 * config/h8300/h8300.md (extzv): Make subreg check more robust.
10264 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
10265 * config/h8300/h8300.md (*brabit): Remove.
10266 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
10267 zero_extract. Use bit_memory_operand as the predicate for
10268 operand 1 and 'WU' as the constraint. Check the difference
10269 between the base length and the final one when deciding which
10270 type of branch to use.
10271 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
10272 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
10273 Use convert_move to extend the result for TARGET_H8300SX. Check
10274 for QImode memory references. Optimize the case where the
10275 destination is a paradoxical subreg.
10276 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
10277 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
10278 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
10279 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
10280 * config/h8300/h8300.md: Include mova.md
10281 (length_table): Add mova and mova_zero.
10282 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
10283 after all constant addresses for '%R', '%X', '%T' and '%S'.
10284 (h8300_mova_length): New function.
10285 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
10286 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
10287 dependencies for s-config, etc.
10288 * config/h8300/gemova.sh: New file.
10289 * config/h8300/mova.md: Generated.
10290 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
10291 * config/h8300/h8300.c (h8300_bitfield_length): New.
10292 (nibble_operand): Adjust.
10293 (h8300_binary_length): Handle conditional binary op.
10294 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
10295 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
10296 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
10297 and P#<0, unused so far. W and Y are now prefixes to multi-letter
10298 constraints. WU is introduced as a variant of U that requires a
10299 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
10300 * config/h8300/h8300.md (attr type): Added bitbranch.
10301 (attr length_table): Added bitfield and bitbranch.
10302 (attr length): Compute bitbranch length.
10303 (andqi): Separate pattern for H8300SX. Use bfld for loading the
10304 least-significant bit of a byte.
10305 (brabit, brabc, brabs): New.
10306 (insv, extzv): Emit bfst and bfld on H8300SX.
10307 (bfld, bfst, seq, sne): New.
10308 (bstzhireg, cmpstz, bstz, bistz): New.
10309 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
10310 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
10311 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
10312 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
10313 (h8sx_unary_memory_operator): New function.
10314 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
10315 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
10316 * config/h8300/h8300.md: Add peepholes to combine reloads and
10317 arithmetic insns.
10318 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
10319 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
10320 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
10321 (and?i, ior?i, xor?i): Likewise.
10322 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
10323 * config/h8300/h8300.c: Move enums and prototypes to head of file.
10324 Various whitespace fixes.
10325 (h8300_constant_length): New function, split out from...
10326 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
10327 (h8300_classify_operand): Use IN_RANGE.
10328 (h8300_classify_operand): Use h8300_constant_length.
10329 (h8300_short_move_mem_p): Tighten size check.
10330 (h8sx_mergeable_memrefs_p): Tighten equality check.
10331 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
10332 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
10333 for -msx.
10334 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
10335 * config/h8300/crtn.asm: Likewise.
10336 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
10337 if __H8300SX__ is defined.
10338 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
10339 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
10340 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
10341 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
10342 addresses as mode-dependent.
10343 * config/h8300/h8300.c (print_operand_address): Update call to
10344 h8300_get_index.
10345 (h8300_get_index): Take a mode argument. Rework to fix an
10346 earlier misunderstanding.
10347 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
10348 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
10349 into a register if TARGET_H8300SX.
10350 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
10351 TARGET_H8300SX. Also disable related define_splits.
10352 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
10353 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
10354 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
10355 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
10356 * config/h8300/h8300.h (OK_FOR_Z): New macro.
10357 (EXTRA_CONSTRAINT_STR): Check it.
10358 * config/h8300/h8300.c (h8300_classify_operand): Accept null
10359 class arguments.
10360 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
10361 * config/h8300/h8300.md (length_table): Add mov_imm4.
10362 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
10363 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
10364 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
10365 be a label.
10366 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
10367 * config/h8300/h8300.c (h8300_reorg): New function.
10368 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10369 * config/h8300/h8300.md (length): Subtract the length of the
10370 delay slot from (pc) when checking the range of forward branches.
10371 (delay_slot, can_delay): New attributes.
10372 (define_delay): Add bra/s handling.
10373 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
10374 (jump): Add delayed-branch handling.
10375 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
10376 * expr.c (expand_strcpy): New function.
10377 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
10378 (expand_builtin_stpcpy): Likewise.
10379 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
10380 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
10381 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
10382 handling to improve register allocation for -fno-omit-frame-pointer.
10383 (h8sx_split_movmd): Delete, moving er6 handling into...
10384 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
10385 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
10386 (movmd): Add calls to copy_rtx.
10387 (movmd_internal): In the second alternative, allow the initial and
10388 final destination registers to be different . Update the splitter
10389 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
10390 instead of h8sx_split_movmd.
10391 (stpcpy, movsd): New expanders.
10392 (movsd_internal): New define_insn.
10393 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
10394 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
10395 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
10396 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
10397 and DESTINATION_REGS.
10398 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
10399 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
10400 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
10401 (h8300_move_ratio): Declare.
10402 (MOVE_RATIO): Use it.
10403 * config/h8300/h8300.c (h8300_move_ratio): New variable.
10404 (h8300_init_once): Initialize it.
10405 (h8300_reg_class_from_letter): New function.
10406 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
10407 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
10408 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
10409 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
10410 (movstrsi, movmd): New expanders.
10411 (movmd_internal): New insn.
10412 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
10413 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
10414 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
10415 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
10416 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
10417 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
10418 * config/h8300/h8300.c (nibble_operand): Fix warning.
10419 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
10420 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
10421 (movsf_h8300h): Disable for TARGET_H8300SX.
10422 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
10423 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
10424 h8300_stm_parallel and h8300_return_parallel.
10425 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
10426 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
10427 h8300_stm_parallel, h8300_return_parallel): New functions.
10428 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
10429 if TARGET_H8300SX. Use h8300_push_pop.
10430 (h8300_expand_epilogue): Likewise. Try to merge the return insn
10431 and final pop when generating h8sx code. Always emit some form
10432 of return insn.
10433 * config/h8300/h8300.md: Don't enforce register alignment in
10434 stm peepholes if TARGET_H8300SX.
10435 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
10436 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
10437 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
10438 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
10439 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
10440 (MULTILIB_DIRNAMES): Add a directory for it.
10441 (MULTILIB_MATCHES): Delete.
10442 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
10443 * final.c (walk_alter_subreg): Handle addresses with subregs
10444 inside a ZERO_EXTEND or AND.
10445 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
10446 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
10447 if TARGET_H8300SX.
10448 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
10449 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
10450 @(dd,Rn.w) and @(dd,ERn.L).
10451 (h8300_displacement_size): Take the whole address as argument.
10452 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
10453 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
10454 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
10455 (h8sx_mergeable_memrefs_p): Declare.
10456 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
10457 (HAVE_PRE_INCREMENT): Likewise.
10458 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
10459 addresses for TARGET_H8300SX,
10460 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
10461 and POST_DEC.
10462 (movb_length_table, movl_length_table): New tables.
10463 (movw_length_table): Define to movb_length_table.
10464 (h8300_displacement_size): New, split out from...
10465 (h8300_classify_address): ...here. Handle pre/post inc/dec.
10466 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
10467 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
10468 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
10469 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
10470 (compute_plussi_length, compute_plussi_cc): Update accordingly.
10471 (h8sx_unary_shift_operator): Get the mode from the operator.
10472 (binary_shift_operator): Likewise.
10473 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
10474 a memory reference, check whether the reference is offsettable.
10475 (length_table): Add movb, movw and movl.
10476 (movqi): Add new h8sx pattern. Don't force one operand to be a
10477 register when generating h8sx code.
10478 (movhi, movsi, movsf): Likewise.
10479 (movstrictqi): Use the length_table attribute.
10480 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
10481 (addqi3): Split into a define_expand and define_insn. Don't accept
10482 memory operands in the expander. Use h8300_operands_match_p to
10483 check for matching operands in the define_insn.
10484 (subqi3, negqi2, one_cmplqi2): Likewise.
10485 (add[hs]i3): Don't accept memory operands in the expander. Likewise
10486 in any patterns that are unused in h8sx code. In the h8sx patterns,
10487 use h8300_operands_match_p to check whether operands match.
10488 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
10489 one_cmpl[hs]i3): Likewise.
10490 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
10491 in the expander.
10492 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
10493 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
10494 (h8300_insn_length_from_table): Add a second parameter.
10495 (output_h8sx_shift): Declare.
10496 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
10497 (EXTRA_CONSTRAINT): Replace with...
10498 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
10499 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
10500 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
10501 and h8sx_binary_shift_operator.
10502 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
10503 for TARGET_H8300SX.
10504 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
10505 (bit_memory_operand, fix_bit_operand): Likewise.
10506 (h8300_length_table_for_insn): Remove.
10507 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
10508 instructions.
10509 (h8300_short_immediate_length, h8300_binary_length): New functions.
10510 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
10511 (output_plussi): Use sub to add negative constants.
10512 (compute_plussi_length): Adjust accordingly.
10513 (h8sx_single_shift_type): New enum.
10514 (h8sx_single_shift, h8sx_unary_shift_operator,
10515 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
10516 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
10517 single h8sx instruction. Return false in this case.
10518 * config/h8300/h8300.md (length_table): Add short_immediate.
10519 (length): Pass the operand array to h8300_insn_length_from_table.
10520 (adjust_length): Assume "no" for insns with a length_table attribute.
10521 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
10522 (*addhi3_h8300hs): Don't use for h8sx.
10523 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
10524 and sub.w #xx:3.
10525 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
10526 1's predicate to nonimmediate_operand. Only skip default expansion
10527 if expand_a_shift or expand_a_rotate returns true. Add new patterns
10528 for single h8sx shift instructions.
10529 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
10530 * config/h8300/h8300.c (nibble_operand): Split out of...
10531 (reg_or_nibble_operand): ... this.
10532 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
10533 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
10534 umulhisi3): Introduce expand, and introduce separate insns for
10535 sign- or zero-extended REG and already-extended CONST_INT.
10536 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
10537 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
10538 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
10539 (subhi3): Likewise. Don't accept immediates for operand 1.
10540 Remove the early clobber from second alternative of the h8300s pattern.
10541 (subsi3): Generalize for h8sx. Force operand 2 into a register
10542 on plain h8300 targets.
10543 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
10544 (subsi3_h8300h): Generalize for h8sx.
10545 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
10546 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
10547 * config/h8300/h8300.c (reg_or_nibble_operand): New.
10548 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
10549 (TARGET_H8300SXMUL): New.
10550 (CONST_OK_FOR_P): New.
10551 (CONST_OK_FOR_LETTER_P): Adjust.
10552 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
10553 umulhisi3): Accept 4-bit immediate on H8SX.
10554 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
10555 (udivsi3, divhi3, udivsi3, divsi3): New.
10556 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
10557 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
10558 * config/h8300/h8300.h (OK_FOR_Q): New macro.
10559 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
10560 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
10561 Add ADDRESSOF to the bit_operand entry.
10562 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
10563 (h8300_src_operand): Likewise.
10564 (bit_operand): Check nonimmediate_operand rather than general_operand.
10565 Accept any nonimmediate_operand in h8sx code.
10566 (h8300_and_costs): Initialize operands[1].
10567 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
10568 (h8300_operand_class): New enum.
10569 (h8300_length_table): New typedef.
10570 (addb_length_table, addw_length_table, addl_length_table,
10571 logicl_length_table): New tables.
10572 (logicb_length_table, logicw_length_table): New macros.
10573 (h8300_classify_operand, h8300_length_from_table,
10574 h8300_length_table_for_insn, h8300_unary_length,
10575 h8300_insn_length_from_table): New functions.
10576 (output_plussi): Only use adds and subs for register destinations.
10577 Disable redundant clause.
10578 (compute_plussi_cc): Likewise.
10579 (compute_plussi_length): Likewise. Use h8300_length_from_table
10580 to work out the length of an insn.
10581 (output_logical_op): Only use narrower immediate instructions
10582 if the destination is a register.
10583 (compute_logical_op_cc): Likewise.
10584 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
10585 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
10586 * config/h8300/h8300.md (length_table): New attribute.
10587 (length): When an instruction has a length_table attribute, use
10588 h8300_insn_length_from_table to calculate its default length.
10589 (cmpqi): Use h8300_dst_operand for the first operand and
10590 h8300_src_operand for the second.
10591 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
10592 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
10593 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
10594 iorsi3, xorhi3, xorsi3): Likewise.
10595 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
10596 so that it allows any combination of operands for TARGET_H8300SX.
10597 (iorqi3, xorqi3): Likewise.
10598 (cmpqi): Use the length_table attribute.
10599 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
10600 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
10601 (cmpqi): Add 'Q' constraint.
10602 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
10603 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
10604 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
10605 * config/h8300/h8300.h (MASK_H8300SX): New macro.
10606 (TARGET_H8300S): True for both -ms and -msx.
10607 (TARGET_H8300SX): New macro.
10608 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
10609 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
10610 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
10611 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
10612 [Temporary change.]
10613 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
10614 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
10615 16-bit pointers and 32-bit ints.
10616 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
10617 CONST_DOUBLE with mode no wider than SImode.
10618 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
10619 output operand.
10620 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
10621 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
10622 or SUBREG thereof.
10623 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
10624 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
10625 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
10626
10627 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
10628
10629 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
10630
10631 2004-07-07 Per Bothner <per@bothner.com>
10632
10633 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
10634
10635 2004-07-07 Mike Stump <mrs@apple.com>
10636
10637 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
10638 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
10639 (machopic_finish): Likewise.
10640
10641 2004-07-07 Richard Henderson <rth@redhat.com>
10642
10643 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
10644 through any value-preserving cast.
10645
10646 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
10647
10648 * function.c (assign_parm_find_data_types): Call
10649 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
10650
10651 2004-07-07 Steven Bosscher <stevenb@suse.de>
10652
10653 * tree-cfg.c (group_case_labels): Remove case labels that have
10654 the same target as the default case.
10655
10656 2004-07-07 Steven Bosscher <stevenb@suse.de>
10657
10658 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
10659 regardless of DECL_LANG_SPECIFIC being present or not.
10660 * tree.h (DECL_NUM_STMTS): Purge.
10661
10662 2004-07-07 Andrew Pinski <apinski@apple.com>
10663
10664 * configure: Regenerate with the right autoconf.
10665
10666 2004-07-07 David Edelsohn <edelsohn@gnu.org>
10667
10668 * ifcvt.c (total_bb_rtx_cost): New function.
10669 (find_if_case_1): Compare rtx_cost of basic block to cost of
10670 BRANCH_COST insns.
10671 (find_if_case_2): Same.
10672
10673 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10674
10675 PR target/10567
10676 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
10677 (output_return): Likewise.
10678 (output_sibcall): Abort if !flag_delayed_branch.
10679 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
10680 (emit_and_preserve): New function.
10681 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
10682 indirect jump to the thunked-to function if !flag_delayed_branch.
10683 * config/sparc/sparc.md (delayed_branch): New attribute.
10684 (load_pcrel_sym): Honor flag_delayed_branch. Use above
10685 attribute to compute the length of the insn.
10686 (goto_handler_and_restore): Likewise.
10687
10688 2004-07-07 Andrew Pinski <apinski@apple.com>
10689
10690 PR tree-optimization/15777
10691 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
10692
10693 * expr.c (expand_expr_real_1): Fix formating.
10694 BUFFER_REF and IN_EXPR are dead.
10695 * fold-const.c (non_lvalue): BUFFER_REF is dead.
10696 * tree-inline.c (estimate_num_insns_1): Likewise.
10697 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
10698 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
10699 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
10700
10701 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
10702
10703 * collect2.c (dump_file): Don't call cplus_demangle if
10704 HAVE_LD_DEMANGLE is defined.
10705 (main): Pass "--demangle" to ld if no_demangle is not 0 and
10706 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
10707 if HAVE_LD_DEMANGLE is defined.
10708
10709 * configure.ac (--with-demangler-in-ld): Added
10710 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
10711 --with-demangler-in-ld is used.
10712 * config.in: Regenerated.
10713 * configure: Likewise.
10714
10715 2004-07-07 Roger Sayle <roger@eyesopen.com>
10716
10717 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
10718 for simple floating point operations "fp", double precision
10719 multiplication "dmul", and single and double precision division
10720 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
10721 (ppc630_cost): New table split from ppc620_cost, to distinguish
10722 differences in floating point latencies.
10723 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
10724 (rs6000_rtx_costs): Add support for single and double precision
10725 floating point addition, subtraction, multiplication, division,
10726 fused-multiply-add, fused-multiply-sub, negation, absolute value
10727 and negative absolute value. Tweak MEM case to use prefered idiom.
10728
10729 2004-07-07 Richard Henderson <rth@redhat.com>
10730
10731 * tree-flow-inline.h (may_propagate_copy): Move...
10732 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
10733 attempt to copy between types requiring conversion.
10734 * tree-flow.h (may_propagate_copy): Update decl.
10735 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
10736
10737 2004-07-07 Jakub Jelinek <jakub@redhat.com>
10738
10739 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
10740 from -mtune= option.
10741
10742 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
10743
10744 * builtins.c: Rename movstr*, except for movstrict*, to
10745 movmem* and clrstr* to clrmem*.
10746 * expr.c: Likewise.
10747 * expr.h: Likewise.
10748 * genopinit.c: Likewise.
10749 * integrate.c: Likewise.
10750 * local-alloc.c: Likewise.
10751 * optabs.c: Likewise.
10752 * optabs.h: Likewise.
10753 * config/alpha/alpha.h: Likewise.
10754 * config/alpha/alpha.md: Likewise.
10755 * config/arm/arm-protos.h: Likewise.
10756 * config/arm/arm.c: Likewise.
10757 * config/arm/arm.md: Likewise.
10758 * config/avr/avr.md: Likewise.
10759 * config/c4x/c4x.c: Likewise.
10760 * config/c4x/c4x.md: Likewise.
10761 * config/frv/frv.md: Likewise.
10762 * config/i386/i386-protos.h: Likewise.
10763 * config/i386/i386.c: Likewise.
10764 * config/i386/i386.h: Likewise.
10765 * config/i386/i386.md: Likewise.
10766 * config/i860/i860.c: Likewise.
10767 * config/i860/i860.md: Likewise.
10768 * config/ip2k/ip2k.md: Likewise.
10769 * config/ip2k/libgcc.S: Likewise.
10770 * config/ip2k/t-ip2k: Likewise.
10771 * config/m32r/m32r.c: Likewise.
10772 * config/m32r/m32r.md: Likewise.
10773 * config/mcore/mcore.md: Likewise.
10774 * config/mips/mips.c: Likewise.
10775 * config/mips/mips.md: Likewise.
10776 * config/ns32k/ns32k.c: Likewise.
10777 * config/ns32k/ns32k.h: Likewise.
10778 * config/ns32k/ns32k.md: Likewise.
10779 * config/pa/pa.c: Likewise.
10780 * config/pa/pa.md: Likewise.
10781 * config/pdp11/pdp11.h: Likewise.
10782 * config/pdp11/pdp11.md: Likewise.
10783 * config/rs6000/rs6000.c: Likewise.
10784 * config/rs6000/rs6000.md: Likewise.
10785 * config/s390/s390-protos.h: Likewise.
10786 * config/s390/s390.c: Likewise.
10787 * config/s390/s390.md: Likewise.
10788 * config/sh/lib1funcs.asm: Likewise.
10789 * config/sh/sh.c: Likewise.
10790 * config/sh/sh.md: Likewise.
10791 * config/sh/t-sh: Likewise.
10792 * config/sparc/sparc.h: Likewise.
10793 * config/vax/vax.md: Likewise.
10794 * config/xtensa/xtensa.c: Likewise.
10795 * config/xtensa/xtensa.md: Likewise.
10796 * doc/invoke.texi: Likewise.
10797 * doc/md.texi: Likewise.
10798 * doc/rtl.texi: Likewise.
10799
10800 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
10801
10802 PR target/16407
10803 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
10804 * config/mips/mips.c (mips_declare_common_object): New function,
10805 mostly split out from...
10806 (mips_output_aligned_decl_common): ...here.
10807 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
10808 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
10809 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
10810 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
10811
10812 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10813
10814 PR c/16392
10815 * function.c (assign_parms): Fix typo from previous change.
10816
10817 2004-07-07 Jason Merrill <jason@redhat.com>
10818
10819 PR c++/15815
10820 * doc/extend.texi (C++ Interface): Correct information and
10821 discourage use.
10822
10823 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
10824
10825 PR target/16130
10826 PR target/16142
10827 PR target/16143
10828 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
10829 insn.
10830
10831 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10832
10833 PR target/1679.
10834 * config/m32r/m32r.c (m32r_function_symbol): New function:
10835 Generate a symbol name RTX with the correct m32r specific flags
10836 set.
10837 (block_move_call): Use new function to generate correct symbol.
10838 * config/m32r/m32r-protos.h: Add prototype for new funcion.
10839 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
10840 function.
10841
10842 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
10843
10844 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
10845 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
10846 TYPE_BINFO_BASETYPE): Remove.
10847 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
10848 to ...
10849 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
10850 here.
10851 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
10852 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
10853 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
10854 (struct tree_binfo): Rename base_types to base_binfos.
10855 * alias.c (record_component_aliases): Adjust BINFO macros.
10856 * dbxout.c (dbxout_type): Likewise.
10857 * dwarf2out.c (gen_member_die): Likewise.
10858 * sdbout.c (sdbout_one_type): Likewise.
10859 * tree-dump.c (deque_and_dump): Likewise.
10860 * config/i386/i386.c (classify_argument,
10861 contains_128bit_aligned_vector_p): Likewise.
10862
10863 2004-07-07 Nick Clifton <nickc@redhat.com>
10864
10865 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
10866 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
10867
10868 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
10869
10870 * vec.h: Fix the example use.
10871
10872 2004-07-06 Richard Henderson <rth@redhat.com>
10873
10874 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
10875 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
10876 * tree-inline.c (copy_body_r, setup_one_parameter,
10877 initialize_inlined_parameters, expand_call_inline,
10878 declare_inline_vars): Don't check it.
10879 (expand_calls_inline): Remove old version, rename new version
10880 from gimple_expand_calls_inline.
10881 * tree-optimize.c (execute_gimple): Remove.
10882 (pass_gimple): Don't run anything.
10883
10884 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
10885
10886 * doc/sourcebuild.texi: Use semicolons instead of commas in
10887 section title.
10888
10889 2004-07-06 Richard Henderson <rth@redhat.com>
10890
10891 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
10892 (sra_walk_modify_expr, scan_init): Likewise.
10893 (generate_element_zero): Check visited before scanning children.
10894 (generate_element_init): Set visited on error.
10895 (scalarize_init): Handle generate_element_init failure similar
10896 to use_block_copy.
10897
10898 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
10899
10900 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
10901 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
10902
10903 2004-07-06 Richard Henderson <rth@redhat.com>
10904
10905 * config/i386/i386.c (legitimize_pic_address): Make static.
10906 (legitimize_address): Handle CONST with TLS operand.
10907 (ix86_expand_move): Don't call legitimize_pic_address directly.
10908 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
10909
10910 2004-07-06 Roger Sayle <roger@eyesopen.com>
10911
10912 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
10913 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
10914 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
10915 is currently executed unconditionally, i.e. not in "else_bb".
10916
10917 2004-07-06 Steven Bosscher <stevenb@suse.de>
10918
10919 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
10920 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
10921 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
10922 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
10923 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
10924 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
10925 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
10926 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
10927 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
10928 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
10929 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
10930 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
10931 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
10932 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
10933 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
10934 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
10935
10936 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
10937
10938 * dojump.c (do_jump): REFERENCE_EXPR is dead.
10939 * expr.c (expand_expr_real_1): Ditto.
10940 * tree-inline.c (estimate_num_insns_1): Ditto.
10941 * tree-pretty-print.c (dump_generic_node): Ditto.
10942 (op_symbol): Ditto.
10943 * tree.def: Ditto.
10944
10945 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
10946
10947 * tree-ssa-pre.c (reference_node_pool): New pool.
10948 (find_or_generate_expression): Class 'r' is okay too.
10949 (create_value_expr_from): Ditto.
10950 (add_to_sets): LHS should not include vuses.
10951 (eliminate): Ditto.
10952 (compute_avail): Reverse ordering of tests.
10953 Valuize INDIRECT_REF as well.
10954
10955 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
10956
10957 PR rtl-optimization/16380
10958 * loop.c (check_dbra_loop): Sink comparison instructions if they
10959 do something other than set cc0.
10960
10961 2004-07-06 James E Wilson <wilson@specifixinc.com>
10962
10963 * doc/interface.texi (longjmp and automatic variables): Delete
10964 paragraph recommending taking the address of a variable.
10965
10966 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
10967
10968 * vec.h (VEC_embedded_alloc): Remove.
10969 (VEC_embedded_size, VEC_embedded_init): New.
10970 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
10971 MEM_STAT_INFO.
10972 (VEC_truncate): New.
10973 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
10974 (vec_embedded_alloc): Remove.
10975 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
10976 (vec_embedded_alloc): Remove.
10977
10978 2004-07-06 Mark Mitchell <mark@codesourcery.com>
10979
10980 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
10981 (gt-langhooks.h): Remove.
10982
10983 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
10984
10985 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
10986
10987 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
10988
10989 * config/sparc/sparc.c (get_pc_symbol): Rename into
10990 add_pc_to_pic_symbol.
10991 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
10992 (load_pic_register): Account for previous changes.
10993 Use reg_names. Don't create the label twice.
10994 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
10995 UNSPEC_LOAD_PCREL_SYM.
10996 (get_pc): Rename into load_pcrel_sym. Add predicate to
10997 operands. Remove condition.
10998
10999 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
11000
11001 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
11002 RECORD, UNION & QUAL_UNION is actually a binfo.
11003
11004 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
11005 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
11006 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
11007 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
11008 * dwarf2out.c (add_data_member_location_attribute): Likewise.
11009 (gen_inheritance_die): Likewise.
11010 * tree-dump.c (deque_and_dump): Likewise.
11011 * doc/c-tree.texi (Binfos): Add under reconstruction note.
11012
11013 2004-07-06 Steven Bosscher <stevenb@suse.de>
11014
11015 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
11016 Define.
11017 * config/mcore/mcore.md: Model memory latency with a simple DFA
11018 pipeline description instead of a define_function_unit.
11019
11020 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11021
11022 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
11023 * langhooks.h (var_mod_type_p): Likewise.
11024 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
11025 * expr.c (count_type_elements): Properly handle return from
11026 array_type_nelts and properly test for overflow.
11027 * gimplify.c (gimplify_init_constructor): Properly handle return
11028 from array_type_nelts.
11029 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
11030 * integrate.c (copy_decl_for_inlining): Correct comments.
11031 * tree-inline.c (remap_decl): Update comments, remove dead code,
11032 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
11033 (remap_type): Only remap if variably modified by vars in function
11034 being inlined.
11035 (copy_body_r): Use compatible_type langhooks to see when can fold.
11036 (setup_one_parameter): Don't remap type.
11037 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
11038 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
11039 compute TREE_INVARIANT for decl case.
11040 (find_var_from_fn): New function.
11041 (variably_modified_type_p): Add arg and call new function.
11042 * tree.h (variably_modified_type_p): Add extra arg.
11043
11044 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
11045
11046 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
11047 (goto_handler_and_restore_v9): Delete disabled insn.
11048 (goto_handler_and_restore_v9_sp64): Likewise.
11049
11050 2004-07-05 Roger Sayle <roger@eyesopen.com>
11051
11052 * calls.c (load_register_parameters): Call expand_shift instead
11053 of expand_binop with ashl_optab (or other shift optab) directly.
11054 * expr.c (emit_group_load, emit_group_store): Likewise.
11055 * function.c (assign_parm_setup_block): Likewise.
11056 * stmt.c (shift_return_value): Likewise.
11057
11058 2004-07-05 Jakub Jelinek <jakub@redhat.com>
11059
11060 * expr.c (expand_assignment): Disable the bitfield += optimizations.
11061
11062 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
11063
11064 * doc/sourcebuild.texi: Revert previous patch.
11065
11066 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
11067
11068 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
11069 TARGET_MEM_FUNCTIONS.
11070 * system.h: Poison TARGET_MEM_FUNCTIONS.
11071 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
11072 bcmp_libfunc, bzero_libfunc): Remove.
11073 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
11074 bzero_libfunc.
11075 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
11076 * doc/standards.texi: Don't mention calling BSD string functions.
11077 * doc/invoke.texi: Likewise. Mention that memmove may be called.
11078 * config/vax/t-memfuncs: New.
11079 * config/memcmp.c, config/memcpy.c, config/memmove.c,
11080 config/memset.c: New.
11081 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
11082 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
11083 vax/t-memfuncs.
11084 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
11085 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
11086 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
11087 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
11088 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
11089 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
11090 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
11091 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
11092 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
11093 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
11094
11095 2004-07-05 Richard Henderson <rth@redhat.com>
11096
11097 * function.c (assign_parm_setup_reg): Properly rename variables in
11098 FUNCTION_ARG_CALLEE_COPIES section.
11099
11100 2004-07-05 Zack Weinberg <zack@codesourcery.com>
11101
11102 * tree-mudflap.c: Include cgraph.h.
11103 (mf_init_extern_trees): Rename to mudflap_init. Export.
11104 Rewrite to create synthetic declarations instead of looking
11105 up declarations from mf-runtime.h.
11106 (mf_make_builtin, mf_make_cache_struct_type): New functions.
11107 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
11108 Correct commentary.
11109 (execute_mudflap_function_decls, mudflap_register_call):
11110 Don't call mf_init_extern_trees.
11111 (mudflap_finish_file): Use cgraph_build_static_cdtor.
11112
11113 * tree-mudflap.h: Update prototypes.
11114 * c-mudflap.c: Delete file.
11115 * c-common.c: Include tree-mudflap.h.
11116 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
11117 * Makefile.in: Remove all references to c-mudflap.o.
11118 Update dependencies.
11119
11120 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11121
11122 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
11123 displacements with the spatial-locality cache-control completer.
11124
11125 2004-07-05 Zack Weinberg <zack@codesourcery.com>
11126
11127 * langhooks.c: Don't include gt-langhooks.h.
11128 (var_labelno): Delete.
11129 (lhd_set_decl_assembler_name): Do not append a distinguishing
11130 number to file-scope internal-linkage declarations for the first
11131 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
11132 the declaration itself (if at block scope), or its containing
11133 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
11134 number.
11135
11136 * opts.c (cur_in_fname): New global.
11137 * opts.h: Declare it.
11138 * tree.c: Include opts.h.
11139 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
11140 DECL_UID equal to cur_in_fname.
11141 (copy_node_stat): Do not change DECL_UID when copying a
11142 TRANSLATION_UNIT_DECL.
11143 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
11144 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
11145
11146 * c-decl.c (c_static_assembler_name): Delete.
11147 * c-tree.h (c_static_assembler_name): Delete prototype.
11148 * c-lang.c, objc/objc-lang.c: Don't override
11149 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
11150
11151 * Makefile.in (tree.o): Update dependencies.
11152 (GTFILES): Remove langhooks.c.
11153
11154 2004-07-05 Roger Sayle <roger@eyesopen.com>
11155
11156 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
11157 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
11158 Normalize "X % C" as "X % -C" for signed modulus and negative C.
11159 Optimize "X % -Y" as "X % Y" for signed modulus.
11160 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
11161 into "((unsigned) X % Y) == 0".
11162
11163 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
11164
11165 * sourcebuild.texi (Config Fragments): Use @comma{} in
11166 cross-reference to section title.
11167
11168 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11169
11170 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
11171 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
11172 (gimplify_target_expr, gimplify_expr): Likewise.
11173 (copy_if_shared_r): No longer need special case for BIND_EXPR.
11174 (unshare_body, unvisit_body): Only look at nested if BODY_P is
11175 whole function.
11176 (gimplify_compound_lval): See if we can strip any useless conversion.
11177 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
11178 from RHS, not LHS.
11179 (gimplify_modify_expr_to_memset): Likewise.
11180 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
11181 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
11182 (declare_inline_vars): Likewise.
11183 (walk_type_fields): New function.
11184 (walk_tree): Use it.
11185 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
11186
11187 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
11188 (sra_walk_modify_expr): Allow init function to fail.
11189 (scan_init): Now returns bool.
11190 (generate_element_init): If can't understand INIT, return false.
11191 (scalarize_init): Return false if generate_element_init does.
11192
11193 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
11194 print bounds.
11195
11196 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
11197 bounds if bounds aren't constant.
11198
11199 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
11200
11201 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
11202 to type hooks; remove bogus PARAMS.
11203
11204 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
11205
11206 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
11207 * dwarf2out.c (add_data_member_location_attribute): Check for
11208 TREE_BINFO.
11209 * tree.c (tree_node_kinds): Add "binfos".
11210 (binfo_lang_slots): New.
11211 (make_node_stat): Add TREE_BINFO.
11212 (make_tree_binfo_stat): New.
11213 (tree_node_structure): Add TREE_BINFO.
11214 * tree.def (TREE_BINFO): New.
11215 * tree.h (REC_OR_UNION_CHECK): Rename to ...
11216 (RECORD_OR_UNION_CHECK): ... here.
11217 (NOT_RECORD_OR_UNION_CHECK): New.
11218 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
11219 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
11220 RECORD_OR_UNION_CHECK.
11221 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
11222 (TYPE_LANG_SLOT_1): New.
11223 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
11224 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
11225 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
11226 (BINFO_ELTS): Remove.
11227 (BINFO_LANG_SLOT): New.
11228 (struct tree_binfo): New.
11229 (binfo_lang_slots): Declare.
11230 (enum tree_node_structure_enum): Add TS_BINFO.
11231 (union tree_node): Add binfo.
11232 (make_tree_binfo_stat): Declare.
11233 (make_tree_binfo): New.
11234 (enum tree_node_kind): Add binfo_kind.
11235
11236 * objc/objc-act.c (start_class, objc_declare_protocols,
11237 start_protocols): Use TYPE_LANG_SLOT_1.
11238 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
11239 to ...
11240 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
11241 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
11242 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
11243 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
11244
11245 2004-07-05 Steven Bosscher <stevenb@suse.de>
11246
11247 * rtl.h (struct rtx_def): Remove the integrated flag.
11248 Use the return_val flag for MEM_SCALAR_P.
11249 Reshuffle and update flags in CLEAR_RTX_FLAGS.
11250
11251 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
11252
11253 PR target/16357
11254 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
11255 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
11256 move_by_pieces.
11257
11258 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
11259
11260 * var-tracking.c: Fix some comments.
11261 (frame_stack_adjust): New.
11262 (vt_stack_adjustments): Init stack_adjust of entry block to
11263 minus stack adjustment of function prologue.
11264 (adjust_stack_reference): Do not adjust if adjustment == 0.
11265 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
11266 (emit_notes_in_bb): Likewise.
11267 (vt_add_function_parameters): Do not adjust locations of
11268 function arguments.
11269 (vt_initialize): Compute the stack adjustment of function
11270 prologue and offset the initial "location" of frame_base_decl
11271 from the stack pointer after prologue.
11272
11273 2004-07-04 Richard Henderson <rth@redhat.com>
11274
11275 * function.c (struct assign_parm_data_all): New.
11276 (struct assign_parm_data_one): New.
11277 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
11278 assign_parm_find_data_types, assign_parms_setup_varargs,
11279 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
11280 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
11281 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
11282 assign_parm_setup_block, assign_parm_setup_reg,
11283 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
11284 (assign_parms): ... here.
11285
11286 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
11287
11288 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
11289 now are bitmap_set_t's.
11290 (bitmap_insert_into_set): No point in inserting the value if
11291 it's invariant.
11292 (bitmap_set_contains): New function.
11293 (bitmap_set_replace_value): Add comment on why we do it
11294 this way.
11295 (set_contains): Removed.
11296 (bitmap_set_subtract_from_value_set): New name of
11297 set_subtract now that it's arguments are two different
11298 types of sets.
11299 Update callers.
11300 (bitmap_find_leader): Change algorithm used.
11301 (find_or_generate_expression): Update use of functions for new
11302 bitmap sets.
11303 (create_expression_by_pieces): Ditto.
11304 (insert_aux): Ditto.
11305 (insert): Ditto.
11306 (add_to_sets): Ditto.
11307 (init_pre): Ditto.
11308 (execute_pre): Ditto.
11309 (compute_avail): Ditto.
11310 Also ignore virtual phis.
11311
11312 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
11313
11314 * combine.c (simplify_comparison): Fix comment typo.
11315
11316 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11317
11318 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
11319 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
11320 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
11321 (output_restore): Change parameter from 'insn' to 'pat'.
11322 (output_return): Adjust call to output_restore.
11323 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
11324 Adjust call to output_restore.
11325
11326 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
11327
11328 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
11329 and assert system is bsd.
11330
11331 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
11332
11333 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
11334 (TARGET_SWITCHES): Remove -mdebugc.
11335 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
11336 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
11337 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
11338 (sle_[sd]i_reg): Delete.
11339
11340 2004-07-04 Steven Bosscher <stevenb@suse.de>
11341
11342 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
11343 Define.
11344 * config/iq2000/iq2000.md: Translate old pipeline description to an
11345 equivalent new one.
11346
11347 2004-07-04 Roger Sayle <roger@eyesopen.com>
11348
11349 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
11350 Ensure the replacement rhs is valid gimple before performing
11351 the substitution. Return false if these sanity checks fail.
11352 (fold_stmt): Only set changed to true, if set_rhs returns true.
11353 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
11354 succeeds.
11355
11356 2004-07-04 Richard Henderson <rth@redhat.com>
11357
11358 PR c/16348
11359 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
11360
11361 2004-07-04 Mark Mitchell <mark@codesourcery.com>
11362
11363 * configure.ac (ranlib_flags): New variable.
11364 * Makefile.in (RANLIB_FLAGS): New variable.
11365 (libbackend.a): Use it.
11366 * configure: Regenerated.
11367
11368 2004-07-04 Roger Sayle <roger@eyesopen.com>
11369
11370 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
11371 a "sign mask" instead of using ashr_optab directly.
11372
11373 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
11374
11375 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
11376 * doc/cppopts.texi: Clarify processing of command-line defines.
11377
11378 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
11379
11380 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
11381
11382 2004-07-04 Richard Henderson <rth@redhat.com>
11383
11384 * rtl.def (ADDRESSOF): Remove.
11385 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
11386 (find_base_term, memrefs_conflict_p): Likewise.
11387 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
11388 (fold_rtx, cse_insn, set_live_p): Likewise.
11389 * dwarf2out.c (mem_loc_descriptor): Likewise.
11390 (add_location_or_const_value_attribute): Likewise.
11391 * emit-rtl.c (copy_insn_1): Likewise.
11392 * explow.c (memory_address): Likewise.
11393 * expmed.c (store_split_bit_field): Likewise.
11394 * expr.c (expand_expr_real_1): Likewise.
11395 * function.c (instantiate_decl
11396 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
11397 * genrecog.c (preds, validate_pattern): Likewise.
11398 * integrate.c (copy_rtx_and_substitute): Likewise.
11399 * recog.c (general_operand, register_operand): Likewise.
11400 (memory_address_p): Likwise.
11401 * reload1.c (eliminate_regs, elimination_effects): Likewise.
11402 * rtl.c (copy_rtx): Likewise.
11403 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
11404 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
11405 * rtlhooks.c (gen_lowpart_general): Likewise.
11406 * stmt.c (expand_asm_operands): Likewise.
11407 * web.c (entry_register, replace_ref, web_main): Likewise.
11408 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
11409 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
11410 * config/arm/arm.c (thumb_rtx_costs): Likewise.
11411 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
11412 * config/frv/frv.c (move_destination_operand, move_source_operand,
11413 condexec_dest_operand, condexec_source_operand,
11414 condexec_memory_operand): Likewise.
11415 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
11416 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
11417 (destination_xfmode_operand): Likewise.
11418 * config/mips/mips.h (PREDICATE_CODES): Likewise.
11419 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
11420 * config/s390/s390.c (general_s_operand): Likewise.
11421 * config/s390/s390.md (mov*): Likewise.
11422 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
11423
11424 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
11425 * expr.c (expand_expr_real_1): Likewise.
11426 * stmt.c (expand_decl): Likewise.
11427 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
11428
11429 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
11430 postponed_insns, put_var_into_stack, put_reg_into_stack,
11431 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
11432 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
11433 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
11434 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
11435 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
11436 purge_bitfield_addressof_replacements, purge_addressof_replacements,
11437 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
11438 struct insns_for_mem_walk_info, insns_for_mem_walk,
11439 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
11440 setjmp_protect_args): Remove.
11441 (push_function_context_to): Don't handle var_refs_queue.
11442 (pop_function_context_from, free_after_compilation): Likewise.
11443 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
11444 (assign_parms, allocate_struct_function): Likewise.
11445 (use_register_for_decl): New.
11446 (expand_function_end): Don't setjmp_protect.
11447 * function.h (struct emit_status): Update commentary.
11448 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
11449 (max_parm_reg, parm_reg_stack_loc): Remove.
11450 * passes.c (DFI_addressof): Remove.
11451 (dump_file_info): Remove addressof.
11452 (rest_of_handle_addressof): Remove.
11453 (rest_of_compilation): Don't call it.
11454 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
11455 * stmt.c (expand_decl): Use use_register_for_decl.
11456 * tree.h: Update decls.
11457 * web.c (mark_addressof): Remove.
11458 * doc/invoke.texi (-dF): Remove.
11459
11460 2004-07-03 Richard Henderson <rth@redhat.com>
11461
11462 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
11463 instead of gen_mem_addressof.
11464 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
11465 TImode output register.
11466
11467 2004-07-03 Richard Henderson <rth@redhat.com>
11468
11469 PR tree-optimization/16341
11470 * tree-sra.c (sra_walk_function): Increment to next stmt before
11471 processing the current stmt.
11472 (sra_insert_after): Always use BSI_SAME_STMT.
11473
11474 2004-07-03 Richard Henderson <rth@redhat.com>
11475
11476 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
11477 fp plus with minus.
11478
11479 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
11480
11481 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
11482 with tree_int_cst_equal.
11483
11484 2004-07-03 Andreas Schwab <schwab@suse.de>
11485
11486 * config/ia64/ia64.md: Define new attribute "empty".
11487 (prologue_use, nop_x, insn_group_barrier): Set it.
11488
11489 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
11490 skip over "empty" insns.
11491
11492 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11493
11494 * tree-inline.c (initialize_inlined_parameters): Pass proper function
11495 context to gimplify_body.
11496 (walk_tree): Don't walk into types twice.
11497 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
11498
11499 * tree-sra.c (generate_element_init): Remove any useless conversions.
11500
11501 * gimplify.c (gimplify_conversion): Remove stripping useless
11502 conversions from here.
11503 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
11504 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
11505 Unshare before substituting PLACEHOLDER_EXPR.
11506 (gimplify_modify_expr_to_memset): Likewise.
11507 Pass address of TO to memset, not TO itself.
11508 (gimplify_init_constructor): Make copy of OBJECT so we have it each
11509 time we make an expression (to match a PLACEHOLDER_EXPR).
11510
11511 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
11512 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
11513 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
11514 * tree-ssa-dom.c (local_fold): Likewise.
11515
11516 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
11517 * langhooks.h (strct lang_hooks): New field type_max_size.
11518 * function.c (assign_temp): Call it.
11519
11520 2004-07-03 Steven Bosscher <stevenb@suse.de>
11521
11522 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
11523 * config/sh/sh.md: Convert the SH1 pipeline description to
11524 a DFA model.
11525
11526 2004-07-02 Zack Weinberg <zack@codesourcery.com>
11527
11528 * c-decl.c (struct c_binding): Remove contour field; add
11529 depth, invisible, nested fields.
11530 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
11531 (B_IN_EXTERNAL_SCOPE): New convenience macros.
11532 (bind): Add invisible and nested arguments. Initialize
11533 new fields of struct c_binding; adjust loop scanning for
11534 insertion point.
11535 (free_binding_and_advance): Clear structure with memset.
11536 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
11537 in file scope, even if it's in external scope too.
11538 (pushdecl): Adjust to match. Create invisible file-scope
11539 declarations for block-scope forward declarations of static functions.
11540 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
11541 (undeclared_variable, lookup_label, declare_label, define_label)
11542 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
11543 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
11544 (store_parm_decls_oldstyle): Adjust to match.
11545 (diagnose_mismatched_decls): Correct handling of linkage clashes.
11546 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
11547
11548 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
11549 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
11550
11551 2004-07-02 Richard Henderson <rth@redhat.com>
11552
11553 * c-decl.c (grokdeclarator): Don't frob current_function_decl
11554 around variable_size.
11555 (set_decl_nonlocal): Remove.
11556 (store_parm_decls): Add stmts for pending sizes.
11557 * calls.c (calls_function, calls_function_1): Remove.
11558 (precompute_arguments): Don't call it.
11559 * cfgexpand.c (set_save_expr_context): Remove.
11560 (tree_expand_cfg): Don't call it.
11561 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
11562 (dwarf2out_finish): Likewise.
11563 * expr.c (emit_block_move): Adjust addresses to BLKmode.
11564 (store_constructor): Don't pre-evaluate SAVE_EXPR.
11565 (safe_from_p): Don't queue SAVE_EXPRs.
11566 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
11567 or build plain VAR_DECLs.
11568 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
11569 (fold): Likewise.
11570 (fold_checksum_tree): Don't special-case SAVE_EXPR.
11571 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
11572 (put_var_into_stack): Don't handle SAVE_EXPR.
11573 (gen_mem_addressof): Likewise.
11574 * function.h (struct function): Remove x_save_expr_regs.
11575 (save_expr_regs): Remove.
11576 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
11577 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
11578 * stor-layout.c (variable_size): Don't set it.
11579 (force_type_save_exprs, force_type_save_exprs_1): Remove.
11580 * tree-inline.c (remap_save_expr): Remove fn argument. Update
11581 all callers. Don't set SAVE_EXPR_CONTEXT.
11582 * tree-inline.h (remap_save_expr): Update decl.
11583 * tree.c (save_expr): Update build size.
11584 (first_rtl_op): Don't handle SAVE_EXPR.
11585 (unsave_expr_1, contains_placeholder_p): Likewise.
11586 (decl_function_context): Likewise.
11587 * tree.def (SAVE_EXPR): Remove args 1 and 2.
11588 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
11589 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
11590
11591 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
11592
11593 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
11594 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
11595 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
11596 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
11597 some first-person references and patronizing comments. Based on
11598 printed manual.
11599 * doc/invoke.texi: Don't reference fortran@gnu.org.
11600 * doc/trouble.texi (Warning when a non-void function value is
11601 ignored): Rewrite. From Russ Allbery and Chris Devers.
11602
11603 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
11604
11605 * tree-ssa-pre.c (bitmap_set_t): New.
11606 (bb_value_sets): avail_out is now a bitmap_set_t.
11607 (bitmap_find_leader): New function.
11608 (bitmap_value_insert_into_set): Ditto.
11609 (bitmap_set_copy): Ditto.
11610 (bitmap_value_replace_in_set): Ditto.
11611 (bitmap_set_contains_value): Ditto.
11612 (bitmap_set_new): Ditto.
11613 (bitmap_set_pool): New pool.
11614 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
11615 (insert_aux): Ditto.
11616 (add_to_sets): Ditto.
11617 (compute_avail): Ditto
11618 (eliminate): Ditto.
11619 (init_pre): Ditto.
11620 (fini_pre): Ditto.
11621 (execute_pre): Ditto.
11622
11623 2004-07-02 Roger Sayle <roger@eyesopen.com>
11624
11625 * config/rs6000/rs6000.c (struct processor_costs): New structure
11626 used to hold instruction latencies/sizes for processor types.
11627 (rs6000_cost): New global variable pointing to current CPU's costs.
11628 (rs6000_override_options): Initialize rs6000_cost to point to the
11629 appropriate cost table based upon rs6000_cpu and optimize_size.
11630 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
11631 timings inline.
11632
11633 2004-07-02 Richard Henderson <rth@redhat.com>
11634
11635 * expmed.c (make_tree): Don't use SET_DECL_RTL.
11636
11637 2004-07-02 Steven Bosscher <stevenb@suse.de>
11638
11639 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
11640
11641 2004-07-01 Richard Henderson <rth@redhat.com>
11642
11643 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
11644 (alpha_gp_save_rtx): Use assign_stack_local instead of
11645 gen_mem_addressof.
11646
11647 2004-07-01 Richard Henderson <rth@redhat.com>
11648
11649 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
11650 (alpha_rtx_cost_data): Update to match.
11651 (alpha_rtx_cost_size): New.
11652 (alpha_rtx_costs): Honor optimize_size.
11653
11654 2004-07-01 Richard Henderson <rth@redhat.com>
11655
11656 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
11657 * cfgexpand.c (tree_expand_cfg): Do it here.
11658 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
11659 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
11660 * config/mips/mips.c (mips_output_mi_thunk): And here.
11661 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
11662 * config/sh/sh.c (sh_output_mi_thunk): And here.
11663 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
11664
11665 2004-07-01 Richard Henderson <rth@redhat.com>
11666
11667 * tree.def (RTL_EXPR): Remove.
11668 * c-typeck.c (lvalue_p): Don't handle it.
11669 * expr.c (safe_from_p): Likewise.
11670 (expand_expr_real_1): Likewise.
11671 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
11672 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
11673 * gengtype.c (adjust_field_tree_exp): Likewise.
11674 * stmt.c (warn_if_unused_value): Likewise.
11675 * tree-gimple.c (recalculate_side_effects): Likewise.
11676 * tree-pretty-print.c (dump_generic_node): Likewise.
11677 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
11678 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
11679 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
11680
11681 * stmt.c (struct stmt_status): Remove x_last_expr_type,
11682 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
11683 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
11684 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
11685 all the bits that tracked last_expr.
11686 (expand_end_bindings): Don't track last_expr.
11687 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
11688 (clear_last_expr): Remove.
11689 (expand_asm): Don't call it.
11690 (expand_asm_operands, expand_end_cond): Likewise.
11691 (expand_naked_return, expand_null_return_1): Likewise.
11692 * c-typeck.c (c_begin_compound_stmt): Likewise.
11693 * cfgexpand.c (expand_block): Use expand_expr_stmt.
11694 * expr.c (expand_expr_real_1): Likewise.
11695 * tree.h: Update prototypes.
11696
11697 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
11698 (struct emit_status): Remove sequence_rtl_expr.
11699 (struct function): Remove x_rtl_expr_chain.
11700 (seq_rtl_expr, rtl_expr_chain): Remove.
11701 * function.c (struct temp_slot): Remove rtl_expr.
11702 (assign_stack_temp_for_type): Don't set it.
11703 (free_temp_slots, pop_temp_slots): Don't check it.
11704 (free_after_compilation): Don't clear x_rtl_expr_chain.
11705 (fixup_var_refs): Don't search it.
11706 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
11707 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
11708 or seq_rtl_expr.
11709 (push_topmost_sequence): Likewise.
11710 (end_sequence, init_emit): Likewise.
11711 (start_sequence_for_rtl_expr): Remove.
11712 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
11713 * rtl.h (preserve_rtl_expr_result): Remove.
11714
11715 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
11716
11717 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
11718 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
11719 typos.
11720
11721 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
11722
11723 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
11724 (STANDARD_STARTFILE_PREFIX_2): Define.
11725 (standard_startfile_prefix_1): Initialize to
11726 STANDARD_STARTFILE_PREFIX_1.
11727 (standard_startfile_prefix_2): Initialize to
11728 STANDARD_STARTFILE_PREFIX_2.
11729 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
11730 (STANDARD_STARTFILE_PREFIX_1): Define.
11731 (STANDARD_STARTFILE_PREFIX_2): Define.
11732 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
11733 (STANDARD_STARTFILE_PREFIX_2): Document.
11734
11735 2004-07-01 Richard Henderson <rth@redhat.com>
11736
11737 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
11738 in order to disable scalarization. Instead set a flag and wait
11739 for a candidate decl.
11740
11741 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
11742
11743 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
11744 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
11745 Use terminology "testsuite" and "enumerated".
11746
11747 2004-07-01 Richard Henderson <rth@redhat.com>
11748
11749 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
11750 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
11751 (initial_return_save): Likewise.
11752 (flush_queued_reg_saves): Remap register numbers.
11753 (dwarf2out_return_reg): Likewise.
11754
11755 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11756
11757 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
11758
11759 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
11760 access functions for lower bound and element size and only output
11761 if lower bound nonzero or element size not same as that of type.
11762 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
11763
11764 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
11765
11766 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
11767
11768 2004-07-01 Per Bothner <per@bothner.com>
11769
11770 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
11771
11772 2004-07-01 Jakub Jelinek <jakub@redhat.com>
11773
11774 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
11775 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
11776 first operand. Don't optimize if the bitfield is volatile.
11777
11778 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
11779
11780 * c-pretty-print.c (pp_c_postfix_expression): Handle
11781 floating-point comparison operators.
11782 (pp_c_expression): Pass floating-point comparison
11783 operators to pp_c_postfix_expression.
11784
11785 2004-07-01 Roger Sayle <roger@eyesopen.com>
11786
11787 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
11788 rtx_cost instead of "had_mult" to determine whether the transformed
11789 expression is cheaper than the original.
11790
11791 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
11792
11793 * alias.c (get_alias_set, canon_rtx, get_addr,
11794 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
11795 Use MEM_P.
11796 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
11797 expand_builtin): Likewise.
11798 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
11799 Likewise.
11800 * combine.c (can_combine_p, combinable_i3pat, try_combine,
11801 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
11802 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
11803 record_dead_and_set_regs_1, get_last_value_validate,
11804 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
11805 * cse.c (check_dependence, canon_hash, equiv_constant,
11806 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
11807 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
11808 count_reg_usage): Likewise.
11809 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
11810 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
11811 cselib_record_sets): Likewise.
11812 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
11813 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
11814 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
11815 * df.c (df_uses_record): Likewise.
11816 * dojump (do_jump): Likewise.
11817 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
11818 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
11819 decl_start_label): Likewise.
11820 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
11821 operand_subword, change_address_1, make_safe_from): Likewise.
11822 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
11823 stabilize, force_not_mem): Likewise.
11824 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
11825 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
11826 * expr.c (convert_move, convert_modes, emit_block_move,
11827 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
11828 emit_move_insn_1, expand_assignment, store_expr,
11829 store_constructor_field, store_constructor, store_field,
11830 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
11831 Likewise.
11832 * final.c (cleanup_subreg_operands, alter_subreg,
11833 get_mem_expr_from_op): Likewise.
11834 * flow.c (notice_stack_pointer_modification_1,
11835 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
11836 Likewise.
11837 * function.c (mark_temp_addr_taken, preserve_temp_slots,
11838 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
11839 optimize_bit_field, flush_addressof, purge_addressof_1,
11840 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
11841 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
11842 keep_stack_depressed): Likewise.
11843 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
11844 noce_process_if_block, find_memory): Likewise.
11845 * integrate.c (subst_constants, allocate_initial_values): Likewise.
11846 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
11847 update_equiv_regs): Likewise.
11848 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
11849 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
11850 * optabs.c (expand_abs, emit_unop_insn): Likewise.
11851 * passes.c (rest_of_handle_final): Likewise.
11852 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
11853 move2add_note_store): Likewise.
11854 * ra-build.c (detect_remat_webs): Likewise.
11855 * ra-debug.c (dump_static_insn_cost): Likewise.
11856 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
11857 * recog.c (validate_change, apply_change_group, cancel_changes,
11858 validate_replace_rtx_1, general_operand, register_operand,
11859 nonmemory_operand, push_operand, pop_operand, memory_operand,
11860 indirect_operand, asm_operand_ok, offsettable_memref_p,
11861 offsettable_nonstrict_memref_p, constrain_operands,
11862 store_data_bypass_p): Likewise.
11863 * reg-stack.c (subst_stack_regs_pat): Likewise.
11864 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
11865 copy_cost, reg_scan_mark_refs): Likewise.
11866 * regmove.c (optimize_reg_copy_3, stack_memref_p,
11867 combine_stack_adjustments_for_block): Likewise.
11868 * regrename.c (copyprop_hardreg_forward_1): Likewise.
11869 * reload.c (can_reload_into, push_reload, decompose, immune_p,
11870 find_reloads, find_reloads_address, find_reloads_address_1,
11871 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
11872 find_equiv_reg): Likewise.
11873 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
11874 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
11875 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
11876 delete_address_reloads): Likewise.
11877 * resource.c (mark_referenced_resources): Likewise.
11878 * rtlanal.c (get_jump_table_offset, count_occurrences,
11879 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
11880 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
11881 num_sign_bit_copies1): Likewise.
11882 * rtlhooks.c (gen_lowpart_general): Likewise.
11883 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
11884 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
11885 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
11886 sdbout_global_decl): Likewise.
11887 * simplify-rtx.c (simplify_subreg): Likewise.
11888 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
11889 expand_anon_union_decl, expand_end_case_type): Likewise.
11890 * unroll.c (calculate_giv_inc): Likewise.
11891 * var-tracking.c (stack_adjust_offset_pre_post,
11892 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
11893 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
11894 vt_add_function_parameters): Likewise.
11895 * varasm.c (make_var_volatile, notice_global_symbol,
11896 assemble_external, decode_addr_const, mark_weak,
11897 default_encode_section_info): Likewise.
11898
11899 2004-07-01 Steven Bosscher <stevenb@suse.de>
11900
11901 * stmt.c (check_seenlabel): Remove.
11902 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
11903
11904 2004-07-01 Richard Henderson <rth@redhat.com>
11905
11906 * function.h (struct function): Remove x_function_call_count.
11907 (function_call_count): Remove.
11908 * calls.c (expand_call): Don't set it.
11909 * integrate.c (copy_rtx_and_substitute): Likewise.
11910
11911 * function.h (struct function): Remove x_cleanup_label.
11912 (cleanup_label): Remove.
11913 * stmt.c (expand_value_return): Don't use it.
11914 * function.c (free_after_compilation): Don't set it.
11915 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
11916 * cfgexpand.c (tree_expand_cfg): Update call.
11917 * tree.h (expand_function_start): Update decl.
11918
11919 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
11920
11921 PR c/1027
11922 * c-lang.c (c_initialize_diagnostics): Move from here ...
11923 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
11924 (c_tree_printer): Use pretty-printer to format %T.
11925 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
11926 before '*' if not C++.
11927 (pp_c_direct_abstract_declarator): Don't try to print array upper
11928 bound for flexible array members.
11929 * c-tree.h: Include "diagnostic.h".
11930 (c_initialize_diagnostics): Declare.
11931 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
11932 * c-format.c (format_type_warning): New function. Improve
11933 diagnostics for incorrect format argument types.
11934 (check_format_types): Use it. Add two parameters. Use the
11935 TYPE_MAIN_VARIANT of wanted_type.
11936 (check_format_info_main): Pass new parameters to
11937 check_format_types.
11938 (struct format_wanted_type): Update comment.
11939
11940 2004-07-01 Nick Clifton <nickc@redhat.com>
11941
11942 * target.h (struct gcc_target): Add new field to struct cxx:
11943 import_export_class.
11944 * target-def.h (TARGET_CXX): Initialise the new field.
11945 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
11946 the new field.
11947 * doc/tm.texi: Document the new target hook.
11948
11949 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
11950
11951 * builtins.c (fold_builtin_classify): Fix typo.
11952
11953 2004-07-01 Richard Henderson <rth@redhat.com>
11954
11955 * function.c (identify_blocks, identify_blocks_1): Remove.
11956 * function.h (identify_blocks): Remove.
11957 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
11958
11959 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
11960
11961 * builtins.c (fold_builtin_classify): New.
11962 (fold_builtin_unordered_cmp): Fix commentary.
11963 (fold_builtin): Use it.
11964 * builtins.def: Define builtins for isnan,
11965 isnanf, isnanl, finite, finitef, finitel,
11966 isinf, isinff, isinfl.
11967
11968 2004-07-01 Richard Henderson <rth@redhat.com>
11969
11970 * function.h (struct function): Remove dont_emit_block_notes.
11971 * gimple-low.c (lower_function_body): Don't set it.
11972 * cfgexpand.c (expand_block): Don't check it.
11973 * cfglayout.c (insn_locators_initialize): Likewise.
11974 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
11975 * passes.c (rest_of_compilation): Likewise.
11976 * stmt.c (expand_start_bindings_and_block): Likewise.
11977 (expand_end_bindings): Likewise.
11978
11979 2004-07-01 Richard Henderson <rth@redhat.com>
11980
11981 * cgraph.h (cgraph_build_static_cdtor): Declare.
11982 * cgraphunit.c (cgraph_build_static_cdtor): New.
11983 * c-objc-common.c (build_cdtor): Use it.
11984 * coverage.c (create_coverage): Likewise.
11985 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
11986 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
11987
11988 See ChangeLog.11 for earlier changes.