re PR target/18217 (Ada Bootstrap failures on powerpc-darwin with undefined symbol...
[gcc.git] / gcc / ChangeLog
1 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2
3 PR target/18217
4 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
5 (LIB2ADDEH): Here.
6
7 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
8
9 PR tree-opt/18544
10 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
11
12 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
13
14 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
15 m32r*linux.
16 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
17 m32r/libgcc-glibc.ver.
18 * config/m32r/libgcc-glibc.ver: Add New file.
19
20 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
21
22 * bitmap.h (struct bitmap_obstack): New obstack type.
23 (struct bitmap_head_def): Replace using_obstack with obstack
24 pointer.
25 (bitmap_default_obstack): New.
26 (bitmap_initialize): Make inline, does not do allocation.
27 (bitmap_release_memory): Remove.
28 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
29 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
30 bitmap_obstack_free, bitmap_malloc_free): Declare.
31 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
32 (BITMAP_FREE): Replace with ...
33 (BITMAP_OBSTACK_FREE): ... this.
34 (BITMAP_XFREE): Adjust.
35 (BITMAP_INIT_ONCE): Remove.
36 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
37 (bitmap_default_obstack): New.
38 (bitmap_elem_to_freelist): Adjust.
39 (bitmap_element_allocate): Adjust. Break initialization into ...
40 (bitmap_obstack_initialize): ... here.
41 (bitmap_release_memory): Replace with ...
42 (bitmap_obstack_release): ... this.
43 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
44 bitmap_obstack_free, bitmap_malloc_free): New.
45 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
46 bitmap_initialize.
47 (bitmap_initialize): Move to bitmap.h.
48 * gengtype.c (open_base_files): Add obstack.h to ifiles.
49 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
50 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
51 (INITIALIZE_REG_SET): Remove.
52 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
53 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
54 (flow_obstack): Do not declare.
55 (reg_obstack): Declare.
56 * regs.h: Include obstack.h.
57 * tree-optimize.c (tree_rest_of_compilation): Initialize and
58 release bitmap obstack here.
59 * bb-reorder.c: #include regs, not basic-block.
60 (fix_crossing_conditional_branches): Allocate regsets from
61 reg_obstack.
62 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
63 obstack.h.
64 * caller-save.c: Include regs.h earlier.
65 * cfg.c: Do not include basic-block.h or obstack.h.
66 (reg_obstack): Define.
67 * cfganal.c: Include obstack.h
68 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
69 earlier.
70 * cfglayout.c: Do not include obstack.h.
71 (flow_obstack): Remove declaration.
72 (cfg_layout_duplicate_bb): Use reg_obstack.
73 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
74 * cfgrtl.c (rtl_split_block): Use reg_obstack.
75 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
76 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
77 (cfg_layout_split_edge): Use reg_obstack.
78 * cse.c: Include regs.h earlier.
79 * ddg.c: Do not include basic-block.h.
80 * dominance.c: Inlude obstack.h.
81 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
82 (calculate_global_regs_live): Likewise.
83 (allocate_bb_life_data): Use reg_obstack.
84 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
85 * global.c: Do not include basic-block.h.
86 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
87 * graph.c: Include obstack.h.
88 * haifa-sched.c: Do not include basic-block.h.
89 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
90 * local-alloc.c: Do not include basic-block.h.
91 * loop-init.c, loop-invariant.c: Include obstack.h.
92 * loop-iv.c: Likewise.
93 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
94 adjust.
95 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
96 * modulo-sched.c: Do not include basic-block.h.
97 * passes.c (rest_of_handle_final): Do not call
98 regset_release_memory.
99 * ra-debug.c: Include regs.h earlier. Do not include
100 basic-block.h.
101 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
102 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
103 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
104 (regset_release_memory): Remove.
105 * resource.c: Do not include basic-block.h.
106 * rtlanal.c: Do not include basic-block.h.
107 * sbitmap.c: Include obstack.h.
108 * sched-deps.c: Do not include basic-block.h.
109 (reg_pending_sets_head, reg_pending_clobbers_head,
110 reg_pending_uses_head): Remove.
111 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
112 * sched-ebb.c: Do not include basic-block.h.
113 * sched-rgn.c: Likewise.
114 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
115 BITMAP_XFREE.
116 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
117 * tree-sra.c (decide_instantiations): Adjust bitmap
118 initialization.
119 * tree-ssa-dce.c: Include obstack.h.
120 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
121 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
122 (bitmap_set_new): Likewise.
123 (init_pre): Initialize bitmap obstack.
124 (fini_pre): Release bitmap obstack.
125 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
126 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
127 (mark_for_rewrite, unmark_for_rewrite): Likewise.
128 (marked_ssa_names): Likewise.
129 (init_ssanames): Use BITMAP_XMALLOC.
130 (fini_ssanames): Use BITMAP_XFREE.
131 * web.c: Include obstack.h
132
133 2004-11-22 Nick Clifton <nickc@redhat.com>
134
135 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
136 predecessor in the first for-loop.
137
138 2004-11-21 Stan Shebs <shebs@apple.com>
139
140 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
141 UNION_TYPE case.
142 (function_arg): Move darwin test up, sniff mode first for
143 efficiency, test for union type.
144
145 2004-11-21 Dale Johannesen <dalej@apple.com>
146
147 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
148
149 2004-11-21 Jeff Law <law@redhat.com>
150
151 * tree-ssa.c (verify_use): Fix comment.
152 (verify_phi_args): Check that the number of incoming edges matches
153 the number of PHI arguments. Check that each PHI argument is
154 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
155 dead or duplicated edges. Clear e->aux earlier and avoid separate
156 loop to clear e->aux and test for missed edges.
157 (verify_ssa): Remove first walk over statements. Move checking
158 of PHI args into verify_phi_args. Move checking of statements
159 with aliased stores and V_MAY_DEFS into the remaining loop over
160 the statements. Register defs by walking through the formal
161 SSA_NAME table.
162
163 2004-11-21 Roger Sayle <roger@eyesopen.com>
164
165 PR middle-end/18520
166 * dojump.c (compare_from_rtx): Clarify mode argument in function
167 description. Correct order of mode/cmp_mode arguments in call to
168 simplify_relational_operation. Check "tem" for COMPARISON_P.
169
170 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
171 David Edelsohn <edelsohn@gnu.org>
172
173 PR target/17836
174 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
175 synthetic vectors in memory.
176 (function_arg_boundary): Align large synthetic vectors.
177 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
178
179 2004-11-21 Jeff Law <law@redhat.com>
180
181 * cfg.c (update_bb_profile_for_threading): Do not rescale the
182 successor probabilities if they are not going to change. Pull
183 division out of loop if we do need to rescale successor probabilities.
184
185 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
186 index of the destination block for the hash value rather than
187 hashing a pointer.
188
189 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
190
191 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
192 checks for neither argument being an array or pointer (swapping
193 the arguments if necessary), the array argument being a pointer to
194 or array of functions and for -Wchar-subscripts warnings upfront.
195
196 2004-11-20 Jeff Law <law@redhat.com>
197
198 * regrename.c (copyprop_hardreg_forward): Only search for a
199 previously processed block if the current block only has one
200 predecessor.
201
202 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
203
204 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
205 typos.
206 * config/arm/arm.c: Follow spelling conventions.
207
208 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
209
210 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
211 a bit in tune_flags.
212 (const_double_needs_minipool): Likewise. Split most of the code out
213 into ...
214 (arm_const_double_inline_cost): ... new function here.
215 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
216 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
217 word constants of length 2, 3 and 4 insns respectively.
218 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
219 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
220 constraints. Set insn lenghts accordingly.
221
222 2004-11-19 Jeff Law <law@redhat.com>
223
224 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
225 a hash table. Extensive modifications throughout to support
226 that change.
227 (struct el): New.
228 (struct local_info): New.
229 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
230 fields.
231 (redirection_data): Now a hashtable.
232 (redirection_data_hash, redirection_data_eq): New.
233 (lookup_redirection_data, create_duplicates): New.
234 (create_edge_and_update_destionation_phis): New.
235 (fixup_template_block, redirect_edges): New.
236 (thread_block): Use hash table traversals instead of loops over
237 varray entries or incoming edge vectors.
238
239 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
240
241 * basic-block.h (edge_def): Add dest_idx.
242 * cfg.c (unchecked_make_edge): Initialize dest_idx.
243 (remove_edge): Simplify the disconnection of an edge from its
244 destination.
245 (redirect_edge_succ): Likewise.
246 * cfghooks.c (verify_flow_info): Check the consistency of
247 dest_idx for each edge.
248
249 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
250
251 * simplify-rtx.c (simplify_ternary_operation): Use
252 gen_int_mode.
253
254 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
255
256 * tree-cfg.c (reinstall_phi_args): New.
257 (tree_split_edge): Use it after redirecting an edge. Don't
258 modify PHI_ARG_EDGE.
259
260 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
261
262 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
263 if checking is enabled.
264
265 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
266
267 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
268 too many nested scopes.
269
270 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
271
272 PR tree-opt/18181
273 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
274 changed to suppoer uses-after-loop and to void creating flow paths
275 that shouldn't exist.
276 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
277 Modified to fit the new peeling scheme. Avoid quadratic behavior.
278 (slpeel_add_loop_guard): Takes additional argument.
279 (slpeel_verify_cfg_after_peeling): New function.
280 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
281 documentation. Use 'exit-bb' instead of creating 'new-bb'.
282 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
283 the new peeling scheme.
284 (copy_phi_nodes): Function removed. Its functionality moved to
285 update_phis_for_duplicate_loop.
286 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
287 moved here. Added documentation. Modified to fit the new peeling scheme.
288 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
289 needed - done in slpeel_tree_peel_loop_to_edge.
290 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
291 (vect_do_peeling_for_loop_bound): Add documentation. Call
292 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
293 with additional argument.
294 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
295
296 (vect_finish_stmt_generation): Avoid 80 column oveflow.
297
298 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
299
300 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
301 arguments removed.
302 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
303 without last two arguments. Update single_exit of loops.
304 (vect_update_niters_after_peeling): Removed. Its functionality was
305 moved to vect_do_peeling_for_alignment.
306 (vect_do_peeling_for_loop_bound): New name for function previously
307 called vect_transform_for_unknown_loop_bound.
308 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
309 instead of code that duplicates the same functionality.
310 (vect_do_peeling_for_alignment): Functionality of
311 vect_update_niters_after_peeling moved here.
312 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
313 previously named vect_transform_for_unknown_loop_bound - for both known
314 and unknown loop bound cases.
315
316 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
317
318 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
319 previously called verify_loop_for_duplication. All conditions compacted
320 into one compound condition. Removed debug dumps.
321 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
322 functionality moved to vect_can_advance_ivs_p, and some to
323 vect_analyze_loop_form.
324 (vect_can_advance_ivs_p): New function. Contains functionality that was
325 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
326 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
327 (vect_analyze_operations): Call vect_can_advance_ivs_p and
328 slpeel_can_duplicate_loop_p.
329 (vect_get_loop_niters): Added documentation.
330 (vect_analyze_loop_form): Check the loop entry always - not only in case
331 of unknown loop bound. Create preheader and exit bb if necessary. Apply
332 a check that used to take place in
333 vect_analyze_loop_with_symbolic_num_of_iters.
334 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
335 Remove redundant call to rewrite_into_loop_closed_ssa.
336 (vect_compute_data_refs_alignment): Removed obsolete comment.
337
338 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
339
340 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
341 function previously called tree_duplicate_loop_to_edge.
342 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
343 previously called tree_duplicate_loop_to_edge_cfg.
344 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
345 function name.
346 (slpeel_update_phi_nodes_for_guard): Likewise.
347 (slpeel_make_loop_iterate_ntimes): Likewise.
348 (slpeel_add_loop_guard): Likewise.
349 (allocate_new_names, free_new_names): Function declaration moved to top
350 of file.
351 (rename_use_op, rename_def_op): Likewise.
352 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
353 (vect_generate_tmps_on_preheader): Function declaration moved.
354 (vect_transform_for_unknown_loop_bound): Added missing function
355 declaration.
356
357 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
358
359 PR tree-opt/18507
360 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
361 Define a VEC(tree_on_heap) for head.
362 (register_new_def): Change second argument to be a VEC(tree_on_heap).
363 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
364 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
365 the VEC(tree_on_heap) function. Also free it before returning.
366 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
367 for block_defs_stack.
368 (restore_currdefs_to_original_value): Use VEC_length instead of
369 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
370 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
371 for block_defs_stack.
372 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
373 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
374 for block_defs_stack.
375 (ssa_register_new_def): Likewise.
376 (ssa_rewrite_initialize_block): Likewise.
377 (rewrite_finalize_block): Use VEC_length instead of
378 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
379 (ssa_rewrite_finalize_block): Likewise.
380 (register_new_def): Change second argument to be a VEC(tree_on_heap).
381 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
382 (rewrite_blocks): Initialize block_defs_stack with
383 the VEC(tree_on_heap) function. Also free it before returning.
384 (rewrite_ssa_into_ssa): Likewise.
385
386 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
387
388 * config/darwin.c (machopic_data_defined_p): return 1 for
389 MACHOPIC_DEFINED_FUNCTION.
390
391 2004-11-19 Jeff Law <law@redhat.com>
392
393 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
394 arguments.
395
396 2004-11-19 Paul Brook <paul@codesourcery.com>
397
398 PR target/17735
399 * varasm.c (default_assemble_integer): Allow pointer-sized values.
400 Expand comment.
401
402 2004-11-19 Nick Clifton <nickc@redhat.com>
403
404 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
405 zero_extension and lshiftrt insns.
406 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
407 where appropriate.
408 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
409 to handle bp and bn insn patterns with a zero_extend rtx
410 inside them.
411
412 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
413
414 * config/arm/arm.md (generic_sched): Make const.
415
416 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
417
418 * emit-rtl.c (classify_insn): Make it static.
419 * rtl.h: Remove the corresponding prototype.
420
421 * integrate.c (has_func_hard_reg_initial_val,
422 get_func_hard_reg_initial_val): Make them static.
423 * integrate.h: Remove the corresponding prototypes.
424
425 2004-11-19 Ben Elliston <bje@au.ibm.com>
426
427 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
428 (dw2_asm_output_delta_sleb128): Likewise.
429 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
430 (dw2_asm_output_delta_sleb128): Likewise.
431
432 2004-11-19 Adam Nemet <anemet@lnxw.com>
433
434 * tree-ssa-alias.c: Fix comment.
435
436 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
437
438 * tree-outof-ssa.c: Fix a comment typo.
439
440 2004-11-19 Ben Elliston <bje@au.ibm.com>
441
442 * predict.h (predict_insn): Remove extern declaration.
443 * predict.c (predict_insn): Make static.
444
445 2004-11-19 Alan Modra <amodra@bigpond.net.au>
446
447 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
448
449 2004-11-18 Nicolas Pitre <nico@cam.org>
450
451 * config/arm/arm.c (const_double_needs_minipool): New function to
452 determine if a CONST_DOUBLE should be pushed to the minipool.
453 (note_invalid_constants): Use it.
454
455 2004-11-18 Paul Brook <paul@codesourcery.com>
456
457 * config/arm/arm.c (target_float_switch): New variable..
458 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
459 target_float_switch.
460 * config/arm/arm.h (target_float_switch): Declare.
461 (ARM_FLAG_SOFT_FLOAT): Remove.
462 (TARGET_SWITCHES): Remove hard-float and soft-float.
463 (TARGET_OPTIONS): Add hard-float and soft-float.
464 (TARGET_DEFAULT_FLOAT_ABI): Define.
465 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
466 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
467 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
468 * config/arm/netbsd-elf.h: Ditto.
469 * config/arm/netbsd.h: Ditto.
470 * config/arm/pe.h: Ditto.
471 * config/arm/unknown-elf.h: Ditto.
472 * config/arm/wince-pe.h: Ditto.
473 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
474 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
475 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
476
477 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
478
479 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
480 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
481 altivec_lvx_4sf): Rename and replace with ...
482 (altivec_lvx_<mode>): ... mode macro version.
483 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
484 altivec_stvx_4sf): Rename and replace with ...
485 (altivec_stvx_<mode>): ... mode macro version.
486 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
487 (mov<mode>): ... mode macro version.
488 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
489 *movv4sf_internal1): Replace with ...
490 (*mov<mode>_internal): ... mode macro version.
491 (get_vrsave_internal, *set_vrsave_internal, *save_world,
492 *restore_world): Unquote output statements.
493 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
494 altivec_expand_st_builtin): Adjust insn names.
495
496 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
497
498 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
499 previous change.
500 (rs6000_override_options): Likewise.
501 (spe_build_register_parallel): Handle complex doubles on e500v2.
502 (rs6000_spe_function_arg): Likewise.
503 (function_arg): Likewise.
504 (rs6000_function_value): Likewise.
505 (rs6000_libcall_value): Likewise.
506
507 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
508
509 * ifcvt.c (find_if_block): Move the check for the number of edges
510 above the loops checking for complex edges.
511 Remove the counting of edges as we use EDGE_COUNT now.
512
513 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
514
515 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
516 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
517
518 2004-11-18 Andreas Schwab <schwab@suse.de>
519
520 * config/i386/i386.md (define_peephole2): Revert last change.
521
522 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
523
524 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
525 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
526
527 2004-11-18 Diego Novillo <dnovillo@redhat.com>
528
529 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
530 of FOR_EACH_BB.
531
532 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
533
534 * Makefile.in (macro_list): Depend on s-macro_list.
535 (s-macro_list): New target.
536
537 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
538
539 PR target/17107
540 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
541 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
542 (fold_range_test): Adjust.
543 (fold_truthop): Use it.
544 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
545 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
546
547 2004-11-18 Uros Bizjak <uros@kss-loka.si>
548
549 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
550 insn split constraint.
551 (define_peephole2): Remove unneeded "&& 1" from peephole2
552 constraints.
553
554 2004-11-18 Ben Elliston <bje@au.ibm.com>
555
556 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
557 element for bsi_prev; use @findex instead.
558
559 2004-11-18 Ben Elliston <bje@au.ibm.com>
560
561 * opts.h (add_input_filename): Remove extern declaration.
562 * opts.c (add_input_filename): Make static.
563
564 2004-11-17 Mark Mitchell <mark@codesourcery.com>
565
566 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
567 ATTRIBUTE_UNUSED.
568
569 2004-11-17 Zack Weinberg <zack@codesourcery.com>
570
571 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
572 * system.h: Poison it.
573 * doc/tm.texi: Delete its documentation.
574
575 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
576 Mark Mitchell <mark@codesourcery.com>
577
578 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
579 * config/i386/i386.c (i386_solaris_elf_named_section): New
580 function.
581 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
582 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
583 64-bit.
584 (ASM_QUAD): Don't undefine for biarch targets.
585 * config/i386/t-sol2: Introduce multilib support.
586
587 2004-11-18 Ben Elliston <bje@au.ibm.com>
588
589 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
590
591 2004-11-18 Ben Elliston <bje@au.ibm.com>
592
593 * cgraph.h: Replace "it's" with "its" throughout.
594
595 2004-11-18 Ben Elliston <bje@au.ibm.com>
596
597 * doc/rtl.texi (Flags): Grammar fix.
598
599 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
600
601 * expmed.c (alg_code): Add alg_unknown.
602 (alg_hash_entry): New.
603 (NUM_ALG_HASH_ENTRIES): Likewise.
604 (alg_hash): Likewise.
605 (synth_mult): Cache the result into alg_hash.
606
607 2004-11-17 Zack Weinberg <zack@codesourcery.com>
608
609 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
610 config/rs6000/libgcc-ppc64.ver.
611
612 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
613
614 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
615 checking if an unconditional return is followed by a barrier.
616
617 * jump.c (condjump_p): Remove unreachable code.
618
619 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
620 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
621 tree-ssa-live.h, tree.h: Remove unused prototypes.
622
623 2004-11-17 Jeff Law <law@redhat.com>
624
625 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
626 (edge_to_cases_elt): Renamed from edge_to_case_leader.
627 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
628 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
629 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
630 (get_cases_for_edge): New function.
631 (start_recording_case_labels, end_recording_case_labels): Similarly.
632 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
633 chain equivalent CASE_LABEL_EXPRs together.
634 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
635 (make_switch_expr_edges): Do not record edge/cases here.
636 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
637 (split_critical_edges): Record cases around the edge splitting code.
638 (cleanup_dead_labels): Use CASE_LABEL again.
639 (tree_redirect_edge_and_branch): If we have a mapping from edge
640 to cases, use it to handle redirections. Else do it the slow way.
641 * tree.h (CASE_LEADER_OR_LABEL): Kill.
642 (CASE_LABEL): Revert to just looking at the tree's second operand.
643 * tree.c (get_case_label): Kill.
644
645 2004-11-17 Diego Novillo <dnovillo@redhat.com>
646
647 PR tree-optimization/18307
648 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
649 'orig' are the same node.
650 (collect_points_to_info_r): Do not call merge_pointed_to_info
651 when the PHI argument is identical to the LHS.
652
653 2004-11-17 Steven Bosscher <stevenb@suse.de>
654
655 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
656 to insert the exit or entry block.
657 (ssa_prop_init): Use add_control_edge to seed the algorithm.
658
659 2004-11-16 Zack Weinberg <zack@codesourcery.com>
660
661 * mkmap-flat.awk, mkmap-symver.awk: If the last version
662 assigned to a symbol was '%exclude', do not emit it anywhere.
663 If leading_underscore is true, prefix all symbols from the
664 version scripts with a leading underscore before comparing
665 them with nm output or emitting them. Remove support for dot
666 symbols.
667 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
668 (SHLIB_MAPFILES): Use libgcc-std.ver.
669 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
670 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
671 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
672 libgcc-excl.ver and libgcc-glibc.ver.
673
674 * config/sh/libgcc-excl.ver: New file.
675 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
676
677 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
678
679 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
680 the test when the edge has the opposite meaning, not when
681 the first argument is invariant.
682
683 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
684
685 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
686 doubles.
687 (rs6000_complex_function_value): Handle e500 v2 variant.
688
689 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
690
691 Fix PR tree-optimization/18519
692
693 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
694 * tree-pass.h: Add TODO_cleanup_cfg.
695 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
696 (ccp_finalize): Remove call to cleanup_cfg.
697 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
698 (pass_cd_dce): Ditto.
699 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
700 dump_function_to_file.
701 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
702 to cleanup_cfg.
703 (pass_ch): Add TODO_cleanup_cfg.
704 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
705 cleanup_cfg.
706 (pass_loop_done): Add TODO_cleanup_cfg.
707 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
708 (tree_ssa_phiopt): Remove call to cleanup_cfg.
709
710 2004-11-16 Devang Patel <dpatel@apple.com>
711
712 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
713
714 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
715
716 * expmed.c, ra-colorize.c: Fix comment typos.
717
718 * doc/tm.texi: Fix typos.
719
720 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
721 Mark Mitchell <mark@codesourcery.com>
722
723 PR target/6123
724 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
725 __pic__ if PIC.
726
727 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
728
729 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
730 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
731
732 2004-11-16 Devang Patel <dpatel@apple.com>
733
734 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
735
736 2004-11-16 Eric Christopher <echristo@redhat.com>
737
738 * config/mips/mips.c: Use rtl _P predicates.
739 * config/mips/mips.h: Ditto.
740 * config/mips/mips.md: Ditto.
741
742 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
743
744 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
745 the pattern.
746
747 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
748
749 * config/s390/s390.c (s390_cc_modes_compatible): New function.
750 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
751
752 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
753
754 PR target/18447
755 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
756 before and after the insns for getting GOT address in non-PIC
757 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
758 is enabled.
759
760 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
761
762 * gcc/cse.c (struct change_cc_mode_args): New structure.
763 (cse_change_cc_mode_insn): New function.
764 (cse_change_cc_mode): Use validate_change to perfom changes.
765 (cse_change_cc_mode_insns, cse_condition_code_reg):
766 Call cse_change_cc_mode_insn.
767
768 2004-11-16 Steven Bosscher <stevenb@suse.de>
769
770 * stack.h: Remove.
771
772 2004-11-16 Steven Bosscher <stevenb@suse.de>
773
774 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
775
776 2004-11-15 Dale Johannesen <dalej@apple.com>
777
778 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
779
780 2004-11-15 Dale Johannesen <dalej@apple.com>
781
782 * profile.c (compute_branch_probabilities): Prevent
783 crash with EH in RTL-based profiling.
784
785 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
786
787 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
788 COND_EXPR_COND.
789 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
790 * tree-ssa-dom.c (thread_across_edge): Likewise.
791 * tree-vectorizer.c (vect_transform_loop_bound): Replace
792 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
793 COND_EXPR_ELSE.
794
795 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
796 (tree_flow_call_edges_add): Update the call to
797 bsi_commit_edge_inserts.
798 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
799 * profile.c (branch_prob): Likewise.
800 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
801 * tree-sra.c (scalarize_function): Likewise.
802 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
803 * tree-ssa-pre.c (fini_pre): Likewise.
804 * tree-flow.h: Update the prototype for
805 bsi_commit_edge_inserts.
806
807 2004-11-15 Eric Christopher <echristo@redhat.com>
808
809 * sched-deps.c (set_sched_group_p): Delete.
810 (delete_all_dependencies): New function.
811 (fixup_sched_groups): Use. New function.
812 (sched_analyze_insn): Use.
813
814 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
815
816 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
817 RROTATE_EXPR or unknown code.
818 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
819 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
820 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
821 or unknown code.
822
823 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
824
825 PR c/18498
826 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
827 after processing the declarator.
828
829 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
830
831 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
832 vec_duplicate.
833 (altivec_vspltb): Same.
834 (altivec_vspltw): Same.
835 (altivec_vspltisb): Same.
836 (altivec_vspltish): Same.
837 (altivec_vspltisw): Same.
838 (altivec_vspltisw_v4sf): Same.
839 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
840 UNSPEC_VSPLTISH.
841 Move "End of vector xor's" comment to the right place.
842
843 2004-11-15 Steve Ellcey <sje@cup.hp.com>
844
845 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
846 instead of nonimmediate_operand.
847
848 2004-11-15 Mark Mitchell <mark@codesourcery.com>
849
850 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
851 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
852 * config/sol2.c (solaris_output_init_fini): Update calls to
853 ASM_OUTPUT_CALL. Include "rtl.h".
854
855 2004-11-15 Mark Mitchell <mark@codesourcery.com>
856
857 * config/sol2-c.c (cmn_err_char_table): Add "p".
858
859 2004-11-15 Mark Mitchell <mark@codesourcery.com>
860
861 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
862 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
863
864 2004-11-15 Mark Mitchell <mark@codesourcery.com>
865
866 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
867 within the multilib directory.
868
869 2004-11-15 Nick Clifton <nickc@redhat.com>
870
871 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
872 builtin assert of cpu=xstormy16.
873
874 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
875
876 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
877 variable.
878
879 2004-11-14 Richard Henderson <rth@redhat.com>
880
881 PR 18480
882 * calls.c (struct arg_data): Add parallel_value.
883 (precompute_register_parameters): Set it.
884 (load_register_parameters): Use it.
885 (store_one_arg): Also set it here.
886
887 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
888
889 PR tree-optimization/18431
890 * fold-const.c (associate_trees): Do not produce x + 0.
891 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
892 (fold): Use them.
893 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
894 Moved ...
895 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
896 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
897
898 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
899
900 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
901
902 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
903
904 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
905 value-prof.c: Fix comment typos.
906
907 2004-11-14 Stan Shebs <shebs@apple.com>
908
909 Basic ABI changes for passing structs by value in 64-bit Darwin.
910 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
911 (rs6000_override_options): Set it for 64-bit Darwin.
912 (rs6000_parse_abi_options): Add testing options to change it.
913 (rs6000_return_in_memory): Test whether the type is one
914 that can be passed in registers.
915 (darwin64_function_arg_advance): New.
916 (function_arg_advance): Call it, plus add recursion depth
917 argument and test when counting off arguments.
918 (rs6000_darwin64_function_arg): New.
919 (function_arg): Call it.
920 (setup_incoming_varargs): Add argument to function_arg_advance.
921 (rs6000_darwin64_function_value): New.
922 (rs6000_function_value): Call it.
923 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
924 * config/rs6000/rs6000-protos.h: Update decl of
925 function_arg_advance.
926
927 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
928
929 PR c/17279
930 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
931 support TImode before adding __int128_t and __uint128_t types.
932
933 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
934
935 PR tree-opt/18400
936 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
937 (vect_transform_loop_bound): Set loop->nb_iterations.
938
939 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
940 Andrew Pinski <pinskia@physics.uc.edu>
941
942 PR tree-opt/18425
943 * tree-vectorize.c (vect_build_loop_niters): Do not insert
944 NULL into the instruction stream. Initialize new_bb to NULL.
945 (vect_update_ivs_after_vectorizer): Likewise.
946 (vect_gen_niters_for_prolog_loop): Likewise.
947
948 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
949
950 PR tree-optimization/18431
951 * tree-flow.h (stmt_references_memory_p): Declare.
952 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
953 * tree-ssa.c (stmt_references_memory_p): New function.
954
955 2004-11-14 Andreas Schwab <schwab@suse.de>
956
957 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
958 $(EXPR_H).
959
960 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
961
962 * c-common.c (walk_stmt_tree): Remove.
963 * c-common.h: Remove the corresponding prototype.
964
965 * emit-rtl.c (push_to_full_sequence): Remove.
966 * rtl.h: Remove the corresponding prototype.
967
968 * cselib.c, expr.c: Fix comment typos.
969
970 2004-11-13 Richard Henderson <rth@redhat.com>
971
972 * calls.c (precompute_register_parameters): Force all PARALLELs
973 into pseudo registers.
974 (load_register_parameters): Copy PARALLELs into hard registers.
975 * function.c (assign_parm_setup_block): Copy PARALLELS into
976 pseudo registers. Do emit_group_store in conversion_insns.
977 * expr.c (emit_group_load_1): Rename from emit_group_load, take
978 tmps as an argument. Move final copy loop ...
979 (emit_group_load): ... here. New function.
980 (emit_group_load_into_temps, emit_group_move_into_temps): New.
981 * expr.h: Declare them.
982
983 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
984
985 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
986 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
987 with PHI_CHAIN where appropriate.
988
989 2004-11-13 Dale Johannesen <dalej@apple.com>
990
991 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
992 (tree_block_label): Ditto.
993 (flush_pending_stmts): Ditto.
994 (insert_edge_copies): Ditto.
995 (expr_invariant_in_loop_p): Ditto.
996 (TDF_USE_OPS): Parenthesize definition.
997 (TDF_USE_VOPS): Ditto.
998
999 2004-11-13 David Edelsohn <edelsohn@gnu.org>
1000
1001 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
1002 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
1003 (atoll): Declare.
1004 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
1005
1006 2004-11-14 Joseph Myers <joseph@codesourcery.com>
1007
1008 * config/i386/i386.c (override_options): Move loop to set default
1009 tuning to correct place.
1010
1011 2004-11-13 Zak Kipling <zak@transversal.com>
1012
1013 PR target/18300
1014 * config/i386/i386.c (classify_argument): Fix infinite loop when
1015 passing object with 3 or more base classes by value.
1016
1017 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1018
1019 * doc/md.texi (constraints) <% modifier>: Mention that it is
1020 useless when the two alternatives are strictly identical.
1021
1022 2004-11-13 Richard Henderson <rth@redhat.com>
1023
1024 * expmed.c (extract_split_bit_field): Temporarily disable call to
1025 extract_force_align_mem_bit_field.
1026
1027 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
1028
1029 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
1030 formatting.
1031
1032 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
1033 lambda-code.c, postreload.c, predict.c, tree-sra.c,
1034 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
1035
1036 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
1037
1038 * doc/install.texi (automake): Correctly document that everything now
1039 will use automake 1.9.3.
1040
1041 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
1042
1043 PR target/18347
1044 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
1045 TImode. Sorry for other non-complex larger-than-64-bit modes.
1046 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
1047
1048 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
1049
1050 * doc/install.texi (automake): Document that everything now uses 1.9.
1051
1052 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
1053
1054 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
1055 previous loads.
1056
1057 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
1058
1059 * tree.h: Fix comment typos.
1060
1061 2004-11-13 Steven Bosscher <stevenb@suse.de>
1062
1063 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
1064 HARD_REGISTER_NUM_P.
1065
1066 * cselib.c (new_cselib_val): Make comment correct and more detailed.
1067 * flow.c (mark_set_1): Likewise.
1068
1069 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
1070 duplicate_eh_regions): Remove.
1071 * except.h (duplicate_eh_regions): Remove prototype.
1072 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
1073 global_const_equiv_varray): Remove.
1074 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
1075 global_const_equiv_varray, set_label_in_map): Remove prototypes,
1076 extern declaration, and #define.
1077 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
1078 (struct inline_remap): Remove.
1079 * varray.c (struct element): Remove entry for const_equiv_data.
1080 * varray.h (struct const_equiv_data): Remove.
1081 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
1082 (union varray_data_tag) <const_equiv>: Remove.
1083 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
1084 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
1085
1086 * regstack.c (record_label_references): Remove unused function.
1087
1088 * rtl.def (VALUE): Update comment.
1089 (LABEL_REF): Remove unused operand 2.
1090 * rtl.h (struct rtx_def): Update for removed accessor macros.
1091 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
1092 REG_LOOP_TEST_P): Remove.
1093 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
1094 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
1095 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
1096
1097 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
1098 Eric Botcazou <ebotcazou@libertysurf.fr>
1099
1100 PR target/18230
1101 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
1102 patterns.
1103 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
1104 (V32I): New macro for 32-bit modes.
1105 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
1106 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
1107 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
1108 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
1109 one_cmpldi_sp64): Use V64I instead of DI.
1110 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
1111 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
1112 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
1113 (nandv64i_vis, nandv32i_vis): New patterns.
1114
1115 2004-11-12 Mike Stump <mrs@apple.com>
1116
1117 * Makefile.in: Add html support.
1118 * java/Make-lang.in: Likewise.
1119 * fortran/Make-lang.in: Likewise.
1120 * treelang/Make-lang.in: Likewise.
1121 * doc/install.texi: Likewise.
1122 * doc/makefile.texi: Likewise.
1123 * doc/sourcebuild.texi: Likewise.
1124
1125 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
1126
1127 * tree-ssa-loop-manip.c: Fix a comment typo.
1128
1129 2004-11-12 Mike Stump <mrs@apple.com>
1130
1131 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
1132 renaming this node to Concept Index.
1133 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
1134 to more closely match gcc.texi.
1135
1136 2004-11-12 Jeff Law <law@redhat.com>
1137
1138 * tree-cfg.c (hashtab.h): Include.
1139 (struct edge_to_case_leader_elt): New structure.
1140 (edge_to_case_leader): New.
1141 (edge_to_case_leader_hash): New hashtable hasing function.
1142 (edge_to_case_leader_eq): New hashtable equality function.
1143 (record_switch_edge): New function.
1144 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
1145 (make_switch_expr_edges): Build the edge-to-case-leader
1146 hash table. Tear down the hash table when we're done.
1147 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
1148 CASE_LABEL.
1149 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
1150 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
1151 to use new concept of case leaders to reduce overhead of
1152 redirecting outgoing edges from switch statements.
1153 * tree.c (get_case_label): New function.
1154 * tree.h (CASE_LABEL): Define in terms of get_case_label.
1155 (CASE_LEADER_OR_LABEL): Define.
1156
1157 2004-11-12 Ziemowit Laski <zlaski@apple.com>
1158
1159 * varasm.c (output_addressed_constants): For CONST_DECLs,
1160 output the initializer if present.
1161
1162 2004-11-12 Ziemowit Laski <zlaski@apple.com>
1163
1164 * config/rs6000/darwin.h: Fix confusing typo in comment.
1165
1166 2004-11-12 Devang Patel <dpatel@apple.com>
1167
1168 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
1169
1170 2004-11-12 Devang Patel <dpatel@apple.com>
1171
1172 * tree-if-conv.c (clean_predicate_lists): Use loop header
1173 and latch directly.
1174
1175 2004-11-12 Richard Henderson <rth@redhat.com>
1176
1177 PR 17778
1178 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
1179 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1180 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
1181 * config/i386/i386-modes.def (XF): Use it.
1182
1183 2004-11-11 Geoffrey Keating <geoffk@apple.com>
1184
1185 * Makefile.in (macro_list): Use move-if-change to avoid spurious
1186 rebuilds.
1187
1188 2004-11-12 Mark Mitchell <mark@codesourcery.com>
1189
1190 PR c++/18416
1191 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
1192 when deciding whether to pass a variable to
1193 cgraph_varpool_finalize_decl or assemble_variable.
1194 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
1195
1196 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
1197
1198 * tree-vectorizer.c: Fix a comment typo.
1199
1200 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
1201
1202 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
1203
1204 2004-11-12 Diego Novillo <dnovillo@redhat.com>
1205
1206 * tree-scalar-evolution.c (analyzable_condition): Remove
1207 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
1208
1209 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
1210
1211 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
1212 Remove m505/roe multilib variant.
1213
1214 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1215
1216 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
1217 to load from the stack.
1218
1219 2004-11-12 Richard Henderson <rth@redhat.com>
1220
1221 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
1222 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
1223 * toplev.h (FL2T__): Remove.
1224 (CLZ_HWI): Rename from FL2T_CLZ__.
1225 (CTZ_HWI): New.
1226 (floor_log2): Simplify.
1227 (exact_log2): New.
1228
1229 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
1230
1231 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
1232 compute the first overlapping iterations.
1233
1234 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
1235
1236 PR middle-end/18005
1237 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
1238 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
1239
1240 2004-11-12 Steven Bosscher <stevenb@suse.de>
1241
1242 PR tree-optimization/18419
1243 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
1244 pointer set instead of a bitmap.
1245 (walk_use_def_chains): Create, pass and clean up that pointer_set.
1246
1247 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
1248 field an sbitmap.
1249 (init_alias_info): Allocate and zero it here.
1250 (delete_alias_info): Delete it here.
1251 (collect_points_to_info_for): Use it.
1252
1253 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
1254
1255 * alias.c (record_alias_subset, addr_side_effect_eval):
1256 Make them static.
1257 * alias.h: Remove the prototype for record_alias_subset.
1258 * expr.h: Remove the commented-out prototype for
1259 record_alias_subset.
1260 * rtl.h: Remove the prototype for addr_side_effect_eval.
1261
1262 * cfglayout.c (choose_inner_scope): Make it static.
1263 * rtl.h: Remove the corresponding prototype.
1264
1265 * cfgloopmanip.c (update_single_exits_after_duplication,
1266 unloop): Make them static.
1267 * cfgloop.h: Remove the corresponding prototypes.
1268
1269 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
1270 Make them static.
1271 * c-tree.h: Remove the corresponding prototypes.
1272
1273 * explow.c (round_push): Make it static.
1274 * expr.h: Remove the corresponding prototype.
1275
1276 * varasm.c (get_named_section_flags, decl_tls_model): Make
1277 them static.
1278 * output.h: Remove the prototype for get_named_section_flags.
1279 * tree.h: Remove the prototype for decl_tls_model.
1280
1281 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
1282
1283 * function.c (expand_function_end): Remove an "if" statement
1284 that always triggers.
1285 * stmt.c (expand_null_return_1): Likewise.
1286
1287 2004-11-11 James E. Wilson <wilson@specifixinc.com>
1288
1289 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
1290 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
1291 CLASS_MAX_NREGS): Likewise.
1292
1293 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
1294
1295 PR tree-optimization/17742
1296 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
1297 MINUS_EXPR correctly.
1298
1299 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
1300
1301 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
1302 Give up as soon as the evolution is known not computable.
1303
1304 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
1305
1306 PR target/16457
1307 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
1308 mask64_1or2_operand.
1309 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
1310 to spot rlwinm opportunities.
1311 (and64_2_operand): Use mask_1or2_operand.
1312 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
1313
1314 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
1315
1316 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
1317 (vect_update_ivs_after_vectorizer): Update function documentation.
1318 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
1319
1320 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
1321
1322 * config/arm/arm.c: Fix a comment typo.
1323
1324 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
1325
1326 * bitmap.h (nBITMAP_WORD_BITS): Remove.
1327 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
1328 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
1329 unnecessary casts.
1330 (bitmap_first_set_bit): Return unsigned, use ctzl.
1331 (bitmap_last_set_bit): Remove.
1332 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
1333 unsigned.
1334 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
1335 remove special case code for two word elements.
1336 (bitmap_last_set_bit): Remove.
1337 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
1338 bitmap_first_set_bit with bitmap_empty_p.
1339 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
1340 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
1341 bitmap_last_bit_set.
1342
1343 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
1344
1345 PR target/16796
1346 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
1347
1348 PR target/16458
1349 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
1350 unsigned equality compare when we know the operands are unsigned.
1351
1352 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
1353
1354 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
1355 __PIC__ and __pic__ only if TARGET_ABICALLS.
1356 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
1357 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
1358 -KPIC only if not -mno-abicalls.
1359
1360 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
1361 * config/sparc/linux.h, config/sparc/linux64.h
1362 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
1363
1364 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
1365 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
1366 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
1367 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
1368
1369 2004-11-11 Paul Brook <paul@codesourcery.com>
1370
1371 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
1372 register if current_function_uses_pic_offset_table is set.
1373
1374 2004-11-10 David Edelsohn <edelsohn@gnu.org>
1375
1376 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
1377 Change multi-instruction sequences to new attribute.
1378 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
1379 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
1380 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
1381
1382 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
1383
1384 * tree-data-ref.c (build_classic_dist_vector): If either loop
1385 is outside of the nest we asked about, the dependence can't
1386 matter.
1387 (build_classic_dir_vector): Ditto.
1388
1389 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
1390
1391 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
1392 right order.
1393 (force_var_cost): Determine cost of addition and multiplication more
1394 precisely.
1395 (get_computation_cost_at): Add cost for computing address elements to
1396 the final cost.
1397
1398 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
1399 one of the arguments of MINUS_EXPR is an address.
1400 (split_address_to_core_and_offset): New function.
1401 (ptr_difference_const): Handle case when one of the operands is a
1402 pointer.
1403 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
1404 (ptr_difference_cost): Pass addresses instead of objects to
1405 ptr_difference_const.
1406
1407 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
1408
1409 * tree.c (tree_check_failed): Emit general error if the list of
1410 node types is empty.
1411
1412 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1413
1414 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
1415 argument. When the union is passed in the 6th slot, build a
1416 PARALLEL with only one element.
1417 (function_arg): Adjust call to function_arg_union_value.
1418 (function_value): Likewise.
1419
1420 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
1421
1422 PR tree-optimization/17892
1423 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
1424 MINUS_EXPR operator.
1425
1426 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
1427
1428 PR target/18230
1429 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
1430 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
1431
1432 2004-11-10 Steven Bosscher <stevenb@suse.de>
1433
1434 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
1435 (struct basic_block_def): Remove local_set and cond_local_set
1436 fields. Update comment for global_live_at_start.
1437 * flow.c (calculate_global_regs_live): Allocate local_sets and
1438 cond_local_sets here as arrays of bitmaps previously stored in
1439 bb->local_set and bb->cond_local_set. Use xmalloc instead of
1440 obstack allocated bitmaps.
1441
1442 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
1443
1444 PR target/18380
1445 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
1446 hidden.
1447
1448 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
1449
1450 2004-11-09 Jeff Law <law@redhat.com>
1451
1452 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
1453 argument holding last unvisited block. Start search for
1454 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
1455 (connect_infinite_loops_to_exit): Supply last unvisited block
1456 to flow_dfs_compute_reverse_execute.
1457
1458 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
1459
1460 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
1461 doubles.
1462 (floatunssidf2): Same.
1463 (floatsidf2): Same.
1464 ("extendsfdf2"): New expander.
1465 (*extendsfdf2_fpr): Rename.
1466 (*truncdfsf2_fpr): Same.
1467 (*negdf2_fpr): Same.
1468 (*absdf2_fpr): Same.
1469 (*nabsdf2_fpr): Same.
1470 (*adddf3_fpr): Same.
1471 (*subdf3_fpr): Same.
1472 (*muldf3_fpr): Same.
1473 (*divdf3_fpr): Same.
1474
1475 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
1476 ("spe_fix_truncdfsi2"): Same.
1477 (spe_floatunssidf2): Same.
1478 (spe_floatsidf2): Same.
1479
1480 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1481
1482 PR c/18322
1483 * c-common.c (fname_decl): Don't use line number of decl in
1484 diagnostic.
1485
1486 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
1487
1488 * config/s390/s390-protos.h (s390_pool_operand): Remove.
1489 * config/s390/s390.c (s390_pool_operand): Likewise.
1490 (s390_extra_constraint_str): Handle 'B' constraints.
1491 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
1492 * config/s390/s390.md: Document 'B' constraints.
1493 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
1494 s390_pool_operand to prevent insns with two literal pool
1495 references. Make pattern commutative.
1496 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
1497 'B' constraint instead of s390_pool_operand.
1498
1499 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1500
1501 * tree-cfg.c (create_bb): Remove unnecessary memset.
1502
1503 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1504
1505 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
1506 (thread_block): Call flush_pending_stmt instead of
1507 copy_phis_to_block.
1508
1509 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1510
1511 * loop-iv.c (iv_number_of_iterations): Make it static.
1512 * cfgloop.h: Remove the corresponding prototype.
1513
1514 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1515
1516 * function.c (combine_temp_slots, assign_parms,
1517 expand_pending_sizes): Make them static.
1518 * tree.h: Remove the corresponding prototypes.
1519
1520 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1521
1522 * emit-rtl.c (copy_most_rtx): Remove.
1523 * rtl.h: Remove the corresponding prototype.
1524
1525 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1526
1527 * cfgloop.c (flow_loops_update): Remove.
1528 * cfgloop.h: Remove the corresponding prototype.
1529
1530 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1531
1532 * conflict.c (mark_reg, conflict_graph_compute): Remove.
1533 * basic-block.h: Remove the prototype for
1534 conflict_graph_compute.
1535
1536 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1537
1538 * tree-if-conv.c (add_to_dst_predicate_list): Change the
1539 second argument to basic_block.
1540 (tree_if_convert_cond_expr): Update call sites.
1541
1542 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1543
1544 * fold-const.c (pedantic_non_lvalue): Make it static.
1545 * tree.h: Remove the corresponding prototype.
1546
1547 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1548
1549 * optabs.c (prepare_operand): Make it static.
1550 * optabs.h: Remove the corresponding prototype.
1551
1552 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1553
1554 * reload1.c (reloads_conflict, gen_reload): Make them static.
1555 * reload.h: Remove the corresponding prototypes.
1556
1557 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1558
1559 * reload.c (refers_to_mem_for_reload_p,
1560 refers_to_regno_for_reload_p): Make them static.
1561 * reload.h: Remove the corresponding prototypes.
1562
1563 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
1564 Eric Botcazou <ebotcazou@libertysurf.fr>
1565
1566 PR target/18230
1567 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
1568 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
1569 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
1570 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
1571 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
1572 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
1573 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
1574 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
1575 MODE_VECTOR_INT modes.
1576 (sparc_extra_constraint_check): Add new constraint 'Y'.
1577 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
1578 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
1579 (V64): New mode macro for 64-bit modes.
1580 (movsf): Use V32 for mode instead of SF.
1581 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
1582 alongside 'G' constraint.
1583 (movdf): Use V64 for mode instead of DF.
1584 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
1585 of DF. Add 'Y' constraint alongside 'G' constraint.
1586 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
1587 instead of DF.
1588
1589 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
1590
1591 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
1592 integer NEG and ABS.
1593 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
1594 ("*negdi2_31"): Reimplement using a splitter.
1595 ("*negdi2_cc", "*negdi2_cconly"): New insns.
1596 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
1597 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
1598 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
1599 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
1600 ("*absdi2_cc", "*absdi2_cconly"): New insns.
1601 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
1602 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
1603 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
1604 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
1605 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
1606 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
1607 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
1608 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
1609 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
1610
1611 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
1612
1613 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
1614 when eliminating an UNSPEC_CMPINT.
1615 (s390_secondary_input_reload_class): Fix test for CC register reload.
1616 (s390_secondary_output_reload_class): Likewise.
1617 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
1618 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
1619 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
1620 insn patterns with splitters.
1621
1622 2004-11-09 David Edelsohn <edelsohn@gnu.org>
1623
1624 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
1625 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
1626
1627 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1628
1629 * tree-phinodes.c (phi_reverse): New.
1630 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
1631 Use it.
1632 * tree-flow.h: Add a prototype for phi_reverse.
1633
1634 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1635
1636 * tree-ssa-loop-ivopts.c: Fix a comment typo.
1637
1638 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
1639
1640 PR pch/14940
1641 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
1642 definitions.
1643
1644 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1645
1646 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
1647 instead of "arg" in diagnostics.
1648
1649 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1650
1651 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
1652 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
1653 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
1654 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
1655 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
1656 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
1657 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
1658 config/iq2000/iq2000.c, config/m32r/m32r.c,
1659 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
1660 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
1661 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
1662 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
1663 config/sh/symbian.c, config/stormy16/stormy16.c,
1664 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
1665 and %> as appropriate. Use %' as apostrophe in diagnostics where
1666 applicable. Use %< and %> in place of '' quotes where applicable.
1667 Use %qs in place of %<%s%>. Consistently quote __builtin function
1668 names.
1669
1670 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
1671
1672 * gdbinit.in (pbb, pbm): New macros.
1673
1674 2004-11-08 Jeff Law <law@redhat.com>
1675
1676 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
1677 implementing it inline.
1678
1679 * cfganal.c (find_edge): Search pred->succs or succ->preds,
1680 whichever is shorter.
1681
1682 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1683
1684 * passes.c (rest_of_handle_jump): Remove dead code.
1685
1686 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1687
1688 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
1689 the last used element in the worklist.
1690
1691 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1692
1693 * tree-inline.c (remap_save_expr): Make it static.
1694 * tree-inline.h: Remove the corresponding prototype.
1695
1696 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1697
1698 * tree-ssa-loop-niter.c (upper_bound_in_type,
1699 lower_bound_in_type): Make them static.
1700 * tree.h: Remove the corresponding prototypes.
1701
1702 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1703
1704 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
1705 static.
1706 * tree-ssa-live.h: Remove the corresponding prototypes.
1707
1708 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1709
1710 * tree-if-conv.c (tree_if_conversion): Make it static.
1711 * tree-flow.h: Remove the corresponding prototype.
1712
1713 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1714
1715 * tree-ssa-operands.c (build_ssa_operands): Make it static.
1716 * tree-flow.h: Remove the corresponding prototype.
1717
1718 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
1719
1720 PR tree-opt/18299
1721 * tree-inline.c (copy_body_r): Change "t = t" to empty
1722 statement instead of "t".
1723
1724 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1725
1726 * modulo-sched.c (create_partial_schedule,
1727 free_partial_schedule, reset_partial_schedule,
1728 ps_add_node_check_conflicts, rotate_partial_schedule): Make
1729 them static.
1730
1731 2004-11-08 Richard Henderson <rth@redhat.com>
1732
1733 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
1734 the end of a page.
1735
1736 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1737
1738 * sched-deps.c (add_insn_mem_dependence): Make it static.
1739 * sched-int.h: Remove the corresponding prototypes.
1740
1741 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1742
1743 * flow.c (allocate_bb_life_data): Make it static.
1744 * basic-block.h: Remove the corresponding prototype.
1745
1746 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1747
1748 * calls.c (split_complex_values, split_complex_types): Make
1749 them static.
1750 * expr.h: Remove the corresponding prototypes.
1751
1752 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
1753
1754 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
1755 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
1756
1757 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1758
1759 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
1760 statements that always trigger.
1761
1762 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1763
1764 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
1765 tree-scalar-evolution.c, tree-ssa-loop-im.c,
1766 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
1767 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
1768 appropriate.
1769
1770 2004-11-08 Ben Elliston <bje@au.ibm.com>
1771
1772 * cgraph.h (cgraph_calls_p): Remove.
1773 * cgraph.c (cgraph_calls_p): Likewise.
1774
1775 * varray.h (varray_copy): Remove.
1776 * varray.c (varray_copy): Likewise.
1777
1778 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
1779
1780 PR target/18269
1781 * config/darwin.c (machopic_indirect_data_reference):
1782 Call gen_macho_high and gen_macho_low instead of
1783 checking the mode and calling gen_macho_high_di directly.
1784 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1785 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
1786 to darwin.md.
1787 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
1788 load_macho_picbase, macho_low, macho_high): Removed.
1789 (builtin_setjmp_receiver): Call gen_macho_high and
1790 gen_macho_low instead of checking the mode and calling
1791 gen_macho_high_di directly.
1792 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
1793 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
1794 Moved from rs6000.md.
1795 (macho_high): New expander.
1796 (macho_high_si): Renamed version of macho_high from rs6000.md.
1797 (macho_low): New expander.
1798 (macho_low_si): Renamed version of macho_low from rs6000.md.
1799 (load_macho_picbase): New expander.
1800 (load_macho_picbase_si): Renamed version of load_macho_picbase
1801 from rs6000.md.
1802 (macho_correct_pic): New expander.
1803 (macho_correct_pic_si): Renamed version of macho_correct_pic
1804 from rs6000.md.
1805
1806 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
1807
1808 * c-decl.c (finish_struct): Use complete sentences for diagnostic
1809 for structures or unions with no members or named members.
1810
1811 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
1812
1813 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
1814 taking address of bit-field by assertion.
1815
1816 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1817
1818 * config/s390/s390.md (attribute "op_type"): Default to "NN".
1819 (attribute "atype"): Default to "agen".
1820 (attribute "length"): Default to 6.
1821 (define_asm_attibutes): Remove.
1822 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
1823 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
1824 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
1825 Do not set type attribute to "cs" where already default.
1826 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
1827 "*negdi2_31"):
1828 Do not set type attribute to "other" where already default.
1829 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
1830 "*strlendi", "*strlensi",
1831 "*movmem_long_64", "*movmem_long_31",
1832 "*clrmem_long_64", "*clrmem_long_31",
1833 "*cmpmem_long_64", "*cmpmem_long_31",
1834 "*cmpint_si", "*cmpint_di",
1835 "addti3", "*adddi3_31z", "*adddi3_31",
1836 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
1837 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
1838 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
1839 "*pool_entry", "pool_align", "pool_section_start",
1840 "pool_section_end", "main_pool", "reload_base_31", "pool"):
1841 Do not set op_type attribute to "NN" where already default.
1842 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
1843 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
1844 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
1845 Do not set atype attribute to "agen" where already default.
1846 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
1847
1848 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
1849
1850 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
1851
1852 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
1853
1854 PR target/16830
1855 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
1856 R3000 and R4000 macros on IRIX.
1857
1858 2004-11-06 Andreas Schwab <schwab@suse.de>
1859
1860 PR target/16286
1861 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
1862 __pixel.
1863
1864 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1865
1866 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
1867
1868 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1869
1870 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
1871 matches no insns already matched by other reservations.
1872 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
1873 matches no insns already matched by other reservations.
1874 ("x_ss"): Remove, replace by ...
1875 ("x_cs"): ... this new reservation. Check type instead of op_type.
1876 Update bypasses to use x_cs instead of x_ss.
1877 ("x_nn"): Remove, replace by ...
1878 ("x_other"): ... this new reservation. Check type instead of op_type.
1879 Add x_other and x_branch to bypasses.
1880 ("x_vs"): New reservation.
1881 * config/s390/s390.md (attribute "type"): Default according to op_type.
1882 ("*execute"): Set type to "cs".
1883
1884 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1885
1886 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
1887 if we are in GIMPLE.
1888
1889 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
1890
1891 PR rtl-optimization/17933
1892 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
1893 (covers_regno_p): New function. Handle SETs of PARALLEL,
1894 and defer the rest to...
1895 (covers_regno_no_parallel_p): New function.
1896
1897 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1898
1899 * config/sparc/sparc.c (function_arg_record_value_1): Skip
1900 fields with zero length.
1901 (function_arg_record_value_2): Likewise.
1902 (function_arg_record_value_3): Use smallest_mode_for_size
1903 instead of mode_for_size.
1904 (function_arg_union_value): Return naked register for unions
1905 with zero length.
1906
1907 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1908
1909 * config/sparc/sparc.c (scan_record_type): Handle vector types.
1910 (function_arg_slotno): Handle vector types specially.
1911 (function_arg_record_value_1): Split fields with vector type and
1912 BLKmode into their subparts.
1913 (function_arg_record_value_2): Likewise. Be prepared to handle
1914 more than 2 registers per field.
1915 (function_arg_union_value): Increment regno inside the loop.
1916 (function_arg_vector_value): New function.
1917 (function_arg): Use it to split fields with vector type and
1918 BLKmode into their subparts and build a PARALLEL. Treat
1919 other vector types like floats.
1920 (function_value): Likewise.
1921 (sparc_pass_by_reference): Handle vector types.
1922 (sparc_return_in_memory): Likewise.
1923
1924 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1925
1926 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
1927 statement that never triggers.
1928
1929 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1930
1931 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
1932 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
1933 ("x_fdivd"): Use also for fsqrtd type.
1934 ("x_fdivs"): Use also for fsqrts type.
1935 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
1936 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
1937 ("fix_truncdfsi2_ibm"): Set type to "other".
1938 ("floatdidf2", "floatdisf2"): Do not clobber CC.
1939 ("floatsidf2", "floatsidf2_ieee"): Likewise.
1940 ("floatsisf2", "floatsisf2_ieee"): Likewise.
1941 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
1942 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
1943 instead of LRER.
1944 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
1945 ("sqrtdf2"): Set type to "fsqrtd".
1946 ("sqrtsf2"): Set type to "fsqrts".
1947
1948 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1949
1950 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
1951 pointer to the last PHI node in the new PHI chain.
1952
1953 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
1954
1955 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
1956 for non-PIC TLS_MODEL_INITIAL_EXEC case.
1957
1958 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1959
1960 * expmed.c: Fix a comment typo.
1961
1962 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1963
1964 PR target/18106
1965 * config/i386/cygming.h
1966 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
1967
1968 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1969
1970 * config/sh/sh4a.md: Fix copyright.
1971
1972 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1973
1974 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
1975 with GCC.
1976
1977 2004-11-05 David Edelsohn <edelsohn@gnu.org>
1978
1979 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
1980 when carry not used. Suggested by Torbjorn Granlund.
1981
1982 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
1983 operand[1] unnecessarily. Suggested by Eric Christopher.
1984 (rs6000_adjust_cost): Increase latency of store to wider load.
1985 (rs6000_rtx_costs): mulli only allows 16-bit constants.
1986
1987 2004-11-05 Stan Shebs <shebs@apple.com>
1988
1989 * config/rs6000/rs6000.c (machopic_output_stub): Output
1990 ldu instead of lwzu for 64-bit stubs.
1991
1992 2004-11-05 Richard Henderson <rth@redhat.com>
1993
1994 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
1995 size 2 with BWX.
1996 (alpha_expand_unaligned_store): Likewise.
1997
1998 2004-11-05 Richard Henderson <rth@redhat.com>
1999
2000 * expmed.c (extract_force_align_mem_bit_field): New.
2001 (extract_split_bit_field): Call it.
2002
2003 2004-11-05 Richard Henderson <rth@redhat.com>
2004
2005 * ia64.md (UNSPEC_SHRP): New.
2006 (dshift_count_operand): New.
2007 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
2008 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
2009
2010 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
2011
2012 * c-typeck.c (output_init_element): Return early if value is
2013 error_mark_node.
2014
2015 2004-11-05 James E Wilson <wilson@specifixinc.com>
2016
2017 * invoke.texi (-fno-guess-branch-probability): Rewrite.
2018
2019 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
2020 1 to UNSPEC_GR_SPILL.
2021
2022 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
2023
2024 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
2025 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
2026
2027 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
2028
2029 * bitmap.h (enum bitmap_bits): Remove.
2030 (bitmap_operation): Remove.
2031 (bitmap_and, bitmap_and_into, bitmap_and_compl,
2032 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
2033 bitmap_xor_into): Prototype.
2034 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
2035 (bitmap_operation): Remove.
2036 (bitmap_and, bitmap_and_into, bitmap_and_compl,
2037 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
2038 bitmap_xor_into): New.
2039 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
2040
2041 PR tree-optimization/18307
2042 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
2043 and ORIG being the same node.
2044
2045 2004-11-04 Geoffrey Keating <geoffk@apple.com>
2046
2047 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
2048 (install-mkheaders): Install the version built for the
2049 host, not for the build machine.
2050 * configure.ac: Always run fixincludes.
2051 (all_outputs): Remove mkheaders.
2052 * configure: Regenerate.
2053 * fixinc.in: Move to fixincludes/.
2054 * mkfixinc.sh: Likewise.
2055 * mkheaders.in: Likewise.
2056 * README-fixinc: Likewise.
2057
2058 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2059
2060 PR target/18263
2061 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
2062 equivalent on the A4.
2063
2064 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
2065
2066 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
2067 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
2068 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
2069 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
2070 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
2071 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
2072 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
2073 doc/trouble.texi: Correct end-of-sentence markup and markup of
2074 "etc.", "e.g." and "i.e.". Use @code in various places where
2075 appropriate.
2076
2077 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
2078
2079 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
2080 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
2081 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
2082 whitespace.
2083
2084 2004-11-04 Mark Mitchell <mark@codesourcery.com>
2085
2086 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
2087 * doc/extend.texi: Document "notshared" attribute.
2088
2089 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2090
2091 * tree-phinodes.c (make_phi_node): Make it static.
2092 * tree.h: Remove the prototypes for make_phi_node.
2093
2094 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2095
2096 * stmt.c (expand_asm, expand_asm_operands): Make them static.
2097 * tree.h: Remove the prototypes for expand_asm and
2098 expand_asm_operands.
2099
2100 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2101
2102 * passes.c (rest_of_compilation): Make it static.
2103 * toplev.h: Remove the prototype for rest_of_compilation.
2104
2105 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2106
2107 * jump.c (cleanup_barriers): Use delete_insn instead of
2108 delete_barrier.
2109 (delete_barrier): Remove.
2110 * rtl.h: Remove the corresponding prototype.
2111
2112 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2113
2114 * expr.c (mostly_zero_p): Make it static.
2115 * tree.h: Remove the prototype for mostly_zeros_p.
2116
2117 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2118
2119 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
2120
2121 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2122
2123 * builtins.c (expand_builtin_return_addr,
2124 expand_builtin_longjmp, expand_builtin_trap): Make them static.
2125 * expr.h: Remove the prototypes for expand_builtin_longjmp and
2126 expand_builtin_trap.
2127 * tree.h: Remove the prototype for expand_builtin_return_addr.
2128
2129 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2130
2131 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
2132 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
2133 with VAL being NULL.
2134
2135 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2136
2137 * cfghooks.c (delete_basic_block): Remove code to truncate
2138 edge vectors.
2139
2140 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
2141
2142 * flow.c (init_propagate_block_info): Change the type of i to
2143 unsigned.
2144
2145 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
2146
2147 PR tree-optimization/18184
2148 * c-typeck.c (comptypes): Do not treat pointers of different
2149 modes or alias-all flags as equivalent.
2150 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
2151
2152 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
2153
2154 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
2155 reference specific C parser files in examples.
2156
2157 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
2158
2159 PR target/15342
2160 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
2161 as OP_INOUT if the instruction is predicated.
2162
2163 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2164
2165 * bitmap.h: Fix a comment typo. Follow spelling conventions.
2166 * tree-vectorizer.c: Fix a comment typo.
2167
2168 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2169
2170 * sdbout.c (SDB_GENERATE_FAKE): Remove.
2171 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
2172 * system.h: Poison SDB_GENERATE_FAKE.
2173 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
2174
2175 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
2176
2177 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
2178
2179 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2180
2181 PR other/18277
2182 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
2183 2004-10-29 patch
2184
2185 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
2186
2187 * predict.c (propagate_freq): Make bitno unsigned. Move
2188 npredecessors update out of loop.
2189
2190 * bitmap.h (bitmap_iterator): Remove word_bit and bit
2191 fields. Rename others.
2192 (bmp_iter_common_next_1, bmp_iter_single_next_1,
2193 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
2194 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
2195 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
2196 bmp_iter_and_next): Remove.
2197 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
2198 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
2199 New.
2200 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
2201 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
2202
2203 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
2204 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
2205 bitmap_and_into, bitmap_ior_into as appropriate.
2206 * except.c (remove_eh_handler): Likewise.
2207 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
2208 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
2209 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
2210 * tree-ssa-live.h (live_merge_and_clear): Likewise.
2211 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
2212 Likewise.
2213
2214 * bitmap.c (bitmap_print): Make bitno unsigned.
2215 * bt-load.c (clear_btr_from_live_range,
2216 btr_def_live_range): Likewise.
2217 * caller-save.c (save_call_clobbered_regs): Likewise.
2218 * cfganal.c (compute_dominance_frontiers_1): Likewise.
2219 * cfgcleanup.c (thread_jump): Likewise.
2220 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2221 * conflict.c (conflict_graph_compute): Likewise.
2222 * ddg.c (add_deps_for_use): Likewise.
2223 * df.c (df_refs_update): Likewise.
2224 * except.c (remove_eh_handler): Likewise.
2225 * flow.c (verify_local_live_at_start, update_life_info,
2226 initialize_uninitialized_subregs, propagate_one_insn,
2227 free_propagate_block_info, propagate_block, find_use_as_address,
2228 reg_set_to_hard_reg_set): Likewise.
2229 * gcse.c (clear_modify_mem_tables): Likewise.
2230 * global.c (global_conflicts, build_insn_chain): Likewise.
2231 * ifcvt.c (dead_or_predicable): Likewise.
2232 * local-alloc.c (update_equiv_regs): Likewise.
2233 * loop.c (load_mems): Likewise.
2234 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
2235 Likewise.
2236 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
2237 Likewise.
2238 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
2239 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
2240 * sched-rgn.c (propagate_deps
2241 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
2242 * tree-dfa.c (dump_dfa_stats
2243 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
2244 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
2245 Likewise.
2246 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
2247 free_temp_expr_table, find_replaceable_exprs): Likewise.
2248 * tree-sra.c (scan_function, scalarize_parms): Likewise.
2249 * tree-ssa-alias.c (init_alias_info,
2250 compute_points_to_and_addr_escape,
2251 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
2252 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
2253 * tree-ssa-live.c (new_tree_live_info, live_worklist,
2254 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
2255 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
2256 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
2257 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
2258 add_call_read_ops): Likewise.
2259 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
2260 * tree-ssa-live.h (num_var_partitions): Return unsigned.
2261
2262 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
2263
2264 PR tree-optimization/18009
2265 * tree-vectorizer.h (enum dr_alignment_support): New type.
2266 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
2267 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
2268 single data_reference (instead of a varray of references).
2269 * tree-vectorizer.c (new_loop_vec_info): Likewise.
2270 (vect_gen_niters_for_prolog_loop): Likewise.
2271 (vect_update_inits_of_drs): Likewise.
2272
2273 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
2274 vect_enhance_data_refs_alignment.
2275 (vect_do_peeling_for_alignment): Likewise.
2276 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
2277 this functionality used to be in vect_analyze_data_refs_alignment.
2278 Also update DR_MISALIGNMENT due to peeling; this functionality used to
2279 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
2280 (vect_analyze_data_refs_alignment): Decision on whether and by how much
2281 to peel moved to vect_enhance_data_refs_alignment. Call
2282 vect_supportable_dr_alignment.
2283
2284 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
2285 (vect_compute_data_refs_alignment): Return bool. Consider return value
2286 of vect_compute_data_ref_alignment and return true/false accordingly.
2287 (vect_enhance_data_refs_alignment): Consider return value of
2288 vect_compute_data_refs_alignment and return true/false accordingly.
2289
2290 (vect_supportable_dr_alignment): New function.
2291 (vectorizable_store): Call vect_supportable_dr_alignment.
2292 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
2293 support checks moved from here to vect_supportable_dr_alignment.
2294
2295 (vect_transform_loop): Avoid 80 columns overflow.
2296
2297 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
2298
2299 * timevar.c (timevar_enable): Change from
2300 static.
2301 (timevar_push): Rename to ...
2302 (timevar_push_1): this and remove the
2303 enabled check.
2304 (timevar_pop): Rename to ...
2305 (timevar_pop_1): this and remove the
2306 enabled check.
2307 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
2308 (timevar_pop): New macro.
2309 (timevar_push): New macro.
2310 (timevar_enable): Declare.
2311
2312 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
2313
2314 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
2315 libgcc for shared libraries.
2316
2317 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2318
2319 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
2320 * config/s390/s390.c (s390_split_access_reg): New function.
2321 (regclass_map): Add access registers.
2322 (get_thread_pointer): Use access register instead of UNSPEC_TP.
2323 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
2324 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
2325 (TP_REGNUM): New define.
2326 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2327 REG_ALLOC_ORDER): Add access registers.
2328 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
2329 CANNOT_CHANGE_MODE_CLASS): Support access registers.
2330 (enum reg_class): Add ACCESS_REGS.
2331 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
2332 (REG_CLASS_FROM_LETTER): Add 't' constraint.
2333 (REGISTER_NAMES): Add access registers.
2334 * config/s390/s390.md (UNSPEC_TP): Remove.
2335 ("*movdi_64"): Add access register alternatives. Provide splitters
2336 to split DImode access register <-> GPR moves into SImode moves.
2337 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
2338 ("movstrictsi"): Likewise.
2339 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
2340 ("set_tp_64", "set_tp_31"): Likewise.
2341 ("*set_tp"): New insn.
2342
2343 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
2344
2345 * tree-phinodes.c (resize_phi_node): Copy only a portion of
2346 the PHI node currently in use.
2347
2348 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
2349
2350 PR tree-opt/18231
2351 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
2352 also.
2353
2354 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
2355
2356 PR tree-optimization/18270
2357 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
2358 abnormal edges, commit all pending stmts on incoming edges.
2359
2360 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2361
2362 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
2363 cause extra costs. Generate canonical RTL.
2364
2365 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
2366
2367 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
2368 (lambda_compute_target_space). Ditto.
2369 * lambda.h (lambda_trans_matrix): Ditto.
2370 (lambda_linear_expression): Ditto.
2371 (lambda_body_vector): Ditto.
2372 (lambda_loopnest): Ditto.
2373 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
2374 update comments, and remove pointless addition of 0.
2375 (linear_transform_loops): Update comments.
2376
2377 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
2378
2379 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
2380 CEIL_MOD_EXPR.
2381
2382 2004-11-03 Jeff Law <law@redhat.com>
2383
2384 * predict.c (struct block_info_def): Kill "tovisit" field.
2385 (propagate_freq): Accept new "tovisit" parameter. Change
2386 read/write access methods for "tovisit" to check the "tovisit"
2387 bitmap instead of a bit in block_info_def.
2388 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
2389 it to propagate_freq.
2390
2391 * stmt.c (expand_case): Speed up code to detect duplicate case
2392 label targets and count unique case label targets.
2393
2394 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
2395
2396 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
2397
2398 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
2399
2400 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
2401
2402 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
2403
2404 * tree-cfg.c (find_taken_edge): Abort if we are given a
2405 statement that is neither COND_EXPR nor SWITCH_EXPR.
2406
2407 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
2408
2409 * fold-const.c (fold): Reassociate also (x - mult) + mult and
2410 (mult - x) + mult. Cast operands of expression after applying
2411 distributive law to the correct types. Apply distributive law
2412 to a * c - b * c for all non-float types.
2413
2414 2004-11-02 Geoffrey Keating <geoffk@apple.com>
2415
2416 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
2417 because we don't want to run them now; instead, set them to
2418 stmp-install-fixproto or stmp-install-fixinc.
2419 * Makefile.in (stmp-install-fixproto): New.
2420 (stmp-install-fixinc): New.
2421 * configure: Regenerate.
2422
2423 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
2424
2425 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
2426 of bitmap_xor.
2427
2428 2004-11-02 Ziemowit Laski <zlaski@apple.com>
2429
2430 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
2431 (c_types_compatible_p): Move function definition...
2432 * c-objc-common.c (c_types_compatible_p): ...here.
2433 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
2434 c-lang.c.
2435
2436 2004-11-02 Steven Bosscher <stevenb@suse.de>
2437
2438 * cfgloop.h (struct loop): Update comment.
2439 * cse.c (cse_main): Remove obsolete comment.
2440
2441 * expr.h (gen_cond_trap): Move prototype under functions provided
2442 by optabs.c.
2443 (canonicalize_condition, get_condition): Move to...
2444 * rtl.h (canonicalize_condition, get_condition): ...here.
2445 (branch_target_load_optimize): Add comment that this function is
2446 in bt-load.c.
2447 * loop.c (canonicalize_condition, get_condition): Move to...
2448 * rtlanal.c (canonicalize_condition, get_condition): ...here.
2449 * sched-deps.c (get_condition): Rename to sched_get_condition.
2450 (add_dependence): Update this caller.
2451
2452 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
2453
2454 PR tree-opt/16808
2455 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
2456 that the vops get marked for renaming.
2457
2458 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
2459
2460 * config/s390/s390.md ("movcc"): Set type attribute.
2461
2462 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
2463
2464 * tree-phinodes.c (add_phi_arg): Add an assertion that the
2465 edge already exists.
2466
2467 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
2468
2469 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
2470 element that's being removed.
2471
2472 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
2473
2474 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
2475 arguments using PENDING_STMT.
2476 (thread_block): Call copy_phis_to_block after redirecting an
2477 edge.
2478
2479 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
2480
2481 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
2482 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
2483 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
2484 (bitmap_ior_and_compl_into): Produce bool.
2485 (bitmap_union_of_diff): Rename to ...
2486 (bitmap_ior_and_compl): ... here. Produce bool.
2487 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
2488 bitmap_operation directly.
2489 (bitmap_union_of_diff): Rename to ...
2490 (bitmap_ior_and_compl): ... here. Return bool, use
2491 bitmap_operation directly.
2492 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
2493 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
2494 * global.c (modify_bb_reg_pav): Likewise.
2495
2496 * bitmap.h (bitmap_equal_p): Return bool.
2497 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
2498 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
2499 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
2500 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
2501 bitmap_intersect_compl_p.
2502 * ifcvt (dead_or_predicable): Likewise.
2503
2504 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
2505
2506 PR rtl-optimization/17104
2507 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
2508 loads in zero_extend.
2509
2510 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
2511
2512 PR debug/18242
2513 * toplev.c (debug_type_names): Remove "dwarf-1".
2514
2515 2004-11-02 Ben Elliston <bje@au.ibm.com>
2516
2517 * timevar.h (timevar_get): Remove.
2518 * timevar.c (timevar_get): Remove unused function.
2519
2520 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
2521
2522 * doc/include/texinfo.tex: Update from Texinfo CVS.
2523
2524 2004-11-02 Ben Elliston <bje@au.ibm.com>
2525
2526 * cppdefault.h (cpp_SYSROOT): Remove.
2527 * cppdefault.c (cpp_SYSROOT): Likewise.
2528
2529 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
2530
2531 PR tree-optimization/16447
2532 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
2533 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
2534 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
2535 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
2536 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
2537 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
2538 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
2539 (identical_copies_p): New. Return true is two copies are the same.
2540 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
2541 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
2542 for a basic block.
2543 (perform_edge_inserts): New. Determine what to do with all stmts that
2544 have been inserted on edges.
2545 (remove_ssa_form): Analyze and commit edges from here.
2546
2547 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
2548
2549 PR bootstrap/18232
2550 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
2551 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
2552 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
2553 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
2554
2555 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
2556
2557 PR c/18239
2558 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
2559 parameter declarations.
2560
2561 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
2562
2563 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
2564 (s390_secondary_input_reload_class)
2565 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
2566 register.
2567 (s390_expand_cmpmem): Enable cmpmem implementation.
2568 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
2569 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
2570 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
2571 * config/s390/s390.md ("movcc"): New insn pattern.
2572 * doc/md.texi: Document 'c' constraint for s390.
2573
2574 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
2575
2576 PR c++/18064
2577 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
2578 extension.
2579
2580 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
2581
2582 Fix PR tree-optimization/17672
2583 Fix PR tree-optimization/18168
2584
2585 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
2586 assert test.
2587 (gcc_tree_to_linear_expression): Add extra to existing constant.
2588 (depth_of_nest): Factor out function used in various places.
2589 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
2590 functional changes.
2591 (find_induction_var_from_exit_cond): Stop guessing, and just
2592 get the right answer :).
2593 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
2594 Print out message about result of attempt to create perfect nest.
2595 (lbv_to_gcc_expression): Add type argument, use it to do math
2596 and induction variable creation.
2597 (lle_to_gcc_expression): Ditto.
2598 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
2599 oldiv. Pass type argument to lle_to_gcc_expression and
2600 lbv_to_gcc_expression.
2601 Reset number of iterations after transformation.
2602 (perfect_nestify): Remove useless pre-allocation, and cleanup
2603 a small amount.
2604
2605 * tree-data-ref.c (build_classic_dist_vector): Return false for
2606 dependences completely outside of the loop nest we asked about.
2607 (build_classic_dir_vector): Ditto.
2608 (compute_data_dependences_for_loop): Only add dependence relations
2609 inside the loop we asked about.
2610
2611 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
2612 Compute immediate uses.
2613
2614 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
2615
2616 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
2617
2618 * tree-cfg.c (thread_jumps): Fix a comment typo.
2619
2620 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
2621
2622 * tree-cfg.c (thread_jumps): Fix a comment typo.
2623
2624 2004-10-31 Nicolas Pitre <nico@cam.org>
2625
2626 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
2627 values smaller than 2^32.
2628
2629 2004-10-31 Jeff Law <law@redhat.com>
2630
2631 * cfgloop.h (struct loop): Remove unused "nodes" field.
2632 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
2633 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
2634 instead of calling flow_bb_inside_loop_p for every basic block
2635 in the function.
2636 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
2637
2638 2004-10-31 Graham Stott <graham.stott@btinternet.com>
2639
2640 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
2641 INT_5_BITS instead of VAL_5_BITS_P.
2642
2643 2004-10-31 Roger Sayle <roger@eyesopen.com>
2644
2645 PR middle-end/14521
2646 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
2647 for consistent quoting in diagnostic messages.
2648 (expand_call_inline): Likewise.
2649 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2650 * tree-ssa.c (warn_uninitialized_var): Likewise.
2651 (warn_uninitialized_phi): Likewise.
2652
2653 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
2654
2655 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
2656 mode check.
2657
2658 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
2659
2660 * c-common.c: Fix a comment typo.
2661
2662 2004-10-31 Jason Merrill <jason@redhat.com>
2663
2664 PR middle-end/17526
2665 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
2666 aggregate types that are not BLKmode.
2667
2668 2004-10-30 Ziemowit Laski <zlaski@apple.com>
2669
2670 * c-common.h (objc_lookup_ivar): Add second parameter to
2671 prototype.
2672 * c-typeck.c (build_external_ref): After looking up symbol,
2673 pass it to objc_lookup_ivar() to decide whether it or the
2674 ivar should be used, rather than deciding the issue locally.
2675 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
2676 which is simply returned in the non-ObjC case.
2677
2678 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
2679
2680 * sdbout.c (sdbout_symbol): Do not output type .def statements
2681 for builtin types.
2682
2683 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2684
2685 * c-common.c (catenate_strings): New.
2686 (c_parse_error): Use it. Don't over-escape.
2687
2688 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
2689
2690 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
2691 modify the for loop expressions for it. Remove unnecessary casts.
2692 (sh_expand_prologue): Declare reg as unsigned.
2693 (sh_gimplify_va_arg_expr): Initinalize lab_over.
2694 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
2695
2696 2004-10-30 Geoffrey Keating <geoffk@apple.com>
2697
2698 * doc/invoke.texi (Darwin Options): Improve description of
2699 how the subtype is chosen.
2700
2701 2004-10-30 Roger Sayle <roger@eyesopen.com>
2702
2703 PR middle-end/18096
2704 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
2705 the stack adjustment, "size", is valid for Pmode. If the stack
2706 frame is too large, generate a trap insn and issue a warning.
2707
2708 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
2709
2710 * tree-ssa-dom.c: Fix comment typos.
2711
2712 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
2713
2714 * config/sh/sh.c (prepare_move_operands): Use operands[0]
2715 for the output rtl if no_new_pseudos is set. Remove redundant
2716 line.
2717
2718 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
2719
2720 PR c/16666
2721 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
2722 determining whether to copy parameter types from a previous
2723 prototype declaration.
2724
2725 2004-10-29 Roger Sayle <roger@eyesopen.com>
2726
2727 PR rtl-optimization/17581
2728 * cselib.c (cselib_process_insn): The last instruction of a libcall
2729 block, with the REG_RETVAL note, should be considered in the libcall.
2730 * gcse.c (do_local_cprop): Allow constants to be propagated outside
2731 of libcall blocks.
2732 (adjust_libcall_notes): Use simplify_replace_rtx instead of
2733 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
2734
2735 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
2736
2737 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
2738
2739 2004-10-29 Jeff Law <law@redhat.com>
2740
2741 * tree-ssa-dom.c (struct edge_info): New structure holding
2742 edge equivalences and edge redirection information.
2743 (get_eq_expr_value, record_dominating_conditions): Kill.
2744 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
2745 Call record_edge_info.
2746 (allocate_edge_info, free_edge_info): New.
2747 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
2748 rather than cprop_into_phis. Free all edge infos before threading
2749 jumps.
2750 (thread_across_edge): Allocate new edge info structures as needed
2751 and store the redirection target into the edge info structure
2752 instead of the edge's AUX field.
2753 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
2754 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
2755 Revamp code which finds and records equivalences associated with
2756 edges to use saved data in the edge_info structure.
2757 (record_equivalencs_from_phis): Similarly.
2758 (dom_opt_finalize_block): Revamp code which finds and records
2759 equivalences associated with edges to use saved data in the
2760 edge_info structure.
2761 (build_and_record_new_cond): New function.
2762 (record_conditions): Use build_and_record_new_cond to record
2763 dominating conditions.
2764 (record_edge_info): New function.
2765 (record_range): Tighten test for conditions which create
2766 useful range records.
2767
2768 2004-10-29 Geoffrey Keating <geoffk@apple.com>
2769
2770 * config/i386/darwin.h (ASM_SPEC): Simplify.
2771 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2772 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
2773 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2774 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
2775 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
2776 in all cases. Pass the right -arch or -arch_only based on -mcpu.
2777 (ASM_SPEC): Handle -force_cpusubtype_ALL.
2778 * doc/invoke.texi (Darwin Options): Improve documentation for
2779 Darwin linker (and libtool) switches.
2780
2781 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
2782
2783 2004-10-29 Stan Shebs <shebs@apple.com>
2784
2785 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
2786
2787 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2788
2789 * tree-phinodes.c (allocate_phi_node): New.
2790 (make_phi_node, resize_phi_node): Use it.
2791
2792 2004-10-29 David Edelsohn <edelsohn@gnu.org>
2793
2794 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
2795 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
2796
2797 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2798
2799 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
2800 the whole PHI node.
2801 * tree.h (tree_phi_node): Tell the garbage collector to chase
2802 num_args arguments.
2803
2804 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
2805
2806 * opts.c (decode_options): Lower the crossjump threshold for -Os.
2807
2808 2004-10-29 Diego Novillo <dnovillo@redhat.com>
2809
2810 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
2811
2812 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
2813
2814 * bitmap.h (bitmap_empty_p): New.
2815 (bitmap_and, bitmap_and_into, bitmap_and_compl,
2816 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
2817 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
2818 operation macros.
2819 (bitmap_ior_and_compl): Rename to ...
2820 (bitmap_ior_and_compl_into): ... here.
2821 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
2822 (bitmap_ior_and_compl): Rename to ...
2823 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
2824 flag.
2825 (bitmap_union_of_diff): Use renamed bitmap functions.
2826 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
2827 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
2828 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2829 * df.c (df_bb_rd_local_compute)
2830 * flow.c (calculate_global_regs_live,
2831 init_propagate_block_info): Likewise.
2832 * ifcvt.c (find_if_case_1, find_if_case_2,
2833 dead_or_predicable): Likewise.
2834 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
2835 reset_conflicts, conflicts_between_webs): Likewise.
2836 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
2837 detect_web_parts_to_rebuild): Likewise.
2838 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
2839 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
2840 * tree-sra.c (decide_instantiations): Likewise.
2841 * tree-ssa-alias.c (create_name_tags,
2842 merge_pointed_to_info): Likewise.
2843 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2844 * tree-ssa-loop-im.c (move_computations): Likewise.
2845 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
2846 * tree-ssa-pre.c (fini_pre): Likewise.
2847 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
2848 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
2849 * tree-vectorizer.c (vectorize_loops): Likewise.
2850
2851 2004-10-29 Nick Clifton <nickc@redhat.com>
2852
2853 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
2854 adding the PIC register to the fixed_regs array, also add it
2855 to the call_used_regs array.
2856
2857 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
2858
2859 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
2860 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
2861
2862 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
2863
2864 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
2865 (rewrite_blocks): Modify argument, and use it to decide which
2866 function to call.
2867 (rewrite_def_def_chains): Call rewrite_blocks with true here.
2868 (rewrite_into_ssa): and call it with false here.
2869
2870 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2871
2872 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
2873 triggers into gcc_assert.
2874
2875 2004-10-28 Diego Novillo <dnovillo@redhat.com>
2876
2877 PR tree-optimization/16728
2878 * tree-flow.h (get_ptr_info): Declare.
2879 * tree-ssa-alias.c (get_ptr_info): Make extern.
2880 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
2881 alias information.
2882
2883 2004-10-28 Stan Shebs <shebs@apple.com>
2884
2885 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
2886 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
2887 case.
2888
2889 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
2890
2891 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
2892 prevent their later unnecessary registration.
2893 (mf_build_check_statement_for): Remove "addr" argument, and
2894 related "__mf_value" generated code. Update callers.
2895 (mf_decl_eligible_p): New function, factored from mx_register_decls.
2896 (mx_register_decls): Call it.
2897 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
2898 to restore support for complex nested expressions.
2899 (mudflap_enqueue_decl): Simplify. Move registration call emission
2900 out ...
2901 (mudflap_finish_file): ... to here.
2902 (mudflap_enqueue_constant): Remove dump code.
2903
2904 2004-10-28 Zack Weinberg <zack@codesourcery.com>
2905
2906 PR 18199
2907 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
2908 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
2909 (dbxout_finish_complex_stabs): Update to match.
2910 (dbxout_symbol_location): Call emit_pending_bincls_if_required
2911 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
2912 dbxout_begin_complex_stabs_noforcetext.
2913 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
2914 N_GSYM, using new SYM parameter. Correct logic for special
2915 cases for N_FUN.
2916
2917 * varasm.c (function_section): If DECL is NULL_TREE, don't try
2918 to do anything else. Do not call get_insns if cfun or
2919 cfun->emit are NULL.
2920
2921 2004-10-28 Adam Nemet <anemet@lnxw.com>
2922
2923 PR middle-end/18160
2924 * c-typeck.c (c_mark_addressable): Issue error if address of a
2925 register variable is taken. Use "%qD" to print DECL_NAME.
2926
2927 2004-10-28 Diego Novillo <dnovillo@redhat.com>
2928
2929 * opts.c (decode_options): Don't run PRE at -Os.
2930
2931 2004-10-28 Richard Henderson <rth@redhat.com>
2932
2933 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
2934 zero in the conditional.
2935 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
2936
2937 2004-10-28 Richard Henderson <rth@redhat.com>
2938
2939 * cse.c (memory_extend_rtx): Remove.
2940 (cse_main): Don't set it.
2941 (cse_insn): Use a local buffer instead.
2942
2943 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
2944
2945 * profile.c (branch_prob): Call to init_edge_profiler added.
2946 * rtl-profile.c (rtl_init_edge_profiler): New function.
2947 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
2948 call to safe_insert_insn_on_edge.
2949 (rtl_profile_hooks): rtl_init_edge_profiler added.
2950 * tree-profile.c (tree_init_edge_profiler): New function.
2951 (tree_profile_hooks): tree_init_edge_profiler added.
2952 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
2953
2954 2004-10-28 Nick Clifton <nickc@redhat.com>
2955
2956 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
2957 emit_jump_insn() to generate the return instruction.
2958
2959 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2960
2961 * tree-phinodes.c: Remove trailing whitespace.
2962
2963 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2964
2965 * tree-ssa-loop-ivopts.c: Fix a comment typo.
2966 * doc/invoke.texi: Fix a typo.
2967
2968 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2969
2970 * Makefile.in (OBJS-common): Remove duplicates.
2971
2972 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2973
2974 * lambda-code.c (nestify_update_pending_stmts): Remove.
2975 (perfect_nestify): Use flush_pending_stmts instead of
2976 nestify_update_pending_stmts.
2977 * tree-cfg.c (tree_make_forwarder_block): Use
2978 flush_pending_stmts.
2979 * tree-flow.h: Add a prototype for flush_pending_stmts.
2980 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
2981 Use flush_pending_stmts.
2982 (lv_update_pending_stmts): Remove.
2983 (tree_ssa_loop_version): Use flush_pending_stmts instead of
2984 lv_update_pending_stmts.
2985 * tree-ssa.c (flush_pending_stmts): New.
2986
2987 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
2988
2989 PR target/15286
2990 * final.c (alter_subreg): Compute correct offset to use with
2991 paradoxical SUBREGs of memory operands.
2992 * recog.c (general_operand): Allow paradoxical SUBREGs of
2993 memory operands after reload.
2994 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
2995 has failed when passed a hard register.
2996
2997 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
2998
2999 * function.c (assign_parm_setup_block): Handle parallels correctly.
3000
3001 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
3002
3003 * final.c (shorten_branches): Initialize flags structure.
3004
3005 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
3006
3007 * tree.c (int_cst_node, int_cst_hash_table): New variables.
3008 (init_ttree): Initialize them.
3009 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
3010 (build_int_cst_wide): Use hash table for oversized integers.
3011
3012 2004-10-28 Nick Clifton <nickc@redhat.com>
3013
3014 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
3015 begin_label.
3016
3017 2004-10-27 Richard Henderson <rth@redhat.com>
3018
3019 PR middle-end/18163
3020 * expr.c (emit_group_load): Don't go force temporary for memory
3021 or concat source.
3022 (emit_group_store): Similarly.
3023
3024 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
3025
3026 PR other/18186
3027 * common.opt (--param): Fix spelling of parameter.
3028
3029 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
3030
3031 PR tree-opt/17529
3032 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
3033 Don't fold statement.
3034 <case ASM_EXPR>: Fold the statement.
3035
3036 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
3037
3038 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
3039 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
3040
3041 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
3042
3043 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
3044 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
3045 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
3046 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
3047
3048 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
3049
3050 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
3051 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
3052 punctuation outside quotes.
3053
3054 2004-10-27 David Mosberger <davidm@hpl.hp.com>
3055 James E Wilson <wilson@specifixinc.com>
3056
3057 PR target/13158
3058 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
3059 sibcall alloc instruction.
3060 (process_set): Handle sibcall alloc instruction.
3061
3062 2004-10-27 Geoffrey Keating <geoffk@apple.com>
3063
3064 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
3065 SUBTARGET_ATTRIBUTE_TABLE.
3066 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
3067 (SUBTARGET_ATTRIBUTE_TABLE): Define.
3068 * config/darwin.c (darwin_handle_weak_import_attribute): New.
3069 (HAVE_DEAD_STRIP): Delete.
3070 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
3071 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
3072 Prototype.
3073
3074 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
3075
3076 * config/darwin.h (GTHREAD_USE_WEAK): Define.
3077
3078 2004-10-28 Ben Elliston <bje@au.ibm.com>
3079
3080 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
3081 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
3082 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
3083 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
3084 * tree-sra.c: Include "params.h".
3085 (decide_block_copy): Use new parameters.
3086 * doc/invoke.texi (Optimize Options): Document new SRA pass
3087 parameters sra-max-structure-size and sra-field-structure-ratio.
3088
3089 2004-10-27 Nicolas Pitre <nico@cam.org>
3090
3091 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
3092
3093 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
3094
3095 PR tree-optimization/18048
3096 * fold-const.c (try_move_mult_to_index): New function.
3097 (fold): Use try_move_mult_to_index.
3098 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
3099 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
3100 an all-ones unsigned constant without extra bits.
3101 * tree.c (build_low_bits_mask): New function.
3102 * tree.h (build_low_bits_mask): Declare.
3103
3104 2004-10-27 David Edelsohn <edelsohn@gnu.org>
3105
3106 PR target/17956
3107 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
3108 final condition.
3109 (minsf3): Same.
3110 (maxdf3): Same.
3111 (mindf3): Same.
3112
3113 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
3114
3115 * tree-cfg.c (thread_jumps): Speed up by reordering the two
3116 conditions for entering basic blocks into worklist.
3117
3118 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
3119
3120 * tree-cfg.c (thread_jumps): Speed up by pretending to have
3121 ENTRY_BLOCK_PTR in worklist.
3122
3123 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
3124
3125 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
3126 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
3127
3128 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
3129
3130 Fix PR tree-optimization/17133
3131
3132 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
3133 def kill operand.
3134
3135 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
3136 (get_v_must_def_result_ptr): Modify for new structure of
3137 v_must_defs array.
3138 (get_v_must_def_kill_ptr): New.
3139 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
3140 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
3141 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
3142 (op_iter_init): Initialize new mustu members.
3143 (op_iter_next_mustdef): New function.
3144 (op_iter_init_mustdef): Ditto.
3145
3146 * tree-flow.h (rewrite_def_def_chains): New function.
3147
3148 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
3149 (ssa_mark_def_sites): Ditto.
3150 (rewrite_stmt): Ditto.
3151 (ssa_rewrite_stmt): Ditto.
3152 (rewrite_blocks): Factor out from rewrite_into_ssa.
3153 (mark_def_block_sites): Ditto.
3154 (rewrite_def_def_chains): New function, just rewrites def-def
3155 chains without phi node insertion.
3156
3157 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
3158
3159 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
3160
3161 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
3162 they include the rhs now.
3163
3164 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
3165 V_MUST_DEF_RESULT.
3166
3167 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
3168 Update callers.
3169 (mark_really_necessary_kill_operand_phis): New function.
3170 (perform_tree_ssa_dce): Call it.
3171 (pass_dce): Add TODO_fix_def_def_chains.
3172 (pass_cd_dce): Ditto.
3173
3174 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
3175 well.
3176 (rewrite_mem_refs): Ditto.
3177
3178 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
3179 as well.
3180
3181 * tree-ssa-operands.c (allocate_v_may_def_optype):
3182 v_may_def_operand_type_t became v_def_use_operand_type_t.
3183 (allocate_v_must_def_optype) Ditto.
3184 (finalize_ssa_v_must_defs): Update for new operand type, as well
3185 as setting the use portion as well.
3186 (copy_virtual_operands): Copy the kill operand as well.
3187 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
3188 V_MUST_DEF_RESULT.
3189
3190 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
3191 v_def_use_operand_type.
3192 (v_must_def_optype_d): Use v_def_use_operand_type.
3193 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
3194 (V_MUST_DEF_KILL_*): New macros.
3195 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
3196 members.
3197 Rename existing must_i and num_v_must members to mustd_i and
3198 num_v_mustd.
3199 (SSA_OP_VMUSTDEFKILL): New flag.
3200 (SSA_OP_VIRTUAL_KILLS): New flag.
3201 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
3202 (SSA_OP_ALL_KILLS): New flag.
3203 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
3204
3205 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
3206
3207 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
3208 became V_MUST_DEF_RESULT.
3209 (rename_variables_in_bb): Rename kill pointer as well.
3210
3211 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
3212 immediate uses.
3213
3214 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
3215
3216 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
3217 the block that needs it.
3218
3219 2004-10-27 Zack Weinberg <zack@codesourcery.com>
3220
3221 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
3222 ATTRIBUTE_UNUSED.
3223
3224 2004-10-27 Zack Weinberg <zack@codesourcery.com>
3225
3226 * c-lex.c (cb_def_pragma): Clean up code for making location
3227 palatable to diagnostic.c.
3228
3229 2004-10-27 Steven Bosscher <stevenb@suse.de>
3230
3231 PR tree-optimization/17757
3232 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
3233 without any PHI arguments left. Make sure the argument that
3234 we're supposed to remove exists at all.
3235
3236 2004-10-27 Paul Brook <paul@codesourcery.com>
3237
3238 * configure.ac: Don't test for [build] __cxa_atexit when building a
3239 cross compiler.
3240 * configure: Regenerate.
3241
3242 2004-10-27 Paul Brook <paul@codeosurcery.com>
3243
3244 * configure.ac: Use build_exeext not host_exeext when lookin for
3245 target tools.
3246 * configure: Regenerate.
3247
3248 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
3249
3250 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
3251
3252 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
3253 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
3254
3255 PR middle-end/14684
3256 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
3257 to match -fprofile-use.
3258
3259 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
3260
3261 * config/rs6000/rs6000.c: Fix a comment typo.
3262
3263 2004-10-27 Zack Weinberg <zack@codesourcery.com>
3264
3265 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
3266 counter.
3267
3268 2004-10-27 Andreas Schwab <schwab@suse.de>
3269
3270 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
3271 unused.
3272 (default_stabs_asm_out_constructor): Likewise.
3273
3274 2004-10-26 Geoffrey Keating <geoffk@apple.com>
3275
3276 * builtins.c (fold_builtin_unordered_cmp): Always bring both
3277 operands to the same type.
3278
3279 2004-10-26 James E Wilson <wilson@specifixinc.com>
3280
3281 PR target/18010
3282 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
3283
3284 2004-10-26 Zack Weinberg <zack@codesourcery.com>
3285
3286 * dbxout.c: Include obstack.h.
3287 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
3288 default definition.
3289 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
3290 Default-define here.
3291 (DBX_CONTIN_LENGTH): Move definition with others.
3292 (DBX_FINISH_STABS): New target macro.
3293 (current_sym_code, current_sym_value, current_sym_addr)
3294 (current_sym_nchars, CHARS, dbxout_continue)
3295 (print_int_cst_octal, print_octal, print_wide_int)
3296 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
3297 (stabstr_ob, stabstr_last_contin_point): New variables.
3298 (NUMBER_FMT_LOOP): New improper macro.
3299 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
3300 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
3301 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
3302 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
3303 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
3304 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
3305 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
3306 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
3307 New functions and/or proper function-like macros.
3308 (CONTIN): Use stabstr_continue, unconditionally.
3309 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
3310 (dbxout_init): Initialize stabstr_ob. Check
3311 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
3312 if it was used. Use the new interfaces.
3313 (dbxout_source_file): Remove file argument; always write to
3314 asm_out_file. Use the new interfaces.
3315 (dbxout_type_method_1): Remove second argument which is always
3316 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
3317 (dbxout_type_methods): Remove write-only variables. Use the
3318 new interfaces.
3319 (dbxout_parms): Refactor to remove code duplicated in each of
3320 several successive if-else-if blocks. Use the new interfaces.
3321 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
3322 (dbxout_source_line, dbxout_finish, dbxout_type_index)
3323 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
3324 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
3325 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
3326 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
3327 Use the new interfaces.
3328 * Makefile.in (dbxout.o): Update dependencies.
3329
3330 * defaults.h: Don't define ASM_STABD_OP.
3331 * output.h: Prototype new dbxout_* interfaces.
3332 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
3333 * varasm.c: Don't define ASM_STABS_OP.
3334 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
3335 Use the new dbxout.c interfaces. Call sorry if neither
3336 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
3337
3338 * xcoffout.h: Don't define ASM_STABS_OP.
3339 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
3340 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
3341 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
3342 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
3343 do { ... } while (0) idiom.
3344
3345 * config/alpha/alpha.c (num_source_filenames): Export.
3346 * config/alpha/alpha.h (num_source_filenames): Declare.
3347 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3348 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
3349 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3350 Always use .debugsym. Update commentary.
3351 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3352 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
3353 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
3354 Use new interfaces.
3355 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
3356 (macho_branch_islands): Use new interfaces.
3357
3358 * doc/tm.texi: Update.
3359
3360 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
3361
3362 * expr.c (emit_group_store): Do not treat floats as BLKmode.
3363 (emit_group_load): Same.
3364
3365 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
3366
3367 * c-parse.in (datadef): Use pedwarn rather than error and warning
3368 for diagnostic in case of no declaration specifiers.
3369
3370 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
3371
3372 PR bootstrap/15747
3373 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
3374 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
3375 can be used to work around this.
3376
3377 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
3378
3379 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
3380 doubles.
3381
3382 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
3383
3384 * stmt.c (expand_case): Update a comment.
3385
3386 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
3387
3388 * stmt.c (expand_case): Put an assertion that index_expr is
3389 never INTEGER_CST. Don't special case for constant
3390 index_expr.
3391
3392 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
3393
3394 PR 18162
3395 * c-parse.in (designator): Finish with a semi-colon.
3396
3397 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
3398
3399 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
3400 into rotlsi3.
3401
3402 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
3403
3404 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
3405 a default case only.
3406
3407 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
3408
3409 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
3410 e500 doubles.
3411 (spe_build_register_parallel): New.
3412 (rs6000_spe_function_arg): Handle e500 doubles.
3413 (function_arg): Same.
3414 (spe_func_has_64bit_regs_p): Same.
3415 (rs6000_function_value): Same.
3416 (rs6000_libcall_value): Same.
3417 (legitimate_lo_sum_address_p): Return false for e500 doubles.
3418
3419 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
3420 doubles.
3421 (DATA_ALIGNMENT): Same.
3422 (CANNOT_CHANGE_MODE_CLASS): Same.
3423
3424 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
3425
3426 * expr.c (emit_group_load): Handle floats.
3427 (emit_group_store): Same.
3428
3429 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
3430
3431 * c-lex.c (get_nonpadding_token): Remove.
3432 (c_lex_with_flags): Push timevar and eat padding here. Improve
3433 stray token diagnostic.
3434 (lex_string): Replace logic with switch statement, eat padding
3435 token here.
3436
3437 2004-10-26 Geoffrey Keating <geoffk@apple.com>
3438
3439 PR 18149
3440 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
3441
3442 2004-10-25 Geoffrey Keating <geoffk@apple.com>
3443
3444 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
3445 to 'non-weak'.
3446 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
3447 (ASM_MAKE_LABEL_LINKONCE): Delete.
3448 (ASM_WEAKEN_DECL): New.
3449 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
3450 (ASM_DECLARE_FUNCTION_NAME): Likewise.
3451 (TEXT_SECTION_ASM_OP): Add a tab.
3452 (DATA_SECTION_ASM_OP): Likewise.
3453 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
3454 data_section on every section change.
3455 (EXTRA_SECTIONS): Add a bunch of new extra sections.
3456 (EXTRA_SECTION_FUNCTIONS): Likewise.
3457 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
3458 (JCR_SECTION_NAME): Define.
3459 (TARGET_SECTION_TYPE_FLAGS): Don't define.
3460 * config/darwin.c (darwin_encode_section_info): A symbol is defined
3461 in this file if it is not weak.
3462 (textcoal_section): Delete.
3463 (datacoal_section): Delete.
3464 (darwin_make_decl_one_only): Delete.
3465 (machopic_select_section): Handle functions.
3466 (darwin_asm_named_section): Add a tab.
3467 (darwin_section_type_flags): Delete.
3468 (darwin_unique_section): Delete contents.
3469 (darwin_emit_unwind_label): Add a tab. Make decls weak if
3470 DECL_WEAK is set.
3471 * config/darwin-protos.h (darwin_section_type_flags): Delete.
3472 (darwin_make_decl_one_only): Delete.
3473 (text_coal_section): New.
3474 (text_unlikely_section): New.
3475 (text_unlikely_coal_section): New.
3476 (const_coal_section): New.
3477 (data_coal_section): New.
3478 (const_data_coal_section): New.
3479 * varasm.c (function_section): Honour
3480 USE_SELECT_SECTION_FOR_FUNCTIONS.
3481 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
3482 TARGET_USES_WEAK_UNWIND_INFO is in effect.
3483 * dbxout.c (dbxout_source_file): Don't change sections while
3484 a function is being output.
3485
3486 2004-10-25 David Ayers <d.ayers@inode.at>
3487
3488 * c-common.h: Remove RID_ID.
3489 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
3490 (typespec_reserved_attr): Add rule for TYPENAME
3491 non_empty_protocolrefs.
3492 (yylexname): Remove special handling of RID_ID.
3493
3494 2004-10-25 James E Wilson <wilson@specifixinc.com>
3495
3496 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
3497
3498 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
3499
3500 PR c/16667
3501 * c-parse.in (array_designator): New.
3502 (designator): Use it.
3503 (initelt): Only permit array_designator without '=', not ".foo".
3504
3505 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
3506 * gcc/Makefile.in: removed ggc for cgraphunit.
3507 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
3508 * gcc/cgraph.h: removed static var analysis data structures and calls.
3509 * gcc/cgraphunit.c:
3510 cgraph_mark_local_and_external_functions:changed name to
3511 cgraph_mark_local_functions
3512 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
3513 cgraph_reset_static_var_maps,get_global_static_vars_info,
3514 get_global_statics_not_read,get_global_statics_not_written,searchc,
3515 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
3516 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
3517 scan_for_static_refs,cgraph_characterize_statics_local,
3518 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
3519 removed.
3520 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
3521 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
3522 analysis
3523 * gcc/tree-flow.h static_vars_info: removed
3524 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
3525 removed calls to static vars analysis.
3526 get_call_expr_operands: removed callee variable.
3527
3528 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
3529
3530 * cfg.c (unchecked_make_edge, redirect_edge_succ,
3531 redirect_edge_pred): Use VEC_safe_push instead of
3532 VEC_safe_insert.
3533 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3534
3535 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
3536
3537 * cfgloopmanip.c (loopify): Take two more arguments true_edge
3538 and false_edge.
3539 * cfgloop.h: Adjust the corresponding prototype.
3540 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
3541 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
3542
3543 2004-10-25 Jakub Jelinek <jakub@redhat.com>
3544
3545 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
3546 DECL_INCOMING_RTL is NULL.
3547
3548 2004-10-25 Steven Bosscher <stevenb@suse.de>
3549
3550 * timevar.def (TV_FIND_REFERENCED_VARS): New.
3551 * tree-dfa.c (pass_referenced_var): Use it.
3552
3553 2004-10-25 Roger Sayle <roger@eyesopen.com>
3554 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3555
3556 * cse.c: Change encoding of quantity numbers to avoid undefined
3557 pointer arithmetic on qty_table.
3558 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
3559 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
3560 (new_basic_block): Assign "real" quantity numbers from zero.
3561 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
3562 REG_QTY to its unique negative value.
3563 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
3564 (cse_main): Don't include max_reg when determining max_qty.
3565 (cse_basic_block): Avoid subtracting a large offset from qty_table,
3566 which causes undefined C99 behaviour. Only allocate needed memory.
3567
3568 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
3569
3570 * stmt.c (expand_case): Remove an obsolete comment.
3571
3572 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
3573
3574 PR middle-end/17407
3575 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
3576 layout_type as it is already done by build_array_type.
3577 * tree.c (build_array_type): Layout the type even
3578
3579 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
3580
3581 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
3582
3583 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
3584
3585 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
3586 with wider-than-32-bit HOST_WIDE_INTs.
3587
3588 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
3589
3590 * config/mips/mips.c(mips_output_filename): Remove unused
3591 array ltext_label_name
3592
3593 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
3594
3595 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
3596
3597 2004-10-25 Ben Elliston <bje@au.ibm.com>
3598
3599 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
3600
3601 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
3602
3603 * predict.c (predict_loops): Call scev_finalize instead of
3604 scev_reset.
3605
3606 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
3607
3608 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
3609 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
3610 config/sh/ushmedia.h, config/sparc/elf.h,
3611 config/sparc/sp64-elf.h: Update copyright.
3612
3613 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
3614
3615 * stmt.c (expand_case): Handle the default label outside of
3616 the for loop. Remove code to handle a missing default label.
3617
3618 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
3619
3620 * dbxout.c (dbxout_function_decl): Don't use
3621 DBX_OUTPUT_FUNCTION_END.
3622 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
3623 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
3624
3625 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
3626
3627 PR middle-end/17967
3628 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
3629
3630 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
3631
3632 * tree-ssa-dom.c (record_equality): Use loop depth to determine
3633 which way to record the equality as well.
3634 (loop_depth_of_name): New function.
3635
3636 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3637
3638 PR middle-end/17793
3639 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
3640 through the operand if it is a useless type conversion.
3641
3642 2004-10-23 Ben Elliston <bje@au.ibm.com>
3643
3644 * cfg.c (remove_edge): Use VEC_unordered_remove.
3645 (redirect_edge_succ): Likewise.
3646 (redirect_edge_pred): Likewise.
3647 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3648
3649 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3650
3651 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
3652 beyond its end.
3653
3654 2004-10-22 Eric Christopher <echristo@redhat.com>
3655
3656 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
3657 saves.
3658
3659 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
3660
3661 * config/rs6000/spe.md (spe_extendsfdf2): New.
3662 (movdf_e500_double): New.
3663 (spe_truncdfsf2): New.
3664 (spe_absdf2): New.
3665 (spe_nabsdf2): New.
3666 (spe_negdf2): New.
3667 (sub_adddf3): New.
3668 (spe_subdf3): New.
3669 (spe_muldf3): New.
3670 (spe_floatsidf2): New.
3671 (spe_floatunssidf2): New.
3672 (fix_truncdfsi2): New.
3673 (spe_fixuns_truncdfsi2): New.
3674
3675 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
3676 (fpr_truncdfsf2): New.
3677 (negdf2): Change to expander.
3678 (fpr_negdf2): New.
3679 (fpr_nabsdf2): Name pattern.
3680 (adddf3): Change to expander.
3681 (fpr_adddf3): Nem.
3682 (subdf3): Change to expander.
3683 (fpr_subdf3): New.
3684 (muldf3): Change to expander.
3685 (fpr_muldf3): New.
3686 (divdf3): Change to expander.
3687 (fpr_divdf3): New.
3688 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
3689 (cmpdf): Allow for TARGET_E500_DOUBLE.
3690
3691 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3692
3693 * c-semantics.c (re_push_stmt_list): Remove.
3694 * c-common.h: Remove the corresponding prototype.
3695
3696 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3697
3698 * stmt.c (asm_op_is_mem_input): Remove.
3699 * tree.h: Remove the corresponding prototype.
3700
3701 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3702
3703 * tree-gimple.c (is_gimple_constructor_elt): Remove.
3704 * tree-gimple.h: Remove the corresponding prototype.
3705
3706 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3707
3708 * varasm.c (get_pool_mode_for_function, get_pool_offset):
3709 Remove.
3710 * rtl.h: Remove the corresponding prototypes.
3711
3712 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3713
3714 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
3715 edge information when we commit ourselves to threading a
3716 particular jump.
3717
3718 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3719
3720 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
3721 into worklist instead of their indexes.
3722
3723 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3724
3725 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
3726 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
3727 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
3728 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
3729 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
3730 tree-scalar-evolution.c, tree-ssa-dom.c,
3731 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3732 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
3733 tree-vectorizer.c, vec.h: Fix comment formatting.
3734
3735 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3736
3737 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
3738 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
3739
3740 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3741
3742 * config/ptx4.h, config/mcore/mcore-pe.h,
3743 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
3744
3745 2004-10-22 Peter Barada <peter@the-baradas.com>
3746
3747 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
3748 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
3749 renaming of non-live registers in interrupt functions.
3750 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
3751
3752 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
3753
3754 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
3755 Use integer for loop counter.
3756 (num_ending_zeros): New function.
3757 (number_of_iterations_cond): Use num_ending_zeros.
3758
3759 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
3760
3761 * config.gcc: Add support for --enable-e500_double.
3762
3763 * config/rs6000/e500-double.h: New file.
3764
3765 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
3766 TARGET_E500_DOUBLE.
3767
3768 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
3769 TARGET_E500_DOUBLE.
3770
3771 * config/rs6000/linuxspe.h: Same.
3772
3773 * doc/invoke.texi (Option Summary): Document new options for
3774 mfloat-gprs.
3775 (RS/6000 and PowerPC Options): Same.
3776
3777 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
3778 function.
3779 (rs6000_override_options): Use it. Use
3780 SUB3TARGET_OVERRIDE_OPTIONS.
3781 Add 8548 to processor_target_table.
3782 (rs6000_legitimate_address): Handle e500 doubles.
3783 (rs6000_legitimize_address): Same.
3784 (rs6000_legitimize_reload_address): Same.
3785 (rs6000_hard_regno_nregs): Same.
3786 (spe_func_has_64bit_regs_p): Same.
3787 (emit_frame_save): Same.
3788 (gen_frame_mem_offset): Same.
3789 (rs6000_dwarf_register_span): Same.
3790 (rs6000_generate_compare): Same.
3791 (easy_fp_constant): Same.
3792 (legitimate_offset_address_p): Same.
3793
3794 * config/rs6000/spe.md: (cmdfeq_gpr): New.
3795 (tstdfeq_gpr): New.
3796 (cmpdfgt_gpr): New.
3797 (tstdfgt_gpr): New.
3798 (tstdfgt_gpr): New.
3799 (cmpdflt_gpr): New.
3800 (tstdflt_gpr): New.
3801 Add new constants.
3802
3803 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3804
3805 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
3806
3807 2004-10-21 Zack Weinberg <zack@codesourcery.com>
3808
3809 * dbxout.c: Remove unnecessary #undefs.
3810 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
3811 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
3812 definition into use sites.
3813 (cwd): Make local to dbxout_init.
3814 (dbxout_init): Restructure cwd-using logic for clarity. Use
3815 IS_DIR_SEPARATOR.
3816 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
3817 STABS_GCC_MARKER folded in here.
3818 * system.h: Poison now-unused macros.
3819 * doc/tm.texi: Remove documentation of now-unused macros.
3820
3821 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
3822
3823 PR c/17538
3824 * c-opts.c (push_command_line_include): Use the current file
3825 name instead of the main one.
3826
3827 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
3828
3829 PR objc/17923
3830 * tree.c (staticp): A CONST_DECL has static storage if either
3831 TREE_STATIC or DECL_EXTERNAL is set.
3832 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
3833 have null names.
3834
3835 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3836
3837 * expr.c (store_expr): Remove dont_store_target.
3838
3839 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3840
3841 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
3842
3843 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3844
3845 * tree-cfg.c (thread_jumps): Move a part of it to ...
3846 (thread_jumps_from_bb): ... here.
3847
3848 2004-10-21 David Edelsohn <edelsohn@gnu.org>
3849
3850 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
3851 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
3852
3853 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3854
3855 * expr.c (store_expr): Clean up by renaming want_value to
3856 call_param_p.
3857
3858 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
3859
3860 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
3861 fixup pc here.
3862
3863 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
3864
3865 PR 18004.
3866 * expmed.c (store_bit_field): Pass original 'value' before
3867 recursing.
3868
3869 2004-10-21 Nicolas Pitre <nico@cam.org>
3870
3871 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
3872 * config/arm/ieee754-df.S: Ditto.
3873
3874 2004-10-20 Zack Weinberg <zack@codesourcery.com>
3875
3876 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
3877 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
3878 Default to 0.
3879 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
3880 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
3881 an internal label and an N_SLINE .stabn whose value is the
3882 difference between that label and the function entry label.
3883 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
3884 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
3885 label and an N_SO stab with an empty string referring to it.
3886 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
3887 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
3888 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
3889 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
3890 macro is never defined.
3891 * sdbout.c (sdbout_source_line_counter): Delete.
3892 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
3893 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
3894 only two arguments.
3895 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
3896
3897 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
3898 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
3899 definitions (identical to default).
3900 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
3901 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
3902 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
3903 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
3904 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
3905 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
3906 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
3907 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
3908 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
3909 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
3910 (sym_lineno): Delete.
3911 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
3912 now-unused variable.
3913 (alpha_output_lineno): Delete.
3914 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
3915 * config/mips/mips.c (mips_output_filename): Don't use
3916 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
3917 (mips_output_lineno): Delete.
3918 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
3919 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
3920 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
3921 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
3922 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
3923 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
3924 * config/mmix/mmix.h: Likewise.
3925 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
3926 * config/mmix/mmix-protos.h: Don't prototype it.
3927 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
3928 no need to #undef ASM_OUTPUT_SOURCE_LINE.
3929 * config/arm/aout.h: Remove RISCiX-specific definition of
3930 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
3931 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
3932 ASM_OUTPUT_SOURCE_LINE.
3933 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
3934 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
3935 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
3936
3937 * doc/tm.texi: Update.
3938
3939 2004-10-20 Richard Henderson <rth@redhat.com>
3940
3941 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
3942
3943 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
3944
3945 * configure.ac: Revert my previous patch.
3946 * configure: Regenerate.
3947
3948 2004-10-20 Ben Elliston <bje@au.ibm.com>
3949
3950 * config/rs6000/rs6000.c
3951 (rs6000_va_start): Use build_va_arg_indirect_ref.
3952 (rs6000_gimplify_va_arg): Likewise.
3953
3954 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
3955
3956 PR java/15575
3957 * configure.ac: Declare AM_LANGINFO_CODESET.
3958 * aclocal.m4: Define AM_LANGINFO_CODESET.
3959 * configure, config.in: Rebuilt.
3960
3961 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
3962
3963 * expr.c (store_expr): Remove code that is run when
3964 want_value & 1 is nonzero.
3965
3966 2004-10-20 Mark Mitchell <mark@codesourcery.com>
3967
3968 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
3969 from function pointer to void *.
3970
3971 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
3972
3973 PR target/18032
3974 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
3975 the frame pointer adjustment when exception handling is enabled.
3976
3977 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
3978
3979 * stor-layout.c: Fix a comment typo.
3980
3981 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
3982
3983 * expr.c (store_field): Remove two arguments value_mode and
3984 unsignedp.
3985 (expand_assignment, store_constructor_field,
3986 expand_expr_real_1): Adjust calls to store_field.
3987
3988 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3989
3990 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
3991
3992 PR target/17317
3993 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
3994 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
3995 base and index register for loads.
3996
3997 * config/arc/t-arc: Fix multilib handling.
3998
3999 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
4000
4001 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
4002 don't inspect BLOCK_FOR_INSN for barriers.
4003 * emit-rtl.c (emit_barrier_before): Revert last change.
4004 (emit_barrier_after, emit_barrier): Ditto.
4005
4006 * doc/extend.texi (Extended Asm): Warn and provide example
4007 solution for using a call-clobbered asm register.
4008 (Local Reg Vars): Similar. Cross-reference example.
4009
4010 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
4011
4012 * tree-cfg.c (group_case_labels): Look at the second to last
4013 case statement for combing with the default case.
4014
4015 2004-10-19 Richard Hendeson <rth@redhat.com>
4016
4017 PR 17962
4018 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
4019
4020 2004-10-19 Richard Hendeson <rth@redhat.com>
4021
4022 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
4023 succeeds, only expand the result.
4024
4025 2004-10-19 Richard Hendeson <rth@redhat.com>
4026
4027 PR middle-end/17885
4028 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
4029 of INDIRECT_REF.
4030
4031 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
4032
4033 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
4034 loop with goto.
4035
4036 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
4037
4038 * expr.c (expand_assignment): Remove the last argument.
4039 Change the return type to void.
4040 * expr.h: Update the prototype of expand_assignment.
4041 * function.c (assign_parm_setup_reg): Update a call to
4042 expand_assignment.
4043 * stmt.c (expand_asm_expr): Likewise.
4044
4045 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
4046
4047 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
4048 unnecessary assignments to temp. Return const0_rtx.
4049
4050 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
4051
4052 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
4053
4054 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
4055
4056 * configure.ac (powerpc-*-darwin*): Require assembler to support
4057 .machine directive.
4058 * configure: Regenerate.
4059
4060 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4061
4062 * reload1.c (ior_hard_reg_set): Remove.
4063 (finish_spills): Use IOR_HARD_REG_SET instead of
4064 ior_hard_reg_set.
4065
4066 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4067
4068 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
4069 the currently visited word to right.
4070
4071 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4072
4073 PR middle-end/18045
4074 * expmed.c (expand_smod_pow2): Handle modes whose size
4075 is greater than that of HOST_WIDE_INT.
4076
4077 2004-10-18 Ziemowit Laski <zlaski@apple.com>
4078
4079 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
4080
4081 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4082 Roger Sayle <roger@eyesopen.com>
4083
4084 PR middle-end/17813
4085 * dojump.c (discard_pending_stack_adjust): New function.
4086 (clear_pending_stack_adjust): Call it.
4087 * expr.h (discard_pending_stack_adjust): Declare it.
4088 * explow.c (emit_stack_save): Emit pending stack adjustments
4089 before saving the stack pointer.
4090 (emit_stack_restore): Discard pending stack adjustments before
4091 restoring the stack pointer.
4092
4093 2004-10-18 Richard Henderson <rth@redhat.com>
4094
4095 * c-common.c (handle_mode_attribute): Allow scalar->vector
4096 type changes yet.
4097
4098 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4099
4100 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
4101 value to expand_assignment.
4102
4103 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4104
4105 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
4106 thread_jumps.
4107 (thread_jumps): Iterate until no new forwarder block arises.
4108
4109 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4110
4111 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
4112 (thread_jumps): Use forwardable as cache of
4113 tree_forwarder_block_p throughout the function.
4114
4115 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
4116
4117 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
4118
4119 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
4120
4121 PR middle-end/15014
4122 PR middle-end/16973
4123 * tree-cfg.c (remove_bb): If we have a label expression in the
4124 basic block and the label we have taken the address, move the
4125 label expression to the basic block which is previous in the
4126 linked list.
4127 (tree_verify_flow_info): Fix printing out the label name of the
4128 problematic label expression.
4129
4130 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
4131
4132 PR rtl-optimization/18002
4133 * simplify-rtx.c (mode_signbit_p): Externalize function...
4134 * rtl.h (mode_signbit_p): ... to here.
4135 * combine.c (simplify_shift_const): Recognize PLUS signbit as
4136 canonical form of XOR signbit and move to outer op.
4137
4138 2004-10-18 Diego Novillo <dnovillo@redhat.com>
4139
4140 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
4141 Update all callers.
4142 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
4143 Don't call fold_stmt more than once, use bsi_replace.
4144
4145 2004-10-18 Diego Novillo <dnovillo@redhat.com>
4146
4147 PR tree-optimization/17656
4148 * tree-ssa.c (replace_immediate_uses): When replacing a
4149 constant, if the call to fold_stmt produced a different
4150 statement, get an appropriate statement pointer by scanning
4151 STMT's basic block.
4152
4153 2004-10-18 Richard Henderson <rth@redhat.com>
4154
4155 * pointer-set.c (hash1): Don't use libm functions in fallback case.
4156
4157 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
4158
4159 PR bootstrap/17684
4160 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
4161 (stage1-start): Remove and copy libunwind.a and
4162 libunwind*$(SHLIB_EXT) instead of libunwind*.
4163 (stage2-start): Likewise.
4164 (stage3-start): Likewise.
4165 (stage4-start): Likewise.
4166 (stageprofile-start): Likewise.
4167 (stagefeedback-start): Likewise.
4168
4169 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
4170 the shared library to be created and don't remove the existing
4171 shared library.
4172 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
4173 * config/i386/t-nwld (SHLIB_LINK): Likewise.
4174 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
4175 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
4176 * config/sh/t-linux (SHLIB_LINK): Likewise.
4177 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
4178 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
4179 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
4180 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
4181
4182 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
4183 files.
4184
4185 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4186
4187 * basic-block.h (reg_set_iterator): New.
4188 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
4189 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
4190 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
4191 * caller-save.c (save_call_clobbered_regs): Adjust to the new
4192 style.
4193 * cfgcleanup.c (thread_jump): Likewise.
4194 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
4195 * conflict.c (conflict_graph_compute): Likewise.
4196 * flow.c (verify_local_live_at_start, update_life_info,
4197 initialize_uninitialized_subregs, propagate_one_insn,
4198 init_propagate_block_info, free_propagate_block_info,
4199 propagate_block, dump_regset): Likewise.
4200 * global.c (global_conflicts): Likewise.
4201 * graph.c (start_bb): Likewise.
4202 * local-alloc.c (update_equiv_regs): Likewise.
4203 * loop.c (load_mems): Likewise.
4204 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
4205 find_reg, finish_spills): Likewise.
4206 * resource.c (mark_target_live_regs): Likewise.
4207 * sched-deps.c (sched_analyze_insn): Likewise.
4208 * sched-rgn.c (sched-rgn.c): Likewise.
4209 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4210
4211 2004-10-18 Jakub Jelinek <jakub@redhat.com>
4212
4213 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
4214 operand 1 instead of 2
4215
4216 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4217
4218 * loop-unroll.c: Fix comment typos.
4219
4220 2004-10-18 Revital Eres <eres@il.ibm.com>
4221
4222 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
4223 * loop-unroll.c: Include varray.h.
4224 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
4225 opt_info and expand it to support variable expansion.
4226 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
4227 expand it to support variable expansion.
4228 (pt_info_start_duplication): Rename si_info_start_duplication.
4229 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
4230 to the variable expansion optimization.
4231 (free_opt_info): Rename free_si_info.
4232 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
4233 expand_var_during_unrolling, insert_var_expansion_initialization,
4234 combine_var_copies_in_loop_exit, release_var_copies,
4235 get_expansion): New functions.
4236 (peel_loop_completely, unroll_loop_constant_iterations,
4237 unroll_loop_runtime_iterations, peel_loop_simple,
4238 unroll_loop_stupid): Change uses of struct si_info
4239 to struct opt_info
4240 and add uses of fvariable-expansion-in-unroller flag.
4241 * params.def: Add parameter to restrict the number of expansions.
4242 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
4243 the number of expansions.
4244 * common.opt: (fvariable-expansion-in-unroller): New flag.
4245 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
4246
4247 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
4248
4249 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
4250 __GXX_MERGED_TYPEINFO_NAMES to 0.
4251
4252 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
4253
4254 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
4255 handle barriers in a bb by checking that it points to a NULL bb.
4256 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
4257 (emit_barrier_after, emit_barrier): Ditto.
4258
4259 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
4260
4261 * doc/extend.texi (Attribute Syntax): Clarify details of
4262 attributes on parameters.
4263
4264 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
4265
4266 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
4267 loop.
4268
4269 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4270
4271 Revert:
4272 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4273
4274 * c-typeck.c (default_function_array_conversion): Always create
4275 &a[0] for array types.
4276 (build_unary_op): Do not fold &a[x] into a + x.
4277
4278 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4279
4280 PR middle-end/17925
4281 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
4282 block if there is a goto with a locus.
4283
4284 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
4285
4286 * config/elfos.h, config/gofast.h, config/interix.h,
4287 config/netbsd.h, config/svr3.h, config/vxworks.h,
4288 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
4289 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
4290 config/alpha/netbsd.h, config/arm/arm-modes.def,
4291 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
4292 config/cris/aout.h, config/frv/frv-modes.def,
4293 config/i386/beos-elf.h, config/i386/gas.h,
4294 config/i386/i386-coff.h, config/i386/i386-modes.def,
4295 config/i386/linux.h, config/i386/linux64.h,
4296 config/i386/mingw32.h, config/i386/netbsd-elf.h,
4297 config/i386/netbsd64.h, config/i386/sco5.h,
4298 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
4299 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
4300 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
4301 config/mips/mips-modes.def, config/mips/sdb.h,
4302 config/mips/vr.h, config/mips/vxworks.h,
4303 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
4304 config/pa/pa32-linux.h, config/rs6000/40x.md,
4305 config/rs6000/7450.md, config/rs6000/8540.md,
4306 config/rs6000/linuxspe.h, config/rs6000/power4.md,
4307 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
4308 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
4309 config/s390/s390-modes.def, config/sh/elf.h,
4310 config/sh/sh-modes.def, config/sh/sh64.h,
4311 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
4312 config/stormy16/stormy16.md, config/v850/v850-protos.h,
4313 config/vax/vax.md: Update copyright.
4314
4315 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
4316
4317 * expr.c (expand_expr_real_1): Remove an obsolete comment.
4318
4319 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4320
4321 * c-typeck.c (default_function_array_conversion): Always create
4322 &a[0] for array types.
4323 (build_unary_op): Do not fold &a[x] into a + x.
4324
4325 2004-10-17 Jakub Jelinek <jakub@redhat.com>
4326
4327 * pointer-set.c (hash1): Use integer part of 2^64 / phi
4328 instead 2^32 / phi if long is 64-bit.
4329
4330 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
4331
4332 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
4333 RID_PTRVALUE.
4334 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
4335 declarations.
4336 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
4337 __ptrextent__, __ptrvalue and __ptrvalue__.
4338 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
4339 entries.
4340
4341 2004-10-16 Dale Johannesen <dalej@apple.com>
4342
4343 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
4344
4345 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
4346
4347 PR tree-optimization/17766
4348 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
4349 (dom_info_available_p): Declare.
4350 * cfghooks.c (split_block, make_forwarder_block): Use
4351 dom_info_available_p.
4352 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
4353 free_dominance_info, verify_dominators): Ditto.
4354 (dom_info_available_p): New function.
4355 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
4356 (thread_jumps): Use dom_info_available_p.
4357 * tree-complex.c (expand_complex_div_wide): Ditto.
4358 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
4359
4360 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
4361
4362 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
4363 (find_best_candidate): Take also important candidates into account.
4364 (find_optimal_iv_set): Initialize important_candidates bitmap.
4365
4366 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
4367
4368 PR tree-optimization/17560
4369 * predict.c (tree_estimate_probability): Mark irreducible
4370 loops.
4371
4372 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
4373
4374 PR rtl-optimization/17723
4375 * cfgcleanup.c (merge_memattrs): Handle case when
4376 MEM_SIZE == NULL_RTX.
4377
4378 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
4379
4380 * toplev.c (dump_file_name): Change type to be const.
4381
4382 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
4383
4384 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
4385 non_lvalue to stop something being a null pointer constant.
4386
4387 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
4388
4389 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
4390 available for TARGET_FPRS.
4391 (FUNCTION_VALUE_REGNO_P): Same.
4392
4393 2004-10-15 Geoffrey Keating <geoffk@apple.com>
4394
4395 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4396 -maltivec in same style as other ISA options.
4397
4398 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
4399
4400 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
4401 definition.
4402
4403 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
4404
4405 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
4406 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
4407 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
4408 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
4409 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
4410 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
4411 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
4412 predict.def, predict.h, protoize.c, reload.h, resource.h,
4413 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
4414 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
4415 unwind-sjlj.c, value-prof.h: Update copyright.
4416
4417 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
4418
4419 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
4420
4421 2004-10-15 Diego Novillo <dnovillo@redhat.com>
4422
4423 * tree-optimize.c (execute_one_pass): Stop timer right after
4424 executing the pass.
4425
4426 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
4427
4428 Revert:
4429 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
4430 PR middle-end/17967
4431 Revert:
4432 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
4433 (remove_useless_stmts_1): Fold trees we know how to fold.
4434
4435 2004-10-14 David Edelsohn <edelsohn@gnu.org>
4436
4437 * configure.ac: Add .machine power4 directive when testing for
4438 mfcr field.
4439 * configure: Regenerate.
4440
4441 2004-10-14 Geoffrey Keating <geoffk@apple.com>
4442
4443 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
4444
4445 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
4446
4447 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
4448 always.
4449
4450 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
4451
4452 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
4453 for 'f' if !TARGET_FPRS.
4454
4455 2004-10-14 Richard Henderson <rth@redhat.com>
4456
4457 PR debug/14492
4458 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
4459
4460 2004-10-14 Richard Henderson <rth@redhat.com>
4461
4462 PR c/17023
4463 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
4464 as error_mark_node.
4465 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
4466 instaed of current_function_decl non-null.
4467
4468 2004-10-14 Matt Austern <austern@apple.com>
4469
4470 * pointer-set.c: New file, special-purpose hash table.
4471 * pointer-set.h: New file.
4472 * tree.h (struct pointer_set_t): Declare as opaque type.
4473 (tree_walk): Last argument is pointer_set_t* now.
4474 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
4475 (walk_type_fields):
4476 (walk_tree): Convert from htab_t to pointer_set_t for keeping
4477 track of which nodes have already been visited.
4478 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
4479 * cgraphunit.c (cgraph_create_edges): Likewise.
4480 (cgraph_characterize_statics_local): Likewise.
4481 * tree-dfa.c (collect_dfa_stats): Likewise.
4482 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
4483 pointer_set_t* now.
4484 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
4485 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
4486 of walk_subtrees is pointer_set_t* now.
4487 * Makefile.in (OBJS-common): add pointer-set.o
4488 (tree-inline.o): Depends on pointer-set.h
4489 (tree-dfa.o): Likewise
4490 (cgraphunit.o): Likewise
4491
4492 2004-10-14 Geoffrey Keating <geoffk@apple.com>
4493
4494 * config/rs6000/darwin.h (ASM_SPEC): Delete.
4495 (TARGET_ASM_FILE_START): Define.
4496 * config/darwin.h (ASM_SPEC): Define.
4497 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
4498 -mlong-double-128, it's the default. Update comment about reason
4499 for force_cpusubtype_ALL.
4500 * config/rs6000/darwin-vecsave.asm: Supply .machine.
4501 * config/rs6000/darwin-world.asm: Likewise.
4502 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
4503 (symbolic_operand): Delete #if 0ed code.
4504
4505 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
4506
4507 * stmt.c (add_case_node): Make sure that we have integer
4508 constant before calling tree_int_cst_compare.
4509
4510 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
4511
4512 PR middle-end/17967
4513 Revert:
4514 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
4515 (remove_useless_stmts_1): Fold trees we know how to fold.
4516
4517 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
4518
4519 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
4520 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
4521 -m64.
4522
4523 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4524
4525 * reload.c (find_reloads): When reloading a PLUS with constant
4526 operand, make sure the constant is pushed to the constant pool
4527 if required.
4528 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
4529 reload bug workaround.
4530 (s390_expand_plus_operand): Likewise.
4531
4532 2004-10-14 David Edelsohn <edelsohn@gnu.org>
4533
4534 * opts.c (common_handle_option): Do not enable
4535 flag_speculative_prefetching for -fprofile-generate/use.
4536
4537 2004-10-14 Devang Patel <dpatel@apple.com>
4538
4539 PR 17635
4540 * tree-if-conv.c (process_phi_nodes): Process latch block.
4541 (combine_blocks): Process latch block and update loop structure.
4542
4543 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
4544
4545 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
4546 (vect_update_ivs_after_vectorizer):
4547 (vect_transform_for_unknown_loop_bound):
4548 (tree_duplicate_loop_to_edge):
4549 (allocate_new_names):
4550 (rename_use_op):
4551 (rename_def_op):
4552 (rename_variables_in_bb):
4553 (free_new_names):
4554 (rename_variables_in_loop):
4555 (copy_phi_nodes):
4556 (update_phis_for_duplicate_loop):
4557 (update_phi_nodes_for_guard):
4558 (make_loop_iterate_ntimes):
4559 (tree_duplicate_loop_to_edge_cfg):
4560 (add_loop_guard):
4561 (vect_analyze_loop_with_symbolic_num_of_iters):
4562 (verify_loop_for_duplication):
4563 (vect_gen_niters_for_prolog_loop):
4564 (vect_update_niters_after_peeling):
4565 (vect_update_inits_of_dr):
4566 (vect_update_inits_of_drs):
4567 (vect_build_loop_niters):
4568 (vect_do_peeling_for_alignment): New functions.
4569 (vect_transform_loop): Add unknown and known but indivisible loop
4570 bound support; add peeling for unalignment support.
4571 (vect_analyze_loop_form): Support symbolic number of iterations.
4572 (vect_transform_loop_bound): New input parameter.
4573 (vect_get_loop_niters): Change input parameter type.
4574 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
4575 (vectorizable_store): Allow unaligned access.
4576 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
4577 (vect_analyze_data_refs_alignment): Allowed one unaligned
4578 store.
4579 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
4580 to use tree.
4581 (LOOP_VINFO_INT_NITERS): New macro.
4582 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
4583 (do_peeling_for_alignment):
4584 (unaligned_drs): New members of _loop_vec_info.
4585 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
4586
4587 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
4588
4589 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
4590 (struct tree_string): Remove "const" qualifier for "str".
4591
4592 2004-10-14 Ira Rosen <irar@il.ibm.com>
4593
4594 * tree-vectorizer.c (vect_analyze_data_refs): Call
4595 vect_get_base_and_bit_offset to get memory tag for array ref.
4596 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
4597
4598 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
4599
4600 * configure.ac: Use $LN_S for creating symlinks (not $LN).
4601 * configure: Regenerate.
4602
4603 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4604
4605 * doc/install.texi (*-*-solaris2*): Update with info about kernel
4606 patches to solve spurious testsuite failures.
4607
4608 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
4609
4610 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
4611 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
4612 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
4613 gcc_assert under ENABLE_CHECKING.
4614 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
4615 get_vectype_for_scalar_type).
4616
4617 (vect_get_vec_def_for_operand): Remove redundant variables.
4618 (vect_transform_loop): Likewise.
4619
4620 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
4621
4622 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
4623 global for -mcaller-super-interworking.
4624 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
4625 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
4626 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
4627 not need a frame pointer.
4628 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
4629 the soft frame pointer offset.
4630 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
4631 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
4632 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
4633 the stack. Use frame_pointer_needed to choose between them.
4634 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
4635 (interwork_with_frame): New macro.
4636 (interwork): Add _interwork_{r7,r11}_call_via_rN().
4637
4638 2004-10-14 Ben Elliston <bje@au.ibm.com>
4639
4640 PR other/17900
4641 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
4642 up the filename looking for a previous directory separator.
4643
4644 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
4645
4646 * c-tree.h (enum c_typespec_kind, struct c_typespec,
4647 parser_xref_tag): New.
4648 (struct c_declspecs): Add tag_defined_p. Adjust definition of
4649 typedef_p.
4650 (declspecs_add_type): Adjust prototypes.
4651 * c-parse.in (%union): Add tstype.
4652 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
4653 typespec_reserved_attr, typespec_nonreserved_nonattr,
4654 structsp_attr, structsp_nonattr): Change to tstype. Update
4655 actions.
4656 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
4657 (declspecs_add_type): Update to take struct c_typespec argument.
4658 Set tag_defined_p and typedef_p as appropriate.
4659 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
4660 Update to return struct c_typespec.
4661 (shadow_tag_warned): Don't let empty declarations with qualifiers
4662 or storage class specifiers redeclare a tag if a previous
4663 declaration is visible.
4664
4665 2004-10-13 Richard Henderson <rth@redhat.com>
4666
4667 PR debug/15860
4668 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
4669 for DECL_INCOMING_RTL.
4670
4671 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
4672
4673 PR target/17984
4674 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
4675 trunc_int_for_mode for constants used in shortened mode.
4676
4677 2004-10-13 Richard Henderson <rth@redhat.com>
4678
4679 PR c/17384
4680 * c-common.c (handle_mode_attribute): Disallow mode changes that
4681 alter the CODE of the top-level type.
4682
4683 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
4684 integer from internal limits macros.
4685 * config/i386/mm3dnow.h (__v2sf): Fix base type.
4686
4687 2004-10-13 Richard Henderson <rth@redhat.com>
4688
4689 PR debug/13841
4690 * function.c (instantiate_decl): Recurse for CONCAT.
4691
4692 2004-10-13 David Edelsohn <edelsohn@gnu.org>
4693
4694 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
4695 andi./andis.
4696 (anddi3): Same.
4697 (extzvdi_internal1): Add attribute "compare".
4698 (extzvdi_internal2): Same.
4699
4700 2004-10-12 Tom Tromey <tromey@redhat.com>
4701
4702 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
4703
4704 2004-10-13 Dale Johannesen <dalej@apple.com>
4705
4706 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
4707
4708 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
4709
4710 * toplev.c (compile_file): Call mudflap_finish_file from here ...
4711 * c-decl.c (c_write_global_declarations): ... instead of here ...
4712 * cp/decl.c (cp_finish_file): ... and here.
4713 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
4714
4715 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
4716
4717 * tree-ssa-dom.c (record_range): Free the element if we are not
4718 going to use it.
4719
4720 2004-10-13 Tom Tromey <tromey@redhat.com>
4721
4722 PR java/15578:
4723 * gcc.c (option_map): Added --extdirs and --encoding.
4724
4725 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4726
4727 PR target/14454
4728 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
4729 sparc_can_output_mi_thunk.
4730 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
4731 handling of vcall offset.
4732 (sparc_can_output_mi_thunk): New predicate.
4733 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
4734 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
4735 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
4736
4737 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
4738
4739 * config/sparc/sparc.md (movdi): Remove redundant test.
4740
4741 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
4742
4743 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
4744 TDF_IPA from -fdump-tree-*-all.
4745
4746 2004-10-13 Paul Brook <paul@codesourcery.com>
4747
4748 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
4749 * config/arm/arm.c (thumb_find_work_register): Update comments.
4750 (arm_load_pic_register): Add argument for scratch register.
4751 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
4752 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
4753
4754 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
4755
4756 * tree-data-ref.c: Fix comment typos.
4757
4758 2004-10-13 Jakub Jelinek <jakub@redhat.com>
4759 Zdenek Dvorak <dvorakz@suse.cz>
4760
4761 PR tree-optimization/17724
4762 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
4763
4764 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
4765
4766 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
4767 (altivec_builtin_mask_for_store): Likewise.
4768 (altivec_init_builtins): Use lang_hooks.builtin_function to
4769 create the decls for builtin_altivec_mask_for_load/store.
4770
4771 2004-10-13 Nick Clifton <nickc@redhat.com>
4772
4773 * config/c4x/c4x.c: Remove inclusion of loop.h.
4774
4775 2004-10-12 Ben Elliston <bje@au.ibm.com>
4776
4777 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
4778 (ei_container): New; renamed.
4779 (ei_start, ei_last): New macros.
4780 (ei_start_1, ei_last_1): Renamed from ei_start.
4781 (ei_last_1, ei_end_p): Use ei_container() where applicable.
4782 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
4783 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
4784
4785 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
4786
4787 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
4788 * cfgloop.c (initialize_loops_parallel_p): New.
4789 (flow_loops_find): Initialize the parallel_p field to true for all
4790 the loops.
4791 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
4792 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
4793 the size of the data accessed in the loop.
4794 (struct nb_iter_bound): Moved...
4795 * cfgloop.h (struct nb_iter_bound): ... here.
4796 (estimated_nb_iterations, parallel_p): New fields in struct loop.
4797 (record_estimate): Declare extern here.
4798 * tree-chrec.c: Fix comments.
4799 (nb_vars_in_chrec): New function.
4800 * tree-chrec.h (nb_vars_in_chrec): Declared here.
4801 * tree-data-ref.c: Don't include lambda.h, that is already included
4802 in tree-data-ref.h.
4803 (tree_fold_divides_p): Don't check for integer_onep.
4804 (tree_fold_bezout): Removed.
4805 (gcd): New static duplicated function.
4806 (int_divides_p, dump_subscript): New.
4807 (dump_data_dependence_relation): Use dump_subscript.
4808 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
4809 estimate_niter_from_size_of_data): New.
4810 (analyze_array_indexes, analyze_array): Call
4811 estimate_niter_from_size_of_data during the detection of array
4812 references. Pass in a pointer to the statement that contains the
4813 array reference.
4814 (all_chrecs_equal_p): New.
4815 (compute_distance_vector): Renamed compute_subscript_distance.
4816 Deal with multivariate conflict functions.
4817 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
4818 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
4819 (non_affine_dependence_relation): New.
4820 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
4821 analyze_siv_subscript, analyze_miv_subscript,
4822 analyze_overlapping_iterations, subscript_dependence_tester):
4823 Initialize and return last_conflicts function.
4824 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
4825 compute_overlap_steps_for_affine_1_2): New.
4826 (analyze_siv_subscript_affine_cst): Removed.
4827 (analyze_subscript_affine_affine): Disprove dependences based on the
4828 iteration domains. Solve the univariate dependence case as before,
4829 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
4830 Implement the multivariate case of 2 versus 1 variables.
4831 (build_classic_dist_vector, build_classic_dir_vector): Implement some
4832 unhandled cases.
4833 (find_data_references_in_loop): Compute and initialize
4834 loop->estimated_nb_iterations and loop->parallel_p.
4835 (analyze_all_data_dependences): Modify the debug dump order.
4836 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
4837 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
4838 (SUB_LAST_CONFLICT, subscript->last_conflict,
4839 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
4840 DDR_AFFINE_P, DDR_SIZE_VECT): New.
4841 (find_data_references_in_loop, initialize_data_dependence_relation,
4842 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
4843
4844 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
4845
4846 * configure: Regenerate.
4847
4848 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
4849
4850 PR 17892
4851 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
4852 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
4853 and constant folding of floating point MULT_EXPR/PLUS_EXPR
4854 expressions.
4855
4856 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
4857
4858 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
4859 (s390_gimplify_va_arg): Likewise.
4860
4861 2004-10-12 Daniel Jacobowitz <dan@debian.org>
4862
4863 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
4864 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
4865 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
4866 * regclass.c (record_address_regs): Remove ifdef. Use
4867 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
4868 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
4869 definition.
4870 (scan_rtx_address, replace_oldest_value_addr): Use
4871 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
4872 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
4873 unnecessary definitions.
4874 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
4875 and MODE_BASE_REG_REG_CLASS.
4876 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
4877 (MODE_BASE_REG_REG_CLASS): Define.
4878 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
4879 (REG_MODE_OK_FOR_REG_BASE_P): Define.
4880 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
4881 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
4882
4883 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
4884
4885 * tree-ssa-alias.c (verify_name_tags): New function.
4886 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
4887 (verify_alias_info): Call verify_name_tags.
4888
4889 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
4890
4891 PR rtl-optimization/17931
4892 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
4893 ZERO_EXTRACT in it.
4894
4895 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
4896
4897 * arm.c (arm_print_operand): Use output_operand_lossage where possible
4898 rather than aborting.
4899
4900 2004-10-12 Paul Brook <paul@coudesourcery.com>
4901
4902 * config.gcc: Add armv6{k,z,zk}
4903 * config/arm/arm-cores.def: Add arm1176 and mpcore.
4904 * config/arm/tune.md: Regenerate.
4905 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
4906 Define.
4907 (all_architectures): Add armv6k, armv6z, armv6zk.
4908 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
4909 * doc/invoke.texi: Document new arch and cpu values.
4910
4911 2004-10-12 Paul Brook <paul@coodesourcery.com>
4912
4913 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
4914 meabi=4.
4915
4916 2004-10-12 Paul Brook <paul@codesourcery.com>
4917
4918 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
4919 Handle negative constants.
4920
4921 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
4922
4923 PR c/17301
4924 * c-typeck.c (convert_arguments): Return error_mark_node if there
4925 are too few arguments.
4926 (build_function_call): Handle error_mark_node return from
4927 convert_arguments.
4928
4929 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
4930
4931 * configure.ac (symbolic_link): Replace with $LN_S.
4932 (Assembler/Linker): Hard link from gas and binutils trees.
4933 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
4934 * configure: Regenerate.
4935
4936 2004-10-12 Paul Brook <paul@codesourcery.com>
4937
4938 * configure.ac: Don't look for host assembler when building a canadian
4939 cross.
4940 * configure: Regenerate.
4941
4942 2004-10-11 Roger Sayle <roger@eyesopen.com>
4943
4944 PR other/17361
4945 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
4946 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
4947 line options for "-lang-asm" and if found allow any of the C-family
4948 front-end options.
4949 (c_common_handle_option): Remove last use of permit_fortran_options.
4950
4951 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
4952
4953 * config/s390/s390.c (print_operand): Support 'S' format flag.
4954 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
4955 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
4956 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
4957 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
4958 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
4959 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
4960 ("*movstricthi"): Likewise.
4961 ("*load_multiple_di", "*load_multiple_si"): Likewise.
4962 ("*store_multiple_di", "*store_multiple_si"): Likewise.
4963 ("*sethiqisi", "*sethihisi"): Likewise.
4964 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
4965 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
4966 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
4967 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
4968 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
4969
4970 ("*tmhi_full"): Fix incorrect op_type attribute.
4971
4972 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
4973 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
4974 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
4975 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
4976
4977 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
4978
4979 PR middle-end/16266
4980 * function.c (temp_slots_at_level): Fix typo which creates too
4981 many temp stack slots levels.
4982
4983 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
4984
4985 * config/s390/s390.c (s390_trampoline_template): Generate shorter
4986 trampoline code.
4987 (s390_trampoline_instantiate): Adapt.
4988 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
4989
4990 2004-10-11 Roger Sayle <roger@eyesopen.com>
4991
4992 PR middle-end/17657
4993 * stmt.c (add_case_node): Add additional type argument. Declare
4994 as static to match prototype. Convert the upper and lower bounds
4995 to the specified index type. Optimize away case ranges/values
4996 that are outside the index type's bounds. Truncate case ranges
4997 that span the index type's bounds.
4998 (expand_case): Avoid unnessary computation and memory allocation
4999 when index type is error_mark_node. Pass index_type as required
5000 by change to add_case_node API. No need to convert case range
5001 bounds to index_type, this is now done by add_case_node.
5002
5003 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
5004
5005 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
5006 * config/s390/s390.c (s390_offset_p): New function.
5007 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
5008 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
5009 transform Q->Q alternatives to *clc pattern.
5010 ("*clc"): Move.
5011 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
5012 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
5013 to transform Q->Q alternatives to *mvc pattern.
5014 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
5015 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
5016 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
5017 transform Q->Q alternatives to *nc pattern.
5018 ("*nc"): New insn. New peephole to merge adjacent NCs.
5019 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
5020 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
5021 transform Q->Q alternatives to *oc pattern.
5022 ("*oc"): New insn. New peephole to merge adjacent OCs.
5023 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
5024 transform Q->Q alternatives to *xc pattern.
5025 ("*xc"): New insn. New peephole to merge adjacent XCs.
5026 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
5027
5028 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
5029
5030 * gimplify.c (gimple_push_condition): Make sure that we don't
5031 have any saved condition cleanup if we were at the top level.
5032
5033 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
5034
5035 * config/frv/frv.md (*adddi3_internal): Change name to...
5036 (adddi3): ...replacing the exisiting define_expand. Combine
5037 alternatives. Fix the range of the constant constraints ('J' instead
5038 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
5039 to extract the lower and upper halves of the DImode operands.
5040 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
5041 (adddi3_lower): Fix the range of the constant constraints and
5042 remove the bogus operands[2] check.
5043 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
5044 operand 2. Use addxi to handle constant operands.
5045 (subdi3_lower, subdi3_upper): Don't handle constant operands.
5046
5047 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
5048
5049 * gengtype-lex.l: Add commented } & ) characters to unconfuse
5050 editor's paren matching. Allow #define inside a struct.
5051
5052 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
5053
5054 PR middle-end/17703
5055 part of PR c++/17657
5056 * fold-const.c (fold_build_cleanup_point_expr): New function.
5057 * tree.h (fold_build_cleanup_point_expr): Prototype.
5058
5059 2004-10-10 Eric Christopher <echristo@redhat.com>
5060
5061 * dwarf2out.c: Move attribute to subprogram declaration
5062 instead of subroutine type.
5063
5064 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
5065
5066 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
5067 hoist_insn_after, and hoist_insn_to_edge.
5068 * rtl.h: Remove the prototypes for reg_referenced_between_p,
5069 no_jumps_between_p, and insn_dependent_p.
5070 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
5071 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
5072 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
5073 hoist_insn_to_edge): Remove.
5074
5075 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
5076
5077 PR c/17881
5078 * c-decl.c (grokparms): Don't warn for parameters of incomplete
5079 type in declarations that are not definitions except for the case
5080 of parameters of void type.
5081
5082 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
5083
5084 * tree-cfg.c: Fix comment typos.
5085
5086 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
5087
5088 PR c/17301
5089 * builtins.c (expand_builtin_va_start): Check for too few
5090 arguments to va_start.
5091
5092 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
5093
5094 PR c/17189
5095 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
5096 fields a pedwarn. Pedwarn here for unnamed structs/unions if
5097 pedantic.
5098 * c-parse.in (component_decl): Don't pedwarn here for unnamed
5099 fields.
5100
5101 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
5102
5103 PR tree-optimization/17906
5104 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
5105 copy non-gimple reg arguments.
5106
5107 2004-10-09 Roger Sayle <roger@eyesopen.com>
5108
5109 PR rtl-optimization/17853
5110 * simplify-rtx.c (simplify_relational_operation): Correct comment.
5111 Reorganize handling of comparison operations with floating point
5112 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
5113 Likewise, introduce support for comparison operations with vector
5114 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
5115
5116 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
5117 * doc/tm.texi: Likewise.
5118
5119 2004-10-09 Steven Bosscher <stevenb@suse.de>
5120
5121 * regs.h (struct reg_info_def): Remove the last_node_uid and
5122 changes_mode fields.
5123 (REGNO_LAST_NOTE_UID): Don't define.
5124 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
5125 * regmove.c (copy_src_to_dest): Likewise.
5126
5127 2004-10-09 Roger Sayle <roger@eyesopen.com>
5128
5129 PR middle-end/17894
5130 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
5131 relational comparison operator op needs to be swapped/reversed when
5132 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
5133
5134 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
5135
5136 PR tree-opt/17902
5137 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
5138 instead of bsi_start.
5139 (value_replacement): Likewise.
5140 (abs_replacement): Likewise
5141
5142 2004-10-09 Steven Bosscher <stevenb@suse.de>
5143
5144 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
5145 (expand_gimple_cond_expr, expand_gimple_tailcall,
5146 expand_gimple_basic_block): Use it to dump RTL for each stmt.
5147 (tree_expand_cfg): Announce full RTL function dump.
5148 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
5149 not the graph version.
5150 * tree-pretty-print.c (dump_generic_node): Allow empty statements
5151 in the arms of a COND_EXPR for lowered nodes.
5152
5153 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
5154
5155 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
5156 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
5157 strtoufix16, strtoufix32, strtoufix64): Declare.
5158
5159 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
5160
5161 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
5162 for an out-of-range floating point constant.
5163 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
5164 warning if the target format does not support infinities.
5165
5166 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
5167
5168 * emit-rtl.c (last_label_num, base_label_num): Remove.
5169 (max_label_num): Always return label_num.
5170 (set_new_last_label_num, restore_emit_status): Remove.
5171 (init_emit): Don't initialize last_label_num.
5172 * function.c (pop_function_context_from): Don't call
5173 restore_emit_status.
5174 * function.h: Remove the prototype for restore_emit_status.
5175 * rtl.h: Remove the prototype for set_new_last_label_num.
5176
5177 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
5178
5179 * stmt.c (expand_decl_init): Remove.
5180 * tree.h: Remove the corresponding prototype.
5181
5182 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
5183
5184 * integrate.c (try_constants, subst_constants, mark_stores):
5185 Remove.
5186 * integrate.h: Remove the prototype for try_constants.
5187
5188 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
5189
5190 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
5191 (convert_for_assignment): Handle ic_argpass_nonproto. Add
5192 comments about its relevance to errors.
5193 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
5194
5195 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
5196
5197 PR c/16999
5198 * c-ppoutput.c (cb_ident): Don't quote string as it is already
5199 quoted.
5200
5201 2004-10-08 Diego Novillo <dnovillo@redhat.com>
5202
5203 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
5204 reference_node_pool.
5205
5206 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
5207
5208 * tree-cfg.c: Fix a comment typo.
5209
5210 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
5211
5212 * config/s390/s390.c (s390_register_info): Don't save fprs for
5213 -msoft-float.
5214 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
5215
5216 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
5217
5218 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
5219 (TARGET_DEFAULT): Use symbolic values.
5220 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
5221 (TARGET_DEFAULT): Use symbolic values.
5222 * config/s390/s390.c (s390_backchain_string): Initialize to
5223 TARGET_DEFAULT_BACKCHAIN.
5224
5225 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5226
5227 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
5228 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
5229 code.
5230 (expand_builtin_strcat): Accept a type parameter.
5231 (fold_builtin_mempcpy): Accept a type and endp parameter.
5232
5233 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
5234 Accept an `exp' instead of an `arglist'.
5235
5236 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
5237
5238 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
5239 reverting my 2004-09-07 patch to use build_int_cst.
5240
5241 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
5242
5243 PR target/17245
5244 * config/sparc/sparc.c (input_operand): Remove redundant code
5245 for handling LO_SUM.
5246 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
5247 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
5248 Otherwise only accept it for TFmode if quad move insns are available.
5249
5250 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
5251
5252 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
5253 common cases will be caught earlier than others.
5254
5255 2004-10-08 Michael Matz <matz@suse.de>
5256
5257 * loop-doloop.c (doloop_optimize): Extend count.
5258
5259 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
5260
5261 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
5262 (prefetch): Convert to expander.
5263
5264 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
5265
5266 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
5267 first argument of CALL.
5268 (tls_local_dynamic): Likewise.
5269
5270 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
5271
5272 * c-typeck.c (enum impl_conv): New.
5273 (convert_for_assignment): Use it. Take tree for function called
5274 instead of its name. Handle ObjC selectors for diagnostics at
5275 start of function. Select diagnostic text within the function
5276 using full sentences for diagnsotics. Use %qE to name functions
5277 in diagnostics.
5278 (convert_arguments, build_modify_expr,
5279 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
5280 callers to convert_for_assignment.
5281 (warn_for_assignment): Remove.
5282
5283 2004-10-08 Nick Clifton <nickc@redhat.com>
5284
5285 * config/sh/symbian.c (symbian_possibly_export_base_class):
5286 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
5287 TYPE_CONTAINS_VPTR_P.
5288
5289 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5290
5291 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
5292 fixed registers form all_used_regs. Update call_really_used_regs.
5293 (CALL_REALLY_USED_REGISTERS): Define.
5294 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
5295 with call_really_used_regs.
5296
5297 2004-10-08 Alan Modra <amodra@bigpond.net.au>
5298
5299 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
5300 for -profile as well as -p and -pg.
5301
5302 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
5303
5304 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
5305
5306 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
5307
5308 * tree-cfg.c (tree_block_forwards_to): Remove.
5309 * tree-flow.h: Remove the corresponding prototype.
5310
5311 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
5312
5313 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
5314 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
5315
5316 2004-10-07 Geoffrey Keating <geoffk@apple.com>
5317
5318 Radar 3813796
5319 * config/rs6000/rs6000.c (rs6000_generate_compare): When
5320 flag_trapping_math is in effect, don't generate subtract
5321 instructions.
5322
5323 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
5324
5325 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
5326 * config/s390/s390.c (s390_narrow_logical_operator): New function.
5327 (s390_extra_constraint_str): Add 'A' constraints.
5328 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
5329 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
5330 (CONSTRAINT_LEN): Likewise.
5331 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
5332 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
5333 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
5334 ("*iordi3"): Add OI alternative and splitter.
5335 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
5336 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
5337 ("*xordi3"): Add XI alternative and splitter.
5338 ("*xorsi3", "*xorhi3"): Likewise.
5339
5340 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
5341
5342 * config/mips/mips.c (mips_function_rodata_section): New function.
5343 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
5344
5345 2004-10-07 Devang Patel <dpatel@apple.com>
5346
5347 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
5348 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
5349 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
5350 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
5351 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
5352 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
5353 UNSPEC_VCONDU_V16QI): New constant defines.
5354 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
5355 vconduv16qi): New patterns.
5356 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
5357 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
5358 (get_vec_cmp_insn): Same.
5359 (get_vsel_insn): Same.
5360 (rs6000_emit_vector_compare): Same.
5361 (rs6000_emit_vector_select): Same.
5362 (INSN_NOT_AVAILABLE): New.
5363
5364 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
5365
5366 PR tree-optimization/17749
5367 * tree-tailcall.c (find_tail_calls): Check that parameter is
5368 a gimple_reg.
5369
5370 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
5371
5372 * config/ia64/ia64.c: Fix a comment typo.
5373
5374 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5375
5376 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
5377
5378 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5379
5380 PR c++/17115
5381 * tree-inline.c (expand_call_inline): Do not warn for functions
5382 marked with attribute noinline.
5383
5384 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5385
5386 PR target/17862
5387 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
5388 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
5389
5390 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
5391 of 0 as 4th argument to pass_by_reference.
5392 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
5393
5394 2004-10-06 Eric Christopher <echristo@redhat.com>
5395
5396 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
5397 attribute.
5398
5399 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
5400
5401 PR target/17770
5402 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
5403
5404 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
5405
5406 PR rtl-optimization/17791
5407 * loop-doloop.c (doloop_modify): Take number of iterations as
5408 argument.
5409 (doloop_optimize): Extend or shorten the number of iterations
5410 when changing mode of counter register.
5411 * loop-iv.c (lowpart_subreg): Export.
5412 * rtl.h (lowpart_subreg): Declare.
5413
5414 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
5415
5416 PR tree-optimization/17806
5417 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
5418 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
5419 flags moved to split_edge.
5420
5421 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5422
5423 PR middle-end/17835
5424 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
5425 before tentatively building the conditional move sequence.
5426
5427 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
5428
5429 PR target/16815
5430 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
5431 check.
5432 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
5433 function_arg_padding.
5434
5435 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
5436
5437 PR bootstrap/17857
5438 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
5439
5440 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
5441
5442 * hooks.c (hook_int_void_1, hook_void_int): Remove.
5443 * hooks.h: Remove the corresponding prototypes.
5444
5445 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
5446
5447 PR middle-end/17849
5448 * tree-nested.c (walk_stmt_info): Add changed field.
5449 (convert_nonlocal_reference): Set changed to when we
5450 change a decl to unnested decl.
5451 <case ADDR_EXPR>: Instead of checking if the immediate part
5452 of the ADDR_EXPR changed, check the field changed.
5453 Use recompute_tree_invarant_for_addr_expr instead of unsetting
5454 TREE_INVARIANT.
5455 (convert_local_reference): Set changed to when we
5456 change a decl to unnested decl.
5457 <case ADDR_EXPR>: Instead of checking if the immediate part
5458 of the ADDR_EXPR changed, check the field changed.
5459 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
5460
5461 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
5462
5463 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
5464 * dwarf2out.c (dwarf2out_init): Remove references to
5465 DWARF2_GENERATE_TEXT_SECTION_LABEL.
5466 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
5467 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
5468
5469 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
5470
5471 * c-typeck.c (convert_arguments): Take expression for called
5472 function rather than its name. Handle ObjC selectors directly
5473 rather than relying on warn_for_assignment to do so. Call warning
5474 directly rather than warn_for_assignment. Use %qE in diagnostics.
5475 Say "argument" rather than "arg" in diagnostics.
5476 (build_function_call): Update call to convert_arguments.
5477
5478 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
5479
5480 PR debug/17787
5481 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
5482 ENUMs specially instead of just saying we do.
5483
5484 2004-10-06 Eric Christopher <echristo@redhat.com>
5485
5486 * dwarf2.h: Sync with include/elf/dwarf2.h
5487
5488 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
5489
5490 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
5491 and TREE_VEC nodes.
5492
5493 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
5494
5495 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
5496 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
5497
5498 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
5499
5500 * lambda-code.c (compute_nest_using_fourier_motzkin): New
5501 function.
5502 (lambda_compute_auxillary_space): Split from here.
5503
5504 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
5505
5506 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
5507 * tree-flow.h: Add prototype.
5508 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
5509 expr_invariant_in_loop.
5510
5511 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
5512
5513 * tree-cfg.c (thread_jumps): Remove a duplicate check for
5514 EXIT_BLOCK_PTR.
5515
5516 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
5517
5518 * config/s390/s390-protos.h (s_imm_operand): Remove.
5519 (s390_pool_operand): Add prototype.
5520 * config/s390/s390.c (general_s_operand): Remove.
5521 (s_imm_operand): Remove.
5522 (s_operand): Merge contents of general_s_operand.
5523 (s390_pool_operand): New function.
5524 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
5525 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
5526 ("*cmpdi_ccu"): Merge Q->Q alternative.
5527 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
5528 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
5529 ("*cli"): Remove.
5530 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
5531 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
5532 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
5533
5534 2004-10-06 Steve Ellcey <sje@cup.hp.com>
5535
5536 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
5537 call ia64_function_arg_boundary.
5538 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
5539 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
5540 (ia64_function_arg_advance): Do not put 128 bit floats into
5541 FP registers.
5542
5543 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5544
5545 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
5546 Accept an expression instead of an arglist.
5547 (expand_builtin_stpcpy): Accept an expression instead of an
5548 arglist.
5549
5550 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5551
5552 PR target/16007
5553 * doc/install.texi (*-*-solaris2*): Mention potential problem
5554 with Sun assembler + GNU linker and C++ programs.
5555 Document status of binutils 2.15 release.
5556
5557 2004-10-06 Jan Hubicka <jh@suse.cz>
5558
5559 * cse.c (cse_main): Kill push/pop context.
5560
5561 2004-10-05 Zack Weinberg <zack@codesourcery.com>
5562
5563 * pretty-print.c: Include tree.h.
5564 (pp_base_prepare_to_format): New function, logic from
5565 text_specifies_location.
5566 (pp_base_format_text): Use gcc_assert.
5567 * pretty-print.h (pp_prepare_to_format): New macro.
5568 (pp_base_prepare_to_format): Prototype.
5569 * diagnostic.c (text_specifies_location): Delete.
5570 (bug_report_request): Delete.
5571 (diagnostic_set_info): Don't call text_specifies_location.
5572 (diagnostic_action_after_output): Put text from
5573 bug_report_request inline here. Use gcc_unreachable.
5574 (diagnostic_report_current_function): Fix comment.
5575 (diagnostic_report_diagnostic): Clarify logic for error recursion.
5576 Call pp_prepare_to_format before diagnostic_starter.
5577 (trim_filename): Use IS_DIR_SEPARATOR.
5578 (fatal_error, internal_error): Use gcc_unreachable.
5579 (error_recursion): Call diagnostic_action_after_output to
5580 issue the bug_report_request message and exit.
5581 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
5582
5583 * c-parse.in: Add list of diagnostic messages to insulate
5584 translation template from version of yacc/bison used to
5585 compile the grammar.
5586
5587 2004-10-06 Alan Modra <amodra@bigpond.net.au>
5588
5589 PR 16406
5590 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
5591
5592 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5593
5594 * basic-block.h: Remove the prototype for
5595 flow_preorder_transversal_compute.
5596 * cfganal.c (dfst_node): Remove.
5597 (flow_preorder_transversal_compute): Likewise.
5598 * rtl.h: Remove the prototype for get_jump_table_offset.
5599 * rtlanal.c (get_jump_table_offset): Remove.
5600
5601 2004-10-05 Richard Henderson <rth@redhat.com>
5602
5603 PR 17756
5604 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
5605
5606 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
5607
5608 PR bootstrap/17817
5609 * Makefile.in: Stage the build directory too.
5610
5611 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
5612
5613 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
5614
5615 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
5616 (frv_emit_move): Same.
5617
5618 * config/frv/frv.c (frv_emit_move): New.
5619 (frv_legitimize_address): New.
5620
5621 * config/frv/frv.md ("movsi"): Call frv_emit_move.
5622 ("movqi"): Same.
5623 ("movhi"): Same.
5624 ("movdi"): Same.
5625 ("movsf"): Same.
5626 ("movdf"): Same.
5627
5628 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
5629
5630 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
5631 system headers.
5632
5633 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
5634
5635 * c-decl.c (pushdecl): When an extern declaration at block scope
5636 refers to a visible entity with internal linkage, use the old DECL
5637 rather than the new one.
5638
5639 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5640
5641 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
5642 comments.
5643
5644 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5645
5646 * tree-cfg.c (thread_jumps): Remove a duplicate check for
5647 an infinite loop.
5648
5649 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5650
5651 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
5652 of FOR_BB_BETWEEN. Remove a useless check for unreachable
5653 blocks.
5654
5655 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5656
5657 * tree-cfg.c (cleanup_tree_cfg): Don't call
5658 delete_unreachable_blosk() after thread_jumps().
5659 (thread_jumps): Always remove basic blocks as they become
5660 unreachable.
5661
5662 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5663
5664 * tree-cfg.c (cleanup_tree_cfg): Remove variable
5665 something_changed. Simplify the while loop.
5666
5667 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5668
5669 * builtins.c (expand_builtin_memmove): Delete duplicate code
5670 and accept a tree type for the result.
5671 (expand_builtin_bcopy): Accept a tree type for the result.
5672 (fold_builtin_memmove): Accept an arglist and tree type for
5673 the result.
5674
5675 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5676
5677 * config/s390/s390.c (s390_dump_pool): Remove return value.
5678 Use gen_pool_align, gen_pool_section_start/end instead of
5679 gen_pool_start/end_31/64.
5680 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
5681 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
5682 ("pool_start_31", "pool_end_31"): Remove.
5683 ("pool_start_64", "pool_end_64"): Likewise.
5684 ("pool_align", "pool_section_start", "pool_section_end": New insns.
5685
5686 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
5687 (TARGET_CANNOT_COPY_INSN_P): Define.
5688 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
5689 (struct constant_pool): New member 'execute'.
5690 (s390_add_execute, s390_find_execute): New functions.
5691 (s390_execute_label, s390_execute_target): Likewise.
5692 (s390_dump_pool): Output in-pool execute target templates.
5693 (s390_dump_execute): New function.
5694 (s390_alloc_pool, s390_free_pool): Handle execute templates.
5695 (s390_mainpool_start, s390_mainpool_finish): Likewise.
5696 (s390_chunkify_start, s390_chunkify_finish): Likewise.
5697 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
5698 ("*execute"): New insn pattern.
5699 ("movmem_short", "*movmem_short"): Use splitters to generate
5700 explicit execute pattern, remove embedded execute.
5701 ("clrmem_short", "*clrmem_short"): Likewise.
5702 ("cmpmem_short", "*cmpmem_short"): Likewise.
5703
5704 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
5705
5706 * tree-ssa.c (verify_ssa): Verify phi arguments only
5707 contain renamed names.
5708
5709 2004-10-05 Alan Modra <amodra@bigpond.net.au>
5710
5711 * config/rs6000/linux.h: Formatting, whitespace.
5712 * config/rs6000/linux64.h: Likewise.
5713 * config/rs6000/rs6000-protos.h: Likewise.
5714 * config/rs6000/rs6000.c: Likewise.
5715 (easy_vector_splat_const): Add fall thru comments.
5716 (output_vec_const_move): Likewise.
5717
5718 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
5719
5720 * Makefile.in: Update -Wno-error exceptions for move to build dir.
5721
5722 2004-10-05 Chao-Ying Fu <fu@mips.com>
5723 Richard Sandiford <rsandifo@redhat.com>
5724
5725 * doc/invoke.texi (-mpaired-single): Link to the new description of the
5726 built-in functions. Document dependencies.
5727 (-mips3d): Add link here too.
5728 * doc/extend.texi (MIPS Paired-Single Support): New section.
5729
5730 2004-10-04 Chao-ying Fu <fu@mips.com>
5731
5732 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
5733
5734 2004-10-04 Diego Novillo <dnovillo@redhat.com>
5735
5736 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
5737 Initialize OPT_STATS to 0.
5738
5739 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
5740
5741 * tree-data-ref.c: Fix comment typos.
5742
5743 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
5744
5745 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
5746 the predicate cannot be computed, don't initialize the result to
5747 false.
5748
5749 2004-10-01 Eric Christopher <echristo@redhat.com>
5750
5751 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
5752 locally defined enum.
5753 * dwarf2out.c (add_calling_convention_attribute): Don't
5754 emit DW_CC_normal.
5755
5756 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
5757
5758 PR c/17178, PR c/17820
5759 * c-decl.c (pop_scope): Do not warn about unused static
5760 variables as they warned in the middle-end.
5761
5762 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5763
5764 * builtins.c (expand_builtin_memcpy): Delete duplicate code
5765 and make the first parameter the expression not the arglist.
5766
5767 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
5768
5769 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
5770 as valid modes to expand address expressions.
5771
5772 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
5773
5774 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
5775 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
5776 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
5777 code formatting conventions.
5778
5779 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
5780
5781 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
5782
5783 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
5784
5785 PR tree-optimization/16632
5786 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
5787 fold (A & C) == D into 0, fold ~C. Similarly, for the case
5788 where | is used instead of &.
5789
5790 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
5791
5792 * ginclude/stddef.h: Fix a comment typo.
5793
5794 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5795
5796 PR target/17443
5797 * config.gcc (i?86-*-solaris2*): Restore correct logic
5798 for --enable-threads option.
5799 (sparc64-*-solaris2*): Likewise.
5800 (sparc-*-solaris2*): Likewise.
5801
5802 2004-10-03 Alan Modra <amodra@bigpond.net.au>
5803
5804 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
5805 (OS_MISSING_POWERPC64): Move, and comment.
5806 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
5807 (OS_MISSING_POWERPC64): Move, and comment.
5808
5809 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
5810
5811 * arm.c (output_call_mem): Add missing \t.
5812
5813 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5814
5815 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
5816 expand_builtin_strncmp): Delete duplicate code.
5817
5818 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
5819
5820 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
5821 take check-base and -limit arguments.
5822 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
5823 check ranges for ARRAY_REF and COMPONENT_REF.
5824 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
5825 instrumentation.
5826
5827 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
5828
5829 * c-objc-common.c (c_tree_printer): Correct description of %E.
5830 Don't fall through after printing an expression.
5831
5832 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
5833
5834 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
5835
5836 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
5837
5838 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
5839 delete_unrechable_blocks() only when necessary.
5840
5841 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
5842
5843 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
5844 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
5845 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
5846 __gthread_recursive_mutex_unlock): New functions.
5847
5848 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
5849
5850 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
5851 * config/s390/tpf-eh.c: Remove file.
5852 * config/s390/tpf-unwind.h: New file.
5853 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
5854 (MD_UNWIND_SUPPORT): Define.
5855
5856 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
5857
5858 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
5859
5860 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
5861
5862 * config/s390/s390-protos.h (s390_comparison): Add prototype.
5863 * config/s390/s390.c (s390_comparison): New function.
5864 (s390_branch_condition_mask): Return -1 for invalid comparisons.
5865 (s390_branch_condition_mnemonic): Assert valid comparison.
5866 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
5867 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
5868 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
5869 s390_comparison instead of comparison_operator.
5870
5871 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
5872 ("cmpmemdi"): Remove.
5873 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
5874 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
5875 ("cmpint_si"): Rename to ...
5876 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
5877 ("cmpint_di", "*cmpint_di"): Likewise.
5878 * config/s390/s390.c (s390_canonicalize_comparison): Remove
5879 redundant UNSPEC_CMPINT conversions.
5880 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
5881
5882 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
5883
5884 * collect2.c (COLLECT_PARSE_FLAG): Remove.
5885 (main): Remove a reference to COLLECT_PARSE_FLAG
5886 * system.h: Poison COLLECT_PARSE_FLAG.
5887 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
5888
5889 2004-10-01 Paul Brook <paul@codesourcery.com>
5890
5891 * config/arm/crti.asm: Give _init and _fini function type.
5892
5893 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
5894
5895 * common.opt (ftree-loop-ivcanon): Enable by default.
5896 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5897 Enable complete loop unrolling.
5898 (canonicalize_induction_variables, tree_unroll_loops_completely):
5899 Reset scev info.
5900
5901 2004-10-01 Paul Brook <paul@codesourcery.com>
5902
5903 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
5904 not register number.
5905 (thumb_find_work_register): Search full register range.
5906
5907 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
5908
5909 PR tree-opt/17343
5910 * tree-cfg.c (group_case_labels): Get the label and not
5911 the case expr for the default case.
5912 When the label we looking at is the default, decrement the
5913 new_size.
5914
5915 2004-10-01 Jan Hubicka <jh@suse.cz>
5916
5917 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
5918 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5919 * toplev.h (tree_rest_of_compilation): Update prototype.
5920 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
5921
5922 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
5923
5924 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
5925 cleanup_control_flow() out of the while loop.
5926
5927 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
5928
5929 * tree-vectorizer.c (vectorizable_operation): Fail unless
5930 the mode for the vector type is indeed a vector mode.
5931
5932 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
5933
5934 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
5935 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
5936 of convert.
5937 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
5938 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
5939 follow_ssa_edge_in_rhs): Ditto.
5940 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
5941 (dump_iv): Dump base_object.
5942 (dump_use, dump_cand): Use dump_iv.
5943 (determine_base_object): New function.
5944 (alloc_iv): Initialize base_object field.
5945 (record_use): Clear the ssa_name field of iv.
5946 (get_computation_cost_at): Do not use difference of addresses of
5947 two different objects.
5948 (may_eliminate_iv): Do not require the loop to have just single exit.
5949 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
5950 (nonzero_p): New function.
5951 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
5952 tree_simplify_using_condition, simplify_using_initial_conditions,
5953 loop_niter_by_eval, find_loop_niter_by_eval,
5954 estimate_numbers_of_iterations_loop, compare_trees,
5955 upper_bound_in_type, lower_bound_in_type,
5956 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
5957 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
5958 instead of integer_(non)zerop.
5959
5960 2004-10-01 Jakub Jelinek <jakub@redhat.com>
5961
5962 Revert
5963 2004-09-29 Jakub Jelinek <jakub@redhat.com>
5964
5965 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
5966 and TI_VA_LIST_FPR_COUNTER_FIELD.
5967 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
5968 * tree-pass.h (pass_stdarg): Add.
5969 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
5970 * tree-stdarg.c: New file.
5971 * Makefile.in (OBJS-common): Add tree-stdarg.o.
5972 (tree-stdarg.o): Add dependencies.
5973 * function.h (struct function): Add va_list_gpr_size and
5974 va_list_fpr_size fields.
5975 * function.c (allocate_struct_function): Initialize them.
5976
5977 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
5978 va_list_{g,f}pr_counter_field.
5979 (ix86_setup_incoming_varargs): Don't do anything if reg_save
5980 area will not be used. Only save registers that tree-stdarg.c
5981 detected they need saving.
5982 (ix86_va_start): Don't set up fields that won't be used.
5983
5984 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
5985 va_list_{g,f}pr_counter_field.
5986 (setup_incoming_varargs): Don't do anything if reg_save
5987 area will not be used. Only save registers that tree-stdarg.c
5988 detected they need saving.
5989 (rs6000_va_start): Don't set up fields that won't be used.
5990
5991 2004-09-30 Eric Christopher <echristo@redhat.com>
5992
5993 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
5994 sh abi.
5995 * dwarf2out.c (add_calling_convention_attribute): New function.
5996 (gen_subroutine_type_die): Use.
5997 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
5998 * target.h (gcc_target): Add dwarf_calling_convention.
5999 * hooks.c (hook_int_tree_0): New function.
6000 * hooks.h: Prototype.
6001 * config/sh/sh.c: Include dwarf2.h.
6002 (sh_dwarf_calling_convention): New function.
6003 (TARGET_DWARF_CALLING_CONVENTION): Use.
6004 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
6005
6006 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6007
6008 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
6009 expand_builtin_strrchr, expand_builtin_strpbrk,
6010 expand_builtin_strncat, expand_builtin_strspn,
6011 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
6012 code.
6013
6014 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
6015
6016 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
6017 prototype.
6018 (s390_logical_operator_ok_p): Likewise.
6019 * config/s390/s390.c (s390_expand_logical_operator): New function.
6020 (s390_logical_operator_ok_p): Likewise.
6021 * config/s390/s390.md ("anddi3"): New expander.
6022 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
6023 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
6024 ("andsi3"): Use s390_expand_logical_operator.
6025 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
6026 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
6027 ("andhi3"): New expander.
6028 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
6029 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
6030 ("andqi3"): New expander.
6031 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
6032 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
6033 ("iordi3"): New expander.
6034 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
6035 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
6036 ("iorsi3"): Use s390_expand_logical_operator.
6037 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
6038 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
6039 ("iorhi3"): New expiorer.
6040 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
6041 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
6042 ("iorqi3"): New expiorer.
6043 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
6044 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
6045 ("xordi3"): New expander.
6046 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
6047 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
6048 ("xorsi3"): New expander.
6049 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
6050 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
6051 ("xorhi3"): New expander.
6052 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
6053 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
6054 ("xorqi3"): New expander.
6055 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
6056 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
6057
6058 2004-09-30 Roger Sayle <roger@eyesopen.com>
6059
6060 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
6061 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
6062 machine mode as the result.
6063
6064 2004-09-30 Ben Elliston <bje@au.ibm.com>
6065
6066 PR bootstrap/17761
6067 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
6068 FOR_EACH_EDGE macros.
6069
6070 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
6071
6072 * c-tree.h (readonly_error): Remove.
6073 * c-typeck (enum lvalue_use): New.
6074 (lvalue_or_else, readonly_error): Use it. All callers changed.
6075 (readonly_error): Make static.
6076
6077 2004-09-30 Jan Hubicka <jh@suse.cz>
6078
6079 PR debug/13974
6080 * cfgrtl.c (try_redirect_by_replacing_jump,
6081 force_nonfallthru_and_redirect, commit_one_edge_insertion,
6082 cfg_layout_merge_blocks): Do not attach any line number information
6083 to newly inserted instructions.
6084 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
6085 emit_insn_*_noloc.
6086 (emit_*insn_before, emit_insn*_after): New.
6087 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
6088 existing locators.
6089 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
6090 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
6091
6092 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
6093
6094 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
6095 (s390_return_address_offset): Remove.
6096 (s390_can_eliminate): Add prototype.
6097 (s390_initial_elimination_offset): Add prototype.
6098 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
6099 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
6100 * config/s390/s390.c (s390_arg_frame_offset): Remove.
6101 (s390_return_address_offset): Remove.
6102 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
6103 (struct machine_function): New member split_branches_pending_p.
6104 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
6105 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
6106 (s390_optimize_prologue): Remove base_used argument. Call
6107 s390_update_frame_layout instead of s390_register_info. Handle
6108 prologue/epilogue insns that touch only RETURN_REGNUM.
6109 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
6110 (s390_register_info): Remove base_used and return_addr_used
6111 arguments, compute special register usage inline. Return live
6112 register data to caller.
6113 (s390_frame_info): Remove arguments, do not call s390_register_info.
6114 (s390_init_frame_layout): New function.
6115 (s390_update_frame_layout): Likewise.
6116 (s390_emit_prologue): Call s390_update_frame_layout; some code
6117 move to there. Do not emit pool placeholder insn if unnecessary.
6118
6119 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
6120
6121 * config/s390/s390.c (legitimate_reload_constant_p): Remove
6122 floating point constant workaround.
6123 (s390_secondary_input_reload_class): Handle PLUS reloads
6124 with too-large constant.
6125 (s390_expand_plus_operand): Likewise.
6126 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
6127 ("movsi"): Likewise. Also, remove workaround for non-general
6128 operands.
6129 ("movdf"): Do not call force_const_mem.
6130 ("movsf"): Likewise. Merge expander with *movsf insn.
6131 ("*movsf"): Remove, merge with movsf expander.
6132
6133 2004-09-30 Paul Brook <paul@codesourcery.com>
6134
6135 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
6136 (ENDFILE_SPEC): Define.
6137 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
6138
6139 2004-09-30 Richard Henderson <rth@redhat.com>
6140
6141 * config/alpha/qrnnd.asm: Mark for noexecstack.
6142
6143 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
6144
6145 * protoize.c, tree-cfg.c: Fix comment typos.
6146
6147 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
6148
6149 PR c/17730
6150 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
6151
6152 2004-09-30 Diego Novillo <dnovillo@redhat.com>
6153
6154 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
6155 expressions...
6156 (add_pointed_to_expr): ... here.
6157 Call add_pointed_to_expr for variables with DECL_INITIAL set.
6158 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
6159 pointer variable, if set.
6160
6161 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
6162
6163 * config/sh/sh.c: Follow spelling conventions.
6164
6165 2004-09-29 Richard Henderson <rth@redhat.com>
6166
6167 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
6168 * doc/tm.texi (DWARF_ZERO_REG): New.
6169
6170 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
6171 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
6172 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
6173
6174 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
6175
6176 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
6177 with a PLUS as source operand.
6178 (expand_movstr): Likewise.
6179 (expand_builtin_stpcpy): Likewise.
6180
6181 2004-09-29 Richard Henderson <rth@redhat.com>
6182
6183 PR 17739
6184 * tree-gimple.c (is_gimple_reg): Reject hard registers.
6185 (is_gimple_asm_val): New.
6186 * tree-gimple.h (is_gimple_asm_val): Declare.
6187 * gimplify.c (gimplify_asm_expr): Use it.
6188 * tree-pretty-print.c (print_declaration): Dump hard regs.
6189 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
6190 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
6191 * tree-ssa-pre.c (is_undefined_value): Likewise.
6192 * tree-ssa-copy.c (may_propagate_copy): Likewise.
6193 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
6194 * tree-ssa.c (warn_uninit): Likewise.
6195 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
6196
6197 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
6198
6199 * c-decl.c (merge_decls): Use comptype when comparing
6200 types to decide on DECL_SIZE save of olddecl.
6201
6202 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
6203
6204 * tree.h (INDIRECT_REF_P): New macro.
6205 * alias.c (get_alias_set): Use it
6206 (nonoverlapping_memrefs_p): Ditto.
6207 * emit-rtl.c (mem_expr_equal_p): Ditto.
6208 (set_mem_attributes_minus_bitpos): Ditto.
6209 (is_gimple_addressable): Ditto.
6210 (get_base_address): Ditto.
6211 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
6212 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
6213 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
6214 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
6215 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
6216 (add_address_candidates): Ditto.
6217 (rewrite_address_base): Ditto.
6218
6219 2004-09-30 Ben Elliston <bje@au.ibm.com>
6220
6221 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
6222 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
6223 (rewrite_ssa_into_ssa): Likewise.
6224 * tree-phinodes.c (create_phi_node): Access the number of
6225 predecessor edges using EDGE_COUNT() and not num_preds.
6226
6227 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
6228
6229 PR c/7425
6230 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
6231
6232 2004-09-29 Eric Christopher <echristo@redhat.com>
6233
6234 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
6235
6236 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
6237
6238 * config/cris/cris.md (moverside, movemside): With MEM, make sure
6239 the address is (plus reg mem).
6240
6241 2004-09-29 David Edelsohn <edelsohn@gnu.org>
6242
6243 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
6244
6245 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
6246
6247 * tree.c (make_node_stat): Fix uninitialized warning. Replace
6248 cascaded if ... else if with a switch.
6249
6250 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6251
6252 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
6253
6254 2004-09-29 Jakub Jelinek <jakub@redhat.com>
6255
6256 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
6257 and TI_VA_LIST_FPR_COUNTER_FIELD.
6258 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
6259 * tree-pass.h (pass_stdarg): Add.
6260 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
6261 * tree-stdarg.c: New file.
6262 * Makefile.in (OBJS-common): Add tree-stdarg.o.
6263 (tree-stdarg.o): Add dependencies.
6264 * function.h (struct function): Add va_list_gpr_size and
6265 va_list_fpr_size fields.
6266 * function.c (allocate_struct_function): Initialize them.
6267
6268 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
6269 va_list_{g,f}pr_counter_field.
6270 (ix86_setup_incoming_varargs): Don't do anything if reg_save
6271 area will not be used. Only save registers that tree-stdarg.c
6272 detected they need saving.
6273 (ix86_va_start): Don't set up fields that won't be used.
6274
6275 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
6276 va_list_{g,f}pr_counter_field.
6277 (setup_incoming_varargs): Don't do anything if reg_save
6278 area will not be used. Only save registers that tree-stdarg.c
6279 detected they need saving.
6280 (rs6000_va_start): Don't set up fields that won't be used.
6281
6282 2004-09-29 Jakub Jelinek <jakub@redhat.com>
6283
6284 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
6285 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
6286 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
6287 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
6288 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
6289 ATTR_NONNULL_1_4): New.
6290
6291 2004-09-29 Jakub Jelinek <jakub@redhat.com>
6292
6293 PR tree-optimization/17697
6294 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
6295 cfg if needed.
6296
6297 2004-09-28 Per Bothner <per@bothner.com>
6298
6299 * profile.c (branch_prob): Pass correct value to output_location,
6300 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
6301
6302 2004-09-28 Richard Henderson <rth@redhat.com>
6303
6304 PR 15089
6305 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
6306 * tree-flow.h (may_propagate_copy_into_asm): Declare.
6307 * tree-ssa-ccp.c (replace_uses_in): Use it.
6308 * tree-ssa-dom.c (cprop_operand): Likewise.
6309
6310 2004-09-28 Jeff Law <law@redhat.com>
6311
6312 * tree-ssa-threadupdate.c (create_block_for_threading): Request
6313 that no outgoing edges be left in the duplicate block. Do no
6314 update information on outgoing edges or PHI nodes in target
6315 blocks here.
6316 (remove_ctrl_stmt_and_useless_edges): Renamed from
6317 remove_last_stmt_and_useless_edges. Handle case where the
6318 block is empty or has no control statements. Do not update edge
6319 flags here.
6320 (thread_block): Create a template block rather than copying the
6321 original block every time. Create outgoing edges from the
6322 duplicate blocks and update PHIs at the target of the outgoing
6323 edges here. Fix edge flags for the original block if necessary.
6324 * cfghooks (duplicate_block): No longer assert that the original
6325 block has incoming edges.
6326
6327 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
6328
6329 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
6330 Reg Vars to enforce register allocation with general constraints.
6331 (Explicit Reg Vars): Clarify relation to asm statements.
6332 (Local Reg Vars): Similar.
6333
6334 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6335
6336 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
6337 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
6338 build_control_flow, new_edge): Remove.
6339 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
6340 (bitlst, bitlst_table_last, bitlst_table): Remove.
6341 (bblst): Store basic_block pointer instead of block index.
6342 (bblst_table): Likewise.
6343 (edgelst): Store edge pointer instead of edge index.
6344 (edgelst_table, edgelst_last): New variables.
6345 (extract_bitlst): Rename to ...
6346 (extract_edgelst): ... this. Return edge pointers, not indices.
6347 (split_edges): Update call.
6348 (rgn_edges): Store edge pointers instead of indices.
6349 (edge_to_bit): Remove.
6350 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
6351 (SET_EDGE_TO_BIT): New macro.
6352 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
6353 (find_rgns): Remove edge_list parameter. Traverse standard CFG
6354 data structures instead of haifa_edge et al. Use edge pointers
6355 instead of edge indices everywhere.
6356 (compute_dom_prob_ps): Use standard CFG data structures. Account
6357 for exit edges.
6358 (compute_trg_info): Likewise.
6359 (propagate_deps): Likewise.
6360 (debug_candidate): Account for bblst data structure change.
6361 (check_live_1, update_live_1, is_pfree): Likewise.
6362 (IS_REACHABLE): Use standard CFG data structures.
6363 (init_ready_list): Update bblst_table/edgelst_table allocation.
6364 (schedule_region): Update alloc/cleanup code to data structure
6365 changes. Use edge->aux to store per-region edge index.
6366 (init_regions): No longer call build_control_flow. Do not
6367 create edge list any more.
6368
6369 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6370
6371 * cse.c (cse_insn): Avoid creating direct non-local jumps.
6372 * combine.c (can_combine_p): Likewise.
6373 * local-alloc. (update_equiv_regs): Likewise.
6374
6375 2004-09-28 Richard Henderson <rth@redhat.com>
6376
6377 PR 17531
6378 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
6379 Don't check VOIDmode here. Force PLUS operands to common type.
6380 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
6381 Pmode if given a non pointer type.
6382
6383 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6384
6385 PR 17531
6386 * optabs.c (expand_binop): Force constants to the correct mode.
6387
6388 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6389
6390 * config/s390/s390.c (s390_adjust_cost): Remove.
6391 (TARGET_SCHED_ADJUST_COST): Do not redefine.
6392 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
6393 * config/s390/s390.md ("main_pool"): Use "larl" type
6394 attribute if TARGET_CPU_ZARCH.
6395
6396 2004-09-28 Jakub Jelinek <jakub@redhat.com>
6397
6398 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
6399 variable.
6400
6401 2004-09-28 Diego Novillo <dnovillo@redhat.com>
6402
6403 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
6404 name to the pass.
6405
6406 2004-09-28 Steven Bosscher <stevenb@suse.de>
6407
6408 * common.opt (flag_gcse_sm): Disable by default.
6409 (flag_gcse_las): Likewise.
6410 (flag_web): Likewise. Create from this file.
6411 * flags.h: Remove flag_web declaration.
6412 * toplev.c (flag_web): Likewise.
6413 (process_options): Never set flag_web.
6414
6415 2004-09-28 Steven Bosscher <stevenb@suse.de>
6416
6417 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
6418 * tree-ssa-propagate.c: Include vec.h.
6419 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
6420 instead of varrays.
6421 (cfg_blocks_add): Assert the block is not already in the worklist.
6422 Update uses of interesting_ssa_edges and varying_ssa_edges.
6423 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
6424 ssa_propagate): Likewise.
6425
6426 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
6427
6428 PR c/16409
6429 * c-decl.c (start_decl): Check for initializing incomplete array
6430 of VLAs.
6431 (build_compound_literal): Check for TYPE being error_mark_node.
6432 * c-parse.in (primary): Check for VLA compound literals.
6433
6434 2004-09-28 Diego Novillo <dnovillo@redhat.com>
6435
6436 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
6437 with --disable-checking.
6438
6439 2004-09-28 Devang Patel <dpatel@apple.com>
6440
6441 * tree-pretty-print.c (dump_generic_node): Print vector types.
6442
6443 2004-09-28 Nick Clifton <nickc@redhat.com>
6444
6445 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
6446 invocation of the function sh_init_cumulative_args.
6447 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
6448 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
6449 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
6450 * config/sh/sh.c (sh_init_cumulative_args): New function based
6451 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
6452 heuristic added to determine the setting of force_mem when a
6453 library function is being called.
6454
6455 2004-09-28 Diego Novillo <dnovillo@redhat.com>
6456
6457 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
6458 Skip constant arguments.
6459
6460 2004-09-28 Diego Novillo <dnovillo@redhat.com>
6461
6462 * tree-ssa-alias.c (create_name_tags): If PTR points to a
6463 volatile type, mark the tag volatile.
6464 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
6465 volatile.
6466
6467 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
6468
6469 * tree.def (vec_cond_expr): Fix. Change 'e'
6470 to tcc_expression.
6471
6472 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
6473
6474 * basic-block.h: Fix a comment typo.
6475
6476 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
6477
6478 * optabs.c, optabs.h: Fix comment typos.
6479
6480 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
6481
6482 * config/sparc/sparc.md (call_address_struct_value_sp32):
6483 Properly mask the immediate field of the 'unimp' instruction.
6484 (call_symbolic_struct_value_sp32): Likewise.
6485
6486 2004-09-28 Ben Elliston <bje@au.ibm.com>
6487 Steven Bosscher <stevenb@suse.de>
6488 Andrew Pinski <pinskia@physics.uc.edu>
6489
6490 Merge from edge-vector-branch:
6491 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
6492 (struct edge_def): Remove pred_next, succ_next members.
6493 (struct basic_block_def): Remove pred, succ members. Add preds
6494 and succs members of type VEC(edge).
6495 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
6496 (BRANCH_EDGE): Likewise.
6497 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
6498 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
6499 (edge_iterator): New.
6500 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
6501 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
6502 (FOR_EACH_EDGE): New.
6503 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
6504 where applicable.
6505 (rotate_loop): Likewise.
6506 (find_traces_1_route): Likewise.
6507 (bb_to_key): Likewise.
6508 (connect_traces): Likewise.
6509 (copy_bb_p): Likewise.
6510 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
6511 (add_labels_and_missing_jumps): Likewise.
6512 (fix_up_fall_thru_edges): Likewise.
6513 (find_jump_block): Likewise.
6514 (fix_crossing_conditional_branches): Likewise.
6515 (fix_crossing_unconditional_branches): Likewise.
6516 (add_reg_crossing_jump_notes): Likewise.
6517 * bt-load.c (augment_live_range): Likewise.
6518 * cfg.c (clear_edges): Likewise.
6519 (unchecked_make_edge): Likewise.
6520 (cached_make_edge): Likewise.
6521 (make_single_succ_edge): Likewise.
6522 (remove_edge): Likewise.
6523 (redirect_edge_succ_nodup): Likewise.
6524 (check_bb_profile): Likewise.
6525 (dump_flow_info): Likewise.
6526 (alloc_aux_for_edges): Likewise.
6527 (clear_aux_for_edges): Likewise.
6528 (dump_cfg_bb_info): Likewise.
6529 * cfganal.c (forwarder_block_p): Likewise.
6530 (can_fallthru): Likewise.
6531 (could_fall_through): Likewise.
6532 (mark_dfs_back_edges): Likewise.
6533 (set_edge_can_fallthru_flag): Likewise.
6534 (find_unreachable_blocks): Likewise.
6535 (create_edge_list): Likewise.
6536 (verify_edge_list): Likewise.
6537 (add_noreturn_fake_exit_edges): Likewise.
6538 (connect_infinite_loops_to_exit): Likewise.
6539 (flow_reverse_top_sort_order_compute): Likewise.
6540 (flow_depth_first_order_compute): Likewise.
6541 (flow_preorder_transversal_compute): Likewise.
6542 (flow_dfs_compute_reverse_execute): Likewise.
6543 (dfs_enumerate_from): Likewise.
6544 (compute_dominance_frontiers_1): Likewise.
6545 * cfgbuild.c (make_edges): Likewise.
6546 (compute_outgoing_frequencies): Likewise.
6547 (find_many_sub_basic_blocks): Likewise.
6548 (find_sub_basic_blocks): Likewise.
6549 * cfgcleanup.c (try_simplify_condjump): Likewise.
6550 (thread_jump): Likewise.
6551 (try_forward_edges): Likewise.
6552 (merge_blocks_move): Likewise.
6553 (outgoing_edges_match): Likewise.
6554 (try_crossjump_to_edge): Likewise.
6555 (try_crossjump_bb): Likewise.
6556 (try_optimize_cfg): Likewise.
6557 (merge_seq_blocks): Likewise.
6558 * cfgexpand.c (expand_gimple_tailcall): Likewise.
6559 (expand_gimple_basic_block): Likewise.
6560 (construct_init_block): Likewise.
6561 (construct_exit_block): Likewise.
6562 * cfghooks.c (verify_flow_info): Likewise.
6563 (dump_bb): Likewise.
6564 (delete_basic_block): Likewise.
6565 (split_edge): Likewise.
6566 (merge_blocks): Likewise.
6567 (make_forwarder_block): Likewise.
6568 (tidy_fallthru_edges): Likewise.
6569 (can_duplicate_block_p): Likewise.
6570 (duplicate_block): Likewise.
6571 * cfglayout.c (fixup_reorder_chain): Likewise.
6572 (fixup_fallthru_exit_predecessor): Likewise.
6573 (can_copy_bbs_p): Likewise.
6574 (copy_bbs): Likewise.
6575 * cfgloop.c (flow_loops_cfg_dump): Likewise.
6576 (flow_loop_entry_edges_find): Likewise.
6577 (flow_loop_exit_edges_find): Likewise.
6578 (flow_loop_nodes_find): Likewise.
6579 (mark_single_exit_loops): Likewise.
6580 (flow_loop_pre_header_scan): Likewise.
6581 (flow_loop_pre_header_find): Likewise.
6582 (update_latch_info): Likewise.
6583 (canonicalize_loop_headers): Likewise.
6584 (flow_loops_find): Likewise.
6585 (get_loop_body_in_bfs_order): Likewise.
6586 (get_loop_exit_edges): Likewise.
6587 (num_loop_branches): Likewise.
6588 (verify_loop_structure): Likewise.
6589 (loop_latch_edge): Likewise.
6590 (loop_preheader_edge): Likewise.
6591 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6592 (expected_loop_iterations): Likewise.
6593 * cfgloopmanip.c (remove_bbs): Likewise.
6594 (fix_bb_placement): Likewise.
6595 (fix_irreducible_loops): Likewise.
6596 (remove_path): Likewise.
6597 (scale_bbs_frequencies): Likewise.
6598 (loopify): Likewise.
6599 (unloop): Likewise.
6600 (fix_loop_placement): Likewise.
6601 (loop_delete_branch_edge): Likewise.
6602 (duplicate_loop_to_header_edge): Likewise.
6603 (mfb_keep_just): Likewise.
6604 (create_preheader): Likewise.
6605 (force_single_succ_latches): Likewise.
6606 (loop_split_edge_with): Likewise.
6607 (create_loop_notes): Likewise.
6608 * cfgrtl.c (rtl_split_block): Likewise.
6609 (rtl_merge_blocks): Likewise.
6610 (rtl_can_merge_blocks): Likewise.
6611 (try_redirect_by_replacing_jump): Likewise.
6612 (force_nonfallthru_and_redirect): Likewise.
6613 (rtl_tidy_fallthru_edge): Likewise.
6614 (commit_one_edge_insertion): Likewise.
6615 (commit_edge_insertions): Likewise.
6616 (commit_edge_insertions_watch_calls): Likewise.
6617 (rtl_verify_flow_info_1): Likewise.
6618 (rtl_verify_flow_info): Likewise.
6619 (purge_dead_edges): Likewise.
6620 (cfg_layout_redirect_edge_and_branch): Likewise.
6621 (cfg_layout_can_merge_blocks_p): Likewise.
6622 (rtl_flow_call_edges_add): Likewise.
6623 * cse.c (cse_cc_succs): Likewise.
6624 * df.c (hybrid_search): Likewise.
6625 * dominance.c (calc_dfs_tree_nonrec): Likewise.
6626 (calc_dfs_tree): Likewise.
6627 (calc_idoms): Likewise.
6628 (recount_dominator): Likewise.
6629 * domwalk.c (walk_dominator_tree): Likewise.
6630 * except.c (emit_to_new_bb_before): Likewise.
6631 (connect_post_landing_pads): Likewise.
6632 (sjlj_emit_function_enter): Likewise.
6633 (sjlj_emit_function_exit): Likewise.
6634 (finish_eh_generation): Likewise.
6635 * final.c (compute_alignments): Likewise.
6636 * flow.c (calculate_global_regs_live): Likewise.
6637 (initialize_uninitialized_subregs): Likewise.
6638 (init_propagate_block_info): Likewise.
6639 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6640 * gcse.c (find_implicit_sets): Likewise.
6641 (bypass_block): Likewise.
6642 (bypass_conditional_jumps): Likewise.
6643 (compute_pre_data): Likewise.
6644 (insert_insn_end_bb): Likewise.
6645 (insert_store): Likewise.
6646 (remove_reachable_equiv_notes): Likewise.
6647 * global.c (global_conflicts): Likewise.
6648 (calculate_reg_pav): Likewise.
6649 * graph.c (print_rtl_graph_with_bb): Likewise.
6650 * ifcvt.c (mark_loop_exit_edges): Likewise.
6651 (merge_if_block): Likewise.
6652 (find_if_header): Likewise.
6653 (block_jumps_and_fallthru_p): Likewise.
6654 (find_if_block): Likewise.
6655 (find_cond_trap): Likewise.
6656 (block_has_only_trap): Likewise.
6657 (find_if_case1): Likewise.
6658 (find_if_case_2): Likewise.
6659 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
6660 (perfect_nestify): Likewise.
6661 * lcm.c (compute_antinout_edge): Likewise.
6662 (compute_laterin): Likewise.
6663 (compute_available): Likewise.
6664 (compute_nearerout): Likewise.
6665 * loop-doloop.c (doloop_modify): Likewise.
6666 * loop-init.c (loop_optimizer_init): Likewise.
6667 * loop-invariant.c (find_exits): Likewise.
6668 * loop-iv.c (simplify_using_initial_values): Likewise.
6669 (check_simple_exit): Likewise.
6670 (find_simple_exit): Likewise.
6671 * loop-unroll.c (peel_loop_completely): Likewise.
6672 (unroll_loop_constant_iterations): Likewise.
6673 (unroll_loop_runtime_iterations): Likewise.
6674 * loop-unswitch.c (may_unswitch_on): Likewise.
6675 (unswitch_loop): Likewise.
6676 * modulo-sched.c (generate_prolog_epilog): Likewise.
6677 (sms_schedule): Likewise.
6678 * postreload-gcse.c (eliminate_partially_redundant_load):
6679 Likewise.
6680 * predict.c (can_predict_insn_p): Likewise.
6681 (set_even_probabilities): Likewise.
6682 (combine_predictions_for_bb): Likewise.
6683 (predict_loops): Likewise.
6684 (estimate_probability): Likewise.
6685 (tree_predict_by_opcode): Likewise.
6686 (tree_estimate_probability): Likewise.
6687 (last_basic_block_p): Likewise.
6688 (propagate_freq): Likewise.
6689 (estimate_loops_at_level): Likewise.
6690 (estimate_bb_frequencies): Likewise.
6691 * profile.c (instrument_edges): Likewise.
6692 (get_exec_counts): Likewise.
6693 (compute_branch_probabilities): Likewise.
6694 (branch_prob): Likewise.
6695 * ra-build.c (live_in): Likewise.
6696 * ra-rewrite.c (rewrite_program2): Likewise.
6697 * ra.c (reg_alloc): Likewise.
6698 * reg-stack.c (reg_to_stack): Likewise.
6699 (convert_regs_entry): Likewise.
6700 (compensate_edge): Likewise.
6701 (convert_regs_1): Likewise,
6702 (convert_regs_2): Likewise.
6703 (convert_regs): Likewise.
6704 * regrename.c (copyprop_hardreg_forward): Likewise.
6705 * reload1.c (fixup_abnormal_edges): Likewise.
6706 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
6707 (sbitmap_insersection_of_preds): Likewise.
6708 (sbitmap_union_of_succs): Likewise.
6709 (sbitmap_union_of_preds): Likewise.
6710 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
6711 (fix_basic_block_boundaries): Likewise.
6712 (sched_ebbs): Likewise.
6713 * sched-rgn.c (build_control_flow): Likewise.
6714 (find_rgns): Likewise.
6715 * tracer.c (find_best_successor): Likewise.
6716 (find_best_predecessor): Likewise.
6717 (tail_duplicate): Likewise.
6718 * tree-cfg.c (make_edges): Likewise.
6719 (make_ctrl_stmt_edges): Likewise.
6720 (make_goto_expr_edges): Likewise.
6721 (tree_can_merge_blocks_p): Likewise.
6722 (tree_merge_blocks): Likewise.
6723 (cfg_remove_useless_stmts_bb): Likewise.
6724 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
6725 (tree_block_forwards_to): Likewise.
6726 (cleanup_control_expr_graph): Likewise.
6727 (find_taken_edge): Likewise.
6728 (dump_cfg_stats): Likewise.
6729 (tree_cfg2vcg): Likewise.
6730 (disband_implicit_edges): Likewise.
6731 (tree_find_edge_insert_loc): Likewise.
6732 (bsi_commit_edge_inserts): Likewise.
6733 (tree_split_edge): Likewise.
6734 (tree_verify_flow_info): Likewise.
6735 (tree_make_forwarder_block): Likewise.
6736 (tree_forwarder_block_p): Likewise.
6737 (thread_jumps): Likewise.
6738 (tree_try_redirect_by_replacing_jump): Likewise.
6739 (tree_split_block): Likewise.
6740 (add_phi_args_after_copy_bb): Likewise.
6741 (rewrite_to_new_ssa_names_bb): Likewise.
6742 (dump_function_to_file): Likewise.
6743 (print_pred_bbs): Likewise.
6744 (print_loop): Likewise.
6745 (tree_flow_call_edges_add): Likewise.
6746 (split_critical_edges): Likewise.
6747 (execute_warn_function_return): Likewise.
6748 (extract_true_false_edges_from_block): Likewise.
6749 * tree-if-conv.c (tree_if_conversion): Likewise.
6750 (if_convertable_bb_p): Likewise.
6751 (find_phi_replacement_condition): Likewise.
6752 (combine_blocks): Likewise.
6753 * tree-into-ssa.c (compute_global_livein): Likewise.
6754 (ssa_mark_phi_uses): Likewise.
6755 (ssa_rewrite_initialize_block): Likewise.
6756 (rewrite_add_phi_arguments): Likewise.
6757 (ssa_rewrite_phi_arguments): Likewise.
6758 (insert_phi_nodes_for): Likewise.
6759 (rewrite_into_ssa): Likewise.
6760 (rewrite_ssa_into_ssa): Likewise.
6761 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
6762 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
6763 (rewrite_trees): Likewise.
6764 * tree-pretty-print.c (dump_bb_header): Likewise.
6765 (dump_implicit_edges): Likewise.
6766 * tree-sra.c (insert_edge_copies): Likewise.
6767 (find_obviously_necessary_stmts): Likewise.
6768 (remove_data_stmt): Likewise.
6769 * tree-ssa-dom.c (thread_across_edge): Likewise.
6770 (dom_opt_finalize_block): Likewise.
6771 (single_incoming_edge_ignoring_loop_edges): Likewise.
6772 (record_equivalences_from_incoming_edges): Likewise.
6773 (cprop_into_successor_phis): Likewise.
6774 * tree-ssa-live.c (live_worklist): Likewise.
6775 (calculate_live_on_entry): Likewise.
6776 (calculate_live_on_exit): Likewise.
6777 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6778 (copy_loop_headers): Likewise.
6779 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
6780 (fill_always_executed_in): Likewise.
6781 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
6782 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
6783 (compute_phi_arg_on_exit): Likewise.
6784 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
6785 (get_loops_exit): Likewise.
6786 (split_loop_exit_edge): Likewise.
6787 (ip_normal_pos): Likewise.
6788 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
6789 Likewise.
6790 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
6791 (replace_phi_with_stmt): Likewise.
6792 (value_replacement): Likewise.
6793 * tree-ssa-pre.c (compute_antic_aux): Likewise.
6794 (insert_aux): Likewise.
6795 (init_pre): Likewise.
6796 * tree-ssa-propagate.c (simulate_stmt): Likewise.
6797 (simulate_block): Likewise.
6798 (ssa_prop_init): Likewise.
6799 * tree-ssa-threadupdate.c (thread_block): Likewise.
6800 (create_block_for_threading): Likewise.
6801 (remove_last_stmt_and_useless_edges): Likewise.
6802 * tree-ssa.c (verify_phi_args): Likewise.
6803 (verify_ssa): Likewise.
6804 * tree_tailcall.c (independent_of_stmt_p): Likewise.
6805 (find_tail_calls): Likewise.
6806 (eliminate_tail_call): Likewise.
6807 (tree_optimize_tail_calls_1): Likewise.
6808 * tree-vectorizer.c (vect_transform_loop): Likewise.
6809 * var-tracking.c (prologue_stack_adjust): Likewise.
6810 (vt_stack_adjustments): Likewise.
6811 (vt_find_locations): Likewise.
6812 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6813 * config/i386/i386.c (ix86_pad_returns): Likewise.
6814 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6815 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6816
6817 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
6818
6819 PR target/16532
6820 * config/sparc/sparc.c (struct machine_function): New field
6821 'leaf_function_p' and 'prologue_data_valid_p'.
6822 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
6823 to conveniently access the above fields.
6824 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
6825 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
6826 of the generic flavor 'current_function_uses_only_leaf_regs'.
6827 (eligible_for_sibcall_delay): Likewise.
6828 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
6829 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
6830 (sparc_asm_function_prologue): Add sanity check for the assumption
6831 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
6832 (sparc_can_use_return_insn_p): New function.
6833 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
6834 (output_restore): Likewise.
6835 (output_sibcall): Likewise.
6836 (sparc_output_mi_thunk): Likewise.
6837 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
6838 * config/sparc/sparc.md (return): New expander.
6839
6840 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
6841
6842 2004-09-27 Mark Mitchell <mark@codesourcery.com>
6843
6844 PR c++/17642
6845 * stor-layout.c (layout_decl): Use fold_convert, not convert.
6846 (bit_from_pos): Likewise.
6847 (byte_from_pos): Likewise.
6848 (pos_from_bit): Likewise.
6849 (normalize_offset): Likewise.
6850 (place_field): Likewise.
6851 (finalize_type_size): Likewise.
6852 (layout_type): Likewise.
6853 * tree.c (build_index_type): Likewise.
6854
6855 2004-09-27 Devang Patel <dpatel@apple.com>
6856
6857 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
6858 * genopinit.c (optabs): New entry for vcond_gen_code and
6859 vcondu_gen_code.
6860 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
6861 (get_rtx_code): New function.
6862 (vector_compare_rtx): New function.
6863 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
6864 (expand_vec_cond_expr_p): New function.
6865 (expand_vec_cond_expr): New function.
6866 (get_vcond_icode): New function.
6867 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
6868 (vcond_gen_code, vcondu_gen_code): Same.
6869
6870 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
6871
6872 * Makefile.in (STAGESTUFF): Split into ...
6873 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
6874 (mostlyclean): Update.
6875 (stage1-start, stage2-start, stage3-start, stage4-start,
6876 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
6877 Move the STAGEMOVESTUFF.
6878
6879 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
6880
6881 * system.h (getpagesize): Return 'int' instead of 'long'.
6882
6883 2004-09-27 Michael Matz <matz@suse.de>
6884
6885 PR bootstrap/17698
6886 PR bootstrap/17702
6887 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
6888 bmp_iter_and_init): Shift by bit_in_word.
6889
6890 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
6891
6892 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
6893 * configure.ac: Don't sinclude it here.
6894 * configure: Regenerate.
6895
6896 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
6897
6898 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
6899 Handle AND pattern
6900
6901 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
6902
6903 PR c/13804
6904 * c-typeck.c (build_component_ref): Name type involved in
6905 diagnostic for structure or union without a member of the given
6906 name.
6907
6908 2004-09-27 DJ Delorie <dj@redhat.com>
6909
6910 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
6911 .comm alignment is bytes, not bits.
6912
6913 2004-09-27 Devang Patel <dpatel@apple.com>
6914
6915 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
6916 (print_call_name): Do not print VEC_COND_EXPR.
6917
6918 2004-09-27 Devang Patel <dpatel@apple.com>
6919
6920 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
6921
6922 2004-09-27 Jan Hubicka <jh@suse.cz>
6923
6924 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
6925
6926 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
6927
6928 * bitmap.h: Fix a comment typo.
6929
6930 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
6931
6932 * libgcc2.c (getpagesize): Change type of return value to int.
6933
6934 2004-09-26 Matt Austern <austern@apple.com>
6935
6936 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
6937 using mmap.
6938
6939 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6940
6941 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
6942 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
6943 (bitmap_iterator): New type.
6944 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
6945 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
6946 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
6947 bmp_iter_and_init, bmp_iter_and_next): New functions.
6948 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
6949 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
6950 use iterator-style EXECUTE_IF_IN_BITMAP macros.
6951 * bitmap.c (bitmap_print): Ditto.
6952 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
6953 btr_def_live_range): Ditto.
6954 * cfganal.c (compute_dominance_frontiers_1) Ditto.
6955 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
6956 Ditto.
6957 * ddg.c (build_inter_loop_deps): Ditto.
6958 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
6959 Ditto.
6960 * except.c (remove_eh_handler): Ditto.
6961 * flow.c (reg_set_to_hard_reg_set): Ditto.
6962 * gcse.c (clear_modify_mem_tables): Ditto.
6963 * global.c (build_insn_chain): Ditto.
6964 * ifcvt.c (dead_or_predicable): Ditto.
6965 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
6966 Ditto.
6967 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
6968 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
6969 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
6970 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
6971 tree_purge_all_dead_eh_edges): Ditto.
6972 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
6973 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
6974 rewrite_ssa_into_ssa): Ditto.
6975 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
6976 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
6977 Ditto.
6978 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
6979 compute_flow_sensitive_aliasing, maybe_create_global_var,
6980 dump_points_to_info_for): Ditto.
6981 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
6982 * tree-ssa-dse.c (dse_finalize_block): Ditto.
6983 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
6984 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
6985 Ditto.
6986 * tree-ssa-loop-ivopts.c (find_induction_variables,
6987 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
6988 determine_use_iv_costs, determine_set_costs, find_best_candidate,
6989 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
6990 Ditto.
6991 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
6992 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
6993 add_call_read_ops): Ditto.
6994 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
6995
6996 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6997
6998 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
6999 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
7000
7001 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
7002
7003 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
7004 reflect size of memory regions being compared.
7005
7006 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
7007
7008 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
7009 expressions. Always clear MEM_SIZE and alias set.
7010
7011 2004-09-26 Roger Sayle <roger@eyesopen.com>
7012 Giovanni Bajo <giovannibajo@gcc.gnu.org>
7013
7014 PR middle-end/17112
7015 * stor-layout.c (compute_record_mode): For records with a single
7016 field, only use the field's mode if its size matches what we'd
7017 have choosen for the record ourselves. This forces the use of
7018 BLKmode for packed records that don't completely fill a mode.
7019
7020 2004-09-26 Roger Sayle <roger@eyesopen.com>
7021
7022 PR middle-end/17151
7023 * combine.c (force_to_mode): Remove dubious early return test that
7024 inhibits further optimization.
7025
7026 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
7027
7028 * profile.c: Fix a comment typo.
7029
7030 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7031
7032 PR bootstrap/17591
7033 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
7034 with varying offset.
7035 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
7036 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
7037 ARRAY_REFS.
7038 (expr_invariant_in_loop_p): New function.
7039 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
7040 component_ref_field_offset for COMPONENT_REFs. Do not allow
7041 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
7042 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
7043 MISALIGNED_INDIRECT_REFs.
7044 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
7045 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
7046 MISALIGNED_INDIRECT_REFs.
7047
7048 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
7049
7050 PR c/11459
7051 * gcc.c (cpp_options, cc1_options): Preserve relative order of
7052 -std and -ansi options.
7053
7054 2004-09-26 Jan Hubicka <jh@suse.cz>
7055
7056 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
7057 for nested functions whose proper parent has not been output.
7058
7059 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
7060 when re-constructing profile previously invalidated by loop.
7061
7062 2004-09-25 Dale Johannesen <dalej@apple.com>
7063
7064 * tree-gimple.c: Move GIMPLE definition...
7065 * doc/tree-ssa.texi: here.
7066
7067 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
7068
7069 * tree-vectorizer.c: Fix a comment typo.
7070
7071 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
7072
7073 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
7074 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
7075 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
7076 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
7077
7078 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
7079
7080 * tree-ssa-loop-unswitch.c: Fix a comment typo.
7081
7082 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
7083
7084 * doc/passes.texi: Fix a typo.
7085
7086 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7087
7088 * tree-optimize.c (init_tree_optimization_passes): Add
7089 pass_record_bounds.
7090 * tree-pass.h (pass_record_bounds): Declare.
7091 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
7092 New pass.
7093
7094 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7095
7096 PR tree-optimization/17474
7097 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
7098 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
7099
7100 2004-09-25 Jan Hubicka <jh@suse.cz>
7101
7102 * predict.c (counts_to_freqs): Make global.
7103 * predict.h (counts_to_freqa): Declare.
7104 * profile.c (compute_branch_probabilities): Compute frequencies
7105 * tree-profile.c (do_tree_profiling): Refine conditional on when
7106 tree profiling pass is needed.
7107
7108 * passes.c (rest_of_handle_cfg): Disable const/pure function
7109 detection when doing tree based profiling.
7110
7111 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
7112 conditional.
7113
7114 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
7115
7116 * config/mips/mips.h (struct mips_args): Clarify comments.
7117 * config/mips/mips.c (struct mips_arg_info): Likewise.
7118 (mips_arg_info): Don't allow fpr_p to affect the register or
7119 stack alignment. Remove o64 silliness.
7120 (function_arg): Deal with the o32 float,float case specially.
7121
7122 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
7123
7124 * config/mips/mips.md (loadx, storex): Define for V2SF.
7125
7126 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
7127
7128 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
7129 * config/s390/s390.c (s390_back_chain_rtx): New function.
7130 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
7131 Call anti_adjust_stack.
7132 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
7133 only if compiling with back chain.
7134 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
7135 back chain only if back chain enabled. Use s390_back_chain_rtx.
7136
7137 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
7138
7139 * doc/trouble.texi: Remove obsolete information. Update
7140 information on how to regenerate fixincluded headers.
7141
7142 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
7143
7144 PR c/12951
7145 * doc/invoke.texi: Document that
7146 -Wno-error-implicit-function-declaration is not accepted.
7147
7148 2004-09-24 Richard Henderson <rth@redhat.com>
7149
7150 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
7151 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
7152 on TARGET_MAX.
7153 (alpha_expand_mov): Allow unaligned vectors.
7154 (alpha_expand_unaligned_store): Use CONST0_RTX.
7155 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
7156
7157 2004-09-24 Jeff Law <law@redhat.com>
7158
7159 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
7160 aliasing rules.
7161 (simplify_cond_and_lookup_avail_expr): Likewise.
7162
7163 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
7164
7165 PR c/12802
7166 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
7167 title. Document interaction with -fms-extensions.
7168 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
7169 section.
7170
7171 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
7172
7173 PR c/12713
7174 * doc/extend.texi: Document interaction of attribute noreturn and
7175 longjmp.
7176
7177 2004-09-24 Richard Henderson <rth@redhat.com>
7178
7179 PR rtl-opt/17503
7180 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
7181 (som_hash, som_eq): New.
7182 (init_subregs_of_mode, record_subregs_of_mode): New.
7183 (cannot_change_mode_set_regs): Rewrite for htab implementation.
7184 (invalid_mode_change_p): Likewise.
7185 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
7186 * flow.c (mark_used_regs): Likewise.
7187 (life_analysis): Use init_subregs_of_mode.
7188 * regs.h (subregs_of_mode): Remove.
7189 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
7190
7191 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
7192
7193 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
7194 type with the copy of the conditional.
7195
7196 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
7197
7198 PR tree-opt/16954
7199 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7200 Prevent renaming if the aliasing sets of the type which the
7201 pointer points to are different.
7202
7203 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
7204
7205 PR c/17188
7206 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
7207 declarations of enumerators.
7208 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
7209 for redefinition. Check for nested redefinition.
7210 (finish_struct): Don't check for nested redefinition.
7211 (start_enum): Check for nested redefinition.
7212
7213 2004-09-24 Devang Patel <dpatel@apple.com>
7214
7215 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
7216 only when necesssary.
7217 (combine_blocks): Combine loop header and exit block.
7218
7219 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
7220
7221 * hooks.c (hook_tree_tree_bool_null): New.
7222 * hooks.h (hook_tree_tree_bool_null): Declare it.
7223 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
7224 * targhooks.c (default_fold_builtin): Remove.
7225 * targhooks.h (default_fold_builtin): Remove.
7226
7227 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7228
7229 PR rtl-optimization/17625
7230 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
7231
7232 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
7233
7234 PR tree-opt/17624
7235 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
7236 Reject if any of the operands occur in an abnormal PHI.
7237
7238 2004-09-24 Andreas Schwab <schwab@suse.de>
7239
7240 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
7241 rules.
7242
7243 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
7244
7245 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
7246 if the GNU assembler is used.
7247 (sparc-*-solaris2*): Likewise.
7248 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
7249 (dbxout_function_end): Protect N_ENSYM with it.
7250 (dbxout_begin_prologue): Protect N_BNSYM with it.
7251 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
7252 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
7253 * config/sparc/sol2-gas.h: New file.
7254
7255 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
7256
7257 PR bootstrap/17369
7258 * Makefile.in (@set_gcc_lib_path@): Added.
7259
7260 * configure.ac: Include ../config/gcc-lib-path.m4. Use
7261 TL_AC_GNU_MAKE_GCC_LIB_PATH.
7262 * configure: Regenerated.
7263
7264 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
7265
7266 PR c/6980
7267 * c-typeck.c (build_c_cast): Improve wording of
7268 -Wbad-function-cast diagnostic.
7269
7270 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
7271
7272 PR target/17626
7273 * config/cris/cris.md (moverside, movemside): Rename variable
7274 "reg" to "otherop". To generate canonical RTX, check that otherop
7275 isn't constant instead of checking that operand 1 is a register.
7276
7277 2004-09-23 Jakub Jelinek <jakub@redhat.com>
7278
7279 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
7280
7281 2004-09-23 Diego Novillo <dnovillo@redhat.com>
7282 Jakub Jelinek <jakub@redhat.com>
7283
7284 * tree-flow.h (find_new_referenced_vars): Add prototype.
7285 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
7286 Move to...
7287 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
7288 ... here.
7289 (mark_new_vars_to_rename): Walk through all operands.
7290 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
7291 (execute_fold_all_builtins): Use it.
7292 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
7293
7294 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
7295
7296 * gthr-tpf.h: New file.
7297 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
7298 * gthr.h: Use gthr-tpf.h on TPF OS.
7299
7300 2004-09-23 Jeff Law <law@redhat.com>
7301
7302 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
7303 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
7304 (substitute_and_fold): Likewise.
7305 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
7306 except invariants from SSA_NAME_VALUE.
7307 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
7308 and SET_SSA_NAME_EQUIV.
7309 (restore_vars_to_original_value, record_const_or_copy): Likewise.
7310 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
7311 (record_equality, cprop_into_successor_phis): Likewise.
7312 (record_equivalences_from_stmt, cprop_operand): Likewise.
7313 (lookup_avail_expr): Likewise.
7314 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
7315 from SSA_NAME_VALUE.
7316 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
7317 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
7318 annotation from the VALUE_HANDLE field.
7319
7320 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
7321
7322 PR c++/13989
7323 PR c++/9844
7324 * tree.c (reconstruct_complex_type): Remove extra "this".
7325 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
7326 Add V4SFmode to case statement.
7327
7328 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
7329
7330 PR c/16833
7331 * doc/extend.texi, doc/invoke.texi: Document interaction of
7332 -fno-builtin with format checks. Note that built-in functions
7333 have effects beyond generating code that avoids calls to those
7334 functions.
7335
7336 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
7337
7338 PR tree-optimization/17533
7339 * dominance.c (verify_dominators): Tolerate even more incorrect
7340 dominance data during error message printing.
7341 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
7342 and edges more correctly.
7343
7344 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
7345
7346 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
7347 New tree-codes.
7348 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
7349 MISALIGNED_INDIRECT_REF.
7350 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
7351 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
7352 Likewise.
7353 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
7354 (find_interesting_uses_address): Likewise.
7355 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
7356 (build_fold_addr_expr_with_type): Likewise.
7357 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
7358 * print-rtl.c (print_mem_expr): Likewise.
7359 * tree-dump.c (dequeue_and_dump): Likewise.
7360 * tree-eh.c (tree_could_trap_p): Likewise.
7361 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
7362 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
7363 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
7364 Likewise.
7365 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7366 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
7367 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
7368 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
7369 (add_address_candidates, rewrite_address_base): Likewise.
7370 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
7371 Likewise.
7372 * tree.c (staticp, build1_stat): Likewise.
7373
7374 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
7375 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
7376 * tree-ssa-operands.c (get_expr_operands): Likewise.
7377 * expr.c (expand_expr_real_1): Likewise.
7378
7379 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
7380 optabs.
7381 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
7382 for the new optabs.
7383 (expand_ternary_op): New function.
7384 * genopinit.c (optabs): Handle the new optabs.
7385 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
7386 (init_optabs): Initialize vec_realign_load_optab.
7387 (expand_ternary_op): New functions.
7388
7389 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
7390 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
7391 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
7392 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
7393 * target.h (struct vectorize): New member for struct gcc_target.
7394 (misaligned_mem_ok): New member for targetm.vectorize.
7395 (builtin_mask_for_load): Likewise.
7396 (builtin_mask_for_store): Likewise.
7397 * targethooks.c (default_vect_misaligned_mem_ok): New function.
7398 * targethooks.h (default_vect_misaligned_mem_ok): New function.
7399
7400 * config/rs6000/altivec.md (build_vector_mask_for_load): New
7401 define_expand.
7402 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
7403 (vec_realign_load_v16qi): New define_insn.
7404 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
7405 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
7406 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
7407 (altivec_builtin_mask_for_store): New variables.
7408 (rs6000_builtin_mask_for_load): New function. Implements
7409 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
7410 (rs6000_builtin_mask_for_store): New function. Implements
7411 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
7412 (rs6000_expand_builtin): Expand the target builtins
7413 builtin_mask_for_load and builtin_mask_for_store.
7414 (altivec_init_builtins): Initialize the new target builtins.
7415 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
7416 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
7417
7418 * tree-vectorizer.c (vect_create_data_ref): Renamed to
7419 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
7420 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
7421 (vectorizable_store): Call vect_create_data_ref_ptr with additional
7422 arguments, and create an indirect_ref with its return value data_ref.
7423 Check aligned_access_p.
7424 (vectorizable_load): Handle misaligned loads, using software-pipelined
7425 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
7426 vec_realign_load_optab is supported, or using a scheme without
7427 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
7428 misaligned_mem_ok is supported.
7429
7430 (vect_finish_stmt_generation): Typo.
7431 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
7432 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
7433 presence of misaligned loads.
7434 (vect_analyze_data_ref_access): Add check for constant init.
7435 (vect_get_symbl_and_dr): Remove duplicate line.
7436 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
7437
7438 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
7439
7440 * builtins.c: Fix a comment typo.
7441
7442 2004-09-23 Jan Hubicka <jh@suse.cz>
7443
7444 * profile.c (branch_prob): Do not verify flow info in the middle of the
7445 pass.
7446
7447 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7448
7449 * cfgloop.h (update_single_exits_after_duplication): Declare.
7450 (loopify, split_loop_bb): Declaration changed.
7451 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
7452 of rtx.
7453 (loopify): Added redirect_all_edges argument.
7454 (update_single_exits_after_duplication): Export.
7455 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
7456 * tree-flow.h (tree_duplicate_loop_to_header_edge,
7457 tree_ssa_loop_version): Declare.
7458 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
7459 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
7460 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
7461 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
7462
7463 * tree-ssa-loop-unswitch.c: New file.
7464 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
7465 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
7466 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
7467 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
7468 * tree-pass.h (pass_unswitch): Declare.
7469 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
7470 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
7471 * doc/passes.texi: Documen tree level loop unswitching.
7472
7473 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
7474
7475 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
7476
7477 2004-09-22 Eric Christopher <echristo@redhat.com>
7478
7479 * builtins.c (simplify_builtin_va_start): Remove.
7480 (simplify_builtin): Ditto.
7481 (fold_builtin_strchr): Ditto.
7482 (simplify_builtin_*): Rename remainders to fold_builtin_*.
7483 (expand_builtin): Fix up for above changes.
7484 (fold_builtin_1): Add new folders. Change for above.
7485 (expand_builtin_va_start): Call fold_builtin_next_arg.
7486 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
7487 * tree.h: Remove prototype for simplify_builtin.
7488
7489 2004-09-23 Jan Hubicka <jh@suse.cz>
7490
7491 PR debug/17389
7492 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
7493 of fully inlined functions.
7494 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
7495 inlined.
7496
7497 * cfgexpand.c (add_reg_br_prob_note): New function.
7498 (expand_gimple_cond_expr): Use it.
7499 (tree_expand_cfg): No longer kill the profile.
7500 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
7501 only if it is present.
7502 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
7503 * predict.c (combine_predictions_for_insn): Set the probabilities
7504 based on REG_BR_PROB note if present.
7505 * predict.c (branch_prob): Profile is read only with
7506 flag_branch_probabilities.
7507
7508 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
7509
7510 * aclocal.m4: Add in gettext's m4 includes.
7511 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
7512 * configure.ac: Add in check for iconv.h
7513 * configure: Regenerate.
7514
7515 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
7516
7517 * aclocal.m4: Update for rename of gettext-sister.m4.
7518
7519 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
7520
7521 Fix PR tree-optimization/17587
7522 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
7523 (insert_aux): Instead of here.
7524
7525 2004-09-22 Diego Novillo <dnovillo@redhat.com>
7526
7527 PR tree-optimization/16721
7528 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
7529 * tree-ssa-alias.c (create_memory_tag): Move setting of
7530 TREE_THIS_VOLATILE ...
7531 (get_tmt_for): ... here.
7532
7533 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
7534
7535 * config/sparc/sparc.md (cmove splitter): Fix formatting.
7536 (conditional_trap expander): Reject inappropriate CCmodes.
7537 (conditional trap insn): Use V9 syntax if possible.
7538
7539 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
7540
7541 PR c/16566
7542 * c-typeck.c (build_component_ref): Don't special-case
7543 COMPOUND_EXPR.
7544
7545 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
7546
7547 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
7548 returns NULL.
7549
7550 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
7551
7552 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
7553 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
7554 TRUTH_XOR_EXPR): Mention the restriction on types.
7555
7556 2004-09-22 Matt Austern <austern@apple.com>
7557
7558 * config/darwin.c (darwin_make_decl_one_only):
7559 Allow coalesced symbol to appear in static archive's table of contents
7560
7561 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
7562
7563 PR tree-optimization/17512
7564 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
7565 special cases.
7566
7567 2004-09-22 David Edelsohn <edelsohn@gnu.org>
7568
7569 * dbxout.c (get_lang_number): Do not define if
7570 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
7571
7572 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7573
7574 PR target/15583
7575 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
7576 builtin_define ("__USE_INIT_FINI__").
7577
7578 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
7579
7580 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
7581 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
7582 * config/s390/s390.h (TARGET_TPF): New macro.
7583 * config/s390/s390.md ("eh_return"): New expander.
7584 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
7585 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
7586 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
7587 * config/s390/tpf.h (TARGET_TPF): Define to 1.
7588 (STACK_POINTER_OFFSET): Increase to 448.
7589 (TARGET_DEFAULT): Set -mtpf-trace on as default.
7590 (TPF_LOC_DIFF_OFFSET): New macro.
7591 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
7592 encoding.
7593 (__isPATrange): Add prototype.
7594 (MD_FALLBACK_FRAME_STATE_FOR): Define.
7595 * config/s390/tpf-eh.c: New file.
7596
7597 2004-09-22 Diego Novillo <dnovillo@redhat.com>
7598
7599 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
7600 operands in an integer comparison.
7601 * tree-cfg.c (find_taken_edge): Call fold() to determine
7602 whether the predicate is known.
7603
7604 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
7605
7606 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
7607 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
7608 Create build and doc directories along with the language directories.
7609 Don't create doc directory separately.
7610 * configure: Regenerate.
7611 * Makefile.in: Create all object and executables files built
7612 with the build compiler in a build/ directory.
7613 (genobjnames): Add missing build objects.
7614 (STAGESTUFF): Don't stage the gen* programs.
7615 (ggc-none.o): Define dependencies for the target compiler.
7616 (build-print-rtl.o): Rename to build/print-rtl.o.
7617 (build-errors.o): Rename to build/errors.o.
7618 (build-varray.o): Rename to build/varray.o.
7619 (maintainerclean): Delete the contents of the build directory.
7620 ($(genobjs): %.o): Explicitly use -o.
7621 (build/insn-conditions.o): Delete specfic rule to use generic rule.
7622 (build/gengtype-lex.o): Likewise.
7623 (build/gengtype-yacc.o): Likewise.
7624 (build/gcov-iov.o): Likewise.
7625
7626 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
7627
7628 * vec.h (VEC_space): Return true if there _is_ space.
7629 (VEC_reserve): Adjust.
7630
7631 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
7632
7633 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
7634 use FPRs for scalar, complex and vector types only.
7635
7636 2004-09-21 Jeff Law <law@redhat.com>
7637
7638 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
7639 the opt_stats_d structure.
7640 (vrp_data): Change from a varray into a hash table.
7641 (vrp_hash_elt): New structure for elements in the vrp hash table.
7642 (vrp_hash, vrp_eq):New functions for hashing and testing equality
7643 in the vrp hash table.
7644 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
7645 initialization slightly to make it easier to read. No longer need
7646 to grow/clear the varray. Instead empty and delete the hash table.
7647 (dom_opt_finalize_block): Update due to change of VRP_DATA from
7648 a varray to a hash table.
7649 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
7650
7651 * tree-ssa-ccp.c (get_default_value): If we have a constant
7652 value recorded for an SSA_NAME, then use that constant as
7653 the initial lattice value.
7654 (substitute_and_fold): Transfer equivalences discovered into
7655 SSA_NAME_EQUIV.
7656
7657 * tree.h (SSA_NAME_EQUIV): Add comments.
7658 (SET_SSA_NAME_EQUIV): Similarly.
7659
7660 2004-09-21 David Edelsohn <edelsohn@gnu.org>
7661
7662 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
7663
7664 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
7665
7666 2004-09-21 Mark Mitchell <mark@codesourcery.com>
7667
7668 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
7669 (finish_decl): Likewise.
7670
7671 2004-09-21 Devang Patel <dpatel@apple.com>
7672
7673 * tree.def (VEC_COND_EXPR): New tree node.
7674 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
7675
7676 2004-09-21 Stan Shebs <shebs@apple.com>
7677
7678 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
7679 * config/rs6000/darwin-world.asm: Likewise.
7680
7681 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
7682
7683 * tree-ssa.c (verify_def): Use print_generic_stmt,
7684 not debug_generic_stmt.
7685 (verify_use): Ditto.
7686 (verify_phi_args): Ditto.
7687 (verify_ssa): Ditto.
7688
7689 2004-09-21 Paul Brook <paul@codesourcery.com>
7690
7691 * varasm.c (default_assemble_integer): Return false for values wider
7692 than the target word size. Works around GAS bug.
7693
7694 2004-09-21 Zack Weinberg <zack@codesourcery.com>
7695
7696 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
7697 gets value 0.
7698 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
7699 if it has value 0.
7700
7701 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
7702
7703 * c-typeck.c (build_function_call): Give name of object
7704 we are attempting to call in error message.
7705 * c-objc-common.c (c_tree_printer): Call pp_expression,
7706 not return false, for 'E' case.
7707
7708 2004-09-21 Steven Bosscher <stevenb@suse.de>
7709
7710 PR rtl-optimization/17482
7711 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
7712 load_killed_in_block_p): Clarify comments.
7713 (record_last_reg_set_info): Make static inline.
7714 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
7715 (record_opr_changes): New function to replace the above.
7716 (compute_hash_table): Clarify comments. Use record_opr_changes.
7717 (reg_set_between_after_reload_p): Clean up.
7718 (reg_used_between_after_reload_p): Likewise.
7719 (eliminate_partially_redundant_load): Clarify comments.
7720
7721 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
7722
7723 PR rtl-optimization/17266
7724 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
7725
7726 2004-09-21 Uros Bizjak <uros@kss-loka.si>
7727
7728 PR rtl-optimization/14851
7729 * rtlanal.c (commutative_operand_precedence): Calculate
7730 precedence of stripped constant.
7731
7732 2004-09-20 Jeff Law <law@redhat.com>
7733 Jan Hubicka <jh@suse.cz>
7734
7735 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
7736 initialize key elements here.
7737 (release_ssa_name): Zero the released SSA_NAME here.
7738 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
7739 (struct tree_ssa_name): Add new "equiv" field.
7740 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
7741 (tree_ssa_dominator_optimize): No longer allocate, resize or
7742 clear CONST_AND_COPIES.
7743 (get_value_for, set_value_for): Kill.
7744 (thread_across_edge): Get/set the equivalency using
7745 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
7746 (restore_vars_to_original_value): Likewise.
7747 (record_equivalences_from_phis): Likewise.
7748 (record_dominating_conditions): Likewise.
7749 (record_const_or_copy, record_equality): Likewise.
7750 (lookup_avail_expr): Likewise.
7751 (record_equivalences_from_stmt, cprop_operand): Likewise.
7752 (cprop_into_successor_phis): No longer need to pass around
7753 CONST_AND_COPIES. Callers updated. Get equivalences via
7754 SSA_NAME_EQUIV.
7755 (cprop_into_phis): Likewise.
7756
7757 2004-09-20 Matt Austern <austern@apple.com>
7758 Zack Weinberg <zack@codesourcery.com>
7759
7760 * c-common.c (fix_string_type): Build the unqualified array
7761 type unconditionally, then use c_build_qualified_type to get
7762 the proper const-qualified variant, and set its
7763 TYPE_MAIN_VARIANT to refer to the unqualified type.
7764 * c-lex.c (c_lex_return_raw_string): New global.
7765 (c_lex_with_flags): Honor it.
7766 * c-pragma.h: Declare it.
7767
7768 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
7769
7770 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
7771
7772 2004-09-21 Jan Hubicka <jh@suse.cz>
7773
7774 PR middle-end/17126
7775 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
7776 (tree_rest_of_compilation): Cleanup.
7777
7778 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
7779
7780 * config/s390/s390.c (s390_select_rtx_section): Remove.
7781 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
7782
7783 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
7784
7785 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
7786 note to pretend a direct save from the original register when an
7787 intermediate register is used for the save.
7788
7789 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7790
7791 * tsystem.h (alloca): Provide a default definition.
7792
7793 Revert:
7794 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7795 * unwind-dw2.c: Call __builtin_alloca, not alloca.
7796
7797 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
7798
7799 PR tree-opt/17558
7800 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
7801 aliasing sets are the same rather than just conflicting.
7802
7803 2004-09-20 Jan Hubicka <jh@suse.cz>
7804
7805 PR middle-end/16460
7806
7807 * cgraph.c (cgraph_unnest_node): New function.
7808 (c_finalize): Rename to ....
7809 (c_warn_unused_result_recursivly): ... this one; do only the warning
7810 (finish_function): Finalize the toplevel function; do not lower nested tree.
7811 * cgraph.h (cgraph_unnest_node): Declare.
7812 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
7813 nestedness datastructure.
7814 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
7815 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
7816 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
7817
7818 2004-09-20 Richard Henderson <rth@redhat.com>
7819
7820 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
7821 from some_small_symbolic_operand_1; export.
7822 (some_small_symbolic_operand): Remove.
7823 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
7824 extra C check.
7825 * config/alpha/predicates.md (some_small_symbolic_operand): New.
7826
7827 2004-09-20 Jan Hubicka <jh@suse.cz>
7828
7829 * predict.c (return_prediction): New function.
7830 (apply_return_prediction): Likewise.
7831 (tree_bb_level_predictions): Likewise.
7832 (tree_estimate_probability): Add noreturn exit edges; call
7833 bb_level_predictions; fix logic of return heuristics.
7834 (predict_paths_leading_to): Rescuesce from old CVS version of
7835 process_note_prediction function.
7836 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
7837
7838 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
7839
7840 * config/s390/s390.c (s390_frame_info): Added alignment statement for
7841 floating point register area on stack.
7842
7843 2004-09-20 Jakub Jelinek <jakub@redhat.com>
7844
7845 * predict.c (expr_expected_value): Use *_CLASS_P macros.
7846
7847 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
7848
7849 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
7850 generating useless garbage.
7851
7852 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
7853
7854 * builtins.c (fold_builtin): Call the new omonymous
7855 target hook for machine-dependent built-ins.
7856 * target-def.h (TARGET_FOLD_BUILTIN): New.
7857 * target.h (struct gcc_target): Add the fold_builtin hook.
7858 * targhooks.c (default_fold_builtin): New.
7859 * targhooks.h (default_fold_builtin): Declare it.
7860
7861 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
7862
7863 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
7864 comment typos.
7865
7866 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
7867
7868 PR target/17565
7869 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
7870
7871 2004-09-20 Jan Hubicka <jh@suse.cz>
7872
7873 * predict.c (estimate_probability): Remove unnecesary code.
7874
7875 2004-09-19 Ira Rosen <irar@il.ibm.com>
7876
7877 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
7878 (STMT_VINFO_VECT_DR_BASE): Declare.
7879 (VECT_SMODULO): Declare.
7880 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
7881 (vect_compute_array_base_alignment): New function.
7882 (vect_analyze_data_ref_access): Check array indices. Remove one
7883 dimensional arrays restriction.
7884 (vect_get_ptr_offset): New function.
7885 (vect_get_symbl_and_dr): New function.
7886 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
7887 (former name vect_get_base_decl_and_bit_offset).
7888 (vect_create_index_for_array_ref): Removed.
7889 (vect_create_index_for_vector_ref): New function.
7890 (vect_create_addr_base_for_vector_ref): New function.
7891 (vect_create_data_ref): Handle additional data refs. Call
7892 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
7893 (vect_compute_data_ref_alignment): Support the changes. Call
7894 vect_get_base_and_bit_offset.
7895 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
7896 data refs. Store vect_dr_base.
7897 (vect_analyze_data_ref_accesses): Support nonconstant init.
7898 (new_stmt_vec_info): Initialize vect_dr_base field.
7899 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
7900 (get_vectype_for_scalar_type): Check for BLKmode.
7901 * tree-chrec.h (initial_condition_in_loop_num): Declare.
7902 * tree-chrec.c (initial_condition_in_loop_num): New function.
7903 (chrec_component_in_loop_num): New function.
7904 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
7905 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
7906 to be pointer to varray_type.
7907
7908 2004-09-19 Jan Hubicka <jh@suse.cz>
7909
7910 * basic-block.h (update_bb_profile_after_threading): Declare.
7911 * cfg.c (update_bb_profile_after_threading): Break out from ...
7912 * cfgcleanup.c (try_forward_edges): ... here; use it.
7913 * tree-ssa-dom.c (thread_across_edge): Use it.
7914 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
7915 profile of the new BB.
7916
7917 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
7918
7919 * tree-ssa-pre.c (insert_into_set): Don't put
7920 is_gimple_min_invariant values into the set.
7921
7922 2004-09-19 Andreas Jaeger <aj@suse.de>
7923
7924 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
7925 prototype.
7926
7927 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
7928
7929 * config/cris/cris.h: Preserve the original spelling in a
7930 quote.
7931
7932 2004-09-18 Jeff Law <law@redhat.com>
7933
7934 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
7935 global varrays to replace the block local varrays.
7936 (struct dom_walk_block_data): Remove, no longer used.
7937 (get_eq_expr_value): No longer need to pass around pointers to local
7938 varrays. Callers updated. Unused markers added to unused parameters.
7939 (record_range, record_equivalences_from_stmt): Likewise.
7940 (record_equivalences_from_incoming_edge): Likewise.
7941 (record_var_is_nonzero): Likewise. Update now that we have a
7942 single global varray of SSA_NAMEs that need restoring.
7943 (dom_opt_initialize_block_local_data): Kill, no longer used.
7944 (tree_ssa_dominator_optimize): Initialize new global varrays.
7945 Update callbacks in dominator walker structure.
7946 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
7947 VRP_VARIABLES_STACK.
7948 (restore_nonzero_vars_to_original_value): Update now that we have
7949 a single global varray of SSA_NAMEs that need restoring.
7950 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
7951 Remove unused variables.
7952 (optimize_stmt): Remove unused variable.
7953
7954 2004-09-18 Jan Hubicka <jh@suse.cz>
7955
7956 * tree-cfg.c (thread_jumps): Fix updating of the profile.
7957
7958 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
7959 verify_cgraph call.
7960
7961 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
7962
7963 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
7964 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
7965 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
7966 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
7967 tree-ssa-operands.c, tree-ssa-phiopt.c,
7968 tree-ssa-threadupdate.c: Fix comment typos.
7969
7970 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
7971
7972 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
7973 config/arm/README-interworking, config/arm/arm-cores.def,
7974 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
7975 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
7976 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
7977 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
7978 config/frv/frv.md, config/i386/winnt.c,
7979 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
7980 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
7981 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
7982 config/mcore/mcore.c, config/mips/mips.h,
7983 config/mn10300/mn10300.md, config/pa/pa.c,
7984 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
7985 config/rs6000/rs6000.c, config/sh/symbian.c,
7986 config/sparc/sparc.h: Fix comment typos. Follow spelling
7987 conventions.
7988
7989 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
7990
7991 PR c/17424
7992 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
7993
7994 2004-09-18 Diego Novillo <dnovillo@redhat.com>
7995
7996 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
7997 remove TREE_ADDRESSABLE from RESULT_DECL.
7998
7999 2004-09-18 Diego Novillo <dnovillo@redhat.com>
8000
8001 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
8002
8003 2004-09-18 Jan Hubicka <jh@suse.cz>
8004
8005 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
8006 NULL.
8007 * tree-ssa-alias.c (init_alias_info): Likewise.
8008 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
8009 (verify_ssa): Likewise.
8010 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
8011
8012 2004-09-18 Jan Hubicka <jh@suse.cz>
8013
8014 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
8015 huge offset.
8016
8017 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
8018
8019 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
8020 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
8021 DW_EH_PE_sdata* for data.
8022 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8023
8024 2004-09-17 Geoffrey Keating <geoffk@apple.com>
8025
8026 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
8027 shared anyway.
8028
8029 PR pch/13361
8030 * c-typeck.c (constructor_asmspec): Delete.
8031 (struct initializer_stack): Delete field 'asmspec'.
8032 (start_init): Delete saving of asmspec.
8033 (finish_init): Don't update constructor_asmspec.
8034 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
8035 * stmt.c (expand_asm): Duplicate strings from tree.
8036 (expand_asm_operands): Likewise.
8037 * tree.c (tree_size): Update computation of size of STRING_CST.
8038 (make_node): Don't make STRING_CST nodes.
8039 (build_string): Allocate string with tree node.
8040 (tree_code_size): Clean up assertions, don't allow requests
8041 for "the size of a STRING_CST".
8042 * tree.def (STRING_CST): Update comment.
8043 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
8044 (tree_string): Place contents of string in tree node.
8045 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
8046 from tree.
8047
8048 2004-09-17 Zack Weinberg <zack@codesourcery.com>
8049
8050 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
8051 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
8052
8053 2004-09-17 Jones Desougi <jones@ingate.com>
8054
8055 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
8056 * configure, config.in: Regenerate.
8057
8058 2004-09-17 Zack Weinberg <zack@codesourcery.com>
8059
8060 * tree.c, tree.h (tree_class_strings): Make array const.
8061 Reindent per coding convention. Move asterisk to proper place
8062 per coding convention.
8063
8064 2004-09-18 Andreas Schwab <schwab@suse.de>
8065
8066 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
8067 (tree-vectorizer.o): Likewise.
8068 (targhooks.o): Likewise.
8069
8070 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
8071 Zack Weinberg <zack@codesourcery.com>
8072
8073 * alias.c (find_base_decl): Remove unreachable case '3' block.
8074 * expr.c (safe_from_p): Abort if passed a type.
8075 * tree-gimple.c (recalculate_side_effects): Abort if passed
8076 anything other than an expression.
8077 * tree-ssa-pre.c (phi_translate): Return expr immediately if
8078 is_gimple_min_invariant is true for it. Reorder cases for clarity.
8079 Abort on un-handled tree classes.
8080 (valid_in_set): Likewise.
8081 * tree.c (tree_code_class_strings): New static data.
8082
8083 * tree.h (enum tree_code_class): New.
8084 (tree_code_class_strings): Declare.
8085 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
8086 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
8087 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
8088 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
8089 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
8090
8091 * tree.def, c-common.def, objc/objc-tree.def: Use
8092 tree_code_class enumeration constants instead of code letters.
8093
8094 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
8095 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
8096 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
8097 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
8098 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
8099 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
8100 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
8101 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
8102 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
8103 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
8104 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
8105 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
8106 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
8107 Update to match.
8108
8109 * LANGUAGES: Add note about change.
8110
8111 2004-09-17 Diego Novillo <dnovillo@redhat.com>
8112
8113 PR tree-optimization/17319
8114 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
8115 examine pointers on the LHS of an assignment.
8116 (collect_points_to_info_r): Handle RETURN_EXPR.
8117
8118 2004-09-17 Jeff Law <law@redhat.com>
8119
8120 * tree-ssa-dom.c (const_and_copies_stack): New.
8121 (dom_walk_block_data): Remove const_and_copies field.
8122 (record_const_or_copy): No longer need to pass in varray_type *.
8123 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
8124 Callers updated.
8125 (record_equality): Similarly.
8126 (restore_vars_to_original_value): Similarly. Revamp to use new
8127 single global stack rather than per-block stacks.
8128 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
8129 (thread_across_edge): Remove now unused parameters.
8130 (dom_opt_initialize_block_local_data): No longer test the block
8131 local CONST_AND_COPIES.
8132 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
8133
8134 2004-09-17 Jan Hubicka <jh@suse.cz>
8135
8136 PR tree-optimization/17509
8137 * tree-optimize.c (update_inlined_to_pointers): New function.
8138 (tree_rest_of_compilation): Use it.
8139
8140 2004-09-17 Devang Patel <dpatel@apple.com>
8141
8142 * dbxout.c (get_lang_number): New.
8143 (dbxout_init): Include lang number in N_SO stab.
8144 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
8145 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
8146
8147 2004-09-17 Diego Novillo <dnovillo@redhat.com>
8148
8149 PR tree-optimization/17273
8150 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
8151 replacement is a constant.
8152
8153 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
8154
8155 * c-tree.h (enum c_typespec_keyword): New.
8156 (struct c_declspecs): Adjust description of "type". Remove
8157 specbits, explicit_int_p and explicit_char_p. Rename
8158 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
8159 short_p, signed_p, unsigned_p and complex_p.
8160 (finish_declspecs): New.
8161 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
8162 typename): Call finish_declspecs.
8163 * c-decl.c (finish_declspecs): New.
8164 (declspecs_add_type): Check for combinations which cannot occur in
8165 valid specifier lists. Update comments.
8166 (shadow_tag_warned): Remove checks done in finish_declspecs.
8167 Don't report useless type name if type defaulted to int.
8168 (grokdeclarator): Remove checks and actions done in
8169 finish_declspecs. Don't allow for type being NULL. Update for
8170 datastructures changes. Initialize decl_attr.
8171 (build_null_declspecs, quals_from_declspecs): Update for
8172 datastructures changes.
8173
8174 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
8175
8176 * doc/extend.texi: Fix duplicated word.
8177
8178 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
8179
8180 * doc/invoke.texi: Remove stray explanation on
8181 -freduce-all-givs and -fmove-all-movables.
8182
8183 2004-09-17 James Morrison <phython@gcc.gnu.org>
8184
8185 * doc/cfg.texi: Use @smallexample.
8186 * doc/md.texi: Likewise.
8187 * doc/tree-ssa.texi: Likewise.
8188 * doc/extend.texi: Likewise. Use @r{} in comments.
8189 * doc/trouble.texi: Use @r{} in comments.
8190
8191 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
8192
8193 * configure.ac (gcc_cv_gld_version): Handle whitespace before
8194 "VERSION=".
8195 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
8196 * configure: Regenerate.
8197
8198 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
8199
8200 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
8201 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
8202 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
8203 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
8204 slashes in substitutions.
8205 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
8206
8207 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
8208
8209 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
8210 gimplify.c, lambda-code.c, optabs.c, predict.c,
8211 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
8212 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
8213 conventions.
8214
8215 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
8216
8217 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
8218 doc/extend.texi, doc/install.texi, doc/invoke.texi,
8219 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
8220 doc/trouble.texi: Use @option around options.
8221
8222 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
8223
8224 * Makefile.in (gen-protos.o): Depend on errors.h.
8225
8226 2004-09-17 Steven Bosscher <stevenb@suse.de>
8227
8228 PR tree-optimization/17513
8229 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
8230 for successors of the entry block.
8231
8232 2004-09-17 Uros Bizjak <uros@kss-loka.si>
8233
8234 PR rtl-optimization/15187
8235 * ifcvt.c (noce_try_cmove_arith): Exit early if total
8236 insn_rtx_cost of both branches > BRANCH_COST
8237
8238 2004-09-16 Diego Novillo <dnovillo@redhat.com>
8239
8240 PR tree-optimization/17528
8241 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
8242 erase the may-alias set for a tag when merging it with
8243 another.
8244
8245 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
8246
8247 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
8248 for 32-bit TARGET_SHMEDIA.
8249 (call_value): Likewise.
8250
8251 2004-09-16 Diego Novillo <dnovillo@redhat.com>
8252
8253 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
8254 test apply only to TREE_STATIC and DECL_EXTERNAL.
8255
8256 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8257
8258 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
8259 * basic-block.h (get_dominated_by_region): Declare.
8260 * dominance.c (get_dominated_by_region): New function.
8261 * tree-cfg.c: Include cfglayout.h.
8262 (tree_duplicate_bb): Duplicate also phi nodes.
8263 (struct ssa_name_map_entry): New type.
8264 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
8265 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
8266 allocate_ssa_names, rewrite_to_new_ssa_names_def,
8267 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
8268 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
8269 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
8270 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
8271 rewrite_to_new_ssa_names, allocate_ssa_names,
8272 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
8273 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
8274 (copy_loop_headers): Use tree_duplicate_sese_region.
8275
8276 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
8277
8278 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
8279
8280 2004-09-16 Jeff Law <law@redhat.com>
8281
8282 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
8283 (rewrite_block_data): Remove, no longer used.
8284 (rewrite_initialize_block_local_data): Remove, no longer used.
8285 (rewrite_initialize_block): Mark parameters as unused as needed.
8286 Change references to the block local block_defs to be block_defs_stack.
8287 Push a marker onto the block_defs_stack.
8288 (ssa_rewrite_initialize_block): Similarly.
8289 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
8290 (ssa_register_new_def): No longer needs varray argument. Use
8291 block_defs_stack instead. No longer handle possibly null block_defs
8292 varray. Reverse order of items we push on the stack to make it
8293 easier to identify our marker.
8294 (register_new_def): No longer handle possibly null block_defs
8295 varray.
8296 (rewrite_finalize_block): Revamp to look for markers in the global
8297 block_defs_stack varray rather than wiping a block local varray.
8298 Mark arguments as unused as needed.
8299 (ssa_rewrite_finalize_block): Similarly.
8300 (rewrite_into_ssa): Update initialization of dom walker structure
8301 to reflect that we don't need block local data anymore. Initialize
8302 the block_defs_stack varray.
8303 (rewrite_ssa_into_ssa): Similarly.
8304 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
8305 (struct dom_walk_data): Kill block_defs field.
8306 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
8307 (thread_across_edge): Use the global block_defs_stack instead of
8308 the old block_defs varray.
8309 (dom_opt_initialize_block_local_data): Update now that we don't have
8310 block_defs field to check anymore.
8311 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
8312 (restore_currdefs_to_original_value): Use the new block_defs_stack
8313 instead of a block local varray.
8314 (dom_opt_finalize_block): Similarly.
8315 (record_equivalencs_from_phis): Similarly.
8316 (optimize_stmt, register_definitions_for_stmt): Similarly.
8317
8318 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
8319
8320 PR tree-optimization/17517
8321 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8322 coalesce same-root variables without checking for abnormal PHI usage.
8323
8324 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
8325
8326 * cfgloop.h (duplicate_loop): Add prototype.
8327 * cfgloopmanip.c (duplicate_loop): Make non-static.
8328 * lambda-code.c (perfect_nestify): Factor out test whether
8329 we can handle this loop into separate function.
8330 Call it.
8331 (can_convert_to_perfect_nest): New function.
8332 (replace_uses_of_x_with_y): Add modify_stmt call.
8333 * tree-loop-linear.c (linear_transform_loops): Call
8334 rewrite_into_loop_closed_ssa and free_df.
8335
8336 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
8337
8338 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
8339 loop invariant as well.
8340 (perfect_nestify): new function.
8341 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
8342 upper bounds, and steps.
8343 Set outerinductionvar properly.
8344 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
8345 parameters.
8346 Return NULL if we need a perfect loop and can't make one.
8347 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
8348 (not_interesting_stmt): New function.
8349 (phi_loop_edge_uses_def): Ditto.
8350 (stmt_uses_phi_result): Ditto.
8351 (stmt_is_bumper_for_loop): Ditto.
8352 (perfect_nest_p): Ditto.
8353 (nestify_update_pending_stmts): Ditto.
8354 (replace_uses_of_x_with_y): Ditto.
8355 (stmt_uses_op): Ditto.
8356 (perfect_nestify): Ditto.
8357 * lambda-mat.c (lambda_matrix_id_p): New function.
8358 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
8359 * lambda.h: Update prototypes.
8360 * tree-loop-linear (linear_transform_loop): Use new
8361 perfect_nest_p. Detect and ignore identity transform.
8362 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
8363
8364 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
8365
8366 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
8367 Gather also strides of accessed data. Pass in the data references
8368 array.
8369 (try_interchange_loops): Add a new heuristic for handling the temporal
8370 locality. Pass in the data references array.
8371 (linear_transform_loops): Pass the data references array to
8372 try_interchange_loops.
8373
8374 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
8375
8376 * doc/invoke.texi: Fix typos. Follow spelling conventions.
8377
8378 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
8379
8380 * doc/c-tree.texi (Classes): Remove index entries for
8381 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
8382
8383 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8384
8385 * fold-const.c (fold): Fold difference of addresses.
8386 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
8387 get_inner_reference.
8388 * tree-ssa-loop-ivopts.c (peel_address): Removed.
8389 (ptr_difference_const): Moved to fold-const.c.
8390 (split_address_cost): Use get_inner_reference instead of peel_address.
8391 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
8392 * tree.h (ptr_difference_const): Export.
8393
8394 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
8395 variable type to the dump. Fix indentation.
8396 (idx_find_step): Handle nonconstant array_ref_element_size and
8397 array_ref_low_bound.
8398 (idx_record_use): Handle array_ref_element_size and
8399 array_ref_low_bound.
8400 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
8401 statements correctly.
8402 (get_computation_at, iv_value): Do not unshare expressions here.
8403 (rewrite_use_outer): Unshare the expression before it is emitted
8404 to code.
8405 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
8406 Moved to tree.c.
8407 * tree.c (unsigned_type_for, signed_type_for): Moved from
8408 tree-ssa-loop-niter.c. Use langhooks.
8409 * tree.h (signed_type_for): Export.
8410
8411 2004-09-16 David Edelsohn <edelsohn@gnu.org>
8412
8413 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
8414 prototype.
8415
8416 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
8417
8418 PR target/11572
8419 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
8420 Add two parameters to extra_includes.
8421 (C_INCPATH_INIT): Remove.
8422 * c-incpath.c (register_include_chains): Call extra_pre_includes
8423 before adding the standard include directory.
8424 Update call to extra_includes.
8425 (!defined TARGET_EXTRA_INCLUDES): Update
8426 hook_void_charptr_charptr_int and add !define
8427 TARGET_EXTRA_PRE_INCLUDES.
8428 (!define TARGET_EXTRA_INCLUDES): Define as
8429 hook_void_charptr_charptr_int.
8430 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
8431 (target_c_incpath): Always declare.
8432 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
8433 empty function.
8434 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
8435 * config/darwin.h: (darwin_register_frameworks): Update for
8436 the two new parameters.
8437 (darwin_register_objc_includes): Add prototype.
8438 (TARGET_EXTRA_PRE_INCLUDES): Define.
8439 * config/darwin-c.c (darwin_register_objc_includes): New function.
8440 (darwin_register_frameworks): Update for the two new parameters.
8441 (target_c_incpath): Remove.
8442 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
8443 the compile line.
8444 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
8445 parameters.
8446 (TARGET_EXTRA_PRE_INCLUDES): Document.
8447
8448 * gcc.c (spec_function): Add replace-outfile.
8449 (replace_outfile_spec_function): New function.
8450 * config/darwin.h (LINK_SPEC): Add replace
8451 -lobjc with -lobjc-gnu if -fgnu-runtime is
8452 supplied.
8453 * invoke.texi (replace-outfile): Document.
8454
8455 2004-09-13 Jan Hubicka <jh@suse.cz>
8456
8457 * predict.c (expr_expected_value, strip_builtin_expect): New function.
8458 (tree_predict_by_opcode): Use it.
8459 (tree_estimate_probability): Add, for now disabled,
8460 strip_builtin_expect call.
8461
8462 2004-09-15 James E Wilson <wilson@specifixinc.com>
8463
8464 PR target/17455
8465 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
8466 if current_function_decl is a sibcall.
8467
8468 2004-09-15 Mark Mitchell <mark@codesourcery.com>
8469
8470 * varasm.c (default_function_rdodata_section): Make sure to pass
8471 along a decl for a link-once section.
8472
8473 2004-09-15 Richard Henderson <rth@redhat.com>
8474
8475 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
8476 warning with code disable. Fix formatting.
8477
8478 2004-09-15 Steven Bosscher <stevenb@suse.de>
8479
8480 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
8481 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
8482 after propagating into an ADDR_EXPR.
8483
8484 2004-09-15 Andrew Pinski <apinski@apple.com>
8485
8486 PR rtl-opt/17427
8487 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
8488 Move it out of gcc_assert.
8489
8490 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
8491
8492 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
8493 except.c, fold-const.c, function.c, langhooks.c, params.c,
8494 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
8495 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
8496 for quoting in diagnostics going through pretty-print.c. Use ''
8497 for quoting in other diagnostic text.
8498 * langhooks.c: Include intl.h. Mark text locating diagnostics for
8499 translation.
8500 * Makefile.in (langhooks.o): Update dependencies.
8501 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
8502 formats.
8503
8504 2004-09-15 Mark Mitchell <mark@codesourcery.com>
8505
8506 * configure.ac: Check for COMDAT support. Robustify check for
8507 SHF_MERGE support.
8508 * configure: Regenerated.
8509 * config.in: Likewise.
8510 * langhooks-def.h (lhd_comdat_group): New function.
8511 (LANG_HOOKS_COMDAT_GROUP): New macro.
8512 (LANG_HOOKS_DECLS): Use it.
8513 * langhooks.c (lhd_comdat_group): Define.
8514 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
8515 * output.h (named_section_flags): Make it a macro.
8516 (named_section_real): New function.
8517 (default_no_named_section): Add decl parameter.
8518 (default_elf_asm_named_section): Likewise.
8519 (default_coff_asm_named_section): Likewise.
8520 (default_pe_asm_named_section): Likewise.
8521 * target.h (gcc_target): Adjust type of named_section.
8522 * varasm.c (named_section_flags): Rename to named_section_real.
8523 Add decl parameter.
8524 (default_no_named_section): Add decl parameter.
8525 (default_elf_asm_named_section): Use COMDAT, if available. Deal
8526 with the case that ASM_COMMENT_START is "@".
8527 (default_coff_asm_named_section): Add decl parameter.
8528 (default_pe_asm_named_section): Likewise.
8529 * config/alpha/alpha.c (vms_asm_named_section): Add decl
8530 parameter.
8531 (unicosmk_asm_named_section): Likewise.
8532 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
8533 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
8534 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
8535 * config/cris/cris-protos.h (cris_target_asm_named_section):
8536 Likewise.
8537 * config/cris/cris.c (cris_target_asm_named_section):
8538 Likewise.
8539 * config/darwin/darwin-protos.h (darwin_asm_named_section):
8540 Likewise.
8541 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
8542 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
8543 * config/i386/i386-protos.h (i386_pe_asm_named_section):
8544 Likewise.
8545 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
8546 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
8547 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
8548 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
8549 Likewise.
8550 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
8551 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
8552 * cp/cp-tree.h (cxx_comdat_group): Declare.
8553 * cp/decl.c (cxx_comdat_group): New function.
8554
8555 2004-09-15 Jan Hubicka <jh@suse.cz>
8556
8557 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
8558 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
8559
8560 * tree-cfg.c (remove_bb): Release SSA defs.
8561
8562 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
8563
8564 * doc/tm.texi: Follow spelling conventions.
8565
8566 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
8567
8568 * tree-ssa-dom.c: Fix comment typos.
8569
8570 2004-09-15 Alan Modra <amodra@bigpond.net.au>
8571
8572 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
8573 include ccr.
8574 (ppc_fallback_frame_state): Save location of CR.
8575
8576 2004-09-15 Jakub Jelinek <jakub@redhat.com>
8577
8578 * expr.c (string_constant): Handle also read-only variables
8579 initialized to string literals.
8580
8581 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
8582 into memcpy (x, y, 1) if memcpy can be expanded inline.
8583
8584 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8585
8586 PR tree-optimization/17468
8587 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
8588 definition inside a block precede uses.
8589 * tree-tailcall.c (adjust_return_value): Emit statements in the
8590 correct order.
8591
8592 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
8593
8594 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
8595
8596 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
8597
8598 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
8599
8600 2004-09-14 Jeff Law <law@redhat.com>
8601
8602 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
8603 (struct dom_walk_block_data): Remove avail_exprs member.
8604 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
8605 (lookup_avail_expr): No longer need to pass in address of
8606 the block local available exprs stack. All callers changed.
8607 (simplify_cond_and_lookup_avail_expr): Similarly.
8608 (simplify_switch_and_lookup_avail_expr): Similarly.
8609 (get_eq_expr_value, record_cond): Likewise.
8610 (record_dominating_conditions): Likewise.
8611 (update_rhs_and_lookup_avail_expr): Likewise.
8612 (record_equivalences_from_stmt): Likewise.
8613 (dom_opt_initialize_block_local_data): No longer test state of
8614 block local avail_exprs.
8615 (dom_opt_initialize_block): Mark unwind point in the global
8616 avail_expr stack.
8617 (remove_expressions_from_table): Update to unwind to the
8618 most recent unwind marker in the global avail_expr stack.
8619 All callers changed.
8620 (dom_opt_finalize_block): Mark unwind point in the global
8621 avail_expr stack as needed.
8622 (record_cond): Push elements into the global avail_exprs stack.
8623
8624 * tree-dfa.c (free_df_for_stmt): No longer static.
8625 (free_df): Update comments.
8626 * tree-flow.h (free_df_for_stmt): Prototype.
8627 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
8628 call release_defs.
8629
8630 2004-09-14 Diego Novillo <dnovillo@redhat.com>
8631
8632 PR tree-optimization/17252
8633 * tree-ssa-alias.c (may_alias_p): Don't assume that a
8634 pointer may not point to itself when using relaxed
8635 aliasing rules.
8636
8637 2004-09-14 Richard Henderson <rth@redhat.com>
8638
8639 PR middle-end/17397
8640 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
8641 while folding <ADDR_EXPR <INDIRECT_REF X>>.
8642
8643 2004-09-14 Andrew Pinski <apinski@apple.com>
8644
8645 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
8646 sets of the pointers but the aliasing sets of what they point to.
8647
8648 2004-09-14 Roger Sayle <roger@eyesopen.com>
8649
8650 PR rtl-optimization/9771
8651 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
8652 conditional compilation in init_reg_sets_1.
8653 (init_reg_sets_1): Let global_regs[i] take priority over the frame
8654 (but not stack) pointer exceptions to regs_invalidated_by_call.
8655 (globalize_reg): Globalizing a fixed register may need to update
8656 regs_invalidated_by_call.
8657
8658 2004-09-14 Diego Novillo <dnovillo@redhat.com>
8659
8660 PR tree-optimization/15262
8661 * tree-dfa.c (dump_variable): Also print the type of the
8662 variable.
8663 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
8664 memory tags are of conflicting alias sets but have no aliased
8665 symbols in common, add one tag to the alias set of the other.
8666 (setup_pointers_and_addressables): Remove hack to deal with
8667 programs with no aliased symbols.
8668 (may_alias_p): Don't special case aggregate types.
8669
8670 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
8671
8672 PR c/15498
8673 * doc/invoke.texi (Environment Variables): Correct example locale.
8674
8675 2004-09-14 Jan Hubicka <jh@suse.cz>
8676
8677 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
8678
8679 2004-09-14 Mark Mitchell <mark@codesourcery.com>
8680
8681 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
8682
8683 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
8684
8685 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
8686 restrict_p.
8687 (struct c_declarator): Change u.array.quals and pointer_quals to
8688 int. Add u.array.attrs.
8689 (quals_from_declspecs): New.
8690 * c-decl.c (quals_from_declspecs): New.
8691 (shadow_tag_warned): Give more specific message for useless type
8692 qualifiers.
8693 (build_array_declarator, set_array_declarator_inner,
8694 grokdeclarator, make_pointer_declarator, build_null_declspecs,
8695 declspecs_add_qual): Update for changed structures.
8696
8697 2004-09-14 Jeff Law <law@redhat.com>
8698
8699 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
8700 to a global varray.
8701 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
8702 (dom_opt_initialize_block_local_data): No longer test state
8703 of stmts_to_rescan.
8704 (dom_opt_finalize_block): Update due to change in scope of
8705 stmts_to_rescan.
8706 (optimize_stmt): Similarly.
8707
8708 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8709
8710 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
8711 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
8712 comment typos. Follow spelling conventions.
8713
8714 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8715
8716 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
8717 config/i386/predicates.md, config/sparc/sparc.c: Follow
8718 spelling conventions.
8719
8720 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8721 Steven Bosscher <stevenb@suse.de>
8722
8723 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
8724 * basic-block.h (struct reorder_block_def): Add copy_number field.
8725 * cfgloop.h (biv_p): Declare.
8726 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
8727 * common.opt (fsplit-ivs-in-unroller): New flag.
8728 * loop-iv.c (biv_p): New function.
8729 * loop-unroll.c: Include hashtab.h and recog.h.
8730 (struct iv_to_split, struct split_ivs_info): New types.
8731 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
8732 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
8733 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
8734 insert_base_initialization, split_iv): New functions.
8735 (peel_loop_completely, unroll_loop_constant_iterations,
8736 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
8737 Use them.
8738 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
8739
8740 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8741
8742 * tree-cfg.c (thread_jumps): Update dominators correctly in
8743 case destination of threaded edge dominates its source.
8744
8745 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8746
8747 * unroll.c: Removed.
8748 * loop.h: Removed.
8749 * Makefile.in (LOOP_H, unroll.o): Removed.
8750 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
8751 dependency.
8752 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
8753 reference.
8754 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
8755 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
8756 * loop.c: Do not include loop.h.
8757 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
8758 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
8759 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
8760 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
8761 struct loop_regs, struct loop_movables, struct loop_info): Moved
8762 from loop.h.
8763 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
8764 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
8765 find_common_reg_term, loop_iterations, final_giv_value): Moved
8766 from unroll.c.
8767 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
8768 loop_dump_stream, for_each_insn_in_loop, express_from,
8769 extend_value_for_giv, loop_iv_add_mult_emit_before,
8770 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
8771 loop_insn_first_p, get_condition_for_loop,
8772 loop_insn_emit_before, loop_insn_hoist,
8773 loop_insn_sink): Made static.
8774 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
8775 reference.
8776 (strength_reduce): Do not call unroller.
8777 (record_giv): Do not initialize unrolled field.
8778 (prescan_loop): Do not set loop_info->preconditioned.
8779 * passes.c: Do not include loop.h.
8780 (rest_of_handle_loop_optimize): Do not call unroller.
8781 * predict.c: Do not include loop.h.
8782 * rtl.h (NOTE_PRECONDITIONED): Removed.
8783 * stmt.c: Do not include loop.h.
8784 * toplev.c: Do not include loop.h.
8785 (process_options): Do not handle flag_old_unroll_loops.
8786
8787 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
8788 Documentation removed.
8789 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
8790
8791 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
8792
8793 * Makefile.in (STAGE1_CHECKING): New variable.
8794 (stage1_build): Use it.
8795 * tree-ssa.c (verify_ssa): Preserve state of dominance
8796 information.
8797
8798 2004-09-14 Uros Bizjak <uros@kss-loka.si>
8799
8800 * config/i386/i386.c (output_fp_compare): Add generation
8801 of ftst instruction.
8802 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
8803 Use output_fp_compare () function.
8804 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
8805 (fix_truncdi_memory): Remove operands[5] copy.
8806
8807 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8808
8809 * config/m32r/m32r.md, config/m68k/m68kelf.h,
8810 config/mcore/mcore.md, config/rs6000/linux64.h,
8811 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
8812 typos.
8813
8814 2004-09-13 James E Wilson <wilson@specifixinc.com>
8815
8816 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
8817 * gen-protos.c: Include errors.h.
8818 (progname): Delete.
8819
8820 2004-09-14 Jan Hubicka <jh@suse.cz>
8821
8822 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
8823 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
8824 (predict_loops): Use number_of_iterations_exit to predict
8825 number of iterations on trees.
8826
8827 2004-09-13 Dale Johannesen <dalej@apple.com>
8828
8829 PR 17408
8830 PR 17409
8831 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
8832 objects declared extern.
8833
8834 2004-09-14 Paul Brook <paul@codesourcery.com>
8835
8836 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
8837 HOST_WIDE_INT.
8838
8839 2004-09-13 Daniel Jacobowitz <dan@debian.org>
8840
8841 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
8842 Only use TYPE_BINFO for aggregates.
8843
8844 2004-09-13 Daniel Jacobowitz <dan@debian.org>
8845
8846 * expmed.c (synth_mult): Initialize latency. Check cost before
8847 checking ops count.
8848
8849 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
8850
8851 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
8852 add_call_clobber_ops and add_call_read_ops.
8853 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
8854 the number of vdefs and vuses inserted based on analysis of global
8855 variables across calls. * tree-dfa.c (find_referenced_vars):
8856 Needed to reset static var maps before each function is compiled.
8857 * cgraphunit.c:
8858 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
8859 static_vars_info,functions_to_static_vars_info,module_statics_escape,
8860 all_module_statics,searchc_env,dfs_info): New fields to support
8861 analysis of static global variables.
8862 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
8863 cgraph_reset_static_var_maps, get_global_static_vars_info,
8864 get_global_statics_not_read, get_global_statics_not_written,
8865 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
8866 check_rhs_var, check_lhs_var, get_asm_expr_operands,
8867 process_call_for_static_vars, scan_for_static_refs,
8868 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
8869 clear_static_vars_maps, cgraph_propagate_bits,
8870 cgraph_characterize_statics): New. Functions to support analysis
8871 of static global variables.
8872 (cgraph_mark_local_and_external_functions): Renamed from:
8873 (cgraph_mark_local_functions)
8874 (cgraph_expand_all_functions): Remove call to
8875 cgraph_mark_local_and_external_functions.
8876 (cgraph_optimize): Added driver to analyze static variables whose
8877 scope is within the compilation unit. * cgraph.h (struct
8878 cgraph_local_info, GTY): Added statics_read, statics_written,
8879 local, calls_read_all, calls_write_all, for_functions_valid.
8880 (struct cgraph_node): Added next_cycle. * cgraph.c
8881 (dump_cgraph_node): Added print routines for new fields. *
8882 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
8883 list.
8884
8885 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
8886
8887 * c-decl.c (grokdeclarator): Correct comments about where storage
8888 class specifiers are rejected by grammar and add corresponding
8889 asserts. Diagnose typedefs and parameters declared inline.
8890 Change warning for inline main to a pedwarn. Only diagnose inline
8891 main if hosted.
8892 (declspecs_add_scspec): Allow duplicate "inline".
8893
8894 2004-09-13 Steve Ellcey <sje@cup.hp.com>
8895
8896 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
8897 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
8898
8899 2004-09-13 Richard Henderson <rth@redhat.com>
8900
8901 PR 17436
8902 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
8903 (tree_type): Replace spare with contains_placeholder_bits.
8904 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
8905 make static. Remove seen_types list.
8906 (type_contains_placeholder_p): New.
8907
8908 2004-09-13 James E Wilson <wilson@specifixinc.com>
8909
8910 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
8911 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
8912 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
8913 bdesc_arrays instead of mips_bdesc.
8914 (mips_init_builtins): Likewise.
8915 * config/mips/mips.h (TARGET_SB1): New.
8916 (HAVE_SQRT_P): Delete.
8917 * config/mips/mips.md (divide_condition): Support V2SF.
8918 (sqrt_condition, recip_condition): New.
8919 (div<mode>3): Use ANYF instead of SCALARF.
8920 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
8921 MODE.
8922 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
8923 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
8924 instead of MODE.
8925 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
8926 instead of SCALARF. Use UNITMODE instead of MODE.
8927
8928 2004-09-13 Zack Weinberg <zack@codesourcery.com>
8929
8930 * config.in: Regenerate after removal of libbanshee.
8931
8932 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
8933
8934 PR tree-optimization/17400
8935 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8936 coalesce partitions when one occurs in an abnormal PHI.
8937
8938 2004-09-13 Andrew Pinski <apinski@apple.com>
8939
8940 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
8941 name to _new_size.
8942
8943 2004-09-13 Richard Henderson <rth@redhat.com>
8944
8945 PR inline-asm/6806
8946 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
8947 (cselib_invalidate_rtx_note_stores): New.
8948 (cselib_record_sets, cselib_process_insn): Update to match.
8949 * cselib.h (cselib_invalidate_rtx): Declare.
8950 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
8951
8952 2004-09-13 Richard Henderson <rth@redhat.com>
8953
8954 PR tree-opt/10528
8955 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
8956 after copying its argument.
8957
8958 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
8959
8960 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
8961 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
8962 in diagnostics. Use %' for English apostrophes.
8963 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
8964 (pedwarn_c90, pedwarn_c99): Use it.
8965 * c-decl.c (lookup_label): Quote label name in diagnostic.
8966 * c-parse.in (yyprint): Use ' instead of ` for left quote.
8967 * c-typeck.c (warn_for_assignment): Likewise.
8968
8969 2004-09-13 Jan Hubicka <jh@suse.cz>
8970
8971 * i386.c (x86_schedule): New global variable.
8972 (override_options): Disable scheduling when not supported.
8973 * i386.h (x86_schedule): Declare.
8974 (TARGET_SCHEDULE): New macro.
8975
8976 2004-09-12 Richard Henderson <rth@redhat.com>
8977
8978 PR c++/16254
8979 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
8980 * tree.c, tree.h (has_cleanups): Remove.
8981
8982 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8983
8984 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
8985 arguments of the phi nodes correctly.
8986
8987 2004-09-12 Jan Hubicka <jh@suse.cz>
8988
8989 * ggc-common.c (cmp_statistics): Fix sorting.
8990
8991 2004-09-12 David Edelsohn <edelsohn@gnu.org>
8992
8993 PR target/16795
8994 * expmed.c (expand_divmod): If cheap power of 2 divide is
8995 available, use it for negative constant as well.
8996
8997 2004-09-12 Andrew Pinski <apinski@apple.com>
8998
8999 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
9000 size of 0.
9001
9002 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
9003
9004 2004-09-12 Richard Henderson <rth@redhat.com>
9005
9006 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
9007 or minus one.
9008 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
9009 post-reload, and scratch NULL.
9010 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
9011 (x86_shift_adj_2): Use ix86_expand_clear.
9012 (ashldi3): Remove CMOVE expansion difference.
9013 (ashldi3_1): Remove.
9014 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
9015 add constraints for immediates. New peephole for split-with-temp.
9016 Run splitter after peep2 pass.
9017 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
9018 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
9019 (setcc_2): Rename with *.
9020 * config/i386/predicates.md (reg_or_pm1_operand): New.
9021 (ashldi_input_operand): New.
9022
9023 2004-09-12 Richard Henderson <rth@redhat.com
9024
9025 * print-rtl.c (print_decl_name): New.
9026 (print_mem_expr): Use it.
9027
9028 2004-09-12 Richard Henderson <rth@redhat.com
9029
9030 PR 17186, part deux
9031 * except.c (sjlj_emit_function_exit): Fix logic locating
9032 sjlj_exit_after in final block.
9033
9034 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
9035
9036 * common.opt: Remove flags -fmove-all-movables and
9037 -freduce-all-givs.
9038 * loop-invariant.c (find_invariants_to_move):
9039 Remove all uses of flag_move_all_movables.
9040 * loop.c (move_movables): Remove all uses of
9041 flag_move_all_movables.
9042 (strength_reduce): Remove all uses of
9043 flag_reduce_all_givs.
9044 * doc/invoke.texi: Remove documentation of flags
9045 -fremove-all-movables and -freduce-all-givs.
9046
9047 2004-09-11 Roger Sayle <roger@eyesopen.com>
9048
9049 PR middle-end/17411
9050 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
9051 change. elt->type may be a floating point type, so use fold_convert.
9052
9053 2004-09-11 Geoffrey Keating <geoffk@apple.com>
9054
9055 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
9056 the thing referenced as used, not the stub itself.
9057
9058 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
9059
9060 * c-tree.h (enum c_storage_class): New.
9061 (struct c_declspecs): Add storage_class, inline_p and thread_p.
9062 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
9063 declarations and "auto" or "register" in file scope empty
9064 declarations. Give more specific warnings for other cases of
9065 storage class specifiers in empty declarations.
9066 (grokdeclarator): Update for new structures. Don't check for
9067 multiple storage classes. Diagnose file-scope "register" if
9068 pedantic.
9069 (build_null_declspecs): Update.
9070 (declspecs_add_scspec): Update. Diagnose multiple storage class
9071 specifiers and invalid uses of "__thread".
9072
9073 2004-09-11 Zack Weinberg <zack@codesourcery.com>
9074
9075 * tree.c (tree_code_size): New function, bulk of code from tree_size.
9076 (tree_size, make_node): Use it.
9077 * tree-ssa-pre.c (init_pre): Use it.
9078 * tree.h: Prototype it.
9079
9080 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9081
9082 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
9083 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
9084 redirect_immediate_use): Use PHI_DF.
9085 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
9086 (bb_for_stmt): Use PHI_BB.
9087 (get_immediate_uses): Use PHI_DF.
9088 * tree-ssa-dse.c (max_stmt_uid): New variable.
9089 (get_stmt_uid): New function.
9090 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
9091 node annotations.
9092 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
9093 (max_uid): Renamed to max_stmt_uid.
9094 (get_stmt_uid): New function.
9095 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
9096 phi node annotations.
9097 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
9098 * tree.h (PHI_BB, PHI_DF): New accessor functions.
9099 (struct tree_phi_node): Add bb and df fields.
9100
9101 2004-09-11 Richard Henderson <rth@redhat.com>
9102
9103 PR middle-end/17416
9104 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
9105 in conflict loop.
9106
9107 2004-09-11 Jan Hubicka <jh@suse.cz>
9108
9109 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
9110 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
9111 * i386.md (i387_cw): Add 'uninitialized' mode.
9112
9113 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
9114 (output_location): Break out from ....
9115 (branch_prob): ... here; handle gcov output on trees.
9116 * toplev.c (process_options): No longer be sorry about coverage for
9117 trees.
9118
9119 2004-09-11 Steven Bosscher <stevenb@suse.de>
9120
9121 PR c++/17412
9122 * fold-const.c (fold): Do not try to fold the operand of a
9123 CLEANUP_POINT_EXPR if that operand does itself not have any
9124 operands.
9125
9126 PR middle-end/17417
9127 * langhooks.c (lhd_decl_printable_name): Make sure that this
9128 function is called with is a decl node that has an identifier.
9129 * tree-pretty-print.c (dump_function_name): New function to
9130 wrap PRINT_FUNCTION_NAME and dump_decl_name.
9131 (print_call_name): Use it.
9132
9133 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
9134
9135 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
9136 "config.h" if not.
9137
9138 2004-09-11 Jakub Jelinek <jakub@redhat.com>
9139
9140 * tree-ssa-alias.c (collect_points_to_info_r): Handle
9141 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
9142 to OFFSET.
9143
9144 2004-09-11 Richard Henderson <rth@redhat.com>
9145
9146 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
9147 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
9148 operand of the ADDR_EXPR.
9149 (expand_expr_real_1): Update to match.
9150
9151 2004-09-11 David Edelsohn <edelsohn@gnu.org>
9152
9153 PR target/17277
9154 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
9155 choose 64-bit version.
9156
9157 2004-09-11 Richard Henderson <rth@redhat.com>
9158
9159 PR c/17396
9160 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
9161
9162 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
9163
9164 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
9165 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
9166 Insert @: after i.e. or e.g.
9167
9168 2004-09-10 Geoffrey Keating <geoffk@apple.com>
9169
9170 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
9171 D.xxx rather than <Dxxx>.
9172
9173 2004-09-10 Adam Nemet <anemet@lnxw.com>
9174
9175 * configure.ac (AC_MSG_CHECKING(what linker to use)):
9176 in_tree_ld_is_elf should be true for LynxOS.
9177 * configure: Regenerate.
9178
9179 2004-09-10 Adam Nemet <anemet@lnxw.com>
9180
9181 * Makefile.in (all.cross): Add srcextra.
9182
9183 2004-09-10 Roger Sayle <roger@eyesopen.com>
9184
9185 PR middle-end/17024
9186 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
9187 floating point comparison operators. Change aborts to gcc_asserts.
9188
9189 2004-09-10 Geoffrey Keating <geoffk@apple.com>
9190
9191 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
9192
9193 2004-09-10 James E Wilson <wilson@specifixinc.com>
9194
9195 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
9196 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
9197
9198 * convert.c (convert_to_vector): Replace recursive call with
9199 error_mark_node.
9200
9201 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
9202 Add integer argument named constant. Use const_tiny_rtx instead of
9203 CONST0_RTX.
9204 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
9205 and CONST1_RTX.
9206 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
9207 vector types.
9208 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
9209 of gen_rtx_raw_CONST_VECTOR.
9210
9211 2004-09-10 Eric Christopher <echristo@redhat.com>
9212
9213 PR c/16046
9214 * c-parse.in (attribute): Add NULL_TREE for error case
9215 for error recovery.
9216
9217 2004-09-10 Zack Weinberg <zack@codesourcery.com>
9218
9219 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
9220 (extract_interface_info): Delete prototype.
9221 * c-decl.c (extract_interface_info): Delete stub.
9222 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
9223 it's not already been done ...
9224 (init_c_lex): ... not here.
9225 (fe_file_change): Don't call extract_interface_info.
9226
9227 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
9228
9229 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
9230 typedef_p and typedef_signed_p.
9231 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
9232 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
9233 Check typedef_p and typedef_signed_p, not typedef_decl.
9234 (grokfield): Check typedef_p, not typedef_decl.
9235 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
9236 not typedef_decl.
9237 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
9238 typedef_decl.
9239
9240 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9241
9242 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
9243
9244 2004-09-10 Geoffrey Keating <geoffk@apple.com>
9245
9246 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
9247 temporary variables.
9248
9249 * dbxout.c (dbxout_block): Update for
9250 current_function_func_begin_label a string.
9251 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
9252 * except.c (dw2_output_call_site_table): Likewise.
9253 * toplev.c (current_function_func_begin_label): Likewise.
9254 * tree.h (current_function_func_begin_label): Likewise.
9255 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
9256
9257 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
9258 loop.
9259
9260 * config/darwin.c: Include target.h.
9261 (struct machopic_indirection): Make ptr_name a string.
9262 (machopic_indirection_hash): Update for ptr_name a string.
9263 (machopic_indirection_eq): Likewise.
9264 (machopic_indirection_name): Likewise.
9265 (machopic_output_indirection): Likewise.
9266 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
9267 string. Don't expect stub names to be in the identifier hash table.
9268 Do call strip_name_encoding before looking up entry in ID hash table.
9269 * config/t-darwin (darwin.o): Add target.h to dependencies.
9270
9271 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
9272 of fprintf for register names.
9273
9274 * output.h (unlikely_section_label): Delete declaration.
9275 (unlikely_text_section_name): Likewise.
9276 * varasm.c (unlikely_section_label_printed): Make static.
9277 (unlikely_section_label): Likewise.
9278 (unlikely_text_section_name): Likewise.
9279 (assemble_start_function): Use reconcat.
9280
9281 * rtl.def (REG): Add comment to describe third field.
9282
9283 2004-09-10 Andrew Pinski <apinski@apple.com>
9284
9285 * config/darwin.c (machopic_mcount_stub_name): Call
9286 machopic_indirection_name instead of making the string
9287 ourselves.
9288
9289 2004-09-10 Diego Novillo <dnovillo@redhat.com>
9290
9291 Revert
9292
9293 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
9294
9295 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
9296 memory tag is call clobbered, so are its aliases.
9297 (group_aliases): When two memory tags being grouped, if one is
9298 call clobbered, so are the other and its aliases.
9299 (add_may_alias): Remove call-clobbering stuff.
9300 (replace_may_alias): Likewise.
9301 (merge_pointed_to_info): Merge pt_global_mem
9302
9303 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9304
9305 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
9306 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
9307 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
9308 tree-scalar-evolution.c, tree-ssa-copyrename.c,
9309 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
9310
9311 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
9312
9313 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
9314 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
9315 pair. Remove match_dup from inputs. Remove masaccs handling.
9316 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
9317 (masaccs, mdasaccs): Turn into define_insns.
9318
9319 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
9320
9321 * tree-tailcall.c (process_assignment): Only do accumulator transforms
9322 for floating-point types if flag_unsafe_math_optimizations.
9323
9324 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9325
9326 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
9327 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
9328 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
9329 config/h8300/h8300.md, config/i386/gmm_malloc.h,
9330 config/ia64/ia64.md, config/ip2k/libgcc.S,
9331 config/mips/mips-ps-3d.md, config/mips/mips.c,
9332 config/rs6000/rs6000.c, config/s390/s390.c,
9333 config/sh/symbian.c: Fix comment typos.
9334
9335 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
9336
9337 * config/s390/s390.c (s390_emit_prologue): Added missing
9338 "{}" brackets.
9339
9340 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9341
9342 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
9343 typos. Follow spelling conventions.
9344
9345 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
9346
9347 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
9348 in diagnostic. Don't dereference NULL TYPE_NAME.
9349
9350 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9351
9352 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
9353 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
9354 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
9355 value-prof.c: Fix comment typos. Follow spelling conventions.
9356
9357 2004-09-10 Jan Hubicka <jh@suse.cz>
9358
9359 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
9360 * tree-split_edge.c (tree_split_edge): Likewise.
9361 (thread_jumps): Likewise.
9362
9363 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9364
9365 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
9366 typos.
9367
9368 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
9369
9370 * cgraph.h (cgraph_dump_file): Do not declare.
9371 * cgraphunit.c (cgraph_dump_file): Declare as static.
9372 (init_cgraph): New.
9373 * toplev.c (cgraph_dump_file): Do not declare.
9374 (compile_file): Call init_cgraph.
9375 * tree-dump.c (dump_files): Add IPA dump file, remove
9376 XML dump of call graph.
9377 (get_dump_file_name): Support IPA dump file naming scheme.
9378 * tree.h (enum tree_dump_index): Add IPA dump file, remove
9379 XML dump of call graph.
9380 * doc/invoke.texi (Debugging Options): Document the new options.
9381
9382 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
9383
9384 * doc/extend.texi: Document the FR-V built-in functions.
9385
9386 2004-09-09 James E Wilson <wilson@specifixinc.com>
9387
9388 * doc/sourcebuild.texi: Delete libbanshee reference.
9389
9390 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
9391
9392 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
9393
9394 2004-09-09 James E Wilson <wilson@specifixinc.com>
9395
9396 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
9397 before calling vector_types_convertible_p.
9398 (digest_init): Check that inside_init has VECTOR_TYPE before calling
9399 vector_types_convertible_p. Don't give another error if
9400 convert_for_assignment returns error_mark_node.
9401
9402 2004-09-09 Roger Sayle <roger@eyesopen.com>
9403
9404 PR middle-end/17055
9405 * fold-const.c (build_zero_vector): New function to construct a
9406 vector (either floating point or integer) of zeros.
9407 (fold_convert): Internally, enable conversions of integer zero
9408 to arbitrary vector types, using the new build_zero_vector.
9409
9410 2004-09-09 Roger Sayle <roger@eyesopen.com>
9411
9412 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
9413 expand a left shift by an immediate constant as either an ashl or
9414 a sequence of additions.
9415 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
9416 instead of calling gen_ashlsi3 with a constant directly.
9417
9418 2004-09-09 Roger Sayle <roger@eyesopen.com>
9419
9420 * config/i386/i386.c (ix86_split_long_move): When optimizing for
9421 size, and the low and high parts of a DImode constant are equal,
9422 copy one register to another instead of loading the same immediate
9423 value twice.
9424
9425 2004-09-09 Richard Henderson <rth@redhat.com>
9426
9427 PR middle-end/17367
9428 * function.c (assign_parm_setup_block): Only put PARALLELs into
9429 a register if use_register_for_decl.
9430
9431 2004-09-09 Eric Christopher <echristo@redhat.com>
9432
9433 * ra-colorize.c (reset_lists): Move variable declaration inside
9434 ENABLE_CHECKING to avoid unused variable warnings when
9435 not --enable-checking.
9436 (check_colors): Ditto.
9437
9438 2004-09-09 Mike Stump <mrs@apple.com>
9439
9440 * version.c (version_string): Bump to 4.0.0.
9441 * doc/include/gcc-common.texi (version-GCC): Likewise.
9442
9443 2004-09-10 Jakub Jelinek <jakub@redhat.com>
9444
9445 * doc/extend.texi (nothrow attribute): The attribute is not
9446 implemented in 3.2 and earlier.
9447
9448 2004-09-09 Steve Ellcey <sje@cup.hp.com>
9449
9450 * genrecog.c (compute_predicate_codes): Use op0_codes
9451 instead of codes.
9452
9453 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
9454
9455 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
9456 implementation changes.
9457
9458 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
9459
9460 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
9461 a PARALLEL instead of a SET due to added clobbers.
9462
9463 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
9464
9465 * reload.c (find_reloads_address): Pass correct operand to
9466 maybe_memory_address_p.
9467
9468 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
9469
9470 * Makefile.in: Remove libbanshee, tree-alias-*.
9471 Remove tree-alias-common.h dependencies.
9472 * common.opt: Remove -ftree-points-to.
9473 * configure.ac: Remove libbanshee.
9474 * flags.h: Remove pta_type, flag_tree_points_to.
9475 * gengtype.c (open_base_files): Remove tree-alias-type.h.
9476 * opts.c (OPT_ftree_points_to): Remove.
9477 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
9478 * tree-dfa.c: Remove tree-alias-common.h
9479 * tree-into-ssa.c: Ditto.
9480 * tree-outof-ssa.c: Ditto.
9481 * tree-ssa-copyrename.c: Ditto.
9482 * tree-ssa-live.c: Ditto.
9483 * tree-optimize.c: Ditto.
9484 * tree-ssa.c: Ditto.
9485 Remove pass_build_pta, pass_del_pta.
9486 * tree-pass.h: Ditto.
9487 * tree-ssa-alias.c: Remove tree-alias-common.h.
9488 (struct alias_stats_d): Remove pta_queries, pta_resolved.
9489 (pass_may_alias): Remove PROP_pta requirement.
9490 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
9491 (get_tmt_for): Ditto.
9492 (dump_alias_stats): Ditto.
9493 * doc/passes.texi: Remove blurb about points-to analysis.
9494 * fortran/Make-lang.in: Remove tree-alias-*.o.
9495
9496 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
9497
9498 * genattrtab.c (write_insn_cases): New function, split out from
9499 write_attr_case. Correctly handle define_peepholes when printing
9500 the instruction name.
9501 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
9502
9503 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
9504
9505 PR target/17377
9506 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
9507 * config/cris/cris.c (cris_return_address_on_stack): New function.
9508 * config/cris/cris.md ("return"): For location of return address,
9509 also check cris_return_address_on_stack.
9510
9511 2004-09-09 Diego Novillo <dnovillo@redhat.com>
9512
9513 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
9514 calling phi_ssa_name_p.
9515
9516 2004-09-09 Richard Henderson <rth@redhat.com>
9517
9518 PR c/17322
9519 * c-typeck.c (valid_compound_expr_initializer): Use only
9520 initializer_constant_valid_p, and not TREE_CONSTANT.
9521 (digest_init): Likewise.
9522 (output_init_element): Likewise.
9523
9524 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
9525
9526 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
9527 live_out_1, prune_hardregs_for_mode, init_one_web_common,
9528 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
9529 record_conflict, compare_and_free_webs, init_webs_defs_uses,
9530 parts_to_webs_1, parts_to_webs, reset_conflicts,
9531 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
9532 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
9533 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
9534 put_move, remove_move, combine, select_spill, colorize_one_web,
9535 try_recolor_web, insert_coalesced_conflicts, check_colors,
9536 break_precolored_alias, restore_conflicts_from_coalesce,
9537 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
9538 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
9539 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
9540 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
9541 check_df): Likewise.
9542 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
9543 real_arithmetic, real_compare, real_exponent, real_ldexp,
9544 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
9545 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
9546 real_digit, real_nan, real_maxval, round_for_format, real_convert,
9547 real_to_target, real_from_target, real_hash, encode_ieee_single,
9548 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
9549 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
9550 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
9551 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
9552 extract_insn, peep2_next_insn, peep2_reg_dead_p,
9553 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
9554 if_test_bypass_p): Likewise.
9555 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
9556 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
9557 emit_swap_insn, swap_to_top, move_for_stack_reg,
9558 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
9559 compensate_edge, convert_regs_1): Likewise.
9560 * regclass.c (init_reg_sets, init_reg_sets_1,
9561 memory_move_secondary_cost): Likewise.
9562 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
9563 Likewise.
9564 * reload.c (push_secondary_reload, find_valid_class, push_reload,
9565 operands_match_p, decompose, immune_p, find_reloads,
9566 find_reloads_toplev, find_reloads_address_1, subst_reloads,
9567 copy_replacements, refers_to_regno_for_reload_p,
9568 reg_overlap_mentioned_for_reload_p): Likewise.
9569 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
9570 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
9571 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
9572 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
9573 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
9574 do_output_reload, fixup_abnormal_edges): Likewise.
9575 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
9576 fill_slots_from_thread, relax_delay_slots): Likewise.
9577 * resource.c (mark_referenced_resources, mark_set_resources):
9578 Likewise.
9579 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
9580 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
9581 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
9582 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
9583 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
9584 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
9585 * rtlhooks.c (gen_lowpart_general): Likewise.
9586 * sbitmap.c (sbitmap_difference): Likewise.
9587 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
9588 sched_analyze, add_forward_dependence): Likewise.
9589 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
9590 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
9591 schedule_insns): Likewise.
9592 * sched-vis.c (print_pattern): Likewise.
9593 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
9594 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
9595 simplify_const_relational_operation, simplify_ternary_operation,
9596 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
9597 Likewise.
9598 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
9599 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
9600 resolve_operand_name_1, expand_return, expand_decl,
9601 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
9602 * stor-layout.c (put_pending_size, smallest_mode_for_size,
9603 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
9604 set_sizetype, get_mode_bounds): Likewise.
9605
9606 2004-09-09 Zack Weinberg <zack@codesourcery.com>
9607
9608 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
9609 * config/arm/pecoff.h, config/i386/beos-elf.h
9610 * config/i386/cygming.h, config/i386/i386-interix.h:
9611 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
9612 comment cloned from manual.
9613 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
9614
9615 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
9616
9617 * builtins.c (build_va_arg_indirect_ref): New function.
9618 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
9619 build_fold_indirect_ref.
9620 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
9621 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
9622 * tree.h: Declare new function.
9623
9624 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9625
9626 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
9627 dumping for development builds.
9628 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
9629 development builds only.
9630 * genattrtab.c (write_eligible_delay): Fix typo in previous
9631 commit.
9632 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
9633 gcc_assert.
9634
9635 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9636
9637 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
9638 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
9639 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
9640 hoist_code, extract_mentioned_regs_helper, compute_store_table,
9641 insert_store): Use gcc_assert and gcc_unreachable.
9642 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
9643 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
9644 ggc_record_overhead): Likewise.
9645 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
9646 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
9647 ggc_pop_context, clear_marks, validate_free_objects,
9648 ggc_pch_read): Likewise.
9649 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
9650 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
9651 ggc_push_context, check_cookies, ggc_collect,
9652 ggc_print_statistics): Likewise.
9653 * gimple-low.c (lower_function_body, lower_stmt,
9654 lower_bind_expr): Likewise.
9655 * gimplify.c (gimple_tree_eq, push_gimplify_context,
9656 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
9657 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
9658 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
9659 gimplify_case_label_expr, gimplify_exit_block_expr,
9660 canonicalize_component_ref, gimplify_compound_lval,
9661 gimplify_self_mod_expr, gimplify_call_expr,
9662 gimplify_init_ctor_eval, gimplify_init_constructor,
9663 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
9664 gimplify_expr, check_pointer_types_r,
9665 force_gimple_operand): Likewise.
9666 * global.c (global_alloc, build_insn_chain): Likewise.
9667 * graph.c (clean_graph_dump_file,
9668 finish_graph_dump_file): Likewise.
9669 gcov-io.c (gcov_open): Use GCOV_CHECK.
9670
9671 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
9672
9673 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
9674
9675 2004-09-09 Jan Hubicka <jh@suse.cz>
9676
9677 middle-end/17128
9678 * tree-inline.c (expand_call_inline): Make overactive sanity check
9679 happy.
9680
9681 2004-09-09 Jan Hubicka <jh@suse.cz>
9682
9683 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
9684 VIEW_CONVERT_EXPR.
9685
9686 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9687
9688 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
9689 (gengtype.o): Depend on errors.h.
9690 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
9691 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
9692 attr_alt_subset_p, attr_alt_subset_of_compl_p,
9693 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
9694 write_test_expr, write_attr_value, write_eligible_delay,
9695 make_internal_attr, make_numeric_value): Likewise.
9696 * genautomata.c (regexp_name, get_str_vect,
9697 gen_presence_absence_set, automaton_decl_hash,
9698 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
9699 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
9700 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
9701 test_unit_reserv, it_is_empty_reserv_sets,
9702 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
9703 reserv_sets_and, output_cycle_reservs, get_free_state,
9704 intersected_state_reservs_p, states_union, remove_arc,
9705 copy_insn_regexp, transform_1, transform_2, transform_3,
9706 regexp_transform_func, store_alt_unit_usage,
9707 check_regexp_units_distribution, process_seq_for_forming_states,
9708 process_alts_for_forming_states, make_automaton,
9709 form_arcs_marked_by_insn, create_composed_state,
9710 set_out_arc_insns_equiv_num, partition_equiv_class,
9711 process_insn_equiv_class, set_insn_equiv_classes,
9712 units_to_automata_heuristic_distr, form_regexp,
9713 longest_path_length, output_dfa_max_issue_rate, add_vect,
9714 out_state_arcs_num, add_vect_el, output_trans_table,
9715 output_state_alts_table, output_dead_lock_vect,
9716 output_max_insn_queue_index_def,
9717 output_min_insn_conflict_delay_func,
9718 output_internal_insn_latency_func, output_print_reservation_func,
9719 output_cpu_unit_reservation_p, output_state_arcs,
9720 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
9721 make_default_insn_latency_attr,
9722 form_important_insn_automata_lists): Likewise.
9723 * genemit.c (gen_exp, output_add_clobbers,
9724 output_added_clobbers_hard_reg_p): Likewise.
9725 * genextract.c (print_path, main): Likewise.
9726 * genflags.c (gen_macro): Likewise.
9727 * gengenrtl.c: Include errors.h
9728 (type_from_format, accessor_from_format): Likewise.
9729 * gengtype.c (get_file_basename, output_mangled_typename,
9730 walk_type, write_types_process_field,
9731 write_types_local_process_field): Likewise.
9732 * genmodes.c (complete_mode): Likewise.
9733 * genopinit.c (gen_insn): Likewise.
9734 * genoutput.c (output_insn_data, check_constraint_len,
9735 constraint_len): Likewise.
9736 * genpreds.c (add_mode_tests):Likewise.
9737 * gen-protos.c (add_hash): Likewise.
9738 * genrecog.c (find_operand, find_matching_operand,
9739 validate_pattern, add_to_sequence, maybe_both_true,
9740 nodes_identical_1, merge_trees, write_switch, write_cond,
9741 write_action, is_unconditional, make_insn_sequence,
9742 debug_decision_2): Likewise.
9743 * gensupport.c (is_predicable, collect_insn_data,
9744 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
9745
9746 2004-09-09 Jan Hubicka <jh@suse.cz>
9747
9748 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
9749 * cfgbuild.c (compute_outgoing_frequencies): When probability is
9750 missing, guess it.
9751 (find_many_sub_basic_blocks): Do update profile only when it is
9752 present.
9753 * predict.c (set_even_probabilities): Break out from ...
9754 (combine_predictions_for_insn): ... here; deal with
9755 !can_predict_insn_p insns.
9756 (combine_predictions_for_bb): Use set_even_probabilities.
9757 (bb_estimate_probability_locally): Break out from ....
9758 (estimate_probability): ... here.
9759 (guess_outgoing_edge_probabilities): New entry point.
9760
9761 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9762
9763 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
9764 handle_braces, process_brace_body, main, used_arg,
9765 set_multilib_dir, print_multilib_info): Use fatal, not abort.
9766
9767 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
9768
9769 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
9770 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
9771 Morgan's theorem in last checkin.
9772
9773 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
9774 Nathan Sidwell <nathan@codesourcery.com>
9775
9776 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
9777 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
9778 * timevar.c (timevar_push, timevar_pop, timevar_start,
9779 timevar_stop): Likewise.
9780 * toplev.c (default_pch_valid_p): Likewise.
9781 * tracer.c (tail_duplicate): Likewise.
9782 * tree-alias-common.c (get_alias_var_decl,
9783 get_values_from_constructor, create_alias_var, delete_alias_vars,
9784 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
9785 Likewise.
9786 * tree.c (tree_size, make_node_stat, copy_node_stat,
9787 build_int_cst_wide, integer_all_onesp, list_length, chainon,
9788 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
9789 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
9790 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
9791 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
9792 build_method_type_directly, decl_type_context, get_callee_fndecl,
9793 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
9794 tree_fold_gcd): Likewise.
9795 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
9796 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
9797 cleanup_control_expr_graph, find_taken_edge,
9798 find_taken_edge_switch_expr, phi_alternatives_equal,
9799 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
9800 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
9801 tree_split_edge, tree_verify_flow_info, thread_jumps,
9802 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
9803 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
9804 chrec_fold_multiply_poly_poly): Likewise.
9805 * tree-complex.c (extract_component, expand_complex_division,
9806 expand_complex_comparison, expand_complex_operations_1,
9807 build_replicated_const, expand_vector_operations_1): Likewise.
9808 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
9809 build_classic_dir_vector): Likewise.
9810 * tree-dfa.c (compute_immediate_uses_for_phi,
9811 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
9812 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
9813 * tree-dump.c (dequeue_and_dump): Likewise.
9814 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
9815 record_in_finally_tree, replace_goto_queue_1,
9816 maybe_record_in_goto_queue, verify_norecord_switch_expr,
9817 do_return_redirection): Likewise.
9818 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
9819 add_to_dst_predicate_list, find_phi_replacement_condition,
9820 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
9821 Likewise.
9822 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
9823 initialize_inlined_parameters, declare_return_variable,
9824 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
9825 optimize_inline_calls, copy_tree_r): Likewise.
9826 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
9827 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
9828 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
9829 tsi_split_statement_list_after, tsi_split_statement_list_before):
9830 Likewise.
9831 * tree-mudflap.c (mf_varname_tree): Likewise.
9832 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
9833 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
9834 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9835 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
9836 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
9837 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
9838 Likewise.
9839 * tree-phinodes.c (resize_phi_node, add_phi_arg,
9840 remove_all_phi_nodes_for): Likewise.
9841 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
9842 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
9843 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
9844 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
9845 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
9846 generate_one_element_ref, generate_element_copy,
9847 generate_element_zero, scalarize_copy, scalarize_init,
9848 scalarize_ldst): Likewise.
9849 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
9850 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
9851 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
9852 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
9853 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
9854 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
9855 widen_bitfield, ccp_fold_builtin): Likewise.
9856 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
9857 replace_exp_1, propagate_tree_value): Likewise.
9858 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9859 * tree-ssa-dce.c (set_control_dependence_map_bit,
9860 find_control_dependence, find_pdom, mark_operand_necessary,
9861 mark_stmt_if_obviously_necessary,
9862 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
9863 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
9864 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
9865 eliminate_redundant_computations, avail_expr_eq): Likewise.
9866 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
9867 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
9868 duplicate_blocks): Likewise.
9869 * tree-ssa-loop-im.c (for_each_index, set_level,
9870 is_call_clobbered_ref): Likewise.
9871 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
9872 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
9873 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
9874 peel_address, ptr_difference_cost, may_replace_final_value,
9875 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
9876 rewrite_use, rewrite_uses): Likewise.
9877 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
9878 check_loop_closed_ssa_use): Likewise.
9879 * tree-ssanames.c (make_ssa_name): Likewise.
9880 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
9881 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
9882 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
9883 get_indirect_ref_operands, add_stmt_operand): Likewise.
9884 * tree-ssa-pre.c (value_exists_in_set_bitmap,
9885 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
9886 phi_translate, valid_in_set, compute_antic,
9887 find_or_generate_expression, create_expression_by_pieces, insert_aux,
9888 create_value_expr_from, eliminate): Likewise.
9889 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
9890 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
9891 Likewise.
9892 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
9893 eliminate_tail_call): Likewise.
9894 * tree-vectorizer.c (vect_create_index_for_array_ref,
9895 vect_align_data_ref, vect_create_data_ref,
9896 vect_create_destination_var, vect_get_vec_def_for_operand,
9897 vect_finish_stmt_generation, vect_transform_stmt,
9898 vect_transform_loop_bound, vect_transform_loop,
9899 vect_analyze_operations): Likewise.
9900 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
9901 Likewise.
9902 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
9903 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
9904 bsi_after_labels, bsi_last): Likewise.
9905 * tree-ssa-live.c (var_union, change_partition_var,
9906 create_ssa_var_map, calculate_live_on_entry, root_var_init,
9907 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
9908 Likewise.
9909 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
9910 tpa_find_tree): Likewise.
9911 (register_ssa_partition_check): Declare.
9912 (register_ssa_partition): use it.
9913 * tree-ssa-live.c: Include errors.h.
9914 (register_ssa_partition_check): New.
9915 * tree-ssa-operands.c: Include errors.h.
9916 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
9917
9918 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
9919 Catherine Moore <clm@redhat.com>
9920
9921 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
9922 (FRV_CPU_FR405): New processor enums.
9923 (frv_issue_rate, frv_acc_group): Declare.
9924 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
9925 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
9926 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
9927 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
9928 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
9929 handled by CPP_SPEC.
9930 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
9931 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
9932 (ACC_MASK): New macro.
9933 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
9934 (TARGET_MEDIA_FR450): New macro.
9935 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
9936 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
9937 (LABEL_ALIGN_AFTER_BARRIER): Define.
9938 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
9939 (IACC_FIRST, IACC_LAST): New pair of SPRs.
9940 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
9941 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
9942 (REGISTER_NAMES): Add entries for new registers.
9943 (REG_CLASS_CONTENTS): Update for new register ranges.
9944 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
9945 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
9946 (PACKING_FLAG_USED_P): Delete.
9947 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
9948 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
9949 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
9950 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
9951 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
9952 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
9953 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
9954 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
9955 (CPU_UNITS_QUERY): Define to 1.
9956 * config/frv/frv.c: Include gt-frv.h
9957 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
9958 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
9959 (frv_insn_group): New enumeration.
9960 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
9961 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
9962 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
9963 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
9964 gap left by REGSTATE_LIVE.
9965 (regstate_t): New typedef.
9966 (TARGET_MACHINE_DEPENDENT_REORG): Define.
9967 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
9968 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
9969 Initialize frv_unit_codes[] and frv_type_to_unit[].
9970 (frv_conditional_register_usage): Remove redundant fixing of
9971 accumulator registers.
9972 (frv_insn_packing_flag): Update specification.
9973 (frv_function_prologue): Don't set frv_insn_packing_flag here.
9974 Zero out frv_nops[].
9975 (frv_expand_epilogue): Remove comments about the no-longer-present
9976 SIBCALL_P argument.
9977 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
9978 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
9979 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
9980 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
9981 packing is disabled and if INSN can only issue to M1.
9982 (call_operand): Check TARGET_LONG_CALLS.
9983 (acc_operand, even_acc_operand, quad_acc_operand)
9984 (accg_operand): Simplify. Don't accept pseudo registers.
9985 (output_move_single): Handle SPR<-zero moves.
9986 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
9987 (frv_registers_update, frv_registers_used_p): Delete.
9988 (frv_registers_set_p): Delete.
9989 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
9990 (frv_issues_to_branch_unit_p): New function.
9991 (frv_packet): New structure.
9992 (frv_cond_flags, frv_regstate_conflict_p): New functions.
9993 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
9994 (frv_registers_update_1, frv_registers_update): New functions.
9995 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
9996 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
9997 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
9998 (frv_sort_insn_group, frv_reorder_packet): New functions.
9999 (frv_pack_insns): Use frv_reorder_packet.
10000 (frv_packet_address): New variable.
10001 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
10002 (frv_register_nop, frv_reorg): New functions.
10003 (bdesc_1arg): Add __SCUTSS.
10004 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
10005 __SUBSS, __SLASS and __SCAN.
10006 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
10007 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
10008 (frv_init_builtins): Register the above builtins.
10009 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
10010 registers. Turn the referenced accumulators into global registers.
10011 (frv_read_iacc_argument): New function.
10012 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
10013 (frv_split_iacc_move): New function.
10014 (frv_expand_builtin): Handle the new builtins.
10015 * config/frv/frv.md: Replace old schedulers with new order-independent
10016 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
10017 packing algorithm.
10018 (cpu): Add fr550, fr450 and fr405.
10019 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
10020 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
10021 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
10022 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
10023 (fnop, mnop): New patterns.
10024 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
10025 New constants.
10026 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
10027 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
10028 registers.
10029 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
10030 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
10031 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
10032 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
10033 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
10034 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
10035 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
10036 (frv_prefetch0, frv_prefetch): New patterns.
10037 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
10038 -mcpu=simple. Add -mcpu=fr550.
10039 (MULTILIB_DIRNAMES): Update accordingly.
10040 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
10041 -mcpu=fr450.
10042 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
10043 -mlong-calls and -malign-labels options for FR-V.
10044
10045 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
10046
10047 PR c/8420
10048 * c-tree.h (struct c_declspecs): New.
10049 (struct c_declarator, struct c_type_name, struct c_parm): Update
10050 element types.
10051 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
10052 start_function, start_decl, build_c_parm,
10053 make_pointer_declarator): Update prototypes.
10054 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
10055 declspecs_add_scspec, declspecs_add_attrs): New.
10056 (split_specs_attrs): Remove.
10057 * c-parse.in (%union): Add dsptype.
10058 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
10059 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
10060 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
10061 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
10062 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
10063 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
10064 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
10065 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
10066 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
10067 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
10068 maybe_type_quals_attrs): Change to dsptype.
10069 (struct c_declspec_stack): New.
10070 (current_declspecs, declspec_stack): Change type.
10071 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
10072 structures.
10073 (extdefs): Likewise.
10074 (setspecs): Likewise.
10075 (fndef): Use current_declspecs for empty declspecs list.
10076 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
10077 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
10078 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
10079 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
10080 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
10081 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
10082 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
10083 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
10084 structures and helper functions. Update comments.
10085 (typespec_nonattr): Correct comment.
10086 (maybe_type_quals_attrs, typename): Update to new structures.
10087 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
10088 shadow_tag, shadow_tag_warned, start_function, start_decl,
10089 build_c_parm, make_pointer_declarator,
10090 set_array_declarator_inner, groktypename): Update to new
10091 structures.
10092 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
10093 declspecs_add_scspec, declspecs_add_attrs): New.
10094 (split_specs_attrs): Remove.
10095 (shadow_tag_warned): Make warning for useless type names a
10096 pedwarn. Give hard error for long, short, signed, unsigned or
10097 _Complex used with struct, union or enum in empty declaration.
10098 Make found_tag a bool.
10099 (grokdeclarator): Remove checks now done at parse time.
10100
10101 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
10102
10103 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
10104 c_declarator, struct c_type_name, struct c_parm): New.
10105 (build_array_declarator, set_array_declarator_inner,
10106 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
10107 start_function, start_decl, build_c_parm, build_attrs_declarator,
10108 build_function_declarator, make_pointer_declarator, c_cast_expr,
10109 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
10110 (build_id_declarator): New.
10111 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
10112 structures.
10113 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
10114 ARG_INFO_OTHERS): Remove.
10115 (build_id_declarator): New.
10116 (build_array_declarator, set_array_declarator_inner, groktypename,
10117 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
10118 grokfield, start_function, store_parm_decls_newstyle,
10119 store_parm_decls_oldstyle, store_parm_decls,
10120 build_c_parm, build_attrs_declarator, build_function_declarator,
10121 make_pointer_declarator, grokdeclarator): Update to new
10122 structures.
10123 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
10124 parmtype.
10125 (declarator, notype_declarator, after_type_declarator,
10126 parm_declarator, parm_declarator_starttypename,
10127 parm_declarator_nostarttypename, array_declarator, typename,
10128 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
10129 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
10130 parmlist_1, parmlist_2, parmlist_or_identifiers,
10131 parmlist_or_identifiers_1): Use these types.
10132 (primary, after_type_declarator, parm_declarator_starttypename,
10133 notype_declarator, component_decl, component_declarator,
10134 component_notype_declarator, typename, absdcl,
10135 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
10136 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
10137
10138 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
10139
10140 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
10141 in_typeof, record_maybe_used_decl, pop_maybe_used,
10142 c_expr_sizeof_expr, c_expr_sizeof_type): New.
10143 * c-decl.c (parser_obstack): New.
10144 (c_init_decl_processing): Initialize parser_obstack.
10145 (c_write_global_declarations_1): Check for used but undefined
10146 static functions.
10147 * c-parse.in (%union): Add otype.
10148 (save_obstack_position): New.
10149 (extdefs): Use it.
10150 (unary_expr): Update in_sizeof and in_alignof. Use
10151 c_expr_sizeof_expr and c_expr_sizeof_type.
10152 (sizeof): Update in_sizeof.
10153 (alignof): Update in_alignof.
10154 (typeof): Update in_typeof.
10155 (typespec_nonreserved_nonattr): Call pop_maybe_used.
10156 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
10157 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
10158 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
10159 (build_external_ref): Set C_DECL_USED or call
10160 record_maybe_used_decl if appropriate.
10161 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
10162
10163 2004-09-08 Eric Christopher <echristo@redhat.com>
10164
10165 * builtins.c: Fix prototype for fold_builtin_atan.
10166
10167 2004-09-08 Eric Christopher <echristo@redhat.com>
10168
10169 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
10170 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
10171 fold_builtin_atan): New functions. Migrate function bodies...
10172 (fold_builtin_1): ... from here.
10173
10174 2004-09-09 Alan Modra <amodra@bigpond.net.au>
10175
10176 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
10177 save_size.
10178
10179 2004-09-08 David Edelsohn <edelsohn@gnu.org>
10180
10181 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
10182 * config/rs6000/power5.md (power5-lmul): Same.
10183
10184 2004-09-08 Richard Henderson <rth@redhat.com>
10185
10186 PR rtl-opt/17186
10187 * function.c (expand_function_end): Have fall-off-the-end
10188 return path jump around return register setup.
10189
10190 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
10191
10192 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
10193 (output_return): Do not test for the presence of the 'unimp' insn.
10194 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
10195 as predicates instead of custom ones. Return raw strings when
10196 possible.
10197 (output_sibcall): Likewise. Concatenate strings.
10198 (output_ubranch): Remove kludge for TurboSPARC.
10199 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
10200 (output_v9branch): Likewise.
10201 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
10202 <#>: Set sparc_indent_opcode if the delay slot is filled.
10203 <(>: Likewise.
10204 <)>: New operand to emit the displacement from the saved PC on return.
10205 <@>: Remove.
10206 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
10207 (ASM_OUTPUT_OPCODE): New macro.
10208 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
10209 * config/sparc/sparc.md (normal_branch, inverted_branch,
10210 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10211 inverted_fpe_branch): Adjust call to output_cbranch.
10212 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
10213 call to output_v9branch.
10214 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
10215 (output_v9branch): Likewise.
10216
10217 2004-09-08 Devang Patel <dpatel@apple.com>
10218
10219 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
10220 -segs_read_only_addr and -segs_read_write_addr.
10221 (WORD_SWITCH_TAKES_ARG): Same.
10222 (LINK_SPEC): Same.
10223 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
10224 -segs_read_write_addr.
10225
10226 2004-09-08 Richard Henderson <rth@redhat.com>
10227
10228 * function.c (reference_callee_copied): New.
10229 (assign_parm_setup_reg): Use it.
10230 * calls.c (initialize_argument_information): Likewise.
10231 (emit_library_call_value_1): Likewise.
10232 * function.h (reference_callee_copied): Declare.
10233
10234 * target.h (struct gcc_target): Add callee_copies.
10235 * target-def.h (TARGET_CALLEE_COPIES): New.
10236 (TARGET_PASS_BY_REFERENCE): Update default.
10237 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10238 * targhooks.c (hook_callee_copies_named): New.
10239 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
10240 hook_pass_by_reference_false.
10241 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
10242 * targhooks.h: Update decls.
10243 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
10244 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10245 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
10246 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
10247 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10248 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
10249 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10250 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
10251 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10252 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
10253 (mips_callee_copies): New.
10254 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10255 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
10256 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10257 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
10258 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10259 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
10260 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10261 * config/sh/sh.c (sh_callee_copies): New.
10262 (TARGET_CALLEE_COPIES): New.
10263 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10264 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
10265 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10266 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
10267 for FUNCTION_ARG_CALLEE_COPIES.
10268 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
10269
10270 2004-09-08 Devang Patel <dpatel@apple.com>
10271
10272 * tree-if-conv.c (find_phi_replacement_condition): Return true
10273 edge block.
10274 (replace_phi_with_cond_modify_expr): Select conditional expr args
10275 based on true edge basic block.
10276
10277 2004-09-08 Jan Hubicka <jh@suse.cz>
10278
10279 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
10280 variables being alias set.
10281
10282 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
10283
10284 * final.c (shorten_branches, final, get_insn_template,
10285 output_alternate_entry_point, final_scan_insn, alter_subreg,
10286 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
10287 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
10288 * fix-header.c (lookup_std_proto): Likewise.
10289 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
10290 verify_local_live_at_start, update_life_info, mark_reg,
10291 calculate_global_regs_live, allocate_reg_life_data,
10292 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
10293 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
10294 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
10295 * fold-const.c (force_fit_type, div_and_round_double,
10296 may_negate_without_overflow_p, int_const_binop, const_binop,
10297 size_binop, size_diffop, fold_convert_const, fold_convert,
10298 invert_tree_comparison, swap_tree_comparison,
10299 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
10300 range_binop, make_range, fold_cond_expr_with_comparison,
10301 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
10302 fold_abs_const, fold_not_const, fold_relational_const, round_up,
10303 round_down): Likewise.
10304 * function.c (find_function_data, assign_stack_temp_for_type,
10305 instantiate_virtual_regs_lossage, aggregate_value_p,
10306 assign_parm_find_entry_rtl, assign_parm_setup_block,
10307 expand_function_start, expand_function_end, keep_stack_depressed,
10308 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
10309
10310 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
10311
10312 * Makefile.in (tree-loop-linear.o): Added.
10313 (OBJS-common): Add tree-loop-linear.o
10314 * common.opt: New flag, ftree-loop-linear.
10315 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
10316 * tree-flow.h: Add prototype for linear_transform_loops.
10317 * tree-optimize.c: Add linear transform after vectorization.
10318 * tree-pass.h: Add struct pass_linear_transform.
10319 * tree-ssa-loop.c: Add pass_linear_transform.
10320 * tree-loop-linear.c: New file.
10321 * lambda-code.c: gcc_assertify.
10322 (gcc_loop_to_lambda_loop): Handle all exit tests.
10323 Handle case where we have (invariant >= induction var).
10324 (find_induction_var_from_exit_cond): Ditto.
10325
10326 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
10327
10328 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
10329 memory tag is call clobbered, so are its aliases.
10330 (group_aliases): When two memory tags being grouped, if one is
10331 call clobbered, so are the other and its aliases.
10332 (add_may_alias): Remove call-clobbering stuff.
10333 (replace_may_alias): Likewise.
10334 (merge_pointed_to_info): Merge pt_global_mem
10335
10336 2004-09-08 Jan Hubicka <jh@suse.cz>
10337
10338 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
10339 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
10340 (cgraph_expand_function): Remove stale cgraph edges of currently
10341 compiled function; fix non-unit-at-a-time code copying function
10342 node for later reuse.
10343
10344 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
10345
10346 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
10347 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
10348 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
10349 (vec_gc_free, vec_heap_free): New.
10350 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
10351 (DEF_VEC_P): Add allocator argument. Adjust.
10352 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
10353 (DEF_VEC_O): Add allocator argument. Adjust.
10354 (VEC(free)): New.
10355
10356 * tree.h (tree): Define a GC'd vector.
10357 * lamba-code.c (lambda_loop): Likewise.
10358 * value-prof.h (histogram_value): Likewise.
10359
10360 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
10361
10362 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
10363 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
10364 gen_lowpart_common, gen_highpart, gen_highpart_mode,
10365 subreg_highpart_offset, operand_subword, operand_subword_force,
10366 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
10367 set_mem_alias_set, change_address_1, verify_rtx_sharing,
10368 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
10369 try_split, add_insn_after, add_insn_before, remove_insn,
10370 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
10371 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
10372 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
10373 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
10374 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
10375 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
10376 record_path_before_1, check_path_after_1, check_path_after): Likewise.
10377 * except.c (gen_eh_region, resolve_one_fixup_region,
10378 remove_unreachable_regions, convert_from_eh_region_ranges_1,
10379 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
10380 connect_post_landing_pads, sjlj_emit_function_exit,
10381 remove_exception_handler_label, remove_eh_handler,
10382 reachable_next_level, collect_one_action_chain,
10383 output_function_exception_table): Likewise.
10384 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
10385 optimize_save_area_alloca, allocate_dynamic_stack_space,
10386 probe_stack_range, hard_function_value): Likewise.
10387 * expmed.c (mode_for_extraction, store_bit_field,
10388 store_fixed_bit_field, extract_bit_field, expand_shift,
10389 expand_mult_const, expand_mult, choose_multiplier,
10390 expand_mult_highpart, expand_divmod, emit_store_flag,
10391 do_cmp_and_jump): Likewise.
10392 * expr.c (convert_move, convert_modes, move_by_pieces,
10393 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
10394 move_block_from_reg, gen_group_rtx, emit_group_load,
10395 emit_group_move, emit_group_store, use_reg, use_regs,
10396 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
10397 emit_move_insn, emit_move_insn_1, emit_push_insn,
10398 expand_assignment, store_expr, count_type_elements,
10399 store_constructor, store_field, safe_from_p, expand_var,
10400 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
10401
10402 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
10403
10404 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
10405 gcc_assert and gcc_unreachable.
10406 * ddg.c (create_ddg_dependence, add_deps_for_def,
10407 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
10408 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
10409 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
10410 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
10411 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
10412 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
10413 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
10414 dataflow_set_copy, hybrid_search, diagnostic.c,
10415 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
10416 * dojump.c (do_jump): Likewise.
10417 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
10418 compute_dom_fast_query, calculate_dominance_info,
10419 free_dominance_info, get_immediate_dominator,
10420 set_immediate_dominator, get_dominated_by,
10421 redirect_immediate_dominators, nearest_common_dominator,
10422 dominated_by_p, verify_dominators, recount_dominator,
10423 iterate_fix_dominators, add_to_dominance_info,
10424 delete_from_dominance_info): Likewise.
10425 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
10426 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
10427 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
10428 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
10429 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
10430 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
10431 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
10432 output_call_frame_info, output_loc_operands, build_cfa_loc,
10433 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
10434 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
10435 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
10436 splice_child_die, attr_checksum, same_dw_val_p,
10437 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
10438 unmark_dies, value_format, output_loc_list, output_die,
10439 output_pubnames, output_aranges, base_type_die, is_base_type,
10440 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
10441 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
10442 field_byte_offset, add_data_member_location_attribute,
10443 add_const_value_attribute, rtl_for_decl_location,
10444 add_location_or_const_value_attribute, add_byte_size_attribute,
10445 add_bit_offset_attribute, add_bit_size_attribute,
10446 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
10447 decl_start_label, gen_formal_parameter_die,
10448 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
10449 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
10450 force_decl_die, force_type_die, gen_decl_die,
10451 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
10452 dwarf2out_finish): Likewise.
10453
10454 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
10455
10456 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
10457 * builtins.c: Include tree-mudflap.h.
10458
10459 2004-09-08 Uros Bizjak <uros@kss-loka.si>
10460
10461 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
10462 force operand 0.0 into register in XFmode. Also do not force
10463 operand 0.0 into register if !TARGET_CMOVE.
10464 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
10465 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
10466 implement ftst x87 instruction.
10467 (*fp_jcc_7): New insn pattern. Change corresponding split
10468 pattern to handle "general_operand" instead of
10469 "nonimmediate_operand".
10470
10471 2004-09-08 Ben Elliston <bje@au.ibm.com>
10472
10473 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
10474
10475 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
10476
10477 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
10478 generated from standard va_arg expansion.
10479 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
10480 marked nodes.
10481 (mf_varname_tree, mf_file_function_line_tree): Add some support
10482 for column numbers if compiled with USE_MAPPED_LOCATION.
10483
10484 2004-09-07 Ziemowit Laski <zlaski@apple.com>
10485
10486 * c-decl.c (groktypename_in_parm_context): Remove function.
10487 * c-tree.h (groktypename_in_parm_context): Remove prototype.
10488
10489 2004-09-07 Ziemowit Laski <zlaski@apple.com>
10490
10491 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
10492 * c-parse.in: Include c-common.h instead of objc-act.h.
10493 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
10494 myparms, myparm): Remove %type declarations.
10495 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
10496 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
10497 declarations.
10498 (objc_inherit_code, objc_public_flag): Remove.
10499 (typespec_nonreserved_nonattr): Call
10500 objc_get_protocol_qualified_type() instead of get_static_reference()
10501 and get_protocol_reference().
10502 (stmt_nocomp): Call grokparm() on @catch parameter.
10503 (objcdef): Move semantic action to objc_finish_implementation().
10504 (classdef): Move semantic action to objc_start_class_interface(),
10505 objc_continue_interface(), objc_finish_interface(),
10506 objc_start_class_implementation(), objc_continue_implementation(),
10507 objc_start_category_interface() and
10508 objc_start_category_implementation().
10509 (protocoldef): Move semantic actions to objc_start_protocol() and
10510 objc_finish_interface().
10511 (ivar_decl_list): Remove nonterminal.
10512 (visibility_spec): Move semantic actions to objc_set_visibility().
10513 (ivar_decls): Remove assignment to $$.
10514 (ivar_decl): Rephrase in terms of component_decl; call
10515 objc_add_instance_variable().
10516 (ivars, ivar_declarator): Remove nonterminals.
10517 (opt_semi): New nonterminal.
10518 (methodtype): Remove semantic actions.
10519 (methoddef): Move semantic actions to objc_set_method_type(),
10520 objc_start_method_definition() and objc_finish_method_definition().
10521 (methodproto): Move semantic actions to objc_set_method_type() and
10522 objc_add_method_declaration().
10523 (methoddecl): Use objc_typename instead of typename; move semantic
10524 actions to objc_build_method_signature().
10525 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
10526 (optparmlist): Express in terms of optparms and optellipsis.
10527 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
10528 nonterminals.
10529 (keyworddecl): Use objc_typename instead of typename.
10530 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
10531 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
10532
10533 2004-09-08 Alan Modra <amodra@bigpond.net.au>
10534
10535 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
10536 (MD_FALLBACK_FRAME_STATE_FOR): Update.
10537 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
10538 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
10539 (MD_FROB_UPDATE_CONTEXT): Remove default.
10540 (uw_update_context_1): Instead #ifdef invocation.
10541 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
10542 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
10543 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
10544 (MD_UNWIND_SUPPORT): Undefine this instead.
10545 * config/i386/gnu.h: Likewise.
10546 * config/alpha/linux-unwind.h: New file, macro converted to
10547 function, extracted from..
10548 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
10549 (MD_UNWIND_SUPPORT): Define.
10550 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
10551 * config/i386/linux-unwind.h, config/i386/linux.h,
10552 config/i386/linux64.h: Likewise.
10553 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
10554 MD_HANDLE_UNWABI too.
10555 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
10556 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
10557 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
10558 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
10559 * config/sparc/linux-unwind.h, config/sparc/linux.h,
10560 config/sparc/linux64.h: Likewise.
10561 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
10562 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
10563 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
10564 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
10565 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
10566
10567 2004-09-07 Jan Hubicka <jh@suse.cz>
10568
10569 * cse.c (fold_rtx): Avoid building of
10570 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
10571
10572 * tree-ssa-pre.c (grand_bitmap_obstack): New.
10573 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
10574 (init_pre): Initialize obstack.
10575 (fini_pre): Free obstack.
10576
10577 2004-09-07 David Daney <ddaney@avtrex.com>
10578
10579 * config.gcc: Added support for --with-divide=[breaks|traps] for
10580 mips targets.
10581 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
10582 (TARGET_DIVIDE_TRAPS): New macro.
10583 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
10584 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
10585 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
10586 GENERATE_DIVIDE_TRAPS.
10587 (mips_output_division): Emit conditional trap if
10588 GENERATE_DIVIDE_TRAPS is set.
10589 * doc/install.texi: Document --with-divide.
10590 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
10591
10592 2004-09-07 Caroline Tice <ctice@apple.com>
10593
10594 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
10595 EDGE_CROSSING, to flags test case.
10596
10597 2004-09-07 Jan Hubicka <jh@suse.cz>
10598
10599 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
10600 class too.
10601
10602 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10603
10604 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
10605 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
10606 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
10607 or gcc_unreachable.
10608 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
10609 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
10610 alloc_aux_for_edges, free_aux_for_edges): Likewise.
10611 * cfgcleanup.c (try_forward_edges,
10612 merge_blocks_move_predecessor_nojumps,
10613 merge_blocks_move_successor_nojumps): Likewise.
10614 * cfgexpand.c (expand_gimple_cond_expr,
10615 expand_gimple_tailcall): Likewise.
10616 * cfghooks.c (duplicate_block): Likewise.
10617 * cfglayout.c (record_effective_endpoints,
10618 insn_locators_initialize, change_scope, fixup_reorder_chain,
10619 verify_insn_chain, fixup_fallthru_exit_predecessor,
10620 duplicate_insn_chain, cfg_layout_finalize): Likewise.
10621 * cfgloopanal.c (check_irred): Likewise.
10622 * cfgloop.c (superloop_at_depth, flow_loops_free,
10623 flow_loop_entry_edges_find, flow_loops_find,
10624 flow_loop_outside_edge_p, get_loop_body,
10625 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
10626 get_loop_exit_edges, num_loop_branches, cancel_loop,
10627 verify_loop_structure): Likewise.
10628 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
10629 duplicate_loop_to_header_edge, create_preheader,
10630 create_loop_notes): Likewise.
10631 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
10632 edirect_branch_edge, force_nonfallthru_and_redirect,
10633 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
10634 commit_edge_insertions, commit_edge_insertions_watch_calls,
10635 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
10636 cfg_layout_redirect_edge_and_branch_force,
10637 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
10638 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
10639 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
10640 cgraph_varpool_node): Likewise.
10641 * cgraphunit.c (cgraph_finalize_function,
10642 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
10643 cgraph_expand_function, cgraph_remove_unreachable_nodes,
10644 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10645 cgraph_mark_inline, cgraph_expand_all_functions,
10646 cgraph_build_static_cdtor): Likewise.
10647 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
10648 simplify_logical, distribute_notes, insn_cuid): Likewise.
10649 * conflict.c (conflict_graph_add, print_conflict): Likewise.
10650 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
10651 coverage_checksum_string): Likewise.
10652 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
10653 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
10654 cse_cc_succs, cse_condition_code_reg): Likewise.
10655 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
10656 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
10657 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
10658 cselib_record_set): Likewise.
10659
10660 2004-09-07 Jan Hubicka <jh@suse.cz>
10661
10662 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
10663
10664 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10665
10666 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
10667 fold_convert.
10668 (fold_builtin_strpbrk): Likewise.
10669 * expr.c (array_ref_low_bound): Likewise.
10670 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
10671 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
10672 * tree-sra.c (generate_element_zero): Likewise.
10673 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
10674 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
10675 add_old_iv_candidates, add_iv_candidates): Likewise.
10676 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
10677
10678 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10679
10680 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
10681 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
10682 c_expand_expr, boolean_increment, nonnull_check_p,
10683 check_function_arguments_recurse, fold_offsetof_1): Likewise.
10684 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
10685 builtin_define_type_max): Likewise.
10686 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
10687 implicit_decl_warning, builtin_function, build_compound_literal,
10688 complete_array_type, grokdeclarator, get_parm_info,
10689 start_function, store_parm_decls_oldstyle,
10690 c_write_global_declarations): Likewise.
10691 * c-format.c (get_constant, decode_format_attr,
10692 maybe_read_dollar_number, get_flag_spec, check_format_arg,
10693 check_format_types, format_type_warning,
10694 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
10695 init_dynamic_diag_info, handle_format_attribute): Likewise.
10696 * c-gimplify.c (push_context, pop_context, finish_bc_block):
10697 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
10698 * c-objc-common.c (c_tree_printer): Likewise.
10699 * c-pch.c (pch_init): Likewise.
10700 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
10701 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
10702 * c-typeck.c (c_incomplete_type_error, composite_type,
10703 common_pointer_type, common_type, same_translation_unit_p,
10704 tagged_types_tu_compatible_p, finish_init, pop_init_level,
10705 set_designator, set_nonincremental_init_from_string,
10706 process_init_element, c_finish_if_stmt): Likewise.
10707 * caller-save.c (init_caller_save, save_call_clobbered_regs,
10708 insert_restore, insert_save, insert_one_insn): Likewise.
10709 * calls.c (emit_call_1, compute_argument_block_size,
10710 precompute_arguments, expand_call, emit_library_call_value_1,
10711 store_one_arg): Likewise.
10712
10713 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10714
10715 * configure.ac (enable-checking): Add release option. Reorganize
10716 to avoid repetition.
10717 * configure: Rebuilt.
10718 * doc/install.texi (enable-checking): Amend documentation.
10719
10720 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
10721
10722 PR bootstrap/17313
10723 * Makefile.in (specs.ready): Depend on cc1$(exeext).
10724
10725 2004-09-06 James E Wilson <wilson@specifixinc.com>
10726
10727 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
10728 movdf_hardfloat_32bit): Split fG into two alternatives.
10729 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
10730
10731 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
10732
10733 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
10734
10735 * final.c (output_in_slot): Delete.
10736 (final_scan_insn): Revert 2004-09-03 change.
10737 (output_asm_insn): Likewise.
10738 * config/sparc/sparc.c (output_return): Likewise.
10739 (output_sibcall): Likewise.
10740
10741 2004-09-06 Jan Hubicka <jh@suse.cz>
10742
10743 * loop.c (loop_dump_aux): Do not print RTL when not available.
10744 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
10745 frontend specific type nodes.
10746 (produce_memory_decl_rtl): Break out from ...
10747 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
10748 (get_computation_at): Avoid random tree sharing.
10749 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
10750
10751 2004-09-06 Zack Weinberg <zack@codesourcery.com>
10752
10753 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
10754 unnecessary commands.
10755
10756 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
10757
10758 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
10759 (bitmap.o): Likewise.
10760
10761 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
10762
10763 Unify the management of RTL and tree-level dump files.
10764
10765 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
10766 Don't print function name to the dump file, the pass manager
10767 would do this for us. Add code from the top of
10768 rest_of_compilation, up to the initial RTL dump.
10769 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
10770 close the DFI_sibling dump file.
10771 (rest_of_compilation): Don't do that here. Remove code up to the
10772 initial RTL dump.
10773 (init_optimization_passes): Remove.
10774 (pass_rest_of_compilation): Change pass name to NULL.
10775 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
10776 Do not call init_optimization_passes.
10777 * toplev.h (init_optimization_passes): Remove.
10778
10779 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
10780 finish_graph_dump_file): Remove SUFFIX parameter.
10781 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
10782 finish_graph_dump_file): Likewise.
10783
10784 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
10785 * cfgexpand.c (pass_expand): Adjust.
10786 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
10787 * passes.c (pass_rest_of_compilation): Adjust.
10788 * predict.c (pass_profile): Adjust.
10789 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
10790 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
10791 pass_split_crit_edges, pass_warn_function_return): Adjust.
10792 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
10793 * tree-dfa.c (pass_referenced_vars): Adjust.
10794 * tree-eh.c (pass_lower_eh): Adjust.
10795 * tree-if-conv.c (pass_build_ssa): Adjust.
10796 * tree-into-ssa.c (pass_build_ssa): Adjust.
10797 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
10798 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
10799 * tree-nrv.c (pass_nrv): Adjust.
10800 * tree-optimize.c (pass_gimple, pass_all_optimizations,
10801 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
10802 pass_init_datastructures): Adjust.
10803 * tree-outof-ssa.c (pass_del_ssa): Adjust.
10804 * tree-profile.c (pass_tree_profile): Adjust.
10805 * tree-sra.c (pass_sra): Adjust.
10806 * tree-ssa-alias.c (pass_may_alias): Adjust.
10807 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
10808 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
10809 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
10810 * tree-ssa-dom.c (pass_dominator): Adjust.
10811 * tree-ssa-dse.c (pass_dse): Adjust.
10812 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
10813 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
10814 * tree-ssa-loop-ch.c (pass_ch): Adjust.
10815 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
10816 pass_loop_done, pass_complete_unroll, pass_iv_canon,
10817 pass_iv_optimize, pass_vectorize): Adjust.
10818 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
10819 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
10820 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
10821 pass_late_warn_uninnitialized): Adjust.
10822 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
10823
10824 * Makefile.in (tree-dump.o): Add new dependencies.
10825 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
10826 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
10827 Likewise.
10828 * toplev.c (dump_file_name): New.
10829 * tree-dump.c (dump_enable_all): Add LETTER parameter.
10830 (struct dump_file_info): Add NUM and LETTER fields.
10831 (dump_files): Adjust and add RTL dump files.
10832 (dump_register): Add NUM and LETTER fields.
10833 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
10834 (dump_begin): Use get_dump_file_name.
10835 (dump_switch_p_1): Adjust call to dump_enable_all.
10836 * tree-dump.h (dump_register): Adjust prototype.
10837 * tree-optimize.c (register_one_dump_file): Take dump file index.
10838 Support flags for RTL dumps.
10839 (register_dump_files): Fill in NUM field of struct dump_file_info.
10840 Track properties both when the gate is executed and when it is not.
10841 (execute_todo): Dump RTL. Add PROPERTIES parameter.
10842 (execute_one_pass): Pass properties to execute_todo. Handle VCG
10843 dumps of RTL.
10844 * tree-pass.h (dump_file_name): New.
10845 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
10846 New.
10847
10848 * Makefile.in (passes.o): Add new dependencies.
10849 * passes.c (struct dump_file_info, enum dump_file_index,
10850 dump_file_tbl, init_optimization_passes): Remove.
10851 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
10852 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
10853 dump_enabled_p.
10854 (finish_optimization_passes): Update finish_graph_dump_file loop.
10855 (enable_rtl_dump_file): Remove.
10856 * tree-dump.c (dump_files): Adjust and add RTL dump files.
10857 (enable_rtl_dump_file): Add here.
10858 * tree.h (enum tree_dump_index): Add RTL dump file indices.
10859 * doc/invoke.texi (Debugging options): Document new RTL debugging
10860 options. Update.
10861
10862 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
10863
10864 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
10865 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
10866 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
10867 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
10868 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
10869 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
10870 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
10871 vec.h: Fix comment formatting.
10872
10873 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
10874
10875 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
10876 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
10877 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
10878 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
10879 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
10880 tree-ssa-loop-niter.c, tree-ssa-operands.c,
10881 tree-ssa-operands.h, tree-ssa-propagate.c,
10882 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
10883 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
10884
10885 2004-09-05 Diego Novillo <dnovillo@redhat.com>
10886
10887 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
10888 vectorizer is enabled.
10889
10890 2004-09-05 Andreas Jaeger <aj@suse.de>
10891
10892 * tree-if-conv.c: Spell check comments and clean up whitespace.
10893
10894 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10895
10896 * tree-ssa-loop-ivopts.c: New file.
10897 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
10898 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
10899 target_pres_cost, target_spill_cost): Declare.
10900 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
10901 spill_cost): Renamed to ...
10902 (target_avail_regs, target_res_regs, target_small_cost,
10903 target_pres_cost, target_spill_cost): ... and exported.
10904 (init_set_costs, global_cost_for_size): Work with renamed variables.
10905 * common.opt (flag_ivopts): New flag.
10906 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
10907 REF_ORIGINAL.
10908 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
10909 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
10910 generating SSA form.
10911 (force_gimple_operand): New function.
10912 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
10913 * tree-cfg.c (stmt_bsi): New function.
10914 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
10915 PARAM_IV_MAX_CONSIDERED_USES): New.
10916 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
10917 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
10918 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
10919 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
10920 * tree-nested.c (build_addr): Export.
10921 * tree-optimize.c (init_tree_optimization_passes): Add
10922 pass_iv_optimize.
10923 * tree-pass.h (pass_iv_optimize): Declare.
10924 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
10925 IMAGPART_EXPR.
10926 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
10927 as a phi node argument.
10928 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
10929 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
10930 functions.
10931 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
10932 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
10933 pass_iv_optimize): New pass.
10934 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
10935 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
10936 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
10937 * tree.h (REF_ORIGINAL): New macro.
10938 (build_int_cst_type, unsigned_type_for, zero_p,
10939 cst_and_fits_in_hwi, build_addr): Declare.
10940 * doc/invoke.texi (-fivopts): Document.
10941 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
10942 PARAM_IV_MAX_CONSIDERED_USES): Document.
10943 * doc/passes.texi: Document induction variable optimizations pass.
10944
10945 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10946
10947 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
10948 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
10949 * c-common.c (c_common_attribute_table): Accept parameters to
10950 sentinel attribute.
10951 (check_function_sentinel, handle_sentinel_attribute): Likewise.
10952 * doc/extend.texi: Update accordingly.
10953
10954 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10955
10956 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
10957 New.
10958 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
10959 attribute.
10960 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
10961 New functions.
10962 (c_common_attribute_table): Add `sentinel' attribute.
10963 (check_function_arguments): Handle `sentinel' attribute.
10964 * doc/extend.texi: Document `sentinel' attribute.
10965
10966 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
10967
10968 * configure: Regenerated.
10969
10970 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10971
10972 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
10973
10974 * tree.c (save_expr): No longer TREE_READONLY.
10975
10976 2004-09-04 Jan Hubicka <jh@suse.cz>
10977
10978 * passes.c (rest_of_clean_state): Fix merge conflict made during
10979 commiting the patch.
10980
10981 2004-09-04 Jan Hubicka <jh@suse.cz>
10982
10983 * passes.c (rest_of_clean_state): Decompose the instruction stream.
10984
10985 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
10986
10987 * doc/md.texi (shift patterns): New anchor. Add reference to
10988 TARGET_SHIFT_TRUNCATION_MASK.
10989 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
10990 * target.h (shift_truncation_mask): New target hook.
10991 * targhook.h (default_shift_truncation_mask): Declare.
10992 * targhook.c (default_shift_truncation_mask): Define.
10993 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
10994 (TARGET_INITIALIZER): Include it.
10995 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
10996 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
10997 reject all out-of-range values. Fix sign-extension code for modes
10998 whose width is smaller than HOST_BITS_PER_WIDE_INT.
10999 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
11000 (expand_superword_shift, expand_subword_shift): Likewise.
11001 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
11002 (expand_binop): Use them to implement double-word shifts.
11003 * config/arm/arm.c (arm_shift_truncation_mask): New function.
11004 (TARGET_SHIFT_TRUNCATION_MASK): Define.
11005
11006 2004-09-04 Jan Hubicka <jh@suse.cz>
11007
11008 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
11009 (mix): New macro copied from hashtab.c
11010 (iterative_hash_hashval_t, iterative_hash_pointer,
11011 iterative_hash_host_wide_int): New functions based on hashtab.c
11012 implementation.
11013
11014 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
11015
11016 * config/mips/mips.md (mask): New mode attribute.
11017 (zero_extendsidi2): Add memory alternative.
11018 (*zero_extendsidi2_mem): Delete.
11019 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
11020 memory_operand in the TARGET_MIPS16 check.
11021 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
11022 Redefine using :GPR and :SHORT.
11023 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
11024
11025 2004-09-04 Uros Bizjak <uros@kss-loka.si>
11026
11027 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
11028 using rint_optab.
11029 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
11030 expand_builtin_mathfn.
11031 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
11032 btrunc?f patterns for btrunc_optab. Implement rint_optab using
11033 rint?f patterns.
11034 * optabs.c (init_optabs): Initialize rint_optab.
11035 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
11036 Add new OTI_rint.
11037 (btrunc_optab): Rename macro from trunc_optab.
11038 (rint_optab): Define corresponding macro.
11039
11040 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
11041 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
11042
11043 * config/i386/i386-protos.h (emit_i387_cw_initialization):
11044 Change prototype. Add new int parameter.
11045 * config/i386/i386.c (emit_i387_cw_initialization):
11046 Handle new rounding modes.
11047
11048 * config/i386/i386.h (enum fp_cw_mode): Delete.
11049 (MODE_NEEDED): Handle new rounding modes.
11050 (EMIT_MODE_SET): Change condition to handle new rounding modes.
11051
11052 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
11053 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
11054 represent different rounding modes of frndint insn.
11055 (type): Add frndint type.
11056 (i387, length, memory): Handle this type.
11057 (i387_cw): New attribute definition.
11058 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
11059 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
11060 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
11061 Add "i387_cw" attribute defined to "trunc".
11062 (x86_fnstcw_1): Remove comment.
11063 (*frndintxf2): Rename insn definition to frndintxf2. Move
11064 insn definition near rint?f2 expanders.
11065 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
11066 rintf and rintl built-ins as inline x87 intrinsics.
11067 (frndintxf2_floor): New pattern to implement floor rounding
11068 mode with frndint x87 instruction.
11069 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
11070 floorf and floorl built-ins as inline x87 intrinsics.
11071 (frndintxf2_ceil): New pattern to implement ceil rounding
11072 mode with frndint x87 instruction.
11073 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
11074 ceilf and ceill built-ins as inline x87 intrinsics.
11075 (frndintxf2_trunc): New pattern to implement trunc rounding
11076 mode with frndint x87 instruction.
11077 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
11078 truncf and truncl built-ins as inline x87 intrinsics.
11079 (frndintxf2_mask_pm): New pattern to implement rounding
11080 mode with exceptions with frndint x87 instruction.
11081 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
11082 implement nearbyint, nearbyintf and nearbyintl built-ins as
11083 inline x87 intrinsics.
11084
11085 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
11086
11087 * config/mips/mips.md (SHORT): New mode macro.
11088 (size): New mode attribute.
11089 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
11090 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
11091 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
11092 !ISA_HAS_SEB_SEH.
11093 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
11094 *extend[qh]isi2_hw patterns and extending them to di.
11095 (extendqihi2): Implement as define_insn_and_split that produces
11096 extendqisi2 after reload.
11097
11098 2004-09-03 Devang Patel <dpatel@apple.com>
11099
11100 * Makefile.in (OBJS-common): Add tree-if-conv.o
11101 (tree-if-conv.o): New rule.
11102 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
11103 (get_loop_body_in_bfs_order): New.
11104 * cfgloop.h (get_loop_body_in_bfs_order): New.
11105 * tree-flow.h (enum move_pos): Move here from ..
11106 * tree-ssa-loop-im.c (enum move_pos): here.
11107 (movement_possibility): Make externally visible.
11108 * tree-optimize.c (init_tree_optimization_passes): New entry for
11109 if conversion pass.
11110 * tree-pass.h (pass_if_conversion): New.
11111 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
11112 * tree-if-conv.c: New file.
11113 * doc/passes.texi: Document tree if-conversion pass.
11114 * doc/tree-ssa.texi: Same.
11115
11116 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
11117
11118 PR target/14925:
11119 Makefile.in (LIB2ADDEHSTATIC): New.
11120 (LIB2ADDEHSHARED): New.
11121 (LIBUNWIND): New.
11122 (LIBUNWINDDEP): New.
11123 (SHLIBUNWIND_LINK): New.
11124 (SHLIBUNWIND_INSTALL): New.
11125 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
11126 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
11127 (clean): Remove libunwind*
11128 (stage1-start): Remove and copy stage1/libunwind*.
11129 (stage2-start): Remove and copy stage2/libunwind*.
11130 (stage3-start): Remove and copy stage3/libunwind*.
11131 (stage4-start): Remove and copy stage4/libunwind*.
11132 (stageprofile-start): Remove and copy stageprofile/libunwind*.
11133 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
11134
11135 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
11136 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
11137 tmake_file if --with-system-libunwind isn't used.
11138
11139 * config/ia64/t-glibc-libunwind: New file.
11140 * config/t-libunwind-elf: Likewise.
11141 * unwind-compat.c: Likewise.
11142 * unwind-compat.h: Likewise.
11143 * unwind-dw2-fde-compat.c: Likewise.
11144
11145 * config/ia64/t-glibc (LIB2ADDEH): Updated.
11146 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
11147
11148 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
11149 aliases if needed.
11150 * unwind-dw2-fde-glibc.c: Likewise.
11151 * unwind-dw2.c: Likewise.
11152
11153 * config/t-libunwind (LIB2ADDEH): Updated.
11154 (LIB2ADDEHSTATIC): New.
11155 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
11156 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
11157
11158 * configure.ac: Change --enable-libunwind-exceptions to
11159 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
11160 * configure: Regenerated.
11161 * config.in: Updated.
11162
11163 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
11164 above and mention --with-system-libunwind.
11165 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
11166 removed in gcc 3.4.3 and later.
11167
11168 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
11169 USE_LIBUNWIND_EXCEPTIONS is defined.
11170
11171 * mklibgcc.in: Support libunwind.
11172
11173 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
11174
11175 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
11176 m_NOCONA.
11177
11178 2004-09-03 Richard Henderson <rth@redhat.com>
11179
11180 PR middle-end/9997
11181 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
11182 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
11183 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
11184 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
11185 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
11186 resize_stack_vars_conflict, add_stack_var_conflict,
11187 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
11188 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
11189 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
11190 expand_one_static_var, expand_one_hard_reg_var,
11191 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
11192 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
11193 (expand_used_vars): Rewrite.
11194 * Makefile.in (cfgexpand.o): Update dependencies.
11195
11196 2004-09-04 Jan Hubicka <jh@suse.cz>
11197
11198 * cfg.c (free_edge): Use ggc_free.
11199 (expunge_block): Use ggc_free.
11200 * passes.c (rest_of_clean_state): Free after compilation.
11201 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
11202 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
11203
11204 2004-09-03 James E Wilson <wilson@specifixinc.com>
11205
11206 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
11207 DECL_EXTERNAL check.
11208
11209 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11210
11211 * final.c (output_in_slot): New global variable.
11212 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
11213 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
11214 'output_in_slot' before invoking output_asm_insn.
11215 (output_asm_insn): Add a space after the tab if 'output_in_slot'
11216 is set.
11217 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
11218 final_scan_insn.
11219 (output_sibcall): Likewise.
11220
11221 2004-09-03 Jan Hubicka <jh@suse.cz>
11222
11223 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
11224 * tree-ssanames (init_ssanames): Likewise.
11225
11226 2004-09-03 Ziemowit Laski <zlaski@apple.com>
11227
11228 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
11229 objc_declare_protocols, objc_start_protocol,
11230 objc_start_class_interface, objc_start_category_interface,
11231 objc_continue_interface, objc_finish_interface,
11232 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
11233 objc_start_class_implementation, objc_start_category_implementation,
11234 objc_continue_implementation, objc_finish_implementation,
11235 objc_add_method_declaration, objc_start_method_definition,
11236 objc_finish_method_definition, objc_build_keyword_decl,
11237 objc_build_method_signature, objc_build_encode_expr,
11238 objc_build_protocol_expr, objc_build_selector_expr,
11239 objc_build_message_expr, objc_build_string_object,
11240 objc_get_class_reference, objc_get_protocol_qualified_type,
11241 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
11242
11243 2004-09-03 James E Wilson <wilson@specifixinc.com>
11244
11245 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
11246
11247 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
11248 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
11249 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
11250 (mips_recip1_<fmt>): Use frdiv1 type.
11251 (mips_recip2_<fmt>): Use frdiv2 type.
11252 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
11253 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
11254 and frsqrt1.
11255 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
11256
11257 2004-09-03 Daniel Jacobowitz <dan@debian.org>
11258
11259 * reload.c (find_reloads): Swap operand_loc pointers for
11260 find_dummy_reload if we have swapped two operands.
11261
11262 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
11263
11264 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
11265 to get the tablejump-insn before the jump-table label.
11266
11267 2004-09-03 Ziemowit Laski <zlaski@apple.com>
11268
11269 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
11270 objc_declare_protocols, objc_build_message_expr,
11271 objc_finish_message_expr, objc_build_selector_expr,
11272 objc_build_protocol_expr, objc_build_encode_expr,
11273 objc_build_string_object, objc_get_protocol_qualified_type,
11274 objc_get_class_reference, objc_get_class_ivars,
11275 objc_start_class_interface, objc_start_category_interface,
11276 objc_start_protocol, objc_continue_interface, objc_finish_interface,
11277 objc_start_class_implementation, objc_start_category_implementation,
11278 objc_continue_implementation, objc_finish_implementation,
11279 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
11280 objc_add_method_declaration, objc_start_method_definition,
11281 objc_finish_method_definition, objc_add_instance_variable,
11282 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
11283 objc_finish_try_stmt, objc_begin_catch_clause,
11284 objc_finish_catch_clause, objc_build_finally_clause,
11285 objc_build_synchronized, objc_static_init_needed_p,
11286 objc_generate_static_init_call): New prototypes.
11287
11288 2004-09-03 Steve Ellcey <sje@cup.hp.com>
11289
11290 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
11291 is only one reg.
11292 (ia64_function_value): Ditto.
11293
11294 2004-09-03 Jan Beulich <jbeulich@novell.com>
11295
11296 * config.gcc: Resurrect NetWare as a target. Handle special case of
11297 Novell linker to be used (specified through --with-ld=) and threading
11298 model of either Posix (default) or NKS.
11299 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
11300 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
11301 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
11302 * config/i386/netware.c, config/i386/netware.h: New.
11303 * config/i386/nwld.c, config/i386/nwld.h: New.
11304 * config/i386/netware-crt0.c: New.
11305 * config/i386/netware-libgcc.c: New.
11306 * config/i386/netware-libgcc.def: New.
11307 * config/i386/netware-libgcc.exp: New.
11308 * config/i386/t-netware, config/i386/t-nwld: New.
11309 * gthr-nks.h: New.
11310 * doc/install.texi: Document NKS threading model.
11311
11312 2004-09-03 Jan Beulich <jbeulich@novell.com>
11313
11314 PR c/7054
11315 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
11316 * tree.h (initial_max_fld_align): Declare
11317 * stor-layout.c (initial_max_fld_align): Define and initialize.
11318 (maximum_field_alignment): Initialize to the same value.
11319 * common.opt: Add -fpack-struct= variant of switch.
11320 * opts.c: Handle -fpack-struct= variant of switch.
11321 * c-pragma.c: Change #pragma pack() handling so that it becomes
11322 compatible to other compilers: accept individual 'push' argument,
11323 make final pop restore (command line) default, correct interaction
11324 of push/pop and sole specification of a new alignment (so that the
11325 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
11326 to #pragma pack(push, <n>).
11327 * doc/extend.texi: New node "Structure-Packing Pragmas" under
11328 "Pragmas", describing #pragma pack.
11329 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
11330 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
11331 Document new TARGET_DEFAULT_PACK_STRUCT.
11332
11333 2004-09-03 Devang Patel <dpatel@apple.com>
11334
11335 * dwarf2out.c (gen_field_die). Equate decl number to die.
11336
11337 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
11338
11339 PR target/15832
11340 * global.c (modify_reg_pav): New function.
11341 (make_accurate_live_analysis): Call the new function. Move pavin
11342 modification by earlyclobber set into the new function.
11343
11344 2004-09-03 Andreas Schwab <schwab@suse.de>
11345
11346 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
11347 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
11348 extended.
11349
11350 2004-09-02 Jan Beulich <jbeulich@novell.com>
11351
11352 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
11353 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
11354 not unwind code specific ones.
11355 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
11356 Remove unwind code specific dependencies.
11357 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
11358 Remove gbl-ctors.h.
11359 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
11360 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
11361 * tsystem.h: Declare memcpy and memset when inhibit_libc.
11362
11363 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
11364
11365 * combine.c (try_combine): Delay modifying of insns which cannot
11366 be easily undone.
11367
11368 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
11369
11370 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
11371 tree-loop-im.
11372 * gcc/tree-ssa-loop.c: Ditto
11373 * gcc/tree-ssa-loop-ivcanon.c: Ditto
11374 * gcc/doc/invoke.texi: Ditto.
11375
11376 2004-09-02 Ziemowit Laski <zlaski@apple.com>
11377
11378 * c-decl.c (store_parm_decls_newstyle): Make static.
11379 (store_parm_decls_from): New function.
11380 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
11381 (store_parm_decls_from): New prototype.
11382
11383 2004-09-02 David Edelsohn <edelsohn@gnu.org>
11384
11385 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
11386 HImode with STRICT_ALIGNMENT.
11387
11388 2004-09-02 Mark Mitchell <mark@codesourcery.com>
11389
11390 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
11391 (TARGET_OS_CPP_BUILTINS): Likewise.
11392 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
11393 TARGET_BPABI_CPP_BUILTINS.
11394
11395 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
11396
11397 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
11398
11399 2004-09-02 Eric Christopher <echristo@redhat.com>
11400
11401 * builtins.c (expand_builtin_cabs): Delete.
11402 (expand_builtin): If unable to fold the values do a normal
11403 library call for builtin_cab*.
11404 (fold_builtin_cabs): Depend on optimize and optimize_size.
11405 * optabs.c (expand_cmplxdiv_straight): Delete.
11406 (expand_cmplxdiv_wide): Ditto.
11407 (expand_vector_binop): Ditto.
11408 (expand_vector_unop): Ditto.
11409 (expand_complex_abs): Delete.
11410 (expand_binop): Remove calls to above functions.
11411 Remove open coding of complex arithmetic.
11412 (expand_unop): Ditto.
11413 * optabs.h: Remove prototypes.
11414
11415 2004-09-02 Ziemowit Laski <zlaski@apple.com>
11416
11417 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
11418 * c-tree.h (store_parm_decls_newstyle): New prototype.
11419
11420 2004-09-02 Geoffrey Keating <geoffk@apple.com>
11421
11422 * config/rs6000/rs6000.c (expand_block_clear): Use vector
11423 instructions if available.
11424 (expand_block_move): Likewise.
11425
11426 2004-09-03 Jan Hubicka <jh@suse.cz>
11427
11428 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
11429
11430 2004-09-02 Mark Mitchell <mark@codesourcery.com>
11431
11432 * config/arm/symbian.h (LIB_SPEC): Define to empty.
11433 * config/arm/t-symbian (SHLIB_LC): Likewise.
11434
11435 2004-09-02 Paul Brook <paul@codesourcery.com>
11436
11437 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
11438
11439 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
11440
11441 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
11442 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
11443 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
11444 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
11445 (mips_issue_rate): Remove unreachable abort.
11446 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
11447 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
11448 (mips_block_move_straight, print_operand_address, mips_file_start)
11449 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
11450 (mips_output_conditional_branch, mips_expand_builtin_direct)
11451 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
11452 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
11453 with gcc_assert.
11454
11455 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
11456
11457 * config/mips/mips.md (*lea_high64): Change split condition to
11458 flow2_completed. Add a peephole2 to generate a more parallel version.
11459
11460 2004-09-02 Jan Hubicka <jh@suse.cz>
11461
11462 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
11463 GGC.
11464
11465 * ggc-page.c: include tree-flow.h.
11466 (extra_order_size_table): Add stmt_ann_d.
11467 (STAT_LABEL): Rename from ....
11468 (LABEL): ... this one.
11469 * Makefile.in (ggc-page.o): Add dependency.
11470
11471 * ggc-common.c (ggc_force_collect): New global variable.
11472 (loc_description): Add fields "freed", "collected"
11473 (ptr_hash): New static hash
11474 (ptr_hash_entry): New structure.
11475 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
11476 (ggc_record_overhead): Take ptr argument, record it
11477 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
11478 (cmp_statistics): Imrove sorting.
11479 (dump_ggc_loc_statistics): Output newly collected statistics
11480 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
11481 (ggc_free): Call ggc_free_overhead.
11482 (ggc_collect): Force collection when asked to be forced.
11483 (ggc_collect): Call ggc_prune_overhead_list.
11484 * ggc.h (ggc_force_collect): Declare
11485 (ggc_record_overhead): Update prototype.
11486 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
11487
11488 2004-09-02 James E Wilson <wilson@specifixinc.com>
11489
11490 * common.opt (ftrapping-math): Default to on.
11491
11492 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
11493
11494 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
11495
11496 2004-09-02 Denis Chertykov <denisc@overta.ru>
11497
11498 PR target/16884
11499 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
11500 match_scratch.
11501 (*movmemqi_insn): Likewise.
11502 (*movmemhi): Likewise.
11503 (clrmemhi): Likewise.
11504 (*clrmemqi): Likewise.
11505 (*clrmemhi): Likewise.
11506
11507 2004-09-02 Paul Brook <paul@codesourcery.com>
11508
11509 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
11510 default_use_cxa_atexit=yes.
11511
11512 2004-09-02 Alan Modra <amodra@bigpond.net.au>
11513
11514 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
11515 (struct kernel_old_ucontext): Delete.
11516 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
11517 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
11518 when IN_LIGGCC2.
11519
11520 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
11521
11522 * toplev.c (process_options): Fix typo.
11523
11524 2004-09-01 Richard Henderson <rth@redhat.com>
11525
11526 PR middle-end/17258
11527 * calls.c (initialize_argument_information): Tighten pass-through
11528 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
11529 Use build_fold_addr_expr.
11530 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
11531 that assumes ADDR_EXPR allocates stack space.
11532 * fold-const.c (build_fold_addr_expr_with_type): Look through
11533 WITH_SIZE_EXPR.
11534
11535 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
11536
11537 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
11538 * ggc.h (ggc_alloc_rtx): Delete.
11539
11540 2004-09-01 Roger Sayle <roger@eyesopen.com>
11541
11542 * expmed.c (enum alg_code): Remove long unused enumeration values.
11543 (struct mult_cost): New structure to hold the "score" of a synthetic
11544 multiply sequence, including both a rtx_cost and a latency field.
11545 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
11546 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
11547 (struct algorithm): Change type of cost field to be mult_cost.
11548 (synth_mult): Change type of cost_limit argument to be a
11549 pointer to a mult_cost. Update all cost comparisons to use the
11550 new mult_cost infrastructure. For alg_add_factor and
11551 alg_sub_factor operations, latency is lower than the rtx_cost.
11552 (choose_mult_variant): Update calls to synth_mult. Perform
11553 cost comparisons using the new mult_cost infrastructure.
11554 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
11555 to optain the total rtx_cost of a synth_mult "algorithm".
11556
11557 2004-09-01 David Edelsohn <edelsohn@gnu.org>
11558
11559 * config/rs6000/power4.md: Increase store latency to 12.
11560 * config/rs6000/power5.md: Same.
11561
11562 2004-09-01 James E Wilson <wilson@specifixinc.com>
11563
11564 PR target/14064
11565 * config/avr/avr.c (avr_unique_section): Delete prototype and
11566 definition.
11567 (TARGET_ASM_UNIQUE_SECTION): Delete.
11568
11569 2004-09-01 Ziemowit Laski <zlaski@apple.com>
11570
11571 * c-parse.in (primary): Call objc_build_message_expr(),
11572 objc_build_selector_expr(), objc_build_protocol_expr(),
11573 objc_build_encode_expr() and objc_build_string_object() instead of
11574 build_message_expr(), build_selector_expr(), build_protocol_expr(),
11575 build_encode_expr() and build_objc_string_object(), respectively.
11576 (component_decl_list2): Call objc_get_class_ivars() instead of
11577 get_class_ivars_from_name().
11578 (keyworddecl): Call objc_build_keyword_decl() instead of
11579 build_keyword_decl().
11580 (receiver): Call objc_get_class_reference() instead of
11581 get_class_reference().
11582 (reswords): Add blank line before @@ifobjc section, for clarity.
11583
11584 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
11585
11586 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
11587 to Altivec vetors.
11588
11589 2004-09-01 Wu Yongwei <adah@sh163.net>
11590 Danny Smith <dannysmith@users.sourceforge.net>
11591
11592 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
11593 not Windows 'DWORD'.
11594 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
11595 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
11596 (__gthr_win32_recursive_mutex_init_function): Add prototype for
11597 __GTHREAD_HIDE_WIN32API case..
11598 (__gthr_win32_recursive_mutex_lock): Likewise.
11599 (__gthr_win32_recursive_mutex_trylock): Likewise.
11600 (__gthr_win32_recursive_mutex_unlock): Likewise.
11601 (__gthread_recursive_mutex_init_function); Add definition for
11602 __GTHREAD_HIDE_WIN32API case.
11603 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
11604 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
11605 call to InterlockedDecrement.
11606
11607 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11608
11609 * tree-tailcall.c (find_tail_calls): Also fail is statement has
11610 volatile operands.
11611
11612 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
11613
11614 * doc/c-tree.texi: Document new operands for ARRAY_REF and
11615 COMPONENT_REF.
11616
11617 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11618
11619 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
11620 * common.opt (fspeculative-prefetching): New.
11621 * flags.h (flag_speculative_prefetching_set): Declare.
11622 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
11623 values.
11624 * opts.c (flag_sepculative_prefetching_set): New variable.
11625 (common_handle_option): Handle -fspeculative-prefetching.
11626 * passes.c (rest_of_compilation): Ditto.
11627 * profile.c (instrument_values, compute_value_histograms, branch_prob):
11628 Use vectors instead of arrays.
11629 * toplev.c (process_options): Handle -fspeculative-prefetching.
11630 * rtl-profile.c: Include ggc.h.
11631 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
11632 rtl_gen_one_value_profiler_no_edge_manipulation,
11633 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
11634 argument changed.
11635 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
11636 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
11637 argument changed.
11638 * value-prof.c: Include ggc.h.
11639 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
11640 macros.
11641 (insn_prefetch_values_to_profile, find_mem_reference_1,
11642 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
11643 speculative_prefetching_transform): New.
11644 (value_profile_transformations): Call speculative_prefetching_transform.
11645 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
11646 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
11647 tree_find_values_to_profile, find_values to profile): Use vectors
11648 instead of arrays.
11649 (free_profiled_values): Removed.
11650 * value-prof.h (struct histogram_value): Renamed to
11651 struct histogram_value_t.
11652 (histogram_value, histogram_values): New types.
11653 (find_values_to_profile): Declaration changed.
11654 (free_profiled_values): Removed.
11655 (struct profile_hooks): Type of argument of the hooks changed to
11656 histogram_value.
11657 * doc/invoke.texi (-fspeculative-prefetching): Document.
11658
11659 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11660
11661 PR rtl-optimization/16408
11662 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
11663
11664 2004-09-01 Richard Henderson <rth@redhat.com>
11665
11666 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
11667 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
11668
11669 2004-09-01 Jakub Jelinek <jakub@redhat.com>
11670
11671 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
11672
11673 2004-09-01 Mike Stump <mrs@apple.com>
11674
11675 * config/darwin.c (machopic_symbol_defined_p): In addition to
11676 being SYMBOL_REF_LOCAL_P, a symbol must also be
11677 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
11678 defined in this output file, or translation unit in the case
11679 of IMA not being used.
11680 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
11681 never need .indirect_symbol when indirecting.
11682
11683 2004-09-01 Jakub Jelinek <jakub@redhat.com>
11684
11685 * Makefile.in (bb-reorder.o): Add several dependencies.
11686
11687 2004-09-01 Jakub Jelinek <jakub@redhat.com>
11688
11689 * fold-const.c (operand_equal_p): Require equal sign also for
11690 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
11691
11692 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
11693
11694 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
11695 for use in configargs.h. Put the cname in a separate variable. Use
11696 that to set target_cpu_default2.
11697
11698 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
11699 Nick Clifton <nickc@redhat.com>
11700
11701 * config/sh/sh.md ("length"): Increase branch length when
11702 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
11703 constant, 2 byte for aligning the constant.
11704
11705 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
11706
11707 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
11708 CPU.
11709 (arm7tdmi-s): New CPU name.
11710 * arm/arm.c (ARM_CORE): Update for new format.
11711 * arm/arm.h (ARM_CORE): Likewise.
11712 * arm/gentune.sh: Update for extra field.
11713 * config.gcc: Likewise.
11714 * arm/arm-tune.md: Regenerate.
11715 * doc/invoke.texi: Document the real processor names for ARM cpus.
11716
11717 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
11718
11719 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
11720 (floatdidf): New functions.
11721 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
11722 (floatdisf): New functions.
11723 * t-arm-elf: Use them.
11724
11725 2004-09-01 Ziemowit Laski <zlaski@apple.com>
11726
11727 * c-common.h (lookup_interface): Remove prototype.
11728 (is_class_name): Rename to objc_is_class_name.
11729 (lookup_objc_ivar): Rename to objc_lookup_ivar.
11730 (get_current_scope): Rename to objc_get_current_scope.
11731 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
11732 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
11733 (yylexname): Call objc_is_class_name() instead of is_class_name().
11734 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
11735 instead of lookup_objc_ivar().
11736 * stub-objc.c (lookup_interface): Remove stub.
11737 (is_class_name): Rename to objc_is_class_name.
11738 (lookup_objc_ivar): Rename to objc_lookup_ivar.
11739
11740 2004-08-31 Mark Mitchell <mark@codesourcery.com>
11741
11742 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
11743 * config/arm/lib1funcs.asm: Do not include supplemental .S files
11744 when compiling for Symbian.
11745 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
11746 (TARGET_OS_CPP_BUILTINS): Likewise.
11747 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
11748
11749 2004-08-31 Stan Shebs <shebs@apple.com>
11750
11751 * toplev.c (process_options): Ensure debug_hooks is initialized.
11752
11753 2004-08-31 Mark Mitchell <mark@codesourcery.com>
11754
11755 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
11756 * target.h (cxx): Add export_class_data.
11757 * config/arm/arm.c (arm_cxx_export_class_data): New function.
11758 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
11759 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
11760
11761 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
11762
11763 * config/sh/sh.c (output_branch): Check the insn length possibly
11764 in the delayed slot.
11765
11766 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11767
11768 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
11769 blank after ')'.
11770 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
11771
11772 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
11773 (c_sizeof_of_alignof_type): Likewise.
11774 * expr.c (array_ref_element_size): Likewise.
11775 (highest_pow2_factor_for_target): Likewise.
11776 * gimplify.c (canonicalize_addr_expr): Likewise.
11777 (gimplify_compound_lval): Likewise.
11778 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
11779 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
11780 * varasm.c (assemble_variable): Likewise.
11781 (output_constant_def_contents): Alignments are unsigned.
11782
11783 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11784 Jeff Law <law@redhat.com>
11785
11786 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
11787 gets modified.
11788
11789 2004-08-31 Mark Mitchell <mark@codesourcery.com>
11790
11791 * hooks.c (hook_bool_void_true): New function.
11792 * hooks.h (hook_bool_void_true): Declare.
11793 * target-def.h (TARGET_CXX): Add
11794 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
11795 * target.h (struct cxx): Add key_method_may_be_inline.
11796 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
11797 function.
11798 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
11799 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
11800 __THUMB_INTERWORK.
11801
11802 2004-08-31 Denis Chertykov <denisc@overta.ru>
11803
11804 PR target/15417
11805 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
11806 frame pointer register only in Pmode while reload in progress.
11807
11808 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
11809
11810 PR target/15334
11811 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
11812 because it breaks the 32-bit shift patterns that rely on a match_dup.
11813
11814 2004-08-31 Matt Austern <austern@apple.com>
11815
11816 * config/darwin.c (darwin_make_decl_one_only): Allocate section
11817 names once per compilation, instead of once per symbol.
11818
11819 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
11820
11821 * Makefile.in (build_subdir): New substitution.
11822 (fixinc.sh): Simplify heavily since fixincludes is already built.
11823 (stmp-fixinc): Depend on specs.ready.
11824 (install-mkheaders): Use new location of fixincludes.
11825 (clean): Do not descend into fixinc.
11826 (FORBUILD): Replace with ../$(build_subdir).
11827 * configure.ac (build_subdir): Substitute.
11828 (FORBUILD): Do not set.
11829 (all_outputs): Remove fixinc/Makefile.
11830 (default commands): Do not create links in fixinc.
11831 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
11832 the fixincludes configuration steps and substituting
11833 @FIXINCL@ in fixinc.in.
11834 * fixinc.in: New, from fixinc/fixincl.sh.
11835
11836 * fixinc/*: Removed.
11837
11838 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
11839
11840 * attribs.c (strip_attrs): Remove.
11841 (split_specs_attrs): Move ...
11842 * c-decl.c: ... to here.
11843 * tree.h (split_specs_attrs, strip_attrs): Remove.
11844 * c-tree.h (split_specs_attrs): Declare.
11845
11846 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
11847
11848 * read-rtl.c: Disable RTL checking.
11849 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
11850
11851 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
11852
11853 * config/mips/mips.md (fcond): New code macro and attribute.
11854 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
11855 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
11856 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
11857
11858 2004-08-30 Mark Mitchell <mark@codesourcery.com>
11859
11860 Revert:
11861 2004-08-29 Mark Mitchell <mark@codesourcery.com>
11862 PR rtl-optimization/16590
11863 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
11864
11865 2004-08-30 Andrew Pinski <apinski@apple.com>
11866
11867 * hard-reg-set.h:
11868 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
11869 * ChangeLog: Fix previous ChangeLog entry.
11870
11871 PR rtl-opt/13987
11872 * config.host (use_long_long_for_widest_fast_int): New, default is
11873 off.
11874 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
11875 * configure.ac: If use_long_long_for_widest_fast_int, then
11876 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
11877 * configure: Regenerate.
11878 * config.in: Regenerate.
11879 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
11880 New: widest integer type supported efficiently in hardware for the
11881 host.
11882 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
11883 HOST_BITS_PER_WIDEST_FAST_INT.
11884 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
11885 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
11886 HOST_WIDEST_FAST_INT
11887 instead of HOST_WIDE_INT.
11888 (HARD_REG_SET_LONGS): Likewise.
11889 (UHOST_BITS_PER_WIDE_INT): Likewise.
11890 Change the checks for the fast cases to be based on
11891 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
11892
11893 2004-08-30 Steven Bosscher <stevenb@suse.de>
11894
11895 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
11896 not the pointers.
11897
11898 2004-08-30 Geoffrey Keating <geoffk@apple.com>
11899
11900 PR 12738
11901 PR 17205
11902 Radar 3460526
11903 Radar 3775729
11904 * c-decl.c (grokdeclarator): Produce error for 'static' on local
11905 function declaration.
11906
11907 2004-08-30 Richard Henderson <rth@redhat.com>
11908
11909 * expr.c (array_ref_element_size): Force aligned_size back to
11910 sizetype.
11911 (component_ref_field_offset): Similarly for aligned_offset.
11912 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
11913 low-bound, element-size, field-offset fields rather than
11914 computed values.
11915
11916 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
11917
11918 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
11919 redundant code.
11920
11921 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
11922
11923 * c-tree.h (struct language_function): Add arg_info element.
11924 * c-decl.c (current_function_arg_info): New.
11925 (grokdeclarator, store_parm_decls): Use it instead of
11926 DECL_ARGUMENTS.
11927 (c_push_function_context, c_pop_function_context): Save and
11928 restore it.
11929
11930 2004-08-30 Richard Henderson <rth@redhat.com>
11931
11932 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
11933 COMPONENT_REF to pointer arithmetic.
11934 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
11935 constant "c" as a valid constant initializer. Allow narrowing of
11936 differences against the same base object, for any base object.
11937
11938 2004-08-30 Richard Henderson <rth@redhat.com>
11939
11940 * expr.c (expand_expr_addr_expr): New.
11941 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
11942
11943 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
11944
11945 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
11946 (mips_fp_condition): New enum.
11947 (mips_fp_conditions): New array.
11948 (print_fcc_operand): Delete.
11949 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
11950 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
11951 (builtin_description): Add "cond" field.
11952 (DIRECT_BUILTIN): Initialize it.
11953 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
11954 into INSN and CODE. Initialize the "cond" field.
11955 (CMP_BUILTINS): Update accordingly.
11956 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
11957 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
11958 mips_fp_condition as argument. Make it the final operand of the
11959 comparison instruction.
11960 (mips_expand_builtin): Update accordingly.
11961 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
11962 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
11963 the gaps.
11964 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
11965 Don't use the 'Q' operand prefix; just print the operand normally.
11966 (mips_cabs_*, mips_c_*): Delete, replacing with...
11967 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
11968 patterns. Split the 4s versions into 2 ps patterns after reload.
11969
11970 2004-08-30 Richard Henderson <rth@redhat.com>
11971
11972 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
11973 assuming an ADDR_EXPR is non-null.
11974
11975 2004-08-30 Jason Merrill <jason@redhat.com>
11976
11977 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
11978
11979 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
11980
11981 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
11982 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
11983 gcc_assert and gcc_unreachable instead of abort.
11984 * alloc-pool.c (abort, fancy_abort): Remove.
11985 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
11986 gcc_assert or gcc_unreachable.
11987 * attribs.c (init_attributes, decl_attributes): Likewise.
11988 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
11989 mark_bb_for_unlikely_executed_section,
11990 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
11991 fix_crossing_unconditional_branches): Likewise.
11992 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
11993 bitmap_operation): Likewise.
11994 * bt-load.c (insn_sets_btr_p, augment_live_range,
11995 move_btr_def): Likewise.
11996 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
11997 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
11998 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
11999 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
12000 expand_builtin_memcmp, expand_builtin_args_info,
12001 std_gimplify_va_arg_expr, expand_builtin_unop,
12002 expand_builtin_fputs, expand_builtin_profile_func,
12003 expand_builtin_fork_or_exec, fold_builtin_bitop,
12004 fold_builtin_classify, fold_builtin_fputs): Likewise.
12005
12006 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
12007
12008 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
12009 * gcov.c (abort): Remove undef.
12010
12011 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
12012 (struct tree_binfo): Remove primary field.
12013
12014 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
12015
12016 * fixinc/Makefile.in (machname.h): Remove.
12017 (fixincl.x): Do not pass $@ to genfixes.
12018 * fixinc/genfixes: Remove code to produce machname.h.
12019 * fixinc/fixincl.sh: Move it here instead.
12020 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
12021 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
12022 return a bool indicating whether pz_mn_name_pat is NULL.
12023 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
12024 Declare extern C variables for the ENV_TABLE.
12025 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
12026 instead use the result of mn_get_regexps.
12027 * fixinc/fixtests.c: Likewise.
12028
12029 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
12030
12031 * configure.ac: Do not run fixincludes after stage1 during
12032 toplevel bootstrap.
12033 * configure: Regenerate.
12034
12035 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
12036
12037 * sched-deps.c (get_condition): Partially revert previous, by never
12038 trying to extract the condition from a condjump.
12039
12040 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
12041
12042 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
12043 (handle_visibility_attribute, c_determine_visibility): Likewise.
12044 * c-common.h (my_friendly_assert): Remove.
12045
12046 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
12047
12048 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
12049 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
12050 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
12051 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
12052 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
12053
12054 2004-08-30 Diego Novillo <dnovillo@redhat.com>
12055
12056 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
12057 in COMPONENT_REF nodes.
12058
12059 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
12060
12061 PR c++/15378
12062 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
12063 global_dc->warning_as_error_requested.
12064 * diagnostic.c (diagnostic_initialize): Tidy.
12065 * diagnostic.h (diagnostic_context::x_data): Remove
12066 (diagnostic_context::issue_warnings_are_errors_message): Rename
12067 from warnings_are_errors_message.
12068 (diagnostic_context::warning_as_error_requested): New.
12069
12070 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
12071
12072 * sched-deps.c (get_condition): Fix breakage in previous patch.
12073
12074 2004-08-30 Paul Brook <paul@codesourcery.com>
12075
12076 * doc/install.texi: Fix broken mpfr link.
12077
12078 2004-08-29 David O'Brien <obrien@FreeBSD.org>
12079
12080 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
12081 other FreeBSD platforms.
12082
12083 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
12084
12085 * arm.h (REVERSE_CONDITION): Define.
12086 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
12087
12088 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
12089
12090 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
12091 just the codes, call reversed_comparison_code ().
12092 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
12093 (not_reg_cond): Use reversed_comparison_code.
12094 (and_reg_cond): Likewise.
12095 * ifcvt.c (cond_exec_process_if_block): Likewise.
12096 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
12097
12098 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
12099
12100 * sched-deps.c (get_condition): Rewrite using jump support functions.
12101 Use reversed_comparison_code.
12102 (conditions_mutex_p): Use reversed_comparison_code.
12103
12104 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
12105
12106 * config/mips/mips.c (override_options): Disable hot/cold partitioning
12107 for MIPS16.
12108
12109 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
12110
12111 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
12112 (mips_function_type): Move to mips.c.
12113 * config/mips/mips.c (mips_builtin_type): New enum.
12114 (builtin_description): Replace code and ftype with builtin_type
12115 and function_type.
12116 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
12117 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
12118 (CODE_FOR_mips_abs_ps): Define.
12119 (mips_bdesc): Use new macros.
12120 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
12121 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
12122 (mips_expand_builtin_direct): New function.
12123 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
12124 builtin. Replace boolean parameter with builtin_type.
12125 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
12126 (mips_expand_4s_compare_builtin): Delete, replacing with...
12127 (mips_expand_builtin_compare): ...this new function.
12128
12129 2004-08-29 Mark Mitchell <mark@codesourcery.com>
12130
12131 PR rtl-optimization/16590
12132 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
12133
12134 2004-08-29 Diego Novillo <dnovillo@redhat.com>
12135
12136 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
12137 * tree-ssa-propagate.c: Fix documentation.
12138
12139 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
12140
12141 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
12142 (mov[sd]fcc): Likewise.
12143
12144 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
12145
12146 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
12147
12148 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
12149
12150 * config/mips/mips.md (divide_condition): New mode attribute.
12151 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
12152 (sqrt[sd]f3): Redefine using SCALARF.
12153 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
12154 patterns.
12155
12156 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
12157
12158 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
12159 (loadx, storex, fmt, UNITMODE): New mode attributes.
12160 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
12161 (mul[sd]f3): Redefine using :SCALARF.
12162 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
12163 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
12164 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
12165 Check TARGET_FUSED_MADD for V2SF too.
12166 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
12167 were already named.
12168 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
12169 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
12170
12171 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
12172
12173 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
12174 V2SF_type_node if it will be needed.
12175
12176 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
12177
12178 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
12179 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
12180 (mips_prepare_builtin_target): New function.
12181 (mips_expand_builtin): Use them. Update calls to subroutines.
12182 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
12183 cmp_choice with a boolean argument to select between movt and movf.
12184 Take the comparison's icode as an argument, not the function's fcode.
12185 (mips_expand_compare_builtin): New function. Rename existing function
12186 to mips_expand_scalar_compare_builtin.
12187 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
12188 (mips_expand_ps_compare_builtin): Use the new functions. Take the
12189 comparison's icode as an argument, not the builtin's fcode.
12190
12191 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
12192
12193 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
12194 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
12195 registers are false and -1 if all registers are true.
12196 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
12197 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
12198 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
12199 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
12200 (bc1any2t, bc1any2f): Likewise CCV2.
12201 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
12202
12203 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
12204
12205 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
12206 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
12207 UNSPEC rather than an IF_THEN_ELSE.
12208 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
12209 mips_cond_move_tf_ps by name.
12210
12211 2004-08-29 Chao-ying Fu <fu@mips.com>
12212 James E Wilson <wilson@specifixinc.com>
12213
12214 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
12215 8 byte size and alignment. Give CCV4 16 byte size and alignment.
12216 * config/mips/mips-ps-3d.md: New file.
12217 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
12218 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12219 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
12220 (mips_output_move): Emit "mov.ps" for V2SFmode.
12221 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
12222 MODE_VECTOR_FLOAT.
12223 (override_options): Check if TARGET_MIPS3D and there was an explicit
12224 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
12225 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
12226 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
12227 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
12228 and allow CCV2 and CCV4 to occupy two and four CC registers.
12229 (print_fcc_operand): New function.
12230 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
12231 %Z to call print_fcc_operand.
12232 (mips_function_value): Handle MODE_VECTOR_FLOAT.
12233 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
12234 (mips_vector_mode_supported_p): New function.
12235 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
12236 (builtin_description): New struct.
12237 (mips_bdesc): New array of struct builtin_description.
12238 (mips_expand_builtin, mips_init_builtins,
12239 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
12240 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
12241 functions.
12242 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
12243 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
12244 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
12245 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
12246 "-mips3d", and "-mno-mips3d".
12247 (ASM_SPEC): Map -mips3d to -mips3d in gas.
12248 (EXTRA_CONSTRAINT_Y): New macro.
12249 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
12250 multi-letter constraint 'Y'.
12251 (CONSTRAINT_LEN): New macro.
12252 (enum mips_builtins): New for MIPS builtin functions.
12253 (enum mips_function_type): New for the types of MIPS builtin functions.
12254 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
12255 * config/mips/mips.md: New constants for paired single and MIPS-3D
12256 instructions. Include the new mips-ps-3d.md file.
12257 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
12258 movv2sf_hardfloat_64bit): New named patterns.
12259 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
12260 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
12261 sdxc1_v2sf_di): New unnamed patterns.
12262 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
12263 const_vector support.
12264 (const_0_or_1_operand): New predicate.
12265 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
12266
12267 2004-08-29 Diego Novillo <dnovillo@redhat.com>
12268
12269 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
12270 (tree-ssa-propagate.o): New rule.
12271 (GTFILES): Add tree-ssa-propagate.c.
12272 * tree-flow.h (struct stmt_ann_d): Remove field
12273 in_ccp_worklist.
12274 * tree-ssa-propagate.c: New file.
12275 * tree-ssa-propagate.h: New file.
12276 * tree-ssa-ccp.c: Re-write to use the routines from
12277 tree-ssa-propagate.c.
12278
12279 2004-08-28 Andrew Pinski <apinski@apple.com>
12280
12281 * tree-ssa-loop.c: Remove extra include of basic-block.h.
12282
12283 2004-08-28 Ziemowit Laski <zlaski@apple.com>
12284
12285 * c-common.h: Update comments about ObjC/ObjC++ entry points.
12286 (objc_is_reserved_word): New prototype.
12287 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
12288 separate section; these are call-backs.
12289 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
12290 ObjC/ObjC++ "@" keywords.
12291 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
12292 prototypes; they already live in c-common.h.
12293 * stub-objc.c: Update copyright notice.
12294 (objc_is_reserved_word): New stub.
12295
12296 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
12297
12298 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
12299 even when not checking.
12300
12301 2004-08-27 Jason Merrill <jason@redhat.com>
12302
12303 PR c++/13684
12304 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
12305 (gimple_push_cleanup): Add eh_only parm.
12306 (gimplify_target_expr): Pass it.
12307 * c.opt (-fno-threadsafe-statics): New option.
12308 * c-opts.c (c_common_handle_option): Handle it.
12309 * c-common.h (flag_threadsafe_statics): Declare it.
12310 * c-common.c (flag_threadsafe_statics): Record it.
12311 * doc/invoke.texi: Document it.
12312 * tsystem.h (_GNU_SOURCE): Define.
12313 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
12314 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
12315 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
12316 (__gthread_recursive_mutex_init_function): New fn.
12317 (__gthread_recursive_mutex_lock): New fn.
12318 (__gthread_recursive_mutex_trylock): New fn.
12319 (__gthread_recursive_mutex_unlock): New fn.
12320 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
12321 * gthr-win32.h, gthr-vxworks.h: Likewise.
12322 * gthr.h: Document.
12323
12324 2004-08-27 David Edelsohn <edelsohn@gnu.org>
12325
12326 * config/rs6000/rs6000.c (rs6000_override_options): Increase
12327 maximum skip to 15. Set function alignment, jump alignment, and
12328 loop alignment to 16 for processors that form dispatch groups.
12329 (rs6000_rtx_costs): outer_code is used.
12330
12331 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
12332
12333 * stor-layout.c (sizetype_set): Remove.
12334 (set_sizetype): Don't test or set it.
12335
12336 * tree.h (size_int_type): Remove.
12337 * fold-const.c: Do not #include gt-fold-const.h.
12338 (size_htab_hash, size_htab_eq): Remove.
12339 (size_int_kind): Use build_int_cst.
12340 (new_const, size_htab): Remove.
12341 (size_int_type): Remove.
12342 (round_up): Use build_int_cst.
12343 (round_down): Likewise. Remove spurious constant build.
12344
12345 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
12346
12347 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
12348 Add is_release variable, use it for --enable-werror and
12349 --enable-checking defaults.
12350 * system.h (gcc_assert, gcc_unreachable): New.
12351 * doc/install.texi (--enable-checking): Update.
12352 * configure, config.in: Rebuilt.
12353
12354 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
12355
12356 * rtl.h (read_rtx): Change prototype.
12357 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
12358 line number. Return true on success.
12359 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
12360 callers accordingly.
12361
12362 2004-08-26 Richard Henderson <rth@redhat.com>
12363
12364 * c-typeck.c (build_offsetof): Remove.
12365 * c-tree.h (build_offsetof): Remove.
12366 * c-common.c (fold_offsetof_1, fold_offsetof): New.
12367 * c-common.h (fold_offsetof): Declare.
12368 * c-parse.in (offsetof_base): New.
12369 (offsetof_member_designator): Use it. Build references, not just
12370 a tree list.
12371 (primary): Use fold_offsetof, not build_offsetof.
12372
12373 2004-08-26 Richard Henderson <rth@redhat.com>
12374
12375 * tree.c (staticp): Return the static object.
12376 * tree.h (staticp): Update decl.
12377 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
12378 * langhooks.c (lhd_staticp): Return NULL_TREE.
12379 * langhooks-def.h (lhd_staticp): Update decl.
12380 * c-common.c (c_staticp): Return the static object.
12381 * c-common.h (c_staticp): Update decl.
12382
12383 2004-08-26 Richard Henderson <rth@redhat.com>
12384
12385 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
12386 modes.
12387
12388 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
12389
12390 PR c/13801
12391 * c-decl.c (struct c_binding): Add type and inner_comp fields.
12392 (bind): Set type and inner_comp fields.
12393 (pop_scope): Restore type of decl to the correct type from an
12394 outer scope. Give error when popping file scope for incomplete
12395 arrays completed incompatibly with default initialization in an
12396 inner scope.
12397 (diagnose_mismatched_decls): Handle externs with initializers at
12398 block scope.
12399 (pushdecl): Set type of external declaration at block scope based
12400 only on the visible declarations. Save type when changing the
12401 type of a declaration. Merge an external declaration at block
12402 scope with a visible static declaration at file scope.
12403 (implicitly_declare): Give recycled old declaration the new type
12404 except for incompatible declarations of built-in functions, saving
12405 the old type.
12406
12407 2004-08-26 Ziemowit Laski <zlaski@apple.com>
12408
12409 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
12410
12411 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
12412
12413 * tree-alias-common.c (gate_pta): New function.
12414 (pass_build_pta): Use it.
12415 (pass_del_pta): Use it.
12416 (delete_alias_vars): Don't check flag_tree_points_to.
12417
12418 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
12419
12420 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
12421 TFmode as additional register mode cloberred by call.
12422
12423 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
12424
12425 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
12426 parallel pattern for library call returning DImode in
12427 mixed mode.
12428
12429 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
12430
12431 * config/rs6000/rs6000.c (function_arg): Generate parallel
12432 pattern for more split args.
12433
12434 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
12435
12436 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
12437 either gen_movdi_di_update or gen_movdi_si_update depending on
12438 target mode.
12439 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
12440 to generate two versions.
12441
12442 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
12443
12444 * Makefile.in (lambda-code.o): New.
12445 (lambda-trans.o): Ditto.
12446 (TREE_DATA_REF_H): Ditto.
12447 (LAMBDA_H): Ditto.
12448 (lambda-mat.o): Use LAMBDA_H.
12449 (tree-data-ref.o): Ditto.
12450 * lambda-code.c: New file. Lambda code generation algorithm.
12451 * lambda-trans.c: Ditto. Lambda transformation matrix support.
12452 * lambda.h: Add lambda loop structures.
12453 Add lambda loopnest structures.
12454 Add lambda body vector structure.
12455 Add lambda linear expression structures.
12456 Add prototypes for functions in new files.
12457 * lambda-mat.c: Include tree.h
12458
12459 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
12460 Sebastian Pop <pop@cri.ensmp.fr>
12461
12462 * tree-data-ref.h: Include lambda.h
12463 (free_dependence_relation): Declared here.
12464 (free_dependence_relations): Ditto.
12465 (free_data_refs): Ditto.
12466 * tree-data-ref.c (free_dependence_relation): New function.
12467 (free_dependence_relations): Ditto.
12468 (free_data_refs): Ditot.
12469 (analyze_all_data_dependences): Free datarefs and dependence_relations.
12470 (build_classic_dist_vector): Store in the dependence_relations the
12471 information. Each arc in the dependence_relations graph is labelled
12472 with the distance and direction vectors.
12473 (build_classic_dir_vector): Ditto.
12474 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
12475 Now computes again the whole dependence graph including read-read
12476 relations.
12477 (compute_data_dependences_for_loop): Now dependence_relations contains
12478 all the data, and thus it doesn't need to initialize the classic_dir
12479 and classic_dist vectors.
12480 (analyze_all_data_dependences): Adjusted for using the new interface of
12481 compute_data_dependences_for_loop. Remove the statistics dump.
12482
12483 2004-08-26 Bob Wilson <bob.wilson@acm.org>
12484
12485 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
12486 (xtensa_expand_block_move): Update comment.
12487 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
12488
12489 2004-08026 Richard Earnshaw <rearnsha@arm.com>
12490
12491 PR target/13506
12492 * toplev.c (crash_signal): If we crashed while emitting
12493 a user asm, then die more gracefully.
12494
12495 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12496
12497 PR target/17119.
12498 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
12499 checking for a valid constant, regardless of sign.
12500
12501 2004-08-25 Richard Henderson <rth@redhat.com>
12502
12503 PR target/16974
12504 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
12505 if the constant satisfies add_operand.
12506
12507 2004-08-25 Richard Henderson <rth@redhat.com>
12508
12509 PR debug/10695
12510 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
12511 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
12512 unwind info for >16-bit frames.
12513
12514 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
12515
12516 PR target/17171
12517 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
12518
12519 2004-08-25 Richard Henderson <rth@redhat.com>
12520
12521 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
12522 (TARGET_CANNOT_FORCE_CONST_MEM): New.
12523
12524 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
12525
12526 * doc/tree-ssa.texi: Document new operand iterator.
12527
12528 2004-08-26 Alan Modra <amodra@bigpond.net.au>
12529
12530 PR target/16480
12531 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
12532 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
12533 as PLUS base regs.
12534
12535 2005-08-28 Paul Brook <paul@codesourcery.com>
12536
12537 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
12538 -mfpu=vfp -march=armv5t
12539 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
12540
12541 2004-08-25 Richard Henderson <rth@redhat.com>
12542
12543 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
12544 * target.h (struct gcc_target): Add scalar_mode_supported_p.
12545 * targhooks.c (default_scalar_mode_supported_p): New.
12546 * targhooks.h (default_scalar_mode_supported_p): Declare.
12547 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
12548
12549 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
12550 before attempting to create types. Tidy.
12551 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
12552
12553 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
12554 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
12555
12556 2004-08-25 Richard Henderson <rth@redhat.com>
12557
12558 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
12559 set REAL_MODE_FORMAT for TFmode.
12560
12561 2004-08-25 Ziemowit Laski <zlaski@apple.com>
12562
12563 * c-decl.c (grokparm): New function.
12564 * c-tree.h (grokparm): New prototype.
12565
12566 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
12567
12568 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
12569 iterator controlling structure.
12570 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
12571 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
12572 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
12573 iterator flags.
12574 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
12575 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
12576 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
12577 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
12578 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
12579 Empty operand pointers.
12580 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
12581 (op_iter_next_use): New. Return next use_operand_p.
12582 (op_iter_next_def): New. Return next def_operand_p.
12583 (op_iter_next_tree): New. Return next operands as a tree.
12584 (op_iter_init): New. Initialize an iterator structure.
12585 (op_iter_init_use): New. Initialize structure and get the first use.
12586 (op_iter_init_def): New. Initialize structure and get the first def.
12587 (op_iter_init_tree): New. Initialize structure and get the first tree.
12588 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
12589 (op_iter_init_maydef): New. Initialize structure and get the first
12590 V_MAY_DEF operands.
12591 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
12592 * tree-dfa.c (compute_immediate_uses_for_stmt,
12593 redirect_immediate_uses): Use new operand iterator.
12594 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
12595 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
12596 operands instead of using *_disappeared_p routines.
12597 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
12598 ssa_rewrite_stmt): Use new operand iterator.
12599 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
12600 rewrite_trees): Use new operand iterator.
12601 * tree-pretty-print.c (dump_vops): Use new operand iterator.
12602 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
12603 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
12604 dump_points_to_info): Use new operand iterator.
12605 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
12606 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
12607 operand iterator.
12608 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
12609 propagate_necessity): Use new operand iterator.
12610 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
12611 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
12612 a parameter instead of a stmt_ann_t.
12613 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
12614 build_tree_conflict_graph): Use new operand iterator.
12615 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
12616 rewrite_mem_refs): Use new operand iterator.
12617 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
12618 check_loop_closed_ssa_use): Use new operand iterator.
12619 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
12620 * tree-ssanames.c (release_defs): Use new operand iterator.
12621 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
12622
12623 2004-08-25 Adam Nemet <anemet@lnxw.com>
12624
12625 * tlink.c (initial_cwd): New variable.
12626 (tlink_init): Initialize it.
12627 (recompile_files): Use tlink_execute() instead of system(). Don't
12628 duplicate verbose output of collect_execute. Restore initial_cwd.
12629 Update comment before the function.
12630
12631 2004-08-25 Ziemowit Laski <zlaski@apple.com>
12632
12633 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
12634 accept) a cast from one Objective-C pointer type to another.
12635
12636 2004-08-25 Paolo Carlini <pcarlini@suse.de>
12637
12638 * doc/install.texi: Document that libstdc++-v3 requires
12639 now automake 1.9.1.
12640
12641 2004-08-25 Caroline Tice <ctice@apple.com>
12642
12643 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
12644 to comments at start of function.
12645 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
12646 comment.
12647 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12648 merge_blocks_move_predecessor_nojumps,
12649 merge_blocks_move_successor_nojumps, merge_blocks_move,
12650 try_crossjump_to_edge, try_crossjump_bb): Likewise.
12651 * cfglayout.c (fixup_reorder_chain): Likewise.
12652 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
12653 cfg_layout_can_merge_blocks_p): Likewise.
12654 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
12655 * passes.c (rest_of_compilation): Update comments for calling
12656 optimization that partitions hot/cold basic blocks.
12657 * doc/invoke.texi: Update documentation of
12658 freorder-blocks-and-partition flag.
12659
12660 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
12661
12662 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
12663 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
12664
12665 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
12666
12667 * config/mips/mips.md (any_shift): New code macro.
12668 (optab, insn): New code attributes.
12669 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
12670 Use the standard rather than internal patterns for the MIPS16
12671 double-shift optimization.
12672 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
12673 Redefine using :GPR and any_shift.
12674 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
12675 to cover all three shifts.
12676 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
12677 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
12678 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
12679
12680 2004-08-24 Geoffrey Keating <geoffk@apple.com>
12681
12682 * gimplify.c (lookup_tmp_var): Separate temporaries when not
12683 optimizing.
12684
12685 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12686
12687 PR libstdc++/17005 (fix for HP-UX 11.11)
12688 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
12689 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
12690 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
12691 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
12692 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
12693 (LINK_SPEC): Handle march=1.0 option.
12694 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
12695 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
12696 (SUBTARGET_OPTIONS): New define.
12697 (LINK_SPEC): Handle march=1.0 option.
12698 (STARTFILE_SPEC): New define.
12699 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
12700 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
12701 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
12702 (SUBTARGET_OPTIONS): New define.
12703 (LINK_SPEC): Handle march=1.0 option.
12704 (STARTFILE_SPEC): New define.
12705 * config/pa/pa.c (override_options): Add code to process -munix= option.
12706 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
12707 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
12708 defines.
12709 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
12710 (SUBTARGET_OPTIONS): Provide default define.
12711 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
12712 STANDARD_STARTFILE_PREFIX_2): New defines.
12713 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
12714 (ENDFILE_SPEC): Use %O.
12715 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
12716 Mention issue caused by changing namespace and runtime to UNIX 95/98.
12717 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
12718 Document -munix=std option.
12719
12720 2004-08-25 Steven Bosscher <stevenb@suse.de>
12721
12722 * cse.c (cse_around_loop, cse_check_loop_start,
12723 cse_set_around_loop): Remove.
12724 (cse_basic_block): Remove the around_loop argument.
12725 (cse_end_of_basic_block): Remove the after_loop argument.
12726 (cse_main): Likewise.
12727 * rtl.h (cse_main): Update prototype.
12728 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
12729 rest_of_handle_gcse): Update cse_main calls.
12730
12731 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
12732
12733 * tree.h (build_int_cst): New, sign extended constant.
12734 (build_int_cstu): New, zero extended constant.
12735 (build_int_cst_wide): Renamed from build_int_cst.
12736 * tree.c (build_int_cst, build_int_cstu): New.
12737 (build_int_cst_wide): Renamed from build_int_cst.
12738 (make_vector_type, build_common_tree_nodes,
12739 build_common_tree_nodes_2): Adjust build_int_cst calls.
12740 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
12741 expand_builtin_strpbrk, expand_builtin_fputs,
12742 build_string_literal, expand_builtin_printf,
12743 expand_builtin_sprintf, fold_builtin_classify_type,
12744 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
12745 fold_builtin_toascii, fold_builtin_isdigit,
12746 simplify_builtin_strstr, simplify_builtin_strpbrk,
12747 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
12748 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
12749 DEF_ATTR_INT): Likewise.
12750 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
12751 Likewise.
12752 * c-lex.c (interpret_integer, lex_charconst): Likewise.
12753 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
12754 * c-pretty-print.c (pp_c_integer_constant): Likewise.
12755 * c-typeck.c (really_start_incremental_init, push_init_level,
12756 set_nonincremental_init_from_string): Likewise.
12757 * calls.c (load_register_parameters): Likewise.
12758 convert.c (convert_to_pointer): Likewise.
12759 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
12760 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
12761 build_gcov_info): Likewise.
12762 * except.c (init_eh, assign_filter_values): Likewise.
12763 * expmed.c (store_fixed_bit_field, extract_bit_field,
12764 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
12765 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
12766 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
12767 * expr.c (convert_move, emit_group_load, emit_group_store,
12768 expand_assignment, store_constructor, store_field,
12769 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
12770 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
12771 invert_truthvalue, optimize_bit_field_compare,
12772 decode_field_reference, all_ones_mask_p, constant_boolean_node,
12773 fold_div_compare, fold, fold_read_from_constant_string,
12774 fold_negate_const, fold_abs_const, fold_not_const, round_up,
12775 round_down): Likewise.
12776 * function.c (assign_parm_setup_block): Likewise.
12777 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
12778 Likewise.
12779 * stor-layout.c (layout_type, initialize_sizetypes,
12780 set_min_and_max_values_for_integral_type): Likewise.
12781 * tree-chrec.c (chrec_fold_multiply_poly_poly,
12782 reset_evolution_in_loop): Likewise.
12783 * tree-chrec.h (build_polynomial_chrec): Likewise.
12784 * tree-complex.c (build_replicated_const): Likewise.
12785 * tree-eh.c (honor_protect_cleanup_actions,
12786 lower_try_finally_onedest, lower_try_finally_copy,
12787 lower_try_finally_switch): Likewise.
12788 * tree-mudflap.c (mf_build_string, mx_register_decls,
12789 mudflap_register_call, mudflap_enqueue_constant): Likewise.
12790 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
12791 * tree-pretty-print.c (dump_generic_node): Likewise.
12792 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
12793 Likewise.
12794 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
12795 * tree-ssa-loop-niter.c (number_of_iterations_cond,
12796 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
12797 Likewise.
12798 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
12799 canonicalize_loop_induction_variables): Likewise.
12800 * tree-vectorizer.c (vect_create_index_for_array_ref,
12801 vect_transform_loop_bound, vect_compute_data_ref_alignment):
12802 Likewise.
12803
12804 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
12805 alpha_gimplify_va_arg_1): Likewise.
12806 * config/arm/arm.c (arm_get_cookie_size): Likewise.
12807 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
12808 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
12809 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12810 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
12811 mips_gimplify_va_arg_expr): Likewise.
12812 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12813 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
12814 add_compiler_branch_island): Likewise.
12815 * config/s390/s390.c (s390_va_start): Likewise.
12816 * config/sh/sh.c (sh_va_start): Likewise.
12817 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
12818 Likewise.
12819 * config/xtensa/xtensa.c (xtensa_va_start,
12820 xtensa_gimplify_va_arg_expr): Likewise.
12821
12822 * objc/objc-act.c (build_objc_string_object,
12823 build_objc_symtab_template, init_def_list, init_objc_symtab,
12824 init_module_descriptor, generate_static_references,
12825 build_selector_translation_table, get_proto_encoding,
12826 build_typed_selector_reference, build_selector_reference,
12827 build_next_objc_exception_stuff,
12828 build_method_prototype_list_template, generate_descriptor_table,
12829 generate_protocols, build_protocol_initializer,
12830 build_ivar_list_template, build_method_list_template,
12831 build_ivar_list_initializer, generate_ivars_list,
12832 generate_dispatch_table, generate_protocol_list,
12833 build_category_initializer, build_shared_structure_initializer,
12834 generate_shared_structures, handle_impent,
12835 generate_objc_image_info): Likewise.
12836
12837 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
12838
12839 * cfglayout.c (duplicate_insn_chain): Remove references to
12840 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
12841 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
12842 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
12843 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
12844 and NOTE_INSN_LOOP_CONT.
12845 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
12846 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
12847 and NOTE_INSN_LOOP_CONT.
12848 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
12849 check_dbra_loop, loop_dump_aux): Remove references to removed notes
12850 and fields.
12851 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
12852 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
12853 references to removed notes and fields.
12854 (subtract_reg_term, ujump_to_loop_cont): Remove.
12855
12856 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
12857
12858 * doc/install.texi: Document that libcpp does not require
12859 Automake any longer. Document that Automake 1.9.1 should
12860 work everywhere.
12861
12862 2004-08-25 Zack Weinberg <zack@codesourcery.com>
12863
12864 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
12865 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
12866 DWARF_DEBUGGING_INFO from choice-of-definition chain;
12867 restructure using C89 features (#elif, #error).
12868 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
12869 * config/sh/sh.h: Remove references to DWARF_DEBUG.
12870 * doc/invoke.texi: Remove references to DWARF version 1;
12871 clarify why -gdwarf-2<n> doesn't work.
12872
12873 2004-08-25 Zack Weinberg <zack@codesourcery.com>
12874
12875 * basic-block.h (BB_SET_PARTITION): Clear old value first.
12876 * cfg.c (clear_bb_flags): Don't clear partition setting.
12877 * ifcvt.c (find_if_case_1): Remove ??? comment.
12878
12879 2004-08-25 Alan Modra <amodra@bigpond.net.au>
12880
12881 PR target/17052
12882 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
12883 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
12884 current_function_stdarg in place of sysv_varargs_p.
12885 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
12886 sysv_varargs_p.
12887
12888 2004-08-24 Richard Henderson <rth@redhat.com>
12889
12890 PR target/16298
12891 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
12892 random codes within CONST.
12893
12894 2004-08-24 James E Wilson <wilson@specifixinc.com>
12895
12896 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
12897 -freorder-blocks-and-partition.
12898
12899 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12900
12901 PR middle-end/17044
12902 * tree-ssa-threadupdate.c (redirection_data): Make static.
12903 (thread_block): Use ggc_alloc_cleared to allocate struct
12904 redirection_data. Don't free elements in redirection_data.
12905
12906 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12907
12908 * config/mips/predicates.md (small_data_pattern): Match prefetches.
12909
12910 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12911
12912 PR tree-optimization/17016
12913 * tree-ssa-loop-niter.c (number_of_iterations_cond,
12914 number_of_iterations_exit): Use POINTER_TYPE_P instead
12915 of testing for POINTER_TYPE.
12916
12917 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12918
12919 * tree-ssa-loop-ivcanon.c: New file.
12920 * tree-ssa-loop-manip.c (create_iv): New function.
12921 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
12922 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
12923 * cfgloop.c (mark_single_exit_loops): New function.
12924 (verify_loop_structure): Verify single-exit loops.
12925 * cfgloop.h (struct loop): Add single_exit field.
12926 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
12927 (mark_single_exit_loops): Declare.
12928 (tree_num_loop_insns): Declare.
12929 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
12930 (duplicate_loop_to_header_edge): Use it.
12931 * common.opt (fivcanon): New flag.
12932 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
12933 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
12934 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
12935 (bsi_insert_on_edge_immediate): New function.
12936 * tree-flow.h (bsi_insert_on_edge_immediate,
12937 canonicalize_induction_variables, tree_unroll_loops_completely,
12938 create_iv): Declare.
12939 * tree-optimize.c (init_tree_optimization_passes): Add
12940 pass_iv_canon and pass_complete_unroll.
12941 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
12942 * tree-scalar-evolution.c (get_loop_exit_condition,
12943 get_exit_conditions_rec, number_of_iterations_in_loop,
12944 scev_initialize): Use single_exit information.
12945 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
12946 missing assumptions.
12947 (loop_niter_by_eval): Return number of iterations as unsigned
12948 int.
12949 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
12950 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
12951 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
12952 New passes.
12953 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
12954 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
12955 the defining statement is ready.
12956 * tree-vectorizer.c (vect_create_iv_simple): Removed.
12957 (vect_create_index_for_array_ref, vect_transform_loop_bound):
12958 Use create_iv.
12959 (vect_transform_loop_bound): Use single_exit information.
12960 (vect_analyze_loop_form): Cleanup bogus tests.
12961 (vectorize_loops): Do not call flow_loop_scan.
12962 * tree.h (may_negate_without_overflow_p): Declare.
12963 * fold-const.c (may_negate_without_overflow_p): Split out from ...
12964 (negate_expr_p): ... this function.
12965 (tree_expr_nonzero_p): Handle overflowed constants correctly.
12966 * doc/invoke.texi (-fivcanon): Document.
12967 * doc/passes.texi: Document canonical induction variable creation.
12968
12969 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12970
12971 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
12972 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
12973 using the mode of the operand to decide between them.
12974 * config/mips/mips.md (MOVECC): New mode macro.
12975 (ccreg): New mode attribute.
12976 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
12977 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
12978 (mov[sd]icc): Redefine using :GPR.
12979
12980 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12981
12982 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
12983 (mips_prefetch_cookie): New function.
12984 * config/mips/mips.c (print_operand_address): Fix handling of
12985 ADDRESS_CONST_INT.
12986 (mips_emit_prefetch): Delete.
12987 (mips_prefetch_cookie): New function.
12988 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
12989 mode of QImode for the address_operand. Use mips_prefetch_cookie
12990 to calculate the first "pref" operand.
12991 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
12992 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
12993
12994 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
12995
12996 * arm.md: Include predicates.md.
12997 * predicates.md: New file.
12998 * arm.c (s_register_operand, arm_hard_register_operand)
12999 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
13000 (arm_immediate_operand, arm_neg_immediate_operand)
13001 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
13002 (arm_add_operand, arm_addimm_operand, arm_not_operand)
13003 (offsettable_memory_operand, alignable_memory_operand)
13004 (arm_reload_memory_operand, arm_float_rhs_operand)
13005 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
13006 (index_operand, shiftable_operator, logical_binary_operator)
13007 (shift_operator, equality_operator, arm_comparison_operator)
13008 (minmax_operator, cc_register, dominant_cc_register)
13009 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
13010 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
13011 (const_shift_operand, load_multiple_operation)
13012 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
13013 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
13014 (cirrus_register_operand, cirrus_fp_register)
13015 (cirrus_shift_const): Delete, replaced with equivalents in
13016 predicates.md.
13017 (shift_op): Handle ROTATE.
13018 * arm-protos.h: Delete declarations for above.
13019 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
13020 * t-arm (MD_INCLUDES): Add predicates.md.
13021 (s-preds): Depends on MD_INCLUDES.
13022
13023 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
13024
13025 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
13026 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
13027 patterns. Redefine using :GPR. Give the match_operator a mode.
13028 Use '%2' rather than '%z2' for operand 2.
13029
13030 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
13031
13032 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
13033 attribute.
13034
13035 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
13036
13037 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
13038 of internal patterns.
13039 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
13040 Redefine using :P.
13041 (tablejump): Use expand_binop to calculate address. Adjust names
13042 of internal patterns.
13043 (tablejump[sd]i): Renamed from tablejump_internal[12].
13044 Redefine using :P.
13045 (tablejump_mips16[12]): Delete.
13046
13047 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
13048
13049 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
13050 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
13051 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
13052 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
13053 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
13054
13055 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
13056
13057 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
13058 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
13059 using :GPR.
13060 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
13061 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
13062 (*branch_equality[sd]i_inverted): Likewise
13063 branch_equality{,_di}_inverted.
13064 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
13065 Redefine using :GPR.
13066
13067 2004-08-24 Zack Weinberg <zack@codesourcery.com>
13068
13069 * rtl.def: Reorganize, placing all codes used only in machine
13070 descriptions at the end.
13071
13072 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
13073 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
13074 rtx_name, rtx_format arrays by direct reference to rtl.def,
13075 first undefining GENERATOR_FILE. Define enum insn_note and
13076 note_insn_name array by direct reference to insn-notes.def.
13077 (adjust_field_rtx_def): Remove local definition of rtx_name.
13078 Use symbolic names for insn notes.
13079 * Makefile.in (gengtype.o): Update dependencies.
13080
13081 2004-08-24 Zack Weinberg <zack@codesourcery.com>
13082
13083 * basic-block.h (struct basic_block_def): Reorder fields to
13084 eliminate interior padding. Remove 'partition' field.
13085 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
13086 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
13087 (BB_COPY_PARTITION): New macros.
13088 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
13089 Replace all references to the 'partition' field of a basic
13090 block with new macros.
13091
13092 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
13093 * final.c (final_scan_insn): Don't handle it.
13094 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
13095 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
13096 * sched-rgn.c (sched_is_disabled_for_current_region_p):
13097 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
13098
13099 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
13100
13101 * c-decl.c (c_init_decl_processing): Adjust
13102 build_common_tree_nodes call.
13103 * expmed.c (const_mult_add_overflow_p): Use
13104 build_distinct_type_copy.
13105 * stor-layout.c (early_type_list): Remove.
13106 (layout_type): Don't append to early_type_list.
13107 (initialize_sizetypes): Add signed_p argument.
13108 (set_sizetype): Overwrite the stub type nodes directly.
13109 * tree.c (copy_node_stat): Clear a type's value cache here ...
13110 (build_distinct_type): ... not here.
13111 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
13112 * tree.h (initialize_sizetypes): Add signed_p argument.
13113 (build_common_tree_nodes): Likewise.
13114
13115 * objc/objc-act.c (get_static_reference): Use
13116 build_variant_type_copy.
13117 (get_protocol_reference): Likewise.
13118 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
13119
13120 2004-08-24 Richard Henderson <rth@redhat.com>
13121 Andrew Pinski <apinski@apple.com>
13122
13123 * gimplify.c (gimplify_array_ref_to_plus): Delete.
13124 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
13125 for ARRAY_REF.
13126
13127 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
13128 ARRAY_REF also to get to the STRING_CST.
13129
13130 2004-08-24 Paul Brook <paul@codesourcery.com>
13131
13132 * config/arm/arm.c (arm_override_options): Update error message.
13133 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
13134 TARGET_HARD_FLOAT_ABI.
13135 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
13136 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
13137
13138 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
13139
13140 PR target/17093
13141 * config/m32r.md (movsi_sda): Add SI mode specification to
13142 UNSPEC.
13143
13144 2004-08-24 Nick Clifton <nickc@redhat.com>
13145
13146 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
13147 of seth_add3_operand.
13148
13149 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
13150
13151 * Makefile.in (PROTO_OBJS): Add errors.o.
13152 * protoize.c (fancy_abort): Remove.
13153 * mips-tfile.c (fancy_abort): Add parameters.
13154
13155 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
13156
13157 * doc/trouble.texi (C++ misunderstandings): Fix example code.
13158
13159 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
13160
13161 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
13162 (host-default.o): Add dependency on HOOKS_H.
13163 * config/x-linux: Likewise.
13164 * config/x-solaris: Likewise.
13165 * config/i386/x-mingw32: Likewise.
13166 * config/rs6000/x-darwin: Likewise.
13167
13168 2004-08-23 James E Wilson <wilson@specifixinc.com>
13169
13170 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
13171 DEF_REG_NOTE.
13172
13173 2004-08-23 Mark Mitchell <mark@codesourcery.com>
13174
13175 PR c/14492
13176 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
13177
13178 2004-08-23 Diego Novillo <dnovillo@redhat.com>
13179
13180 * cfg.c (check_bb_profile): Fix typos.
13181 * function.c (assign_parm_is_stack_parm): Likewise.
13182 * tree-nested.c: Likewise.
13183
13184 2004-08-23 Daniel Jacobowitz <dan@debian.org>
13185
13186 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
13187 Remove TYPECODE.
13188 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
13189
13190 2004-08-23 Eric Christopher <echristo@redhat.com>
13191
13192 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
13193 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
13194 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
13195 * target.h: Ditto.
13196 * hooks.h: Include machmode.h.
13197 (hook_bool_mode_false): Declare.
13198 * hooks.c (hook_bool_mode_false): Define.
13199 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
13200 * stor-layout.c (layout_type): Ditto.
13201 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
13202 Define to target macro.
13203 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
13204 * config/arm/arm.c: Ditto. Use.
13205 * config/arm/arm.h: Ditto.
13206 * config/arm/arm-protos.h: Ditto.
13207 * config/i386/i386.c: Ditto.
13208 * config/i386/i386.h: Ditto.
13209 * config/rs6000/rs6000.c: Ditto.
13210 * config/rs6000/rs6000.h: Ditto.
13211 * config/sh/sh.c: Ditto.
13212 * config/sh/sh.h: Ditto.
13213 * config/sh/sh-protos.h: Ditto.
13214 * config/sh/sh.md: Use.
13215 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
13216 to TARGET_VECTOR_MODE_SUPPORTED_P.
13217
13218 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
13219
13220 * Makefile.in (BUILD_ERRORS): Set to build-errors.
13221 (errors.o): New target for host.
13222 (build-errors.o): New target for build.
13223 (genobjs): Replace errors.o with build-errors.
13224 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
13225 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
13226 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
13227 (fix-header.o): Add errors.h
13228 * collect2.c (fancy_abort): Add parameters.
13229 * collect2.h (fancy_abort): Don't declare.
13230 * errors.h (fancy_abort): Don't declare.
13231 * errors.c: Include either bconfig.h or config.h.
13232 (fancy_abort): Trim filename.
13233 * fix-header.c (v_fatal, fatal): Remove.
13234 (progname): Remove definition.
13235 (main): Set progname here.
13236 * gcc.c (fancy_abort): Add parameters.
13237 * gcc.h (fancy_abort): Remove declaration.
13238 * gcov.c (fancy_abort): Remove.
13239 * rtl.h (fancy_abort): Don't declare.
13240 (abort): Don't define.
13241 * tree.h (fancy_abort): Don't declare.
13242 (abort): Don't define.
13243 * system.h (fancy_abort): Declare.
13244 (abort): Define to fancy_abort.
13245 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
13246
13247 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
13248 (usize_type, ubitsizetype): Remove.
13249 * stor-layout.c (set_sizetype): Don't initialize usizetype,
13250 ubitsizetype.
13251 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
13252
13253 * tree.h (build_distinct_type_copy): New.
13254 (build_type_copy): ... here. Rename to ...
13255 (build_variant_type_copy): ... here.
13256 * tree.c (build_qualified_type): Rename build_type_copy call.
13257 (build_distinct_type_copy): New, broken out of ...
13258 (build_type_copy): ... here. Rename to ...
13259 (build_variant_type_copy): ... here. Use
13260 build_distinct_type_copy.
13261 (build_common_tree_nodes_2): Rename build_type_copy call.
13262 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
13263 call.
13264 (handle_packed_attribute, handle_unused_attribute,
13265 handle_transparanet_union_attribute, handle_aligned_attribute,
13266 handle_deprecated_attribute): Likewise.
13267 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
13268 Likewise.
13269 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
13270 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
13271 build_distinct_type_copy.
13272
13273 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13274
13275 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
13276 attribute.
13277
13278 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13279
13280 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
13281 loads and stores.
13282 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
13283 formerly unnamed patterns. Redefine using :P for the address. Remove
13284 explicit length attributes.
13285
13286 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13287
13288 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
13289 New functions.
13290 (single_reachable_address): Use them.
13291 (schedule_sm): Add dump.
13292 (is_call_clobbered_ref): New function.
13293 (determine_lsm_reg): Check whether the reference is call clobbered.
13294 Only work for gimple_reg_type values.
13295
13296 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13297
13298 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
13299 $31 store insns. Redefine using :GPR.
13300
13301 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13302
13303 * config/mips/mips.md (P): New mode macro.
13304 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
13305 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
13306 Add mode attributes.
13307
13308 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13309
13310 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
13311 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
13312 later constants to cover the gap.
13313 (load, store): New mode attributes.
13314 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
13315 Use new unspec constants.
13316
13317 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13318
13319 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
13320 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
13321 to use register_operand rather than uns_arith_operand as the predicate
13322 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
13323 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
13324 Redefine using :GPR. Make same predicate change here. Extend the
13325 commutativity of operands 1 and 2 from the SImode version to the
13326 DImode one.
13327 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
13328 but with no predicate changes.
13329 (*nor[sd]i3): Redefine using :GPR.
13330
13331 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13332
13333 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
13334 noreturn functions.
13335
13336 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13337
13338 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
13339 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
13340 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
13341 rather than "%z2" (with a fake const0_rtx for operand 2).
13342 (ffs[sd]i2): Redefine using :GPR.
13343 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
13344
13345 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13346
13347 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
13348
13349 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13350
13351 * config/mips/mips.md (any_extend): New code macro.
13352 (u, su): New code attributes.
13353 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
13354 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
13355 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
13356 (*{s,u}mul_acc_di): Redefine using any_extend.
13357 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
13358 to reflect real insn names.
13359 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
13360 with an any_extend template.
13361 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
13362 Add '*' to name.
13363
13364 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13365
13366 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
13367 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
13368 (mul[sd]i3_r4000): Redefine using :GPR.
13369 (mulsi3_mult3): Don't check TARGET_MAD separately.
13370 (muldi3_mult3): Moved after mulsi_mult3.
13371
13372 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13373
13374 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
13375 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
13376 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
13377 (TARGET_GAS, TARGET_MIPS_AS): Delete.
13378 (TARGET_GPWORD): Define to true for n32 on IRIX.
13379 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
13380 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
13381 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
13382 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
13383 (MDEBUG_ASM_SPEC): Delete, folding into...
13384 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
13385 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
13386 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
13387 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
13388 to define asm_abi_default_spec.
13389 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
13390 (TARGET_ASM_SELECT_SECTION): Delete.
13391 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
13392 for non-mips16 code, removing previous workaround for SGI assemblers.
13393 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
13394 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
13395 (override_options): Remove !TARGET_GAS and !have_named_sections code.
13396 (print_operand): Fold TARGET_GAS conditionals into asm strings.
13397 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
13398 ASM_STABS_OP and ASM_STABN_OP.
13399 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
13400 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
13401 (mips_output_function_prologue): Remove !TARGET_GAS code.
13402 (mips_select_rtx_section): Remove !have_named_sections code.
13403 (mips_select_section): Delete.
13404 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
13405 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
13406 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
13407 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
13408 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
13409 * config/mips/windiss.h (ASM_SPEC): Likewise.
13410
13411 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13412
13413 * read-rtl.c (map_value, mapping, macro_group): New structures.
13414 (BELLWETHER_CODE): New macro.
13415 (modes, codes, bellwether_codes): New variables.
13416 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
13417 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
13418 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
13419 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
13420 (add_map_value, initialize_macros): New functions.
13421 (def_hash, def_hash_eq_p): Generalize to anything that points to,
13422 or starts with, a char * field.
13423 (find_macro, read_mapping, check_code_macro): New functions.
13424 (read_rtx_1): New, split out from read_rtx. Handle the new
13425 define_{mode,code}_{macro,attr} constructs. Use find_macro
13426 to parse the name of a code or mode. Use BELLWETHER_CODE to
13427 extract the format and to choose a suitable code for rtx_alloc.
13428 Modify recursive invocations to use read_rtx_1.
13429 (read_rtx): Call initialize_macros. Apply code and mode macros
13430 to the rtx returned by read_rtx_1. Cache everything after the
13431 first macro expansion for subsequent read_rtx calls.
13432 * doc/md.texi: Document new .md constructs.
13433 * config/mips/mips.md (GPR): New mode macro.
13434 (d, si8_di5): New mode attributes.
13435 (any_cond): New code macro.
13436 (add[sd]i3): Redefine using :GPR.
13437 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
13438 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
13439 previously unnamed MIPS16 patterns.
13440 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
13441 lines. Don't match (plus (const_int 0) ...).
13442 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
13443 Use a define_split to generate the addition.
13444 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
13445 (subsi3_internal): Delete.
13446 (*subsi3_extended): Renamed from subsi3_internal_2.
13447 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
13448 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
13449 using an any_cond template.
13450
13451 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13452
13453 * read-rtl.c (read_rtx): Tidy use of format_ptr.
13454
13455 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
13456
13457 * read-rtl.c (string_obstack): New file-scope variable.
13458 (read_string, read_quoted_string, read_braced_string)
13459 (read_escape): Remove obstack parameter and use string_obstack instead.
13460 (read_rtx): Remove function-local rtl_obstack and initialize
13461 string_obstack instead. Update call to read_string.
13462
13463 2004-08-22 Andrew Pinski <apinski@apple.com>
13464
13465 PR c/15262
13466 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
13467 expression is not constant.
13468 (c_finish_return): Do not go through INDIRECT_REF when looking
13469 for the inner expression of an ADDR_EXPR for warning about.
13470
13471 2004-08-22 Richard Henderson <rth@redhat.com>
13472
13473 PR 17075
13474 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
13475 create new blocks and fall through.
13476 (expand_gimple_basic_block): Update to match.
13477
13478 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
13479
13480 * reload.c (find_reloads_address): Make return value tri-state.
13481 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
13482 (find_reloads): Assume that reloaded addresses match 'o' or
13483 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
13484 returned 1 (not -1). Omit optional reloads for address operands
13485 only if find_reloads_address returned 1 (not -1).
13486
13487 * config/s390/s390.c (legitimize_reload_address): New function.
13488 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
13489 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
13490 legitimize_reload_address.
13491
13492 2004-08-22 Richard Hendersion <rth@redhat.com>
13493
13494 * tree.h (SAVE_EXPR_RESOLVED_P): New.
13495 * gimplify.c (gimplify_save_expr): Use it.
13496 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
13497 on the temporary variable.
13498
13499 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
13500
13501 * fold-const.c (rtl_expr_nonnegative_p): Delete.
13502 * tree.h (rtl_expr_nonnegative_p): Remove.
13503
13504 2004-08-22 Steven Bosscher <stevenb@suse.de>
13505
13506 * config/i386/ppro.md (ppro_complex_insn): Add missing check
13507 for cpu==pentiumpro.
13508
13509 * combine.c (struct reg_stat): Fix comment typo.
13510
13511 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
13512
13513 * c-tree.h (c_sizeof_nowarn): Remove.
13514
13515 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
13516
13517 * c-decl.c (set_array_declarator_type): Rename to
13518 set_array_declarator_inner.
13519 (build_c_parm, build_attrs_declarator, build_function_declarator):
13520 New functions.
13521 (make_pointer_declarator): Call build_attrs_declarator.
13522 * c-tree.h (set_array_declarator_type): Rename to
13523 set_array_declarator_inner.
13524 (build_c_parm, build_attrs_declarator, build_function_declarator):
13525 New prototypes.
13526 * c-parse.in (after_type_declarator,
13527 parm_declarator_starttypename, parm_declarator_nostarttypename,
13528 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
13529 firstparm): Use these functions
13530
13531 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
13532
13533 * c-decl.c (build_array_declarator, set_array_declarator_type,
13534 start_decl, grokdeclarator, grokparms): Change boolean parameters
13535 to type bool.
13536 * c-tree.h (build_array_declarator, set_array_declarator_type,
13537 start_decl): Update prototypes.
13538 * c-decl.c, c-parse.in: All callers changed.
13539
13540 2004-08-21 Mike Stump <mrs@apple.com>
13541
13542 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
13543 (darwin_fix_and_continue): Likewise.
13544 (darwin_fix_and_continue_switch): Likewise.
13545 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
13546 (darwin_fix_and_continue): Likewise.
13547 (darwin_fix_and_continue_switch): Likewise.
13548
13549 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
13550
13551 PR c++/16030
13552 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
13553 Remove, merging into ...
13554 (gen_stdcall_or_fastcall_suffix): New function, returning tree
13555 rather than const char*, and accepting additional parameter.
13556 Don't add suffix to '*'-prefixed symbols or variadic functions.
13557 (i386_pe_encode_section_info): Adjust for call to new function.
13558 Call change_decl_assembler_name.
13559
13560 2004-08-20 Mike Stump <mrs@apple.com>
13561
13562 * config/darwin.c (machopic_indirect_data_reference): Mark
13563 stubs as defined.
13564 * config/386/386.c (darwin_local_data_pic): Add.
13565 (legitimate_constant_p): Reorder so that PLUS handling runs
13566 before darwin_local_data_pic to match the ordering in
13567 legitimate_pic_address_disp_p and so that MINUS runs after
13568 darwin_local_data_pic as otherwise the darwin_local_data_pic
13569 logic can be skipped, which would be very bad.
13570 (legitimate_pic_address_disp_p): Move from from here to
13571 darwin_local_data_pic so it can be reused.
13572
13573 2004-08-21 Alan Modra <amodra@bigpond.net.au>
13574
13575 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
13576 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
13577 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
13578 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
13579 (RS6000_ABI_NAME): Define as "linux".
13580 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
13581 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
13582 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
13583 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
13584 * config/rs6000/rs6000.c (dot_symbols): New global var.
13585 (rs6000_output_function_entry): New function, modified for
13586 !DOT_SYMBOLS..
13587 (print_operand <case 'z'>): ..extracted from here.
13588 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
13589 (rs6000_output_function_epilogue): Likewise.
13590 (rs6000_elf_declare_function_name): Likewise.
13591 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
13592 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
13593 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
13594 * configure: Regenerate.
13595 * config.in: Regenerate.
13596
13597 2004-08-20 Mark Mitchell <mark@codesourcery.com>
13598
13599 * reload.c (find_reloads_address): Fix thinko in previous change.
13600
13601 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
13602 a CONST_INT.
13603
13604 2004-08-20 Jakub Jelinek <jakub@redhat.com>
13605
13606 PR rtl-optimization/17099
13607 * combine.c (force_to_mode): Check if inner_mask has any bits set
13608 outside of GET_MODE (x) instead of op_mode.
13609
13610 2004-08-20 Mark Mitchell <mark@codesourcery.com>
13611
13612 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
13613 fragment.
13614 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
13615 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
13616 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
13617 architecture.
13618 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
13619 configurations.
13620 * config/arm/t-symbian: New file.
13621
13622 2004-08-20 Andrew Pinski <apinski@apple.com>
13623
13624 * regrename.c (kill_value_regno): ANSIfy.
13625
13626 2004-08-20 Dale Johannesen <dalej@apple.com>
13627
13628 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
13629
13630 2004-08-20 Daniel Jacobowitz <dan@debian.org>
13631
13632 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
13633 (kill_value_regno): New function, derived from kill_value.
13634 (kill_value): Update.
13635 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
13636
13637 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
13638
13639 Fix PR tree-optimization/17111
13640 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
13641 of non-value_handles.
13642 (bitmap_set_contains): All constants are in every set.
13643
13644 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
13645
13646 * fold-const.c (round_up, round_down): Use build_int_cst.
13647 Optimize common case.
13648
13649 2004-08-20 Zack Weinberg <zack@codesourcery.com>
13650 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13651
13652 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
13653 one_only_data_section): Rename to som_readonly_data_section,
13654 som_one_only_readonly_data_section and som_one_only_data_section.
13655 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
13656 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
13657 conditional defines.
13658 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
13659 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
13660 string values.
13661 (pa_select_section): Use renamed section functions.
13662 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
13663 SOM_READONLY_DATA_SECTION_FUNCTION,
13664 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
13665 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
13666 Define here ...
13667 * config/pa/som.h: ... not here.
13668 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
13669 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
13670 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
13671 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
13672 (READONLY_DATA_SECTION): Use som_readonly_data_section.
13673
13674 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
13675
13676 * fold-const.c (int_const_binop): Don't generate non-overflowing
13677 size-types specially.
13678 (fold_convert_const): Likewise.
13679
13680 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
13681 clear cache on copied sizetype.
13682
13683 2004-08-20 Ben Elliston <bje@au.ibm.com>
13684
13685 * configure.ac: Don't escape apostrophe in --enable-coverage help.
13686 * configure: Regenerate.
13687
13688 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
13689
13690 PR 5620
13691 * gcc.c (struct stat input_stat): Don't define if
13692 HOST_LACKS_INODE_NUMBERS
13693 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
13694 than stat to determine if temp file is same as input file.
13695 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
13696 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
13697
13698 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
13699
13700 * configure.ac (mips*-*-*): Print an error if not using GAS.
13701 * configure: Regenerated.
13702 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
13703 comments about buggy MIPSpro assemblers.
13704 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
13705 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
13706 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
13707 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
13708 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
13709 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
13710 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
13711 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
13712 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
13713 of more general IRIX 6 definitions.
13714 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
13715 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
13716 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
13717 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
13718 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
13719 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
13720 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
13721 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
13722 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
13723 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
13724 (LINK_SPEC): Move most of definition to iris.h.
13725 (SUBTARGET_LINK_SPEC): New macro.
13726 (IRIX_STARTFILE_SPEC): Fold into...
13727 (STARTFILE_SPEC): ...here.
13728 (IRIX_ENDFILE_SPEC): Fold into...
13729 (ENDFILE_SPEC): ...here.
13730 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
13731 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
13732 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
13733 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
13734 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
13735 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
13736 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
13737 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
13738 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
13739 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
13740 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
13741 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
13742 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
13743 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
13744 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
13745 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
13746 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
13747 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
13748 (TARGET_IRIX6): Define to 1.
13749 (DRIVER_SELF_SPECS): Define.
13750 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
13751 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
13752 (SUBTARGET_LINK_SPEC): New macro.
13753 (IRIX_STARTFILE_SPEC): Fold into...
13754 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
13755 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
13756 (LIB_SPEC, LIBGCC_SPEC): Use them.
13757 (LIB_SPEC): Remove !mabi=* case.
13758 (IRIX_ENDFILE_SPEC): Fold into...
13759 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
13760 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
13761 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
13762 (TARGET_IRIX6): New macro.
13763 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
13764 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
13765 (LABEL_AFTER_LOC): Delete.
13766 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
13767 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
13768 (mips_build_builtin_va_list): Check TARGET_IRIX6.
13769 (override_options): Remove TARGET_SGI_O32_AS-related code.
13770 (irix_output_external_libcall): Make static.
13771 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
13772 LABEL_AFTER_LOC.
13773 (mips_file_start): Tidy guard for ABI sections. Remove use of
13774 ABICALLS_ASM_OP; use .abicalls instead.
13775 (mips_output_aligned_decl_common, mips_declare_object_name)
13776 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
13777 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
13778 .globl foo .text directives.
13779 (irix_asm_named_section_1, irix_asm_named_section)
13780 (irix_section_align_entry, irix_section_align_htab)
13781 (irix_orig_asm_out_file, irix_section_align_entry_eq)
13782 (irix_section_align_entry_hash, irix_asm_output_align)
13783 (irix_file_start, irix_section_align_1, copy_file_data)
13784 (irix_file_end, irix_section_type_flags): Delete.
13785 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
13786 Use standard section syntax. Remove protective "jr $31".
13787 (__gcc_fini): Likewise .gcc_fini.
13788 * config/mips/irix-crtn.asm: Adjust sections accordingly.
13789 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
13790 iris5gas.h.
13791 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
13792 from t-irix-gld.
13793 (EXTRA_MULTILIB_PARTS): Define.
13794 * config/mips/t-iris6: Remove bogus comment.
13795 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
13796 * config/mips/iris5gas.h, config/mips/iris5gld.h,
13797 config/mips/iris6gas.h, config/mips/iris6gld.h,
13798 config/mips/t-iris5-as, config/mips/t-iris5-gas
13799 config/mips/t-irix-gld: Delete.
13800 * config/mips/iris.h: New file.
13801 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
13802
13803 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
13804
13805 * postreload.c (reload_cse_move2add): Allow any condjump, but check
13806 that the implicit set isn't clobbered in the jump insn.
13807
13808 2004-08-19 Mark Mitchell <mark@codesourcery.com>
13809
13810 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
13811 * optabs.c (init_optabs): Don't check it.
13812 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
13813 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
13814
13815 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
13816
13817 * config/s390/s390.md (s390_warn_framesize_string)
13818 (s390_warn_dynamic_string, s390_stack_size_string)
13819 (s390_stack_guard_string): New global string variables.
13820 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
13821 (s390_stack_guard): New global variables.
13822 (override_options): Added checks for the new options.
13823 (s390_emit_prologue): Emit stack check and trap code and perform
13824 compile time stack size checking.
13825
13826 * config/s390/s390.h (TARGET_OPTIONS): Added new options
13827 "warn-framesize", "warn-dynamicstack", "stack-size" and
13828 "stack-guard".
13829
13830 * doc/invoke.texi: Added documentation for the new options.
13831
13832 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
13833
13834 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
13835 to eliminate warning.
13836 (linear_search_fdes): Declare p as unsigned.
13837 (binary_search_mixed_encoding_fdes): Likewise.
13838 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
13839 to eliminate warning.
13840 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
13841 type cast.
13842
13843 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
13844
13845 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
13846 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
13847 instead of one. Check for strictly legitimate address.
13848 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
13849 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
13850
13851 2004-08-19 Eric Christopher <echristo@redhat.com>
13852
13853 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
13854 * langhooks.h (unsave_expr_now): Ditto.
13855 * tree.h (unsave_expr_1): Remove prototype.
13856 (lhd_unsave_expr_now): Rename to unsave_expr_now.
13857 * tree-inline.c (unsave_expr_1): Move here
13858 from tree.c. Make static.
13859 (unsave_expr_now): Rename from lhd_unsave_expr_now.
13860 * tree-sra.c: Fix up for rename.
13861 * tree-ssa-copy.c: Ditto.
13862 * tree-eh.c: Ditto.
13863 * tree.c (unsave_expr_1): Move to tree-inline.c.
13864
13865 2004-08-19 Caroline Tice <ctice@apple.com>
13866
13867 * config/i386/cygming.h (switch_to_section): Fix typo (change
13868 in_unlikely_text_section to in_unlikely_executed_text).
13869
13870 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
13871
13872 * vec.h (VEC_lower_bound): New macro.
13873
13874 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
13875
13876 PR target/16446
13877 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
13878 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
13879 treat each ABI separately. Deal with n32/n64 complex float arguments.
13880 (function_arg): Add associated complex handling here.
13881
13882 2004-08-19 Richard Henderson <rth@redhat.com>
13883
13884 * config/arm/arm.c (arm_gen_load_multiple): Use
13885 adjust_automodify_address. Take base memory and offset instead
13886 of unchanging/struct/scalar bits.
13887 (arm_gen_store_multiple): Likewise.
13888 (arm_gen_movmemqi): Use adjust_automodify_address.
13889 * config/arm/arm-protos.h: Update decls.
13890 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
13891 (store_multiple): Similarly.
13892
13893 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
13894
13895 * regclass.c (globalize_reg): Update call_really_used_regs.
13896
13897 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
13898
13899 * doc/invoke.texi (integer-share-limit): Document.
13900
13901 * tree.h (TYPE_CACHED_VALUES_P): New.
13902 (TYPE_CACHED_VALUES): New.
13903 (TYPE_ORIG_SIZE_TYPE): Adjust.
13904 * tree.def (INTEGER_CST): Update documentation.
13905 * tree.c: Inlcude params.h.
13906 (build_int_cst): Cache small values.
13907 (build_type_copy): Do not copy the value cache.
13908 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
13909 unneeded zeroing.
13910 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
13911 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
13912 cache.
13913 * fold-const.c (force_fit_type): Copy value when setting
13914 overflows.
13915 (int_const_binop): Likewise.
13916 * stor-layout.c: Include params.h
13917 (set_sizetype): Create values cache.
13918 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
13919 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
13920 * params.h (INTEGER_SHARE_LIMIT): New.
13921 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
13922
13923 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
13924
13925 * gimplify.c (gimplify_minimax_expr): Remove.
13926 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
13927
13928 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
13929
13930 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
13931 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
13932
13933 2004-08-19 Mark Mitchell <mark@codesourcery.com>
13934
13935 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
13936
13937 2004-08-18 Andrew Pinski <apinski@apple.com>
13938
13939 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
13940
13941 2004-08-18 Mark Mitchell <mark@codesourcery.com>
13942
13943 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
13944 (__aeabi_ul2f): Likewise.
13945
13946 2004-08-18 Richard Henderson <rth@redhat.com>
13947
13948 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
13949 move to rtl completely.
13950 (struct meminsnbuf, xtensa_emit_block_move): Remove.
13951 (xtensa_find_mode_for_size): Remove.
13952 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
13953 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
13954
13955 2004-08-18 Richard Henderson <rth@redhat.com>
13956
13957 * config/mcore/mcore.c (mode_from_align): Remove DImode.
13958 (block_move_sequence): Rewrite to use adjust_address.
13959 (mcore_expand_block_move): Cleanup logic. Accept only operands.
13960 Return boolean indicating success/failure.
13961 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
13962 * config/mcore/mcore.md (movmemsi): Update to match.
13963
13964 2004-08-18 Mike Stump <mrs@apple.com>
13965
13966 * doc/invoke.texi (-mfix-and-continue): Add support for
13967 fast turn around debugging.
13968 (-ffix-and-continue): Likewise.
13969 (-mindirect-data): Likewise.
13970 (-findirect-data): Likewise.
13971 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
13972 (indirect_data): Likewise.
13973 (machopic_data_defined_p): Likewise.
13974 (machopic_output_indirection): Likewise.
13975 (darwin_encode_section_info): Likewise.
13976 (darwin_fix_and_continue): Likewise.
13977 (darwin_fix_and_continue_switch): Likewise.
13978 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
13979 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
13980 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
13981 (SUBTARGET_OPTIONS): Likewise.
13982 (darwin_fix_and_continue): Likewise.
13983 (darwin_fix_and_continue_switch): Likewise.
13984 (TARGET_FIX_AND_CONTINUE): Likewise.
13985 * config/rs6000.c (rs6000_emit_prologue): Likewise.
13986
13987 2004-08-19 Steven Bosscher <stevenb@suse.de>
13988
13989 * basic-block.h (struct edge_def): Remove crossing_edge.
13990 (EDGE_CROSSING): New define.
13991 (EDGE_ALL_FLAGS): Update.
13992 * bb-reorder.c (find_traces_1_round, better_edge_p,
13993 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
13994 find_jump_block, fix_crossing_conditional_branches,
13995 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
13996 Replace all occurences of crossing_edge with an edge flag check
13997 or set/reset.
13998 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
13999 try_crossjump_bb): Likewise.
14000 * cfglayout.c (fixup_reorder_chain): Likewise.
14001 * cfgrtl.c (force_nonfallthru_and_redirect,
14002 commit_one_edge_insertion): Likewise.
14003
14004 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
14005 * tree-flow.h (compute_dominance_frontiers): Move prototype...
14006 * basic-block.h: ...here.
14007 * tree-cfg.c (compute_dominance_frontiers_1,
14008 compute_dominance_frontiers): Move from here...
14009 * cfganal.c: ...to here. Include timevar.h.
14010
14011 2004-08-18 James E Wilson <wilson@specifixinc.com>
14012
14013 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
14014 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
14015
14016 * config/mips/mips.md (type): Add frdiv.
14017 (divsf3+1, divsf3+2): Change type to frdiv.
14018 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
14019 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
14020
14021 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
14022 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
14023 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
14024 * config/mips/5000.md (r5k_fdiv_single): Likewise.
14025 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
14026 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
14027 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
14028 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
14029 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
14030 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
14031 Likewise.
14032 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
14033
14034 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
14035
14036 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
14037 get regression tester working again.
14038
14039 2004-08-18 Zack Weinberg <zack@codesourcery.com>
14040
14041 * insn-notes.def, reg-notes.def: New files.
14042 * rtl.h: Use them to define enum insn_note and enum reg_note.
14043 * rtl.c: Use them to define note_insn_name and reg_note_name.
14044 * Makefile.in (RTL_BASE_H): Update.
14045
14046 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
14047 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
14048
14049 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
14050
14051 * arm.c (arm_size_rtx_costs): New function.
14052 (arm_override_options): Use it if optimizing for space.
14053
14054 2004-08-18 Richard Henderson <rth@redhat.com>
14055
14056 * emit-rtl.c (gen_const_mem): New.
14057 * rtl.h (gen_const_mem): Declare.
14058 * expr.c (do_tablejump): Use it.
14059 * varasm.c (force_const_mem): Likewise.
14060 * config/darwin.c (machopic_indirect_data_reference): Likewise.
14061 (machopic_legitimize_pic_address): Likewise.
14062 * config/arm/arm.c (legitimize_pic_address): Likewise.
14063 * config/i386/i386.c (legitimize_pic_address): Likewise.
14064 (legitimize_tls_address): Likewise.
14065 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
14066 * config/ia64/ia64.md (load_fptr): Likewise.
14067 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
14068 * config/pa/pa.c (legitimize_pic_address): Likewise.
14069 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
14070 (rs6000_emit_move): Likewise.
14071 * config/s390/s390.c (legitimize_pic_address): Likewise.
14072 (legitimize_tls_address): Likewise.
14073 * config/s390/s390.md (casesi): Likewise.
14074 * config/sh/sh.c (sh_reorg): Likewise.
14075 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
14076 * config/v850/v850.md (casesi): Likewise.
14077
14078 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
14079 * config/sh/sh.c (prepare_move_operands): Remove incorrect
14080 use of MEM_READONLY_P.
14081
14082 2004-08-18 Steven Bosscher <stevenb@suse.de>
14083
14084 * Makefile.in (OBJS-common): Add postreload-gcse.c.
14085 Add new postreload-gcse.o.
14086 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
14087 (lookup_as_function, insert, rehash_using_reg, use_related_value,
14088 equiv_constant): Use SAFE_HASH instead of safe_hash.
14089 (exp_equiv_p): Export. Add for_gcse argument when comparing
14090 for GCSE.
14091 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
14092 find_comparison_args, fold_rtx, cse_insn): Update callers.
14093 (hash_rtx): New function derived from old canon_hash and bits
14094 from gcse.c hash_expr_1.
14095 (canon_hash_string): Rename to hash_rtx_string.
14096 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
14097 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
14098 (cselib_lookup): Update this caller.
14099 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
14100 Make static.
14101 (hash_expr): Call hash_rtx.
14102 (ldst_entry): Likewise.
14103 (expr_equiv_p): Call exp_equiv_p.
14104 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
14105 reg_used_on_edge, reg_set_between_after_reload_p,
14106 reg_used_between_after_reload_p, get_avail_load_store_reg,
14107 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
14108 get_bb_avail_insn, hash_scan_set_after_reload,
14109 compute_hash_table_after_reload,
14110 eliminate_partially_redundant_loads, gcse_after_reload,
14111 get_bb_avail_insn, gcse_after_reload_main): Remove.
14112 * postreload-gcse.c: New file, reincarnating most of the above.
14113 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
14114 (gcse_after_reload_main): Update prototype.
14115 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
14116 * passes.c (rest_of_handle_gcse2): Use it.
14117
14118 2004-08-18 Diego Novillo <dnovillo@redhat.com>
14119
14120 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
14121 (pass_loop_done): Likewise.
14122
14123 2004-08-18 Andrew Pinski <apinski@apple.com>
14124
14125 * config/rs6000/darwin.md: Delete the altivec patterns which are
14126 handled differently now.
14127 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
14128 (macho_correct_pic_di): Likewise.
14129 (call_indirect_nonlocal_darwin64): Likewise.
14130 Delete the save world/saveFP/saveVec patterns.
14131
14132 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
14133 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14134 * config/rs6000/rs6000.md: Include darwin.md.
14135 (builtin_setjmp_receiver): Add DImode case.
14136 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
14137 Darwin bits.
14138
14139 2004-08-18 Matt Austern <austern@apple.com>
14140
14141 Dead code stripping
14142 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
14143 * darwin.c (darwin_file_end): Mark file as potentially strippable.
14144
14145 2004-08-18 Richard Henderson <rth@redhat.com>
14146
14147 * alias.c (readonly_fields_p): Remove.
14148 (objects_must_conflict_p): Don't call it.
14149 * tree.h (readonly_fields_p): Remove.
14150 * langhooks.h (struct lang_hooks): Remove honor_readonly.
14151 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
14152
14153 2004-08-18 Diego Novillo <dnovillo@redhat.com>
14154
14155 * tree-dfa.c (add_referenced_var): Only global variables are
14156 call-clobbered.
14157 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
14158 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
14159 all pointers dereferenced if the statement dereferences them.
14160 (create_name_tags): Do not create memory tags for pointers
14161 that have PT_ANYTHING set.
14162 Also check if PT_VARS is not empty before creating a name tag.
14163 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
14164 variables that share the same alias set with a pointer that
14165 may point anywhere.
14166 (add_may_alias): Add FIXME comment to remove clobbering
14167 aliased variables and tags.
14168 (replace_may_alias): Likewise.
14169 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
14170 (merge_pointed_to_info): If the original variable has not
14171 points-to information, call set_pt_anything.
14172 (add_pointed_to_var): Do not prevent adding a pointed-to
14173 variable if the pointers is PT_ANYTHING.
14174 If the variable is a global, set PT_GLOBAL_MEM.
14175 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
14176 pointer type only come in PTR+OFFSET flavours.
14177 Always call merge_pointed_to_info on PHI arguments that are
14178 SSA_NAMEs.
14179 (get_nmt_for): Mark call-clobbered tags whose pointer points
14180 to global memory.
14181 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
14182 values.
14183 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
14184 FLAGS.
14185 (add_stmt_operand): Abort if the caller tried to add a killing
14186 definition for a memory tag.
14187 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
14188 unnecessary checks.
14189
14190 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
14191
14192 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
14193 from call_used_regs. Update call_really_used_regs.
14194 (CALL_REALLY_USED_REGISTERS): Define.
14195 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
14196 Replace call_used_regs with call_really_used_regs.
14197 (calc_live_regs, sh_media_register_for_return): Likewise.
14198 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
14199 * sh.md (return_media): Likewise.
14200
14201 2004-08-18 Andrew Pinski <apinski@apple.com>
14202
14203 * config/darwin.c (machopic_legitimize_pic_address): Only set
14204 MEM_READONLY_P in the non TARGET_TOC case.
14205
14206 2004-08-18 Zack Weinberg <zack@codesourcery.com>
14207
14208 * rtl.def (NIL): Delete.
14209 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
14210 Tighten the syntax a little.
14211
14212 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
14213 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
14214 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
14215 * config/i386/predicates.md, config/m32r/m32r.h
14216 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
14217 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
14218 * config/sparc/sparc.h, doc/tm.texi:
14219 Replace all occurrences of NIL with UNKNOWN.
14220
14221 2004-08-18 Zack Weinberg <zack@codesourcery.com>
14222
14223 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
14224 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
14225 sequence inline. Move drop_through_label code into this
14226 block, being the only place it is used. Adjust comments.
14227
14228 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
14229
14230 * config/rs6000/altivec.md: Add new patterns for calls to
14231 save_world/rest_world functions.
14232
14233 * config/rs6000/rs6000-protos.h: (save_world_operation,
14234 restore_world_operation) new declarations.
14235
14236 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
14237 field added.
14238 (rs6000_stack_info): Set world_save_p field.
14239 (save_world_operation): New function.
14240 (restore_world_operation): New function.
14241 (compute_save_world_info): New function.
14242 (rs6000_stack_info): Call compute_save_world_info.
14243 (rs6000_emit_prologue): Check for world_save_p and generate
14244 pattern to call save_world for saving all non-volatile and
14245 special registers.
14246 (rs6000_emit_epilogue): Check for world_save_p and generate
14247 pattern to call rest_world to restore saved registers.
14248
14249 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
14250 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
14251 (rs6000_reg_names): New entries added for save_world_operation and
14252 restore_world_operation.
14253
14254 2004-08-18 Caroline Tice <ctice@apple.com>
14255
14256 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
14257 "-freorder-blocks-and-partition" to the flags used in second
14258 stage of profiledbootstrap.
14259 * bb-reorder.c (push_to_next_round_p): Add new variable,
14260 next_round_is_last; set and use variable to make sure, when
14261 partitioning, that the last trace construction round consists
14262 of all (and only) cold basic blocks.
14263 (rotate_loop): Don't copy blocks that end in a section
14264 crossing jump.
14265 (copy_bb): Correctly initialize "partition" of duplicated bb.
14266 (add_unlikely_executed_notes): Add a comment.
14267 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
14268 to make sure, if function contains hot blocks, that the
14269 successors of ENTRY_BLOCK_PTR are hot; also, only look for
14270 crossing edges if the architecture supports named sections.
14271 (mark_bb_for_unlikely_executed_section): Modify to always
14272 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
14273 the basic block note insn.
14274 (fix_crossing_unconditional_branches): Remove extra space.
14275 (fix_edges_for_rarely_executed_code): Modify to only do
14276 partitioning work if the architecture supports named sections.
14277 (reorder_basic_blocks): Modify to only add
14278 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
14279 supports named sections.
14280 * c-common.c (handle_section_attribute): Initialize new global
14281 variable, user_defined_section_attribute, to true if user has
14282 specified one.
14283 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
14284 forward edges that cross section boundaries.
14285 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
14286 partitioning information if the architecture supports named
14287 sections.
14288 * cfgrtl.c (target.h): Add statement to include this.
14289 (rtl_split_block): Make sure newly created bb gets correct
14290 partition.
14291 (try_redirect_by_replacing_jump): Make sure redirection isn't
14292 attempting to cross section boundaries.
14293 (force_nonfallthru_and_redirect): Only do partition fix up if
14294 architecture supports named sections.
14295 (rtl_split_edge): Make sure newly created bb ends up in
14296 correct partition.
14297 (commit_one_edge_insertion): Remove code that incorrectly
14298 updated basic block partition; Make sure partition fix up only
14299 happens if architecture supports named sections and it's not
14300 already done.
14301 (rtl_verify_flow_info_1): Fix if-condition on test/error
14302 condition that fallthru edges are not allowed to cross section
14303 boundaries.
14304 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
14305 * final.c (final_scan_insn): Remove redundant test from if-statement;
14306 change calls to text_section into calls to function_section; add code
14307 to only to partitioning fix up if architecture supports named
14308 sections.
14309 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
14310 partition.
14311 (if_convert): Add targetm.have_named_sections to test.
14312 * output.h (unlikely_section_label): Extern declaration for new global
14313 variable.
14314 (unlikely_text_section_name): Likewise.
14315 * opts.c (decode_options): If both partitioning and DWARF debugging
14316 are turned on, issue a warning that this doesn't work, and change
14317 partitiong to basic block reordering (without hot/cold partitions).
14318 * passes.c (rest_of_handle_final): Re-set new global variable,
14319 user_defined_section_attribute, to false.
14320 (rest_of_compilation): Change options for calling partitioning
14321 function: Don't call if the user defined the section attribute, and
14322 don't call if DECL_ONE_ONLY is true for the current function.
14323 * predict.c (choose_function_section): Return immediately if we
14324 are doing hot/cold partitioning (i.e. let the basic block partitioning
14325 determine where the function belongs).
14326 * reg-stack.c (emit_swap_insn): Add condition to step over
14327 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
14328 * toplev.c (user_defined_section_attribute): New global variable.
14329 * toplev.h (user_defined_section_attribute): Extern declaration
14330 for new global variable.
14331 * varasm.c (unlikely_section_label): New global variable.
14332 (unlikely_text_section_name): New global variable.
14333 (unlikely_text_section): Add code to initialize
14334 unlikely_text_section_name if necessary; modify to use
14335 unlikely_text_section_name and unlikely_section_label; also to use
14336 named_section properly.
14337 (in_unlikely_text_section): Modify to work correctly with
14338 named_section and to use unlikely_text_section_name.
14339 (named_section): Add code to work properly with cold section.
14340 (function_section): Clean up if-statement.
14341 * config/darwin.c (darwin_asm_named_section): Return to original
14342 code, removing use of SECTION_FORMAT_STRING.
14343 * config/arm/pe.h (switch_to_section): Add case for
14344 in_unlikely_executed_text to switch statement.
14345 * config/i386/cygming.h (switch_to_section): Likewise.
14346 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
14347 (SECTION_FORMAT_STRING): Likewise.
14348 * config/mcore/mcore.h (switch_to_section): Likewise.
14349 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
14350 (SECTION_FORMAT_STRING): Remove.
14351
14352 2004-08-18 Roger Sayle <roger@eyesopen.com>
14353
14354 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
14355 -ffixed-reg safe, by preserving the meanings of zero and one.
14356 (CALL_USED_REGISTERS): Likewise.
14357 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
14358
14359 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
14360
14361 * config/sh/sh.c (split_branches): Check the result of
14362 next_active_insn.
14363 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
14364 Call rtl_register_cfg_hooks.
14365
14366 2004-08-18 Richard Henderson <rth@redhat.com>
14367
14368 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
14369 * alias.c (true_dependence): Update to match new semantics.
14370 (canon_true_dependence, write_dependence_p): Likewise.
14371 (anti_dependence, output_dependence): Update write_dependence_p args.
14372 (unchanging_anti_dependence): Remove.
14373 * calls.c (purge_mem_unchanging_flag): Remove.
14374 (fixup_tail_calls): Don't call it.
14375 (expand_call): Don't add unchanging memory to function usage.
14376 * expr.c (emit_block_move_via_libcall): Likewise.
14377 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
14378 (get_subtarget): Don't use RTX_UNCHANGING_P.
14379 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
14380 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
14381 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
14382 * cse.c (insert): Don't use RTX_UNCHANGING_P.
14383 (cse_insn, canon_hash): Use MEM_READONLY_P.
14384 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
14385 instead of RTX_UNCHANGING_P.
14386 * explow.c (maybe_set_unchanging): Remove.
14387 * expr.h (maybe_set_unchanging): Remove.
14388 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
14389 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
14390 (assign_parm_setup_reg, expand_function_start): Likewise.
14391 * integrate.c (copy_rtx_and_substitute): Likewise.
14392 * ra-rewrite.c (emit_colors): Likewise.
14393 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
14394 (fixup_match_1): Likewise.
14395 * reload1.c (reload, alter_reg): Likewise.
14396 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
14397 not RTX_UNCHANGING_P.
14398 (equiv_init_varies_p): Likewise.
14399 * loop-invariant.c (check_maybe_invariant): Likewise.
14400 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
14401 * loop.c (note_addr_stored): Likewise.
14402 (prescan_loop): Likewise. Don't check function usage for clobbered
14403 unchanging memory.
14404 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
14405 not RTX_UNCHANGING_P.
14406 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
14407 * varasm.c (force_const_mem): Likewise.
14408 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
14409 * web.c (entry_register): Likewise.
14410 * tree-gimple.h (get_base_address): Move decl ...
14411 * tree.h: ... here.
14412 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
14413
14414 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
14415 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
14416 (alpha_set_memflags): Update to match.
14417
14418 * config/darwin.c (machopic_indirect_data_reference): Set
14419 MEM_READONLY_P instead of RTX_UNCHANGING_P.
14420 (machopic_indirect_call_target): Likewise.
14421 (machopic_legitimize_pic_address): Likewise.
14422 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
14423 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
14424 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
14425 * config/frv/frv.md (symGOT2reg): Likewise.
14426 * config/i386/i386.c (legitimize_pic_address,
14427 legitimize_tls_address, ix86_split_to_parts): Likewise.
14428 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
14429 * config/ia64/ia64.md (load_fptr): Likewise.
14430 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
14431 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
14432 * config/mcore/mcore.c (block_move_sequence): Likewise.
14433 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
14434 * config/pa/pa.c (legitimize_pic_address): Likewise.
14435 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
14436 (rs6000_emit_move): Likewise.
14437 * config/s390/s390.c (legitimize_pic_address): Likewise.
14438 (legitimize_tls_address): Likewise.
14439 * config/s390/s390.md (casesi): Likewise.
14440 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
14441 * config/sh/sh.md (symGOT2reg): Likewise.
14442 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
14443 * config/v850/v850.md (casesi): Likewise.
14444
14445 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
14446 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
14447 * config/mips/mips.c (mips_restore_gp): Likewise.
14448 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
14449 * config/sh/sh.c (sh_reorg): Likewise.
14450
14451 2004-08-18 Richard Henderson <rth@redhat.com>
14452
14453 * tree.h (struct tree_decl): Add gimple_formal_temp.
14454 (DECL_GIMPLE_FORMAL_TEMP_P): New.
14455 * gimplify.c (pop_gimplify_context): Clear it.
14456 (lookup_tmp_var): Set it, if is_formal.
14457 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
14458 Use is_gimple_val for VECTOR. Simplify return value.
14459 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
14460 (gimplify_expr): Likewise.
14461 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
14462 is_gimple_tmp_rhs for clarity. Update all callers.
14463 (is_gimple_reg_rhs): Simplify logic.
14464 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
14465 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
14466 (is_gimple_formal_tmp_reg): Similarly.
14467 * tree-gimple.h: Update decls.
14468 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
14469 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
14470 * tree-ssa-live.c (var_union, type_var_init): Likewise.
14471
14472 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
14473
14474 * c4x.c (legitimize_operands): Remove calls to
14475 preserve_subexpressions_p.
14476
14477 2004-08-18 David Edelsohn <edelsohn@gnu.org>
14478
14479 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
14480 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
14481
14482 2004-08-18 Ziemowit Laski <zlaski@apple.com>
14483
14484 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
14485 Objective-C++ extensions.
14486 * gengtype.c (get_file_basename): Match entire subdirectory name
14487 ('cp', 'objc', 'objcp') rather than just its suffix.
14488 (get_base_file_bitmap): Allow for files to belong to more than one
14489 language.
14490 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
14491 used by more than one front-end.
14492
14493 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
14494
14495 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
14496 avoid use of preserve_subexpressions_p.
14497
14498 2004-08-17 Richard Henderson <rth@redhat.com>
14499
14500 PR 17051
14501 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
14502
14503 2004-08-17 DJ Delorie <dj@redhat.com>
14504
14505 * doc/extend.texi: Document new xstormy16 attribute.
14506
14507 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
14508 (xstormy16_splittable_below100_or_register): New.
14509 (combine_bnp): New.
14510 (xstormy16_reorg): New.
14511 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14512
14513 * config/stormy16/stormy16.md (movqi_internal): Make name public.
14514 (movhi_internal): Likewise.
14515 (cbhranchhi): Likewise.
14516 (cbhranchhi_neg): Likewise.
14517 (andhi3): Only allow splittable below100 operands.
14518 (iorhi3): Likewise.
14519 (peephole2): New and/zero_extend->and peephole.
14520 (peephole2): New load/ior/save->set1 peephole.
14521 (peephole2): New load/and/save->clr1 peephole.
14522 (bclrx, bclrx2, bclr7, bclr15): New.
14523 (bsetx, bsetx2, bset7, bset15): New.
14524
14525 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
14526 liberal about acceptable 'B' masks.
14527
14528 * config/stormy16/stormy16-protos.h
14529 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
14530 xstormy16_below100_operand, xstormy16_below100_or_register,
14531 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
14532 (PREDICATE_CODES): Add new predicates.
14533
14534 * config/stormy16/stormy16.c
14535 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
14536 xstormy16_below100_operand, xstormy16_below100_or_register,
14537 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
14538 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
14539 (xstormy16_legitimate_address_p): Allow below100 symbols.
14540 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
14541 (xstormy16_expand_move): Leave below100 operands as-is.
14542 (xstormy16_encode_section_info): Encode below100 symbols.
14543 (xstormy16_strip_name_encoding): New.
14544 (xstormy16_print_operand): Print 'b' as shift mask.
14545 (xstormy16_attribute_table): Add below100 attributes.
14546 (xstormy16_handle_below100_attribute): New.
14547
14548 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
14549 (XSTORMY16_SECTION_FUNCTION): New.
14550 (EXTRA_SECTION_FUNCTIONS): Define using the above.
14551 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
14552 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
14553 (ASM_OUTPUT_LABELREF): Define.
14554
14555 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
14556 (movhi_internal): Add below100 support.
14557 (andhi3): Add below100 support.
14558 (iorhi3): Add below100 support.
14559 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
14560
14561 2004-08-17 James E Wilson <wilson@specifixinc.com>
14562
14563 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
14564 of VOIDmode for comparison code mode.
14565 * config/mips/mips.md: For conditional move patterns, use mode of
14566 first compare operand for comparison mode, instead of VOIDmode.
14567
14568 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
14569 normal and -ffast-math code.
14570
14571 2004-08-17 Mark Mitchell <mark@codesourcery.com>
14572
14573 PR c++/15871
14574 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
14575
14576 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
14577
14578 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
14579
14580 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
14581
14582 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
14583 for non Darwin targets.
14584 (*call_value_nonlocal_darwin64): Likewise.
14585
14586 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
14587
14588 * config/rs6000/rs6000.c (rs6000_function_value): Check for
14589 altivec mode for altivec return register.
14590
14591 2004-08-17 David Edelsohn <edelsohn@gnu.org>
14592
14593 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
14594 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14595 * config/rs6000/rs6000.md: Include darwin.md.
14596 (builtin_setjmp_receiver): Add DImode case.
14597 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
14598 Darwin bits.
14599
14600 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
14601
14602 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
14603 trees.
14604 * tree-vectorizer.h: New File: Same.
14605 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
14606 * common.opt (ftree-vectorize): New flag to enable vectorization.
14607 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
14608 vectorization pass.
14609 * tree-data-ref.h (init_data_ref): Additional argument.
14610 (array_base_name_differ_p): Moved to tree-data-ref.c.
14611 * tree-data-ref.c (array_base_name_differ_p): Revised.
14612 (initialize_data_dependence_relation): Call array_base_name_differ_p
14613 with an extra argument.
14614 (analyze_all_data_dependences): Same.
14615 (init_data_ref): Additional argument is_read to set DR_IS_READ.
14616 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
14617 file.
14618 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
14619 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
14620 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
14621 vectorization pass.
14622 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
14623 (tree_ssa_loop_done): Call scev_finalize.
14624 (tree_vectorize): Define the new vectorization pass.
14625 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
14626 size of the vector they support (until support for multiple vector
14627 sizes is added to the vectorizer).
14628 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
14629 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
14630 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
14631 documentation.
14632
14633 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
14634
14635 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
14636 usage.
14637 (generate_protocol_list, handle_impent): Likewise.
14638
14639 2004-08-17 Roger Sayle <roger@eyesopen.com>
14640
14641 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
14642 ensure that call_used_regs is a superset of both fixed_regs and
14643 call_really_used_regs.
14644
14645 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
14646
14647 PR target/17019
14648 * arm.md (addsi3_cbranch_scratch): Correct case labels.
14649
14650 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
14651
14652 PR middle-end/17036
14653 * fold-const.c (fold): Check for integer operand when
14654 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
14655 Pinski <pinskia@physics.uc.edu>.
14656
14657 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
14658
14659 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
14660 No need to check if in a cross configuration.
14661 * configure: Regenerate.
14662
14663 * calls.c (precompute_register_parameters):
14664 Inline preserve_subexpressions_p ().
14665 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
14666 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
14667 Likewise.
14668 * expr.c (get_subtarget): Likewise.
14669 * rtl.h (preserve_subexpressions_p): Remove.
14670 * stmt.c (preserve_subexpressions_p): Remove.
14671
14672 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
14673 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
14674 Abort on gimplified cases.
14675
14676 2004-08-16 James E Wilson <wilson@specifixinc.com>
14677
14678 * tree.h (VECTOR_FLOAT_TYPE_P): New.
14679 (FLOAT_TYPE_P): Use it.
14680 * c-typeck.c (build_binary_op): After convert calls, check for
14681 check for ERROR_MARK operands.
14682
14683 2004-08-16 Zack Weinberg <zack@codesourcery.com>
14684
14685 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
14686 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
14687 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
14688 (genobjs static pattern rule): Remove %.c dependency.
14689 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
14690 Rename rules; delete commands; fix dependencies.
14691 (mostlyclean): Do not delete temporary source copies.
14692 * configure.ac: Delete all references to BUILD_PREFIX and
14693 BUILD_PREFIX_1.
14694 * configure: Regenerate.
14695
14696 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
14697 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
14698 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
14699 with #ifndef GENERATOR_FILE so that nothing from those headers
14700 is used.
14701
14702 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
14703
14704 2004-08-16 Adam Nemet <anemet@lnxw.com>
14705
14706 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
14707
14708 2004-08-16 Andrew Pinski <apinski@apple.com>
14709
14710 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
14711 extraneous semicolon.
14712
14713 2004-08-16 Devang Patel <dpatel@apple.com>
14714
14715 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
14716 * print-tree.c (print_node): Print DECL_PRESERVE_P.
14717 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
14718 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
14719 * target.h (struct gcc_target): New member, mark_decl_preserved.
14720 * hooks.c (hook_void_charptr): Rename to ...
14721 (hook_void_constcharptr): ... new name.
14722 * hooks.h (hook_void_charptr): Rename to ..
14723 (hook_void_constcharptr): ... new name.
14724 * tree.h (DECL_PRESERVE_P): New #define.
14725 (struct tree_decl): New member, preserve_flag.
14726 * varasm.c (assemble_start_function): Mark decl preserved.
14727 (assemble_variable): Same.
14728 * darwin.c (darwin_mark_decl_preserved): New function.
14729 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
14730 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
14731 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
14732
14733 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
14734
14735 * c-decl.c (grokdeclarator): Allow for function definition where
14736 innermost declarator has attributes.
14737
14738 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
14739
14740 * except.c (get_exception_filter, build_post_landing_pads,
14741 dw2_build_landing_pads): Use target-specific mode for 'filter'.
14742 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
14743 * target.h (eh_return_filter_mode): New field added.
14744 * targhooks.c (default_eh_return_filter_mode): Defined.
14745 * targhooks.h (default_eh_return_filter_mode): Declared.
14746 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
14747
14748 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
14749
14750 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
14751 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
14752 * configure: Regenerate.
14753
14754 2004-08-16 Stan Shebs <shebs@apple.com>
14755
14756 Basic support for 64-bit Darwin.
14757 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14758 (machopic_legitimize_pic_address): Similarly, plus use Pmode
14759 instead of SImode.
14760 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
14761 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
14762 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
14763 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
14764 (PROCESSOR_DEFAULT64): Define.
14765 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
14766 Darwin.
14767 * config/rs6000/rs6000.md: Include darwin.md.
14768 (builtin_setjmp_receiver): Add DImode case.
14769 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
14770 Darwin.
14771 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
14772 (rs6000_emit_move): Add DImode case to Darwin bits.
14773 (machopic_output_stub): Use .quad if 64-bit.
14774 * invoke.texi: Document -m32 and -m64.
14775
14776 2004-08-16 Janis Johnson <janis187@us.ibm.com>
14777
14778 * doc/extend.texi (AltiVec builtins): Document additional differences
14779 from the Motorola AltiVec PIM.
14780
14781 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14782
14783 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
14784 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
14785 (struct tree_common): Update public_flag documentation.
14786
14787 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
14788
14789 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14790 Check for artificial variables, not is_gimple_tmp_var.
14791 * tree-ssa-live.c (var_union): Likewise.
14792
14793 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14794
14795 * calls.c (load_register_parameters): Remove spurious FIXME token.
14796
14797 2004-08-15 Ziemowit Laski <zlaski@apple.com>
14798
14799 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
14800 (c-lang.o): Depend on c-objc-common.h.
14801 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
14802 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
14803 * c-lang.c: Include c-objc-common.h.
14804 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
14805 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
14806 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
14807 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
14808 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
14809 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
14810 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
14811 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
14812 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
14813 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
14814 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
14815 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
14816 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
14817 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
14818 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
14819 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
14820 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
14821 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
14822 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
14823 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
14824 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
14825 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
14826 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
14827 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
14828 Move to c-objc-common.h.
14829 * c-objc-common.c: Include c-objc-common.h.
14830 * c-objc-common.h: New file.
14831
14832 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
14833 Andrew Pinski <pinskia@physics.uc.edu>
14834
14835 PR target/14931
14836 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
14837 style.
14838
14839 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
14840
14841 * tree.h (build_int_cst): New.
14842 (build_int_2): Remove.
14843 * tree.c (build_int_2): Remove.
14844 (build_int_cst): New.
14845 (make_vector_type, build_common_tree_nodes,
14846 build_common_tree_nodes_2): Use build_int_cst.
14847 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
14848 expand_builtin_strpbrk, expand_builtin_fputs,
14849 build_string_literal, expand_builtin_printf,
14850 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
14851 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
14852 fold_builtin_isdigit, simplify_builtin_strstr,
14853 simplify_builtin_strpbrk, fold_builtin_fputs,
14854 simplify_builtin_sprintf): Use build_int_cst.
14855 * c-common.c (start_fname_decls, fix_string_type,
14856 c_common_nodes_and_builtins, c_init_attributes,
14857 shorten_compare): Likewise.
14858 * c-decl.c (complete_array_type,
14859 check_bitfield_type_and_width): Likewise.
14860 * c-lex.c (interpret_integer, lex_charconst): Likewise.
14861 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
14862 * c-pretty-print.c (pp_c_integer_constant): Likewise.
14863 * c-typeck.c (really_start_incremental_init, push_init_level,
14864 set_nonincremental_init_from_string): Likewise.
14865 * calls.c (load_register_parameters): Likewise.
14866 * convert.c (convert_to_pointer): Likewise.
14867 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
14868 build_fn_info_type, build_ctr_info_value, build_gcov_info):
14869 Likewise.
14870 * except.c (init_eh, assign_filter_values, assign_filter_values):
14871 Likewise.
14872 * expmed.c (store_fixed_bit_field, extract_bit_field,
14873 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
14874 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
14875 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
14876 * expr.c (convert_move, emit_group_load, emit_group_store,
14877 expand_assignment, store_constructor, store_field,
14878 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
14879 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
14880 invert_truthvalue, optimize_bit_field_compare,
14881 decode_field_reference, all_ones_mask_p, constant_boolean_node,
14882 fold_div_compare, fold, fold_read_from_constant_string,
14883 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
14884 * function.c (assign_parm_setup_block): Likewise.
14885 * stmt.c (shift_return_value, expand_end_case_type,
14886 estimate_case_costs): Likewise.
14887 * stor-layout.c (layout_type, initialize_sizetypes,
14888 set_min_and_max_values_for_integral_type): Likewise.
14889 * tree-chrec.c (chrec_fold_multiply_poly_poly,
14890 reset_evolution_in_loop): Likewise.
14891 * tree-chrec.h (build_polynomial_chrec): Likewise.
14892 * tree-complex.c (build_replicated_const): Likewise.
14893 * tree-eh.c (honor_protect_cleanup_actions,
14894 lower_try_finally_onedest, lower_try_finally_copy,
14895 lower_try_finally_switch): Likewise.
14896 * tree-mudflap.c (mf_build_string, mx_register_decls,
14897 mudflap_register_call, mudflap_enqueue_constant): Likewise.
14898 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
14899 * tree-pretty-print.c (dump_generic_node): Likewise.
14900 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
14901 Likewise.
14902 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
14903 * tree-ssa-loop-niter.c (number_of_iterations_cond,
14904 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
14905 Likewise.
14906
14907 * config/alpha/alpha.c (alpha_initialize_trampoline,
14908 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
14909 * config/arm/arm.c (arm_get_cookie_size): Likewise.
14910 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
14911 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
14912 * config/i860/i860.c (i860_va_start): Likewise.
14913 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14914 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
14915 mips_gimplify_va_arg_expr): Likewise.
14916 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14917 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
14918 add_compiler_branch_island): Likewise.
14919 * config/s390/s390.c (s390_va_start): Likewise.
14920 * config/sh/sh.c (sh_va_start): Likewise.
14921 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
14922 Likewise.
14923 * config/xtensa/xtensa.c (xtensa_va_start,
14924 xtensa_gimplify_va_arg_expr): Likewise.
14925
14926 * objc/objc-act.c (build_objc_string_object,
14927 build_objc_symtab_template, init_def_list, init_objc_symtab,
14928 init_module_descriptor, generate_static_references,
14929 build_selector_translation_table, get_proto_encoding,
14930 build_typed_selector_reference, build_selector_reference,
14931 build_next_objc_exception_stuff,
14932 build_method_prototype_list_template, generate_descriptor_table,
14933 generate_protocols, build_protocol_initializer,
14934 build_ivar_list_template, build_method_list_template,
14935 build_ivar_list_initializer, generate_ivars_list,
14936 generate_dispatch_table, generate_protocol_list,
14937 build_category_initializer, build_shared_structure_initializer,
14938 generate_shared_structures, handle_impent,
14939 generate_objc_image_info): Use build_int_cst.
14940
14941 2004-08-15 Ben Elliston <bje@au.ibm.com>
14942
14943 * vec.h: Comment improvements.
14944
14945 2004-08-14 Roger Sayle <roger@eyesopen.com>
14946
14947 * c-common.c (shorten_compare, pointer_int_sum,
14948 c_common_truthvalue_conversion, boolean_increment): Replace calls
14949 to build with calls to buildN.
14950 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
14951 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
14952 gimplify_switch_stmt): Likewise.
14953 * c-typeck.c (default_function_array_conversion,
14954 build_component_ref, build_array_ref, build_function_call,
14955 pointer_diff, build_unary_op, build_conditional_expr,
14956 build_compound_expr, build_modify_expr, c_finish_goto_label,
14957 c_finish_goto_ptr, c_finish_return, c_finish_loop,
14958 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
14959 build_binary_op): Likewise.
14960
14961 2004-08-15 Steven Bosscher <stevenb@suse.de>
14962
14963 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
14964
14965 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14966
14967 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
14968 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
14969 * fixinc/fixincl.x: Rebuilt.
14970
14971 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
14972
14973 * config/mips/mips-protos.h (mips_symbolic_constant_p)
14974 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
14975 (mips_small_data_pattern_p): Declare.
14976 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
14977 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
14978 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
14979 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
14980 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
14981 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
14982 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
14983 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
14984 (pc_or_label_operand, call_insn_operand, move_operand)
14985 (consttable_operand, symbolic_operand, general_symbolic_operand)
14986 (global_got_operand, local_got_operand, stack_operand)
14987 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
14988 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
14989 (mips_small_data_pattern_p): Replace previous small_data_pattern
14990 predicate. Turn into a bool () (rtx) function.
14991 * config/mips/predicates.md: New file.
14992 * config/mips/mips.md: Include it. Use the target-independent
14993 comparison_operator instead of cmp_op. Rename trap_cmp_op to
14994 trap_comparison_operator and equality_op to equality_operator.
14995 Replace uses of small_int with the equivalent const_arith_operand.
14996 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
14997 const_float_1_operand to const_1_operand. Rename fcc_register_operand
14998 to fcc_reload_operand.
14999 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
15000
15001 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15002
15003 PR libstdc++/17005 partial fix.
15004 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
15005 except when generating ANSI/C89 code.
15006
15007 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
15008
15009 * c-common.c (shorten_compare): Use force_fit_type directly.
15010
15011 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
15012 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
15013 Dave Korn <dk@artimi.com>
15014
15015 * doc/install.texi (Building): Avoid duplicate reference to GNU
15016 make requirement.
15017 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
15018
15019 2004-08-14 Richard Henderson <rth@redhat.com>
15020
15021 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
15022 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
15023
15024 2004-08-13 Richard Henderson <rth@redhat.com>
15025
15026 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
15027 for constant_call_address_operand.
15028 (call_value_pop_1, call_value_1): Likewise.
15029 (sibcall_value_1, call_value_1_rex64): Likewise.
15030
15031 2004-08-13 James E Wilson <wilson@specifixinc.com>
15032
15033 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
15034 Correct mode from SFmode to DFmode.
15035
15036 2004-08-13 Ziemowit Laski <zlaski@apple.com>
15037
15038 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
15039 __cstring_object and __image_info sections with the no_dead_strip
15040 attribute.
15041
15042 2004-08-13 Roger Sayle <roger@eyesopen.com>
15043 David Billinghurst <David.Billinghurst@riotinto.com>
15044
15045 PR libgfortran/15930
15046 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
15047 * fixinc/fixincl.x: Regenerate.
15048 * fixinc/tests/base/internal/math_core.h: New file.
15049
15050 2004-08-13 Richard Henderson <rth@redhat.com>
15051
15052 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
15053 (dbxout_function_end): Remove ifdefs for it.
15054 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
15055
15056 2004-08-13 Richard Henderson <rth@redhat.com>
15057
15058 * Makefile.in (insn-preds.o): Depend on TREE_H.
15059 * genpreds.c (write_insn_preds_c): Include tree.h.
15060 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
15061 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
15062 const48_operand, and_operand, or_operand, mode_width_operand,
15063 mode_mask_operand, mul8_operand, const0_operand,
15064 hard_fp_register_operand, hard_int_register_operand,
15065 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
15066 samegp_function_operand, direct_call_operand, small_symbolic_operand,
15067 global_symbolic_operand, call_operand, symbolic_operand,
15068 dtp16_symbolic_operand, dtp32_symbolic_operand,
15069 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
15070 gottp_symbolic_operand, alpha_comparison_operator,
15071 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
15072 signed_comparison_operator, alpha_fp_comparison_operator,
15073 divmod_operator, fix_operator, aligned_memory_operand,
15074 unaligned_memory_operand, reg_or_unaligned_mem_operand,
15075 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
15076 reg_no_subreg_operand, addition_operation): Move to predicates.md.
15077 (reg_or_const_int_operand): Remove. Replace all users with
15078 reg_or_cint_operand.
15079 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
15080 (resolve_reload_operand): Split out of aligned_memory_operand.
15081 * config/alpha/alpha-protos.h: Update for exports.
15082 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
15083 * config/alpha/alpha.md: Include predicates.md.
15084 * config/alpha/predicates.md: New file.
15085
15086 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
15087
15088 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
15089 fields with a pointer to the instruction definition.
15090 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
15091 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
15092 (write_attr_case, write_const_num_delay_slots): Update accordingly.
15093 (write_attr_case, write_const_num_delay_slots): Write the name of
15094 an insn next to its case statement.
15095 * genoutput.c (data): Add a filename field.
15096 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
15097 (output_insn_data): Print the location of each insn definition.
15098 * genrecog.c (write_action): Print the name of an insn above
15099 the statement that returns its code.
15100
15101 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
15102
15103 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
15104 * config/libgloss.h: Likewise.
15105 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
15106 * c4x/c4x-modes.def: Likewise.
15107 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
15108 (c4x_rptb_nop_p): Likewise.
15109 (c4x_rptb_valid_p): Likewise.
15110 (c4x_rptb_insert): Likewise.
15111 (c4x_address_conflict): Likewise.
15112 * config/c4x/c4x.md: Likewise.
15113 * config/frv/frv.md: Likewise.
15114 * config/i386/athlon.md: Likewise.
15115 * config/i386/i386.md: Likewise.
15116 * config/i386/predicates.md: Likewise.
15117 * config/ia64/ia64.c: Likewise.
15118 * config/ia64/itanium1.md: Likewise.
15119 * config/ia64/itanium2.md: Likewise.
15120 * config/iq2000/iq2000.md: Likewise.
15121 * config/mcore/mcore.c: Likewise.
15122 * config/mips/mips.c: Likewise.
15123 * config/mips/r3900.h: Likewise.
15124 * config/mips/sb1.md: Likewise.
15125 * config/pa/milli64.S: Likewise.
15126 * config/pa/pa.c: Likewise.
15127 * config/pa/pa.h: Likewise.
15128 * config/rs6000/8540.md: Likewise.
15129
15130 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
15131
15132 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
15133
15134 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
15135
15136 * sh.md (cbranch define_delay) Use cond_delay_slot for
15137 non-anulled condition too.
15138
15139 2004-08-12 David Edelsohn <edelsohn@gnu.org>
15140
15141 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
15142 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
15143 any_parallel_operand, lmw_operation, stmw_operation,
15144 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
15145 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
15146 any_parallel_operand.
15147 (return_and_restore_fpregs_{si,di}): Same.
15148
15149 2004-08-12 Zack Weinberg <zack@codesourcery.com>
15150
15151 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
15152 if pred->singleton != PARALLEL, issue a warning and pretend it was.
15153 Also issue a warning for any predicate we don't know about.
15154
15155 2004-08-12 Richard Henderson <rth@redhat.com>
15156
15157 * config/i386/i386.c (internal_label_prefix): Export.
15158 (internal_label_prefix_len, struct ix86_address,
15159 ix86_decompose_address, maybe_get_pool_constant,
15160 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
15161 memory_address_length): Export.
15162 (any_fp_register_operand, fp_register_operand,
15163 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
15164 x86_64_general_operand, x86_64_szext_general_operand,
15165 x86_64_nonmemory_operand, x86_64_movabs_operand,
15166 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
15167 x86_64_zext_immediate_operand, const_int_1_31_operand,
15168 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
15169 tls_symbolic_operand, global_dynamic_symbolic_operand,
15170 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
15171 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
15172 constant_call_address_operand, const0_operand, const1_operand,
15173 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
15174 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
15175 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
15176 general_no_elim_operand, nonmemory_no_elim_operand,
15177 index_register_operand, q_regs_operand, flags_reg_operand,
15178 non_q_regs_operand, zero_extended_scalar_load_operand,
15179 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
15180 ix86_comparison_operator, ix86_carry_flag_operator,
15181 fcmov_comparison_operator, promotable_binary_operator,
15182 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
15183 mult_operator, div_operator, arith_or_logical_operator,
15184 memory_displacement_operand, cmpsi_operand, long_memory_operand,
15185 aligned_operand): Move to predicates.md as define_predicates.
15186 (tls_symbolic_operand_1): Remove.
15187 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
15188 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
15189 (legitimize_address): Merge tls_symbolic_operand contents.
15190 (ix86_expand_move): Likewise.
15191 * config/i386/i386-protos.h: Update for exports.
15192 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
15193 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
15194 * config/i386/i386.md: Include predicates.md.
15195 * config/i386/predicates.md: New file.
15196
15197 2004-08-13 Mark Mitchell <mark@codesourcery.com>
15198
15199 PR c++/16924
15200 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
15201 SYMBOL_REF_DECL.
15202 (i386_pe_mark_dllimport): Likewise.
15203 (i386_pe_encode_section_info): Likewise, when overriding
15204 dllimport attribute.
15205
15206 2004-08-12 Geoffrey Keating <geoffk@apple.com>
15207
15208 * configure.ac: When testing for flex, nm, ar, and bison, check
15209 that they will actually be built.
15210 * configure: Regenerate.
15211
15212 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
15213
15214 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
15215 (MOVE_MAX_PIECES): Define.
15216
15217 2004-08-12 Devang patel <dpatel@apple.com>
15218
15219 * dbxout.c (dbxout_begin_prologue): New function.
15220 (dbx_debug_hooks): Use new begin prologue hook.
15221 (dbxout_function_end): Emit N_ENSYM.
15222 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
15223
15224 2004-08-12 Janis Johnson <janis187@us.ibm.com>
15225
15226 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
15227 argument is float*.
15228
15229 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
15230 for vec_dss.
15231
15232 * doc/extend.texi (AltiVec builtins): Fix description for recent
15233 changes. Update operation list to match current support.
15234
15235 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
15236
15237 * config/s390/s390.c (struct s390_frame_layout): New struct as element
15238 of struct machine_function.
15239 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
15240 changed all uses.
15241 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
15242 changed all uses.
15243 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
15244 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
15245 (s390_frame_area, s390_register_info): New functions.
15246 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
15247 for base register.
15248 (s390_return_addr_rtx, s390_return_address_offset)
15249 (s390_va_start, s390_gimplify_va_arg)
15250 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
15251 layouts.
15252 (s390_frame_info): Functionality partly moved to s390_register_info.
15253 Made adaptions for new stack layout.
15254 (save_gprs, restore_gprs): Changed meaning of second parameter and
15255 adapted all callers.
15256
15257 * config/s390/s390.h (s390_backchain_string): New global variable.
15258 (MASK_BACKCHAIN): Removed definition.
15259 (TARGET_BACKCHAIN): Changed check.
15260 (TARGET_KERNEL_BACKCHAIN): New macro.
15261 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
15262 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
15263 "kernel-backchain".
15264 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
15265
15266 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
15267 as condition. Adjusted for new stack layout.
15268
15269 * doc/invoke.texi: Added documentation for new option
15270 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
15271 "-mno-backchain".
15272
15273 2004-08-12 Paul Brook <paul@codesourcery.com>
15274
15275 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
15276 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
15277
15278 2004-08-12 David Daney <ddaney@avtrex.com>
15279
15280 * java/gcj.texi: Add subsection on signal usage.
15281
15282 2004-08-12 David Edelsohn <edelsohn@gnu.org>
15283
15284 * expr.c (move_by_pieces): Set alignment for move to minimum of
15285 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
15286 alignment, but not less than the original alignment.
15287 (move_by_pieces_ninsns): Same.
15288 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
15289 (store_by_pieces_1): Same.
15290
15291 2004-08-12 Diego Novillo <dnovillo@redhat.com>
15292
15293 PR tree-optimization/16867
15294 * tree.c (is_global_var): New function.
15295 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
15296 Call is_global_var.
15297 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
15298 Update all users.
15299 (is_global_var): Declare.
15300 * tree-dfa.c (dump_variable): Display global and addressable
15301 attributes.
15302 (add_referenced_var): Clarify documentation when marking
15303 variables call-clobbered.
15304 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
15305 instead of needs_to_live_in_memory.
15306 (mark_call_clobbered): If the variable is a tag, mark it
15307 DECL_EXTERNAL.
15308 * tree-gimple.c (is_gimple_reg): Don't check for
15309 TREE_ADDRESSABLE.
15310 (is_gimple_non_addressable): Likewise.
15311 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
15312 needs to be marked call-clobbered.
15313 (setup_pointers_and_addressables): Call is_global_var instead
15314 of needs_to_live_in_memory.
15315 * tree-ssa-dce.c (need_to_preserve_store): Remove.
15316 Update all users with is_global_var.
15317 (mark_stmt_if_obviously_necessary): Fix processing of aliased
15318 stores. Don't check the virtual definitions. Rather, check
15319 whether the store is going into global memory.
15320 (find_obviously_necessary_stmts): Get the symbol from the PHI
15321 result.
15322 * tree-ssa-operands.c (get_call_expr_operands): Do not add
15323 clobbering may-defs if the call does not have side effects.
15324
15325 2004-08-12 Jakub Jelinek <jakub@redhat.com>
15326
15327 PR c++/16276
15328 * output.h (default_function_rodata_section,
15329 default_no_function_rodata_section): New prototypes.
15330 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
15331 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
15332 (TARGET_ASM_OUT): Add it.
15333 * varasm.c (default_function_rodata_section,
15334 default_no_function_rodata_section): New functions.
15335 * final.c (final_scan_insn): Call
15336 targetm.asm_out.function_rodata_section instead of
15337 readonly_data_section.
15338 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
15339 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15340 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15341 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
15342 Likewise.
15343 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15344 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
15345 Likewise.
15346 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
15347 Likewise.
15348 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15349 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15350 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
15351
15352 2004-08-12 Paul Brook <paul@codesourcery.com>
15353
15354 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
15355 frame info.
15356 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
15357 DWARF2_UNWIND_INFO.
15358
15359 2004-08-12 Ben Elliston <bje@au.ibm.com>
15360
15361 PR target/16286
15362 * config/rs6000/altivec.h: Change vector to __vector throughout.
15363 (Except for the `vector' macro itself).
15364
15365 2004-08-12 Zack Weinberg <zack@codesourcery.com>
15366
15367 * genpreds.c: Add capability to generate predicate bodies as
15368 well as function prototypes. Write function prototypes for
15369 the generic predicates too.
15370 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
15371 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
15372 (write_match_code, write_predicate_expr, write_one_predicate_function)
15373 (parse_option): New functions.
15374 (output_predicate_decls): Delete.
15375 (main): Read the machine description, process DEFINE_PREDICATE or
15376 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
15377 as appropriate.
15378
15379 * genrecog.c (struct decision_test): Replace index with
15380 struct pred_data pointer.
15381 (next_index): Remove, unused.
15382 (pred_table, preds, special_mode_pred_table): Delete.
15383 (compute_predicate_codes, process_define_predicate): New functions.
15384 (validate_pattern, add_to_sequence, write_switch): Update for
15385 new data structures.
15386 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
15387 Check both error_count and have_error.
15388
15389 * gensupport.c (in_fname, first_predicate): New globals.
15390 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
15391 (predicate_table, last_predicate, old_pred_table)
15392 (old_special_pred_table): New statics.
15393 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
15394 (add_predicate, init_predicate_table): New functions.
15395 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
15396 (init_md_reader_args_cb): Use the global in_fname. No need to zero
15397 it or max_include_len. Call init_predicate_table.
15398 (read_rtx): Run the predicate queue after the attribute queue
15399 but before all the others.
15400 * gensupport.h (in_fname, struct pred_data, first_predicate)
15401 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
15402 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
15403 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
15404 * dummy-conditions.c: Don't include bconfig.h, system.h,
15405 coretypes.h, tm.h, or system.h. Do include stddef.h.
15406 Duplicate declaration of struct c_test from gensupport.h.
15407
15408 * Makefile.in (OBJS-common): Add insn-preds.o.
15409 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
15410 (insn-preds.c, insn-preds.o): New rules.
15411 (s-preds): Also generate insn-preds.c.
15412 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
15413 Update dependencies.
15414 (print-rtl.o, print-rtl1.o): Correct dependencies.
15415
15416 * recog.h: Delete prototypes of predicate functions.
15417
15418 * doc/md.texi (Predicates): New section with complete
15419 documentation of operand/operator predicates. Remove some
15420 incomplete documentation of predicates from other places.
15421 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
15422 PREDICATE_CODES; indicate that both are deprecated in favor
15423 of define_predicate/define_special_predicate.
15424
15425 * config/ia64/ia64.c: All predicate function definitions moved
15426 to ia64.md, except
15427 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
15428 (ia64_expand_load_address, ia64_expand_move):
15429 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
15430
15431 * config/ia64/ia64.md: All predicates now defined here.
15432 (symbolic_operand): Is now a special predicate.
15433
15434 * config/ia64/ia64.h: Declare ia64_section_threshold.
15435 (PREDICATE_CODES): Delete.
15436
15437 2004-08-12 Richard Henderson <rth@redhat.com>
15438
15439 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
15440 * c-semantics.c (add_stmt): Set it.
15441 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
15442 before instantiating a variable sized type.
15443
15444 2004-08-12 Richard Henderson <rth@redhat.com>
15445
15446 * stor-layout.c (round_up, round_down): Move ...
15447 * fold-const.c (round_up, round_down): ... here. Use
15448 multiple_of_p to avoid any arithmetic at all.
15449
15450 2004-08-12 Richard Henderson <rth@redhat.com>
15451
15452 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
15453 (gimplify_init_ctor_preeval_1): New.
15454 (gimplify_init_ctor_preeval): New.
15455 (gimplify_init_ctor_eval): New.
15456 (gimplify_init_constructor): Use them. Always gimplify the LHS
15457 object first.
15458
15459 2004-08-12 Ziemowit Laski <zlaski@apple.com>
15460
15461 (This patch is part of merge of objc-improvements-branch
15462 into mainline.)
15463
15464 * doc/frontends.texi: Mention Objective-C++ in addition to
15465 Objective-C.
15466 * doc/install.texi: Add 'obj-c++' to list of configurable
15467 languages.
15468 * doc/invoke.texi: Rename Objective-C option headings to
15469 indicate they also apply to Objective-C++. List file
15470 extensions for Objective-C++ sources. Mention that
15471 ObjC and ObjC++ compilations may also use C and C++ options,
15472 respectively. Point users to doc/standards.texi for
15473 further info on ObjC and ObjC++.
15474 * doc/sourcebuild.texi: Mention the objcp/ directory and
15475 the Objective-C++ sources it contains.
15476 * doc/standards.texi: Update link to Apple ObjC site;
15477 add link to gcc readings.html WWW doc.
15478
15479 2004-08-12 Alan Modra <amodra@bigpond.net.au>
15480
15481 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
15482 and 2004-07-14 changes.
15483
15484 2004-08-12 Paul Brook <paul@codesourcery.com>
15485
15486 * doc/invoke.texi: Fix typo.
15487
15488 2004-08-11 Devang Patel <dpatel@apple.com>
15489
15490 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
15491 and -no_dead_strip_inits_and_terms.
15492 (LINK_SPEC): Same.
15493 * doc/invoke.texi (Darwin Options): Document -dead_strip and
15494 -no_dead_strip_inits_and_terms.
15495
15496 2004-08-11 Paul Brook <paul@codesourcery.com>
15497
15498 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
15499 (arm_load_pic_register): ... to this.
15500 * config/arm/arm.c (arm_finalize_pic): Rename ...
15501 (arm_load_pic_register): ... to this. Always output insns at the
15502 current location. Load via low reg in thumb mode.
15503 (arm_expand_prologue): Call arm_load_pic_register.
15504 (thumb_expand_prologue): Ditto.
15505 * config/arm/arm.h (FINALIZE_PIC): Remove.
15506 * config/arm/arm.md (builtin_setjmp_receiver): Call
15507 arm_load_pic_register.
15508
15509 2004-08-11 Paul Brook <paul@codesourcery.com>
15510
15511 * arm.c (thumb_force_lr_save): Add prototype.
15512 (thumb_compute_save_reg_mask): New function.
15513 (thumb_find_work_register): New function.
15514 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
15515 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
15516 Don't clobber r3 when removing pretend args.
15517 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
15518 (thumb_output_function_prologue): Use new functions.
15519 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
15520 * arm.h (THUMB_REG_PUSHED_P): Remove.
15521
15522 2004-08-11 James E Wilson <wilson@specifixinc.com>
15523
15524 PR rtl-optimization/16490
15525 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
15526 global_live_at_end for new basic block if already set for other blocks.
15527
15528 2004-08-11 David Edelsohn <edelsohn@gnu.org>
15529
15530 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
15531
15532 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
15533 (mfcr rlwinm rlwinm patterns): Set length to 12.
15534
15535 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
15536
15537 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
15538 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
15539 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
15540 (start_ssa_stmt_operands): Delete.
15541 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
15542 struct stmt_operands_d.
15543 (build_ssa_operands): New extern entry point.
15544 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
15545 building code, replace with create_ssa_artficial_load_stmt().
15546 * tree-ssa-operands.c (struct voperands_d): Delete.
15547 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
15548 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
15549 (free_uses, free_defs, free_vuses, free_v_may_defs,
15550 free_v_must_defs): Remove dealloc parameter.
15551 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
15552 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
15553 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
15554 vector comparisons, ssa_name reuse, and allocations here.
15555 (verify_start_operands): Delete.
15556 (finalize_ssa_stmt_operands): Set new operands by calling finalize
15557 routines.
15558 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
15559 (append_def, append_usei): Simplify to simple accumulation.
15560 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
15561 duplicates and simple accumulation.
15562 (free_ssa_operands): Free vectors in a stmt_operand structure.
15563 (build_ssa_operands): New. Create a new stmt_operand structure from
15564 a stmt and an old set of stmt_operands.
15565 (get_stmt_operands): Simplify and call build_ssa_operands.
15566 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
15567 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
15568 add_call_read_ops): Don't pass prev_vops around anymore.
15569 (note_addressable): Return if no stmt annotation.
15570 (copy_virtual_operands): Access v_may_def operands through a struct.
15571 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
15572 hash tables without treating the stmt as a real stmt.
15573 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
15574 v_may_def def and use through a struct instead of 2 array elements.
15575 (struct v_may_def_optype_d): Use v_may_def_operand_type.
15576 (struct stmt_operands_d): New. Struct for storing all operand vectors.
15577
15578 2004-08-11 Nick Clifton <nickc@redhat.com>
15579
15580 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
15581 this funciton's behaviour. Return true when the current function
15582 has a section attribute and -mlong-calls is in effect.
15583 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
15584 short-call marker when -mlong-calls is in effect and the function
15585 has a section attribute.
15586
15587 2004-08-10 Zack Weinberg <zack@codesourcery.com>
15588
15589 * stmt.c (expand_return): If asked to return the RESULT_DECL,
15590 just call expand_value_return on result_rtl.
15591
15592 2004-08-10 Richard Henderson <rth@redhat.com>
15593
15594 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
15595 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
15596 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
15597 (add_location_or_const_value_attribute): ... not here. Use
15598 loc_descriptor_from_tree if possible.
15599 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
15600 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
15601 values specially.
15602 (loc_descriptor_from_tree): New. Update callers.
15603 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
15604 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
15605 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
15606 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
15607 and BUILT_IN_STACK_RESTORE.
15608 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
15609 * stmt.c (expand_stack_alloc): Remove.
15610 * tree-mudflap.c (mx_register_decls): Don't look for
15611 BUILT_IN_STACK_ALLOC.
15612 * tree-nested.c (convert_local_reference): Likewise.
15613 * tree.h (DECL_VALUE_EXPR): New.
15614
15615 2004-08-10 Richard Henderson <rth@redhat.com>
15616
15617 * stor-layout.c (round_up): Check for 0/1 before dividing.
15618 (round_down): Likewise.
15619
15620 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
15621
15622 2004-08-09 Mark Mitchell <mark@codesourcery.com>
15623
15624 * config.gcc (arm*-*-eabi*): New target.
15625 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
15626 (TARGET_LIB_INT_CMP_BIASED): Likewise.
15627 * expmed.c (expand_divmod): Try a two-valued divmod function as a
15628 last resort.
15629 * gthr.h: Remove bogus tokens at end of #pragma.
15630 * optabs.c (expand_twoval_binop_libfunc): New function.
15631 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
15632 (prepare_float_lib_cmp): Try reversing the condition.
15633 (debug_optab_libfuncs): New function.
15634 * optabs.h (expand_twoval_binop_libfunc): Declare.
15635 * config/arm/arm.c (arm_init_libfuncs): New function.
15636 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
15637 (TARGET_INIT_LIBFUNCS): Define it.
15638 * config/arm/arm.h (TARGET_BPABI): New macro.
15639 * config/arm/arm-protos.h
15640 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
15641 * config/arm/bpabi.S: New file.
15642 * config/arm/bpabi.c: Likewise.
15643 * config/arm/bpabi.h: Likewise.
15644 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
15645 (__aeabi_drsub): Likewise.
15646 (__aeabi_dsub): Likewise.
15647 (__aeabi_dadd): Likewise.
15648 (__aeabi_ui2d): Likewise.
15649 (__aeabi_i2d): Likewise.
15650 (__aeabi_f2d): Likewise.
15651 (__aeabi_dmul): Likewise.
15652 (__aeabi_ddiv): Likewise.
15653 (__aeabi_cdrcmple): Likewise.
15654 (__aeabi_cdcmpeq): Likewise.
15655 (__aeabi_cdcmple): Likewise.
15656 (__aeabi_dcmpeq): Likewise.
15657 (__aeabi_dcmplt): Likewise.
15658 (__aeabi_dcmple): Likewise.
15659 (__aeabi_dcmpge): Likewise.
15660 (__aeabi_dcmpgt): Likewise.
15661 (__aeabi_dcmpun): Likewise.
15662 (__aeabi_d2iz): Likewise.
15663 (__aeabi_d2uiz): Likewise.
15664 (__aeabi_d2f): Likewise.
15665 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
15666 (__aeabi_frsub): Likewise.
15667 (__aeabi_fsub): Likewise.
15668 (__aeabi_fadd): Likewise.
15669 (__aeabi_ui2f): Likewise.
15670 (__aeabi_i2f): Likewise.
15671 (__aeabi_fmul): Likewise.
15672 (__aeabi_fdiv): Likewise.
15673 (__aeabi_cfrcmple): Likewise.
15674 (__aeabi_cfcmpeq): Likewise.
15675 (__aeabi_cfcmple): Likewise.
15676 (__aeabi_fcmpeq): Likewise.
15677 (__aeabi_fcmplt): Likewise.
15678 (__aeabi_fcmple): Likewise.
15679 (__aeabi_fcmpge): Likewise.
15680 (__aeabi_fcmpgt): Likewise.
15681 (__aeabi_fcmpun): Likewise.
15682 (__aeabi_f2iz): Likewise.
15683 (__aeabi_f2uiz): Likewise.
15684 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
15685 (__aeabi_uidivmod): New function or alias.
15686 (__aeabi_idivmod): Likewise.
15687 (__aeabi_idiv0): Likewise.
15688 (__aeabi_ldiv0): Likewise.
15689 (__aeabi_llsr): Likewise.
15690 (__aeabi_lasr): Likewise.
15691 (__aeabi_llsl): Likewise.
15692 (bpabi.S): Include it.
15693 * config/arm/libgcc-bpabi.ver: New file.
15694 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
15695 (LINK_SPEC): Remove.
15696 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
15697 __aeabi_ulcmp.
15698 * config/arm/t-bpabi: New file.
15699 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
15700 (TARGET_LIB_INT_CMP_BIASED): Likewise.
15701
15702 2004-08-10 David Edelsohn <edelsohn@gnu.org>
15703
15704 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
15705 * config/rs6000/rs6000.md (clrmemsi): New pattern.
15706 * config/rs6000/rs6000.c (expand_block_clear): New function.
15707 (expand_block_move): Convert alignment to bits. Use SImode and
15708 HImode for unaligned addresses if not STRICT_ALIGNMENT.
15709
15710 2004-08-10 Caroline Tice <ctice@apple.com>
15711
15712 * varasm.c (unlikely_section_label): New global variable.
15713 (unlikely_text_section_name): New global variable.
15714 (text_section): Remove alignment statement.
15715 (unlikely_text_section): Remove alignment statement; use
15716 unlikely_section_label rather than hard-coded string.
15717 (assemble_start_function): Initialize unlikely_section_label and
15718 unlikely_text_section_name; make sure cold section is properly
15719 aligned at start of function; output unlikely_section_label if
15720 appropriate.
15721
15722 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
15723
15724 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
15725 * config/s390/s390.c (s390_canonicalize_comparison): New function.
15726 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
15727 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
15728 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
15729 ("*tmqi_mem"): Remove SUBREG from pattern.
15730 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
15731 ("*andsi3_cconly"): Likewise.
15732
15733 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
15734
15735 PR target/16909
15736 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
15737
15738 2004-08-10 Janis Johnson <janis187@us.ibm.com>
15739
15740 * doc/sourcebuild.texi (compat testing): Document available test
15741 framework commands. Use the preferred spelling of DejaGnu.
15742
15743 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
15744
15745 * lambda.h: Add matrix type, and prototypes for remainder of
15746 matrix and vector functions.
15747 (lambda_vector_mult_const): New function.
15748 (lambda_vector_negate): Ditto.
15749 (lambda_vector_add): Ditto.
15750 (lambda_vector_add_mc): Ditto.
15751 (lambda_vector_copy): Ditto.
15752 (lambda_vector_zerop): Ditto.
15753 (lambda_vector_equal): Ditto.
15754 (lambda_vector_min_nz): Ditto.
15755 (lambda_vector_first_nz): Ditto.
15756 (lambda_vector_matrix_mult): Ditto.
15757 * lambda-mat.c: New file.
15758 * Makefile.in (lambda-mat.o): New.
15759
15760 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
15761
15762 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
15763 after linking stmt into the program.
15764 (bsi_remove): Don't call modify_stmt.
15765 * tree-complex.c (update_complex_assignment,
15766 expand_complex_comparison): Call modify_stmt after changing the stmt.
15767 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
15768 removing the stmt.
15769 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
15770 the stmt, and only if needed.
15771 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
15772 expression.
15773 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
15774 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
15775 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
15776 (eliminate_redundant_computations): Don't pass an annotation. Call
15777 modify_stmt rather than setting the annotation directly.
15778 (record_equivalences_from_stmt): Remove unused local 'j'.
15779 (cprop_operand): Take a stmt rather than an annotation as a parameter.
15780 Call modify_stmt.
15781 (cprop_into_stmt): Pass stmt rather than annotation.
15782 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
15783 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
15784 modify_stmt.
15785 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
15786
15787 2004-08-10 Jason Merrill <jason@redhat.com>
15788
15789 PR middle-end/16948
15790 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
15791 the RESULT_DECL.
15792
15793 2004-08-10 Geoffrey Keating <geoffk@apple.com>
15794
15795 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
15796 hash function.
15797
15798 2004-08-10 Roger Sayle <roger@eyesopen.com>
15799
15800 * config/mips/mips.md: New reciprocal square root patterns that
15801 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
15802
15803 2004-08-10 Paul Brook <paul@codesourcery.com>
15804
15805 * config/arm/arm-protos.h (arm_set_return_address,
15806 thumb_set_return_address): Add prototypes.
15807 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
15808 * config/arm/arm.c (arm_compute_func_type,
15809 use_return_insn, arm_compute_save_reg0_reg12_mask,
15810 arm_compute_save_reg_mask, arm_output_function_prologue,
15811 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
15812 current_function_calls_eh_return.
15813 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
15814 old eh code.
15815 (arm_set_return_address, thumb_set_return_address): New functions.
15816 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
15817 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
15818 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
15819 (epilogue): Use the stackadj register.
15820 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
15821
15822 2004-08-10 Jakub Jelinek <jakub@redhat.com>
15823
15824 PR target/3144
15825 * expr.c (move_by_pieces_ninsns): Add max_size argument.
15826 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
15827 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
15828 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
15829 but using MOVE_RATIO.
15830 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
15831 (can_store_by_pieces): Change max_size type to unsigned int.
15832 (store_by_pieces_1): Likewise. Pass max_size to
15833 move_by_pieces_ninsns.
15834 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
15835 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
15836 to move_by_pieces_ninsns.
15837 (STORE_BY_PIECES_P): Define.
15838 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
15839 to move_by_pieces_ninsns.
15840 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
15841
15842 * config/i386/i386.h (CLEAR_RATIO): Define.
15843
15844 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15845
15846 * expr.c (expand_expr_real_1): Add back code that was not dead.
15847
15848 2004-08-09 Andrew Pinski <apinski@apple.com>
15849
15850 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
15851 which is found to be compatible before returning the aliasing set.
15852
15853 2004-08-09 Daniel Jacobowitz <dan@debian.org>
15854
15855 * ggc-zone.c (struct alloc_zone): Add statistics counters.
15856 (always_collect): New flag.
15857 (ggc_alloc_zone_1): Update statistics support. Don't include
15858 overhead in allocated counter.
15859 (sweep_pages): Update allocated counter for large pages. Don'y
15860 include overhead.
15861 (ggc_collect_1): Always collect.
15862 (ggc_collect): Honor always_collect flag. Sum all zones to decide
15863 whether to collect.
15864 (SCALE, LABEL): New macros.
15865 (ggc_print_statistics): Add statistics support.
15866
15867 2004-08-09 Roger Sayle <roger@eyesopen.com>
15868
15869 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
15870 (init_expmed): Fix potential overrun problem with "all.reg".
15871 (expand_sdiv2_pow2): Add an alternate implementation for signed
15872 division, if the target provides a suitable conditional move insn.
15873
15874 2004-08-09 Paul Brook <paul@codesourcery.com>
15875 Richard Henderson <rth@redhat.com>
15876
15877 * unwind-dw2.c (uw_install_context_1): Update target saved stack
15878 pointer.
15879
15880 2004-08-09 Geoffrey Keating <geoffk@apple.com>
15881
15882 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
15883 Check DATA limit only if there's no AS limit. Ignore insanely
15884 low DATA limits.
15885 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
15886 but take care that the AS limit isn't overrun.
15887 * doc/invoke.texi: Update documentation of min-heapsize parameter.
15888
15889 2004-08-09 Jeff Law <law@redhat.com>
15890
15891 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
15892 (tree-ssa-threadupdate.o): Add dependencies.
15893 * tree-ssa-threadupdate.c: New file.
15894 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
15895 (rewrite_vars_out_of_ssa): Remove prototype.
15896 (cleanup_tree_cfg): Returns a bool.
15897 * tree.h (thread_through_all_blocks): Prototype.
15898 * tree-outof-ssa.c (SSANORM_*): Move into here.
15899 (remove_ssa_form): Now static.
15900 (rewrite_vars_out_of_ssa): Kill.
15901 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
15902 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
15903 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
15904 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
15905 anything was changed.
15906 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
15907 from the PHI's annotation rather than the edge associated with
15908 the new argument.
15909 * tree-ssa-dom.c (redirection_edges): Kill.
15910 (redirect_edges_and_update_ssa_graph): Kill.
15911 (tree_ssa_dominator_optimize): Do not reset forwardable flag
15912 for blocks anymore. Do not initialize redirection_edges.
15913 Call thread_through_all_blocks. Simplify code for cleanup
15914 of the CFG and iterating. No longer call cleanup_tree_cfg
15915 outside the iteration loop.
15916 (thread_across_edge): No longer mess with forwardable blocks.
15917
15918 2004-08-09 Zack Weinberg <zack@codesourcery.com>
15919
15920 * explow.c (memory_address): Use memory_address_p.
15921 * recog.c (general_operand): Likewise.
15922 * regrename.c: No need to define REG_OK_STRICT.
15923
15924 2004-08-09 Steven Bosscher <stevenb@suse.de>
15925
15926 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
15927 New timers.
15928 * gcse.c: Include timevar.h.
15929 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
15930 and global_copy_prop_count.
15931 (local_const_prop_count, local_copy_prop_count): New static globals.
15932 (gcse_main): Set the right timevar for each pass.
15933 (cprop_jump): Increment global_const_prop_count when a constant is
15934 propagated. Add "GLOBAL" to dump output.
15935 (cprop_insn): Increment global_const_prop_count when a constant is
15936 propagated, or global_copy_prop_count when a copy is propagated.
15937 (do_local_cprop): Likewise for local_const_prop_count and
15938 local_copy_prop_count.
15939 (one_cprop_pass): Initialize const/cprop counters to zero.
15940 Print out results of local and global const/cprop separately.
15941 (bypass_block): Break over-length line.
15942 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
15943 for bb-reorder.o and tracer.o.
15944
15945 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15946
15947 * Makefile.in (GTFILES): Remove stmt.c
15948 (stmt.o): Do not depend on gt-stmt.h.
15949 * emit-rtl.c (emit_line_note): Do not call
15950 set_file_and_line_for_stmt.
15951 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
15952 do everything.
15953 * function.c (free_after_parsing): Do not free STMT field.
15954 (allocate_struct_function): Do not call init_stmt_for_function.
15955 (assign_stack_temp_for_type): Do not accept values of keep
15956 other than 0 or 1.
15957 (init_temp_slots): Do not initialize removed variables.
15958 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
15959 and X_VAR_TEMP_SLOT_LEVEL fields.
15960 * rtl.h (set_file_and_line_for_stmt): Remove.
15961 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
15962 struct stmt_status, cond_stack, case_stack, nesting_stack,
15963 nesting_depth, emit_locus, set_file_and_line_for_stmt,
15964 same_case_target_p, init_stmt_for_function, emit_nop,
15965 expand_start_cond, expand_start_elseif, expand_start_else,
15966 expand_elseif, expand_end_cond): Remove.
15967 (preserve_subexpressions_p): Remove references to CFUN->STMT.
15968 (expand_start_case, expand_end_case_type): Remove, merge into...
15969 (expand_case): ... this one, including other bits from
15970 expand_expr_real_1. Inline same_case_target_p. Turn members
15971 of CASE_STACK into local variables.
15972 (emit_case_bit_tests): Inline same_case_target_p.
15973 (add_case_node): Add HEAD argument, return new head of the list,
15974 do not handle default label here.
15975 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
15976 expand_start_elseif, current_nesting_level, expand_start_case,
15977 expand_end_case_type, expand_end_case, add_case_node,
15978 init_stmt_for_function, expand_elseif): Remove prototypes.
15979 (expand_case): Add prototype.
15980
15981 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15982
15983 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
15984
15985 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15986
15987 * expr.c (var_rtx): Remove.
15988 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
15989 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
15990 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
15991 Abort.
15992 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
15993 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
15994 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
15995
15996 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
15997 Ayal Zaks <zaks@il.ibm.com>
15998
15999 * common.opt (freschedule-modulo-scheduled-loops): New flag.
16000 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
16001 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
16002 when -freschedule-modulo-scheduled-loops flag is not specified.
16003 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
16004 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
16005 More accurate placing of insn in row of partial schedule.
16006 (ps_insn_find_column): New function.
16007 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
16008 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
16009 (schedule_region): Use sched_is_disabled_for_current_region_p.
16010 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
16011
16012 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
16013
16014 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
16015 change.
16016
16017 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
16018
16019 * config/i386/i386.c (ix86_expand_clrmem): Properly call
16020 gen_strset for 64bit target.
16021
16022 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
16023
16024 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
16025
16026 2004-08-07 Jason Merrill <jason@redhat.com>
16027
16028 Make return in memory explicit.
16029 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
16030 (assign_parm_find_data_types): Remove code for old front end
16031 invisible reference handling.
16032 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
16033 (expand_function_end): Likewise.
16034 * gimplify.c (gimplify_return_expr): Handle a dereferenced
16035 RESULT_DECL.
16036 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
16037 (declare_return_variable): Handle DECL_BY_REFERENCE.
16038 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
16039 (cp_genericize_r): Use convert_from_reference.
16040 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
16041 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
16042
16043 * c-common.c (c_warn_unused_result): Check TREE_USED before
16044 warning about a CALL_EXPR with an unused value.
16045
16046 2004-08-06 Mark Mitchell <mark@codesourcery.com>
16047
16048 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
16049 to the compiler. Use -fshort-wchar by default.
16050
16051 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
16052
16053 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
16054 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
16055 threshhold.
16056 * doc/invoke.texi (param): Document min-crossjump-insns.
16057
16058 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
16059
16060 PR c/13282
16061 * c.opt (Wmissing-field-initializers): New option.
16062 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
16063 * c-typeck.c (pop_init_level): Guard the missing field warning with
16064 warn_missing_field_initializers rather than extra_warnings.
16065 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
16066 some of the explanation from...
16067 (-Wextra): ...here. Say that the missing field warning can be
16068 seperately controlled by -Wmissing-field-initializers.
16069
16070 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
16071
16072 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
16073 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
16074 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
16075 * tree.def (ENTRY_VALUE_EXPR): Remove.
16076
16077 2004-08-06 Jakub Jelinek <jakub@redhat.com>
16078
16079 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
16080 the places where it is actually needed. Don't use repz; stosb
16081 for -Os with sufficiently small constant sizes.
16082 For sufficiently small repz; stos{l,q} repeat counts use a sequence
16083 of stos{l,q} instructions instead.
16084
16085 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16086
16087 PR tree-optimization/16807
16088 * loop-iv.c (dump_iv_info): Dump invariants correctly.
16089 (iv_subreg, iv_extend): Express value of invariant purely in
16090 base field.
16091
16092 2004-08-06 Mark Mitchell <mark@codesourcery.com>
16093
16094 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
16095 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
16096
16097 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
16098
16099 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
16100 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
16101 pre_dec_operand.
16102 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
16103 pattern until reload is finished to allow better code generation
16104 and split them completely into separate instrunctions.
16105 (*andsi3_split): New pattern.
16106
16107 2004-08-05 Mark Mitchell <mark@codesourcery.com>
16108
16109 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
16110 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
16111 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
16112 * tree.h (handle_dll_attribute): Declare. Test
16113 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
16114 * c-common.h (c_determine_visibility): Declare.
16115 * c-common.c (c_determine_visibility): New function.
16116 * c-decl.c (finish_decl): Use it.
16117 (finish_function): Likewise.
16118 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
16119 zero, by default. Use #if, not #ifdef, to test it.
16120 * config/arm/arm.c (arm_attribute_table): Use
16121 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
16122 #if.
16123 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
16124 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
16125 to 1.
16126 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
16127 * config/i386/i386.c (ix86_attribute_table): Use
16128 handle_dll_attribute for dllimport/dllexport. Test
16129 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
16130 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
16131 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
16132 it to 1.
16133 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
16134 with #if.
16135 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
16136 it to 1.
16137 * doc/extend.texi (dllexport): Clarify and correct documentation.
16138 (dllimport): Likewise.
16139 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
16140 handle_dll_attribute.
16141
16142 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16143
16144 * tree-ssa-loop-manip.c: New file.
16145 * Makefile.in (tree-ssa-loop-manip.o): Add.
16146 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
16147 Declare.
16148 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
16149 form.
16150 (tree_ssa_loop_done): Verify loop closed ssa form.
16151 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
16152
16153 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16154
16155 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
16156 pa_asm_output_aligned_local): New functions.
16157 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
16158 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
16159 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
16160 pa_asm_output_aligned_common.
16161 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
16162 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
16163 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
16164 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
16165 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
16166 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
16167 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
16168 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
16169 common data.
16170
16171 2004-08-05 Andrew Pinski <apinski@apple.com>
16172
16173 * objc/objc-act.c (build_objc_string_object): Mark the address
16174 expression as constant.
16175
16176 2004-08-05 David Edelsohn <edelsohn@gnu.org>
16177
16178 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
16179 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
16180 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
16181
16182 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
16183
16184 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
16185 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
16186 out, and associated obsolete comments.
16187
16188 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
16189
16190 * tree.h (force_fit_type): Return a tree, take three flags.
16191 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
16192 TREE_CONSTANT_OVERFLOW here.
16193 (int_const_binop, const_binop): Adjust.
16194 (size_int_type): Do sign extension here.
16195 (fold_convert_const, optimize_bit_field_compare,
16196 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
16197 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
16198 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
16199
16200 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16201
16202 PR tree-optimization/16864
16203 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
16204 for ssa names without default_def.
16205
16206 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
16207
16208 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
16209 frame pointer, restore eax with an ebp-relative address.
16210
16211 2004-08-04 Geoffrey Keating <geoffk@apple.com>
16212
16213 PR 14516
16214 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
16215 * c-common.h (make_rtl_for_local_static): Delete.
16216 * c-decl.c (shadow_tag_warned): Clean up comment.
16217 (finish_decl): Clean up spacing. Use set_user_assembler_name when
16218 appropriate. Don't pass asmspec to rest_of_decl_compilation.
16219 * c-semantics.c (make_rtl_for_local_static): Delete.
16220 * expr.c (init_block_move_fn): Use set_user_assembler_name.
16221 (init_block_clear_fn): Likewise.
16222 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
16223 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
16224 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
16225 * tree.h (make_decl_rtl): Remove second parameter.
16226 (set_user_assembler_name): New.
16227 * varasm.c (set_user_assembler_name): New.
16228 (make_decl_rtl): Remove second parameter. Update callers in many
16229 files.
16230
16231 2004-08-05 Adam Nemet <anemet@lnxw.com>
16232
16233 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
16234 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
16235 to LynxOS 4.0.
16236 * gthr-lynx.h: New file.
16237 * config/lynx-ng.h: Remove file.
16238 * config/lynx.h: Update to LynxOS 4.0.
16239 * config/t-lynx: New file.
16240 * config/i386/lynx-ng.h: Remove file.
16241 * config/i386/lynx.h: Update to LynxOS 4.0.
16242 * config/rs6000/lynxbase.h: Remove file.
16243 * config/rs6000/lynx.h: Update to LynxOS 4.0.
16244 * config/rs6000/t-lynx: New file.
16245 * doc/install.texi (Options specification): Remove reference to
16246 LynxOS from systems where --with-gnu-as makes a difference.
16247
16248 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
16249
16250 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
16251 __UINTMAX_TYPE__.
16252 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
16253 __INTMAX_MAX__.
16254 (c_cpp_builtins): Call it.
16255 * doc/cpp.texi: Update.
16256
16257 2004-08-04 David Edelsohn <edelsohn@gnu.org>
16258
16259 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
16260 cost.
16261
16262 2004-08-04 Jan Hubicka <jh@suse.cz>
16263
16264 * basic-block.h (profile_staus): New global variable.
16265 * cfg.c (profile_status): Declare.
16266 (check_bb_profile): Break out from ....; use profile_status
16267 (dump_flow_info): ... here.
16268 * cfgbuild.c (find_basic_blocks): Set profile_status.
16269 * cfgexpand.c (tree_expand_cfg): Likewise.
16270 * predict.c (estimate_probability): Likewise.
16271 * profile.c (branch_prob): Likewise.
16272 * tree-cfg.c (build_tree_cfg): Likewise.
16273 (dump_function_to_file): Use check_bb_profile.
16274 * tree-pretty-print (dump_bb_header): Likewise.
16275 * tree-profile.c (do_tree_profiling): Cleanup.
16276
16277 2004-08-04 Zack Weinberg <zack@codesourcery.com>
16278
16279 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
16280 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
16281 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
16282 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
16283 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
16284 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
16285 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
16286 (ggc-none.o, errors.o): Move rule to generators section;
16287 correct dependencies.
16288 (min-insn-modes.o): Move rule to generators section; remove
16289 unnecessary explicit command; correct dependencies.
16290 (print-rtl.o, print-rtl1.o): Correct dependencies.
16291 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
16292 (mostlyclean): Update.
16293
16294 * errors.c: Include bconfig.h not config.h. Correct comment.
16295 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
16296 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
16297 * print-rtl.c: Don't include tm_p.h.
16298
16299 * rtl.h: Move forward-decl of struct function down where it's
16300 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
16301 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
16302
16303 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16304 Jeff Law <law@redhat.com>
16305
16306 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
16307 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
16308 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
16309 manipulate the duplicated ssa names.
16310 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
16311 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
16312 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
16313 New functions.
16314 (release_ssa_name): Do not release ssa names that may have multiple
16315 definitions.
16316 * tree.h (release_ssa_name_force, mark_for_rewrite,
16317 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
16318 marked_ssa_names): Declare.
16319 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
16320 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
16321 Update call to rewrite_ssa_into_ssa.
16322
16323 2004-08-04 Mark Mitchell <mark@codesourcery.com>
16324
16325 * defaults.h (TARGET_DECLSPEC): New macro.
16326 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
16327 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
16328 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
16329 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
16330 __declspec support.
16331 (TARGET_DECLSPEC): Define.
16332 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
16333 __declspec support.
16334 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
16335 __declspec support.
16336 (TARGET_DECLSPEC): Define.
16337 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
16338 __declspec support.
16339 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
16340 support.
16341 * doc/tm.texi (TARGET_DECLSPEC): Document.
16342
16343 * doc/extend.texi: Fix typo in comment.
16344
16345 2004-08-04 Paul Brook <paul@codesourcery.com>
16346
16347 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
16348 (TARGET_CXX): Use it.
16349 * target.h (struct gcc_target): Add cdtor_returns_this.
16350 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
16351 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
16352 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
16353
16354 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
16355
16356 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
16357 low/high pair. Do range checking directly.
16358 (interpret_integer): Adjust.
16359
16360 2004-08-04 Nick Clifton <nickc@redhat.com>
16361
16362 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
16363 GCC ABI.
16364 * doc/invoke.texi: Document this new switch and also the -mrenesas
16365 switch.
16366
16367 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
16368
16369 * cfglayout.c (insn_locators_initialize): Update the current
16370 location before initializing a location.
16371
16372 2004-08-03 Zack Weinberg <zack@codesourcery.com>
16373
16374 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
16375 (dbxout_function_end): Return after emitting the "Lscope" symbol
16376 under the same conditions that this function formerly wasn't called.
16377 Add explanatory comments.
16378
16379 PR 14860
16380 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
16381 on the new decl.
16382
16383 PR 13956
16384 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
16385 functions, broken out of dbxout_block.
16386 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
16387 stabs too, if it contains symbols. Use the begin_label and
16388 the Lscope label (emitted by dbxout_function_end) for the
16389 range of this block.
16390
16391 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
16392
16393 * doc/install.texi: Update autoconf version requirements.
16394
16395 2004-08-03 Zack Weinberg <zack@codesourcery.com>
16396
16397 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
16398 * recog.c (general_operand, immediate_operand, nonmemory_operand)
16399 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
16400 * regclass.c (record_reg_classes): Likewise.
16401 * reload.c (find_reloads): Likewise.
16402 * reload1.c (reload): Likewise.
16403
16404 2004-08-03 Zack Weinberg <zack@codesourcery.com>
16405
16406 * gensupport.c (init_md_reader_args_cb): Renamed from
16407 init_md_reader_args. Add third option, callback function for
16408 parsing program-specific options. Add diagnosis of incorrect
16409 number of input files.
16410 (init_md_reader): Fold into init_md_reader_args_cb.
16411 (init_md_reader_args): Now a thin wrapper around
16412 init_md_reader_args_cb.
16413 * gensupport.h: Update prototypes.
16414
16415 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
16416 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
16417 * genrecog.c: No need to diagnose lack of an input file;
16418 init_md_reader_args will handle it.
16419 * genconditions.c: Likewise, and use init_md_reader_args.
16420 * genconstants.c: Likewise, and no need to call read_md_rtx.
16421
16422 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
16423
16424 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
16425 declarations.
16426
16427 2004-08-03 Mike Stump <mrs@apple.com>
16428
16429 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
16430 for frameworks.
16431 * doc/invoke.texi (Darwin Options): Update to reflect above.
16432
16433 2004-08-03 Roger Sayle <roger@eyesopen.com>
16434
16435 PR middle-end/16790
16436 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
16437 truncations, not just global truncations.
16438
16439 2004-08-03 Andrew Pinski <apinski@apple.com>
16440
16441 PR bootstrap/16865
16442 * loop-iv.c (simplify_using_assignment): Initialize lhs.
16443
16444 2004-08-03 Paul Brook <paul@codesourcery.com>
16445
16446 * gcc/doc/install.texi: Document MPFR requirement.
16447
16448 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
16449
16450 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
16451 and mmap() explicitly instead of relying on preset autoconf cache
16452 variables.
16453 * configure: Regenerate.
16454
16455 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
16456
16457 PR target/16570
16458 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
16459 to tmake_file.
16460 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
16461 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
16462 to tmake_file.
16463
16464 * config/i386/t-gmm_malloc: New file.
16465 * config/i386/t-pmm_malloc: Likewise.
16466
16467 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
16468
16469 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
16470 Tanguy Fautrà <tfautre@pandora.be>
16471
16472 * config/i386/pmm_malloc.h: New file.
16473
16474 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
16475
16476 * config/i386/gmm_malloc.h: New file.
16477
16478 2004-08-03 Dale Johannesen <dalej@apple.com>
16479
16480 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
16481 * c-common.c: Include opts.h.
16482 (c_common_get_alias_set): Fix check for a single input file.
16483 * toplev.c: Remove current_file_decl.
16484 * tree.h: Ditto.
16485
16486 2004-08-03 Mark Mitchell <mark@codesourcery.com>
16487
16488 * config.gcc (arm*-*-symbianelf*): New target.
16489 * config/arm/symbian.h: New file.
16490
16491 * gthr-gnat.c: Add visibility #pragmas.
16492 * gthr-gnat.h : Likewise.
16493 * gthr.h: Likewise.
16494 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
16495 (__ffsDI2): Likewise.
16496 (__clzSI2): Likewise.
16497 (__ctzSI2): Likewise.
16498 (__ctzDI2): Likewise.
16499 (__popcountSI2): Likewise.
16500 (__popcountDI2): Likewise.
16501 (__paritySI2): Likewise.
16502 (__parityDI2): Likewise.
16503 * libgcc2.h: Add visibility #pragmas.
16504 (__clzDI2): Add prototype.
16505 (__clzSI2): Likewise.
16506 (__ctzSI2): Likewise.
16507 (__ffsDI2): Likewise.
16508 (__ffsSI2): Likewise.
16509 (__ctzDI2): Likewise.
16510 (__popcountSI2): Likewise.
16511 (__popcountDI2): Likewise.
16512 (__paritySI2): Likewise.
16513 (__parityDI2): Likewise.
16514 * unwind-dw2-fde.h: Add visibility #pragmas.
16515 * unwind.h: Likewise.
16516
16517 2004-08-03 David Edelsohn <edelsohn@gnu.org>
16518 Dale Johannesen <dalej@apple.com>
16519 Roger Sayle <roger@eyesopen.com>
16520
16521 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
16522 constants more accurately. Adjust costs for FMA instructions.
16523 Add cases for most logical and float operations. Recurse into
16524 most operands.
16525
16526 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
16527
16528 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
16529
16530 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
16531
16532 * ra-build.c (conflicts_between_webs): For webs that cross a call add
16533 conflicts to regs_invalidated_by_call.
16534
16535 2004-08-03 Paul Brook <paul@codesourcery.com>
16536
16537 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
16538
16539 2004-08-03 Jan Hubicka <jh@suse.cz>
16540
16541 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
16542 ARRAY_REF argument.
16543
16544 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
16545
16546 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
16547 arm968es, arm10e, arm1020e, arm1022e.
16548 * invoke.texi: Update list of ARM cores.
16549 * arm-tune.md: Regenerate.
16550
16551 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
16552
16553 * arm/gentune.sh: New file.
16554 * arm/t-arm: New file.
16555 * arm/arm-tune.md: New file (autogenerated).
16556 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
16557 * arm.md (attribute tune): Delete. Include arm-tune.md.
16558
16559 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
16560
16561 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
16562 penultimate parameter. All callers adjusted.
16563 (struct prefix_list): Remove used_flag_ptr.
16564 (find_a_file): Do not set *pl->used_flag_ptr.
16565 (warn_B, warn_std_ptr): Remove.
16566
16567 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
16568 Mostafa Hagog <mustafa@il.ibm.com>
16569
16570 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
16571
16572 2004-08-02 Geoffrey Keating <geoffk@apple.com>
16573
16574 * dwarf2out.c (output_call_frame_info): Don't change data format
16575 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
16576 label. Use 'true' not '1'.
16577 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
16578 required.
16579
16580 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
16581
16582 * gdbinit.in: Reflect previous changes to rtunion_def.
16583
16584 2004-08-02 Roger Sayle <roger@eyesopen.com>
16585
16586 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
16587 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
16588
16589 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
16590
16591 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
16592 vec_p_reserve.
16593 * langhooks.h (lang_hooks::builtin_function): Rename parameter
16594 from "class" to "bt_class".
16595
16596 2004-08-02 Paul Brook <paul@codesourcery.com>
16597
16598 PR rtl-optimization/15068
16599 * flow.c (init_propagate_block_info): Check condition is reversible.
16600
16601 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
16602
16603 * gengtype.h (options::info): Change type to const char *.
16604 (enum gc_used_enum): Move out of struct type scope.
16605 * gengtype.c (create_option): Convert initializer for option::info to
16606 appropiate type.
16607 (adjust_field_type, walk_type, write_func_for_structure,
16608 write_root, write_roots): Remove pointless cast.
16609
16610 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
16611
16612 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
16613
16614 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
16615
16616 * rtl.h (union rtunion_def): Have all members start with the
16617 prefix "rt_".
16618 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
16619 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
16620 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
16621 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
16622 access.
16623 * gengtype.c (adjust_field_rtx_def): Likewise.
16624 * rtlanal.c (loc_mentioned_in_p): Likewise.
16625
16626 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
16627
16628 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
16629 Replace uses of mips/elf64.h with mips/elf.h
16630 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
16631 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
16632 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
16633 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
16634 (HANDLE_SYSV_PRAGMA): Delete.
16635 (ASM_OUTPUT_DEF): Fix formatting.
16636 * config/mips/elf64.h: Delete.
16637
16638 2004-08-01 Zack Weinberg <zack@codesourcery.com>
16639
16640 * config/ia64/ia64.c (got_symbolic_operand): Do require a
16641 symbol+offset operand to have its offset be zero mod 0x3fff
16642 when GOT entries are in use. Clarify logic in SYMBOL_REF
16643 case. Clarify comments.
16644 (ia64_expand_load_address): Split a symbol+offset load when
16645 the offset is nonzero mod 0x3fff, not 0x1fff.
16646
16647 2004-08-01 Geoffrey Keating <geoffk@apple.com>
16648
16649 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
16650 if trying to *store* to a non-offsettable address.
16651 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
16652 a nonoffsettable address.
16653 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
16654 Clean up.
16655 (movti_string): Don't move GPRs to a nonoffsettable address.
16656 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
16657
16658 2004-08-02 Ben Elliston <bje@au.ibm.com>
16659
16660 PR target/16155
16661 * config/rs6000/altivec.h: Replace typeof with __typeof__.
16662
16663 2004-08-01 Richard Henderson <rth@redhat.com>
16664
16665 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
16666 variable sized types.
16667
16668 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
16669
16670 * doc/invoke.texi: In the MIPS options section, remove the passage
16671 saying that -mexplicit-relocs is usually disabled for -mabicalls
16672 -fno-unit-at-a-time.
16673 * config/mips/mips.c (override_options): Remove the code that enforced
16674 this rule.
16675
16676 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
16677
16678 * config/mips/mips.md (cprestore): Provide two alternatives, one for
16679 an in-range offset and one for an out-of-range offset. Wrap the latter
16680 in .set macro/.set nomacro if it's inside a .set nomacro block.
16681
16682 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
16683
16684 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
16685 (mips_restore_gp): Declare.
16686 * config/mips/mips.c (mips_add_offset): Add a scratch register
16687 argument. Reimplement in rtl only, reusing MIPS16 logic from
16688 mips_output_mi_thunk.
16689 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
16690 to mips_add_offset.
16691 (mips_gp_save_slot): Delete.
16692 (mips_restore_gp): New function.
16693 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
16694 * config/mips/mips.md (exception_receiver): Turn into a
16695 define_insn_and_split. Use mips_restore_gp to do the split.
16696 (call_internal, call_value_internal, call_value_multiple_internal): Use
16697 mips_restore_gp to restore $gp.
16698
16699 2004-07-31 Andrew Pinski <apinski@apple.com>
16700
16701 PR other/16842
16702 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
16703
16704 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
16705
16706 * c-decl.c (diagnose_mismatched_decls): Give error for external
16707 redeclaration of identifier declared with no linkage, not just
16708 warning with -Wtraditional. Do not check DECL_CONTEXT to give
16709 error for redeclaration with no linkage.
16710
16711 2004-07-30 Geoffrey Keating <geoffk@apple.com>
16712 Fariborz Jahanian <fjahanian@apple.com>
16713
16714 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
16715 non-offsettable addresses even for DImode.
16716 (rs6000_split_multireg_move): Cope with non-offsettable addresses
16717 being moved into multiple GPRs.
16718
16719 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
16720 to 64.
16721 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
16722 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
16723 to 128.
16724 * config/rs6000/darwin-ldouble.c (isless): New macro.
16725 (inf): New macro.
16726 (nonfinite): New macro.
16727 (FPKINF): Delete.
16728 (_xlqadd): Completely rewrite.
16729 (_xlqmul): Correct overflow handling.
16730 (_xlqdiv): Correct overflow handling.
16731 * config/rs6000/darwin-ldouble-format: New file.
16732
16733 2004-07-30 Roger Sayle <roger@eyesopen.com>
16734 Richard Henderson <rth@redhat.com>
16735
16736 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
16737 9 into the equivalent lea instruction.
16738
16739 2004-07-30 Richard Henderson <rth@redhat.com>
16740
16741 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
16742 with DECL_INITIAL if fb_lvalue.
16743 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
16744 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
16745 with <Cxxx>.
16746 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
16747
16748 2004-07-30 Diego Novillo <dnovillo@redhat.com>
16749
16750 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
16751 pointer escapes through a function call, assume that the
16752 callee will dereference it.
16753 (add_pointed_to_var): Assume that VALUE is always an
16754 ADDR_EXPR.
16755 (collect_points_to_info_r): Only call add_pointed_to_var if
16756 the value is an ADDR_EXPR.
16757
16758 2004-07-30 Diego Novillo <dnovillo@redhat.com>
16759
16760 * tree-ssa-alias.c (create_alias_map_for): Do not get the
16761 alias set of the inner type of ARRAY_TYPEs.
16762
16763 2004-07-29 Diego Novillo <dnovillo@redhat.com>
16764
16765 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
16766 setting a non-register to UNDEFINED right before the call to
16767 set_lattice_value.
16768
16769 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
16770
16771 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
16772
16773 2004-07-29 Diego Novillo <dnovillo@redhat.com>
16774
16775 * tree-ssa.c (verify_flow_sensitive_alias_info): When
16776 comparing points-to sets of different pointers, make sure the
16777 second pointer is actually referenced in the code.
16778
16779 2004-07-29 Zack Weinberg <zack@codesourcery.com>
16780
16781 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
16782 (got_symbolic_operand): Remove unreachable code.
16783 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
16784 setjmp_operand; add entry for tls_symbolic_operand.
16785 * config/ia64/ia64-protos.h: Remove all prototypes of
16786 predicate functions.
16787
16788 2004-07-29 Mark Mitchell <mark@codesourcery.com>
16789
16790 * c-common.h (lang_post_pch_load): New variable.
16791 * c-pch.c (lang_post_pch_load): Define it.
16792 (c_common_read_pch): Use it.
16793 * cgraphunit.c (record_call_1): Give the front end a chance to
16794 record additional needed entities when a variable is marked as
16795 needed.
16796 * tlink.c (recompile_files): Robustify.
16797 (scan_linker_output): If a symbol is assigned to a file,
16798 but after recompilation is not present there, issue an error
16799 message.
16800
16801 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16802
16803 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
16804 Take orig_loop argument and pass it to set_level.
16805 (schedule_sm): Pass the correct orig_loop to force_move_till.
16806
16807 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16808
16809 * cfgloop.c (update_latch_info): Update dominator of the new block.
16810 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
16811 info.
16812 * dominance.c (verify_dominators): Check that the dominance tree is
16813 connected.
16814 (recount_dominator): Ignore unreachable blocks.
16815 (iterate_fix_dominators): Cleanup old dominance information before
16816 recomputing it.
16817
16818 2004-07-29 Diego Novillo <dnovillo@redhat.com>
16819
16820 * tree-ssa-operands.c (get_expr_operands): Revert changes
16821 to ADDR_EXPR processing introduced by:
16822 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16823 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
16824
16825 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
16826
16827 * doc/implement-c.texi: Add C90 subclause references. Point to
16828 preprocessor documentation instead of duplicating it. Add points
16829 only present in C90. Fill in documentation for all points.
16830
16831 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16832
16833 * pa.c (output_movb): Correct typo.
16834
16835 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
16836
16837 * ra.h (single_reg_in_regclass): Declare.
16838 * ra.c (single_reg_in_regclass): Define.
16839 (first_hard_reg): New.
16840 (init_ra): Initialize single_reg_in_regclass.
16841 * ra-colorize.c (ok_class): New.
16842 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
16843
16844 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
16845
16846 * gcov-io.h: Allow zero tag as EOF indicator.
16847 (gcov_is_eof): Remove.
16848 (gcov_truncate): Remove.
16849 * gcov-io.c (gcov_seek): Always SEEK_SET.
16850 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
16851 EOF tag.
16852 * coverage.c (read_counts_file): Don't use gcov_is_eof.
16853 * gcov-dump.c (dump_file): Likewise.
16854 * gcov.c (read_graph_file, read_count_file): Likewise.
16855
16856 * c-decl.c (complete_array_type): Don't gratuitously copy
16857 maxindex. Check it always has a type.
16858
16859 2004-07-29 Steven Bosscher <stevenb@suse.de>
16860
16861 * rtl.c (currently_expanding_to_rtl): New.
16862 * rtl.h (currently_expanding_to_rtl): Export it.
16863 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
16864
16865 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
16866 inliner hack.
16867 * config/sh/sh.c: Replace rtx_equal_function_value_matters
16868 with currently_expanding_to_rtl.
16869 * config/sh/sh.md: Likewise.
16870 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
16871
16872 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
16873
16874 Introduce sh2a support.
16875 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
16876 * config.gcc: Build multilibs for sh2a and sh2a-single by
16877 default.
16878 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
16879 default. Split their tests out of the corresponding SH4
16880 multilibs.
16881 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
16882 multilibs for SH2a.
16883 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
16884 * config.gcc: Handle sh2a multilibs and cpu selection.
16885 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
16886 * config/sh/t-mlib-sh2a: New.
16887 * config/sh/t-mlib-sh2a-nofpu: New.
16888 * config/sh/t-mlib-sh2a-single: New.
16889 * config/sh/t-mlib-sh2a-single-only: New.
16890 2004-07-09 Nick Clifton <nickc@redhat.com>
16891 Issue 43400
16892 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
16893 -ml and -m2a are used together.
16894 2004-03-23 DJ Delorie <dj@redhat.com>
16895 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
16896 when we have a double-sized FPU.
16897 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
16898 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
16899 is set.
16900 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
16901 -msh2a-single and -msh2a-single-only
16902 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
16903 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
16904 is set.
16905 2004-02-20 DJ Delorie <dj@delorie.com>
16906 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
16907 2004-02-20 Fred Fish <fnf@redhat.com>,
16908 Corinna Vinschen <vinschen@redhat.com>
16909 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
16910 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
16911 2004-02-18 DJ Delorie <dj@redhat.com>
16912 * config/sh/sh.c (broken_move): Add support for movi20.
16913 * config/sh/sh.h: Likewise.
16914 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
16915 * config/sh/sh.md (udivsi3_sh2a): New.
16916 (udivsi3): Call it.
16917 (divsi3_sh2a): New.
16918 (divsi3): Call it.
16919 (mul_r): New.
16920 (ashlsi3_sh2a): New.
16921 (ashrsi3_sh2a): New.
16922 (lshrsi3_sh2a): New.
16923 (movsi_i): Disable for sh2a.
16924 (movsi_ie): Add movi20.
16925 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
16926 sh2a, for -m2a-nofpu mode.
16927 2004-02-13 DJ Delorie <dj@redhat.com>
16928 * config/sh/lib1funcs.asm: Handle double vs single better.
16929 * config/sh/sh.h: Likewise.
16930 2004-02-09 DJ Delorie <dj@redhat.com>
16931 * config/sh/crt1.asm: Add support for sh2a.
16932 * config/sh/elf.h: Likewise.
16933 * config/sh/lib1funcs.asm: Likewise.
16934 * config/sh/sh.c: Likewise.
16935 * config/sh/sh.md: Likewise.
16936 * config/sh/sh.h: Likewise.
16937 * config/sh/t-sh: Likewise.
16938
16939 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
16940
16941 * config/frv/frv.md (movqi_internal, movhi_internal,
16942 movsi_internal): Add backup alternatives for memory inputs.
16943
16944 2004-07-28 Matt Austern <austern@apple.com>
16945
16946 * config/darwin.c (darwin_one_byte_bool): New global variable.
16947 * config/darwin.h (darwin_one_byte_bool): Declare.
16948 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
16949 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
16950 value of darwin_one_byte_bool.
16951 * doc/invoke.texi: Document -mone-byte-bool flag.
16952
16953 2004-07-28 Eric Christopher <echristo@redhat.com>
16954
16955 * c-common.c (c_common_unsafe_for_reeval): Delete.
16956 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
16957 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
16958 * calls.c (fix_unsafe_tree): Delete.
16959 (expand_call): Delete code which used above.
16960 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
16961 * expr.c (expand_expr_real_1): Ditto.
16962 * fold-const.c (non_lvalue): Ditto.
16963 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
16964 (lhd_unsafe_for_reeval): Ditto.
16965 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
16966 * langhooks.h (unsafe_for_reeval): Ditto.
16967 (unsave_expr_now): Adjust comment.
16968 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
16969 (estimate_num_insns_1): Ditto.
16970 * tree-pretty-print.c (dump_generic_node): Ditto.
16971 * tree.c (expr_align): Ditto.
16972 (unsave_expr): Delete.
16973 (unsafe_for_reeval): Ditto.
16974 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
16975 * tree.def (UNSAVE_EXPR): Delete.
16976 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
16977
16978 2004-07-28 Zack Weinberg <zack@codesourcery.com>
16979
16980 * tree.h (enum tls_model): Move ...
16981 * coretypes.h: ... here.
16982
16983 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
16984
16985 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
16986
16987 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
16988
16989 * cse.c (validate_canon_reg): New function, split out from...
16990 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
16991
16992 2004-07-28 Diego Novillo <dnovillo@redhat.com>
16993
16994 * tree-ssa-alias.c (maybe_create_global_var): Don't just
16995 return if .GLOBAL_VAR has been created.
16996
16997 2004-07-28 Diego Novillo <dnovillo@redhat.com>
16998
16999 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
17000 every variable that may have aliases, not just tags.
17001
17002 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
17003
17004 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
17005 move_from_CR_eq_bit.
17006 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
17007
17008
17009 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
17010 e500_flip_eq_bit.
17011
17012 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
17013 output_e500_flip_eq_bit.
17014
17015 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
17016 output_e500_flip_eq_bit.
17017 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
17018 output_e500_flip_eq_bit.
17019 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
17020 (print_operand): case D. Get to EQ bit.
17021
17022 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
17023
17024 * gcov.c (function_summary): Add missing \n.
17025
17026 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
17027
17028 Introduce sh4a support.
17029 * config.gcc: Handle sh4a multilibs and cpu selection.
17030 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
17031 * config/sh/t-mlib-sh4a: New.
17032 * config/sh/t-mlib-sh4al: New.
17033 * config/sh/t-mlib-sh4a-nofpu: New.
17034 * config/sh/t-mlib-sh4a-single: New.
17035 * config/sh/t-mlib-sh4a-single-only: New.
17036 2004-02-20 DJ Delorie <dj@redhat.com>
17037 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
17038 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
17039 2003-08-22 Eric Christopher <echristo@redhat.com>
17040 * config/sh/sh4a.md: Update for chip errata.
17041 2003-08-07 Eric Christopher <echristo@redhat.com>
17042 * config/sh/sh4a.md: New file. sh4a processor description.
17043 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
17044 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
17045 of -m4a-nofpu.
17046 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
17047 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
17048 * doc/invoke.texi (SH Options): Document -m4al.
17049 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
17050 * config/sh/sh.c (expand_block_move): Remove commented-out code
17051 checked in by mistake.
17052 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
17053 single elements from SFmode vectors.
17054 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
17055 register.
17056 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
17057 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
17058 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
17059 sh_fsca_int2sf): Remove variable declarations.
17060 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
17061 sh_fsca_int2sf): New functions.
17062 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
17063 sh_fsca_int2sf_rtx): New static variables.
17064 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
17065 sh_fsca_int2sf): Declare.
17066 * config/sh/sh.md: Adjust.
17067 * doc/invoke.texi (SH Options): Document new options.
17068 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
17069 compatibility from SH4 code.
17070 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
17071 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
17072 early.
17073 (memory_movsrc_operand): Renamed to...
17074 (unaligned_load_operand): ... this. Simplified.
17075 * config/sh/sh.h (PREDICATE_CODES): Adjust.
17076 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
17077 input operand to SImode, and adjust the others. Introduce
17078 post-increment by peephole.
17079 * config/sh/sh.c (expand_block_move): Give the target address the
17080 same mode as the temp reg.
17081 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
17082 copying.
17083 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
17084 Introduce support for SH4a.
17085 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
17086 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
17087 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
17088 sh_fsca_int2sf): New.
17089 (sh_init_builtins): Initialize them.
17090 (print_operand): Support `d'.
17091 (expand_block_move): Use movua if src is misaligned.
17092 (memory_movsrc_operand): New.
17093 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
17094 and one of the SH4 macros.
17095 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
17096 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
17097 SELECT_SH4A_SINGLE): New.
17098 (TARGET_NONE): Add SH4A_BIT.
17099 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
17100 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
17101 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
17102 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
17103 (enum processor_type): Added PROCESSOR_SH4A.
17104 (PREDICATE_CODES): Add memory_movsrc_operand.
17105 * config/sh/sh.md: Removed unused variables.
17106 (attr cpu): Add sh4a.
17107 (attr type): Add movua, fsrra and fsca.
17108 (prefetch): New, for SH4.
17109 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
17110 (toggle_sz): Set type to fp.
17111 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
17112 (movua, extv, extzv): New.
17113 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
17114 and 4a-single-only.
17115
17116 2004-07-28 Diego Novillo <dnovillo@redhat.com>
17117
17118 * tree-optimize.c (init_tree_optimization_passes): Schedule
17119 pass_may_alias right after the program is renamed into SSA.
17120 * tree-pass.h (PROP_alias): Define.
17121 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
17122 * tree-sra.c (pass_sra): Likewise.
17123 * tree-ssa-ccp.c (pass_ccp): Likewise.
17124 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
17125 * tree-ssa-dce.c (pass_dce): Likewise.
17126 * tree-ssa-dom.c (pass_dominator): Likewise.
17127 * tree-ssa-dse.c (pass_dse): Likewise.
17128 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
17129 * tree-ssa-loop-ch.c (pass_ch): Likewise.
17130 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
17131 * tree-ssa-pre.c (pass_pre): Likewise.
17132 * tree-tailcall.c (pass_tail_recursion): Likewise.
17133 * tree-ssa.c (pass_redundant_phi): Likewise.
17134 * tree-ssa-alias.c (aliases_computed_p): Remove.
17135 Update all users.
17136 (init_alias_info): Do not mark all type tags for renaming
17137 unconditionally.
17138 Clear may_aliases from every symbol.
17139 (setup_pointers_and_addressables): If a pointer has not been
17140 dereferenced and it had a type tag, clear it and mark the old
17141 tag for renaming.
17142
17143 2004-07-28 Diego Novillo <dnovillo@redhat.com>
17144
17145 PR tree-optimization/16705
17146 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
17147 .GLOBAL_VAR.
17148
17149 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17150
17151 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
17152 check.
17153
17154 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
17155 don't make another one.
17156
17157 PR optimization/15077
17158 * function.h (struct function): Add field saved_static_chain_decl.
17159 Fix comment for static_chain_decl.
17160 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
17161 * tree-inline.h (save_body): Add new arg.
17162 * tree-optimize.c (tree_rest_of_compilation): Handle saving
17163 static_chain_decl.
17164
17165 2004-07-27 Richard Henderson <rth@redhat.com>
17166
17167 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
17168 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
17169 is_gimple_addressable.
17170 * tree-gimple.c (is_gimple_addressable): Rename from
17171 is_gimple_addr_expr_arg; accept INDIRECT_REF.
17172 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
17173 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
17174 rename to is_gimple_addressable.
17175
17176 2004-07-28 Alan Modra <amodra@bigpond.net.au>
17177
17178 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
17179
17180 2004-07-27 Richard Henderson <rth@redhat.com>
17181
17182 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
17183 before rounding.
17184
17185 2004-07-27 Zack Weinberg <zack@codesourcery.com>
17186
17187 * libgcc2.c: Change all conditionals testing
17188 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
17189 * libgcc2.h: Likewise.
17190 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
17191 TYPE_PRECISION of float80_type to 80.
17192 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
17193 of fpreg_type and float80_type to 80.
17194 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
17195 * config/m68k/netbsd-elf.h:
17196 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
17197 to evaluate to 80 whenever they would formerly have evaluated to 96.
17198 * config/i386/sco5.h: Remove unnecessary redefinition of
17199 LONG_DOUBLE_TYPE_SIZE.
17200 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
17201 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
17202 XFmode, with a bitsize of 80. Update commentary.
17203 * config/ia64/ia64-modes.def: Likewise.
17204 * config/m68k/m68k-modes.def: Likewise.
17205
17206 2004-07-27 Steven Bosscher <stevenb@suse.de>
17207
17208 * cfgexpand.c (tree_expand_cfg): Fix comment.
17209
17210 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
17211 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
17212 Remove.
17213 (prepare_function_start): Don't set rtx_equal_function_value_matters.
17214 * integrate.c (copy_rtx_and_substitute): Don't test for it.
17215 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
17216 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
17217 here again. Update leading comment.
17218 * rtl.c (rtx_equal_function_value_matters): Remove.
17219 (rtx_equal_p): Don't test for it.
17220 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
17221 Likewise.
17222
17223 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
17224 * rtl.c (note_insn_name): Likewise.
17225 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
17226 * final.c (final_scan_insn): Likewise.
17227
17228 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
17229 * passes.c (rest_of_handle_eh): Do it here.
17230
17231 * stmt.c (struct nesting): Remove struct nesting block member.
17232 (struct stmt_status): Remove x_block_start_count field.
17233 (current_block_start_count): Remove.
17234
17235 2004-07-27 Brian Booth <bbooth@redhat.com>
17236
17237 * tree-optimize.c (register_one_dump_file): Update condition that uses
17238 static_pass_number.
17239 (dup_pass_1): Replace with...
17240 (next_pass_1): This.
17241 (NEXT_PASS): Call next_pass_1.
17242 (DUP_PASS): Remove.
17243 (init_tree_optimization_passes): Remove uses of DUP_PASS.
17244 (execute_one_pass): Update condition that uses
17245 static_pass_number.
17246 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
17247 integer.
17248
17249 2004-07-27 Nick Clifton <nickc@redhat.com>
17250
17251 * config/m32r/m32r.c: Include integrate.h in order to get the
17252 prototype for get_hard_reg_initial_val().
17253
17254 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
17255 and tidy up indentation.
17256 (final_presence_set): Use absence_set instead, so that if there is
17257 nothing in the "o" pipe the "s" pipe can be scheduled.
17258
17259 2004-07-27 Diego Novillo <dnovillo@redhat.com>
17260
17261 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
17262 don't have PT_VARS nor PT_MALLOC set.
17263 Clear name tag from pointers that have not been dereferenced.
17264 (set_pt_anything, set_pt_malloc): Forward declare.
17265 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
17266 not type compatibility when determining if a pointer can be
17267 copy propagated.
17268
17269 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
17270
17271 * expr.h (canonicalize_condition, get_condition): Add an int argument.
17272 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
17273 it to check whether the condition is still valid at the jump insn.
17274 * ifcvt.c (noce_get_condition): Likewise.
17275 (noce_get_alt_condition): Update call to canonicalize_condition.
17276 * loop-iv.c (simplify_using_initial_values): Update call to
17277 get_condition. Remove FIXME.
17278 (check_simple_exit): Update call to get_condition.
17279 * loop-unswitch.c (may_unswitch_on): Likewise.
17280 * loop.c (check_dbra_loop): Likewise.
17281 (canonicalize_condition, get_condition): Add an argument to say whether
17282 the condition must still be valid at INSN.
17283 (get_condition_for_loop): Update call to get_condition. Require that
17284 the condition be valid at INSN.
17285 * predict.c (estimate_probability): Update call to get_condition.
17286 Remove unused earliest parameter.
17287 (expected_value_to_br_prob): Update call to canonicalize_condition.
17288
17289 2004-07-26 Eric Christopher <echristo@redhat.com>
17290
17291 * tree-dfa.c (add_referenced_var): Register initializers of global
17292 variables.
17293
17294 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
17295
17296 * config/i386/i386.c (function_arg): Always treat 8-
17297 and 16-byte wide vectors the same, even if MMX/SSE
17298 are disabled.
17299 (contains_128bit_aligned_vector_p): Add comment.
17300
17301 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
17302
17303 * ra.h (enum node_type): Rename to:
17304 (enum ra_node_type).
17305 * ra-colorize.c: Likewise.
17306
17307 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
17308
17309 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
17310 after simplifying the jump.
17311
17312 2004-06-26 Richard Henderson <rth@redhat.com>
17313
17314 * calls.c (combine_pending_stack_adjustment_and_call): Make
17315 preferred_unit_stack_boundary argument unsigned. Make
17316 unadjusted_alignment unsigned.
17317 (expand_call): Make preferred_stack_boundary and
17318 preferred_unit_stack_boundary variables unsigned.
17319 * function.c (assign_stack_local_1): Make alignment unsigned.
17320 * function.h (struct function): Make stack_alignment_needed,
17321 preferred_stack_boundary unsigned.
17322 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
17323 (ix86_compute_frame_layout): Make stack_alignment_needed,
17324 preferred_alignment variables unsigned.
17325 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
17326
17327 2004-07-26 Tom Tromey <tromey@redhat.com>
17328
17329 * tree.h: Fix typo in comment.
17330
17331 2004-07-26 Daniel Jacobowitz <dan@debian.org>
17332
17333 PR bootstrap/12804
17334 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
17335 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
17336 (ggc_free): Remove incorrect freeing.
17337 (sweep_pages): Advance PP for large pages. Fix indentation.
17338
17339 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
17340
17341 PR rtl-optimization/16643
17342 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
17343 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
17344 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
17345 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
17346 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
17347 * function.c (thread_prologue_and_epilogue_insns): Likewise.
17348 * rtl.h (tracer): Add a flags parameter.
17349 * tracer.c (tracer): Pass it to cfg_layout_initialise.
17350 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
17351 (rest_of_handle_reorder_blocks): Update calls to tracer and
17352 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
17353 (rest_of_handle_tracer): Pass 0 to tracer.
17354 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
17355
17356 2004-07-25 David Edelsohn <edelsohn@gnu.org>
17357
17358 PR target/16239
17359 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
17360 f->f.
17361
17362 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
17363
17364 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
17365 (BINFO_BASE_ACCESS): Adjust.
17366 (BINFO_BASE_ACCESS_APPEND): New.
17367 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
17368 * dbxout.c (dbxout_type): Adjust binfo access accessing.
17369 * dwarf2out.c (gen_member_die): Likewise.
17370 * tree-dump.c (deque_and_dump): Likewise.
17371
17372 2004-07-26 Falk Hueffner <falk@debian.org>
17373
17374 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
17375 costs.
17376
17377 2004-07-25 Roger Sayle <roger@eyesopen.com>
17378
17379 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
17380 value off of the stack if TARGET_USE_FFREEP.
17381
17382 2004-07-26 Bernardo Innocenti <bernie@develer.com>
17383
17384 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
17385 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
17386 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
17387 check on invocation of XRESIZEVEC ().
17388
17389 2004-07-26 Bernardo Innocenti <bernie@develer.com>
17390
17391 * c-common.c (disable_builtin_function): Rename variable n to
17392 new_disabled_builtin.
17393 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
17394 Rename local variable old to old_decl.
17395 * gensupport.c (shift_output_template): Rename parameter old to src.
17396 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
17397 old_rtx and newx to new_rtx.
17398
17399 2004-07-26 Bernardo Innocenti <bernie@develer.com>
17400
17401 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
17402 of c-pragma.h.
17403 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
17404 enum cpp_ttype.
17405 * c-lex.c: Likewise.
17406
17407 2004-07-25 Roger Sayle <roger@eyesopen.com>
17408
17409 * fold-const.c (constant_boolean_node): Make extern.
17410 (make_range): Wrap long lines.
17411 (fold_cond_expr_with_comparison): Remove unnecessary call to
17412 pedantic_non_lvalue. Add missing calls to fold_convert.
17413 (fold_truthop): Add missing calls to fold_convert.
17414 (fold): Likewise.
17415 * tree.h (constant_boolean_node): Add prototype here.
17416 * builtins.c (expand_builtin_strncmp): Add missing calls to
17417 fold_convert.
17418 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
17419 Call fold_convert and constant_boolean_node to correct types.
17420 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
17421 missing call to fold_convert to correct types.
17422
17423 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
17424 Brian Ryner <bryner@brianryner.com>
17425
17426 PR c++/9283
17427 PR c++/15000
17428 * c-common.c (c_common_attribute_table): Allow
17429 handle_visibility_attribute to be called for types.
17430 (handle_visibility_attribute) When given a type, set the visibility
17431 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
17432 so that we can check later whether the attribute was present. Added
17433 warning if attribute applied to non class type.
17434 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
17435 decls and checking that they are consistent.
17436 * common.opt: Added -fvisibility.
17437 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
17438 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
17439 * flags.h, tree.h: Added assorted support defines for overall patch
17440 * opts.c: Added parsing support for -fvisibility.
17441 * tree.c (build_decl): Set visibility for all decls to be whatever
17442 is in force at that time.
17443 * varasm.c (default_binds_local_p_1): Reworked logic determining
17444 when to make a symbol locally bound.
17445 * doc/invoke.texi: Added documentation for -fvisibility and
17446 -fvisibility-inlines-hidden.
17447
17448 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17449
17450 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
17451 * c-common.c: Add missing casts from void * to other types.
17452 * c-decl.c: Likewise.
17453 * c-format.c: Likewise.
17454 * c-lex.c: Likewise.
17455 * c-pragma.c: Likewise.
17456 * c-typeck.c: Likewise.
17457 * defaults.h: Likewise.
17458 * genconstants.c: Likewise.
17459 * gengtype-lex.l: Likewise.
17460 * genmodes.c: Likewise.
17461 * read-rtl.c: Likewise.
17462 * rtl.c: Likewise.
17463
17464 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17465
17466 * bitmap.c: Use type-safe memory allocation macros from libiberty.
17467 * c-common.c: Likewise.
17468 * c-decl.c: Likewise.
17469 * c-lang.c: Likewise.
17470 * c-lex.c: Likewise.
17471 * c-opts.c: Likewise.
17472 * c-parse.in: Likewise.
17473 * c-typeck.c: Likewise.
17474 * genconditions.c: Likewise.
17475 * gengtype-lex.l: Likewise.
17476 * gengtype-yacc.y: Likewise.
17477 * gengtype.c: Likewise.
17478 * genmodes.c: Likewise.
17479 * gensupport.c: Likewise.
17480 * read-rtl.c: Likewise.
17481 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
17482 htab_find_slot().
17483
17484 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17485
17486 * c-decl.c (groktypename, groktypename_in_param_context): Rename
17487 variable typename to type_name.
17488 * c-lex.c (interpret_float): Likewise.
17489
17490 2004-07-25 Roger Sayle <roger@eyesopen.com>
17491
17492 * convert.c (convert_to_real, convert_to_integer,
17493 convert_to_complex): Replace calls to build with calls to buildN.
17494 * coverage.c (tree_coverage_counter_ref): Likewise.
17495 * dojump.c (do_jump): Likewise.
17496 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
17497 * emit-rtl.c (component_ref_for_mem_expr,
17498 set_mem_attributes_minus_bitpos): Likewise.
17499 * explow.c (update_nonlocal_goto_save_area): Likewise.
17500 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
17501 expand_mult_add): Likewise.
17502 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
17503 store_constructor, get_inner_reference, expand_expr_real_1,
17504 try_casesi, try_tablejump): Likewise.
17505 * function.c (expand_function_start): Likewise.
17506 * stmt.c (emit_case_bit_tests, expand_end_case_type,
17507 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
17508 * stor-layout.c (place_union_field, layout_type): Likewise.
17509 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
17510 * varasm.c (copy_constant): Likewise.
17511
17512 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17513
17514 * c-common.c: Rename all identifiers named `new'.
17515 * c-decl.c: Likewise.
17516 * gensupport.c: Likewise.
17517 * simplify-rtx.c: Likewise.
17518 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
17519 with XNEW().
17520 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
17521 with XNEWVEC().
17522
17523 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
17524
17525 PR c/15360
17526 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
17527 declarations until after calling pushdecl.
17528 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
17529 "extern" and not on whether the declaration is initialized.
17530
17531 2004-07-25 Daniel Jacobowitz <dan@debian.org>
17532
17533 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
17534 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
17535 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
17536 "cpplib.h", "c-pragma.h", "c-common.h".
17537 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
17538 (solaris_register_pragmas): New functions.
17539 * config/sol2-protos.h: New file.
17540 * config/sol2.c: New file.
17541 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
17542 (REGISTER_TARGET_PRAGMAS): New macros.
17543 (solaris_pending_aligns, solaris_pending_inits)
17544 (solaris_pending_finis): New variables.
17545 * config/t-sol2 (sol2-c.o): Update dependencies.
17546 (sol2.o): New rule.
17547 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
17548 SUBTARGET_INSERT_ATTRIBUTES.
17549 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
17550 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
17551 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
17552 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
17553 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
17554 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
17555 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
17556 * config/sparc/sparc.c (sparc_attribute_table): New.
17557 (TARGET_INSERT_ATTRIBUTES): Define in terms of
17558 SUBTARGET_INSERT_ATTRIBUTES.
17559 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
17560 is defined.
17561 * doc/extend.texi (Solaris Pragmas): New section.
17562
17563 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17564
17565 * c-common.c: Rename all identifiers named `class' to `cl'.
17566 * c-common.h: Likewise.
17567 * c-parse.in: Likewise.
17568 * c-typeck.c: Likewise.
17569 * genmodes.c: Likewise.
17570 * real.c: Likewise.
17571 * real.h: Likewise.
17572 * recog.c: Likewise.
17573 * recog.h: Likewise.
17574 * regrename.c: Likewise.
17575 * tree.h: Likewise.
17576 * c-common.c (builtin_function_2): Change type of 5th parameter from
17577 int to enum built_in_function. Change type of 8th parameter from int
17578 to bool.
17579 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
17580 with GGC_CNEW().
17581 * c-typeck.c (convert_arguments): Change type of formal_prec from
17582 int to unsigned int.
17583 * genmodes.c (blank_mode): Make a few negative constants unsigned.
17584 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
17585 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
17586 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
17587 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
17588 iterator to for_all_modes () instead of an enum because enums can't
17589 be incremented in C++.
17590
17591
17592 2004-07-25 Daniel Jacobowitz <dan@debian.org>
17593
17594 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
17595 hard registers.
17596
17597 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17598
17599 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
17600 Handle ARRAY_RANGE_REF like ARRAY_REF.
17601
17602 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
17603
17604 * c-typeck.c (digest_init): Don't allow arrays of signed or
17605 unsigned variants of wchar_t to be initialized by wide string
17606 constants. Do allow arrays of enumerated types compatible with
17607 wchar_t to be initialized by wide string constants. Refine tests
17608 distinguishing wide and narrow strings and arrays. Give specific
17609 error for arrays of other integer types initialized by string
17610 constants.
17611 (output_init_element, process_init_element): Check for
17612 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
17613 initializing with string constants.
17614
17615 2004-07-25 Richard Henderson <rth@redhat.com>
17616
17617 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
17618 on the RESULT_DECL.
17619 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
17620 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
17621 DECL_IGNORED_P to new decl.
17622
17623 2004-07-24 Zack Weinberg <zack@codesourcery.com>
17624
17625 * config/ia64/ia64.c (general_xfmode_operand)
17626 (destination_xfmode_operand): Delete.
17627 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
17628 * config/ia64/ia64.md (*movxf_internal): Use general_operand
17629 and destination_operand.
17630
17631 2004-07-24 Alexander Kabaev <kan@freebsd.org>
17632
17633 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
17634 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
17635
17636 2004-07-24 Alexander Kabaev <kan@freebsd.org>
17637 Zack Weinberg <zack@codesourcery.com
17638
17639 PR 16684
17640 * c-decl.c (diagnose_mismatched_decls): Don't issue a
17641 redundant-declaration warning the first time a builtin is
17642 declared explicitly.
17643
17644 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17645
17646 * tree.h (staticp): Change return type to bool.
17647
17648 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17649
17650 * c-common.c (c_staticp): Last episode of the staticp saga.
17651
17652 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17653
17654 * c-common.h (c_staticp): Change return type from int to bool.
17655 * tree.c (staticp): Likewise.
17656 * langhooks.h (staticp): Likewise.
17657
17658 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17659
17660 * langhooks-def.h (lhd_staticp): Change return type from int to
17661 bool in prototype to match definition.
17662
17663 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17664
17665 * system.h (bool, true, false): Don't redefine as preprocessor macros
17666 in C++.
17667
17668 2004-07-24 Roger Sayle <roger@eyesopen.com>
17669
17670 * expmed.c (init_expmed): A signed modulus by a power of two is
17671 considered cheap if its less than or equal to four instructions.
17672
17673 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17674
17675 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
17676 GGC_CNEWVAR): New macros.
17677
17678 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17679
17680 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
17681 lists.
17682 * c-decl.c: Likewise.
17683 * c-format.c: Likewise.
17684 * c-lex.c: Likewise.
17685 * c-opts.c: Likewise.
17686 * c-pragma.c: Likewise.
17687 * c-typeck.c: Likewise.
17688 * gencheck.c: Likewise.
17689 * genconditions.c: Likewise.
17690 * genconfig.c: Likewise.
17691 * genflags.c: Likewise.
17692 * gengtype.c: Likewise.
17693 * gensupport.c: Likewise.
17694 * ggc-none.c: Likewise.
17695 * langhooks.c: Likewise.
17696 * statistics.h: Likewise.
17697 * stub-objc.c: Likewise.
17698 * java/decl.c: Likewise.
17699
17700 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
17701
17702 * config/m68k/m68k.c (output_scc_di): Fix coding style.
17703 (symbolic_operand): Fix prototype.
17704 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
17705 * config/m68k/m68k.md: Add constants for registers a0 and sp and
17706 use them, change from the "{...}" syntax to the simpler {...}
17707 syntax.
17708 (*cfv4_extendqisi2): Fix destination predicate.
17709 * config/m68k/m68k-protos.h: Remove various declarations also
17710 generated via PREDICATE_CODES.
17711
17712 2004-07-23 Mike Stump <mrs@apple.com>
17713
17714 * c-typeck.c (convert_for_assignment): Tightened up pointer
17715 converstions that differ in signedness.
17716
17717 2004-07-23 Zack Weinberg <zack@codesourcery.com>
17718
17719 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
17720
17721 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17722
17723 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
17724 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
17725
17726 * gimplify.c (gimplify_compound_lval): Check for no handled
17727 operations, rather than checking for explicit list of nodes.
17728 (is_gimple_addr_expr_arg_or_indirect): New function.
17729 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
17730 redundant setting of TREE_INVARIANT.
17731 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
17732 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
17733
17734 2004-07-23 Diego Novillo <dnovillo@redhat.com>
17735
17736 PR tree-optimization/16688
17737 PR tree-optimization/16689
17738 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
17739 unnecessary initialization of 'tag'.
17740 (get_tmt_for): Check that the new type tag has the same alias
17741 set as the pointed-to type.
17742 (group_aliases): Only regular variables need to be removed
17743 from the alias set of a name tag.
17744 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
17745 propagation if the two types are not compatible.
17746 (merge_alias_info): Rename from replace_ssa_names_ann.
17747 Add more checking.
17748 (replace_exp_1): If both arguments are SSA_NAMEs, check that
17749 the propagation can be done.
17750 Only call merge_alias_info on pointers.
17751 (propagate_value): Likewise.
17752 * tree-ssa-copyrename.c: Include langhooks.h.
17753 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
17754 to do the merging.
17755 Do not coalesce variables with incompatible types.
17756 (rename_ssa_copies): Call replace_ssa_name_symbol.
17757 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
17758 the same type as the underlying _DECL.
17759 * tree-ssanames.c (replace_ssa_name_symbol): New function.
17760 * tree.h (replace_ssa_name_symbol): Declare.
17761
17762 2004-07-23 Richard Henderson <rth@redhat.com>
17763
17764 PR c++/16277
17765 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
17766 unshare it properly.
17767 (gimplify_modify_expr_rhs): Push assignment from a conditional into
17768 the conditional for all non-register types.
17769
17770 2004-07-23 Richard Henderson <rth@redhat.com>
17771
17772 * expr.c (expand_expr_real_1): Don't handle non-local variables.
17773 * expr.h (fix_lexical_addr): Remove.
17774 * function.c (NEED_SEPARATE_AP): Remove.
17775 (fix_lexical_addr): Remove.
17776 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
17777 not null decl_function_context.
17778 (create_alias_vars): Likewise.
17779 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
17780 (simple_goto_p): Likewise.
17781 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
17782 * tree-ssa-ccp.c (get_default_value): Likewise.
17783 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
17784 * tree.c (needs_to_live_in_memory): Likewise.
17785 * tree-flow-inline.h (may_be_aliased): Move...
17786 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
17787 when TREE_STATIC variables may be addressable.
17788
17789 2004-07-24 Jakub Jelinek <jakub@redhat.com>
17790
17791 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
17792
17793 2004-07-23 Zack Weinberg <zack@codesourcery.com>
17794
17795 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
17796 bitmap contents if GENERATOR_FILE is defined.
17797 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
17798 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
17799
17800 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
17801
17802 * c-decl.c (start_function): Form composite type of function types
17803 rather than copying type from previous prototype declaration.
17804
17805 2004-07-23 Janis Johnson <janis187@us.ibm.com>
17806
17807 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
17808 the const qualifier for the second argument in the C++ functions.
17809
17810 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
17811 specific pointer types.
17812
17813 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
17814 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
17815 for vector bool and/or vector pixel, add C++ and C missing support.
17816 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
17817 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
17818 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
17819 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
17820 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
17821 missing C++ and C support for vector bool and/or vector pixel.
17822 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
17823 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
17824 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
17825 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
17826 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
17827 C++ and C types used for vector bool and/or vector pixel.
17828 (vec_st, vec_stl): Add C++ support for vector pixel.
17829 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
17830 (vec_all_ne): Add C++ support for vector pixel.
17831
17832 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
17833 (vec_vmulesb): Add missing C++ function.
17834 (vec_perm): Fix type of third argument in C++ function.
17835 (vec_vsum4shs): Fix C++ function name.
17836 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
17837 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
17838 argument passed to the error handler in C macro.
17839 (vec_nmsub): Remove extra parens around argument names in C macro.
17840 (vec_packpx): Add missing parens in C macro.
17841
17842 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
17843
17844 * machmode.def: Remove vector modes.
17845 * config/alpha/alpha-modes.def: Add supported vector modes.
17846 * config/arm/arm-modes.def: Likewise.
17847 * config/frv/frv-modes.def: Likewise.
17848 * config/i386/i386-modes.def: Likewise.
17849 * config/rs6000/rs6000-modes.def: Likewise.
17850 * config/sh/sh-modes.def: Likewise.
17851
17852 2004-07-23 Matthias Klose <doko@debian.org>
17853
17854 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
17855 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
17856 * config.h: Regenerate.
17857 * configure: Likewise.
17858
17859 2004-07-22 Mark Mitchell <mark@codesourcery.com>
17860
17861 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
17862 generated SYMBOL_REFs for labels.
17863 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
17864 Change prototype.
17865 (machopic_stub_name): Remove.
17866 (machopic_indirection_name): New function.
17867 (machopic_mcount_stub_name): Likewise.
17868 (machopic_classify_name): Remove.
17869 (machopic_function_base_sym): New function.
17870 (machpoic_classify_symbol): Likewise.
17871 (machopic_classify_ident): Remove.
17872 (machopic_define_ident): Likewise.
17873 (machopic_define_name): Likewise.
17874 (machopic_name_defined_p): Likewise.
17875 (machopic_ident_defined_p): Likewise.
17876 (darwin_strip_name_encoding): Likewise.
17877 (machopic_define_symbol): New function.
17878 * config/darwin.c (hashtab.h): Include.
17879 (machopic_defined_list): Remove.
17880 (machopic_classify_ident): Likewise.
17881 (machopic_classify_name): Likewise.
17882 (machopic_ident_defined_p): Likewise.
17883 (machopic_define_ident): Likewise.
17884 (machopic_define_name): Likewise.
17885 (machopic_symbol_defined_p): New function.
17886 (machopic_classify_symbol): Likewise.
17887 (machopic_data_defined_p): Use machopic_classify_symbol.
17888 (machopic_define_symbol): New function.
17889 (machopic_function_base_sym): New function.
17890 (machopic_non_lazy_pointers): Remove.
17891 (machopic_non_lazy_ptr_name): Likewise.
17892 (machopic_stubs): Likewise.
17893 (machopic_stub_name): Likewise.
17894 (NON_LAZY_POINTER_SUFFIX): New macro.
17895 (STUB_SUFFIX): Likewise.
17896 (machopic_indirection): New structure.
17897 (machopic_indirections): New variable.
17898 (machopic_indirection_hash): New function.
17899 (machopic_indirection_eq): Likewise.
17900 (machopic_indirection_name): Likewise.
17901 (machopic_mcount_stub_name): New function.
17902 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
17903 hash table.
17904 (machopic_indirect_data_reference): Rework to use new functions.
17905 (machopic_indirect_call_target): Likewise.
17906 (machopic_legitimize_pic_address): Likewise.
17907 (machopic_output_indirection): New function.
17908 (machopic_finish): Use it.
17909 (machopic_operand_p): Rework to use new functions.
17910 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
17911 (darwin_strip_name_encoding): Remove.
17912 (update_non_lazy_ptrs): Remove.
17913 (update_stubs): Likewise.
17914 (darwin_non_lazy_pcrel): Use new functions.
17915 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
17916 (ASM_OUTPUT_LABELREF): Likewise.
17917 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
17918 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
17919 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
17920 (TARGET_STRIP_NAME_ENCODING): Do not use
17921 darwin_strip_name_encoding.
17922 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
17923 darwin_strip_name_encoding.
17924 * config/i386/darwin.h (FUNCTION_PROFILER): Use
17925 machopic_mcount_stub_name.
17926 * config/i386/i386.c (x86_output_mi_thunk): Use
17927 machopic_indirection_name, not machopic_stub_name.
17928 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
17929 machopic_function_base_sym.
17930 (print_operand): Use machopic_classify_symbol.
17931 (rs6000_emit_prologue): Use machopic_function_base_sym.
17932 (output_profile_hook): Do not use machopic_stub_name.
17933 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
17934
17935 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17936
17937 PR c/7284
17938 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
17939 as multiplication.
17940
17941 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17942
17943 * doc/implement-c.texi: New file.
17944 * doc/extend.texi (C Implementation): Move to there.
17945 * doc/gcc.texi: Include implement-c.texi.
17946 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
17947
17948 2004-07-22 Jason Merrill <jason@redhat.com>
17949
17950 * integrate.c (copy_decl_for_inlining): Remove invisible reference
17951 handling.
17952 * tree-inline.c (setup_one_parameter): Likewise.
17953
17954 2004-07-22 Brian Booth <bbooth@redhat.com>
17955
17956 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
17957 (substitute_and_fold): Propigate into VUSE operands when possible.
17958 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
17959 (cp_lattice_meet): Handle merging of latticevalues when
17960 UNKNOWN_VAL is present.
17961 (visit_stmt): Visit assignments with V_MUST_DEFs.
17962 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
17963 (ccp_fold): Deal with RHS' that are constant and virtual.
17964 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
17965 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
17966 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
17967 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
17968 computing immediate uses.
17969 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
17970 transition.
17971 (replace_vuse_in): New function.
17972 (likely_value): Add check of vuse operands.
17973 (get_default_value): Set the default value of virtually defined
17974 variables to UKNOWN_VAL instead of VARYING.
17975
17976 2004-07-22 Richard Henderson <rth@redhat.com>
17977
17978 * expr.c (emit_push_insn): Don't use set_mem_attributes.
17979
17980 2004-07-22 Richard Henderson <rth@redhat.com>
17981
17982 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
17983 variables due to conditional compilation.
17984
17985 2004-07-22 Diego Novillo <dnovillo@redhat.com>
17986
17987 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
17988 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
17989 Release SSA names that have been re-renamed.
17990 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
17991 variable.
17992 * tree-ssa-alias.c (init_alias_info): If aliases have been
17993 computed before, clear existing alias information.
17994 (create_name_tags): Do no fixup PT_ANYTHING pointers.
17995 If the new name tag for a pointer is different than the one it
17996 had before, mark the old tag for renaming.
17997 (replace_may_alias): New function.
17998 (group_aliases): Call it.
17999 (setup_pointers_and_addressables): Always call get_tmt_for.
18000 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
18001 once.
18002 (set_pt_anything): New local function.
18003 (set_pt_malloc): New local function.
18004 (merge_pointed_to_info): Don't merge pointed-to variables from
18005 the original pointer if the destination is pointing to an
18006 unknown location.
18007 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
18008 (add_pointed_to_var): Do not add a variable to the points-to
18009 set if the pointer is already pointing to anywhere.
18010 (collect_points_to_info_r): If the defining statement is a PHI
18011 node, only merge pointed-to information if the argument has
18012 already been visited.
18013 (get_tmt_for): Only create a new tag if the pointer didn't
18014 have one already.
18015 (dump_alias_info): Emit more information.
18016 (dump_points_to_info_for): Likewise.
18017 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
18018 try to get the annotation of an SSA_NAME.
18019 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
18020 alias sets when checking is enabled.
18021 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
18022 (eliminate): Mark basic blocks that will need
18023 EH information cleaned up.
18024 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
18025 predecessor.
18026 Initialize need_eh_cleanup.
18027 (fini_pre): Call tree_purge_all_dead_eh_edges and
18028 cleanup_tree_cfg if needed.
18029 Free need_eh_cleanup.
18030 * tree-ssa.c (verify_ssa_name): New function.
18031 (verify_def): Call it.
18032 Re-arrange to avoid printing too many error messages.
18033 (verify_use): Likewise.
18034 (verify_phi_args): Likewise.
18035 (verify_flow_insensitive_alias_info): New function.
18036 (verify_flow_sensitive_alias_info): New function.
18037 (verify_alias_info): New function.
18038 (verify_ssa): Call verify_alias_info.
18039 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
18040 program.
18041 Re-arrange to avoid printing too many error messages.
18042 * tree-ssanames.c (make_ssa_name): Clear
18043 SSA_NAME_IN_FREE_LIST.
18044 (release_ssa_name): Never release a default definition.
18045 (release_defs): New function.
18046 * tree.h: Declare it.
18047 * tree-ssa-dce.c (remove_dead_stmt): Call it.
18048
18049 2004-07-22 Diego Novillo <dnovillo@redhat.com>
18050
18051 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
18052 If true, do a depth-first search. Do a breadht-first search,
18053 otherwise.
18054 (walk_use_def_chains): Add new argument IS_DFS.
18055 Update all users.
18056 * tree-flow.h (walk_use_def_chains): Update prototype.
18057
18058 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
18059
18060 * config/cris/cris.md: Tweak formatting.
18061 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
18062 (mover2side, moverside, movemside, movei, op3, andu): Replace
18063 live define_peephole:s with define_peephole2 near-equivalents.
18064 Delete the rest.
18065 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
18066 word-size modes.
18067 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
18068 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
18069 "*mov_sidesi_mem" respectively.
18070
18071 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
18072
18073 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
18074 (gimplify_build1): Move from tree-complex.c do_unop.
18075 (gimplify_build2): Move from tree-complex.c do_binop.
18076 (gimplify_build3): New.
18077 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
18078 Adjust throughout to call the functions above.
18079 * tree-flow.h: Declare the functions above.
18080 * tree-nested.c (gimplify_val): Rename to...
18081 (tsi_gimplify_val): ... this.
18082
18083 * Makefile.in (tree_complex.o): Update dependencies.
18084 (stor-layout.o): Depend on regs.h.
18085 * c-common.c (handle_vector_size_attribute): Update for
18086 vector types without corresponding vector modes.
18087 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
18088 a corresponding vector mode is not available.
18089 * print-tree.c (print_node): Print nunits for vector types
18090 * regclass.c (have_regs_of_mode): New.
18091 (init_reg_sets_1): Initialize it and use it instead
18092 of allocatable_regs_of_mode.
18093 * regs.h (have_regs_of_mode): Declare it.
18094 * stor-layout.c (layout_type): Pick a mode for vector types.
18095 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
18096 build_replicated_const, do_unop, do_binop, do_plus_minus,
18097 do_negate, expand_vector_piecewise, expand_vector_parallel,
18098 expand_vector_addition, expand_vector_operations_1,
18099 expand_vector_operations, tree_lower_operations,
18100 pass_lower_vector_ssa, pass_pre_expand): New.
18101 (expand_complex_operations, pass_lower_complex): Remove.
18102 * tree-optimize.c (init_tree_optimization_passes): Adjust
18103 pass ordering for changes in tree-complex.c.
18104 * tree-pass.h: Declare new passes.
18105 * tree.c (finish_vector_type): Remove.
18106 (make_vector_type): New.
18107 (build_vector_type_for_mode, build_vector_type): Rewritten.
18108 * tree.def (VECTOR_TYPE): Document where the number of
18109 subparts is stored.
18110 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
18111 (make_vector): Remove declaration.
18112
18113 2004-07-21 Richard Henderson <rth@redhat.com>
18114
18115 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
18116 TREE_THIS_VOLATILE, may_aliases, or optimization level.
18117 (remove_useless_vars): Dump debugging info.
18118 (expand_used_vars): Move ...
18119 * cfgexpand.c (expand_used_vars): ... here. Make static.
18120 * tree-flow-inline.h (set_is_used): New.
18121 (set_default_def): Use get_var_ann.
18122 * tree-flow.h: Update decls.
18123 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
18124 (create_ssa_var_map): Use it.
18125 * tree-ssa.c (set_is_used): Remove.
18126
18127 2004-07-22 Ben Elliston <bje@au.ibm.com>
18128
18129 * gdbinit.in: Set a breakpoint on internal_error.
18130
18131 2004-07-21 Richard Henderson <rth@redhat.com>
18132
18133 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
18134 to create a new basic block.
18135
18136 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
18137
18138 PR c/15052
18139 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
18140 return type on function definitions. Move other warnings for
18141 qualified return type to -Wreturn-type. Do not condition any such
18142 warnings on -pedantic. Update comments.
18143 (start_function): Only copy function type from previous prototype
18144 declaration if return types are compatible.
18145 * c-typeck.c (function_types_compatible_p): Don't condition
18146 warning for incompatibility of volatile qualifiers on the return
18147 type on -pedantic. Update comment.
18148 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
18149
18150 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
18151
18152 * c-typeck.c (set_init_index): Require designator to be of integer
18153 type.
18154
18155 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
18156
18157 PR c/11250
18158 * c-parse.in (init): Change to exprtype.
18159 (primary): Set original_code for STRING to STRING_CST.
18160 Call maybe_warn_string_init for compound literals.
18161 (initdcl, notype_initdcl): Call maybe_warn_string_init.
18162 (initval): Update.
18163 * c-tree.h (maybe_warn_string_init): New.
18164 (pop_init_level, process_init_element): Use struct c_expr.
18165 (struct c_expr): Update comment.
18166 * c-typeck.c (maybe_warn_string_init): New function.
18167 (digest_init): Call it. Additional parameter strict_string. All
18168 callers changed.
18169 (output_init_element): Likewise.
18170 (struct constructor_stack): Use struct c_expr for
18171 replacement_value.
18172 (really_start_incremental_init, push_init_level): Update.
18173 (pop_init_level): Update. Return struct c_expr.
18174 (process_init_level): Update. Take struct c_expr argument.
18175
18176 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
18177
18178 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
18179 commit.
18180
18181 2004-07-21 Eric Christopher <echristo@redhat.com>
18182
18183 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
18184 removal.
18185 * c-decl.c (pop_scope): Ditto.
18186 * calls.c (expand_call): Remove call to current_nesting_level,
18187 update comment accordingly. Remove calls to expand_start_target_temps
18188 and expand_end_target_temps.
18189 * cfgexpand.c (construct_init_block): Remove call to
18190 expand_start_bindings_and_block.
18191 (construct_exit_block): Remove call to expand_end_bindings.
18192 * expr.c (safe_from_p): Remove BIND_EXPR handling.
18193 (expand_expr_real_1): Ditto. Fix formatting.
18194 (expand_vars): Delete.
18195 * stmt.c (POPSTACK): Remove block_stack.
18196 (stmt_status): Remove x_block_stack.
18197 (block_stack): Delete.
18198 (expand_start_bindings_and_block): Ditto.
18199 (expand_start_target_temps): Ditto.
18200 (expand_end_target_temps): Ditto.
18201 (current_nesting_level): Ditto.
18202 (warn_about_unused_variables): Ditto.
18203 (expand_end_bindings): Ditto.
18204 * tree.h: Remove declarations for above.
18205
18206 2004-07-21 Steven Bosscher <stevenb@suse.de>
18207
18208 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
18209 * rtl.c (note_insn_name): Likewise.
18210 * print-rtl.c (print_rtx): Don't print it.
18211 * cfgrtl.h (can_delete_note_p): Don't handle it.
18212 (rtl_delete_block): Likewise.
18213 * passes.c (rest_of_handle_guess_branch_prob): Remove.
18214 (rest_of_compilation): Don't call it.
18215 * predict.c (process_note_predictions, process_note_prediction,
18216 note_prediction_to_br_prob): Remove.
18217 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
18218 * stmt.c (return_prediction): Remove.
18219 (expand_value_return): Don't call it. Don't add prediction
18220 notes for return statements.
18221
18222 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
18223
18224 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
18225 once.
18226
18227 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
18228
18229 * c-common.c (vector_types_convertible_p): Use vector types'
18230 TYPE_SIZE and TREE_TYPE instead of their mode.
18231 * convert.c (convert_to_integer): Likewise.
18232 (convert_to_vector): Likewise.
18233 * fold-const.c (fold_convert): Likewise.
18234 * varasm.c (output_constant): Likewise.
18235 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
18236 Allow a VECTOR_TYPE initializer to be made of several vectors.
18237 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
18238 of cleared and need_to_clear, and use fold_convert.
18239 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
18240 integer vectors.
18241
18242 2004-07-20 Richard Henderson <rth@redhat.com>
18243
18244 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
18245 (expand_gimple_basic_block): out from here. Renamed from expand_block.
18246
18247 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
18248
18249 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
18250 enormous cost if not TARGET_HARD_MUL.
18251
18252 2004-07-20 Andrew Pinski <apinski@apple.com>
18253
18254 PR target/16557
18255 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
18256 (ASM_SPEC): here.
18257
18258 2004-07-21 Paul brook <paul@codesourcery.com>
18259
18260 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
18261
18262 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18263
18264 * fold-const.c (operand_equal_p): Temporarily support NULL args.
18265 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
18266 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
18267
18268 2004-07-20 Zack Weinberg <zack@codesourcery.com>
18269
18270 * rtl.h (plus_constant): Delete.
18271 (plus_constant_wide): Rename to plus_constant.
18272 (plus_constant_for_output_wide): Delete vestigial prototype.
18273 (GEN_INT): Remove unnecessary cast.
18274 * tree.h (build_int_2, size_int_type): Delete.
18275 (build_int_2_wide): Rename to build_int_2.
18276 (size_int_wide): Rename to size_int_kind.
18277 (size_int_type_wide): Rename to size_int_type.
18278 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
18279 Remove unnecessary cast.
18280 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
18281 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
18282 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
18283 (size_int_type_wide): Rename size_int_type.
18284 (int_const_binop): Use size_int_type.
18285 * c-lex.c (interpret_integer): Use build_int_2.
18286 * final.c (split_double): Remove unnecessary casts.
18287 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
18288
18289 2004-07-20 Richard Henderson <rth@redhat.com>
18290
18291 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
18292 (gimplify_compound_lval): Use is_gimple_tmp_reg.
18293 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
18294 (is_gimple_tmp_reg): New.
18295 * tree-gimple.h (is_gimple_tmp_reg): Declare.
18296
18297 2004-07-20 Richard Henderson <rth@redhat.com>
18298
18299 * tree-pretty-print.c (dump_generic_node): Dump
18300 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
18301
18302 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
18303
18304 * tree-mudflap.c (mf_set_options_fndecl): New tree.
18305 (mudflap_init): Set it.
18306 (mudflap_register_call): Remove __mf_init call.
18307 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
18308 to pass "-ignore-reads" option to libmudflap if needed.
18309
18310 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
18311
18312 PR c++/14607
18313 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
18314 (MAKE_DECL_ONE_ONLY): Undefine.
18315 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
18316 readonly_data, one_only_data_section, forget_section): New prototypes.
18317 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
18318 functions.
18319 (pa_select_section): Add one-only (COMDAT) support.
18320 * pa.h (struct machine_function): Define.
18321 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
18322 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
18323 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
18324 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
18325 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
18326 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
18327 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
18328 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
18329 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
18330 for EXTRA_SECTION_FUNCTIONS.
18331 * doc/install.texi: Update binutils requirements.
18332
18333 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
18334
18335 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
18336 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
18337 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
18338 size_t.
18339 (struct VEC): Use unsigned for num and alloc.
18340 * vec.c (struct vec_prefix): Likewise.
18341 (vec_o_reserve): Adjust.
18342
18343 * dbxout.c (dbxout_type): Fix printf format.
18344
18345 * tree.h (binfo_member): Remove.
18346 * tree.c (binfo_member): Remove.
18347
18348 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
18349
18350 * tree.h: Include vec.h
18351 (DEF_VEC_P(tree)): New type.
18352 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
18353 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
18354 (BINFO_LANG_SLOT): Remove.
18355 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
18356 (struct tree_binfo): Turn base_binfos into a trailing
18357 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
18358 (binfo_lang_slots): Remove.
18359 * tree.c (binfo_lang_slots): Remove.
18360 (make_tree_binfo_stat): Take a base binfo count, not a
18361 lang slot count. Adjust.
18362 * Makefile.in (TREE_H): Add vec.h
18363 * alias.c (record_component_aliases): Adjust BINFO access.
18364 * dbxout.c (dbxout_type): Likewise.
18365 * dwarf2out.c (gen_member_die): Likewise.
18366 * sdbout.c (sdbout_one_type): Likewise.
18367 * tree-dump.c (deque_and_dump): Likewise.
18368 * config/i386/i386.c (classify_argument,
18369 contains_128bit_aligned_vector_p): Likewise.
18370 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
18371 * doc/c-tree.texi (Classes): Update BINFO documentation.
18372
18373 2004-07-20 Steven Bosscher <stevenb@suse.de>
18374
18375 * c-common.h (check_case_value): Remove prototype.
18376 (c_add_case_label): Adjust prototype.
18377 * c-common.c (check_case_value): Make static.
18378 (check_case_bounds): New function.
18379 (c_add_case_label): Use it. Take new argument orig_type.
18380 * c-typeck.c (struct c_switch): New orig_type field.
18381 (c_start_case): Set it.
18382 (do_case): Pass it to c_add_case_label.
18383 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
18384 cases from here. Add the labels in reverse order.
18385 * stmt.c (struct case_node): Adjust comment. Remove balance field.
18386 (add_case_node): Return nothing, don't check for duplicate cases.
18387 Insert new case nodes in a list, not in an AVL tree.
18388 (expand_end_case_type): Don't turn a case tree into a case list.
18389 (case_tree2list): Remove.
18390 * tree.h (add_case_node): Adjust prototype.
18391
18392 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
18393
18394 * genattr.c (struct range, struct function_unit,
18395 write_units, extend_range, init_range): Remove them.
18396 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
18397 Output "#define INSN_SCHEDULING" here.
18398 * genattrtab.c (struct range, struct function_unit_op,
18399 struct function_unit, struct dimension, enum operator,
18400 operate_exp, expand_units, simplify_knowing,
18401 encode_units_mask, simplify_by_exploding,
18402 find_and_mark_used_attributes, unmark_used_attributes,
18403 add_values_to_cover, increment_current_value,
18404 test_for_current_value, simplify_with_current_value,
18405 simplify_with_current_value_aux, gen_unit,
18406 write_unit_name, write_function_unit_info,
18407 write_complex_function, write_toplevel_expr,
18408 find_single_value, extend_range): Remove.
18409 (write_attr_get): Do not handle common_av->value
18410 being an FFS.
18411 (struct attr_desc): Remove func_units_p and blockage_p.
18412 (write_attr_valueq): Do not handle them.
18413 (find_attr): Do not clear them.
18414 (make_internal_attr): Do not initialize them.
18415 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
18416 * sched-vis.c (init_target_units, insn_print_units,
18417 init_block_visualization, print_block_visualization,
18418 visualize_scheduled_insns, visualize_no_unit,
18419 visualize_stall_cycles, visualize_alloc,
18420 visualize_free, target_units, get_visual_tbl_length,
18421 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
18422 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
18423 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
18424 * haifa-sched.c (blockage_range, clear_units,
18425 schedule_unit, actual_hazard, potential_hazard,
18426 insn_unit, unit_last_insn, unit_tick,
18427 actual_hazard_this_instance, potential_hazard,
18428 schedule_unit, max_insn_queue_index_value): Remove.
18429 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
18430 max_insn_queue_index.
18431 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
18432 * doc/md.texi (Processor pipeline description): Remove
18433 references to old pipeline descriptions.
18434 (Automaton pipeline description): Merge with the above.
18435 (Old pipeline description, Comparison of the two descriptions):
18436 Remove.
18437
18438 * bt-load.c (migrate_btr_def): Remove references to
18439 use_pipeline_interface.
18440 * haifa-sched.c (insn_cost, schedule_insn,
18441 schedule_block, advance_one_cycle, sched_init,
18442 queue_to_ready, sched_finish): Likewise.
18443 * modulo-sched.c (sms_schedule, advance_one_cycle,
18444 ps_has_conflicts): Likewise.
18445 * sched-rgn.c (init_ready): Likewise.
18446 (debug_dependencies): Likewise, and remove an "if (1)".
18447 * target.h (use_dfa_pipeline_interface): Remove.
18448 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18449 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18450 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18451 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18452 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18453 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18454 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18455 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18456 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18457 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18458 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18459 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18460 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18461 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18462 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18463 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18464 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18465 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18466 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18467
18468 2004-07-19 Roger Sayle <roger@eyesopen.com>
18469
18470 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
18471
18472 2004-07-19 Jeff Law <law@redhat.com>
18473
18474 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
18475 (get_eq_expr_value): Use it. Simplify slightly.
18476
18477 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
18478
18479 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
18480 (umulsidi3_32bit_r4000): Likewise.
18481
18482 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
18483
18484 * vec.h: Propagate location information properly.
18485 (VEC_T_iterate): Add result pointer parameter.
18486 (VEC_T_space): New.
18487 (VEC_T_reserve): Use it.
18488
18489 2004-07-19 Daniel Jacobowitz <dan@debian.org>
18490
18491 * Makefile.in (c-format.o): Depend on c-format.h.
18492 * c-format.h: New file.
18493 (struct format_char_info): Add CHAIN member.
18494 * c-format.c: Move some types and constants to c-format.h.
18495 (format_type_error): Set to -1.
18496 (struct function_format_info): Use an int for format_type.
18497 (decode_format_type): Return an int. Return format_type_error
18498 on error.
18499 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
18500 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
18501 (scan_char_table, time_char_table, monetary_char_table): Initialize
18502 CHAIN to NULL.
18503 (n_format_types): New variable.
18504 (check_format_info_main): Handle CHAIN in format_char_info.
18505 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
18506 TARGET_N_FORMAT_TYPES.
18507 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
18508 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
18509 * config/sol2-c.c: New file.
18510 * config/t-sol2: New file.
18511 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
18512 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
18513 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
18514
18515 * doc/extend.texi (Target Format Checks): New section.
18516 (Function Attributes): Mention it.
18517 * doc/invoke.texi: Mention target format checks.
18518 * doc/sourcebuild.texi: Mention target format checks.
18519 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
18520 TARGET_FORMAT_TYPES.
18521
18522 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
18523
18524 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
18525 added.
18526 * config/s390/s390.c (regclass_map initializer): Register 35 added to
18527 ADDR_REGS.
18528 (load_multiple_operation, store_multiple_operation): Removed
18529 pointless sanity check.
18530 (s390_decompose_address): Added check for return_address_pointer_rtx.
18531 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
18532 (s390_return_address_offset): New function.
18533 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
18534 (FRAME_REGNO_P): Added check for register 35.
18535 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
18536 REG_ALLOC_ORDER): Appended entry for register 35.
18537 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
18538 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
18539 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
18540 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
18541 is eliminable using stack pointer or hard frame pointer.
18542 (REGISTER_NAMES): Added name for register 35.
18543 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
18544 pointless sanity check.
18545
18546 2004-07-19 Roger Sayle <roger@eyesopen.com>
18547
18548 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
18549 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
18550 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
18551 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
18552 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
18553 (fold_relational_const): Tidy up handling of floating point
18554 comparisons by calling real_compare. Remove tree_expr_nonzero_p
18555 transformation; fold_relational_const assumes constant operands.
18556
18557 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
18558
18559 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
18560 directory.
18561
18562 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
18563
18564 * c-tree.h (struct c_expr): Define.
18565 (C_SET_EXP_ORIGINAL_CODE): Remove.
18566 (parser_build_binary_op, build_compound_expr): Update prototypes.
18567 * c-parse.in (%union): Add exprtype.
18568 (FUNC_NAME): Mark as ttype.
18569 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
18570 exprtype.
18571 (expr): Update. Define directly in terms of expr_no_commas
18572 instead of using nonnull_exprlist.
18573 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
18574 offsetof_member_designator, typespec_nonreserved_nonattr, init,
18575 initval, designator, component_declarator,
18576 component_notype_declarator, enumerator, array_declarator,
18577 condition, exexpr, switch_statement, stmt_nocomp, stmt,
18578 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
18579 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
18580 where appropriate.
18581 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
18582 * c-common.c (c_common_truthvalue_conversion): Don't check
18583 C_EXP_ORIGINAL_CODE.
18584 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
18585 Don't use C_EXP_ORIGINAL_CODE.
18586 (default_conversion, default_function_array_conversion): Don't use
18587 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
18588 (internal_build_compound_expr): Merge into build_compound_expr.
18589 (build_compound_expr): Take two operands instead of a TREE_LIST.
18590 * objc/objc-act.c (get_super_receiver): Update calls to
18591 build_compound_expr.
18592
18593 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
18594
18595 * config/sh/sh.c (sh_use_dfa_interface): Remove.
18596 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
18597 hook_int_void_1.
18598 * config/sh/sh.md: Extract pipeline descriptions
18599 into separate files.
18600 * config/sh/sh1.md: New file, extracted from sh.md.
18601 * config/sh/sh4.md: New file, extracted from sh.md.
18602 * config/sh/shmedia.md: New file, extracted from sh.md
18603 and rewritten using new-style pipeline description.
18604
18605 2004-07-18 Zack Weinberg <zack@codesourcery.com>
18606
18607 * config/pa/pa.md: Delete the two remaining define_peephole
18608 patterns.
18609
18610 2004-07-18 Steven Bosscher <stevenb@suse.de>
18611 Joseph S. Myers <jsm@polyomino.org.uk>
18612
18613 * c-common.c (c_common_truthvalue_conversion): Don't warn if
18614 TREE_NO_WARNING is set.
18615
18616 2004-07-18 Roger Sayle <roger@eyesopen.com>
18617
18618 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
18619 simplify_builtin_strncmp): Delete.
18620 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
18621 Change argument to accept an arglist instead of an "exp". Assume
18622 that the return type is always integer_type_node. Copy missing
18623 transformations from their now obsolete simplify_builtin_*
18624 equivalents.
18625 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
18626 fold_builtin_strcmp and fold_builtin_strncmp.
18627 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
18628 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
18629 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
18630
18631 2004-07-18 Daniel Jacobowitz <dan@debian.org>
18632
18633 * Makefile.in (tree-alias-common.o): Update dependencies.
18634
18635 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
18636
18637 * cfgloop.c (flow_loop_nested_p): Fix comment.
18638
18639 2004-07-17 Jason Merrill <jason@redhat.com>
18640
18641 PR c++/16115
18642 * stor-layout.c (relayout_decl): New fn.
18643 * tree.h: Declare it.
18644 (DECL_BY_REFERENCE): New macro.
18645
18646 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
18647
18648 * libgcc2.c (__enable_execute_stack): New symbol.
18649 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
18650 and declare __enable_execute_stack.
18651 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
18652 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
18653 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18654 ENABLE_EXECUTE_STACK.
18655 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
18656 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18657 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18658 ENABLE_EXECUTE_STACK.
18659 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18660 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
18661 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18662 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18663 ENABLE_EXECUTE_STACK.
18664 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18665 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18666 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18667 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18668 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
18669 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18670 (sparc64_initialize_trampoline): Likewise.
18671 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
18672
18673 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
18674
18675 * langhooks.h (builtin_function): New langhook.
18676 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
18677 (LANG_HOOKS_INITIALIZER): Update.
18678 * tree.h (builtin_function): Remove.
18679 * doc/tm.texi: Update.
18680 * c-tree.h (builtin_function): Declare.
18681 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
18682 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
18683 config/ia64/ia64.c, config/iq2000/iq2000.c,
18684 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
18685 config/stormy16/stormy16.c: All callers of builtin_function
18686 changed.
18687
18688 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
18689
18690 PR target/16556
18691 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
18692 Remove white space after the backslash.
18693
18694 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
18695
18696 PR rtl-optimization/16294
18697 * resource.c (return_insn_p): New predicate.
18698 (mark_target_live_regs): Use it. Special-case return insns.
18699 (init_resource_info): Use it. Don't scan the epilogue past
18700 a return.
18701
18702 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18703
18704 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
18705 destroy dominance information.
18706 * passes.c (rest_of_handle_loop2): Free dominance information.
18707 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
18708 jump threading.
18709 (thread_jumps): Update dominance information and remove unreachable
18710 blocks.
18711 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
18712 information and remove the unreachable block.
18713
18714 2004-07-17 Graham Stott <graham.stott@btinternet.com>
18715
18716 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
18717
18718 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
18719
18720 * doc/sourcebuild.texi: Remove libf2c entry.
18721
18722 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
18723
18724 * config/i386/i386.md (movv16qi_internal): Fix typo.
18725
18726 2004-07-17 Steven Bosscher <stevenb@suse.de>
18727
18728 * final.c (final_scan_insn): Fix broken commit from previous
18729 patch.
18730
18731 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
18732
18733 * c-typeck.c (parser_build_binary_op): Condition warnings for
18734 X<=Y<=Z on -Wparentheses instead of -Wextra.
18735 * doc/invoke.texi: Update. Document that most of -Wparentheses is
18736 supported for C only.
18737
18738 2004-07-17 Steven Bosscher <stevenb@suse.de>
18739
18740 * cfgcleanup.c (try_simplify_condjump): Don't remove line
18741 notes to avoid unreachable code warnings.
18742 * toplev.c (backend_init): Don't emit line notes for
18743 unreachable code warnings.
18744
18745 * combine.c (distribute_notes): Don't distribute a
18746 REG_VTABLE_REF note.
18747 * final.c (final_scan_insn): Don't handle it.
18748 * rtl.c (reg_note_name): Remove it.
18749 * rtl.h (enum reg_node): Dito.
18750
18751 * emit-rtl.c (force_line_numbers, restore_line_number_status):
18752 Remove.
18753 * rtl.h (force_line_numbers, restore_line_number_status):
18754 Remove prototypes.
18755
18756 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
18757 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
18758 (using_eh_for_cleanups): Also moved here.
18759
18760 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
18761 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
18762 to expand_start_case and add_case_node.
18763 * stmt.c (struct nesting): Cleanup unused fields condition_code,
18764 last_unconditional_cleanup, nominal_type, printname, and
18765 line_number_status.
18766 (struct fixup_goto): Remove.
18767 (struct stmt_status): Remove x_goto_fixup_chain field.
18768 (goto_fixup_chain): Remove.
18769 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
18770 pushcase, pushcase_range): Remove.
18771 (expand_start_bindings_and_block): Don't set unused fields in
18772 the nesting stack.
18773 (expand_start_case, add_case_node): Cleanup unused formal arguments.
18774 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
18775 instead of emit_jump_if_reachable.
18776 (emit_case_nodes): Likewise.
18777 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
18778 static.
18779 (update_eh_label): Work around left-over exception handing regions.
18780 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
18781 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
18782 (pass_cleanup_cfg_post_optimizing): New pass.
18783 (init_tree_optimization_passes): Run the new pass after all
18784 optimizations.
18785 * tree.h (pushcase, pushcase_range): Remove prototypes.
18786 (expand_start_case, add_case_node): Update prototypes.
18787
18788 2004-07-16 Krister Walfridsson <cato@df.lth.se>
18789
18790 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
18791
18792 2004-07-16 Richard Henderson <rth@redhat.com>
18793
18794 * builtins.c (std_expand_builtin_va_arg): Remove.
18795 (expand_builtin_va_arg): Remove.
18796 * expr.h: Don't declare them.
18797 * gimplify.c (mark_decls_volatile_r): Remove.
18798 (copy_if_shared_r): Don't call it.
18799 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
18800 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
18801 * gimple-low.c (lower_stmt): Likewise.
18802 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
18803 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
18804 * tree-ssa-operands.c (get_expr_operands): Likewise.
18805 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
18806 EXPAND_BUILTIN_VA_ARG.
18807 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
18808 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
18809 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
18810 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
18811
18812 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
18813
18814 * tree-ssa-pre.c (insert_aux): Break out if we hit
18815 a critical edge.
18816
18817 2004-07-16 Richard Henderson <rth@redhat.com>
18818
18819 * basic-block.h (remove_fake_exit_edges): Declare.
18820 * cfganal.c (remove_fake_predecessors): Rename from
18821 remove_fake_successors; iterate over predecessors.
18822 (remove_fake_exit_edges): New.
18823 * cfgcleanup.c (try_optimize_cfg): Use it.
18824 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
18825 * predict.c (estimate_probability): Likewise.
18826 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
18827 * tree-cfg.c (make_edges): Likewise.
18828 * tree-ssa-pre.c (fini_pre): Likewise.
18829 * profile.c (instrument_edges): Don't remove_fake_edges.
18830 (branch_prob): Do it earlier here.
18831
18832 2004-07-16 Richard Henderson <rth@redhat.com>
18833
18834 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
18835 switchification wrt CONSTRUCTOR. Document the reason.
18836
18837 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
18838
18839 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
18840 that prevented descriptive __mf_check source location strings.
18841
18842 2004-07-16 Richard Henderson <rth@redhat.com>
18843
18844 * tree-def (WITH_SIZE_EXPR): New.
18845 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
18846 * expr.c (expand_expr_real_1): Likewise.
18847 * gimplify.c (maybe_with_size_expr): New.
18848 (gimplify_arg, gimplify_modify_expr): Use it.
18849 (gimplify_modify_expr_to_memcpy): Take size parameter.
18850 (gimplify_modify_expr_to_memset): Likewise.
18851 (gimplify_expr): Handle WITH_SIZE_EXPR.
18852 * tree-alias-common.c (find_func_aliases): Likewise.
18853 * tree-eh.c (tree_could_trap_p): Likewise.
18854 (tree_could_throw_p): Likewise.
18855 * tree-gimple.c (is_gimple_lvalue): Likewise.
18856 (get_call_expr_in): Likewise.
18857 * tree-inline.c (estimate_num_insns_1): Likewise.
18858 (expand_calls_inline): Likewise.
18859 * tree-nested.c (convert_call_expr): Likewise.
18860 * tree-pretty-print.c (dump_generic_node): Likewise.
18861 * tree-sra.c (sra_walk_expr): Likewise.
18862 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
18863 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
18864 * tree-ssa-operands.c (get_expr_operands): Likewise.
18865 * tree-tailcall.c (find_tail_calls): Likewise.
18866
18867 * calls.c (expand_call): Reset old_stack_allocated after
18868 calling emit_stack_restore.
18869
18870 2004-07-16 Richard Henderson <rth@redhat.com>
18871
18872 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
18873 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
18874 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
18875 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
18876 copy_res_decl_for_inlining.
18877
18878 * tree-inline.c (declare_return_variable): New modify_dest argument.
18879 Use it as the return value, when possible or manditory. Handle
18880 TREE_ADDRESSABLE types.
18881 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
18882 replacement of CALL_EXPR.
18883
18884 2004-07-16 Richard Henderson <rth@redhat.com>
18885
18886 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
18887 * gimple-low.c (expand_var_p): Don't check it.
18888 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
18889 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
18890 * tree-ssa-operands.c (add_stmt_operand): Likewise.
18891 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
18892 (find_referenced_vars): Don't call them.
18893 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
18894
18895 2004-07-16 Richard Henderson <rth@redhat.com>
18896
18897 * function.c (pass_by_reference): True for all variable sized types.
18898
18899 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
18900
18901 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
18902 * tree-pretty-print.c: Include tree-chrec.h.
18903 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
18904 and POLYNOMIAL_CHREC nodes.
18905
18906 2004-07-16 Steve Ellcey <sje@cup.hp.com>
18907
18908 * builtins.c (expand_builtin_stpcpy): Do not create temporary
18909 reg with VOIDmode.
18910
18911 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
18912
18913 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
18914
18915 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
18916
18917 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
18918 to BASE_REGNUM.
18919 * config/s390/s390.c: Likewise.
18920 * config/s390/s390.h: Likewise.
18921
18922 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18923
18924 * config/mips/mips.md (addsi3, adddi3): Remove special handling
18925 of $sp adds. Remove REGNO checks from mips16 patterns.
18926
18927 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18928
18929 * config/mips/mips.md: Delete outdated comment.
18930
18931 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18932
18933 * config/mips/mips.c (get_float_compare_codes): Delete.
18934 (mips_emit_compare): New function, mostly extracted from
18935 get_float_compare_codes and gen_conditional_branch.
18936 (gen_conditional_branch, gen_conditional_move): Use it.
18937
18938 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
18939
18940 * genautomata.c (add_vect): Speedup by using integers as
18941 bit-vectors for walking through the comb_vect and finding
18942 a match.
18943
18944 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18945
18946 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
18947 operand is an uns_arith_operand; use subtraction otherwise.
18948 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
18949 not just arith_operands.
18950
18951 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18952
18953 * config/mips/mips-protos.h (gen_int_relational): Delete.
18954 (mips_emit_scc): Declare.
18955 * config/mips/mips.c (internal_test): Delete.
18956 (sle_operand, sleu_operand): New functions.
18957 (map_test_to_internal_test, gen_int_relational): Delete.
18958 (mips_emit_binary, mips_relational_operand_ok_p)
18959 (mips_emit_int_relational, mips_zero_if_equal)
18960 (mips_emit_scc): New functions.
18961 (gen_conditional_branch): Rework to use mips_emit_int_relational.
18962 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
18963 sleu_operand.
18964 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
18965 (sltu, sleu): Use mips_emit_scc.
18966 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
18967 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
18968 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
18969
18970 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18971
18972 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
18973
18974 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18975
18976 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
18977 (*sne_[sd]i): Likewise sne_[sd]i_zero.
18978 (*sgt_[sd]i): ...and sgt_[sd]i.
18979 (*slt_[sd]i): ...and slt_[sd]i.
18980 (*sgtu_[sd]i): ...and sgtu_[sd]i.
18981 (*sltu_[sd]i): ...and sltu_[sd]i.
18982 (*sleu_[sd]i): ...and sleu_[sd]i_const.
18983 Name previously unnamed mips16 patterns. Formatting fixes.
18984
18985 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18986
18987 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
18988 (branch_type): Delete.
18989 (gen_conditional_branch, gen_conditional_move)
18990 (mips_gen_conditional_trap): Update after name change. Get the
18991 comparison mode from cmp_operands[0].
18992 * config/mips/mips.h (cmp_type, branch_type): Delete.
18993 (cmp_operands): Renamed from branch_cmp.
18994 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
18995 name change. Don't set branch_type.
18996 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
18997 mode class of cmp_operands[0] rather than branch_type. Update after
18998 name change.
18999
19000 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
19001
19002 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
19003 of 0...255 to 0 when inside a SET.
19004
19005 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
19006
19007 * config/mips/mips.md: Remove mips16 define_peepholes.
19008
19009 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
19010
19011 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
19012 (fini_pre): Remove fake edges.
19013
19014 2004-07-15 Richard Henderson <rth@redhat.com>
19015
19016 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
19017 (get_indirect_ref_operands, get_call_expr_operands): ... these.
19018
19019 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
19020
19021 * vec.h (VEC_address): New function.
19022
19023 2004-07-14 Jason Merrill <jason@redhat.com>
19024
19025 PR middle-end/15885
19026 * gimplify.c (gimplify_arg): New fn, split out from...
19027 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
19028
19029 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
19030
19031 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
19032 generate code which is generated by pushqi1 now
19033 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
19034
19035 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
19036
19037 * combine.c (simplify_set): match the mode of the constant 0 with
19038 the tested operand to match the compare behaviour and the
19039 simplify_relational_operation() expectation.
19040
19041 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
19042
19043 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
19044 ("bordered"): Same.
19045
19046 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
19047
19048 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
19049 unconditionally.
19050 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
19051
19052 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
19053
19054 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
19055 calls in mips16 code.
19056
19057 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
19058
19059 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
19060 the destination of the li as well as for the neg.
19061
19062 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
19063
19064 g++/15861
19065 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
19066 * cgraph.h: Update declaration.
19067 * c-decl.c (build_cdtor): Update call with default priority.
19068 * coverage.c (create_coverage): Ditto.
19069 * tree-mudflap.c (mf_init_fndecl): New tree.
19070 (mudflap_init): Set it.
19071 (mudflap_register_call): Arrange to call __mf_init before the first
19072 __mf_register call.
19073 (mudflap_finish_file): Mark the mudflap static initializer as extra
19074 high priority, to beat all C++ static constructors.
19075
19076 2004-07-15 Jeff Law <law@redhat.com>
19077
19078 * loop.c (check_insn_for_givs): Restore check for code labels that was
19079 accidentally deleted by a recent checkin.
19080
19081 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
19082
19083 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
19084 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
19085
19086 2004-07-14 Richard Henderson <rth@redhat.com>
19087
19088 * print-tree.c (print_node): Fix casts last change.
19089
19090 2004-07-15 Paul Brook <paul@codesourcery.com>
19091
19092 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
19093 to TARGET_UNWIND_INFO.
19094 * except.c (output_function_exception_table): Ditto.
19095 * except.h: Ditto.
19096 * opts.c (decode_options): Ditto.
19097 * passes.c (rest_of_handle_final): Ditto.
19098 * final.c (final_start_function): Ditto.
19099 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
19100 target hook.
19101 * targhooks.h (default_unwind_emit): Declare.
19102 * targhooks.c (default_unwind_emit): New function.
19103 * target-def.h: Define and use TARGET_UNWIND_EMIT.
19104 * target.h (struct gcc_target): Add unwind_emit.
19105 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
19106 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
19107 Remove IA64_UNWIND_EMIT.
19108 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
19109
19110 2004-07-14 Richard Henderson <rth@redhat.com>
19111
19112 * print-tree.c (print_node): Handle SSA_NAME.
19113
19114 2004-07-14 James E Wilson <wilson@specifixinc.com>
19115
19116 PR target/16325
19117 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
19118 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
19119
19120 2004-07-15 Jakub Jelinek <jakub@redhat.com>
19121
19122 * expr.c (expand_assignment): Reenable bitfield += optimizations.
19123 Use alias set 0 for memory, do proper mode calculations and adjust
19124 address for memories.
19125
19126 2004-07-14 Per Bothner <per@bothner.com>
19127
19128 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
19129 structure with extra column field.
19130 * tree.c (expand_location): Also fill in column field.
19131 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
19132 gets confused by the two conditionally-compiled definitions.
19133
19134 2004-07-14 Eric Christopher <echristo@redhat.com>
19135
19136 * calls.c (expand_call): Fix typo in comment.
19137
19138 2004-07-14 Steve Ellcey <sje@cup.hp.com>
19139
19140 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
19141 comparision of TFmode.
19142
19143 2004-07-14 Richard Henderson <rth@redhat.com>
19144
19145 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
19146 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
19147 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
19148 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
19149 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
19150 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
19151 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
19152 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
19153 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
19154
19155 2004-07-14 Mike Stump <mrs@apple.com>
19156
19157 * config/darwin.h (WINT_TYPE): Define to be int to match
19158 system header files.
19159
19160 2004-07-14 Bob Wilson <bob.wilson@acm.org>
19161
19162 * config/xtensa/xtensa.c (function_arg_advance): Check for args
19163 that must be passed in the stack.
19164 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
19165 arguments if the size is not a constant.
19166
19167 2004-07-14 Per Bothner <per@bothner.com>
19168
19169 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
19170 instead of EXPR_LOCUS in a boolean context, which is always true
19171 if --enable-mapped-location.
19172 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
19173
19174 2004-07-14 Richard Henderson <rth@redhat.com>
19175
19176 * dominance.c (struct dom_info): Add fake_exit_edge.
19177 (init_dom_info): Allocate it.
19178 (free_dom_info): Free it.
19179 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
19180 in two passes.
19181 (calc_idoms): Honor fake_exit_edge.
19182
19183 2004-07-13 Jason Merrill <jason@redhat.com>
19184
19185 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
19186 (rhs_test_for): New fn.
19187 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
19188 * tree-gimple.h: Declare them.
19189 * gimplify.c (gimplify_modify_expr): Use the new fns.
19190
19191 2004-07-14 Richard Henderson <rth@redhat.com>
19192
19193 * config/arm/arm-protos.h (arm_va_arg): Remove.
19194 * config/arm/arm.c (arm_va_arg): Remove.
19195 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
19196 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
19197
19198 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19199
19200 * pa.c (fix_range): New function to mark a range(s) of registers as
19201 fixed registers.
19202 (override_options): Call fix_range if the -mfixed-range option string
19203 is not empty.
19204 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
19205 * doc/invoke.texi (-mfixed-range): Document new option.
19206
19207 2004-07-14 David Edelsohn <edelsohn@gnu.org>
19208
19209 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
19210 for TARGET_64BIT.
19211 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
19212
19213 2004-07-14 Roger Sayle <roger@eyesopen.com>
19214
19215 * expmed.c (expand_sdiv_pow2): New function to expand signed division
19216 by a positive power of two, split out from expand_divmod. Provide
19217 an alternate implementation when shifts are expensive. Lower the
19218 threshold for using a branchless implementation to BRANCH_COST >= 2.
19219 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
19220
19221 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
19222
19223 * tree-dfa.c (make_rename_temp): *Really* work just
19224 like create_tmp_var if called while outside SSA form.
19225
19226 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
19227
19228 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
19229 for division by zero.
19230 ("umodsi3"): Likewise.
19231
19232 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
19233
19234 * config/mips/mips.c (mips_output_move): When generating mips16 code,
19235 force loads of negative constants to be split.
19236 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
19237 Generalize SImode li/neg splitter to cope with other modes.
19238
19239 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
19240
19241 * expmed.c: Remove more references to QUEUED in the comments.
19242 * expr.c: Likewise.
19243
19244 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
19245
19246 Revert:
19247 2004-07-13 Richard Henderson <rth@redhat.com>
19248 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
19249 correctly.
19250
19251 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
19252
19253 * tree-dfa.c (make_rename_temp): Work just like
19254 create_tmp_var if called while outside SSA form.
19255
19256 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
19257
19258 * expr.c (enqueue_insn, finish_expr_for_function,
19259 protect_from_queue, queued_subexp_p, mark_queue,
19260 emit_insns_enqueued_after_mark, emit_queue,
19261 expand_increment): Remove.
19262 (store_constructor): Expand increment as an assignment.
19263 (expand_expr_real_1 <case PREINCREMENT_EXPR,
19264 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
19265 case POSTDECREMENT_EXPR>): Abort.
19266 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
19267 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
19268 protect_from_queue, emit_queue, queued_subexp_p): Remove.
19269 * function.h (pending_chain, x_pending_chain): Remove.
19270 * rtl.def (QUEUED): Remove.
19271
19272 * emit-rtl.c (copy_insn_1, copy_most_rtx,
19273 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
19274 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
19275 encode_units_mask): Likewise.
19276 * local-alloc.c (equiv_init_varies_p): Likewise.
19277 * rtl.c (copy_rtx): Likewise.
19278 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
19279 * simplify-rtx.c (simplify_gen_subreg): Likewise.
19280 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
19281
19282 * builtins.c (expand_builtin, expand_builtin_apply,
19283 expand_builtin_mathfn, expand_builtin_mathfn_2,
19284 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
19285 Remove calls to emit_queue and protect_from_queue.
19286 * calls.c (expand_call, precompute_arguments,
19287 precompute_register_parameters, rtx_for_function_call,
19288 store_one_arg): Likewise.
19289 * dojump.c (do_compare_and_jump, do_jump): Likewise.
19290 * explow.c (memory_address): Likewise.
19291 * expmed.c (clear_by_pieces_1, clear_storage,
19292 clear_storage_via_libcall, emit_group_load,
19293 emit_group_store, emit_store_flag,
19294 expand_expr_real_1, store_by_pieces,
19295 store_constructor, store_expr, try_casesi,
19296 try_tablejump): Likewise.
19297 * function.c (expand_pending_sizes): Likewise.
19298 * optabs.c (emit_cmp_and_jump_insns,
19299 emit_conditional_add, emit_conditional_move,
19300 expand_fix, expand_float, prepare_cmp_insn): Likewise.
19301 * stmt.c (emit_case_bit_tests,
19302 expand_asm_expr, expand_computed_goto,
19303 expand_decl_init, expand_end_case_type,
19304 expand_end_stmt_expr, expand_expr_stmt_value,
19305 expand_return, expand_start_case,
19306 optimize_tail_recursion): Likewise.
19307 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
19308 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
19309
19310 2004-07-14 Ben Elliston <bje@au.ibm.com>
19311
19312 * vec.h: Comment fix.
19313
19314 2004-07-13 Richard Henderson <rth@redhat.com>
19315
19316 * target.h (struct gcc_target): Add calls.pass_by_reference.
19317 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
19318 * function.c (pass_by_reference): Use the hook.
19319 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
19320 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
19321 (hook_pass_by_reference_must_pass_in_stack): New.
19322 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
19323 (alpha_pass_by_reference): New.
19324 (TARGET_PASS_BY_REFERENCE): New.
19325 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19326 * config/arc/arc.c (arc_pass_by_reference): New.
19327 (TARGET_PASS_BY_REFERENCE): New.
19328 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19329 (FUNCTION_ARG_CALLEE_COPIES): True.
19330 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
19331 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
19332 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
19333 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19334 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19335 * config/cris/cris.c (cris_pass_by_reference): New.
19336 (TARGET_PASS_BY_REFERENCE): New.
19337 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
19338 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
19339 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19340 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
19341 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19342 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
19343 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
19344 (frv_function_arg_pass_by_reference): Remove.
19345 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19346 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
19347 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
19348 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
19349 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19350 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
19351 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
19352 (ia64_pass_by_reference): Rename from
19353 ia64_function_arg_pass_by_reference.
19354 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19355 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19356 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
19357 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
19358 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
19359 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19360 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
19361 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
19362 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
19363 (m32r_pass_by_reference): Adjust prototype. Make static.
19364 Handle mode sizes correctly.
19365 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19366 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
19367 (m68hc11_function_arg_pass_by_reference): Remove.
19368 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19369 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
19370 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
19371 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19372 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
19373 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
19374 (mips_va_arg): Use pass_by_reference.
19375 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
19376 Handle mode sizes correctly.
19377 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19378 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
19379 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
19380 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
19381 (mmix_pass_by_reference): Rename from
19382 mmix_function_arg_pass_by_reference.
19383 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19384 (FUNCTION_ARG_CALLEE_COPIES): True.
19385 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
19386 (mn10300_pass_by_reference): New.
19387 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19388 (FUNCTION_ARG_CALLEE_COPIES): True.
19389 * config/pa/pa.c (pa_pass_by_reference): New.
19390 (TARGET_PASS_BY_REFERENCE): New.
19391 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19392 (FUNCTION_ARG_CALLEE_COPIES): True.
19393 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
19394 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
19395 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
19396 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19397 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
19398 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
19399 (s390_pass_by_reference): Rename from
19400 s390_function_arg_pass_by_reference.
19401 (s390_function_arg_advance): Don't query pass-by-ref.
19402 (s390_function_arg): Likewise.
19403 (s390_gimplify_va_arg): Use pass_by_reference.
19404 (s390_call_saved_register_used): Likewise.
19405 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19406 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
19407 (shcompact_byref, sh_pass_by_reference): New.
19408 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19409 (SHCOMPACT_BYREF): Remove.
19410 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
19411 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
19412 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
19413 (sparc_gimplify_va_arg): Use pass_by_reference.
19414 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19415 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19416 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
19417 (v850_pass_by_reference): New.
19418 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19419 (FUNCTION_ARG_CALLEE_COPIES): True.
19420 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
19421 FUNCTION_ARG_PASS_BY_REFERENCE docs.
19422
19423 2004-07-14 Richard Henderson <rth@redhat.com>
19424 Richard Sandiford <rsandifo@redhat.com>
19425
19426 * config/mips/mips-protos.h (mips_va_arg): Delete.
19427 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
19428 * config/mips/mips.c: Include tree-gimple.h.
19429 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19430 (mips_arg_info): Remove special handling of must_pass_in_stck args.
19431 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
19432 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
19433
19434 2004-07-13 Bob Wilson <bob.wilson@acm.org>
19435
19436 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
19437 arguments for COND_EXPR in big-endian adjustment code.
19438
19439 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19440
19441 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
19442 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
19443 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
19444 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
19445
19446 2004-07-13 Diego Novillo <dnovillo@redhat.com>
19447
19448 PR tree-optimization/16443
19449 * tree-ssa-alias.c: Add more description for
19450 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
19451 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
19452 clobbering of call-clobbered and addressable variables. If
19453 there are any before aliases have been computed, add them.
19454
19455 2004-07-13 Diego Novillo <dnovillo@redhat.com>
19456
19457 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
19458 verification.
19459
19460 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
19461
19462 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
19463 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
19464 to the same type.
19465
19466 2004-07-13 Per Bothner <per@bothner.com>
19467
19468 * collect2.c (main): Handle --no-demangle and --demangle flags.
19469
19470 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
19471
19472 * Makefile.in (OBJS-common): Add tree-data-ref.o.
19473 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
19474 (tree-data-ref.o): New rule.
19475 * lambda.h: New file.
19476 * tree-data-ref.c: New file.
19477 * tree-data-ref.h: New file.
19478 * tree.c (int_cst_value, tree_fold_gcd): New functions.
19479 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
19480
19481 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
19482
19483 PR target/13926
19484 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
19485 * config/sparc/sparc.c (output_ubranch): New function.
19486 * config/sparc/sparc.md (jump pattern): Use it.
19487
19488 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
19489
19490 PR target/16494
19491 * config/sparc/sparc.c (output_cbranch): Properly guard
19492 the code handling far branches with TARGET_V9.
19493 * config/sparc/sparc.md (length attribute): Document the
19494 side-effect of having a length greater or equal to 3.
19495
19496 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
19497 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
19498
19499 PR target/15186
19500 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
19501 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
19502
19503 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
19504 Martin Sebor <sebor@roguewave.com>
19505
19506 PR target/12602
19507 * doc/invoke.texi (SPARC options): Document -threads
19508 and -pthreads on Solaris.
19509
19510 2004-07-13 Richard Henderson <rth@redhat.com>
19511
19512 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
19513 by reference.
19514 (ind_gimplify_va_arg_expr): Remove.
19515 * tree.h (ind_gimplify_va_arg_expr): Remove.
19516 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
19517 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
19518 argsp to be null.
19519
19520 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
19521 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
19522 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
19523 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
19524 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
19525
19526 2004-07-13 Richard Henderson <rth@redhat.com>
19527
19528 * function.c (pass_by_reference): New.
19529 (assign_parm_find_data_types): Use it.
19530 * calls.c (initialize_argument_information): Likewise.
19531 (emit_library_call_value_1): Likewise.
19532 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19533 * function.h (pass_by_reference): Declare.
19534
19535 2004-07-13 Richard Henderson <rth@redhat.com>
19536
19537 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
19538 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
19539 * expr.h (MUST_PASS_IN_STACK): Remove.
19540 * system.h (MUST_PASS_IN_STACK): Poison.
19541 * tree.h (must_pass_in_stack_var_size): Declare.
19542 (must_pass_in_stack_var_size_or_pad): Declare.
19543 * calls.c (must_pass_in_stack_var_size): New.
19544 (must_pass_in_stack_var_size_or_pad): Rename from
19545 default_must_pass_in_stack.
19546 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
19547 (TARGET_MUST_PASS_IN_STACK): New.
19548 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
19549 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
19550 (TARGET_MUST_PASS_IN_STACK): New.
19551 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
19552 * config/frv/frv.c (frv_must_pass_in_stack): New.
19553 (TARGET_MUST_PASS_IN_STACK): New.
19554 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
19555 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
19556 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
19557 (ix86_must_pass_in_stack): Make static.
19558 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
19559 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
19560 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
19561 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
19562 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
19563 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
19564 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
19565 (mcore_must_pass_on_stack): Remove.
19566 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
19567 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
19568 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
19569 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
19570 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
19571 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
19572 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
19573 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
19574 (TARGET_MUST_PASS_IN_STACK): New.
19575 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
19576 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
19577 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
19578 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
19579 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
19580 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
19581 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
19582 MUST_PASS_IN_STACK.
19583
19584 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
19585 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
19586 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
19587 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
19588 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
19589 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
19590 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
19591 config/xtensa/xtensa.c: Use target hook.
19592
19593 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
19594
19595 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
19596 * configure: Rebuilt.
19597
19598 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
19599
19600 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
19601 * config/mips/mips.h (mips_reg_names): Don't declare.
19602 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
19603 (TARGET_NAME_REGS): Delete.
19604 (TARGET_SWITCHES): Remove -mrnames.
19605 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
19606 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
19607 in REGISTER_NAMES.
19608 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
19609 (override_options): Remove handling of TARGET_NAME_REGS.
19610
19611 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
19612
19613 * config/mips/mips.h (TARGET_*): Boolify.
19614
19615 2004-07-12 Nick Clifton <nickc@redhat.com>
19616
19617 * config.gcc: Add sh-*-symbianelf target.
19618 * config/sh/sh.c: Add new target macros:
19619 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
19620 TARGET_CXX_IMPORT_EXPORT_CLASS.
19621 (sh_file_start): Create a definition of the .directive section.
19622 (sh_attribute): Add dllimport and dllexport attributes.
19623 * config/sh/symbian-pre.h: New file.
19624 * config/sh/symbian-post.h: New file.
19625 * config/sh/symbian.c: New file. Contains Symbian specific
19626 functions.
19627 * config/sh/sh-protos.h: Add prototypes for new functions
19628 provided by symbian.c.
19629 * config/sh/t-symbian: New file.
19630 * doc/extend.texi: Document support for dllimport and dllexport
19631 attributes by the sh-symbianelf target.
19632
19633 2004-07-12 James E Wilson <wilson@specifixinc.com>
19634
19635 * Makefile.in (AR): Use @AR@ not ar.
19636 (NM): New.
19637 (AR_FOR_TARGET): Use $(AR) not ar for native.
19638 (NM_FOR_TARGET): Use $(NM) not nm for native.
19639 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
19640 * configure: Regenerate.
19641
19642 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
19643
19644 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
19645 special case.
19646 (ashldi3_sp64): Likewise.
19647
19648 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19649
19650 PR target/16477
19651 * pa.c (function_arg): Update comment.
19652 * pa.h (BLOCK_REG_PADDING): Define.
19653
19654 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19655
19656 PR tree-optimization/16461
19657 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
19658 arguments of phi nodes.
19659
19660 2004-07-12 Devang Patel <dpatel@apple.com>
19661
19662 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
19663
19664 2004-07-12 Steve Ellcey <sje@cup.hp.com>
19665
19666 * function.c (expand_function_start): Ensure r_save is in Pmode.
19667 * calls.c (prepare_call_address): Ensure static_chain_value is
19668 in Pmode.
19669 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
19670 r_save_area are in Pmode.
19671 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
19672 fnaddr, and static_chain are in Pmode.
19673
19674 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
19675
19676 PR target/16445
19677 * config/ia64/ia64.c (bundling): Don't count ignored insns.
19678
19679 2004-07-12 Richard Henderson <rth@redhat.com>
19680
19681 * target.h (struct gcc_target): Move gimplify_va_arg_expr
19682 next to build_builtin_va_list.
19683 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
19684 * builtins.c (gimplify_va_arg_expr): Likewise.
19685 * gimplify.c (copy_if_shared_r): Likewise.
19686
19687 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
19688
19689 * passes.c (rest_of_decl_compilation): Don't defer call of
19690 assemble_variable if its DECL_RTL is already set.
19691
19692 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
19693
19694 * cfgloop.h (struct loop): Add nb_iterations field.
19695 (current_loops): Declare.
19696 * tree-chrec.c (chrec_not_analyzed_yet,
19697 chrec_dont_know, chrec_known, count_ev_in_wider_type,
19698 chrec_contains_symbols_defined_in_loop): Remove the temporary
19699 hooks.
19700 * tree-flow-inline.h (loop_containing_stmt): New function.
19701 * tree-scalar-evolution.c: Add implementation.
19702 * tree-scalar-evolution.h: Add declarations.
19703
19704 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
19705
19706 PR rtl-optimization/15921
19707 * Makefile.in (global.o): Add recog.h.
19708
19709 * global.c (recog.h): Add the include-clause.
19710 (bb_info): New member earlyclobber.
19711 (allocate_bb_info, free_bb_info): Initialize/finish the new
19712 member.
19713 (earlyclobber_regclass, earlyclobber_regclass_length): The new
19714 global variables.
19715 (check_earlyclobber, regclass_intersect,
19716 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
19717 New functions.
19718 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
19719 (make_accurate_live_analysis): Modify pavin.
19720
19721 2004-07-12 Diego Novillo <dnovillo@redhat.com>
19722
19723 * tree-cfg.c (find_taken_edge): Statically compute the truth
19724 value of a predicate comparing an SSA_NAME to itself.
19725
19726 2004-07-12 Roger Sayle <roger@eyesopen.com>
19727
19728 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
19729 rs6000 doesn't have shift-and-add or shift-and-sub instructions
19730 by returning the cost of a multiplication plus an addition.
19731
19732 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
19733
19734 PR tree-optimization/14107
19735 * gimplify.c (gimplify_return_expr): Accept a
19736 RETURN_EXPR with an error argument.
19737 * tree-optimize.c (init_tree_optimization_passes):
19738 Run pass_warn_function_return at -O0.
19739
19740 2004-07-12 Roger Sayle <roger@eyesopen.com>
19741
19742 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
19743 index entry.
19744
19745 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
19746
19747 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
19748 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
19749 * config/mips/3000.md: Add copyright notice. Remove automota and
19750 function units; use generic ones instead. Only define reservations
19751 for things that are different from generic.md. Extend each clause
19752 to include r3900.
19753 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
19754 * config/mips/mips.md: Include them. Remove define_function_units.
19755 (alu, imuldiv): New automata and units.
19756
19757 2004-07-12 Ben Elliston <bje@au.ibm.com>
19758
19759 * doc/invoke.texi (Optimize Options): Document -frename-registers
19760 not being enabled by default at -O3.
19761
19762 2004-07-11 Roger Sayle <roger@eyesopen.com>
19763
19764 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
19765 floating point additions, to keep real immediate constant positive.
19766 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
19767 into X + C, and leave positive real constants as X - C.
19768
19769 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19770
19771 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
19772
19773 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19774
19775 PR tree-optimization/15654
19776 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
19777
19778 2004-07-11 Roger Sayle <roger@eyesopen.com>
19779
19780 * builtins.c (fold_builtin_fputs): Don't bother converting the
19781 return type to integer_type_node, as we've already checked that
19782 the result will be ignored.
19783
19784 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
19785 that signed addition, subtraction, multiplication, division,
19786 remainder, negation and absolute value may potentially trap.
19787
19788 * fold-const.c (fold_ignored_result): New function to strip
19789 non-side-effecting tree nodes from an expression whose result
19790 is ignored.
19791 (fold_convert): Call fold_ignored_result when casting a value
19792 to VOID_TYPE.
19793 (omit_one_operand): Call fold_ignored_result on the "omitted"
19794 operand when building a COMPOUND_EXPR.
19795 (pedantic_omit_one_operand): Likewise.
19796 * tree.h (fold_ignored_result): Prototype here.
19797 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
19798 when we're going to ignore the result.
19799
19800 2004-07-11 Richard Henderson <rth@redhat.com>
19801
19802 PR tree-opt/16383
19803 * tree-ssa-ccp.c (fold_stmt_r): Split out...
19804 * tree.c (fields_compatible_p, find_compatible_field): ... new.
19805 * tree.h (fields_compatible_p, find_compatible_field): Declare.
19806 * tree-sra.c (sra_hash_tree): Hash fields by offset.
19807 (sra_elt_eq): Use fields_compatible_p.
19808 (generate_one_element_ref): Use find_compatible_field.
19809
19810 2004-07-11 Richard Henderson <rth@redhat.com>
19811
19812 PR tree-opt/16422
19813 * tree-sra.c (generate_one_element_init): New.
19814 (generate_element_init): Use it.
19815 (scalarize_init): Push/pop gimplify context around it.
19816 (find_new_referenced_vars_1, find_new_referenced_vars): New.
19817 * gimplify.c (gimplify_expr): Allow SSA_NAME.
19818
19819 2004-07-11 Roger Sayle <roger@eyesopen.com>
19820
19821 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
19822 combine.c's combine_insn_cost.
19823 * rtl.h (insn_rtx_cost): Prototype here.
19824 * combine.c (combine_insn_cost): Delete function.
19825 (combine_validate_cost): Update callers of combine_insn_cost to
19826 call insn_rtx_cost instead.
19827 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
19828 requesting the rtx_cost of call and/or jump instructions.
19829
19830 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
19831 rtx_cost directly. Don't request/use the cost of call or jump
19832 instructions. Return -1 if the cost of any instruction can't be
19833 determined (or the BB contains a function call).
19834 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
19835 -1 (i.e. can't determine the cost of any instruction or the basic
19836 block contains a subroutine call).
19837 (find_if_case_2): Likewise.
19838
19839 2004-07-11 Roger Sayle <roger@eyesopen.com>
19840
19841 * rs6000.c (struct processor_costs): Change semantics of fields to
19842 include the COST_N_INSNS scaling, and update all initializers.
19843 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
19844 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
19845 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
19846 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
19847
19848 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19849
19850 * LANGUAGES: Remove obsolete information.
19851
19852 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
19853
19854 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
19855 SIGBUS signal frames, the PSW address points *to* the faulting
19856 instruction, not after it.
19857
19858 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
19859
19860 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
19861 added to TLS symbol addresses.
19862
19863 2004-07-11 Richard Henderson <rth@redhat.com>
19864
19865 * expmed.c (init_expmed): Use stack-local structures for
19866 temporary rtl. Don't recognize shifts.
19867
19868 2004-07-11 Richard Henderson <rth@redhat.com>
19869
19870 * expr.c (store_expr): Don't fiddle subreg promotion for types
19871 with precision smaller than the mode.
19872
19873 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19874
19875 * tree.h (all_types_permanent): Remove.
19876
19877 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19878
19879 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
19880 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
19881 * langhooks.c (lhd_clear_binding_stack): Remove.
19882 * langhooks-def.h (lhd_clear_binding_stack,
19883 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
19884 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
19885 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
19886 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
19887 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
19888 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
19889 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
19890 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
19891 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
19892 * tree.h (poplevel): Don't declare.
19893 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
19894 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
19895 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
19896 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
19897 Remove.
19898
19899 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19900
19901 PR tree-optimization/16437
19902 * c-common.c (shorten_compare): Don't mark result of conversion to
19903 narrower signed type as overflowing.
19904 * fold-const.c (decode_field_reference): Determine whether
19905 signedness comes from outer type using precision rather than size.
19906
19907 2004-07-11 Phil Edwards <phil@codesourcery.com>
19908
19909 * configure.ac: Alphabetize --enable-checking list, add
19910 missing valgrind entry.
19911 * configure: Regenerate.
19912
19913 2004-07-11 Phil Edwards <phil@codesourcery.com>
19914
19915 * doc/install.texi (Testing): Fix syntax in "make check" example.
19916
19917 2004-07-10 James E Wilson <wilson@specifixinc.com>
19918
19919 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
19920
19921 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19922
19923 PR rtl-optimization/16001
19924 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
19925 niter_expr.
19926
19927 2004-07-10 Geoffrey Keating <geoffk@apple.com>
19928
19929 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
19930
19931 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
19932 James Morrison <phython@gcc.gnu.org>
19933
19934 * doc/contrib.texi (Contributors): Add gfortran contributors and
19935 fix a couple of typos.
19936
19937 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19938
19939 PR rtl-optimization/15387
19940 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
19941 to incoming args space correctly.
19942
19943 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19944
19945 * pa.c (output_indirect_call): Only use %r2 as the link register in
19946 indirect calls with the long PA 2.0 pc-relative branch.
19947
19948 2004-07-10 Daniel Jacobowitz <dan@debian.org>
19949
19950 * config/i386/i386.c (override_options): Pick a 64-bit CPU
19951 for the default tuning if TARGET_64BIT.
19952
19953 2004-07-10 Richard Henderson <rth@redhat.com>
19954
19955 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
19956 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
19957
19958 2004-07-10 Jakub Jelinek <jakub@redhat.com>
19959
19960 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
19961 * expmed.c (store_bit_field, extract_bit_field): Remove last
19962 argument.
19963 * builtins.c (expand_builtin_signbit): Adjust callers.
19964 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
19965 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
19966 * ifcvt.c (noce_emit_move_insn): Likewise.
19967 * stmt.c (expand_return): Likewise.
19968 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
19969 store_field, expand_expr_real_1): Likewise.
19970
19971 2004-07-10 Richard Henderson <rth@redhat.com>
19972
19973 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
19974
19975 2004-07-09 Mike Stump <mrs@apple.com>
19976
19977 * config/darwin.c (no_dead_strip): Add.
19978 (HAVE_DEAD_STRIP): Add.
19979 (darwin_emit_unwind_label): Ensure that we don't dead code strip
19980 the .eh label.
19981
19982 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19983
19984 * tree-ssa-loop-im.c: New file.
19985 * Makefile.in (tree-ssa-loop-im.o): Add.
19986 * cfgloop.c (superloop_at_depth): New function.
19987 * cfgloop.h (superloop_at_depth): Declare.
19988 * common.opt (ftree-lim): New flag.
19989 * expr.c (array_ref_up_bound): New function.
19990 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
19991 * timevar.def (TV_LIM): New timevar.
19992 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
19993 computing immediate uses of a phi node.
19994 * tree-flow.h (struct tree_ann_common_d): Add aux field.
19995 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
19996 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
19997 * tree-pass.h (pass_lim): Declare.
19998 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
19999 functions.
20000 (pass_lim): New pass structure.
20001 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
20002 * tree.c (in_array_bounds_p): New function.
20003 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
20004 (in_array_bounds_p, array_ref_up_bound): Declare.
20005 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
20006 * doc/passes.texi (tree-ssa-loop-im.c): Document.
20007
20008 2004-07-09 Richard Henderson <rth@redhat.com>
20009
20010 * builtins.c (expand_builtin_stpcpy): Don't modify len.
20011
20012 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
20013 with prejudice.
20014
20015 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
20016
20017 * flags.h: Delete redundant prototypes that are being generated
20018 in options.h from common.opt.
20019 * common.opt: Add in the expository comments formerly in flags.h.
20020
20021 2004-07-09 Jan Beulich <jbeulich@novell.com>
20022
20023 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
20024 available for use only when TARGET_MMX/_SSE is set, and check for
20025 variable argument function if any register count is non-zero.
20026 (function_arg): Correctly suppress repeated warnings for passing SSE
20027 vectors are arguments without SSE enabled.
20028 (ix86_function_arg_boundary): Without SSE enabled, the use of what
20029 would be SSE register modes does no longer influence the alignment.
20030
20031 2004-07-09 Richard Henderson <rth@redhat.com>
20032
20033 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
20034 Always align upward to arg boundary. Use size_in_bytes/round_up.
20035 Maintain type-correctness of constants.
20036 * stor-layout.c (round_up, round_down): Special-case powers of 2.
20037
20038 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
20039
20040 * config/sparc/sparc.c (*_costs): Scale instruction costs
20041 by COSTS_N_INSNS.
20042 (sparc_rtx_costs): Adjust as appropriate.
20043
20044 2004-07-09 Jan Beulich <jbeulich@novell.com>
20045
20046 * config/i386/mm3dnow.h: New.
20047 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
20048
20049 2004-07-09 Richard Henderson <rth@redhat.com>
20050
20051 * simplify-rtx.c (simplify_const_relational_operation): Only
20052 look at bounds of scalar integers.
20053
20054 2004-07-09 Jan Beulich <jbeulich@novell.com>
20055
20056 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
20057
20058 2004-07-09 Andrew Pinski <apinski@apple.com>
20059
20060 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
20061 always referenced.
20062 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
20063 UOBJC_METACLASS_decl.
20064
20065 2004-07-09 James E Wilson <wilson@specifixinc.com>
20066
20067 PR target/16364
20068 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
20069 do return a parallel if hfa_mode == XFmode and mode == TImode.
20070
20071 2004-07-09 Jan Beulich <jbeulich@novell.com>
20072
20073 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
20074 permissible for unary plus.
20075
20076 2004-07-09 Jan Beulich <jbeulich@novell.com>
20077
20078 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
20079 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
20080 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
20081 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
20082 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
20083 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
20084 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
20085 (BUILTIN_xxxIMAX): New.
20086 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
20087 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
20088 BUILT_IN_PARITYIMAX.
20089
20090 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
20091
20092 * config/sparc/sparc.h (processor_costs): Define.
20093 (sparc_costs): Declare.
20094 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
20095 hypersparc_costs, sparclet_costs, ultrasparc_costs,
20096 ultrasparc3_costs): New.
20097 (sparc_override_options): Set sparc_costs as appropriate.
20098 (sparc_rtx_costs): Use sparc_costs instead of messy
20099 conditionals.
20100
20101 2004-07-09 Steven Bosscher <stevenb@suse.de>
20102
20103 * doc/md.texi (Processor pipeline description): Mention that
20104 the old pipeline description is deprecated.
20105
20106 * config/rs6000/7450.md (automaton ppc7450): Split up, move
20107 mciu_7450 function unit to...
20108 (automaton ppc7450mciu): ...new automaton.
20109
20110 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
20111 (schedule_block): Don't consider inserting bubbles.
20112 (sched_init): Don't initialize DFA bubbles.
20113 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
20114 TARGET_SCHED_DFA_BUBBLE): Remove.
20115 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
20116 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
20117 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
20118
20119 * stmt.c (conditional_context): Remove prototype.
20120 * tree.h (conditional_context): Remove.
20121 * tree-cfg.c (pre_insert_on_edge): Remove.
20122
20123 * c-common.h (c_expand_asm_operands): Remove prototype.
20124 * c-typeck.c (c_expand_asm_operands): Remove.
20125
20126 2004-07-09 Jan Beulich <jbeulich@novell.com>
20127
20128 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
20129 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
20130 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
20131 and V8QI are class SSE. All sufficiently small remaining vector modes
20132 must be passed in one or two integer registers.
20133 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
20134 returned in memory.
20135 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
20136 __builtin_ia32_pmuludq128 have non-uniform argument and return types
20137 and must thus be handled explicitly.
20138 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
20139 MMX and XMM regs.
20140 (movv8qi_internal, movv4hi_internal, movv2si_internal,
20141 movv2sf_internal): Permit moving between MMX and XMM registers (since
20142 MMX areguments and return values are passed in XMM registers).
20143 (sse2_umulsidi3): Correct type and mode.
20144
20145 2004-07-09 Richard Henderson <rth@redhat.com>
20146
20147 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
20148
20149 2004-07-09 Eric Christopher <echristo@redhat.com>
20150
20151 * config/rs6000/40x.md: Split into two automatons.
20152
20153 2004-07-09 Zack Weinberg <zack@codesourcery.com>
20154 Andrew Pinski <apinski@apple.com>
20155
20156 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
20157 on when we have more than one input file.
20158 (c_common_parse_file): Restore loop over all input files.
20159 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
20160
20161 * c-decl.c (set_type_context): New function.
20162 (pop_scope): Use it to set context of types. When we
20163 encounter a TYPE_DECL, set the context of the attached type too.
20164 (pop_file_scope): Don't call cpp_undef_all here.
20165 (diagnose_mismatched_decls): Do not complain about a second
20166 definition of an 'extern inline' function if it's not in the
20167 same translation unit. Do not complain about inline
20168 declaration after use if the use was in a different
20169 translation unit.
20170 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
20171 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
20172 the external scope.
20173 (pushdecl_top_level): Likewise.
20174 (grokdeclarator): Clarify what is going on with setting
20175 DECL_EXTERNAL on function types, a little.
20176 (c_write_global_declarations): Don't do anything if
20177 -fsyntax-only or errors have been encountered.
20178
20179 2004-07-09 Zack Weinberg <zack@codesourcery.com>
20180
20181 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
20182
20183 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20184
20185 PR target/16459
20186 * pa.c (output_indirect_call): Use %r2 as the link register when
20187 calling $$dyncall with a pc-relative branch.
20188
20189 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
20190
20191 * doc/install.texi (Binaries): Mention OpenPKG.
20192
20193 2004-07-09 Diego Novillo <dnovillo@redhat.com>
20194
20195 Fix PR tree-optimization/15555
20196 * tree-dfa.c (dump_variable): If the variable is a pointer
20197 SSA_NAME, also dump its points-to information.
20198 * tree-flow.h (struct ptr_info_def): Add field
20199 is_dereferenced.
20200 (dump_points_to_info_for): Declare.
20201 (debug_points_to_info_for): Declare.
20202 * tree-optimize.c (init_tree_optimization_passes): Add a
20203 second alias analysis pass after DOM2.
20204 Move pass_del_pta to a later spot.
20205 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
20206 create a name tags when we find a dereferenced pointer. Just
20207 mark the pointer dereferenced.
20208 (collect_points_to_info_for): Move code to clear points-to
20209 information to create_name_tags.
20210 (create_name_tags): New function.
20211 (compute_flow_sensitive_aliasing): Call it.
20212 (setup_pointers_and_addressables): Mark type tags for renaming
20213 here instead of ...
20214 (create_memory_tag): ... here.
20215 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
20216 (dump_points_to_info_for): Declare extern.
20217 (debug_points_to_info_for): New function.
20218
20219 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
20220
20221 * config/arc/arc.md: Switch to DFA-based scheduler description.
20222 * config/arc/arc.c: Switch to DFA-based scheduler description.
20223
20224 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
20225
20226 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
20227 pointer.
20228
20229 2004-07-09 Richard Henderson <rth@redhat.com>
20230
20231 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
20232 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20233 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
20234 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
20235
20236 * config/v850/v850-protos.h (v850_va_arg): Remove.
20237 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20238 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
20239 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
20240 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
20241 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
20242
20243 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
20244
20245 PR target/12133
20246 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
20247 and DImode to use +/-4k offset.
20248
20249 2004-07-09 Richard Henderson <rth@redhat.com>
20250
20251 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
20252 Remove.
20253 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20254 (xstormy16_gimplify_va_arg_expr): Rewrite from
20255 xstormy16_expand_builtin_va_arg.
20256 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
20257
20258 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
20259 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
20260
20261 * config/sh/sh-protos.h (sh_va_arg): Remove.
20262 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20263 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
20264 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
20265
20266 * config/pa/pa-protos.h (hppa_va_arg): Remove.
20267 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20268 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
20269 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
20270
20271 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
20272 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20273 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
20274 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
20275
20276 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
20277
20278 * config/sparc/sparc.md (return): Rewrite length formula.
20279 * config/sparc/sparc.c (output_return): Pass 1 as 5th
20280 argument to final_scan_insn when in a delay slot.
20281 (output_sibcall): Likewise.
20282
20283 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
20284
20285 * arm.c (arm_cpp_interwork): New variable.
20286 (arm_override_options): Set it if TARGET_INTERWORK was on the command
20287 line.
20288 * arm.h (arm_cpp_interwork): Declare it.
20289 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
20290 __THUMB_INTERWORK__ in the preprocessor.
20291
20292 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
20293
20294 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
20295
20296 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
20297
20298 PR target/16416
20299 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
20300 Override default settings to account for -m32 and -m64.
20301
20302 2004-07-08 Randolph Chung <tausq@debian.org>
20303
20304 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
20305
20306 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
20307
20308 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
20309 before comparing it as such.
20310
20311 2004-07-08 Richard Henderson <rth@redhat.com>
20312
20313 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
20314 temporary. Use bit arithmetic to align.
20315
20316 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
20317
20318 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
20319 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
20320 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
20321 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
20322 add_labels_and_missing_jumps, find_jump_block,
20323 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
20324 Likewise.
20325 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
20326 link_btr_uses, move_btr_def): Likewise.
20327 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
20328 expand_builtin_expect_jump): Likewise.
20329 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
20330 * calls.c (expand_call, emit_library_call_value_1): Likewise.
20331 * cfganal.c (forwarder_block_p): Likewise.
20332 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
20333 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
20334 find_bb_boundaries): Likewise.
20335 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
20336 merge_blocks_move_predecessor_nojumps,
20337 merge_blocks_move_successor_nojumps, insns_match_p,
20338 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
20339 try_optimize_cfg): Likewise.
20340 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
20341 * cfglayout.c (skip_insns_after_block, label_for_bb,
20342 record_effective_endpoints, insn_locators_initialize,
20343 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
20344 * cfgmainloop.c (create_loop_notes): Likewise.
20345 * cfgrtl.c (delete_insn, delete_insn_chain,
20346 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
20347 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
20348 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
20349 redirect_branch_edge, force_nonfallthru_and_redirect,
20350 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
20351 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
20352 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
20353 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
20354 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
20355 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
20356 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
20357 * combine.c (combine_instructions, can_combine_p, try_combine,
20358 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
20359 distribute_notes, distribute_links, insn_cuid): Likewise.
20360 * cse.c (fold_rtx, cse_insn, cse_around_loop,
20361 invalidate_skipped_block, cse_set_around_loop,
20362 cse_end_of_basic_block, cse_main, cse_basic_block,
20363 cse_condition_code_reg): Likewise.
20364 * cselib.c (cselib_process_insn): Likewise.
20365 * ddg.c (create_ddg): Likewise.
20366 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
20367 Likewise.
20368 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
20369 gen_label_die, dwarf2out_var_location): Likewise.
20370 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
20371 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
20372 last_call_insn, active_insn_p, next_label, prev_label,
20373 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
20374 add_insn_before, remove_insn, add_function_usage_to,
20375 reorder_insns, find_line_note, remove_unnecessary_notes,
20376 emit_insn_after_1, classify_insn): Likewise.
20377 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
20378 connect_post_landing_pads, sjlj_mark_call_sites,
20379 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
20380 can_throw_internal, can_throw_external, set_nothrow_function_flags,
20381 convert_to_eh_region_ranges): Likewise.
20382 * explow.c (optimize_save_area_alloca): Likewise.
20383 * expr.c (expand_expr_real): Likewise.
20384 * final.c (insn_current_reference_address, compute_alignments,
20385 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
20386 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
20387 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
20388 propagate_block_delete_insn, propagate_one_insn,
20389 init_propagate_block_info, propagate_block, libcall_dead_p,
20390 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
20391 Likewise.
20392 * function.c (instantiate_virtual_regs, reorder_blocks_1,
20393 expand_function_start, expand_function_end, contains,
20394 thread_prologue_and_epilogue_insns,
20395 reposition_prologue_and_epilogue_notes): Likewise.
20396 * gcse.c (constprop_register, bypass_conditional_jumps,
20397 insert_insn_end_bb, gcse_after_reload): Likewise.
20398 * genemit.c (gen_expand, gen_split): Likewise.
20399 * genpeep.c (gen_peephole, main): Likewise.
20400 * global.c (build_insn_chain): Likewise.
20401 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
20402 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
20403 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
20404 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
20405 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
20406 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
20407 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
20408 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
20409 dead_or_predicable): Likewise.
20410 * integrate.c (try_constants): Likewise.
20411 * jump.c (rebuild_jump_labels, cleanup_barriers,
20412 purge_line_number_notes, init_label_info, mark_all_labels,
20413 squeeze_notes, get_label_before, get_label_after,
20414 reversed_comparison_code_parts, simplejump_p, pc_set,
20415 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
20416 delete_barrier, delete_prior_computation, delete_computation,
20417 delete_related_insns, delete_for_peephole, redirect_jump):
20418 Likewise.
20419 * lcm.c (optimize_mode_switching): Likewise.
20420 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
20421 Likewise.
20422 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
20423 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
20424 * loop-iv.c (simplify_using_assignment): Likewise.
20425 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
20426 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
20427 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
20428 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
20429 check_insn_for_givs, check_final_value, update_giv_derive,
20430 basic_induction_var, product_cheap_p, check_dbra_loop,
20431 loop_insn_first_p, last_use_this_basic_block,
20432 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
20433 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
20434 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
20435 sms_schedule_by_order): Likewise.
20436 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
20437 * postreload.c (reload_cse_simplify_operands, reload_combine,
20438 reload_cse_move2add): Likewise.
20439 * predict.c (can_predict_insn_p, estimate_probability,
20440 expected_value_to_br_prob, process_note_predictions): Likewise.
20441 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
20442 * profile.c (branch_prob): Likewise.
20443 * ra-build.c (live_out_1, livethrough_conflicts_bb,
20444 detect_webs_set_in_cond_jump): Likewise.
20445 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
20446 ra_print_rtl_with_bb): Likewise.
20447 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
20448 * recog.c (next_insn_tests_no_inequality, find_single_use,
20449 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
20450 * reg-stack.c (next_flags_user, record_label_references,
20451 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
20452 compensate_edge, convert_regs_1): Likewise.
20453 * regclass.c (scan_one_insn): Likewise.
20454 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
20455 regmove_optimize, fixup_match_1, single_set_for_csa,
20456 combine_stack_adjustments_for_block): Likewise.
20457 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
20458 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
20459 find_equiv_reg): Likewise.
20460 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
20461 reload_as_needed, emit_input_reload_insns, do_output_reload,
20462 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
20463 Likewise.
20464 * reorg.c (find_end_label, emit_delay_sequence,
20465 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
20466 get_jump_flags, rare_destination, mostly_true_jump,
20467 try_merge_delay_insns, redundant_insn, own_thread_p,
20468 fill_simple_delay_slots, fill_slots_from_thread,
20469 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
20470 dbr_schedule): Likewise.
20471 * resource.c (find_basic_block, next_insn_no_annul,
20472 find_dead_or_set_registers, mark_target_live_regs): Likewise.
20473 * rtl.h (RTX_PREV): Likewise.
20474 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
20475 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
20476 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
20477 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
20478 tablejump_p, computed_jump_p, insns_safe_to_move_p,
20479 find_first_parameter_load, can_hoist_insn_p): Likewise.
20480 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
20481 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
20482 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
20483 schedule_ebbs): Likewise.
20484 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
20485 is_conditionally_protected, can_schedule_ready_p,
20486 add_branch_dependences, debug_dependencies): Likewise.
20487 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
20488 Likewise.
20489 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
20490 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
20491 set_dominates_use, ujump_to_loop_cont): Likewise.
20492 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
20493 * varasm.c (output_constant_pool_1): Likewise.
20494
20495 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20496
20497 * tree-scalar-evolution.c: New file.
20498 * tree-scalar-evolution.h: New file.
20499 * tree-ssa-loop-niter.c: New file.
20500 * Makefile.in (SCEV_H): New.
20501 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
20502 * cfgloop.h (struct loop): Add bounds field.
20503 * tree-flow.h (struct tree_niter_desc): New type.
20504 (number_of_iterations_cond, number_of_iterations_exit,
20505 loop_niter_by_eval, find_loop_niter_by_eval,
20506 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
20507 free_numbers_of_iterations_estimates): Declare.
20508 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
20509 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
20510 * doc/invoke.texi (max-iterations-to-track): Document.
20511
20512 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
20513
20514 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
20515 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
20516 (MODE_AFTER): Add cast appropriately.
20517 * config/sh/sh.md (movdi splitter): Likewise.
20518 (casesi_worker_2): Add const qualifier appropriately.
20519 (eh_return): Remove unused variable.
20520 (insv): Initialize v;
20521
20522 2004-07-08 Richard Henderson <rth@redhat.com>
20523
20524 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
20525 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20526 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
20527 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
20528 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
20529
20530 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
20531 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20532 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
20533 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
20534
20535 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
20536 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20537 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
20538 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
20539
20540 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
20541 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20542 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
20543 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
20544
20545 * config/i860/i860-protos.h (i860_va_arg): Remove.
20546 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20547 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
20548 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
20549
20550 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
20551
20552 * system.h: Prototype getpagesize if missing.
20553 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
20554 * configure: Regenerate.
20555 * config.in: Regenerate.
20556
20557 2004-07-08 Richard Henderson <rth@redhat.com>
20558
20559 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
20560 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20561 (fr30_gimplify_va_arg_expr): New.
20562 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
20563 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
20564
20565 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
20566
20567 PR target/16414
20568 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
20569 of asm_noperands result.
20570
20571 2004-07-08 Richard Henderson <rth@redhat.com>
20572
20573 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
20574 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20575 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
20576 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
20577
20578 2004-07-08 Richard Henderson <rth@redhat.com>
20579
20580 * builtins.c (ind_gimplify_va_arg_expr): New.
20581 * tree.h (ind_gimplify_va_arg_expr): Declare.
20582 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
20583
20584 2004-07-08 Jan Beulich <jbeulich@novell.com>
20585
20586 * expmed.c (extract_bit_field): Correct condition to use vec_extract
20587 patterns also on vector elements other than the first one.
20588 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
20589 break statements.
20590
20591 2004-07-08 Geoffrey Keating <geoffk@apple.com>
20592
20593 * config/rs6000/darwin-ldouble.c: Correct reference
20594 to the Linnainmaa paper.
20595
20596 2004-07-08 Richard Henderson <rth@redhat.com>
20597
20598 * config/arc/arc-protos.h (arc_va_arg): Remove.
20599 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20600 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
20601 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
20602
20603 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
20604 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20605 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
20606 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
20607
20608 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20609
20610 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
20611
20612 2004-07-08 Zack Weinberg <zack@codesourcery.com>
20613
20614 * c-decl.c (static_ctors, static_dtors): Make static.
20615 (pop_file_scope): Call c_common_write_pch and
20616 cgraph_finalize_compilation_unit here.
20617 (build_cdtor): Moved here from c-objc-common.c; simplify.
20618 (c_write_global_declarations_1): Clarify comment.
20619 (c_write_global_declarations): Close the external scope before
20620 doing anything else. Call build_cdtor, cgraph_optimize, and
20621 mudflap_finish_file here.
20622 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
20623 Clarify comment.
20624 * c-objc-common.c: No need to include cgraph.h.
20625 (build_cdtor): Moved to c-decl.c.
20626 (c_objc_common_finish_file): Delete.
20627 * c-tree.h: Update to match.
20628 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
20629 (generate_static_references): Set TREE_USED before calling finish_decl.
20630 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
20631 on the static_instances_decl.
20632
20633 2004-07-08 Zack Weinberg <zack@codesourcery.com>
20634
20635 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
20636 decls when there is only one input translation unit.
20637 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
20638 change of 2004-07-05; do not treat declarations with
20639 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
20640 * opts.c (cur_in_fname): Delete.
20641 * opts.h: Likewise.
20642 * tree.c: Revert changes of 2004-07-05; no special treatment
20643 for TRANSLATION_UNIT_DECLs.
20644 * Makefile.in (tree.o): Update dependencies.
20645
20646 2004-07-08 Roger Sayle <roger@eyesopen.com>
20647
20648 * builtins.c (fold_builtin_strcpy): Merge functionality from
20649 simplify_builtin_strcpy. Add additional len argument. No longer
20650 static. Remove function prototype.
20651 (fold_builtin_strncpy): Likewise integrate functionality from
20652 simplify_builtin_strncpy. Add additional slen argument. No
20653 longer static. Remove function prototype.
20654 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
20655 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
20656 types of "ignore" and "unlocked" parameters to bool.
20657 (fold_builtin_1): Add additional ignore argument. Call renamed
20658 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
20659 builtins. Update arguments to fold_builtin_strncpy and
20660 fold_builtin_strcpy. Add function prototype.
20661 (fold_builtin): Add additional Boolean ignore argument to pass
20662 to fold_builtin_1.
20663 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
20664 and fold_builtin_strncpy instead of simplify_builtin_fputs,
20665 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
20666
20667 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
20668 simplify_builtin_strncpy): Delete function prototypes.
20669 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
20670 fold_builtin_strncpy): Add function prototypes here.
20671 (fold_builtin): Update function prototype with new "bool ignore".
20672
20673 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
20674 (ccp_fold_builtin): Update call to fold_builtin. Call
20675 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
20676 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
20677 simplify_builtin_strncpy respectively.
20678 * fold-const.c (fold): Update call to fold_builtin.
20679
20680 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
20681
20682 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
20683 to strcpy.
20684
20685 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
20686 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
20687 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
20688 * calls.c: Remove ifdefs of macros above.
20689 * functions.c: Likewise.
20690 * expr.c: Likewise.
20691
20692 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20693
20694 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
20695 (arch attribute): Delete.
20696 (current_function_calls_alloca attribute): Rename into calls_alloca.
20697 (calls_eh_return): New attribute.
20698 (leaf_function): Likewise.
20699 (length attribute): Fix formula for sibcalls.
20700 (return insn): Correctly compute the 'length' attribute.
20701 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
20702
20703 2004-07-08 Richard Henderson <rth@redhat.com>
20704
20705 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
20706 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
20707 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
20708 * tree-eh.c (lower_eh_constructs_1): Likewise.
20709 * tree-sra.c (sra_walk_modify_expr): Likewise.
20710 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20711 (eliminate_unnecessary_stmts): Likewise.
20712 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
20713 * tree-tailcall.c (optimize_tail_call): Likewise.
20714 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
20715
20716 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
20717 Jakub Jelinek <jakub@redhat.com>
20718
20719 * config/i386/i386.c (override_options): Enable
20720 SSE prefetches with -mtune, as long as we are
20721 compiling for i686 or higher. All i686 processors
20722 accept SSE prefetches as NOPS, some i586's don't.
20723
20724 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20725
20726 PR target/10567
20727 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
20728
20729 2004-07-08 Diego Novillo <dnovillo@redhat.com>
20730
20731 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
20732 the handling of clobbering ASM_EXPRs.
20733
20734 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20735
20736 PR target/16430
20737 * config/sparc/sparc.c (function_value): In 64-bit mode,
20738 return the aggregates larger than 16 bytes like unions.
20739
20740 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20741
20742 PR target/16199
20743 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
20744 'temp' is zero, generate new pseudos as needed and emit the
20745 sequence of insns in single-assignment form. Resync comments
20746 with code.
20747 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
20748 function before reload.
20749
20750 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
20751
20752 * vec.c (vec_assert_fail): Remove duplicate 'function'.
20753
20754 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
20755
20756 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
20757 Allocation is signed.
20758 (VEC_reserve): Return flag, allocation is signed.
20759
20760 2004-07-08 Richard Henderson <rth@redhat.com>
20761
20762 * tree-ssa-ccp.c (fold_stmt): Get type directly from
20763 OBJ_TYPE_REF_OBJECT.
20764
20765 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
20766 Neil Booth <neil@daikokuya.co.uk>
20767
20768 PR c/2511
20769 PR c/3325
20770 * c-decl.c (finish_struct): Ensure bit-fields are given the
20771 correct type.
20772 * c-common.c (c_common_signed_or_unsigned_type): For C, require
20773 the precision to match as well as the mode.
20774 * expr.c (reduce_to_bit_field_precision): New function.
20775 (expand_expr_real_1): Reduce expressions of bit-field type to
20776 proper precision.
20777 * langhooks.h (reduce_bit_field_operations): New hook.
20778 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
20779 Define.
20780 * c-lang.c, objc/objc-lang.c
20781 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
20782 * objc/objc-act.c (check_ivars): Convert types to bit-field types
20783 before checking.
20784 * tree.c (build_nonstandard_integer_type): New function.
20785 * tree.h (build_nonstandard_integer_type): New prototype.
20786 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
20787 conversions between integer and boolean types as useless.
20788
20789 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
20790
20791 * c-common.c (c_common_nodes_and_builtins): Do not
20792 create __builtin_ptrdiff_t and __builtin_size_t.
20793
20794 2004-07-08 Andrew Pinski <apinski@apple.com>
20795
20796 * Makefile.in (libbackend.o): Add -combine to the gcc
20797 command line.
20798
20799 2004-07-08 Nick Clifton <nickc@redhat.com>
20800
20801 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
20802 Set to -Os.
20803
20804 2004-07-08 Richard Henderson <rth@redhat.com>
20805
20806 * except.c (expand_eh_region_start, expand_eh_region_end,
20807 expand_eh_handler, expand_eh_region_end_cleanup,
20808 expand_start_all_catch, expand_start_catch, expand_end_catch,
20809 expand_end_all_catch, expand_eh_region_end_allowed,
20810 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
20811 expand_eh_region_end_fixup): Remove.
20812 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
20813 cleanups, outer_cleanups, label_chain, exception_region.
20814 (struct goto_fixup): Remove stack_level, cleanup_list_list.
20815 (struct label_chain): Remove.
20816 (struct stmt_status): Remove x_stack_block_stack.
20817 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
20818 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
20819 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
20820 end_cleanup_deferral, last_cleanup_this_contour,
20821 containing_blocks_have_cleanups_or_stack_level,
20822 any_pending_cleanups): Remove.
20823 (expand_null_return_1): Take no arguments.
20824 (expand_label, expand_naked_return, expand_return,
20825 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
20826 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
20827 expand_end_case_type): Don't use any of them.
20828 * calls.c (expand_call): Likewise.
20829 * dojump.c (do_jump): Likewise.
20830 * function.c (expand_function_end): Likewise.
20831 * expr.c (store_expr, expand_expr_real_1): Likewise.
20832 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
20833 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
20834 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
20835 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
20836 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
20837 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
20838 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
20839 for WITH_CLEANUP_EXPR.
20840 (gimple_push_cleanup): Likewise.
20841 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
20842 * print-tree.c (print_node): Likewise.
20843 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
20844 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
20845 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
20846 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
20847 (GOTO_SUBROUTINE_EXPR): Remove.
20848 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
20849 (DECL_TOO_LATE): Remove.
20850 * except.h, tree.h: Update decls.
20851
20852 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
20853
20854 * explow.c (optimize_save_area_alloca): Do not accept parameters.
20855 * passes.c (rest_of_handle_final): Handle symout.
20856 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
20857 Push timevar here.
20858 (rest_of_handle_sched): Break out SMS. Remove ifs for
20859 flag_schedule_insns and flag_modulo_sched.
20860 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
20861 collect at the end.
20862 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
20863 (rest_of_handle_partition_blocks, rest_of_handle_sms,
20864 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
20865 rest_of_handle_mode_switching, rest_of_handle_jump,
20866 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
20867 rest_of_handle_jump2, rest_of_handle_postreload,
20868 rest_of_handle_flow2, rest_of_clean_state,
20869 rest_of_handle_shorten_branches,
20870 rest_of_handle_prologue_epilogue,
20871 rest_of_handle_branch_target_load_optimize): New.
20872 (rest_of_compilation): Call the above. Remove ggc_collect
20873 calls moved to rest_of_handle_*.
20874 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
20875
20876 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
20877 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
20878 * except.h (set_nothrow_function_flags): Update comment.
20879 * function.c (current_function_nothrow): Remove.
20880 * output.h (current_function_nothrow): Remove.
20881 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
20882 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
20883
20884 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20885
20886 PR bootstrap/16326
20887 * reorg.c: Revert 2004-06-30 change.
20888 (find_end_label): If HAVE_epilogue and !HAVE_return,
20889 return 0 instead of creating a label at the end of the insn chain.
20890 (optimize_skip): Account for the failure mode of find_end_label.
20891 (fill_simple_delay_slots): Likewise.
20892 (fill_slots_from_thread): Likewise.
20893 (relax_delay_slots): Likewise.
20894
20895 2004-07-08 Diego Novillo <dnovillo@redhat.com>
20896
20897 * tree-flow.h (addressable_vars): Declare.
20898 * tree-ssa-alias.c (addressable_vars): Define.
20899 (setup_pointers_and_addressables): Add addressable variables
20900 to addressable_vars.
20901 * tree-ssa-operands.c (get_stmt_operands): Move
20902 handling of ASM_EXPRs ...
20903 (get_asm_expr_operands): ... here.
20904 When the ASM_EXPR clobbers memory, also clobber addressable
20905 variables.
20906 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
20907 (delete_tree_ssa): Reset addressable_vars.
20908
20909 2004-07-07 Jan Beulich <jbeulich@novell.com>
20910 Richard Henderson <rth@redhat.com>
20911
20912 * varasm.c (assemble_variable): Use assemble_zeros for
20913 zero-initialized variables.
20914 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
20915 for SECCAT_BSS and SECCAT_TBSS.
20916
20917 2004-07-07 Jan Beulich <jbeulich@novell.com>
20918
20919 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
20920
20921 * expmed.c (emit_store_flag): Also special-case double-word
20922 (in-)equality comparison against -1.
20923
20924 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
20925 passing arguments the containers for which are registers.
20926
20927 * calls.c (emit_library_call_value_1): Use mode of function parameter
20928 rather than that of argument since constants have none.
20929
20930 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
20931
20932 Introduce H8SX support.
20933 * expr.c (expand_strcpy): Renamed and moved to...
20934 * builtins.c (expand_movstr): ... here. Tweak.
20935 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
20936 computed or has side effects.
20937 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
20938 unused, or if mempcpy fails. Adjust the return value in the
20939 latter case. Use movstr if everything else fails.
20940 * doc/md.texi (movstr): Document.
20941 (movmemM, clrmemM): Fix explanation of memory block operands.
20942 * config/h8300/h8300.md (stpcpy): Renamed to...
20943 (movstr): ... this. Adjust.
20944 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
20945 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
20946 movmem* and clrstr* to clrmem*.
20947 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
20948 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
20949 GENERAL_REGS, always.
20950 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
20951 getting the stack pointer as addr.
20952 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
20953 from general_operand_dst.
20954 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
20955 variant of...
20956 (movmd_internal): ... this. Add modes to operands. Disparage `D'
20957 instead of requiring it to match only before reload.
20958 (stpcpy_internal_normal): New, normal-mode variant of...
20959 (stpcpy_internal): ... this. Add modes to operands. Disparage
20960 `D' instead of requiring it to match only before reload.
20961 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
20962 mode argument.
20963 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
20964 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
20965 h8300_get_index.
20966 * config/h8300/h8300.md (attr type): Add call.
20967 (attr can_delay): If type is call, set it no.
20968 (call, call_value): Set type to call.
20969 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
20970 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
20971 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
20972 * tree.c (get_narrower): Don't narrow integral types into
20973 non-integral types.
20974 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
20975 frame_size *before* the first use.
20976 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
20977 on input.
20978 (peephole2): Don't widen instructions that push SP. Move
20979 decrement of SP to the end of all stm-generating peepholes.
20980 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
20981 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
20982 and OR to set it to all ones.
20983 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
20984 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
20985 (call, call_value): Set can_delay to "no".
20986 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
20987 * config/h8300/h8300.md (extzv): Make subreg check more robust.
20988 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
20989 * config/h8300/h8300.md (*brabit): Remove.
20990 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
20991 zero_extract. Use bit_memory_operand as the predicate for
20992 operand 1 and 'WU' as the constraint. Check the difference
20993 between the base length and the final one when deciding which
20994 type of branch to use.
20995 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
20996 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
20997 Use convert_move to extend the result for TARGET_H8300SX. Check
20998 for QImode memory references. Optimize the case where the
20999 destination is a paradoxical subreg.
21000 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
21001 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
21002 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
21003 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
21004 * config/h8300/h8300.md: Include mova.md
21005 (length_table): Add mova and mova_zero.
21006 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
21007 after all constant addresses for '%R', '%X', '%T' and '%S'.
21008 (h8300_mova_length): New function.
21009 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
21010 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
21011 dependencies for s-config, etc.
21012 * config/h8300/gemova.sh: New file.
21013 * config/h8300/mova.md: Generated.
21014 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
21015 * config/h8300/h8300.c (h8300_bitfield_length): New.
21016 (nibble_operand): Adjust.
21017 (h8300_binary_length): Handle conditional binary op.
21018 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
21019 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
21020 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
21021 and P#<0, unused so far. W and Y are now prefixes to multi-letter
21022 constraints. WU is introduced as a variant of U that requires a
21023 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
21024 * config/h8300/h8300.md (attr type): Added bitbranch.
21025 (attr length_table): Added bitfield and bitbranch.
21026 (attr length): Compute bitbranch length.
21027 (andqi): Separate pattern for H8300SX. Use bfld for loading the
21028 least-significant bit of a byte.
21029 (brabit, brabc, brabs): New.
21030 (insv, extzv): Emit bfst and bfld on H8300SX.
21031 (bfld, bfst, seq, sne): New.
21032 (bstzhireg, cmpstz, bstz, bistz): New.
21033 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
21034 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
21035 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
21036 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
21037 (h8sx_unary_memory_operator): New function.
21038 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
21039 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
21040 * config/h8300/h8300.md: Add peepholes to combine reloads and
21041 arithmetic insns.
21042 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
21043 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
21044 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
21045 (and?i, ior?i, xor?i): Likewise.
21046 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
21047 * config/h8300/h8300.c: Move enums and prototypes to head of file.
21048 Various whitespace fixes.
21049 (h8300_constant_length): New function, split out from...
21050 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
21051 (h8300_classify_operand): Use IN_RANGE.
21052 (h8300_classify_operand): Use h8300_constant_length.
21053 (h8300_short_move_mem_p): Tighten size check.
21054 (h8sx_mergeable_memrefs_p): Tighten equality check.
21055 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
21056 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
21057 for -msx.
21058 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
21059 * config/h8300/crtn.asm: Likewise.
21060 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
21061 if __H8300SX__ is defined.
21062 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
21063 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
21064 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
21065 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
21066 addresses as mode-dependent.
21067 * config/h8300/h8300.c (print_operand_address): Update call to
21068 h8300_get_index.
21069 (h8300_get_index): Take a mode argument. Rework to fix an
21070 earlier misunderstanding.
21071 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
21072 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
21073 into a register if TARGET_H8300SX.
21074 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
21075 TARGET_H8300SX. Also disable related define_splits.
21076 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
21077 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
21078 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
21079 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
21080 * config/h8300/h8300.h (OK_FOR_Z): New macro.
21081 (EXTRA_CONSTRAINT_STR): Check it.
21082 * config/h8300/h8300.c (h8300_classify_operand): Accept null
21083 class arguments.
21084 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
21085 * config/h8300/h8300.md (length_table): Add mov_imm4.
21086 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
21087 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
21088 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
21089 be a label.
21090 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
21091 * config/h8300/h8300.c (h8300_reorg): New function.
21092 (TARGET_MACHINE_DEPENDENT_REORG): Define.
21093 * config/h8300/h8300.md (length): Subtract the length of the
21094 delay slot from (pc) when checking the range of forward branches.
21095 (delay_slot, can_delay): New attributes.
21096 (define_delay): Add bra/s handling.
21097 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
21098 (jump): Add delayed-branch handling.
21099 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
21100 * expr.c (expand_strcpy): New function.
21101 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
21102 (expand_builtin_stpcpy): Likewise.
21103 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
21104 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
21105 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
21106 handling to improve register allocation for -fno-omit-frame-pointer.
21107 (h8sx_split_movmd): Delete, moving er6 handling into...
21108 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
21109 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
21110 (movmd): Add calls to copy_rtx.
21111 (movmd_internal): In the second alternative, allow the initial and
21112 final destination registers to be different . Update the splitter
21113 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
21114 instead of h8sx_split_movmd.
21115 (stpcpy, movsd): New expanders.
21116 (movsd_internal): New define_insn.
21117 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
21118 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
21119 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
21120 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
21121 and DESTINATION_REGS.
21122 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
21123 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
21124 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
21125 (h8300_move_ratio): Declare.
21126 (MOVE_RATIO): Use it.
21127 * config/h8300/h8300.c (h8300_move_ratio): New variable.
21128 (h8300_init_once): Initialize it.
21129 (h8300_reg_class_from_letter): New function.
21130 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
21131 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
21132 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
21133 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
21134 (movstrsi, movmd): New expanders.
21135 (movmd_internal): New insn.
21136 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
21137 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
21138 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
21139 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
21140 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
21141 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
21142 * config/h8300/h8300.c (nibble_operand): Fix warning.
21143 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
21144 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
21145 (movsf_h8300h): Disable for TARGET_H8300SX.
21146 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
21147 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
21148 h8300_stm_parallel and h8300_return_parallel.
21149 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
21150 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
21151 h8300_stm_parallel, h8300_return_parallel): New functions.
21152 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
21153 if TARGET_H8300SX. Use h8300_push_pop.
21154 (h8300_expand_epilogue): Likewise. Try to merge the return insn
21155 and final pop when generating h8sx code. Always emit some form
21156 of return insn.
21157 * config/h8300/h8300.md: Don't enforce register alignment in
21158 stm peepholes if TARGET_H8300SX.
21159 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
21160 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
21161 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
21162 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
21163 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
21164 (MULTILIB_DIRNAMES): Add a directory for it.
21165 (MULTILIB_MATCHES): Delete.
21166 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
21167 * final.c (walk_alter_subreg): Handle addresses with subregs
21168 inside a ZERO_EXTEND or AND.
21169 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
21170 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
21171 if TARGET_H8300SX.
21172 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
21173 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
21174 @(dd,Rn.w) and @(dd,ERn.L).
21175 (h8300_displacement_size): Take the whole address as argument.
21176 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
21177 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
21178 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
21179 (h8sx_mergeable_memrefs_p): Declare.
21180 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
21181 (HAVE_PRE_INCREMENT): Likewise.
21182 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
21183 addresses for TARGET_H8300SX,
21184 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
21185 and POST_DEC.
21186 (movb_length_table, movl_length_table): New tables.
21187 (movw_length_table): Define to movb_length_table.
21188 (h8300_displacement_size): New, split out from...
21189 (h8300_classify_address): ...here. Handle pre/post inc/dec.
21190 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
21191 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
21192 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
21193 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
21194 (compute_plussi_length, compute_plussi_cc): Update accordingly.
21195 (h8sx_unary_shift_operator): Get the mode from the operator.
21196 (binary_shift_operator): Likewise.
21197 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
21198 a memory reference, check whether the reference is offsettable.
21199 (length_table): Add movb, movw and movl.
21200 (movqi): Add new h8sx pattern. Don't force one operand to be a
21201 register when generating h8sx code.
21202 (movhi, movsi, movsf): Likewise.
21203 (movstrictqi): Use the length_table attribute.
21204 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
21205 (addqi3): Split into a define_expand and define_insn. Don't accept
21206 memory operands in the expander. Use h8300_operands_match_p to
21207 check for matching operands in the define_insn.
21208 (subqi3, negqi2, one_cmplqi2): Likewise.
21209 (add[hs]i3): Don't accept memory operands in the expander. Likewise
21210 in any patterns that are unused in h8sx code. In the h8sx patterns,
21211 use h8300_operands_match_p to check whether operands match.
21212 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
21213 one_cmpl[hs]i3): Likewise.
21214 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
21215 in the expander.
21216 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
21217 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
21218 (h8300_insn_length_from_table): Add a second parameter.
21219 (output_h8sx_shift): Declare.
21220 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
21221 (EXTRA_CONSTRAINT): Replace with...
21222 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
21223 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
21224 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
21225 and h8sx_binary_shift_operator.
21226 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
21227 for TARGET_H8300SX.
21228 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
21229 (bit_memory_operand, fix_bit_operand): Likewise.
21230 (h8300_length_table_for_insn): Remove.
21231 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
21232 instructions.
21233 (h8300_short_immediate_length, h8300_binary_length): New functions.
21234 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
21235 (output_plussi): Use sub to add negative constants.
21236 (compute_plussi_length): Adjust accordingly.
21237 (h8sx_single_shift_type): New enum.
21238 (h8sx_single_shift, h8sx_unary_shift_operator,
21239 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
21240 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
21241 single h8sx instruction. Return false in this case.
21242 * config/h8300/h8300.md (length_table): Add short_immediate.
21243 (length): Pass the operand array to h8300_insn_length_from_table.
21244 (adjust_length): Assume "no" for insns with a length_table attribute.
21245 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
21246 (*addhi3_h8300hs): Don't use for h8sx.
21247 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
21248 and sub.w #xx:3.
21249 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
21250 1's predicate to nonimmediate_operand. Only skip default expansion
21251 if expand_a_shift or expand_a_rotate returns true. Add new patterns
21252 for single h8sx shift instructions.
21253 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
21254 * config/h8300/h8300.c (nibble_operand): Split out of...
21255 (reg_or_nibble_operand): ... this.
21256 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
21257 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
21258 umulhisi3): Introduce expand, and introduce separate insns for
21259 sign- or zero-extended REG and already-extended CONST_INT.
21260 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
21261 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
21262 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
21263 (subhi3): Likewise. Don't accept immediates for operand 1.
21264 Remove the early clobber from second alternative of the h8300s pattern.
21265 (subsi3): Generalize for h8sx. Force operand 2 into a register
21266 on plain h8300 targets.
21267 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
21268 (subsi3_h8300h): Generalize for h8sx.
21269 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
21270 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
21271 * config/h8300/h8300.c (reg_or_nibble_operand): New.
21272 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
21273 (TARGET_H8300SXMUL): New.
21274 (CONST_OK_FOR_P): New.
21275 (CONST_OK_FOR_LETTER_P): Adjust.
21276 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
21277 umulhisi3): Accept 4-bit immediate on H8SX.
21278 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
21279 (udivsi3, divhi3, udivsi3, divsi3): New.
21280 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
21281 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
21282 * config/h8300/h8300.h (OK_FOR_Q): New macro.
21283 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
21284 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
21285 Add ADDRESSOF to the bit_operand entry.
21286 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
21287 (h8300_src_operand): Likewise.
21288 (bit_operand): Check nonimmediate_operand rather than general_operand.
21289 Accept any nonimmediate_operand in h8sx code.
21290 (h8300_and_costs): Initialize operands[1].
21291 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
21292 (h8300_operand_class): New enum.
21293 (h8300_length_table): New typedef.
21294 (addb_length_table, addw_length_table, addl_length_table,
21295 logicl_length_table): New tables.
21296 (logicb_length_table, logicw_length_table): New macros.
21297 (h8300_classify_operand, h8300_length_from_table,
21298 h8300_length_table_for_insn, h8300_unary_length,
21299 h8300_insn_length_from_table): New functions.
21300 (output_plussi): Only use adds and subs for register destinations.
21301 Disable redundant clause.
21302 (compute_plussi_cc): Likewise.
21303 (compute_plussi_length): Likewise. Use h8300_length_from_table
21304 to work out the length of an insn.
21305 (output_logical_op): Only use narrower immediate instructions
21306 if the destination is a register.
21307 (compute_logical_op_cc): Likewise.
21308 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
21309 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
21310 * config/h8300/h8300.md (length_table): New attribute.
21311 (length): When an instruction has a length_table attribute, use
21312 h8300_insn_length_from_table to calculate its default length.
21313 (cmpqi): Use h8300_dst_operand for the first operand and
21314 h8300_src_operand for the second.
21315 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
21316 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
21317 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
21318 iorsi3, xorhi3, xorsi3): Likewise.
21319 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
21320 so that it allows any combination of operands for TARGET_H8300SX.
21321 (iorqi3, xorqi3): Likewise.
21322 (cmpqi): Use the length_table attribute.
21323 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
21324 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
21325 (cmpqi): Add 'Q' constraint.
21326 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
21327 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
21328 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
21329 * config/h8300/h8300.h (MASK_H8300SX): New macro.
21330 (TARGET_H8300S): True for both -ms and -msx.
21331 (TARGET_H8300SX): New macro.
21332 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
21333 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
21334 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
21335 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
21336 [Temporary change.]
21337 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
21338 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
21339 16-bit pointers and 32-bit ints.
21340 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
21341 CONST_DOUBLE with mode no wider than SImode.
21342 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
21343 output operand.
21344 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
21345 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
21346 or SUBREG thereof.
21347 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
21348 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
21349 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
21350
21351 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
21352
21353 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
21354
21355 2004-07-07 Per Bothner <per@bothner.com>
21356
21357 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
21358
21359 2004-07-07 Mike Stump <mrs@apple.com>
21360
21361 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
21362 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
21363 (machopic_finish): Likewise.
21364
21365 2004-07-07 Richard Henderson <rth@redhat.com>
21366
21367 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
21368 through any value-preserving cast.
21369
21370 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
21371
21372 * function.c (assign_parm_find_data_types): Call
21373 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
21374
21375 2004-07-07 Steven Bosscher <stevenb@suse.de>
21376
21377 * tree-cfg.c (group_case_labels): Remove case labels that have
21378 the same target as the default case.
21379
21380 2004-07-07 Steven Bosscher <stevenb@suse.de>
21381
21382 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
21383 regardless of DECL_LANG_SPECIFIC being present or not.
21384 * tree.h (DECL_NUM_STMTS): Purge.
21385
21386 2004-07-07 Andrew Pinski <apinski@apple.com>
21387
21388 * configure: Regenerate with the right autoconf.
21389
21390 2004-07-07 David Edelsohn <edelsohn@gnu.org>
21391
21392 * ifcvt.c (total_bb_rtx_cost): New function.
21393 (find_if_case_1): Compare rtx_cost of basic block to cost of
21394 BRANCH_COST insns.
21395 (find_if_case_2): Same.
21396
21397 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
21398
21399 PR target/10567
21400 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
21401 (output_return): Likewise.
21402 (output_sibcall): Abort if !flag_delayed_branch.
21403 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
21404 (emit_and_preserve): New function.
21405 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
21406 indirect jump to the thunked-to function if !flag_delayed_branch.
21407 * config/sparc/sparc.md (delayed_branch): New attribute.
21408 (load_pcrel_sym): Honor flag_delayed_branch. Use above
21409 attribute to compute the length of the insn.
21410 (goto_handler_and_restore): Likewise.
21411
21412 2004-07-07 Andrew Pinski <apinski@apple.com>
21413
21414 PR tree-optimization/15777
21415 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
21416
21417 * expr.c (expand_expr_real_1): Fix formating.
21418 BUFFER_REF and IN_EXPR are dead.
21419 * fold-const.c (non_lvalue): BUFFER_REF is dead.
21420 * tree-inline.c (estimate_num_insns_1): Likewise.
21421 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
21422 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
21423 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
21424
21425 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
21426
21427 * collect2.c (dump_file): Don't call cplus_demangle if
21428 HAVE_LD_DEMANGLE is defined.
21429 (main): Pass "--demangle" to ld if no_demangle is not 0 and
21430 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
21431 if HAVE_LD_DEMANGLE is defined.
21432
21433 * configure.ac (--with-demangler-in-ld): Added
21434 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
21435 --with-demangler-in-ld is used.
21436 * config.in: Regenerated.
21437 * configure: Likewise.
21438
21439 2004-07-07 Roger Sayle <roger@eyesopen.com>
21440
21441 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
21442 for simple floating point operations "fp", double precision
21443 multiplication "dmul", and single and double precision division
21444 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
21445 (ppc630_cost): New table split from ppc620_cost, to distinguish
21446 differences in floating point latencies.
21447 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
21448 (rs6000_rtx_costs): Add support for single and double precision
21449 floating point addition, subtraction, multiplication, division,
21450 fused-multiply-add, fused-multiply-sub, negation, absolute value
21451 and negative absolute value. Tweak MEM case to use prefered idiom.
21452
21453 2004-07-07 Richard Henderson <rth@redhat.com>
21454
21455 * tree-flow-inline.h (may_propagate_copy): Move...
21456 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
21457 attempt to copy between types requiring conversion.
21458 * tree-flow.h (may_propagate_copy): Update decl.
21459 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
21460
21461 2004-07-07 Jakub Jelinek <jakub@redhat.com>
21462
21463 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
21464 from -mtune= option.
21465
21466 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
21467
21468 * builtins.c: Rename movstr*, except for movstrict*, to
21469 movmem* and clrstr* to clrmem*.
21470 * expr.c: Likewise.
21471 * expr.h: Likewise.
21472 * genopinit.c: Likewise.
21473 * integrate.c: Likewise.
21474 * local-alloc.c: Likewise.
21475 * optabs.c: Likewise.
21476 * optabs.h: Likewise.
21477 * config/alpha/alpha.h: Likewise.
21478 * config/alpha/alpha.md: Likewise.
21479 * config/arm/arm-protos.h: Likewise.
21480 * config/arm/arm.c: Likewise.
21481 * config/arm/arm.md: Likewise.
21482 * config/avr/avr.md: Likewise.
21483 * config/c4x/c4x.c: Likewise.
21484 * config/c4x/c4x.md: Likewise.
21485 * config/frv/frv.md: Likewise.
21486 * config/i386/i386-protos.h: Likewise.
21487 * config/i386/i386.c: Likewise.
21488 * config/i386/i386.h: Likewise.
21489 * config/i386/i386.md: Likewise.
21490 * config/i860/i860.c: Likewise.
21491 * config/i860/i860.md: Likewise.
21492 * config/ip2k/ip2k.md: Likewise.
21493 * config/ip2k/libgcc.S: Likewise.
21494 * config/ip2k/t-ip2k: Likewise.
21495 * config/m32r/m32r.c: Likewise.
21496 * config/m32r/m32r.md: Likewise.
21497 * config/mcore/mcore.md: Likewise.
21498 * config/mips/mips.c: Likewise.
21499 * config/mips/mips.md: Likewise.
21500 * config/ns32k/ns32k.c: Likewise.
21501 * config/ns32k/ns32k.h: Likewise.
21502 * config/ns32k/ns32k.md: Likewise.
21503 * config/pa/pa.c: Likewise.
21504 * config/pa/pa.md: Likewise.
21505 * config/pdp11/pdp11.h: Likewise.
21506 * config/pdp11/pdp11.md: Likewise.
21507 * config/rs6000/rs6000.c: Likewise.
21508 * config/rs6000/rs6000.md: Likewise.
21509 * config/s390/s390-protos.h: Likewise.
21510 * config/s390/s390.c: Likewise.
21511 * config/s390/s390.md: Likewise.
21512 * config/sh/lib1funcs.asm: Likewise.
21513 * config/sh/sh.c: Likewise.
21514 * config/sh/sh.md: Likewise.
21515 * config/sh/t-sh: Likewise.
21516 * config/sparc/sparc.h: Likewise.
21517 * config/vax/vax.md: Likewise.
21518 * config/xtensa/xtensa.c: Likewise.
21519 * config/xtensa/xtensa.md: Likewise.
21520 * doc/invoke.texi: Likewise.
21521 * doc/md.texi: Likewise.
21522 * doc/rtl.texi: Likewise.
21523
21524 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
21525
21526 PR target/16407
21527 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
21528 * config/mips/mips.c (mips_declare_common_object): New function,
21529 mostly split out from...
21530 (mips_output_aligned_decl_common): ...here.
21531 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
21532 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
21533 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
21534 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
21535
21536 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21537
21538 PR c/16392
21539 * function.c (assign_parms): Fix typo from previous change.
21540
21541 2004-07-07 Jason Merrill <jason@redhat.com>
21542
21543 PR c++/15815
21544 * doc/extend.texi (C++ Interface): Correct information and
21545 discourage use.
21546
21547 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
21548
21549 PR target/16130
21550 PR target/16142
21551 PR target/16143
21552 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
21553 insn.
21554
21555 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
21556
21557 PR target/1679.
21558 * config/m32r/m32r.c (m32r_function_symbol): New function:
21559 Generate a symbol name RTX with the correct m32r specific flags
21560 set.
21561 (block_move_call): Use new function to generate correct symbol.
21562 * config/m32r/m32r-protos.h: Add prototype for new funcion.
21563 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
21564 function.
21565
21566 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
21567
21568 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
21569 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
21570 TYPE_BINFO_BASETYPE): Remove.
21571 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
21572 to ...
21573 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
21574 here.
21575 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
21576 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
21577 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
21578 (struct tree_binfo): Rename base_types to base_binfos.
21579 * alias.c (record_component_aliases): Adjust BINFO macros.
21580 * dbxout.c (dbxout_type): Likewise.
21581 * dwarf2out.c (gen_member_die): Likewise.
21582 * sdbout.c (sdbout_one_type): Likewise.
21583 * tree-dump.c (deque_and_dump): Likewise.
21584 * config/i386/i386.c (classify_argument,
21585 contains_128bit_aligned_vector_p): Likewise.
21586
21587 2004-07-07 Nick Clifton <nickc@redhat.com>
21588
21589 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
21590 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
21591
21592 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
21593
21594 * vec.h: Fix the example use.
21595
21596 2004-07-06 Richard Henderson <rth@redhat.com>
21597
21598 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
21599 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
21600 * tree-inline.c (copy_body_r, setup_one_parameter,
21601 initialize_inlined_parameters, expand_call_inline,
21602 declare_inline_vars): Don't check it.
21603 (expand_calls_inline): Remove old version, rename new version
21604 from gimple_expand_calls_inline.
21605 * tree-optimize.c (execute_gimple): Remove.
21606 (pass_gimple): Don't run anything.
21607
21608 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
21609
21610 * doc/sourcebuild.texi: Use semicolons instead of commas in
21611 section title.
21612
21613 2004-07-06 Richard Henderson <rth@redhat.com>
21614
21615 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
21616 (sra_walk_modify_expr, scan_init): Likewise.
21617 (generate_element_zero): Check visited before scanning children.
21618 (generate_element_init): Set visited on error.
21619 (scalarize_init): Handle generate_element_init failure similar
21620 to use_block_copy.
21621
21622 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
21623
21624 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
21625 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
21626
21627 2004-07-06 Richard Henderson <rth@redhat.com>
21628
21629 * config/i386/i386.c (legitimize_pic_address): Make static.
21630 (legitimize_address): Handle CONST with TLS operand.
21631 (ix86_expand_move): Don't call legitimize_pic_address directly.
21632 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
21633
21634 2004-07-06 Roger Sayle <roger@eyesopen.com>
21635
21636 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
21637 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
21638 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
21639 is currently executed unconditionally, i.e. not in "else_bb".
21640
21641 2004-07-06 Steven Bosscher <stevenb@suse.de>
21642
21643 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
21644 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21645 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
21646 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21647 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
21648 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21649 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
21650 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21651 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
21652 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21653 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
21654 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21655 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
21656 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21657 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
21658 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21659
21660 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
21661
21662 * dojump.c (do_jump): REFERENCE_EXPR is dead.
21663 * expr.c (expand_expr_real_1): Ditto.
21664 * tree-inline.c (estimate_num_insns_1): Ditto.
21665 * tree-pretty-print.c (dump_generic_node): Ditto.
21666 (op_symbol): Ditto.
21667 * tree.def: Ditto.
21668
21669 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
21670
21671 * tree-ssa-pre.c (reference_node_pool): New pool.
21672 (find_or_generate_expression): Class 'r' is okay too.
21673 (create_value_expr_from): Ditto.
21674 (add_to_sets): LHS should not include vuses.
21675 (eliminate): Ditto.
21676 (compute_avail): Reverse ordering of tests.
21677 Valuize INDIRECT_REF as well.
21678
21679 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
21680
21681 PR rtl-optimization/16380
21682 * loop.c (check_dbra_loop): Sink comparison instructions if they
21683 do something other than set cc0.
21684
21685 2004-07-06 James E Wilson <wilson@specifixinc.com>
21686
21687 * doc/interface.texi (longjmp and automatic variables): Delete
21688 paragraph recommending taking the address of a variable.
21689
21690 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
21691
21692 * vec.h (VEC_embedded_alloc): Remove.
21693 (VEC_embedded_size, VEC_embedded_init): New.
21694 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
21695 MEM_STAT_INFO.
21696 (VEC_truncate): New.
21697 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
21698 (vec_embedded_alloc): Remove.
21699 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
21700 (vec_embedded_alloc): Remove.
21701
21702 2004-07-06 Mark Mitchell <mark@codesourcery.com>
21703
21704 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
21705 (gt-langhooks.h): Remove.
21706
21707 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
21708
21709 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
21710
21711 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
21712
21713 * config/sparc/sparc.c (get_pc_symbol): Rename into
21714 add_pc_to_pic_symbol.
21715 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
21716 (load_pic_register): Account for previous changes.
21717 Use reg_names. Don't create the label twice.
21718 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
21719 UNSPEC_LOAD_PCREL_SYM.
21720 (get_pc): Rename into load_pcrel_sym. Add predicate to
21721 operands. Remove condition.
21722
21723 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
21724
21725 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
21726 RECORD, UNION & QUAL_UNION is actually a binfo.
21727
21728 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
21729 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
21730 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
21731 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
21732 * dwarf2out.c (add_data_member_location_attribute): Likewise.
21733 (gen_inheritance_die): Likewise.
21734 * tree-dump.c (deque_and_dump): Likewise.
21735 * doc/c-tree.texi (Binfos): Add under reconstruction note.
21736
21737 2004-07-06 Steven Bosscher <stevenb@suse.de>
21738
21739 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
21740 Define.
21741 * config/mcore/mcore.md: Model memory latency with a simple DFA
21742 pipeline description instead of a define_function_unit.
21743
21744 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21745
21746 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
21747 * langhooks.h (var_mod_type_p): Likewise.
21748 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
21749 * expr.c (count_type_elements): Properly handle return from
21750 array_type_nelts and properly test for overflow.
21751 * gimplify.c (gimplify_init_constructor): Properly handle return
21752 from array_type_nelts.
21753 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
21754 * integrate.c (copy_decl_for_inlining): Correct comments.
21755 * tree-inline.c (remap_decl): Update comments, remove dead code,
21756 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
21757 (remap_type): Only remap if variably modified by vars in function
21758 being inlined.
21759 (copy_body_r): Use compatible_type langhooks to see when can fold.
21760 (setup_one_parameter): Don't remap type.
21761 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
21762 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
21763 compute TREE_INVARIANT for decl case.
21764 (find_var_from_fn): New function.
21765 (variably_modified_type_p): Add arg and call new function.
21766 * tree.h (variably_modified_type_p): Add extra arg.
21767
21768 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
21769
21770 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
21771 (goto_handler_and_restore_v9): Delete disabled insn.
21772 (goto_handler_and_restore_v9_sp64): Likewise.
21773
21774 2004-07-05 Roger Sayle <roger@eyesopen.com>
21775
21776 * calls.c (load_register_parameters): Call expand_shift instead
21777 of expand_binop with ashl_optab (or other shift optab) directly.
21778 * expr.c (emit_group_load, emit_group_store): Likewise.
21779 * function.c (assign_parm_setup_block): Likewise.
21780 * stmt.c (shift_return_value): Likewise.
21781
21782 2004-07-05 Jakub Jelinek <jakub@redhat.com>
21783
21784 * expr.c (expand_assignment): Disable the bitfield += optimizations.
21785
21786 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
21787
21788 * doc/sourcebuild.texi: Revert previous patch.
21789
21790 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
21791
21792 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
21793 TARGET_MEM_FUNCTIONS.
21794 * system.h: Poison TARGET_MEM_FUNCTIONS.
21795 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
21796 bcmp_libfunc, bzero_libfunc): Remove.
21797 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
21798 bzero_libfunc.
21799 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
21800 * doc/standards.texi: Don't mention calling BSD string functions.
21801 * doc/invoke.texi: Likewise. Mention that memmove may be called.
21802 * config/vax/t-memfuncs: New.
21803 * config/memcmp.c, config/memcpy.c, config/memmove.c,
21804 config/memset.c: New.
21805 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
21806 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
21807 vax/t-memfuncs.
21808 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
21809 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
21810 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
21811 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
21812 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
21813 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
21814 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
21815 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
21816 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
21817 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
21818
21819 2004-07-05 Richard Henderson <rth@redhat.com>
21820
21821 * function.c (assign_parm_setup_reg): Properly rename variables in
21822 FUNCTION_ARG_CALLEE_COPIES section.
21823
21824 2004-07-05 Zack Weinberg <zack@codesourcery.com>
21825
21826 * tree-mudflap.c: Include cgraph.h.
21827 (mf_init_extern_trees): Rename to mudflap_init. Export.
21828 Rewrite to create synthetic declarations instead of looking
21829 up declarations from mf-runtime.h.
21830 (mf_make_builtin, mf_make_cache_struct_type): New functions.
21831 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
21832 Correct commentary.
21833 (execute_mudflap_function_decls, mudflap_register_call):
21834 Don't call mf_init_extern_trees.
21835 (mudflap_finish_file): Use cgraph_build_static_cdtor.
21836
21837 * tree-mudflap.h: Update prototypes.
21838 * c-mudflap.c: Delete file.
21839 * c-common.c: Include tree-mudflap.h.
21840 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
21841 * Makefile.in: Remove all references to c-mudflap.o.
21842 Update dependencies.
21843
21844 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21845
21846 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
21847 displacements with the spatial-locality cache-control completer.
21848
21849 2004-07-05 Zack Weinberg <zack@codesourcery.com>
21850
21851 * langhooks.c: Don't include gt-langhooks.h.
21852 (var_labelno): Delete.
21853 (lhd_set_decl_assembler_name): Do not append a distinguishing
21854 number to file-scope internal-linkage declarations for the first
21855 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
21856 the declaration itself (if at block scope), or its containing
21857 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
21858 number.
21859
21860 * opts.c (cur_in_fname): New global.
21861 * opts.h: Declare it.
21862 * tree.c: Include opts.h.
21863 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
21864 DECL_UID equal to cur_in_fname.
21865 (copy_node_stat): Do not change DECL_UID when copying a
21866 TRANSLATION_UNIT_DECL.
21867 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
21868 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
21869
21870 * c-decl.c (c_static_assembler_name): Delete.
21871 * c-tree.h (c_static_assembler_name): Delete prototype.
21872 * c-lang.c, objc/objc-lang.c: Don't override
21873 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
21874
21875 * Makefile.in (tree.o): Update dependencies.
21876 (GTFILES): Remove langhooks.c.
21877
21878 2004-07-05 Roger Sayle <roger@eyesopen.com>
21879
21880 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
21881 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
21882 Normalize "X % C" as "X % -C" for signed modulus and negative C.
21883 Optimize "X % -Y" as "X % Y" for signed modulus.
21884 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
21885 into "((unsigned) X % Y) == 0".
21886
21887 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
21888
21889 * sourcebuild.texi (Config Fragments): Use @comma{} in
21890 cross-reference to section title.
21891
21892 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21893
21894 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
21895 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
21896 (gimplify_target_expr, gimplify_expr): Likewise.
21897 (copy_if_shared_r): No longer need special case for BIND_EXPR.
21898 (unshare_body, unvisit_body): Only look at nested if BODY_P is
21899 whole function.
21900 (gimplify_compound_lval): See if we can strip any useless conversion.
21901 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
21902 from RHS, not LHS.
21903 (gimplify_modify_expr_to_memset): Likewise.
21904 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
21905 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
21906 (declare_inline_vars): Likewise.
21907 (walk_type_fields): New function.
21908 (walk_tree): Use it.
21909 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
21910
21911 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
21912 (sra_walk_modify_expr): Allow init function to fail.
21913 (scan_init): Now returns bool.
21914 (generate_element_init): If can't understand INIT, return false.
21915 (scalarize_init): Return false if generate_element_init does.
21916
21917 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
21918 print bounds.
21919
21920 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
21921 bounds if bounds aren't constant.
21922
21923 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
21924
21925 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
21926 to type hooks; remove bogus PARAMS.
21927
21928 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
21929
21930 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
21931 * dwarf2out.c (add_data_member_location_attribute): Check for
21932 TREE_BINFO.
21933 * tree.c (tree_node_kinds): Add "binfos".
21934 (binfo_lang_slots): New.
21935 (make_node_stat): Add TREE_BINFO.
21936 (make_tree_binfo_stat): New.
21937 (tree_node_structure): Add TREE_BINFO.
21938 * tree.def (TREE_BINFO): New.
21939 * tree.h (REC_OR_UNION_CHECK): Rename to ...
21940 (RECORD_OR_UNION_CHECK): ... here.
21941 (NOT_RECORD_OR_UNION_CHECK): New.
21942 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
21943 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
21944 RECORD_OR_UNION_CHECK.
21945 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
21946 (TYPE_LANG_SLOT_1): New.
21947 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
21948 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
21949 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
21950 (BINFO_ELTS): Remove.
21951 (BINFO_LANG_SLOT): New.
21952 (struct tree_binfo): New.
21953 (binfo_lang_slots): Declare.
21954 (enum tree_node_structure_enum): Add TS_BINFO.
21955 (union tree_node): Add binfo.
21956 (make_tree_binfo_stat): Declare.
21957 (make_tree_binfo): New.
21958 (enum tree_node_kind): Add binfo_kind.
21959
21960 * objc/objc-act.c (start_class, objc_declare_protocols,
21961 start_protocols): Use TYPE_LANG_SLOT_1.
21962 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
21963 to ...
21964 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
21965 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
21966 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
21967 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
21968
21969 2004-07-05 Steven Bosscher <stevenb@suse.de>
21970
21971 * rtl.h (struct rtx_def): Remove the integrated flag.
21972 Use the return_val flag for MEM_SCALAR_P.
21973 Reshuffle and update flags in CLEAR_RTX_FLAGS.
21974
21975 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
21976
21977 PR target/16357
21978 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
21979 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
21980 move_by_pieces.
21981
21982 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
21983
21984 * var-tracking.c: Fix some comments.
21985 (frame_stack_adjust): New.
21986 (vt_stack_adjustments): Init stack_adjust of entry block to
21987 minus stack adjustment of function prologue.
21988 (adjust_stack_reference): Do not adjust if adjustment == 0.
21989 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
21990 (emit_notes_in_bb): Likewise.
21991 (vt_add_function_parameters): Do not adjust locations of
21992 function arguments.
21993 (vt_initialize): Compute the stack adjustment of function
21994 prologue and offset the initial "location" of frame_base_decl
21995 from the stack pointer after prologue.
21996
21997 2004-07-04 Richard Henderson <rth@redhat.com>
21998
21999 * function.c (struct assign_parm_data_all): New.
22000 (struct assign_parm_data_one): New.
22001 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
22002 assign_parm_find_data_types, assign_parms_setup_varargs,
22003 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
22004 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
22005 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
22006 assign_parm_setup_block, assign_parm_setup_reg,
22007 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
22008 (assign_parms): ... here.
22009
22010 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
22011
22012 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
22013 now are bitmap_set_t's.
22014 (bitmap_insert_into_set): No point in inserting the value if
22015 it's invariant.
22016 (bitmap_set_contains): New function.
22017 (bitmap_set_replace_value): Add comment on why we do it
22018 this way.
22019 (set_contains): Removed.
22020 (bitmap_set_subtract_from_value_set): New name of
22021 set_subtract now that it's arguments are two different
22022 types of sets.
22023 Update callers.
22024 (bitmap_find_leader): Change algorithm used.
22025 (find_or_generate_expression): Update use of functions for new
22026 bitmap sets.
22027 (create_expression_by_pieces): Ditto.
22028 (insert_aux): Ditto.
22029 (insert): Ditto.
22030 (add_to_sets): Ditto.
22031 (init_pre): Ditto.
22032 (execute_pre): Ditto.
22033 (compute_avail): Ditto.
22034 Also ignore virtual phis.
22035
22036 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
22037
22038 * combine.c (simplify_comparison): Fix comment typo.
22039
22040 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
22041
22042 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
22043 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
22044 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
22045 (output_restore): Change parameter from 'insn' to 'pat'.
22046 (output_return): Adjust call to output_restore.
22047 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
22048 Adjust call to output_restore.
22049
22050 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
22051
22052 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
22053 and assert system is bsd.
22054
22055 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
22056
22057 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
22058 (TARGET_SWITCHES): Remove -mdebugc.
22059 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
22060 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
22061 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
22062 (sle_[sd]i_reg): Delete.
22063
22064 2004-07-04 Steven Bosscher <stevenb@suse.de>
22065
22066 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
22067 Define.
22068 * config/iq2000/iq2000.md: Translate old pipeline description to an
22069 equivalent new one.
22070
22071 2004-07-04 Roger Sayle <roger@eyesopen.com>
22072
22073 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
22074 Ensure the replacement rhs is valid gimple before performing
22075 the substitution. Return false if these sanity checks fail.
22076 (fold_stmt): Only set changed to true, if set_rhs returns true.
22077 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
22078 succeeds.
22079
22080 2004-07-04 Richard Henderson <rth@redhat.com>
22081
22082 PR c/16348
22083 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
22084
22085 2004-07-04 Mark Mitchell <mark@codesourcery.com>
22086
22087 * configure.ac (ranlib_flags): New variable.
22088 * Makefile.in (RANLIB_FLAGS): New variable.
22089 (libbackend.a): Use it.
22090 * configure: Regenerated.
22091
22092 2004-07-04 Roger Sayle <roger@eyesopen.com>
22093
22094 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
22095 a "sign mask" instead of using ashr_optab directly.
22096
22097 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
22098
22099 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
22100 * doc/cppopts.texi: Clarify processing of command-line defines.
22101
22102 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
22103
22104 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
22105
22106 2004-07-04 Richard Henderson <rth@redhat.com>
22107
22108 * rtl.def (ADDRESSOF): Remove.
22109 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
22110 (find_base_term, memrefs_conflict_p): Likewise.
22111 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
22112 (fold_rtx, cse_insn, set_live_p): Likewise.
22113 * dwarf2out.c (mem_loc_descriptor): Likewise.
22114 (add_location_or_const_value_attribute): Likewise.
22115 * emit-rtl.c (copy_insn_1): Likewise.
22116 * explow.c (memory_address): Likewise.
22117 * expmed.c (store_split_bit_field): Likewise.
22118 * expr.c (expand_expr_real_1): Likewise.
22119 * function.c (instantiate_decl
22120 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
22121 * genrecog.c (preds, validate_pattern): Likewise.
22122 * integrate.c (copy_rtx_and_substitute): Likewise.
22123 * recog.c (general_operand, register_operand): Likewise.
22124 (memory_address_p): Likwise.
22125 * reload1.c (eliminate_regs, elimination_effects): Likewise.
22126 * rtl.c (copy_rtx): Likewise.
22127 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
22128 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
22129 * rtlhooks.c (gen_lowpart_general): Likewise.
22130 * stmt.c (expand_asm_operands): Likewise.
22131 * web.c (entry_register, replace_ref, web_main): Likewise.
22132 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
22133 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
22134 * config/arm/arm.c (thumb_rtx_costs): Likewise.
22135 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
22136 * config/frv/frv.c (move_destination_operand, move_source_operand,
22137 condexec_dest_operand, condexec_source_operand,
22138 condexec_memory_operand): Likewise.
22139 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
22140 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
22141 (destination_xfmode_operand): Likewise.
22142 * config/mips/mips.h (PREDICATE_CODES): Likewise.
22143 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
22144 * config/s390/s390.c (general_s_operand): Likewise.
22145 * config/s390/s390.md (mov*): Likewise.
22146 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
22147
22148 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
22149 * expr.c (expand_expr_real_1): Likewise.
22150 * stmt.c (expand_decl): Likewise.
22151 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
22152
22153 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
22154 postponed_insns, put_var_into_stack, put_reg_into_stack,
22155 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
22156 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
22157 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
22158 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
22159 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
22160 purge_bitfield_addressof_replacements, purge_addressof_replacements,
22161 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
22162 struct insns_for_mem_walk_info, insns_for_mem_walk,
22163 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
22164 setjmp_protect_args): Remove.
22165 (push_function_context_to): Don't handle var_refs_queue.
22166 (pop_function_context_from, free_after_compilation): Likewise.
22167 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
22168 (assign_parms, allocate_struct_function): Likewise.
22169 (use_register_for_decl): New.
22170 (expand_function_end): Don't setjmp_protect.
22171 * function.h (struct emit_status): Update commentary.
22172 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
22173 (max_parm_reg, parm_reg_stack_loc): Remove.
22174 * passes.c (DFI_addressof): Remove.
22175 (dump_file_info): Remove addressof.
22176 (rest_of_handle_addressof): Remove.
22177 (rest_of_compilation): Don't call it.
22178 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
22179 * stmt.c (expand_decl): Use use_register_for_decl.
22180 * tree.h: Update decls.
22181 * web.c (mark_addressof): Remove.
22182 * doc/invoke.texi (-dF): Remove.
22183
22184 2004-07-03 Richard Henderson <rth@redhat.com>
22185
22186 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
22187 instead of gen_mem_addressof.
22188 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
22189 TImode output register.
22190
22191 2004-07-03 Richard Henderson <rth@redhat.com>
22192
22193 PR tree-optimization/16341
22194 * tree-sra.c (sra_walk_function): Increment to next stmt before
22195 processing the current stmt.
22196 (sra_insert_after): Always use BSI_SAME_STMT.
22197
22198 2004-07-03 Richard Henderson <rth@redhat.com>
22199
22200 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
22201 fp plus with minus.
22202
22203 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
22204
22205 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
22206 with tree_int_cst_equal.
22207
22208 2004-07-03 Andreas Schwab <schwab@suse.de>
22209
22210 * config/ia64/ia64.md: Define new attribute "empty".
22211 (prologue_use, nop_x, insn_group_barrier): Set it.
22212
22213 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
22214 skip over "empty" insns.
22215
22216 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22217
22218 * tree-inline.c (initialize_inlined_parameters): Pass proper function
22219 context to gimplify_body.
22220 (walk_tree): Don't walk into types twice.
22221 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
22222
22223 * tree-sra.c (generate_element_init): Remove any useless conversions.
22224
22225 * gimplify.c (gimplify_conversion): Remove stripping useless
22226 conversions from here.
22227 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
22228 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
22229 Unshare before substituting PLACEHOLDER_EXPR.
22230 (gimplify_modify_expr_to_memset): Likewise.
22231 Pass address of TO to memset, not TO itself.
22232 (gimplify_init_constructor): Make copy of OBJECT so we have it each
22233 time we make an expression (to match a PLACEHOLDER_EXPR).
22234
22235 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
22236 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
22237 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
22238 * tree-ssa-dom.c (local_fold): Likewise.
22239
22240 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
22241 * langhooks.h (strct lang_hooks): New field type_max_size.
22242 * function.c (assign_temp): Call it.
22243
22244 2004-07-03 Steven Bosscher <stevenb@suse.de>
22245
22246 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
22247 * config/sh/sh.md: Convert the SH1 pipeline description to
22248 a DFA model.
22249
22250 2004-07-02 Zack Weinberg <zack@codesourcery.com>
22251
22252 * c-decl.c (struct c_binding): Remove contour field; add
22253 depth, invisible, nested fields.
22254 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
22255 (B_IN_EXTERNAL_SCOPE): New convenience macros.
22256 (bind): Add invisible and nested arguments. Initialize
22257 new fields of struct c_binding; adjust loop scanning for
22258 insertion point.
22259 (free_binding_and_advance): Clear structure with memset.
22260 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
22261 in file scope, even if it's in external scope too.
22262 (pushdecl): Adjust to match. Create invisible file-scope
22263 declarations for block-scope forward declarations of static functions.
22264 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
22265 (undeclared_variable, lookup_label, declare_label, define_label)
22266 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
22267 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
22268 (store_parm_decls_oldstyle): Adjust to match.
22269 (diagnose_mismatched_decls): Correct handling of linkage clashes.
22270 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
22271
22272 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
22273 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
22274
22275 2004-07-02 Richard Henderson <rth@redhat.com>
22276
22277 * c-decl.c (grokdeclarator): Don't frob current_function_decl
22278 around variable_size.
22279 (set_decl_nonlocal): Remove.
22280 (store_parm_decls): Add stmts for pending sizes.
22281 * calls.c (calls_function, calls_function_1): Remove.
22282 (precompute_arguments): Don't call it.
22283 * cfgexpand.c (set_save_expr_context): Remove.
22284 (tree_expand_cfg): Don't call it.
22285 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
22286 (dwarf2out_finish): Likewise.
22287 * expr.c (emit_block_move): Adjust addresses to BLKmode.
22288 (store_constructor): Don't pre-evaluate SAVE_EXPR.
22289 (safe_from_p): Don't queue SAVE_EXPRs.
22290 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
22291 or build plain VAR_DECLs.
22292 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
22293 (fold): Likewise.
22294 (fold_checksum_tree): Don't special-case SAVE_EXPR.
22295 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
22296 (put_var_into_stack): Don't handle SAVE_EXPR.
22297 (gen_mem_addressof): Likewise.
22298 * function.h (struct function): Remove x_save_expr_regs.
22299 (save_expr_regs): Remove.
22300 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
22301 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
22302 * stor-layout.c (variable_size): Don't set it.
22303 (force_type_save_exprs, force_type_save_exprs_1): Remove.
22304 * tree-inline.c (remap_save_expr): Remove fn argument. Update
22305 all callers. Don't set SAVE_EXPR_CONTEXT.
22306 * tree-inline.h (remap_save_expr): Update decl.
22307 * tree.c (save_expr): Update build size.
22308 (first_rtl_op): Don't handle SAVE_EXPR.
22309 (unsave_expr_1, contains_placeholder_p): Likewise.
22310 (decl_function_context): Likewise.
22311 * tree.def (SAVE_EXPR): Remove args 1 and 2.
22312 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
22313 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
22314
22315 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
22316
22317 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
22318 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
22319 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
22320 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
22321 some first-person references and patronizing comments. Based on
22322 printed manual.
22323 * doc/invoke.texi: Don't reference fortran@gnu.org.
22324 * doc/trouble.texi (Warning when a non-void function value is
22325 ignored): Rewrite. From Russ Allbery and Chris Devers.
22326
22327 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
22328
22329 * tree-ssa-pre.c (bitmap_set_t): New.
22330 (bb_value_sets): avail_out is now a bitmap_set_t.
22331 (bitmap_find_leader): New function.
22332 (bitmap_value_insert_into_set): Ditto.
22333 (bitmap_set_copy): Ditto.
22334 (bitmap_value_replace_in_set): Ditto.
22335 (bitmap_set_contains_value): Ditto.
22336 (bitmap_set_new): Ditto.
22337 (bitmap_set_pool): New pool.
22338 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
22339 (insert_aux): Ditto.
22340 (add_to_sets): Ditto.
22341 (compute_avail): Ditto
22342 (eliminate): Ditto.
22343 (init_pre): Ditto.
22344 (fini_pre): Ditto.
22345 (execute_pre): Ditto.
22346
22347 2004-07-02 Roger Sayle <roger@eyesopen.com>
22348
22349 * config/rs6000/rs6000.c (struct processor_costs): New structure
22350 used to hold instruction latencies/sizes for processor types.
22351 (rs6000_cost): New global variable pointing to current CPU's costs.
22352 (rs6000_override_options): Initialize rs6000_cost to point to the
22353 appropriate cost table based upon rs6000_cpu and optimize_size.
22354 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
22355 timings inline.
22356
22357 2004-07-02 Richard Henderson <rth@redhat.com>
22358
22359 * expmed.c (make_tree): Don't use SET_DECL_RTL.
22360
22361 2004-07-02 Steven Bosscher <stevenb@suse.de>
22362
22363 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
22364
22365 2004-07-01 Richard Henderson <rth@redhat.com>
22366
22367 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
22368 (alpha_gp_save_rtx): Use assign_stack_local instead of
22369 gen_mem_addressof.
22370
22371 2004-07-01 Richard Henderson <rth@redhat.com>
22372
22373 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
22374 (alpha_rtx_cost_data): Update to match.
22375 (alpha_rtx_cost_size): New.
22376 (alpha_rtx_costs): Honor optimize_size.
22377
22378 2004-07-01 Richard Henderson <rth@redhat.com>
22379
22380 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
22381 * cfgexpand.c (tree_expand_cfg): Do it here.
22382 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
22383 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
22384 * config/mips/mips.c (mips_output_mi_thunk): And here.
22385 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
22386 * config/sh/sh.c (sh_output_mi_thunk): And here.
22387 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
22388
22389 2004-07-01 Richard Henderson <rth@redhat.com>
22390
22391 * tree.def (RTL_EXPR): Remove.
22392 * c-typeck.c (lvalue_p): Don't handle it.
22393 * expr.c (safe_from_p): Likewise.
22394 (expand_expr_real_1): Likewise.
22395 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
22396 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
22397 * gengtype.c (adjust_field_tree_exp): Likewise.
22398 * stmt.c (warn_if_unused_value): Likewise.
22399 * tree-gimple.c (recalculate_side_effects): Likewise.
22400 * tree-pretty-print.c (dump_generic_node): Likewise.
22401 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
22402 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
22403 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
22404
22405 * stmt.c (struct stmt_status): Remove x_last_expr_type,
22406 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
22407 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
22408 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
22409 all the bits that tracked last_expr.
22410 (expand_end_bindings): Don't track last_expr.
22411 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
22412 (clear_last_expr): Remove.
22413 (expand_asm): Don't call it.
22414 (expand_asm_operands, expand_end_cond): Likewise.
22415 (expand_naked_return, expand_null_return_1): Likewise.
22416 * c-typeck.c (c_begin_compound_stmt): Likewise.
22417 * cfgexpand.c (expand_block): Use expand_expr_stmt.
22418 * expr.c (expand_expr_real_1): Likewise.
22419 * tree.h: Update prototypes.
22420
22421 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
22422 (struct emit_status): Remove sequence_rtl_expr.
22423 (struct function): Remove x_rtl_expr_chain.
22424 (seq_rtl_expr, rtl_expr_chain): Remove.
22425 * function.c (struct temp_slot): Remove rtl_expr.
22426 (assign_stack_temp_for_type): Don't set it.
22427 (free_temp_slots, pop_temp_slots): Don't check it.
22428 (free_after_compilation): Don't clear x_rtl_expr_chain.
22429 (fixup_var_refs): Don't search it.
22430 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
22431 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
22432 or seq_rtl_expr.
22433 (push_topmost_sequence): Likewise.
22434 (end_sequence, init_emit): Likewise.
22435 (start_sequence_for_rtl_expr): Remove.
22436 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
22437 * rtl.h (preserve_rtl_expr_result): Remove.
22438
22439 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
22440
22441 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
22442 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
22443 typos.
22444
22445 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
22446
22447 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
22448 (STANDARD_STARTFILE_PREFIX_2): Define.
22449 (standard_startfile_prefix_1): Initialize to
22450 STANDARD_STARTFILE_PREFIX_1.
22451 (standard_startfile_prefix_2): Initialize to
22452 STANDARD_STARTFILE_PREFIX_2.
22453 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
22454 (STANDARD_STARTFILE_PREFIX_1): Define.
22455 (STANDARD_STARTFILE_PREFIX_2): Define.
22456 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
22457 (STANDARD_STARTFILE_PREFIX_2): Document.
22458
22459 2004-07-01 Richard Henderson <rth@redhat.com>
22460
22461 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
22462 in order to disable scalarization. Instead set a flag and wait
22463 for a candidate decl.
22464
22465 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
22466
22467 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
22468 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
22469 Use terminology "testsuite" and "enumerated".
22470
22471 2004-07-01 Richard Henderson <rth@redhat.com>
22472
22473 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
22474 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
22475 (initial_return_save): Likewise.
22476 (flush_queued_reg_saves): Remap register numbers.
22477 (dwarf2out_return_reg): Likewise.
22478
22479 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22480
22481 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
22482
22483 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
22484 access functions for lower bound and element size and only output
22485 if lower bound nonzero or element size not same as that of type.
22486 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
22487
22488 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
22489
22490 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
22491
22492 2004-07-01 Per Bothner <per@bothner.com>
22493
22494 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
22495
22496 2004-07-01 Jakub Jelinek <jakub@redhat.com>
22497
22498 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
22499 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
22500 first operand. Don't optimize if the bitfield is volatile.
22501
22502 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
22503
22504 * c-pretty-print.c (pp_c_postfix_expression): Handle
22505 floating-point comparison operators.
22506 (pp_c_expression): Pass floating-point comparison
22507 operators to pp_c_postfix_expression.
22508
22509 2004-07-01 Roger Sayle <roger@eyesopen.com>
22510
22511 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
22512 rtx_cost instead of "had_mult" to determine whether the transformed
22513 expression is cheaper than the original.
22514
22515 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
22516
22517 * alias.c (get_alias_set, canon_rtx, get_addr,
22518 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
22519 Use MEM_P.
22520 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
22521 expand_builtin): Likewise.
22522 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
22523 Likewise.
22524 * combine.c (can_combine_p, combinable_i3pat, try_combine,
22525 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
22526 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
22527 record_dead_and_set_regs_1, get_last_value_validate,
22528 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
22529 * cse.c (check_dependence, canon_hash, equiv_constant,
22530 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
22531 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
22532 count_reg_usage): Likewise.
22533 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
22534 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
22535 cselib_record_sets): Likewise.
22536 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
22537 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
22538 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
22539 * df.c (df_uses_record): Likewise.
22540 * dojump (do_jump): Likewise.
22541 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
22542 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
22543 decl_start_label): Likewise.
22544 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
22545 operand_subword, change_address_1, make_safe_from): Likewise.
22546 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
22547 stabilize, force_not_mem): Likewise.
22548 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
22549 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
22550 * expr.c (convert_move, convert_modes, emit_block_move,
22551 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
22552 emit_move_insn_1, expand_assignment, store_expr,
22553 store_constructor_field, store_constructor, store_field,
22554 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
22555 Likewise.
22556 * final.c (cleanup_subreg_operands, alter_subreg,
22557 get_mem_expr_from_op): Likewise.
22558 * flow.c (notice_stack_pointer_modification_1,
22559 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
22560 Likewise.
22561 * function.c (mark_temp_addr_taken, preserve_temp_slots,
22562 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
22563 optimize_bit_field, flush_addressof, purge_addressof_1,
22564 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
22565 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
22566 keep_stack_depressed): Likewise.
22567 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
22568 noce_process_if_block, find_memory): Likewise.
22569 * integrate.c (subst_constants, allocate_initial_values): Likewise.
22570 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
22571 update_equiv_regs): Likewise.
22572 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
22573 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
22574 * optabs.c (expand_abs, emit_unop_insn): Likewise.
22575 * passes.c (rest_of_handle_final): Likewise.
22576 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22577 move2add_note_store): Likewise.
22578 * ra-build.c (detect_remat_webs): Likewise.
22579 * ra-debug.c (dump_static_insn_cost): Likewise.
22580 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
22581 * recog.c (validate_change, apply_change_group, cancel_changes,
22582 validate_replace_rtx_1, general_operand, register_operand,
22583 nonmemory_operand, push_operand, pop_operand, memory_operand,
22584 indirect_operand, asm_operand_ok, offsettable_memref_p,
22585 offsettable_nonstrict_memref_p, constrain_operands,
22586 store_data_bypass_p): Likewise.
22587 * reg-stack.c (subst_stack_regs_pat): Likewise.
22588 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
22589 copy_cost, reg_scan_mark_refs): Likewise.
22590 * regmove.c (optimize_reg_copy_3, stack_memref_p,
22591 combine_stack_adjustments_for_block): Likewise.
22592 * regrename.c (copyprop_hardreg_forward_1): Likewise.
22593 * reload.c (can_reload_into, push_reload, decompose, immune_p,
22594 find_reloads, find_reloads_address, find_reloads_address_1,
22595 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
22596 find_equiv_reg): Likewise.
22597 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
22598 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
22599 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
22600 delete_address_reloads): Likewise.
22601 * resource.c (mark_referenced_resources): Likewise.
22602 * rtlanal.c (get_jump_table_offset, count_occurrences,
22603 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
22604 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
22605 num_sign_bit_copies1): Likewise.
22606 * rtlhooks.c (gen_lowpart_general): Likewise.
22607 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
22608 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
22609 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
22610 sdbout_global_decl): Likewise.
22611 * simplify-rtx.c (simplify_subreg): Likewise.
22612 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
22613 expand_anon_union_decl, expand_end_case_type): Likewise.
22614 * unroll.c (calculate_giv_inc): Likewise.
22615 * var-tracking.c (stack_adjust_offset_pre_post,
22616 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
22617 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
22618 vt_add_function_parameters): Likewise.
22619 * varasm.c (make_var_volatile, notice_global_symbol,
22620 assemble_external, decode_addr_const, mark_weak,
22621 default_encode_section_info): Likewise.
22622
22623 2004-07-01 Steven Bosscher <stevenb@suse.de>
22624
22625 * stmt.c (check_seenlabel): Remove.
22626 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
22627
22628 2004-07-01 Richard Henderson <rth@redhat.com>
22629
22630 * function.h (struct function): Remove x_function_call_count.
22631 (function_call_count): Remove.
22632 * calls.c (expand_call): Don't set it.
22633 * integrate.c (copy_rtx_and_substitute): Likewise.
22634
22635 * function.h (struct function): Remove x_cleanup_label.
22636 (cleanup_label): Remove.
22637 * stmt.c (expand_value_return): Don't use it.
22638 * function.c (free_after_compilation): Don't set it.
22639 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
22640 * cfgexpand.c (tree_expand_cfg): Update call.
22641 * tree.h (expand_function_start): Update decl.
22642
22643 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
22644
22645 PR c/1027
22646 * c-lang.c (c_initialize_diagnostics): Move from here ...
22647 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
22648 (c_tree_printer): Use pretty-printer to format %T.
22649 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
22650 before '*' if not C++.
22651 (pp_c_direct_abstract_declarator): Don't try to print array upper
22652 bound for flexible array members.
22653 * c-tree.h: Include "diagnostic.h".
22654 (c_initialize_diagnostics): Declare.
22655 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
22656 * c-format.c (format_type_warning): New function. Improve
22657 diagnostics for incorrect format argument types.
22658 (check_format_types): Use it. Add two parameters. Use the
22659 TYPE_MAIN_VARIANT of wanted_type.
22660 (check_format_info_main): Pass new parameters to
22661 check_format_types.
22662 (struct format_wanted_type): Update comment.
22663
22664 2004-07-01 Nick Clifton <nickc@redhat.com>
22665
22666 * target.h (struct gcc_target): Add new field to struct cxx:
22667 import_export_class.
22668 * target-def.h (TARGET_CXX): Initialise the new field.
22669 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
22670 the new field.
22671 * doc/tm.texi: Document the new target hook.
22672
22673 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
22674
22675 * builtins.c (fold_builtin_classify): Fix typo.
22676
22677 2004-07-01 Richard Henderson <rth@redhat.com>
22678
22679 * function.c (identify_blocks, identify_blocks_1): Remove.
22680 * function.h (identify_blocks): Remove.
22681 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
22682
22683 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
22684
22685 * builtins.c (fold_builtin_classify): New.
22686 (fold_builtin_unordered_cmp): Fix commentary.
22687 (fold_builtin): Use it.
22688 * builtins.def: Define builtins for isnan,
22689 isnanf, isnanl, finite, finitef, finitel,
22690 isinf, isinff, isinfl.
22691
22692 2004-07-01 Richard Henderson <rth@redhat.com>
22693
22694 * function.h (struct function): Remove dont_emit_block_notes.
22695 * gimple-low.c (lower_function_body): Don't set it.
22696 * cfgexpand.c (expand_block): Don't check it.
22697 * cfglayout.c (insn_locators_initialize): Likewise.
22698 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
22699 * passes.c (rest_of_compilation): Likewise.
22700 * stmt.c (expand_start_bindings_and_block): Likewise.
22701 (expand_end_bindings): Likewise.
22702
22703 2004-07-01 Richard Henderson <rth@redhat.com>
22704
22705 * cgraph.h (cgraph_build_static_cdtor): Declare.
22706 * cgraphunit.c (cgraph_build_static_cdtor): New.
22707 * c-objc-common.c (build_cdtor): Use it.
22708 * coverage.c (create_coverage): Likewise.
22709 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
22710 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
22711
22712 See ChangeLog.11 for earlier changes.