]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
cfg.c (unchecked_make_edge): Call execute_on_growing_pred after making an edge.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
b31997c0
KH
12004-11-22 Kazu Hirata <kazu@cs.umass.edu>
2
3 * tree-flow.h: Remove the prototype for remove_phi_arg.
4 Add a prototype for remove_phi_args.
5 * tree-phinodes.c (remove_phi_arg): Remove.
6 (remove_phi_args): New.
7 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
8 of remove_phi_arg.
9
d9d4706f
KH
10 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
11 after making an edge.
12 (remove_edge): Call execute_on_shrinking_pred before removing
13 an edge.
14 (redirect_edge_succ): Call execute_on_growing_pred and
15 execute_on_shrinking_pred.
16 * cfghooks.c (execute_on_growing_pred): New.
17 (execute_on_shrinking_pred): Likewise.
18 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
19 execute_on_shrinking_pred.
20 Add prototypes for execute_on_growing_pred and
21 execute_on_shrinking_pred.
22 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
23 execute_on_growing_pred and execute_on_shrinking_pred.
24 (cfg_layout_rtl_cfg_hook): Likewise.
25 * tree-cfg.c (tree_cfg_hooks): Likewise.
26
d7889929
BE
272004-11-23 Ben Elliston <bje@au.ibm.com>
28
29 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
30 @table to list the BSI methods. Use individual @findex directives
31 instead of one with a comma-separated list of index entries.
32
1d481ba8
ZD
332004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
34
35 PR tree-optimization/18529
36 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
37 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
38 (fold): Call fold_to_nonsharp_ineq_using_bound.
39 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
40 (number_of_iterations_cond): Fold the expressions before futher
41 processing.
42 (tree_simplify_using_condition): Handle case when cond or expr is
43 an EQ_EXPR specially.
44
46b483a7
DB
452004-11-22 Daniel Berlin <dberlin@dberlin.org>
46
47 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
48 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
49
ad630bef
DE
502004-11-22 David Edelsohn <edelsohn@gnu.org>
51 Fariborz Jahanian <fjahanian@apple.com>
52
53 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
54 TARGET_ALTIVEC_ABI.
55 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
56 Align 16 byte and larger vectors like Altivec.
57 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
58 (function_arg): Same.
59 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
60
478e2092
AP
612004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
62
63 PR tree-opt/18572
64 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
65 it.
66
65c844e2
RH
672004-11-22 Richard Henderson <rth@redhat.com>
68
69 * function.c (assign_parm_setup_block): Revert 11-13 change to
70 forcably re-mode a (possibly BLKmode) hard register.
71
167a1354
EB
722004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
73
74 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
75
4e596a09
DE
762004-11-22 David Edelsohn <edelsohn@gnu.org>
77
78 * config/rs6000/power4.md: Remove delay between dispatch and issue
79 associated with dispatch group slots 3 and 4.
80 * config/rs6000/power5.md: Same.
81
9ff3d2de
JL
822004-11-21 Jeff Law <law@redhat.com>
83
84 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
85 variant.
86 * cfgbuild.c (make_edges): Likewise.
87 * cfghooks.c (can_duplicate_block_p): Likewise.
88 * cfgloop.c (loop_latch_edge): Likewise.
89 * cfgloopmanip.c (force_single_succ_latches): Likewise.
90 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
91 * predict.c (predict_loops, propagate_freq): Likewise.
92 * tracer.c (tail_duplicate): Likewise.
93 * tree-cfg.c (disband_implicit_edges): Likewise.
94 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
95
18b0f6cc
NC
962004-11-22 Nick Clifton <nickc@redhat.com>
97
98 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
99 initialisation of 'e'.
100
90710901
KH
1012004-11-22 Kazu Hirata <kazu@cs.umass.edu>
102
103 PR rtl-optimization/18599
104 * regrename.c (copyprop_hardreg_forward): Speed up by putting
105 BB_VISITED flags on basic blocks as we process them.
106
f96bc213
NS
1072004-11-22 Nathan Sidwell <nathan@codesourcery.com>
108
109 * config/rs6000/altivec.md (VI_char): New mode attribute.
110 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
111 (add<mode>3): ... this.
112 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
113 (sub<mode>3): ... this.
114 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
115 (smax<mode>3): ... this.
116 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
117 (smin<mode>3): ... this.
118 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
119 (umax<mode>3): ... this.
120 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
121 (umin<mode>3): ... this.
122 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
123 (and<mode>3): ... this.
124 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
125 (ior<mode>3): ... this.
126 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
127 (xor<mode>3): ... this.
128 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
129 (and<mode>3): ... this.
130 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
131 (ior<mode>3): ... this.
132 (altivec_vnor): Replace with ...
133 (altivec_nor<mode>): ... this.
134 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
135 (one_cmpl<mode>2): ... this.
136 (altivec_vandc): New expander.
137 (*andc<mode>3): New insn.
138 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
139
618bb89c
DN
1402004-11-22 Dorit Naishlos <dorit@il.ibm.com>
141
142 PR tree-opt/18536
143 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
144 creating iv instead of integer_type.
145 (vect_build_loop_niters): Remove redundant code.
146 (vect_transform_loop_bound): Removed (duplicates functionality of
147 make_loop_iterate_ntimes.
148 (vect_gen_niters_for_prolog_loop): Add documentation. Call
149 lang_hooks.types.type_for_size to create a type of the required size.
150 Use that type instead of integer_type. Remove redundant code.
151 (vect_update_niters_after_peeling): Use type of niters instead of
152 integer_type.
153 (vect_transform_loop): Unify handling of known and unknown loop bound
154 cases. Call make_loop_iterate_ntimes instead of
155 vect_transform_loop_bound.
156
b6a4e963
AP
1572004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
158
159 PR target/18217
160 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
161 (LIB2ADDEH): Here.
162
2fa2d802
DN
1632004-11-22 Dorit Naishlos <dorit@il.ibm.com>
164
165 PR tree-opt/18544
166 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
167
b94d4fe0
KI
1682004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
169
170 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
171 m32r*linux.
172 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
173 m32r/libgcc-glibc.ver.
174 * config/m32r/libgcc-glibc.ver: Add New file.
175
7932a3db
NS
1762004-11-22 Nathan Sidwell <nathan@codesourcery.com>
177
178 * bitmap.h (struct bitmap_obstack): New obstack type.
179 (struct bitmap_head_def): Replace using_obstack with obstack
180 pointer.
181 (bitmap_default_obstack): New.
182 (bitmap_initialize): Make inline, does not do allocation.
183 (bitmap_release_memory): Remove.
184 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
185 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
186 bitmap_obstack_free, bitmap_malloc_free): Declare.
187 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
188 (BITMAP_FREE): Replace with ...
189 (BITMAP_OBSTACK_FREE): ... this.
190 (BITMAP_XFREE): Adjust.
191 (BITMAP_INIT_ONCE): Remove.
192 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
193 (bitmap_default_obstack): New.
194 (bitmap_elem_to_freelist): Adjust.
195 (bitmap_element_allocate): Adjust. Break initialization into ...
196 (bitmap_obstack_initialize): ... here.
197 (bitmap_release_memory): Replace with ...
198 (bitmap_obstack_release): ... this.
199 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
200 bitmap_obstack_free, bitmap_malloc_free): New.
201 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
202 bitmap_initialize.
203 (bitmap_initialize): Move to bitmap.h.
204 * gengtype.c (open_base_files): Add obstack.h to ifiles.
205 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
206 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
207 (INITIALIZE_REG_SET): Remove.
208 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
209 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
210 (flow_obstack): Do not declare.
211 (reg_obstack): Declare.
212 * regs.h: Include obstack.h.
213 * tree-optimize.c (tree_rest_of_compilation): Initialize and
214 release bitmap obstack here.
215 * bb-reorder.c: #include regs, not basic-block.
216 (fix_crossing_conditional_branches): Allocate regsets from
217 reg_obstack.
218 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
219 obstack.h.
220 * caller-save.c: Include regs.h earlier.
221 * cfg.c: Do not include basic-block.h or obstack.h.
222 (reg_obstack): Define.
223 * cfganal.c: Include obstack.h
224 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
225 earlier.
226 * cfglayout.c: Do not include obstack.h.
227 (flow_obstack): Remove declaration.
228 (cfg_layout_duplicate_bb): Use reg_obstack.
229 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
230 * cfgrtl.c (rtl_split_block): Use reg_obstack.
231 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
232 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
233 (cfg_layout_split_edge): Use reg_obstack.
234 * cse.c: Include regs.h earlier.
235 * ddg.c: Do not include basic-block.h.
236 * dominance.c: Inlude obstack.h.
237 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
238 (calculate_global_regs_live): Likewise.
239 (allocate_bb_life_data): Use reg_obstack.
240 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
241 * global.c: Do not include basic-block.h.
242 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
243 * graph.c: Include obstack.h.
244 * haifa-sched.c: Do not include basic-block.h.
245 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
246 * local-alloc.c: Do not include basic-block.h.
247 * loop-init.c, loop-invariant.c: Include obstack.h.
248 * loop-iv.c: Likewise.
249 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
250 adjust.
251 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
252 * modulo-sched.c: Do not include basic-block.h.
253 * passes.c (rest_of_handle_final): Do not call
254 regset_release_memory.
255 * ra-debug.c: Include regs.h earlier. Do not include
256 basic-block.h.
257 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
258 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
259 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
260 (regset_release_memory): Remove.
261 * resource.c: Do not include basic-block.h.
262 * rtlanal.c: Do not include basic-block.h.
263 * sbitmap.c: Include obstack.h.
264 * sched-deps.c: Do not include basic-block.h.
265 (reg_pending_sets_head, reg_pending_clobbers_head,
266 reg_pending_uses_head): Remove.
267 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
268 * sched-ebb.c: Do not include basic-block.h.
269 * sched-rgn.c: Likewise.
270 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
271 BITMAP_XFREE.
272 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
273 * tree-sra.c (decide_instantiations): Adjust bitmap
274 initialization.
275 * tree-ssa-dce.c: Include obstack.h.
276 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
277 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
278 (bitmap_set_new): Likewise.
279 (init_pre): Initialize bitmap obstack.
280 (fini_pre): Release bitmap obstack.
281 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
282 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
283 (mark_for_rewrite, unmark_for_rewrite): Likewise.
284 (marked_ssa_names): Likewise.
285 (init_ssanames): Use BITMAP_XMALLOC.
286 (fini_ssanames): Use BITMAP_XFREE.
287 * web.c: Include obstack.h
288
6cb70db4
NC
2892004-11-22 Nick Clifton <nickc@redhat.com>
290
291 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
292 predecessor in the first for-loop.
293
8ff40a74
SS
2942004-11-21 Stan Shebs <shebs@apple.com>
295
8968965d
SS
296 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
297 UNION_TYPE case.
298 (function_arg): Move darwin test up, sniff mode first for
299 efficiency, test for union type.
8ff40a74 300
31492595
DJ
3012004-11-21 Dale Johannesen <dalej@apple.com>
302
303 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
304
609d9bed
JL
3052004-11-21 Jeff Law <law@redhat.com>
306
307 * tree-ssa.c (verify_use): Fix comment.
308 (verify_phi_args): Check that the number of incoming edges matches
309 the number of PHI arguments. Check that each PHI argument is
310 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
311 dead or duplicated edges. Clear e->aux earlier and avoid separate
312 loop to clear e->aux and test for missed edges.
313 (verify_ssa): Remove first walk over statements. Move checking
314 of PHI args into verify_phi_args. Move checking of statements
315 with aliased stores and V_MAY_DEFS into the remaining loop over
316 the statements. Register defs by walking through the formal
317 SSA_NAME table.
318
6da285d2
RS
3192004-11-21 Roger Sayle <roger@eyesopen.com>
320
321 PR middle-end/18520
322 * dojump.c (compare_from_rtx): Clarify mode argument in function
323 description. Correct order of mode/cmp_mode arguments in call to
324 simplify_relational_operation. Check "tem" for COMPARISON_P.
325
e8578da6
PB
3262004-11-21 Paolo Bonzini <bonzini@gnu.org>
327 David Edelsohn <edelsohn@gnu.org>
b693336b
PB
328
329 PR target/17836
330 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
331 synthetic vectors in memory.
332 (function_arg_boundary): Align large synthetic vectors.
333 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
334
db02564e
JL
3352004-11-21 Jeff Law <law@redhat.com>
336
763ea904
JL
337 * cfg.c (update_bb_profile_for_threading): Do not rescale the
338 successor probabilities if they are not going to change. Pull
339 division out of loop if we do need to rescale successor probabilities.
340
db02564e
JL
341 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
342 index of the destination block for the hash value rather than
343 hashing a pointer.
344
a4ab7973
JM
3452004-11-20 Joseph S. Myers <joseph@codesourcery.com>
346
347 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
348 checks for neither argument being an array or pointer (swapping
349 the arguments if necessary), the array argument being a pointer to
350 or array of functions and for -Wchar-subscripts warnings upfront.
351
40806b8b
JL
3522004-11-20 Jeff Law <law@redhat.com>
353
354 * regrename.c (copyprop_hardreg_forward): Only search for a
355 previously processed block if the current block only has one
356 predecessor.
357
e7a531ae
KH
3582004-11-20 Kazu Hirata <kazu@cs.umass.edu>
359
360 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
361 typos.
362 * config/arm/arm.c: Follow spelling conventions.
363
2075b05d
RE
3642004-11-20 Richard Earnshaw <rearnsha@arm.com>
365
366 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
367 a bit in tune_flags.
368 (const_double_needs_minipool): Likewise. Split most of the code out
369 into ...
370 (arm_const_double_inline_cost): ... new function here.
371 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
372 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
373 word constants of length 2, 3 and 4 insns respectively.
374 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
375 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
376 constraints. Set insn lenghts accordingly.
377
6a73fe75
AP
3782004-11-19 Jeff Law <law@redhat.com>
379
380 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
381 a hash table. Extensive modifications throughout to support
382 that change.
383 (struct el): New.
384 (struct local_info): New.
385 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
386 fields.
387 (redirection_data): Now a hashtable.
388 (redirection_data_hash, redirection_data_eq): New.
389 (lookup_redirection_data, create_duplicates): New.
390 (create_edge_and_update_destionation_phis): New.
391 (fixup_template_block, redirect_edges): New.
392 (thread_block): Use hash table traversals instead of loops over
393 varray entries or incoming edge vectors.
394
73553871
KH
3952004-11-19 Kazu Hirata <kazu@cs.umass.edu>
396
397 * basic-block.h (edge_def): Add dest_idx.
398 * cfg.c (unchecked_make_edge): Initialize dest_idx.
399 (remove_edge): Simplify the disconnection of an edge from its
400 destination.
401 (redirect_edge_succ): Likewise.
402 * cfghooks.c (verify_flow_info): Check the consistency of
403 dest_idx for each edge.
404
449ecb09
AH
4052004-11-19 Aldy Hernandez <aldyh@redhat.com>
406
407 * simplify-rtx.c (simplify_ternary_operation): Use
a5436b2f 408 gen_int_mode.
449ecb09 409
4f7db7f7
KH
4102004-11-19 Kazu Hirata <kazu@cs.umass.edu>
411
412 * tree-cfg.c (reinstall_phi_args): New.
413 (tree_split_edge): Use it after redirecting an edge. Don't
414 modify PHI_ARG_EDGE.
415
1d8a9009
AT
4162004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
417
418 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
419 if checking is enabled.
420
72c4e4db
JM
4212004-11-19 Joseph S. Myers <joseph@codesourcery.com>
422
423 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
424 too many nested scopes.
425
63dfe6ff
DN
4262004-11-19 Dorit Naishlos <dorit@il.ibm.com>
427
428 PR tree-opt/18181
429 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
430 changed to suppoer uses-after-loop and to void creating flow paths
431 that shouldn't exist.
432 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
433 Modified to fit the new peeling scheme. Avoid quadratic behavior.
434 (slpeel_add_loop_guard): Takes additional argument.
435 (slpeel_verify_cfg_after_peeling): New function.
436 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
437 documentation. Use 'exit-bb' instead of creating 'new-bb'.
438 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
439 the new peeling scheme.
440 (copy_phi_nodes): Function removed. Its functionality moved to
441 update_phis_for_duplicate_loop.
442 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
443 moved here. Added documentation. Modified to fit the new peeling scheme.
444 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
445 needed - done in slpeel_tree_peel_loop_to_edge.
446 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
447 (vect_do_peeling_for_loop_bound): Add documentation. Call
448 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
449 with additional argument.
450 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
451
452 (vect_finish_stmt_generation): Avoid 80 column oveflow.
453
335d3d54
DN
4542004-11-19 Dorit Naishlos <dorit@il.ibm.com>
455
456 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
457 arguments removed.
458 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
459 without last two arguments. Update single_exit of loops.
460 (vect_update_niters_after_peeling): Removed. Its functionality was
461 moved to vect_do_peeling_for_alignment.
462 (vect_do_peeling_for_loop_bound): New name for function previously
463 called vect_transform_for_unknown_loop_bound.
464 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
465 instead of code that duplicates the same functionality.
466 (vect_do_peeling_for_alignment): Functionality of
467 vect_update_niters_after_peeling moved here.
468 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
469 previously named vect_transform_for_unknown_loop_bound - for both known
470 and unknown loop bound cases.
471
d6901754
DN
4722004-11-19 Dorit Naishlos <dorit@il.ibm.com>
473
474 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
475 previously called verify_loop_for_duplication. All conditions compacted
476 into one compound condition. Removed debug dumps.
477 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
478 functionality moved to vect_can_advance_ivs_p, and some to
479 vect_analyze_loop_form.
480 (vect_can_advance_ivs_p): New function. Contains functionality that was
481 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
482 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
483 (vect_analyze_operations): Call vect_can_advance_ivs_p and
484 slpeel_can_duplicate_loop_p.
485 (vect_get_loop_niters): Added documentation.
486 (vect_analyze_loop_form): Check the loop entry always - not only in case
487 of unknown loop bound. Create preheader and exit bb if necessary. Apply
488 a check that used to take place in
489 vect_analyze_loop_with_symbolic_num_of_iters.
490 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
491 Remove redundant call to rewrite_into_loop_closed_ssa.
492 (vect_compute_data_refs_alignment): Removed obsolete comment.
493
f88a8cfa
DN
4942004-11-19 Dorit Naishlos <dorit@il.ibm.com>
495
496 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
497 function previously called tree_duplicate_loop_to_edge.
498 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
499 previously called tree_duplicate_loop_to_edge_cfg.
500 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
501 function name.
502 (slpeel_update_phi_nodes_for_guard): Likewise.
503 (slpeel_make_loop_iterate_ntimes): Likewise.
504 (slpeel_add_loop_guard): Likewise.
505 (allocate_new_names, free_new_names): Function declaration moved to top
506 of file.
507 (rename_use_op, rename_def_op): Likewise.
508 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
509 (vect_generate_tmps_on_preheader): Function declaration moved.
510 (vect_transform_for_unknown_loop_bound): Added missing function
511 declaration.
512
3a2e4b46
AP
5132004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
514
515 PR tree-opt/18507
33976614
AP
516 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
517 Define a VEC(tree_on_heap) for head.
518 (register_new_def): Change second argument to be a VEC(tree_on_heap).
519 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3a2e4b46 520 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
33976614 521 the VEC(tree_on_heap) function. Also free it before returning.
3a2e4b46
AP
522 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
523 for block_defs_stack.
524 (restore_currdefs_to_original_value): Use VEC_length instead of
525 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
526 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
527 for block_defs_stack.
33976614 528 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3a2e4b46
AP
529 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
530 for block_defs_stack.
531 (ssa_register_new_def): Likewise.
532 (ssa_rewrite_initialize_block): Likewise.
533 (rewrite_finalize_block): Use VEC_length instead of
534 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
535 (ssa_rewrite_finalize_block): Likewise.
33976614 536 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3a2e4b46
AP
537 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
538 (rewrite_blocks): Initialize block_defs_stack with
33976614 539 the VEC(tree_on_heap) function. Also free it before returning.
3a2e4b46
AP
540 (rewrite_ssa_into_ssa): Likewise.
541
5422004-11-19 Fariborz Jahanian <fjahanian@apple.com>
0e1ad529
FJ
543
544 * config/darwin.c (machopic_data_defined_p): return 1 for
545 MACHOPIC_DEFINED_FUNCTION.
546
075523c6
JL
5472004-11-19 Jeff Law <law@redhat.com>
548
549 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
550 arguments.
551
d31f3604
PB
5522004-11-19 Paul Brook <paul@codesourcery.com>
553
554 PR target/17735
555 * varasm.c (default_assemble_integer): Allow pointer-sized values.
556 Expand comment.
557
f99652b5
NC
5582004-11-19 Nick Clifton <nickc@redhat.com>
559
560 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
561 zero_extension and lshiftrt insns.
562 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
563 where appropriate.
564 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
565 to handle bp and bn insn patterns with a zero_extend rtx
566 inside them.
567
e648d85a
ILT
5682004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
569
570 * config/arm/arm.md (generic_sched): Make const.
571
d78db459
KH
5722004-11-19 Kazu Hirata <kazu@cs.umass.edu>
573
574 * emit-rtl.c (classify_insn): Make it static.
575 * rtl.h: Remove the corresponding prototype.
576
0bdb5458
KH
577 * integrate.c (has_func_hard_reg_initial_val,
578 get_func_hard_reg_initial_val): Make them static.
579 * integrate.h: Remove the corresponding prototypes.
580
c8f4fe99
BE
5812004-11-19 Ben Elliston <bje@au.ibm.com>
582
583 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
584 (dw2_asm_output_delta_sleb128): Likewise.
585 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
586 (dw2_asm_output_delta_sleb128): Likewise.
587
4244df06
AN
5882004-11-19 Adam Nemet <anemet@lnxw.com>
589
590 * tree-ssa-alias.c: Fix comment.
591
1dee9d0d
KH
5922004-11-19 Kazu Hirata <kazu@cs.umass.edu>
593
594 * tree-outof-ssa.c: Fix a comment typo.
595
7d6d381a
BE
5962004-11-19 Ben Elliston <bje@au.ibm.com>
597
598 * predict.h (predict_insn): Remove extern declaration.
599 * predict.c (predict_insn): Make static.
600
4eeca74f
AM
6012004-11-19 Alan Modra <amodra@bigpond.net.au>
602
603 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
604
b9e8bfda
NP
6052004-11-18 Nicolas Pitre <nico@cam.org>
606
607 * config/arm/arm.c (const_double_needs_minipool): New function to
608 determine if a CONST_DOUBLE should be pushed to the minipool.
609 (note_invalid_constants): Use it.
610
94b112fb
PB
6112004-11-18 Paul Brook <paul@codesourcery.com>
612
613 * config/arm/arm.c (target_float_switch): New variable..
614 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
615 target_float_switch.
616 * config/arm/arm.h (target_float_switch): Declare.
617 (ARM_FLAG_SOFT_FLOAT): Remove.
618 (TARGET_SWITCHES): Remove hard-float and soft-float.
619 (TARGET_OPTIONS): Add hard-float and soft-float.
620 (TARGET_DEFAULT_FLOAT_ABI): Define.
621 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
622 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
623 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
624 * config/arm/netbsd-elf.h: Ditto.
625 * config/arm/netbsd.h: Ditto.
626 * config/arm/pe.h: Ditto.
627 * config/arm/unknown-elf.h: Ditto.
628 * config/arm/wince-pe.h: Ditto.
629 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
630 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
631 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
632
81466555
NS
6332004-11-18 Nathan Sidwell <nathan@codesourcery.com>
634
635 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
636 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
637 altivec_lvx_4sf): Rename and replace with ...
638 (altivec_lvx_<mode>): ... mode macro version.
639 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
640 altivec_stvx_4sf): Rename and replace with ...
641 (altivec_stvx_<mode>): ... mode macro version.
642 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
643 (mov<mode>): ... mode macro version.
644 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
645 *movv4sf_internal1): Replace with ...
646 (*mov<mode>_internal): ... mode macro version.
647 (get_vrsave_internal, *set_vrsave_internal, *save_world,
648 *restore_world): Unquote output statements.
649 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
650 altivec_expand_st_builtin): Adjust insn names.
651
18f63bfa
AH
6522004-11-18 Aldy Hernandez <aldyh@redhat.com>
653
654 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
655 previous change.
656 (rs6000_override_options): Likewise.
657 (spe_build_register_parallel): Handle complex doubles on e500v2.
658 (rs6000_spe_function_arg): Likewise.
659 (function_arg): Likewise.
660 (rs6000_function_value): Likewise.
661 (rs6000_libcall_value): Likewise.
662
9ef8069a
AP
6632004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
664
665 * ifcvt.c (find_if_block): Move the check for the number of edges
666 above the loops checking for complex edges.
667 Remove the counting of edges as we use EDGE_COUNT now.
668
3afb0820
NC
6692004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
670
671 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
672 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
673
731edaed
AS
6742004-11-18 Andreas Schwab <schwab@suse.de>
675
676 * config/i386/i386.md (define_peephole2): Revert last change.
677
9975bd32
KI
6782004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
679
680 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
681 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
682
0777d852
DN
6832004-11-18 Diego Novillo <dnovillo@redhat.com>
684
685 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
686 of FOR_EACH_BB.
687
5cd37749
JG
6882004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
689
690 * Makefile.in (macro_list): Depend on s-macro_list.
691 (s-macro_list): New target.
692
b8610a53
NS
6932004-11-18 Nathan Sidwell <nathan@codesourcery.com>
694
695 PR target/17107
696 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
697 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
698 (fold_range_test): Adjust.
699 (fold_truthop): Use it.
700 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
701 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
702
d7518354
UB
7032004-11-18 Uros Bizjak <uros@kss-loka.si>
704
705 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
706 insn split constraint.
707 (define_peephole2): Remove unneeded "&& 1" from peephole2
708 constraints.
709
a28281a7
BE
7102004-11-18 Ben Elliston <bje@au.ibm.com>
711
712 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
713 element for bsi_prev; use @findex instead.
714
2715d4a3
BE
7152004-11-18 Ben Elliston <bje@au.ibm.com>
716
717 * opts.h (add_input_filename): Remove extern declaration.
718 * opts.c (add_input_filename): Make static.
719
7915fbaa
MM
7202004-11-17 Mark Mitchell <mark@codesourcery.com>
721
722 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
723 ATTRIBUTE_UNUSED.
724
cf249358
ZW
7252004-11-17 Zack Weinberg <zack@codesourcery.com>
726
727 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
728 * system.h: Poison it.
729 * doc/tm.texi: Delete its documentation.
730
a8e68029 7312004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
cf249358 732 Mark Mitchell <mark@codesourcery.com>
a8e68029
DJ
733
734 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
735 * config/i386/i386.c (i386_solaris_elf_named_section): New
736 function.
737 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
738 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
739 64-bit.
740 (ASM_QUAD): Don't undefine for biarch targets.
741 * config/i386/t-sol2: Introduce multilib support.
742
e1990f69
BE
7432004-11-18 Ben Elliston <bje@au.ibm.com>
744
745 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
746
e2209b03
BE
7472004-11-18 Ben Elliston <bje@au.ibm.com>
748
749 * cgraph.h: Replace "it's" with "its" throughout.
750
2b45d482
BE
7512004-11-18 Ben Elliston <bje@au.ibm.com>
752
753 * doc/rtl.texi (Flags): Grammar fix.
754
7b13ee6b
KH
7552004-11-17 Kazu Hirata <kazu@cs.umass.edu>
756
757 * expmed.c (alg_code): Add alg_unknown.
758 (alg_hash_entry): New.
759 (NUM_ALG_HASH_ENTRIES): Likewise.
760 (alg_hash): Likewise.
761 (synth_mult): Cache the result into alg_hash.
762
816ea94e
ZW
7632004-11-17 Zack Weinberg <zack@codesourcery.com>
764
765 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
766 config/rs6000/libgcc-ppc64.ver.
767
26cae194
KH
7682004-11-17 Kazu Hirata <kazu@cs.umass.edu>
769
770 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
771 checking if an unconditional return is followed by a barrier.
772
a4480681
KH
773 * jump.c (condjump_p): Remove unreachable code.
774
ac141aea
KH
775 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
776 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
777 tree-ssa-live.h, tree.h: Remove unused prototypes.
778
d6be0d7f
JL
7792004-11-17 Jeff Law <law@redhat.com>
780
781 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
782 (edge_to_cases_elt): Renamed from edge_to_case_leader.
783 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
784 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
785 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
786 (get_cases_for_edge): New function.
787 (start_recording_case_labels, end_recording_case_labels): Similarly.
788 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
789 chain equivalent CASE_LABEL_EXPRs together.
790 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
791 (make_switch_expr_edges): Do not record edge/cases here.
792 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
793 (split_critical_edges): Record cases around the edge splitting code.
794 (cleanup_dead_labels): Use CASE_LABEL again.
795 (tree_redirect_edge_and_branch): If we have a mapping from edge
796 to cases, use it to handle redirections. Else do it the slow way.
797 * tree.h (CASE_LEADER_OR_LABEL): Kill.
798 (CASE_LABEL): Revert to just looking at the tree's second operand.
799 * tree.c (get_case_label): Kill.
800
730bddf2
DN
8012004-11-17 Diego Novillo <dnovillo@redhat.com>
802
803 PR tree-optimization/18307
804 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
805 'orig' are the same node.
806 (collect_points_to_info_r): Do not call merge_pointed_to_info
807 when the PHI argument is identical to the LHS.
808
39850c0b
SB
8092004-11-17 Steven Bosscher <stevenb@suse.de>
810
2b45d482 811 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
39850c0b
SB
812 to insert the exit or entry block.
813 (ssa_prop_init): Use add_control_edge to seed the algorithm.
814
7c834753
ZW
8152004-11-16 Zack Weinberg <zack@codesourcery.com>
816
817 * mkmap-flat.awk, mkmap-symver.awk: If the last version
818 assigned to a symbol was '%exclude', do not emit it anywhere.
819 If leading_underscore is true, prefix all symbols from the
820 version scripts with a leading underscore before comparing
821 them with nm output or emitting them. Remove support for dot
822 symbols.
823 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
824 (SHLIB_MAPFILES): Use libgcc-std.ver.
825 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
826 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
827 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
828 libgcc-excl.ver and libgcc-glibc.ver.
829
830 * config/sh/libgcc-excl.ver: New file.
831 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
832
13cf6837
DB
8332004-11-16 Daniel Berlin <dberlin@dberlin.org>
834
835 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
836 the test when the edge has the opposite meaning, not when
837 the first argument is invariant.
838
354ed18f
AH
8392004-11-16 Aldy Hernandez <aldyh@redhat.com>
840
7c834753
ZW
841 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
842 doubles.
843 (rs6000_complex_function_value): Handle e500 v2 variant.
354ed18f 844
88a40e67
DB
8452004-11-16 Daniel Berlin <dberlin@dberlin.org>
846
847 Fix PR tree-optimization/18519
7c834753 848
88a40e67
DB
849 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
850 * tree-pass.h: Add TODO_cleanup_cfg.
851 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
852 (ccp_finalize): Remove call to cleanup_cfg.
853 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
854 (pass_cd_dce): Ditto.
7c834753 855 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
88a40e67
DB
856 dump_function_to_file.
857 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
858 to cleanup_cfg.
859 (pass_ch): Add TODO_cleanup_cfg.
860 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
861 cleanup_cfg.
862 (pass_loop_done): Add TODO_cleanup_cfg.
863 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
7c834753
ZW
864 (tree_ssa_phiopt): Remove call to cleanup_cfg.
865
8a45d448
DP
8662004-11-16 Devang Patel <dpatel@apple.com>
867
868 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
7c834753 869
a37739c1
KH
8702004-11-16 Kazu Hirata <kazu@cs.umass.edu>
871
872 * expmed.c, ra-colorize.c: Fix comment typos.
873
5b4ef0b1
KH
874 * doc/tm.texi: Fix typos.
875
d3f2f8ae 8762004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
7c834753 877 Mark Mitchell <mark@codesourcery.com>
d3f2f8ae
DJ
878
879 PR target/6123
880 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
881 __pic__ if PIC.
882
d281a1f1
UW
8832004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
884
885 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
886 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
887
57e42286
DP
8882004-11-16 Devang Patel <dpatel@apple.com>
889
890 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
7c834753 891
66083422
EC
8922004-11-16 Eric Christopher <echristo@redhat.com>
893
894 * config/mips/mips.c: Use rtl _P predicates.
895 * config/mips/mips.h: Ditto.
896 * config/mips/mips.md: Ditto.
897
96e1fc28
FJ
8982004-11-16 Fariborz Jahanian <fjahanian@apple.com>
899
900 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
901 the pattern.
902
a628ab6d
AK
9032004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
904
905 * config/s390/s390.c (s390_cc_modes_compatible): New function.
906 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
907
b92c3264
KK
9082004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
909
910 PR target/18447
911 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
912 before and after the insns for getting GOT address in non-PIC
913 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
914 is enabled.
915
fc188d37
AK
9162004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
917
918 * gcc/cse.c (struct change_cc_mode_args): New structure.
919 (cse_change_cc_mode_insn): New function.
920 (cse_change_cc_mode): Use validate_change to perfom changes.
66083422 921 (cse_change_cc_mode_insns, cse_condition_code_reg):
fc188d37
AK
922 Call cse_change_cc_mode_insn.
923
d39289db
SB
9242004-11-16 Steven Bosscher <stevenb@suse.de>
925
926 * stack.h: Remove.
927
03e00d30
SB
9282004-11-16 Steven Bosscher <stevenb@suse.de>
929
930 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
931
e61ec2dd
DJ
9322004-11-15 Dale Johannesen <dalej@apple.com>
933
934 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
935
b00843d2
DJ
9362004-11-15 Dale Johannesen <dalej@apple.com>
937
938 * profile.c (compute_branch_probabilities): Prevent
939 crash with EH in RTL-based profiling.
940
a6234684
KH
9412004-11-16 Kazu Hirata <kazu@cs.umass.edu>
942
943 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
944 COND_EXPR_COND.
945 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
946 * tree-ssa-dom.c (thread_across_edge): Likewise.
947 * tree-vectorizer.c (vect_transform_loop_bound): Replace
948 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
949 COND_EXPR_ELSE.
950
8e731e4e
KH
951 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
952 (tree_flow_call_edges_add): Update the call to
953 bsi_commit_edge_inserts.
954 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
955 * profile.c (branch_prob): Likewise.
956 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
957 * tree-sra.c (scalarize_function): Likewise.
958 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
959 * tree-ssa-pre.c (fini_pre): Likewise.
960 * tree-flow.h: Update the prototype for
961 bsi_commit_edge_inserts.
962
4c2b2906
EC
9632004-11-15 Eric Christopher <echristo@redhat.com>
964
965 * sched-deps.c (set_sched_group_p): Delete.
966 (delete_all_dependencies): New function.
967 (fixup_sched_groups): Use. New function.
968 (sched_analyze_insn): Use.
969
37b2f290
JM
9702004-11-15 Joseph S. Myers <joseph@codesourcery.com>
971
972 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
973 RROTATE_EXPR or unknown code.
974 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
975 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
976 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
977 or unknown code.
978
d134f39e
JM
9792004-11-15 Joseph S. Myers <joseph@codesourcery.com>
980
981 PR c/18498
982 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
983 after processing the declarator.
984
e5f9d916
AH
9852004-11-15 Aldy Hernandez <aldyh@redhat.com>
986
987 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
988 vec_duplicate.
989 (altivec_vspltb): Same.
990 (altivec_vspltw): Same.
991 (altivec_vspltisb): Same.
992 (altivec_vspltish): Same.
993 (altivec_vspltisw): Same.
994 (altivec_vspltisw_v4sf): Same.
995 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
996 UNSPEC_VSPLTISH.
997 Move "End of vector xor's" comment to the right place.
998
e77ee95d
SE
9992004-11-15 Steve Ellcey <sje@cup.hp.com>
1000
1001 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
1002 instead of nonimmediate_operand.
1003
dbdd0cf3
MM
10042004-11-15 Mark Mitchell <mark@codesourcery.com>
1005
1006 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
1007 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
1008 * config/sol2.c (solaris_output_init_fini): Update calls to
1009 ASM_OUTPUT_CALL. Include "rtl.h".
1010
11559c75
MM
10112004-11-15 Mark Mitchell <mark@codesourcery.com>
1012
1013 * config/sol2-c.c (cmn_err_char_table): Add "p".
1014
6e70657a
MM
10152004-11-15 Mark Mitchell <mark@codesourcery.com>
1016
1017 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
1018 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
1019
9c0787e2
MM
10202004-11-15 Mark Mitchell <mark@codesourcery.com>
1021
1022 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
1023 within the multilib directory.
1024
ea87f349
NC
10252004-11-15 Nick Clifton <nickc@redhat.com>
1026
1027 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
1028 builtin assert of cpu=xstormy16.
1029
cf6b9ef1
NS
10302004-11-15 Nathan Sidwell <nathan@codesourcery.com>
1031
1032 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
1033 variable.
1034
8df3dbb7
RH
10352004-11-14 Richard Henderson <rth@redhat.com>
1036
1037 PR 18480
1038 * calls.c (struct arg_data): Add parallel_value.
1039 (precompute_register_parameters): Set it.
1040 (load_register_parameters): Use it.
1041 (store_one_arg): Also set it here.
1042
18522563
ZD
10432004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
1044
1045 PR tree-optimization/18431
1046 * fold-const.c (associate_trees): Do not produce x + 0.
1047 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
1048 (fold): Use them.
1049 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
1050 Moved ...
1051 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
1052 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
1053
a6ac87c1
EB
10542004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
1055
c7bfff32 1056 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
a6ac87c1 1057
49243025
KH
10582004-11-14 Kazu Hirata <kazu@cs.umass.edu>
1059
3a7c155d
KH
1060 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
1061 value-prof.c: Fix comment typos.
49243025 1062
594a51fe
SS
10632004-11-14 Stan Shebs <shebs@apple.com>
1064
1065 Basic ABI changes for passing structs by value in 64-bit Darwin.
1066 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
1067 (rs6000_override_options): Set it for 64-bit Darwin.
1068 (rs6000_parse_abi_options): Add testing options to change it.
1069 (rs6000_return_in_memory): Test whether the type is one
1070 that can be passed in registers.
1071 (darwin64_function_arg_advance): New.
1072 (function_arg_advance): Call it, plus add recursion depth
1073 argument and test when counting off arguments.
1074 (rs6000_darwin64_function_arg): New.
1075 (function_arg): Call it.
1076 (setup_incoming_varargs): Add argument to function_arg_advance.
1077 (rs6000_darwin64_function_value): New.
1078 (rs6000_function_value): Call it.
1079 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
1080 * config/rs6000/rs6000-protos.h: Update decl of
1081 function_arg_advance.
1082
1e1b8649
AP
10832004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
1084
1085 PR c/17279
1086 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
1087 support TImode before adding __int128_t and __uint128_t types.
1088
d6f6ef21
DN
10892004-11-14 Dorit Naishlos <dorit@il.ibm.com>
1090
1091 PR tree-opt/18400
1092 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
1093 (vect_transform_loop_bound): Set loop->nb_iterations.
1094
4951c3fd 10952004-11-14 Dorit Naishlos <dorit@il.ibm.com>
7c834753 1096 Andrew Pinski <pinskia@physics.uc.edu>
4951c3fd
DN
1097
1098 PR tree-opt/18425
1099 * tree-vectorize.c (vect_build_loop_niters): Do not insert
1100 NULL into the instruction stream. Initialize new_bb to NULL.
1101 (vect_update_ivs_after_vectorizer): Likewise.
1102 (vect_gen_niters_for_prolog_loop): Likewise.
1103
9beeb4ee
ZD
11042004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
1105
1106 PR tree-optimization/18431
1107 * tree-flow.h (stmt_references_memory_p): Declare.
1108 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
1109 * tree-ssa.c (stmt_references_memory_p): New function.
1110
fd3fe0a1
AS
11112004-11-14 Andreas Schwab <schwab@suse.de>
1112
1113 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
1114 $(EXPR_H).
1115
29eb4ac9
KH
11162004-11-14 Kazu Hirata <kazu@cs.umass.edu>
1117
1118 * c-common.c (walk_stmt_tree): Remove.
1119 * c-common.h: Remove the corresponding prototype.
1120
c1dc94c4
KH
1121 * emit-rtl.c (push_to_full_sequence): Remove.
1122 * rtl.h: Remove the corresponding prototype.
1123
daa956d0
KH
1124 * cselib.c, expr.c: Fix comment typos.
1125
27e29549
RH
11262004-11-13 Richard Henderson <rth@redhat.com>
1127
1128 * calls.c (precompute_register_parameters): Force all PARALLELs
1129 into pseudo registers.
1130 (load_register_parameters): Copy PARALLELs into hard registers.
1131 * function.c (assign_parm_setup_block): Copy PARALLELS into
1132 pseudo registers. Do emit_group_store in conversion_insns.
1133 * expr.c (emit_group_load_1): Rename from emit_group_load, take
1134 tmps as an argument. Move final copy loop ...
1135 (emit_group_load): ... here. New function.
1136 (emit_group_load_into_temps, emit_group_move_into_temps): New.
1137 * expr.h: Declare them.
1138
eaf0dc02
KH
11392004-11-14 Kazu Hirata <kazu@cs.umass.edu>
1140
1141 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
1142 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
1143 with PHI_CHAIN where appropriate.
1144
88957e79
DJ
11452004-11-13 Dale Johannesen <dalej@apple.com>
1146
eaf0dc02
KH
1147 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
1148 (tree_block_label): Ditto.
1149 (flush_pending_stmts): Ditto.
1150 (insert_edge_copies): Ditto.
1151 (expr_invariant_in_loop_p): Ditto.
1152 (TDF_USE_OPS): Parenthesize definition.
1153 (TDF_USE_VOPS): Ditto.
88957e79 1154
6ca4177c
DE
11552004-11-13 David Edelsohn <edelsohn@gnu.org>
1156
1157 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
1158 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
ace6d09b 1159 (atoll): Declare.
6ca4177c
DE
1160 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
1161
6716ecbc
JM
11622004-11-14 Joseph Myers <joseph@codesourcery.com>
1163
1164 * config/i386/i386.c (override_options): Move loop to set default
1165 tuning to correct place.
1166
e8112eac
ZK
11672004-11-13 Zak Kipling <zak@transversal.com>
1168
1169 PR target/18300
1170 * config/i386/i386.c (classify_argument): Fix infinite loop when
1171 passing object with 3 or more base classes by value.
1172
595163db
EB
11732004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1174
1175 * doc/md.texi (constraints) <% modifier>: Mention that it is
1176 useless when the two alternatives are strictly identical.
1177
4e36f613
RH
11782004-11-13 Richard Henderson <rth@redhat.com>
1179
1180 * expmed.c (extract_split_bit_field): Temporarily disable call to
1181 extract_force_align_mem_bit_field.
1182
e28d0cfb
KH
11832004-11-13 Kazu Hirata <kazu@cs.umass.edu>
1184
1185 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
1186 formatting.
1187
1f838355
KH
1188 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
1189 lambda-code.c, postreload.c, predict.c, tree-sra.c,
1190 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
1191
ae8cacc6
KC
11922004-11-13 Kelley Cook <kcook@gcc.gnu.org>
1193
4c2b2906 1194 * doc/install.texi (automake): Correctly document that everything now
ae8cacc6
KC
1195 will use automake 1.9.3.
1196
85407c3f
HPN
11972004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
1198
1199 PR target/18347
1200 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
1201 TImode. Sorry for other non-complex larger-than-64-bit modes.
1202 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
1203
993bcda1
KC
12042004-11-13 Kelley Cook <kcook@gcc.gnu.org>
1205
1206 * doc/install.texi (automake): Document that everything now uses 1.9.
1207
32fab725
BS
12082004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
1209
1210 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
1211 previous loads.
1212
74f4f95c
KH
12132004-11-13 Kazu Hirata <kazu@cs.umass.edu>
1214
3872a0ae 1215 * tree.h: Fix comment typos.
74f4f95c 1216
d67fb775
SB
12172004-11-13 Steven Bosscher <stevenb@suse.de>
1218
1219 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
1220 HARD_REGISTER_NUM_P.
1221
1222 * cselib.c (new_cselib_val): Make comment correct and more detailed.
1223 * flow.c (mark_set_1): Likewise.
1224
1225 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
1226 duplicate_eh_regions): Remove.
1227 * except.h (duplicate_eh_regions): Remove prototype.
1228 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
1229 global_const_equiv_varray): Remove.
1230 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
1231 global_const_equiv_varray, set_label_in_map): Remove prototypes,
1232 extern declaration, and #define.
1233 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
1234 (struct inline_remap): Remove.
1235 * varray.c (struct element): Remove entry for const_equiv_data.
1236 * varray.h (struct const_equiv_data): Remove.
1237 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
1238 (union varray_data_tag) <const_equiv>: Remove.
1239 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
1240 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
1241
1242 * regstack.c (record_label_references): Remove unused function.
1243
1244 * rtl.def (VALUE): Update comment.
1245 (LABEL_REF): Remove unused operand 2.
1246 * rtl.h (struct rtx_def): Update for removed accessor macros.
1247 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
1248 REG_LOOP_TEST_P): Remove.
1249 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
1250 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
1251 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
1252
893e18a5 12532004-11-13 James A. Morrison <phython@gcc.gnu.org>
e8112eac 1254 Eric Botcazou <ebotcazou@libertysurf.fr>
893e18a5
JM
1255
1256 PR target/18230
1257 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
1258 patterns.
1259 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
1260 (V32I): New macro for 32-bit modes.
1261 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
1262 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
1263 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
1264 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
1265 one_cmpldi_sp64): Use V64I instead of DI.
1266 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
1267 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
1268 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
1269 (nandv64i_vis, nandv32i_vis): New patterns.
1270
9d65c5cb
MS
12712004-11-12 Mike Stump <mrs@apple.com>
1272
1273 * Makefile.in: Add html support.
1274 * java/Make-lang.in: Likewise.
1275 * fortran/Make-lang.in: Likewise.
1276 * treelang/Make-lang.in: Likewise.
1277 * doc/install.texi: Likewise.
1278 * doc/makefile.texi: Likewise.
1279 * doc/sourcebuild.texi: Likewise.
4c2b2906 1280
1b33f1cc
KH
12812004-11-13 Kazu Hirata <kazu@cs.umass.edu>
1282
1283 * tree-ssa-loop-manip.c: Fix a comment typo.
1284
061151d1
MS
12852004-11-12 Mike Stump <mrs@apple.com>
1286
1287 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
1288 renaming this node to Concept Index.
1289 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
1290 to more closely match gcc.texi.
1291
92b6dff3
JL
12922004-11-12 Jeff Law <law@redhat.com>
1293
1294 * tree-cfg.c (hashtab.h): Include.
1295 (struct edge_to_case_leader_elt): New structure.
1296 (edge_to_case_leader): New.
1297 (edge_to_case_leader_hash): New hashtable hasing function.
1298 (edge_to_case_leader_eq): New hashtable equality function.
1299 (record_switch_edge): New function.
1300 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
1301 (make_switch_expr_edges): Build the edge-to-case-leader
1302 hash table. Tear down the hash table when we're done.
1303 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
1304 CASE_LABEL.
1305 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
1306 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
1307 to use new concept of case leaders to reduce overhead of
1308 redirecting outgoing edges from switch statements.
1309 * tree.c (get_case_label): New function.
1310 * tree.h (CASE_LABEL): Define in terms of get_case_label.
1311 (CASE_LEADER_OR_LABEL): Define.
1312
2256aa1c
ZL
13132004-11-12 Ziemowit Laski <zlaski@apple.com>
1314
1315 * varasm.c (output_addressed_constants): For CONST_DECLs,
1316 output the initializer if present.
1317
0abe4170
ZL
13182004-11-12 Ziemowit Laski <zlaski@apple.com>
1319
1320 * config/rs6000/darwin.h: Fix confusing typo in comment.
1321
ecab6f99
DP
13222004-11-12 Devang Patel <dpatel@apple.com>
1323
1324 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
4c2b2906 1325
b3776043
DP
13262004-11-12 Devang Patel <dpatel@apple.com>
1327
1328 * tree-if-conv.c (clean_predicate_lists): Use loop header
1329 and latch directly.
4c2b2906 1330
cc69336f
RH
13312004-11-12 Richard Henderson <rth@redhat.com>
1332
1333 PR 17778
1334 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
1335 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1336 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
1337 * config/i386/i386-modes.def (XF): Use it.
1338
9af12c1b
GK
13392004-11-11 Geoffrey Keating <geoffk@apple.com>
1340
1341 * Makefile.in (macro_list): Use move-if-change to avoid spurious
1342 rebuilds.
1343
0a2695db
MM
13442004-11-12 Mark Mitchell <mark@codesourcery.com>
1345
1346 PR c++/18416
1347 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
1348 when deciding whether to pass a variable to
1349 cgraph_varpool_finalize_decl or assemble_variable.
4c2b2906 1350 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
0a2695db 1351
896b242c
KH
13522004-11-12 Kazu Hirata <kazu@cs.umass.edu>
1353
1354 * tree-vectorizer.c: Fix a comment typo.
1355
3d35950b
BS
13562004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
1357
1358 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
1359
85022b3f
DN
13602004-11-12 Diego Novillo <dnovillo@redhat.com>
1361
1362 * tree-scalar-evolution.c (analyzable_condition): Remove
1363 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
1364
0e03665c
RC
13652004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
1366
1367 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
1368 Remove m505/roe multilib variant.
1369
f58c00e3
EB
13702004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1371
1372 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
1373 to load from the stack.
1374
765d98c7
RH
13752004-11-12 Richard Henderson <rth@redhat.com>
1376
1377 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
1378 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
1379 * toplev.h (FL2T__): Remove.
1380 (CLZ_HWI): Rename from FL2T_CLZ__.
1381 (CTZ_HWI): New.
1382 (floor_log2): Simplify.
1383 (exact_log2): New.
1384
9ba64a4a
SP
13852004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
1386
1387 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
1388 compute the first overlapping iterations.
1389
13902004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
1391
1392 PR middle-end/18005
4c2b2906 1393 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
9ba64a4a
SP
1394 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
1395
d0ce8e4c
SB
13962004-11-12 Steven Bosscher <stevenb@suse.de>
1397
f41f5287 1398 PR tree-optimization/18419
d0ce8e4c
SB
1399 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
1400 pointer set instead of a bitmap.
1401 (walk_use_def_chains): Create, pass and clean up that pointer_set.
1402
1403 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
1404 field an sbitmap.
1405 (init_alias_info): Allocate and zero it here.
1406 (delete_alias_info): Delete it here.
1407 (collect_points_to_info_for): Use it.
1408
04e2b4d3
KH
14092004-11-11 Kazu Hirata <kazu@cs.umass.edu>
1410
1411 * alias.c (record_alias_subset, addr_side_effect_eval):
1412 Make them static.
1413 * alias.h: Remove the prototype for record_alias_subset.
1414 * expr.h: Remove the commented-out prototype for
1415 record_alias_subset.
1416 * rtl.h: Remove the prototype for addr_side_effect_eval.
1417
a5d3e50d
KH
1418 * cfglayout.c (choose_inner_scope): Make it static.
1419 * rtl.h: Remove the corresponding prototype.
1420
25a6c68b
KH
1421 * cfgloopmanip.c (update_single_exits_after_duplication,
1422 unloop): Make them static.
1423 * cfgloop.h: Remove the corresponding prototypes.
1424
4e2fb7de
KH
1425 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
1426 Make them static.
1427 * c-tree.h: Remove the corresponding prototypes.
1428
4dd9b044
KH
1429 * explow.c (round_push): Make it static.
1430 * expr.h: Remove the corresponding prototype.
1431
903676f6
KH
1432 * varasm.c (get_named_section_flags, decl_tls_model): Make
1433 them static.
1434 * output.h: Remove the prototype for get_named_section_flags.
1435 * tree.h: Remove the prototype for decl_tls_model.
1436
526c334b
KH
14372004-11-11 Kazu Hirata <kazu@cs.umass.edu>
1438
1439 * function.c (expand_function_end): Remove an "if" statement
5060342a 1440 that always triggers.
526c334b
KH
1441 * stmt.c (expand_null_return_1): Likewise.
1442
2f71a82e
JW
14432004-11-11 James E. Wilson <wilson@specifixinc.com>
1444
1445 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
1446 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
1447 CLASS_MAX_NREGS): Likewise.
1448
f8e9d512
ZD
14492004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
1450
1451 PR tree-optimization/17742
1452 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
1453 MINUS_EXPR correctly.
1454
e0afb98a
SP
14552004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
1456
4c2b2906 1457 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
e0afb98a
SP
1458 Give up as soon as the evolution is known not computable.
1459
e1e2e653
NS
14602004-11-11 Nathan Sidwell <nathan@codesourcery.com>
1461
1462 PR target/16457
1463 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
1464 mask64_1or2_operand.
1465 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
1466 to spot rlwinm opportunities.
1467 (and64_2_operand): Use mask_1or2_operand.
1468 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
1469
00803cd5
DN
14702004-11-11 Dorit Naishlos <dorit@il.ibm.com>
1471
1472 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
1473 (vect_update_ivs_after_vectorizer): Update function documentation.
1474 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
1475
286d28c3
KH
14762004-11-11 Kazu Hirata <kazu@cs.umass.edu>
1477
1478 * config/arm/arm.c: Fix a comment typo.
1479
65a6f342
NS
14802004-11-11 Nathan Sidwell <nathan@codesourcery.com>
1481
1482 * bitmap.h (nBITMAP_WORD_BITS): Remove.
1483 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
1484 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
1485 unnecessary casts.
1486 (bitmap_first_set_bit): Return unsigned, use ctzl.
1487 (bitmap_last_set_bit): Remove.
1488 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
1489 unsigned.
1490 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
1491 remove special case code for two word elements.
1492 (bitmap_last_set_bit): Remove.
1493 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
1494 bitmap_first_set_bit with bitmap_empty_p.
1495 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
1496 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
1497 bitmap_last_bit_set.
1498
60934f9c
NS
14992004-11-11 Nathan Sidwell <nathan@codesourcery.com>
1500
2f4d9502
NS
1501 PR target/16796
1502 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
1503
60934f9c
NS
1504 PR target/16458
1505 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
1506 unsigned equality compare when we know the operands are unsigned.
1507
dc316086
PM
15082004-11-10 Peter S. Mazinger <ps.m@gmx.net>
1509
1510 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
1511 __PIC__ and __pic__ only if TARGET_ABICALLS.
1512 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
1513 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
1514 -KPIC only if not -mno-abicalls.
1515
1516 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
1517 * config/sparc/linux.h, config/sparc/linux64.h
1518 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
1519
1520 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
1521 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
1522 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
1523 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
1524
cfa01aab
PB
15252004-11-11 Paul Brook <paul@codesourcery.com>
1526
1527 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
1528 register if current_function_uses_pic_offset_table is set.
1529
943c15ed
DE
15302004-11-10 David Edelsohn <edelsohn@gnu.org>
1531
1532 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
1533 Change multi-instruction sequences to new attribute.
1534 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
1535 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
1536 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
1537
8b41b1b2
DB
15382004-11-10 Daniel Berlin <dberlin@dberlin.org>
1539
1540 * tree-data-ref.c (build_classic_dist_vector): If either loop
1541 is outside of the nest we asked about, the dependence can't
dc316086 1542 matter.
8b41b1b2
DB
1543 (build_classic_dir_vector): Ditto.
1544
7299dbfb
ZD
15452004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
1546
1547 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
1548 right order.
1549 (force_var_cost): Determine cost of addition and multiplication more
1550 precisely.
1551 (get_computation_cost_at): Add cost for computing address elements to
1552 the final cost.
1553
1554 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
1555 one of the arguments of MINUS_EXPR is an address.
1556 (split_address_to_core_and_offset): New function.
1557 (ptr_difference_const): Handle case when one of the operands is a
1558 pointer.
1559 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
1560 (ptr_difference_cost): Pass addresses instead of objects to
1561 ptr_difference_const.
1562
ea1763b1
NS
15632004-11-10 Nathan Sidwell <nathan@codesourcery.com>
1564
1565 * tree.c (tree_check_failed): Emit general error if the list of
1566 node types is empty.
1567
22d8d627
EB
15682004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1569
1570 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
1571 argument. When the union is passed in the 6th slot, build a
1572 PARALLEL with only one element.
1573 (function_arg): Adjust call to function_arg_union_value.
1574 (function_value): Likewise.
1575
d05f9c39
FJ
15762004-11-10 Fariborz Jahanian <fjahanian@apple.com>
1577
1578 PR tree-optimization/17892
cfa01aab 1579 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
d05f9c39
FJ
1580 MINUS_EXPR operator.
1581
8393a290
JM
15822004-11-10 James A. Morrison <phython@gcc.gnu.org>
1583
1584 PR target/18230
f11edb4a 1585 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
8393a290
JM
1586 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
1587
dda49b66
SB
15882004-11-10 Steven Bosscher <stevenb@suse.de>
1589
1590 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
1591 (struct basic_block_def): Remove local_set and cond_local_set
1592 fields. Update comment for global_live_at_start.
1593 * flow.c (calculate_global_regs_live): Allocate local_sets and
1594 cond_local_sets here as arrays of bitmaps previously stored in
1595 bb->local_set and bb->cond_local_set. Use xmalloc instead of
1596 obstack allocated bitmaps.
1597
780f9446
L
15982004-11-09 H.J. Lu <hongjiu.lu@intel.com>
1599
1600 PR target/18380
1601 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
1602 hidden.
1603
1604 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
1605
24c75ec6
JL
16062004-11-09 Jeff Law <law@redhat.com>
1607
1608 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
1609 argument holding last unvisited block. Start search for
1610 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
1611 (connect_infinite_loops_to_exit): Supply last unvisited block
1612 to flow_dfs_compute_reverse_execute.
1613
99176a91
AH
16142004-10-22 Aldy Hernandez <aldyh@redhat.com>
1615
1616 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
1617 doubles.
1618 (floatunssidf2): Same.
1619 (floatsidf2): Same.
1620 ("extendsfdf2"): New expander.
1621 (*extendsfdf2_fpr): Rename.
1622 (*truncdfsf2_fpr): Same.
1623 (*negdf2_fpr): Same.
1624 (*absdf2_fpr): Same.
1625 (*nabsdf2_fpr): Same.
1626 (*adddf3_fpr): Same.
1627 (*subdf3_fpr): Same.
1628 (*muldf3_fpr): Same.
1629 (*divdf3_fpr): Same.
1630
1631 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
1632 ("spe_fix_truncdfsi2"): Same.
1633 (spe_floatunssidf2): Same.
1634 (spe_floatsidf2): Same.
1635
8b17a9d6
JM
16362004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1637
1638 PR c/18322
1639 * c-common.c (fname_decl): Don't use line number of decl in
1640 diagnostic.
1641
e221ef54
UW
16422004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
1643
1644 * config/s390/s390-protos.h (s390_pool_operand): Remove.
1645 * config/s390/s390.c (s390_pool_operand): Likewise.
1646 (s390_extra_constraint_str): Handle 'B' constraints.
1647 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
1648 * config/s390/s390.md: Document 'B' constraints.
1649 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
1650 s390_pool_operand to prevent insns with two literal pool
1651 references. Make pattern commutative.
1652 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
1653 'B' constraint instead of s390_pool_operand.
1654
27fd69fa
KH
16552004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1656
1657 * tree-cfg.c (create_bb): Remove unnecessary memset.
1658
6c99d79f
KH
16592004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1660
1661 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
1662 (thread_block): Call flush_pending_stmt instead of
1663 copy_phis_to_block.
1664
e3715ebd
KH
16652004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1666
1667 * loop-iv.c (iv_number_of_iterations): Make it static.
1668 * cfgloop.h: Remove the corresponding prototype.
1669
6fe79279
KH
16702004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1671
1672 * function.c (combine_temp_slots, assign_parms,
1673 expand_pending_sizes): Make them static.
1674 * tree.h: Remove the corresponding prototypes.
1675
3f5d8b4b
KH
16762004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1677
1678 * emit-rtl.c (copy_most_rtx): Remove.
1679 * rtl.h: Remove the corresponding prototype.
1680
9d3fe355
KH
16812004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1682
1683 * cfgloop.c (flow_loops_update): Remove.
1684 * cfgloop.h: Remove the corresponding prototype.
1685
2223a998
KH
16862004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1687
1688 * conflict.c (mark_reg, conflict_graph_compute): Remove.
1689 * basic-block.h: Remove the prototype for
1690 conflict_graph_compute.
1691
9965c9c7
KH
16922004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1693
1694 * tree-if-conv.c (add_to_dst_predicate_list): Change the
1695 second argument to basic_block.
1696 (tree_if_convert_cond_expr): Update call sites.
1697
49995c8e
KH
16982004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1699
1700 * fold-const.c (pedantic_non_lvalue): Make it static.
1701 * tree.h: Remove the corresponding prototype.
1702
6db0fb0e
KH
17032004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1704
1705 * optabs.c (prepare_operand): Make it static.
1706 * optabs.h: Remove the corresponding prototype.
1707
bf9a0db3
KH
17082004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1709
1710 * reload1.c (reloads_conflict, gen_reload): Make them static.
1711 * reload.h: Remove the corresponding prototypes.
1712
10015a27
KH
17132004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1714
1715 * reload.c (refers_to_mem_for_reload_p,
1716 refers_to_regno_for_reload_p): Make them static.
1717 * reload.h: Remove the corresponding prototypes.
1718
c75d6010 17192004-11-09 James A. Morrison <phython@gcc.gnu.org>
dc316086 1720 Eric Botcazou <ebotcazou@libertysurf.fr>
c75d6010
JM
1721
1722 PR target/18230
1723 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
1724 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
1725 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
1726 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
1727 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
1728 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
1729 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
1730 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
1731 MODE_VECTOR_INT modes.
1732 (sparc_extra_constraint_check): Add new constraint 'Y'.
1733 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
1734 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
1735 (V64): New mode macro for 64-bit modes.
1736 (movsf): Use V32 for mode instead of SF.
1737 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
1738 alongside 'G' constraint.
1739 (movdf): Use V64 for mode instead of DF.
1740 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
1741 of DF. Add 'Y' constraint alongside 'G' constraint.
1742 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
1743 instead of DF.
1744
26a89301
UW
17452004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
1746
1747 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
1748 integer NEG and ABS.
1749 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
1750 ("*negdi2_31"): Reimplement using a splitter.
1751 ("*negdi2_cc", "*negdi2_cconly"): New insns.
1752 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
1753 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
1754 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
1755 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
1756 ("*absdi2_cc", "*absdi2_cconly"): New insns.
1757 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
1758 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
1759 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
1760 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
1761 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
1762 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
1763 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
1764 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
1765 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
1766
02887425
UW
17672004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
1768
1769 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
1770 when eliminating an UNSPEC_CMPINT.
1771 (s390_secondary_input_reload_class): Fix test for CC register reload.
1772 (s390_secondary_output_reload_class): Likewise.
dc316086 1773 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
02887425
UW
1774 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
1775 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
1776 insn patterns with splitters.
1777
c0600ecd
DE
17782004-11-09 David Edelsohn <edelsohn@gnu.org>
1779
1780 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
1781 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
1782
5ae71719
KH
17832004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1784
1785 * tree-phinodes.c (phi_reverse): New.
1786 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
1787 Use it.
1788 * tree-flow.h: Add a prototype for phi_reverse.
1789
a0eca485
KH
17902004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1791
1792 * tree-ssa-loop-ivopts.c: Fix a comment typo.
1793
17942004-11-09 James A. Morrison <phython@gcc.gnu.org>
37d060a3
JM
1795
1796 PR pch/14940
1797 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
1798 definitions.
1799
40b97a2e
JM
18002004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1801
1802 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
1803 instead of "arg" in diagnostics.
1804
9e637a26
JM
18052004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1806
1807 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
1808 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
1809 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
1810 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
1811 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
1812 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
1813 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
1814 config/iq2000/iq2000.c, config/m32r/m32r.c,
1815 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
1816 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
1817 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
1818 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
1819 config/sh/symbian.c, config/stormy16/stormy16.c,
1820 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
1821 and %> as appropriate. Use %' as apostrophe in diagnostics where
1822 applicable. Use %< and %> in place of '' quotes where applicable.
1823 Use %qs in place of %<%s%>. Consistently quote __builtin function
1824 names.
1825
55a9c4b2
HPN
18262004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
1827
1828 * gdbinit.in (pbb, pbm): New macros.
1829
df95526b
JL
18302004-11-08 Jeff Law <law@redhat.com>
1831
1832 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
1833 implementing it inline.
1834
1835 * cfganal.c (find_edge): Search pred->succs or succ->preds,
1836 whichever is shorter.
1837
68e4debe
KH
18382004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1839
1840 * passes.c (rest_of_handle_jump): Remove dead code.
1841
31864f59
KH
18422004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1843
1844 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
1845 the last used element in the worklist.
1846
892c7e1e
KH
18472004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1848
1849 * tree-inline.c (remap_save_expr): Make it static.
1850 * tree-inline.h: Remove the corresponding prototype.
1851
e1a8be3f
KH
18522004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1853
1854 * tree-ssa-loop-niter.c (upper_bound_in_type,
1855 lower_bound_in_type): Make them static.
1856 * tree.h: Remove the corresponding prototypes.
1857
1d9d8683
KH
18582004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1859
1860 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
1861 static.
1862 * tree-ssa-live.h: Remove the corresponding prototypes.
1863
a1d3c05c
KH
18642004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1865
1866 * tree-if-conv.c (tree_if_conversion): Make it static.
1867 * tree-flow.h: Remove the corresponding prototype.
1868
d05eae88
KH
18692004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1870
1871 * tree-ssa-operands.c (build_ssa_operands): Make it static.
1872 * tree-flow.h: Remove the corresponding prototype.
1873
b03c0b93
AP
18742004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
1875
1876 PR tree-opt/18299
1877 * tree-inline.c (copy_body_r): Change "t = t" to empty
1878 statement instead of "t".
1879
c16162ad
KH
18802004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1881
1882 * modulo-sched.c (create_partial_schedule,
1883 free_partial_schedule, reset_partial_schedule,
1884 ps_add_node_check_conflicts, rotate_partial_schedule): Make
1885 them static.
1886
14c8e213
RH
18872004-11-08 Richard Henderson <rth@redhat.com>
1888
1889 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
1890 the end of a page.
1891
c66a4368
KH
18922004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1893
1894 * sched-deps.c (add_insn_mem_dependence): Make it static.
1895 * sched-int.h: Remove the corresponding prototypes.
1896
60580286
KH
18972004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1898
1899 * flow.c (allocate_bb_life_data): Make it static.
1900 * basic-block.h: Remove the corresponding prototype.
1901
2f2b4a02
KH
19022004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1903
1904 * calls.c (split_complex_values, split_complex_types): Make
1905 them static.
1906 * expr.h: Remove the corresponding prototypes.
1907
7bff66a7
RE
19082004-11-08 Richard Earnshaw <rearnsha@arm.com>
1909
1910 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
1911 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
1912
1b7cd4a5
KH
19132004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1914
1915 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
1916 statements that always trigger.
1917
bb29d951
KH
19182004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1919
1920 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
1921 tree-scalar-evolution.c, tree-ssa-loop-im.c,
1922 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
1923 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
1924 appropriate.
1925
1590235e
BE
19262004-11-08 Ben Elliston <bje@au.ibm.com>
1927
1928 * cgraph.h (cgraph_calls_p): Remove.
1929 * cgraph.c (cgraph_calls_p): Likewise.
1930
1931 * varray.h (varray_copy): Remove.
1932 * varray.c (varray_copy): Likewise.
1933
b8a55285
AP
19342004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
1935
1936 PR target/18269
1937 * config/darwin.c (machopic_indirect_data_reference):
1938 Call gen_macho_high and gen_macho_low instead of
1939 checking the mode and calling gen_macho_high_di directly.
1940 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1941 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
1942 to darwin.md.
1943 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
1944 load_macho_picbase, macho_low, macho_high): Removed.
1945 (builtin_setjmp_receiver): Call gen_macho_high and
1946 gen_macho_low instead of checking the mode and calling
1947 gen_macho_high_di directly.
1948 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
1949 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
1950 Moved from rs6000.md.
1951 (macho_high): New expander.
1952 (macho_high_si): Renamed version of macho_high from rs6000.md.
1953 (macho_low): New expander.
1954 (macho_low_si): Renamed version of macho_low from rs6000.md.
1955 (load_macho_picbase): New expander.
1956 (load_macho_picbase_si): Renamed version of load_macho_picbase
1957 from rs6000.md.
1958 (macho_correct_pic): New expander.
1959 (macho_correct_pic_si): Renamed version of macho_correct_pic
1960 from rs6000.md.
1961
cc0b9d52
JM
19622004-11-07 Joseph S. Myers <joseph@codesourcery.com>
1963
1964 * c-decl.c (finish_struct): Use complete sentences for diagnostic
1965 for structures or unions with no members or named members.
1966
abb54d14
JM
19672004-11-07 Joseph S. Myers <joseph@codesourcery.com>
1968
1969 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
1970 taking address of bit-field by assertion.
1971
b628bd8e
UW
19722004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1973
1974 * config/s390/s390.md (attribute "op_type"): Default to "NN".
1975 (attribute "atype"): Default to "agen".
1976 (attribute "length"): Default to 6.
1977 (define_asm_attibutes): Remove.
1978 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
1979 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
1980 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
1981 Do not set type attribute to "cs" where already default.
1982 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
1983 "*negdi2_31"):
1984 Do not set type attribute to "other" where already default.
dc316086 1985 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
b628bd8e
UW
1986 "*strlendi", "*strlensi",
1987 "*movmem_long_64", "*movmem_long_31",
1988 "*clrmem_long_64", "*clrmem_long_31",
1989 "*cmpmem_long_64", "*cmpmem_long_31",
dc316086
PM
1990 "*cmpint_si", "*cmpint_di",
1991 "addti3", "*adddi3_31z", "*adddi3_31",
b628bd8e
UW
1992 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
1993 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
1994 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
1995 "*pool_entry", "pool_align", "pool_section_start",
1996 "pool_section_end", "main_pool", "reload_base_31", "pool"):
1997 Do not set op_type attribute to "NN" where already default.
dc316086 1998 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
b628bd8e 1999 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
dc316086 2000 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
b628bd8e
UW
2001 Do not set atype attribute to "agen" where already default.
2002 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
2003
58368ea7
RS
20042004-11-06 Richard Sandiford <rsandifo@redhat.com>
2005
2006 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
2007
28e9a3f3
RS
20082004-11-06 Richard Sandiford <rsandifo@redhat.com>
2009
2010 PR target/16830
2011 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
2012 R3000 and R4000 macros on IRIX.
2013
3c871f3f
AS
20142004-11-06 Andreas Schwab <schwab@suse.de>
2015
2016 PR target/16286
2017 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
2018 __pixel.
2019
5bd92c6d
KH
20202004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2021
2022 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
2023
29a74354
UW
20242004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2025
2026 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
2027 matches no insns already matched by other reservations.
2028 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
2029 matches no insns already matched by other reservations.
2030 ("x_ss"): Remove, replace by ...
2031 ("x_cs"): ... this new reservation. Check type instead of op_type.
2032 Update bypasses to use x_cs instead of x_ss.
2033 ("x_nn"): Remove, replace by ...
2034 ("x_other"): ... this new reservation. Check type instead of op_type.
2035 Add x_other and x_branch to bypasses.
2036 ("x_vs"): New reservation.
2037 * config/s390/s390.md (attribute "type"): Default according to op_type.
2038 ("*execute"): Set type to "cs".
2039
703201ea
KH
20402004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2041
2042 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
2043 if we are in GIMPLE.
2044
194acded
HPN
20452004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
2046
2047 PR rtl-optimization/17933
2048 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
2049 (covers_regno_p): New function. Handle SETs of PARALLEL,
2050 and defer the rest to...
2051 (covers_regno_no_parallel_p): New function.
2052
bb05e341
EB
20532004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2054
2055 * config/sparc/sparc.c (function_arg_record_value_1): Skip
2056 fields with zero length.
2057 (function_arg_record_value_2): Likewise.
2058 (function_arg_record_value_3): Use smallest_mode_for_size
2059 instead of mode_for_size.
2060 (function_arg_union_value): Return naked register for unions
2061 with zero length.
2062
45261626
EB
20632004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2064
2065 * config/sparc/sparc.c (scan_record_type): Handle vector types.
2066 (function_arg_slotno): Handle vector types specially.
2067 (function_arg_record_value_1): Split fields with vector type and
2068 BLKmode into their subparts.
2069 (function_arg_record_value_2): Likewise. Be prepared to handle
2070 more than 2 registers per field.
2071 (function_arg_union_value): Increment regno inside the loop.
2072 (function_arg_vector_value): New function.
2073 (function_arg): Use it to split fields with vector type and
2074 BLKmode into their subparts and build a PARALLEL. Treat
2075 other vector types like floats.
2076 (function_value): Likewise.
2077 (sparc_pass_by_reference): Handle vector types.
2078 (sparc_return_in_memory): Likewise.
2079
08d93024
KH
20802004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2081
2082 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
2083 statement that never triggers.
2084
a036c6f7
UW
20852004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2086
2087 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
2088 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
2089 ("x_fdivd"): Use also for fsqrtd type.
2090 ("x_fdivs"): Use also for fsqrts type.
2091 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
2092 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
2093 ("fix_truncdfsi2_ibm"): Set type to "other".
2094 ("floatdidf2", "floatdisf2"): Do not clobber CC.
2095 ("floatsidf2", "floatsidf2_ieee"): Likewise.
2096 ("floatsisf2", "floatsisf2_ieee"): Likewise.
2097 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
2098 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
dc316086 2099 instead of LRER.
a036c6f7
UW
2100 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
2101 ("sqrtdf2"): Set type to "fsqrtd".
2102 ("sqrtsf2"): Set type to "fsqrts".
2103
b2c24c1b
KH
21042004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2105
2106 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
2107 pointer to the last PHI node in the new PHI chain.
2108
b741fa00
KK
21092004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
2110
2111 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
2112 for non-PIC TLS_MODEL_INITIAL_EXEC case.
2113
68daef2a
KH
21142004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2115
2116 * expmed.c: Fix a comment typo.
2117
c37780f5
AL
21182004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2119
2120 PR target/18106
2121 * config/i386/cygming.h
2122 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
2123
f1f76fab
KH
21242004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2125
2126 * config/sh/sh4a.md: Fix copyright.
2127
713e31f4
KH
21282004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2129
2130 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
2131 with GCC.
2132
c9dbf840
DE
21332004-11-05 David Edelsohn <edelsohn@gnu.org>
2134
2135 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
2136 when carry not used. Suggested by Torbjorn Granlund.
2137
2138 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
2139 operand[1] unnecessarily. Suggested by Eric Christopher.
2140 (rs6000_adjust_cost): Increase latency of store to wider load.
2141 (rs6000_rtx_costs): mulli only allows 16-bit constants.
2142
3d0e2d58
SS
21432004-11-05 Stan Shebs <shebs@apple.com>
2144
2145 * config/rs6000/rs6000.c (machopic_output_stub): Output
2146 ldu instead of lwzu for 64-bit stubs.
2147
9f7d06d6
RH
21482004-11-05 Richard Henderson <rth@redhat.com>
2149
2150 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
2151 size 2 with BWX.
2152 (alpha_expand_unaligned_store): Likewise.
2153
abb73f90
RH
21542004-11-05 Richard Henderson <rth@redhat.com>
2155
2156 * expmed.c (extract_force_align_mem_bit_field): New.
2157 (extract_split_bit_field): Call it.
2158
f526a3c8
RH
21592004-11-05 Richard Henderson <rth@redhat.com>
2160
2161 * ia64.md (UNSPEC_SHRP): New.
2162 (dshift_count_operand): New.
2163 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
2164 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
2165
0a880880
JM
21662004-11-05 Joseph S. Myers <joseph@codesourcery.com>
2167
2168 * c-typeck.c (output_init_element): Return early if value is
2169 error_mark_node.
2170
83338d15
JW
21712004-11-05 James E Wilson <wilson@specifixinc.com>
2172
ddd8e3ca
JW
2173 * invoke.texi (-fno-guess-branch-probability): Rewrite.
2174
83338d15
JW
2175 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
2176 1 to UNSPEC_GR_SPILL.
2177
ffdda752
AK
21782004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
2179
2180 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
2181 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
2182
0cde4a2c
NS
21832004-11-05 Nathan Sidwell <nathan@codesourcery.com>
2184
88c4f655
NS
2185 * bitmap.h (enum bitmap_bits): Remove.
2186 (bitmap_operation): Remove.
2187 (bitmap_and, bitmap_and_into, bitmap_and_compl,
2188 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
2189 bitmap_xor_into): Prototype.
2190 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
2191 (bitmap_operation): Remove.
2192 (bitmap_and, bitmap_and_into, bitmap_and_compl,
2193 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
2194 bitmap_xor_into): New.
2195 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
2196
0cde4a2c
NS
2197 PR tree-optimization/18307
2198 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
2199 and ORIG being the same node.
2200
53c7ffe7
GK
22012004-11-04 Geoffrey Keating <geoffk@apple.com>
2202
2203 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
2204 (install-mkheaders): Install the version built for the
2205 host, not for the build machine.
2206 * configure.ac: Always run fixincludes.
2207 (all_outputs): Remove mkheaders.
2208 * configure: Regenerate.
2209 * fixinc.in: Move to fixincludes/.
2210 * mkfixinc.sh: Likewise.
2211 * mkheaders.in: Likewise.
2212 * README-fixinc: Likewise.
2213
ced327b7
RR
22142004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2215
2216 PR target/18263
2217 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
2218 equivalent on the A4.
2219
8a36672b
JM
22202004-11-05 Joseph S. Myers <joseph@codesourcery.com>
2221
2222 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
2223 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
2224 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
2225 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
2226 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
2227 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
2228 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
2229 doc/trouble.texi: Correct end-of-sentence markup and markup of
2230 "etc.", "e.g." and "i.e.". Use @code in various places where
2231 appropriate.
2232
f0eb93a8
JM
22332004-11-05 Joseph S. Myers <joseph@codesourcery.com>
2234
2235 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
2236 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
2237 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
2238 whitespace.
2239
04fb56d5
MM
22402004-11-04 Mark Mitchell <mark@codesourcery.com>
2241
2242 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
2243 * doc/extend.texi: Document "notshared" attribute.
dc316086 2244
ce9b3d49
KH
22452004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2246
2247 * tree-phinodes.c (make_phi_node): Make it static.
2248 * tree.h: Remove the prototypes for make_phi_node.
2249
bac6bfc5
KH
22502004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2251
2252 * stmt.c (expand_asm, expand_asm_operands): Make them static.
2253 * tree.h: Remove the prototypes for expand_asm and
2254 expand_asm_operands.
2255
73dcf3b5
KH
22562004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2257
2258 * passes.c (rest_of_compilation): Make it static.
2259 * toplev.h: Remove the prototype for rest_of_compilation.
2260
f014fc47
KH
22612004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2262
2263 * jump.c (cleanup_barriers): Use delete_insn instead of
2264 delete_barrier.
2265 (delete_barrier): Remove.
2266 * rtl.h: Remove the corresponding prototype.
2267
e0ce7708
KH
22682004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2269
2270 * expr.c (mostly_zero_p): Make it static.
2271 * tree.h: Remove the prototype for mostly_zeros_p.
2272
9167e1c0
KH
22732004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2274
2275 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
2276
54e62799
KH
22772004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2278
2279 * builtins.c (expand_builtin_return_addr,
2280 expand_builtin_longjmp, expand_builtin_trap): Make them static.
2281 * expr.h: Remove the prototypes for expand_builtin_longjmp and
2282 expand_builtin_trap.
2283 * tree.h: Remove the prototype for expand_builtin_return_addr.
2284
65f4323d
KH
22852004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2286
2287 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
2288 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
2289 with VAL being NULL.
2290
797c289c
KH
22912004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2292
2293 * cfghooks.c (delete_basic_block): Remove code to truncate
2294 edge vectors.
2295
db20bd62
AP
22962004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
2297
dc316086 2298 * flow.c (init_propagate_block_info): Change the type of i to
db20bd62
AP
2299 unsigned.
2300
106f5de5
UW
23012004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
2302
2303 PR tree-optimization/18184
2304 * c-typeck.c (comptypes): Do not treat pointers of different
2305 modes or alias-all flags as equivalent.
2306 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
2307
da543234
JM
23082004-11-04 Joseph S. Myers <joseph@codesourcery.com>
2309
2310 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
2311 reference specific C parser files in examples.
2312
4e5813dd
RS
23132004-11-04 Richard Sandiford <rsandifo@redhat.com>
2314
2315 PR target/15342
2316 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
2317 as OP_INOUT if the instruction is predicated.
2318
d46aed51
KH
23192004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2320
2321 * bitmap.h: Fix a comment typo. Follow spelling conventions.
2322 * tree-vectorizer.c: Fix a comment typo.
2323
37bf6443
KH
23242004-11-04 Kazu Hirata <kazu@cs.umass.edu>
2325
2326 * sdbout.c (SDB_GENERATE_FAKE): Remove.
2327 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
2328 * system.h: Poison SDB_GENERATE_FAKE.
2329 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
2330
f0ad121f
UW
23312004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
2332
2333 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
2334
ab3d1049
EB
23352004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2336
2337 PR other/18277
2338 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
2339 2004-10-29 patch
2340
3cd8c58a
NS
23412004-11-04 Nathan Sidwell <nathan@codesourcery.com>
2342
b9af0016
NS
2343 * predict.c (propagate_freq): Make bitno unsigned. Move
2344 npredecessors update out of loop.
2345
e90ea8cb
NS
2346 * bitmap.h (bitmap_iterator): Remove word_bit and bit
2347 fields. Rename others.
2348 (bmp_iter_common_next_1, bmp_iter_single_next_1,
2349 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
2350 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
2351 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
2352 bmp_iter_and_next): Remove.
2353 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
2354 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
2355 New.
2356 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
2357 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
2358
67299d91
NS
2359 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
2360 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
2361 bitmap_and_into, bitmap_ior_into as appropriate.
2362 * except.c (remove_eh_handler): Likewise.
2363 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
2364 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
2365 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
2366 * tree-ssa-live.h (live_merge_and_clear): Likewise.
2367 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
2368 Likewise.
2369
3cd8c58a
NS
2370 * bitmap.c (bitmap_print): Make bitno unsigned.
2371 * bt-load.c (clear_btr_from_live_range,
2372 btr_def_live_range): Likewise.
2373 * caller-save.c (save_call_clobbered_regs): Likewise.
2374 * cfganal.c (compute_dominance_frontiers_1): Likewise.
2375 * cfgcleanup.c (thread_jump): Likewise.
2376 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2377 * conflict.c (conflict_graph_compute): Likewise.
2378 * ddg.c (add_deps_for_use): Likewise.
2379 * df.c (df_refs_update): Likewise.
2380 * except.c (remove_eh_handler): Likewise.
2381 * flow.c (verify_local_live_at_start, update_life_info,
2382 initialize_uninitialized_subregs, propagate_one_insn,
2383 free_propagate_block_info, propagate_block, find_use_as_address,
2384 reg_set_to_hard_reg_set): Likewise.
2385 * gcse.c (clear_modify_mem_tables): Likewise.
2386 * global.c (global_conflicts, build_insn_chain): Likewise.
2387 * ifcvt.c (dead_or_predicable): Likewise.
2388 * local-alloc.c (update_equiv_regs): Likewise.
2389 * loop.c (load_mems): Likewise.
2390 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
2391 Likewise.
2392 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
2393 Likewise.
2394 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
2395 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
2396 * sched-rgn.c (propagate_deps
2397 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
2398 * tree-dfa.c (dump_dfa_stats
2399 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
2400 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
2401 Likewise.
2402 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
2403 free_temp_expr_table, find_replaceable_exprs): Likewise.
2404 * tree-sra.c (scan_function, scalarize_parms): Likewise.
2405 * tree-ssa-alias.c (init_alias_info,
2406 compute_points_to_and_addr_escape,
2407 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
2408 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
2409 * tree-ssa-live.c (new_tree_live_info, live_worklist,
2410 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
2411 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
2412 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
2413 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
2414 add_call_read_ops): Likewise.
2415 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
2416 * tree-ssa-live.h (num_var_partitions): Return unsigned.
2417
0dc0a70b
DN
24182004-11-03 Dorit Naishlos <dorit@il.ibm.com>
2419
2420 PR tree-optimization/18009
2421 * tree-vectorizer.h (enum dr_alignment_support): New type.
2422 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
2423 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
2424 single data_reference (instead of a varray of references).
2425 * tree-vectorizer.c (new_loop_vec_info): Likewise.
2426 (vect_gen_niters_for_prolog_loop): Likewise.
2427 (vect_update_inits_of_drs): Likewise.
2428
2429 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
2430 vect_enhance_data_refs_alignment.
2431 (vect_do_peeling_for_alignment): Likewise.
2432 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
2433 this functionality used to be in vect_analyze_data_refs_alignment.
2434 Also update DR_MISALIGNMENT due to peeling; this functionality used to
2435 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
2436 (vect_analyze_data_refs_alignment): Decision on whether and by how much
dc316086 2437 to peel moved to vect_enhance_data_refs_alignment. Call
0dc0a70b
DN
2438 vect_supportable_dr_alignment.
2439
2440 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
2441 (vect_compute_data_refs_alignment): Return bool. Consider return value
2442 of vect_compute_data_ref_alignment and return true/false accordingly.
dc316086 2443 (vect_enhance_data_refs_alignment): Consider return value of
0dc0a70b
DN
2444 vect_compute_data_refs_alignment and return true/false accordingly.
2445
2446 (vect_supportable_dr_alignment): New function.
2447 (vectorizable_store): Call vect_supportable_dr_alignment.
2448 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
2449 support checks moved from here to vect_supportable_dr_alignment.
2450
2451 (vect_transform_loop): Avoid 80 columns overflow.
2452
89106ed5
AP
24532004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
2454
2455 * timevar.c (timevar_enable): Change from
2456 static.
2457 (timevar_push): Rename to ...
2458 (timevar_push_1): this and remove the
2459 enabled check.
2460 (timevar_pop): Rename to ...
2461 (timevar_pop_1): this and remove the
2462 enabled check.
2463 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
2464 (timevar_pop): New macro.
2465 (timevar_push): New macro.
2466 (timevar_enable): Declare.
2467
b3367474
AP
24682004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
2469
2470 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
2471 libgcc for shared libraries.
2472
c5aa1d12
UW
24732004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2474
2475 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
2476 * config/s390/s390.c (s390_split_access_reg): New function.
2477 (regclass_map): Add access registers.
2478 (get_thread_pointer): Use access register instead of UNSPEC_TP.
2479 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
2480 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
2481 (TP_REGNUM): New define.
2482 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2483 REG_ALLOC_ORDER): Add access registers.
2484 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
2485 CANNOT_CHANGE_MODE_CLASS): Support access registers.
2486 (enum reg_class): Add ACCESS_REGS.
2487 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
2488 (REG_CLASS_FROM_LETTER): Add 't' constraint.
2489 (REGISTER_NAMES): Add access registers.
2490 * config/s390/s390.md (UNSPEC_TP): Remove.
2491 ("*movdi_64"): Add access register alternatives. Provide splitters
2492 to split DImode access register <-> GPR moves into SImode moves.
2493 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
2494 ("movstrictsi"): Likewise.
2495 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
2496 ("set_tp_64", "set_tp_31"): Likewise.
2497 ("*set_tp"): New insn.
2498
57f60923
KH
24992004-11-03 Kazu Hirata <kazu@cs.umass.edu>
2500
2501 * tree-phinodes.c (resize_phi_node): Copy only a portion of
2502 the PHI node currently in use.
2503
269b7526
AP
25042004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
2505
2506 PR tree-opt/18231
2507 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
2508 also.
2509
b00e4c23
AM
25102004-11-03 Andrew MacLeod <amacleod@redhat.com>
2511
2512 PR tree-optimization/18270
2513 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
2514 abnormal edges, commit all pending stmts on incoming edges.
2515
a85a9024
UW
25162004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2517
2518 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
2519 cause extra costs. Generate canonical RTL.
2520
c4bda9f0
DB
25212004-11-02 Daniel Berlin <dberlin@dberlin.org>
2522
2523 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
2524 (lambda_compute_target_space). Ditto.
2525 * lambda.h (lambda_trans_matrix): Ditto.
2526 (lambda_linear_expression): Ditto.
2527 (lambda_body_vector): Ditto.
2528 (lambda_loopnest): Ditto.
2529 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
2530 update comments, and remove pointless addition of 0.
2531 (linear_transform_loops): Update comments.
2532
308d5189
SP
25332004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
2534
2535 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
2536 CEIL_MOD_EXPR.
2537
4cfa46c8
JL
25382004-11-03 Jeff Law <law@redhat.com>
2539
8a998e0c
JL
2540 * predict.c (struct block_info_def): Kill "tovisit" field.
2541 (propagate_freq): Accept new "tovisit" parameter. Change
2542 read/write access methods for "tovisit" to check the "tovisit"
2543 bitmap instead of a bit in block_info_def.
2544 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
2545 it to propagate_freq.
2546
4cfa46c8
JL
2547 * stmt.c (expand_case): Speed up code to detect duplicate case
2548 label targets and count unique case label targets.
2549
158aa13a
KH
25502004-11-03 Kazu Hirata <kazu@cs.umass.edu>
2551
2552 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
2553
4828a73e
KH
25542004-11-03 Kazu Hirata <kazu@cs.umass.edu>
2555
2556 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
2557
35920270
KH
25582004-11-03 Kazu Hirata <kazu@cs.umass.edu>
2559
2560 * tree-cfg.c (find_taken_edge): Abort if we are given a
2561 statement that is neither COND_EXPR nor SWITCH_EXPR.
2562
a63c0d13
ZD
25632004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
2564
2565 * fold-const.c (fold): Reassociate also (x - mult) + mult and
2566 (mult - x) + mult. Cast operands of expression after applying
2567 distributive law to the correct types. Apply distributive law
2568 to a * c - b * c for all non-float types.
2569
de253ca4
GK
25702004-11-02 Geoffrey Keating <geoffk@apple.com>
2571
2572 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
2573 because we don't want to run them now; instead, set them to
2574 stmp-install-fixproto or stmp-install-fixinc.
2575 * Makefile.in (stmp-install-fixproto): New.
2576 (stmp-install-fixinc): New.
2577 * configure: Regenerate.
2578
f7569f3a
NS
25792004-11-02 Nathan Sidwell <nathan@codesourcery.com>
2580
2581 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
2582 of bitmap_xor.
2583
65958285
ZL
25842004-11-02 Ziemowit Laski <zlaski@apple.com>
2585
2586 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
2587 (c_types_compatible_p): Move function definition...
2588 * c-objc-common.c (c_types_compatible_p): ...here.
2589 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
2590 c-lang.c.
2591
75473b02
SB
25922004-11-02 Steven Bosscher <stevenb@suse.de>
2593
2594 * cfgloop.h (struct loop): Update comment.
2595 * cse.c (cse_main): Remove obsolete comment.
2596
2597 * expr.h (gen_cond_trap): Move prototype under functions provided
2598 by optabs.c.
2599 (canonicalize_condition, get_condition): Move to...
2600 * rtl.h (canonicalize_condition, get_condition): ...here.
2601 (branch_target_load_optimize): Add comment that this function is
2602 in bt-load.c.
2603 * loop.c (canonicalize_condition, get_condition): Move to...
2604 * rtlanal.c (canonicalize_condition, get_condition): ...here.
2605 * sched-deps.c (get_condition): Rename to sched_get_condition.
2606 (add_dependence): Update this caller.
dc316086 2607
da1f8963
AP
26082004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
2609
2610 PR tree-opt/16808
2611 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
2612 that the vops get marked for renaming.
2613
8dd3b235
AK
26142004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
2615
2616 * config/s390/s390.md ("movcc"): Set type attribute.
2617
bc2dce32
KH
26182004-11-02 Kazu Hirata <kazu@cs.umass.edu>
2619
2620 * tree-phinodes.c (add_phi_arg): Add an assertion that the
2621 edge already exists.
2622
54699c02
KH
26232004-11-02 Kazu Hirata <kazu@cs.umass.edu>
2624
2625 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
2626 element that's being removed.
2627
641e7348
KH
26282004-11-02 Kazu Hirata <kazu@cs.umass.edu>
2629
2630 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
2631 arguments using PENDING_STMT.
2632 (thread_block): Call copy_phis_to_block after redirecting an
2633 edge.
2634
55994078
NS
26352004-11-02 Nathan Sidwell <nathan@codesourcery.com>
2636
7ef7b345
NS
2637 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
2638 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
2639 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
2640 (bitmap_ior_and_compl_into): Produce bool.
2641 (bitmap_union_of_diff): Rename to ...
2642 (bitmap_ior_and_compl): ... here. Produce bool.
2643 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
2644 bitmap_operation directly.
2645 (bitmap_union_of_diff): Rename to ...
2646 (bitmap_ior_and_compl): ... here. Return bool, use
2647 bitmap_operation directly.
2648 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
2649 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
2650 * global.c (modify_bb_reg_pav): Likewise.
2651
55994078
NS
2652 * bitmap.h (bitmap_equal_p): Return bool.
2653 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
2654 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
2655 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
2656 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
2657 bitmap_intersect_compl_p.
2658 * ifcvt (dead_or_predicable): Likewise.
2659
f6219a5e
NS
26602004-11-02 Nathan Sidwell <nathan@codesourcery.com>
2661
2662 PR rtl-optimization/17104
2663 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
2664 loads in zero_extend.
2665
8f49f0f1
DS
26662004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
2667
2668 PR debug/18242
2669 * toplev.c (debug_type_names): Remove "dwarf-1".
2670
0537bf15
BE
26712004-11-02 Ben Elliston <bje@au.ibm.com>
2672
dc316086 2673 * timevar.h (timevar_get): Remove.
0537bf15
BE
2674 * timevar.c (timevar_get): Remove unused function.
2675
708b3421
JM
26762004-11-02 Joseph S. Myers <joseph@codesourcery.com>
2677
2678 * doc/include/texinfo.tex: Update from Texinfo CVS.
2679
91e3536a
BE
26802004-11-02 Ben Elliston <bje@au.ibm.com>
2681
2682 * cppdefault.h (cpp_SYSROOT): Remove.
2683 * cppdefault.c (cpp_SYSROOT): Likewise.
2684
edfaf675
AM
26852004-11-01 Andrew MacLeod <amacleod@redhat.com>
2686
2687 PR tree-optimization/16447
dc316086 2688 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
edfaf675
AM
2689 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
2690 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
2691 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
2692 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
2693 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
2694 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
2695 (identical_copies_p): New. Return true is two copies are the same.
2696 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
dc316086 2697 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
edfaf675
AM
2698 for a basic block.
2699 (perform_edge_inserts): New. Determine what to do with all stmts that
2700 have been inserted on edges.
2701 (remove_ssa_form): Analyze and commit edges from here.
2702
f759c75e
AP
27032004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
2704
2705 PR bootstrap/18232
2706 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
2707 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
2708 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
2709 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
2710
ee060229
JM
27112004-11-01 Joseph S. Myers <joseph@codesourcery.com>
2712
2713 PR c/18239
2714 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
2715 parameter declarations.
2716
9dc62c00
AK
27172004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
2718
2719 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
2720 (s390_secondary_input_reload_class)
2721 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
2722 register.
2723 (s390_expand_cmpmem): Enable cmpmem implementation.
2724 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
2725 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
2726 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
2727 * config/s390/s390.md ("movcc"): New insn pattern.
2728 * doc/md.texi: Document 'c' constraint for s390.
2729
ae209f28
NS
27302004-11-01 Nathan Sidwell <nathan@codesourcery.com>
2731
2732 PR c++/18064
2733 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
2734 extension.
2735
464f49d8
DB
27362004-10-16 Daniel Berlin <dberlin@dberlin.org>
2737
2738 Fix PR tree-optimization/17672
2739 Fix PR tree-optimization/18168
dc316086 2740
464f49d8
DB
2741 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
2742 assert test.
2743 (gcc_tree_to_linear_expression): Add extra to existing constant.
2744 (depth_of_nest): Factor out function used in various places.
2745 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
2746 functional changes.
2747 (find_induction_var_from_exit_cond): Stop guessing, and just
2748 get the right answer :).
2749 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
2750 Print out message about result of attempt to create perfect nest.
2751 (lbv_to_gcc_expression): Add type argument, use it to do math
2752 and induction variable creation.
2753 (lle_to_gcc_expression): Ditto.
2754 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
dc316086 2755 oldiv. Pass type argument to lle_to_gcc_expression and
464f49d8
DB
2756 lbv_to_gcc_expression.
2757 Reset number of iterations after transformation.
2758 (perfect_nestify): Remove useless pre-allocation, and cleanup
2759 a small amount.
2760
2761 * tree-data-ref.c (build_classic_dist_vector): Return false for
2762 dependences completely outside of the loop nest we asked about.
2763 (build_classic_dir_vector): Ditto.
2764 (compute_data_dependences_for_loop): Only add dependence relations
2765 inside the loop we asked about.
dc316086 2766
464f49d8
DB
2767 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
2768 Compute immediate uses.
dc316086 2769
464f49d8 2770 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
dc316086 2771
0eb9f5bc
KH
27722004-11-01 Kazu Hirata <kazu@cs.umass.edu>
2773
2774 * tree-cfg.c (thread_jumps): Fix a comment typo.
2775
cf566f7f
KH
27762004-11-01 Kazu Hirata <kazu@cs.umass.edu>
2777
2778 * tree-cfg.c (thread_jumps): Fix a comment typo.
2779
3188a512
NP
27802004-10-31 Nicolas Pitre <nico@cam.org>
2781
2782 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
2783 values smaller than 2^32.
2784
ccbdbf0a
JL
27852004-10-31 Jeff Law <law@redhat.com>
2786
2787 * cfgloop.h (struct loop): Remove unused "nodes" field.
2788 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
2789 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
2790 instead of calling flow_bb_inside_loop_p for every basic block
2791 in the function.
2792 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
2793
35936b93
GS
27942004-10-31 Graham Stott <graham.stott@btinternet.com>
2795
2796 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
2797 INT_5_BITS instead of VAL_5_BITS_P.
2798
7a6336aa
RS
27992004-10-31 Roger Sayle <roger@eyesopen.com>
2800
2801 PR middle-end/14521
2802 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
2803 for consistent quoting in diagnostic messages.
2804 (expand_call_inline): Likewise.
2805 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2806 * tree-ssa.c (warn_uninitialized_var): Likewise.
2807 (warn_uninitialized_phi): Likewise.
2808
29b4addf
RS
28092004-10-31 Richard Sandiford <rsandifo@redhat.com>
2810
2811 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
2812 mode check.
2813
3292fb42
KH
28142004-10-31 Kazu Hirata <kazu@cs.umass.edu>
2815
2816 * c-common.c: Fix a comment typo.
2817
49382b6c
JM
28182004-10-31 Jason Merrill <jason@redhat.com>
2819
2820 PR middle-end/17526
2821 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
2822 aggregate types that are not BLKmode.
2823
16b34ad6
ZL
28242004-10-30 Ziemowit Laski <zlaski@apple.com>
2825
2826 * c-common.h (objc_lookup_ivar): Add second parameter to
2827 prototype.
2828 * c-typeck.c (build_external_ref): After looking up symbol,
2829 pass it to objc_lookup_ivar() to decide whether it or the
2830 ivar should be used, rather than deciding the issue locally.
2831 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
2832 which is simply returned in the non-ObjC case.
2833
7fe63418
DS
28342004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
2835
2836 * sdbout.c (sdbout_symbol): Do not output type .def statements
2837 for builtin types.
2838
0a3ee0fd
GDR
28392004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2840
2841 * c-common.c (catenate_strings): New.
2842 (c_parse_error): Use it. Don't over-escape.
2843
0ef2c525
KK
28442004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
2845
2846 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
2847 modify the for loop expressions for it. Remove unnecessary casts.
2848 (sh_expand_prologue): Declare reg as unsigned.
2849 (sh_gimplify_va_arg_expr): Initinalize lab_over.
2850 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
2851
46bfe5e3
GK
28522004-10-30 Geoffrey Keating <geoffk@apple.com>
2853
2854 * doc/invoke.texi (Darwin Options): Improve description of
2855 how the subtype is chosen.
2856
61168ff1
RS
28572004-10-30 Roger Sayle <roger@eyesopen.com>
2858
2859 PR middle-end/18096
2860 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
2861 the stack adjustment, "size", is valid for Pmode. If the stack
2862 frame is too large, generate a trap insn and issue a warning.
2863
cbb1cada
KH
28642004-10-30 Kazu Hirata <kazu@cs.umass.edu>
2865
2866 * tree-ssa-dom.c: Fix comment typos.
2867
e57a6d42
KK
28682004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
2869
2870 * config/sh/sh.c (prepare_move_operands): Use operands[0]
2871 for the output rtl if no_new_pseudos is set. Remove redundant
2872 line.
2873
46097c76
JM
28742004-10-30 Joseph S. Myers <joseph@codesourcery.com>
2875
2876 PR c/16666
2877 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
2878 determining whether to copy parameter types from a previous
2879 prototype declaration.
2880
5976e643
RS
28812004-10-29 Roger Sayle <roger@eyesopen.com>
2882
2883 PR rtl-optimization/17581
2884 * cselib.c (cselib_process_insn): The last instruction of a libcall
2885 block, with the REG_RETVAL note, should be considered in the libcall.
2886 * gcse.c (do_local_cprop): Allow constants to be propagated outside
2887 of libcall blocks.
2888 (adjust_libcall_notes): Use simplify_replace_rtx instead of
2889 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
2890
9b1bfcc0
KH
28912004-10-30 Kazu Hirata <kazu@cs.umass.edu>
2892
2893 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
2894
efea75f9
JL
28952004-10-29 Jeff Law <law@redhat.com>
2896
2897 * tree-ssa-dom.c (struct edge_info): New structure holding
2898 edge equivalences and edge redirection information.
2899 (get_eq_expr_value, record_dominating_conditions): Kill.
2900 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
2901 Call record_edge_info.
2902 (allocate_edge_info, free_edge_info): New.
2903 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
2904 rather than cprop_into_phis. Free all edge infos before threading
2905 jumps.
2906 (thread_across_edge): Allocate new edge info structures as needed
2907 and store the redirection target into the edge info structure
2908 instead of the edge's AUX field.
2909 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
2910 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
2911 Revamp code which finds and records equivalences associated with
2912 edges to use saved data in the edge_info structure.
2913 (record_equivalencs_from_phis): Similarly.
2914 (dom_opt_finalize_block): Revamp code which finds and records
2915 equivalences associated with edges to use saved data in the
2916 edge_info structure.
2917 (build_and_record_new_cond): New function.
2918 (record_conditions): Use build_and_record_new_cond to record
2919 dominating conditions.
2920 (record_edge_info): New function.
2921 (record_range): Tighten test for conditions which create
2922 useful range records.
2923
cc92f54f
GK
29242004-10-29 Geoffrey Keating <geoffk@apple.com>
2925
965a7e90
GK
2926 * config/i386/darwin.h (ASM_SPEC): Simplify.
2927 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2928 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
2929 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2930 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
2931 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
2932 in all cases. Pass the right -arch or -arch_only based on -mcpu.
2933 (ASM_SPEC): Handle -force_cpusubtype_ALL.
2934 * doc/invoke.texi (Darwin Options): Improve documentation for
2935 Darwin linker (and libtool) switches.
2936
cc92f54f
GK
2937 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
2938
5fd5ec31
SS
29392004-10-29 Stan Shebs <shebs@apple.com>
2940
2941 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
2942
8c3babed
KH
29432004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2944
2945 * tree-phinodes.c (allocate_phi_node): New.
2946 (make_phi_node, resize_phi_node): Use it.
2947
bd004fef
DE
29482004-10-29 David Edelsohn <edelsohn@gnu.org>
2949
2950 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
2951 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
2952
c24a4dcf
KH
29532004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2954
2955 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
2956 the whole PHI node.
2957 * tree.h (tree_phi_node): Tell the garbage collector to chase
2958 num_args arguments.
2959
fe94b653
RE
29602004-10-29 Richard Earnshaw <rearnsha@arm.com>
2961
2962 * opts.c (decode_options): Lower the crossjump threshold for -Os.
2963
0be058dd
DN
29642004-10-29 Diego Novillo <dnovillo@redhat.com>
2965
2966 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
2967
eb59b8de
NS
29682004-10-28 Nathan Sidwell <nathan@codesourcery.com>
2969
2970 * bitmap.h (bitmap_empty_p): New.
2971 (bitmap_and, bitmap_and_into, bitmap_and_compl,
2972 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
2973 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
2974 operation macros.
2975 (bitmap_ior_and_compl): Rename to ...
2976 (bitmap_ior_and_compl_into): ... here.
2977 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
2978 (bitmap_ior_and_compl): Rename to ...
2979 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
2980 flag.
2981 (bitmap_union_of_diff): Use renamed bitmap functions.
2982 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
2983 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
2984 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2985 * df.c (df_bb_rd_local_compute)
2986 * flow.c (calculate_global_regs_live,
2987 init_propagate_block_info): Likewise.
2988 * ifcvt.c (find_if_case_1, find_if_case_2,
2989 dead_or_predicable): Likewise.
2990 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
2991 reset_conflicts, conflicts_between_webs): Likewise.
2992 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
2993 detect_web_parts_to_rebuild): Likewise.
2994 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
2995 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
2996 * tree-sra.c (decide_instantiations): Likewise.
2997 * tree-ssa-alias.c (create_name_tags,
2998 merge_pointed_to_info): Likewise.
2999 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
3000 * tree-ssa-loop-im.c (move_computations): Likewise.
3001 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
3002 * tree-ssa-pre.c (fini_pre): Likewise.
3003 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
3004 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
3005 * tree-vectorizer.c (vectorize_loops): Likewise.
3006
07c05acd
NC
30072004-10-29 Nick Clifton <nickc@redhat.com>
3008
3009 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
3010 adding the PIC register to the fixed_regs array, also add it
dc316086 3011 to the call_used_regs array.
07c05acd 3012
e95dc99b
EB
30132004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
3014
3015 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
3016 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
3017
8618ff53
DB
30182004-10-28 Daniel Berlin <dberlin@dberlin.org>
3019
3020 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
3021 (rewrite_blocks): Modify argument, and use it to decide which
3022 function to call.
3023 (rewrite_def_def_chains): Call rewrite_blocks with true here.
3024 (rewrite_into_ssa): and call it with false here.
dc316086 3025
0f84c36e
KH
30262004-10-29 Kazu Hirata <kazu@cs.umass.edu>
3027
3028 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
3029 triggers into gcc_assert.
3030
de66168d
DN
30312004-10-28 Diego Novillo <dnovillo@redhat.com>
3032
3033 PR tree-optimization/16728
3034 * tree-flow.h (get_ptr_info): Declare.
3035 * tree-ssa-alias.c (get_ptr_info): Make extern.
3036 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
3037 alias information.
3038
55dbfb48
SS
30392004-10-28 Stan Shebs <shebs@apple.com>
3040
3041 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
3042 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
3043 case.
3044
7ec02c04
FCE
30452004-10-28 Frank Ch. Eigler <fche@redhat.com>
3046
3047 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
3048 prevent their later unnecessary registration.
3049 (mf_build_check_statement_for): Remove "addr" argument, and
3050 related "__mf_value" generated code. Update callers.
3051 (mf_decl_eligible_p): New function, factored from mx_register_decls.
3052 (mx_register_decls): Call it.
3053 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
3054 to restore support for complex nested expressions.
3055 (mudflap_enqueue_decl): Simplify. Move registration call emission
3056 out ...
3057 (mudflap_finish_file): ... to here.
3058 (mudflap_enqueue_constant): Remove dump code.
3059
40aea05c
ZW
30602004-10-28 Zack Weinberg <zack@codesourcery.com>
3061
859ee18f
ZW
3062 PR 18199
3063 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
3064 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
3065 (dbxout_finish_complex_stabs): Update to match.
3066 (dbxout_symbol_location): Call emit_pending_bincls_if_required
3067 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
3068 dbxout_begin_complex_stabs_noforcetext.
3069 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
3070 N_GSYM, using new SYM parameter. Correct logic for special
3071 cases for N_FUN.
3072
40aea05c
ZW
3073 * varasm.c (function_section): If DECL is NULL_TREE, don't try
3074 to do anything else. Do not call get_insns if cfun or
3075 cfun->emit are NULL.
3076
0039fa55
AN
30772004-10-28 Adam Nemet <anemet@lnxw.com>
3078
40aea05c 3079 PR middle-end/18160
0039fa55
AN
3080 * c-typeck.c (c_mark_addressable): Issue error if address of a
3081 register variable is taken. Use "%qD" to print DECL_NAME.
3082
85a59cea
DN
30832004-10-28 Diego Novillo <dnovillo@redhat.com>
3084
3085 * opts.c (decode_options): Don't run PRE at -Os.
3086
283dd633
RH
30872004-10-28 Richard Henderson <rth@redhat.com>
3088
3089 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
3090 zero in the conditional.
3091 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
3092
9d80ef7c
RH
30932004-10-28 Richard Henderson <rth@redhat.com>
3094
3095 * cse.c (memory_extend_rtx): Remove.
3096 (cse_main): Don't set it.
3097 (cse_insn): Use a local buffer instead.
3098
f3df9541
AK
30992004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
3100
3101 * profile.c (branch_prob): Call to init_edge_profiler added.
3102 * rtl-profile.c (rtl_init_edge_profiler): New function.
3103 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
3104 call to safe_insert_insn_on_edge.
3105 (rtl_profile_hooks): rtl_init_edge_profiler added.
3106 * tree-profile.c (tree_init_edge_profiler): New function.
3107 (tree_profile_hooks): tree_init_edge_profiler added.
3108 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
3109
9054261d
NC
31102004-10-28 Nick Clifton <nickc@redhat.com>
3111
3112 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
3113 emit_jump_insn() to generate the return instruction.
3114
50d895a7
KH
31152004-10-28 Kazu Hirata <kazu@cs.umass.edu>
3116
3117 * tree-phinodes.c: Remove trailing whitespace.
3118
1c170b5e
KH
31192004-10-28 Kazu Hirata <kazu@cs.umass.edu>
3120
3121 * tree-ssa-loop-ivopts.c: Fix a comment typo.
3122 * doc/invoke.texi: Fix a typo.
3123
f340a501
KH
31242004-10-28 Kazu Hirata <kazu@cs.umass.edu>
3125
3126 * Makefile.in (OBJS-common): Remove duplicates.
3127
71882046
KH
31282004-10-28 Kazu Hirata <kazu@cs.umass.edu>
3129
3130 * lambda-code.c (nestify_update_pending_stmts): Remove.
3131 (perfect_nestify): Use flush_pending_stmts instead of
3132 nestify_update_pending_stmts.
3133 * tree-cfg.c (tree_make_forwarder_block): Use
3134 flush_pending_stmts.
3135 * tree-flow.h: Add a prototype for flush_pending_stmts.
3136 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
3137 Use flush_pending_stmts.
3138 (lv_update_pending_stmts): Remove.
3139 (tree_ssa_loop_version): Use flush_pending_stmts instead of
3140 lv_update_pending_stmts.
3141 * tree-ssa.c (flush_pending_stmts): New.
3142
fd326ba8
UW
31432004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
3144
3145 PR target/15286
3146 * final.c (alter_subreg): Compute correct offset to use with
3147 paradoxical SUBREGs of memory operands.
3148 * recog.c (general_operand): Allow paradoxical SUBREGs of
3149 memory operands after reload.
3150 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
3151 has failed when passed a hard register.
3152
4af46a32
AH
31532004-10-28 Aldy Hernandez <aldyh@redhat.com>
3154
3155 * function.c (assign_parm_setup_block): Handle parallels correctly.
3156
5921f276
KK
31572004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
3158
3159 * final.c (shorten_branches): Initialize flags structure.
3160
b66a64f1
NS
31612004-10-28 Nathan Sidwell <nathan@codesourcery.com>
3162
3163 * tree.c (int_cst_node, int_cst_hash_table): New variables.
3164 (init_ttree): Initialize them.
3165 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
3166 (build_int_cst_wide): Use hash table for oversized integers.
3167
fb002e78
NC
31682004-10-28 Nick Clifton <nickc@redhat.com>
3169
3170 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
3171 begin_label.
3172
0da34ce4
RH
31732004-10-27 Richard Henderson <rth@redhat.com>
3174
3175 PR middle-end/18163
3176 * expr.c (emit_group_load): Don't go force temporary for memory
3177 or concat source.
3178 (emit_group_store): Similarly.
3179
744e6f33
AP
31802004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
3181
3182 PR other/18186
3183 * common.opt (--param): Fix spelling of parameter.
3184
8e14584d
AP
31852004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
3186
3187 PR tree-opt/17529
3188 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
3189 Don't fold statement.
3190 <case ASM_EXPR>: Fold the statement.
3191
269da1e9
KH
31922004-10-28 Kazu Hirata <kazu@cs.umass.edu>
3193
3194 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
3195 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
3196
78466c0e
JM
31972004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
3198
3199 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
3200 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
3201 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
3202 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
3203
d78aa55c
JM
32042004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
3205
3206 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
3207 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
3208 punctuation outside quotes.
3209
9a3137c3
DM
32102004-10-27 David Mosberger <davidm@hpl.hp.com>
3211 James E Wilson <wilson@specifixinc.com>
a8f5224e
DM
3212
3213 PR target/13158
3214 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
3215 sibcall alloc instruction.
3216 (process_set): Handle sibcall alloc instruction.
3217
72747d40
GK
32182004-10-27 Geoffrey Keating <geoffk@apple.com>
3219
005c1a13
GK
3220 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
3221 SUBTARGET_ATTRIBUTE_TABLE.
3222 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
3223 (SUBTARGET_ATTRIBUTE_TABLE): Define.
3224 * config/darwin.c (darwin_handle_weak_import_attribute): New.
3225 (HAVE_DEAD_STRIP): Delete.
3226 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
3227 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
3228 Prototype.
3229
09afda70
GK
3230 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
3231
72747d40
GK
3232 * config/darwin.h (GTHREAD_USE_WEAK): Define.
3233
61b58001
BE
32342004-10-28 Ben Elliston <bje@au.ibm.com>
3235
3236 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
3237 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
3238 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
3239 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
3240 * tree-sra.c: Include "params.h".
3241 (decide_block_copy): Use new parameters.
3242 * doc/invoke.texi (Optimize Options): Document new SRA pass
3243 parameters sra-max-structure-size and sra-field-structure-ratio.
3244
72111a1f
NP
32452004-10-27 Nicolas Pitre <nico@cam.org>
3246
3247 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
3248
38b0dcb8
ZD
32492004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
3250
3251 PR tree-optimization/18048
3252 * fold-const.c (try_move_mult_to_index): New function.
3253 (fold): Use try_move_mult_to_index.
3254 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
3255 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
3256 an all-ones unsigned constant without extra bits.
3257 * tree.c (build_low_bits_mask): New function.
3258 * tree.h (build_low_bits_mask): Declare.
3259
89e73849
DE
32602004-10-27 David Edelsohn <edelsohn@gnu.org>
3261
3262 PR target/17956
3263 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
3264 final condition.
3265 (minsf3): Same.
3266 (maxdf3): Same.
3267 (mindf3): Same.
3268
0b371c72
KH
32692004-10-27 Kazu Hirata <kazu@cs.umass.edu>
3270
3271 * tree-cfg.c (thread_jumps): Speed up by reordering the two
3272 conditions for entering basic blocks into worklist.
3273
af88d4ec
KH
32742004-10-27 Kazu Hirata <kazu@cs.umass.edu>
3275
3276 * tree-cfg.c (thread_jumps): Speed up by pretending to have
3277 ENTRY_BLOCK_PTR in worklist.
3278
7f604986
KH
32792004-10-27 Kazu Hirata <kazu@cs.umass.edu>
3280
3281 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
3282 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
3283
52328bf6 32842004-10-27 Daniel Berlin <dberlin@dberlin.org>
40aea05c 3285
52328bf6 3286 Fix PR tree-optimization/17133
40aea05c 3287
52328bf6
DB
3288 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
3289 def kill operand.
3290
3291 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
3292 (get_v_must_def_result_ptr): Modify for new structure of
3293 v_must_defs array.
3294 (get_v_must_def_kill_ptr): New.
3295 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
3296 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
3297 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
3298 (op_iter_init): Initialize new mustu members.
3299 (op_iter_next_mustdef): New function.
3300 (op_iter_init_mustdef): Ditto.
3301
3302 * tree-flow.h (rewrite_def_def_chains): New function.
3303
3304 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
3305 (ssa_mark_def_sites): Ditto.
3306 (rewrite_stmt): Ditto.
3307 (ssa_rewrite_stmt): Ditto.
3308 (rewrite_blocks): Factor out from rewrite_into_ssa.
3309 (mark_def_block_sites): Ditto.
3310 (rewrite_def_def_chains): New function, just rewrites def-def
3311 chains without phi node insertion.
3312
3313 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
3314
40aea05c 3315 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
52328bf6
DB
3316
3317 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
3318 they include the rhs now.
3319
3320 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
40aea05c 3321 V_MUST_DEF_RESULT.
52328bf6
DB
3322
3323 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
3324 Update callers.
3325 (mark_really_necessary_kill_operand_phis): New function.
3326 (perform_tree_ssa_dce): Call it.
3327 (pass_dce): Add TODO_fix_def_def_chains.
3328 (pass_cd_dce): Ditto.
3329
3330 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
3331 well.
3332 (rewrite_mem_refs): Ditto.
3333
3334 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
3335 as well.
3336
3337 * tree-ssa-operands.c (allocate_v_may_def_optype):
3338 v_may_def_operand_type_t became v_def_use_operand_type_t.
3339 (allocate_v_must_def_optype) Ditto.
3340 (finalize_ssa_v_must_defs): Update for new operand type, as well
3341 as setting the use portion as well.
3342 (copy_virtual_operands): Copy the kill operand as well.
3343 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
40aea05c 3344 V_MUST_DEF_RESULT.
52328bf6
DB
3345
3346 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
40aea05c 3347 v_def_use_operand_type.
52328bf6
DB
3348 (v_must_def_optype_d): Use v_def_use_operand_type.
3349 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
3350 (V_MUST_DEF_KILL_*): New macros.
3351 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
3352 members.
3353 Rename existing must_i and num_v_must members to mustd_i and
40aea05c 3354 num_v_mustd.
52328bf6
DB
3355 (SSA_OP_VMUSTDEFKILL): New flag.
3356 (SSA_OP_VIRTUAL_KILLS): New flag.
3357 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
3358 (SSA_OP_ALL_KILLS): New flag.
3359 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
3360
3361 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
3362
3363 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
3364 became V_MUST_DEF_RESULT.
3365 (rename_variables_in_bb): Rename kill pointer as well.
3366
3367 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
3368 immediate uses.
3369
47a3c2dc
RS
33702004-10-27 Richard Sandiford <rsandifo@redhat.com>
3371
3372 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
3373 the block that needs it.
3374
12126025
ZW
33752004-10-27 Zack Weinberg <zack@codesourcery.com>
3376
3377 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
3378 ATTRIBUTE_UNUSED.
3379
b6ff777c
ZW
33802004-10-27 Zack Weinberg <zack@codesourcery.com>
3381
3382 * c-lex.c (cb_def_pragma): Clean up code for making location
3383 palatable to diagnostic.c.
3384
40b554a3
SB
33852004-10-27 Steven Bosscher <stevenb@suse.de>
3386
12525dd6 3387 PR tree-optimization/17757
40b554a3
SB
3388 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
3389 without any PHI arguments left. Make sure the argument that
3390 we're supposed to remove exists at all.
3391
18fbf599
PB
33922004-10-27 Paul Brook <paul@codesourcery.com>
3393
3394 * configure.ac: Don't test for [build] __cxa_atexit when building a
3395 cross compiler.
3396 * configure: Regenerate.
3397
57991eba
PB
33982004-10-27 Paul Brook <paul@codeosurcery.com>
3399
3400 * configure.ac: Use build_exeext not host_exeext when lookin for
3401 target tools.
3402 * configure: Regenerate.
3403
db09b5b6
AK
34042004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
3405
3406 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
3407
73f17ac8 34082004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
4db0315e
AK
3409 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
3410
3411 PR middle-end/14684
b6ff777c 3412 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
4db0315e
AK
3413 to match -fprofile-use.
3414
600e1f95
KH
34152004-10-27 Kazu Hirata <kazu@cs.umass.edu>
3416
3417 * config/rs6000/rs6000.c: Fix a comment typo.
3418
e2cb732f
ZW
34192004-10-27 Zack Weinberg <zack@codesourcery.com>
3420
3421 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
3422 counter.
3423
bab208b4
AS
34242004-10-27 Andreas Schwab <schwab@suse.de>
3425
3426 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
3427 unused.
3428 (default_stabs_asm_out_constructor): Likewise.
3429
1aeaea8d
GK
34302004-10-26 Geoffrey Keating <geoffk@apple.com>
3431
3432 * builtins.c (fold_builtin_unordered_cmp): Always bring both
3433 operands to the same type.
3434
0a3d71f5
JW
34352004-10-26 James E Wilson <wilson@specifixinc.com>
3436
3437 PR target/18010
3438 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
3439
93a27b7b
ZW
34402004-10-26 Zack Weinberg <zack@codesourcery.com>
3441
3442 * dbxout.c: Include obstack.h.
3443 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
3444 default definition.
3445 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
3446 Default-define here.
3447 (DBX_CONTIN_LENGTH): Move definition with others.
3448 (DBX_FINISH_STABS): New target macro.
3449 (current_sym_code, current_sym_value, current_sym_addr)
3450 (current_sym_nchars, CHARS, dbxout_continue)
3451 (print_int_cst_octal, print_octal, print_wide_int)
3452 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
3453 (stabstr_ob, stabstr_last_contin_point): New variables.
3454 (NUMBER_FMT_LOOP): New improper macro.
3455 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
3456 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
3457 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
3458 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
3459 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
3460 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
3461 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
3462 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
3463 New functions and/or proper function-like macros.
3464 (CONTIN): Use stabstr_continue, unconditionally.
3465 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
3466 (dbxout_init): Initialize stabstr_ob. Check
3467 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
3468 if it was used. Use the new interfaces.
3469 (dbxout_source_file): Remove file argument; always write to
3470 asm_out_file. Use the new interfaces.
3471 (dbxout_type_method_1): Remove second argument which is always
3472 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
3473 (dbxout_type_methods): Remove write-only variables. Use the
3474 new interfaces.
3475 (dbxout_parms): Refactor to remove code duplicated in each of
3476 several successive if-else-if blocks. Use the new interfaces.
3477 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
3478 (dbxout_source_line, dbxout_finish, dbxout_type_index)
3479 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
3480 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
3481 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
3482 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
3483 Use the new interfaces.
3484 * Makefile.in (dbxout.o): Update dependencies.
3485
3486 * defaults.h: Don't define ASM_STABD_OP.
3487 * output.h: Prototype new dbxout_* interfaces.
3488 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
3489 * varasm.c: Don't define ASM_STABS_OP.
3490 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
3491 Use the new dbxout.c interfaces. Call sorry if neither
3492 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
3493
3494 * xcoffout.h: Don't define ASM_STABS_OP.
3495 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
3496 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
3497 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
3498 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
3499 do { ... } while (0) idiom.
3500
3501 * config/alpha/alpha.c (num_source_filenames): Export.
3502 * config/alpha/alpha.h (num_source_filenames): Declare.
3503 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3504 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
3505 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3506 Always use .debugsym. Update commentary.
3507 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3508 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
3509 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
3510 Use new interfaces.
3511 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
3512 (macho_branch_islands): Use new interfaces.
3513
3514 * doc/tm.texi: Update.
3515
7ef7000b
AH
35162004-10-26 Aldy Hernandez <aldyh@redhat.com>
3517
3518 * expr.c (emit_group_store): Do not treat floats as BLKmode.
3519 (emit_group_load): Same.
3520
663174d3
JM
35212004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
3522
3523 * c-parse.in (datadef): Use pedwarn rather than error and warning
3524 for diagnostic in case of no declaration specifiers.
3525
c5e1045b
RS
35262004-10-26 Richard Sandiford <rsandifo@redhat.com>
3527
3528 PR bootstrap/15747
3529 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
3530 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
3531 can be used to work around this.
3532
de334ef6
AH
35332004-10-26 Aldy Hernandez <aldyh@redhat.com>
3534
3535 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
3536 doubles.
3537
b2c5a1e9
KH
35382004-10-26 Kazu Hirata <kazu@cs.umass.edu>
3539
3540 * stmt.c (expand_case): Update a comment.
3541
5100d114
KH
35422004-10-26 Kazu Hirata <kazu@cs.umass.edu>
3543
3544 * stmt.c (expand_case): Put an assertion that index_expr is
3545 never INTEGER_CST. Don't special case for constant
3546 index_expr.
3547
a3f164bd
AP
35482004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
3549
3550 PR 18162
3551 * c-parse.in (designator): Finish with a semi-colon.
3552
35532004-10-26 Fariborz Jahanian <fjahanian@apple.com>
bba11b5f 3554
12126025 3555 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
93a27b7b 3556 into rotlsi3.
bba11b5f 3557
5372d088
KH
35582004-10-26 Kazu Hirata <kazu@cs.umass.edu>
3559
3560 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
3561 a default case only.
3562
f82f556d
AH
35632004-10-26 Aldy Hernandez <aldyh@redhat.com>
3564
3565 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
3566 e500 doubles.
3567 (spe_build_register_parallel): New.
3568 (rs6000_spe_function_arg): Handle e500 doubles.
3569 (function_arg): Same.
3570 (spe_func_has_64bit_regs_p): Same.
3571 (rs6000_function_value): Same.
3572 (rs6000_libcall_value): Same.
3573 (legitimate_lo_sum_address_p): Return false for e500 doubles.
3574
3575 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
3576 doubles.
3577 (DATA_ALIGNMENT): Same.
3578 (CANNOT_CHANGE_MODE_CLASS): Same.
3579
782fa603
AH
35802004-10-26 Aldy Hernandez <aldyh@redhat.com>
3581
93a27b7b
ZW
3582 * expr.c (emit_group_load): Handle floats.
3583 (emit_group_store): Same.
782fa603 3584
51e63e60
NS
35852004-10-26 Nathan Sidwell <nathan@codesourcery.com>
3586
3587 * c-lex.c (get_nonpadding_token): Remove.
3588 (c_lex_with_flags): Push timevar and eat padding here. Improve
3589 stray token diagnostic.
3590 (lex_string): Replace logic with switch statement, eat padding
3591 token here.
3592
a56cd1a9
GK
35932004-10-26 Geoffrey Keating <geoffk@apple.com>
3594
3595 PR 18149
3596 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
3597
f1a66265
GK
35982004-10-25 Geoffrey Keating <geoffk@apple.com>
3599
3600 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
3601 to 'non-weak'.
3602 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
3603 (ASM_MAKE_LABEL_LINKONCE): Delete.
3604 (ASM_WEAKEN_DECL): New.
3605 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
3606 (ASM_DECLARE_FUNCTION_NAME): Likewise.
3607 (TEXT_SECTION_ASM_OP): Add a tab.
3608 (DATA_SECTION_ASM_OP): Likewise.
3609 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
3610 data_section on every section change.
3611 (EXTRA_SECTIONS): Add a bunch of new extra sections.
3612 (EXTRA_SECTION_FUNCTIONS): Likewise.
3613 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
3614 (JCR_SECTION_NAME): Define.
3615 (TARGET_SECTION_TYPE_FLAGS): Don't define.
3616 * config/darwin.c (darwin_encode_section_info): A symbol is defined
3617 in this file if it is not weak.
3618 (textcoal_section): Delete.
3619 (datacoal_section): Delete.
3620 (darwin_make_decl_one_only): Delete.
3621 (machopic_select_section): Handle functions.
3622 (darwin_asm_named_section): Add a tab.
3623 (darwin_section_type_flags): Delete.
3624 (darwin_unique_section): Delete contents.
3625 (darwin_emit_unwind_label): Add a tab. Make decls weak if
3626 DECL_WEAK is set.
3627 * config/darwin-protos.h (darwin_section_type_flags): Delete.
3628 (darwin_make_decl_one_only): Delete.
3629 (text_coal_section): New.
3630 (text_unlikely_section): New.
3631 (text_unlikely_coal_section): New.
3632 (const_coal_section): New.
3633 (data_coal_section): New.
3634 (const_data_coal_section): New.
3635 * varasm.c (function_section): Honour
3636 USE_SELECT_SECTION_FOR_FUNCTIONS.
3637 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
3638 TARGET_USES_WEAK_UNWIND_INFO is in effect.
3639 * dbxout.c (dbxout_source_file): Don't change sections while
3640 a function is being output.
3641
3a3589b4
ZL
36422004-10-25 David Ayers <d.ayers@inode.at>
3643
3644 * c-common.h: Remove RID_ID.
3645 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
3646 (typespec_reserved_attr): Add rule for TYPENAME
3647 non_empty_protocolrefs.
3648 (yylexname): Remove special handling of RID_ID.
3649
53071270
JW
36502004-10-25 James E Wilson <wilson@specifixinc.com>
3651
3652 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
3653
535dd320
JM
36542004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
3655
3656 PR c/16667
3657 * c-parse.in (array_designator): New.
3658 (designator): Use it.
3659 (initelt): Only permit array_designator without '=', not ".foo".
3660
85c33455
KZ
36612004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
3662 * gcc/Makefile.in: removed ggc for cgraphunit.
3663 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
3664 * gcc/cgraph.h: removed static var analysis data structures and calls.
93a27b7b
ZW
3665 * gcc/cgraphunit.c:
3666 cgraph_mark_local_and_external_functions:changed name to
85c33455
KZ
3667 cgraph_mark_local_functions
3668 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
3669 cgraph_reset_static_var_maps,get_global_static_vars_info,
3670 get_global_statics_not_read,get_global_statics_not_written,searchc,
3671 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
3672 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
3673 scan_for_static_refs,cgraph_characterize_statics_local,
3674 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
3675 removed.
3676 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
3677 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
93a27b7b
ZW
3678 analysis
3679 * gcc/tree-flow.h static_vars_info: removed
85c33455
KZ
3680 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
3681 removed calls to static vars analysis.
3682 get_call_expr_operands: removed callee variable.
3683
218d1537
KH
36842004-10-25 Kazu Hirata <kazu@cs.umass.edu>
3685
3686 * cfg.c (unchecked_make_edge, redirect_edge_succ,
3687 redirect_edge_pred): Use VEC_safe_push instead of
3688 VEC_safe_insert.
3689 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3690
5132abc2
KH
36912004-10-25 Kazu Hirata <kazu@cs.umass.edu>
3692
3693 * cfgloopmanip.c (loopify): Take two more arguments true_edge
3694 and false_edge.
3695 * cfgloop.h: Adjust the corresponding prototype.
3696 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
3697 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
3698
3401a17f
JJ
36992004-10-25 Jakub Jelinek <jakub@redhat.com>
3700
3701 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
3702 DECL_INCOMING_RTL is NULL.
3703
30a80709
SB
37042004-10-25 Steven Bosscher <stevenb@suse.de>
3705
3706 * timevar.def (TV_FIND_REFERENCED_VARS): New.
3707 * tree-dfa.c (pass_referenced_var): Use it.
3708
08a69267
RS
37092004-10-25 Roger Sayle <roger@eyesopen.com>
3710 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3711
3712 * cse.c: Change encoding of quantity numbers to avoid undefined
3713 pointer arithmetic on qty_table.
3714 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
3715 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
3716 (new_basic_block): Assign "real" quantity numbers from zero.
3717 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
3718 REG_QTY to its unique negative value.
3719 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
3720 (cse_main): Don't include max_reg when determining max_qty.
3721 (cse_basic_block): Avoid subtracting a large offset from qty_table,
3722 which causes undefined C99 behaviour. Only allocate needed memory.
3723
5cfffc4e
KH
37242004-10-25 Kazu Hirata <kazu@cs.umass.edu>
3725
3726 * stmt.c (expand_case): Remove an obsolete comment.
3727
4c7c0c70
AP
37282004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
3729
3730 PR middle-end/17407
3731 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
3732 layout_type as it is already done by build_array_type.
3733 * tree.c (build_array_type): Layout the type even
3734
4318d4a1
AO
37352004-10-25 Alexandre Oliva <aoliva@redhat.com>
3736
3737 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
3738
a6cb87fb
AO
37392004-10-25 Alexandre Oliva <aoliva@redhat.com>
3740
3741 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
3742 with wider-than-32-bit HOST_WIDE_INTs.
3743
4de3d011
DB
37442004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
3745
93a27b7b 3746 * config/mips/mips.c(mips_output_filename): Remove unused
4de3d011
DB
3747 array ltext_label_name
3748
c8529ffa
GK
37492004-10-24 Geoffrey Keating <geoffk@geoffk.org>
3750
3751 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
3752
a304f64e
BE
37532004-10-25 Ben Elliston <bje@au.ibm.com>
3754
3755 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
3756
711a89d6
AP
37572004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
3758
3759 * predict.c (predict_loops): Call scev_finalize instead of
3760 scev_reset.
3761
92453b21
KH
37622004-10-24 Kazu Hirata <kazu@cs.umass.edu>
3763
3764 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
3765 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
3766 config/sh/ushmedia.h, config/sparc/elf.h,
3767 config/sparc/sp64-elf.h: Update copyright.
3768
4e0148df
KH
37692004-10-24 Kazu Hirata <kazu@cs.umass.edu>
3770
3771 * stmt.c (expand_case): Handle the default label outside of
3772 the for loop. Remove code to handle a missing default label.
3773
d0ed471f
KH
37742004-10-23 Kazu Hirata <kazu@cs.umass.edu>
3775
3776 * dbxout.c (dbxout_function_decl): Don't use
3777 DBX_OUTPUT_FUNCTION_END.
3778 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
3779 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
3780
66174cd0
AP
37812004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
3782
3783 PR middle-end/17967
3784 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
3785
84dd478f
DB
37862004-10-23 Daniel Berlin <dberlin@dberlin.org>
3787
3788 * tree-ssa-dom.c (record_equality): Use loop depth to determine
3789 which way to record the equality as well.
3790 (loop_depth_of_name): New function.
3791
91804752
EB
37922004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3793
3794 PR middle-end/17793
3795 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
3796 through the operand if it is a useless type conversion.
3797
865851d0
BE
37982004-10-23 Ben Elliston <bje@au.ibm.com>
3799
3800 * cfg.c (remove_edge): Use VEC_unordered_remove.
3801 (redirect_edge_succ): Likewise.
3802 (redirect_edge_pred): Likewise.
3803 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3804
eb846654
KH
38052004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3806
3807 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
3808 beyond its end.
3809
94ff898d
EC
38102004-10-22 Eric Christopher <echristo@redhat.com>
3811
93a27b7b 3812 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
94ff898d
EC
3813 saves.
3814
7a2f7870
AH
38152004-10-22 Aldy Hernandez <aldyh@redhat.com>
3816
3817 * config/rs6000/spe.md (spe_extendsfdf2): New.
3818 (movdf_e500_double): New.
3819 (spe_truncdfsf2): New.
3820 (spe_absdf2): New.
3821 (spe_nabsdf2): New.
3822 (spe_negdf2): New.
3823 (sub_adddf3): New.
3824 (spe_subdf3): New.
3825 (spe_muldf3): New.
3826 (spe_floatsidf2): New.
3827 (spe_floatunssidf2): New.
3828 (fix_truncdfsi2): New.
3829 (spe_fixuns_truncdfsi2): New.
3830
3831 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
3832 (fpr_truncdfsf2): New.
3833 (negdf2): Change to expander.
3834 (fpr_negdf2): New.
3835 (fpr_nabsdf2): Name pattern.
3836 (adddf3): Change to expander.
3837 (fpr_adddf3): Nem.
3838 (subdf3): Change to expander.
3839 (fpr_subdf3): New.
3840 (muldf3): Change to expander.
3841 (fpr_muldf3): New.
3842 (divdf3): Change to expander.
3843 (fpr_divdf3): New.
3844 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
3845 (cmpdf): Allow for TARGET_E500_DOUBLE.
3846
3a6210c5
KH
38472004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3848
3849 * c-semantics.c (re_push_stmt_list): Remove.
3850 * c-common.h: Remove the corresponding prototype.
3851
11901f5d
KH
38522004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3853
3854 * stmt.c (asm_op_is_mem_input): Remove.
3855 * tree.h: Remove the corresponding prototype.
3856
82338042
KH
38572004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3858
3859 * tree-gimple.c (is_gimple_constructor_elt): Remove.
3860 * tree-gimple.h: Remove the corresponding prototype.
3861
4fe8591b
KH
38622004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3863
3864 * varasm.c (get_pool_mode_for_function, get_pool_offset):
3865 Remove.
3866 * rtl.h: Remove the corresponding prototypes.
3867
385efa80
KH
38682004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3869
3870 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
3871 edge information when we commit ourselves to threading a
3872 particular jump.
3873
afc3f396
KH
38742004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3875
3876 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
3877 into worklist instead of their indexes.
3878
471854f8
KH
38792004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3880
3881 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
3882 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
3883 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
3884 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
3885 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
3886 tree-scalar-evolution.c, tree-ssa-dom.c,
3887 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3888 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
3889 tree-vectorizer.c, vec.h: Fix comment formatting.
3890
279b5b3c
KH
38912004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3892
3893 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
3894 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
3895
8638a0f8
KH
38962004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3897
3898 * config/ptx4.h, config/mcore/mcore-pe.h,
3899 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
3900
cfca21cb
PB
39012004-10-22 Peter Barada <peter@the-baradas.com>
3902
3903 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
3904 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
3905 renaming of non-live registers in interrupt functions.
3906 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
3907
26630a99
ZD
39082004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
3909
3910 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
3911 Use integer for loop counter.
3912 (num_ending_zeros): New function.
3913 (number_of_iterations_cond): Use num_ending_zeros.
3914
4d4cbc0e
AH
39152004-10-21 Aldy Hernandez <aldyh@redhat.com>
3916
3917 * config.gcc: Add support for --enable-e500_double.
3918
3919 * config/rs6000/e500-double.h: New file.
3920
3921 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
3922 TARGET_E500_DOUBLE.
3923
3924 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
3925 TARGET_E500_DOUBLE.
3926
3927 * config/rs6000/linuxspe.h: Same.
3928
3929 * doc/invoke.texi (Option Summary): Document new options for
3930 mfloat-gprs.
3931 (RS/6000 and PowerPC Options): Same.
3932
3933 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
3934 function.
3935 (rs6000_override_options): Use it. Use
3936 SUB3TARGET_OVERRIDE_OPTIONS.
3937 Add 8548 to processor_target_table.
3938 (rs6000_legitimate_address): Handle e500 doubles.
3939 (rs6000_legitimize_address): Same.
3940 (rs6000_legitimize_reload_address): Same.
3941 (rs6000_hard_regno_nregs): Same.
3942 (spe_func_has_64bit_regs_p): Same.
3943 (emit_frame_save): Same.
3944 (gen_frame_mem_offset): Same.
3945 (rs6000_dwarf_register_span): Same.
3946 (rs6000_generate_compare): Same.
3947 (easy_fp_constant): Same.
3948 (legitimate_offset_address_p): Same.
3949
3950 * config/rs6000/spe.md: (cmdfeq_gpr): New.
3951 (tstdfeq_gpr): New.
3952 (cmpdfgt_gpr): New.
3953 (tstdfgt_gpr): New.
3954 (tstdfgt_gpr): New.
3955 (cmpdflt_gpr): New.
3956 (tstdflt_gpr): New.
3957 Add new constants.
3958
a4b1eb87
GB
39592004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3960
3961 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
3962
ac746f1d
ZW
39632004-10-21 Zack Weinberg <zack@codesourcery.com>
3964
3965 * dbxout.c: Remove unnecessary #undefs.
3966 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
3967 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
3968 definition into use sites.
3969 (cwd): Make local to dbxout_init.
3970 (dbxout_init): Restructure cwd-using logic for clarity. Use
3971 IS_DIR_SEPARATOR.
3972 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
3973 STABS_GCC_MARKER folded in here.
3974 * system.h: Poison now-unused macros.
3975 * doc/tm.texi: Remove documentation of now-unused macros.
3976
3e6da82b
AP
39772004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
3978
3979 PR c/17538
3980 * c-opts.c (push_command_line_include): Use the current file
3981 name instead of the main one.
3982
943db347
AP
39832004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
3984
3985 PR objc/17923
3986 * tree.c (staticp): A CONST_DECL has static storage if either
3987 TREE_STATIC or DECL_EXTERNAL is set.
3988 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
3989 have null names.
3990
5bee567d
KH
39912004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3992
3993 * expr.c (store_expr): Remove dont_store_target.
3994
08445125
KH
39952004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3996
3997 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
3998
072269d8
KH
39992004-10-21 Kazu Hirata <kazu@cs.umass.edu>
4000
4001 * tree-cfg.c (thread_jumps): Move a part of it to ...
4002 (thread_jumps_from_bb): ... here.
4003
0dda4eea
DE
40042004-10-21 David Edelsohn <edelsohn@gnu.org>
4005
4006 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
4007 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
4008
6f4fd16d
KH
40092004-10-21 Kazu Hirata <kazu@cs.umass.edu>
4010
4011 * expr.c (store_expr): Clean up by renaming want_value to
4012 call_param_p.
4013
cc6cea1b
KK
40142004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
4015
4016 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
4017 fixup pc here.
4018
28526e20
AH
40192004-10-21 Aldy Hernandez <aldyh@redhat.com>
4020
4021 PR 18004.
4022 * expmed.c (store_bit_field): Pass original 'value' before
4023 recursing.
4024
6883a666
NP
40252004-10-21 Nicolas Pitre <nico@cam.org>
4026
4027 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
4028 * config/arm/ieee754-df.S: Ditto.
4029
3e487b21
ZW
40302004-10-20 Zack Weinberg <zack@codesourcery.com>
4031
4032 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
4033 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
4034 Default to 0.
4035 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
4036 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
4037 an internal label and an N_SLINE .stabn whose value is the
4038 difference between that label and the function entry label.
4039 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
4040 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
4041 label and an N_SO stab with an empty string referring to it.
4042 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
4043 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
4044 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
4045 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
4046 macro is never defined.
4047 * sdbout.c (sdbout_source_line_counter): Delete.
4048 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
4049 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
4050 only two arguments.
4051 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
4052
4053 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
4054 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
4055 definitions (identical to default).
4056 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
4057 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
4058 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
4059 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
4060 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
4061 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
4062 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
4063 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
4064 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
4065 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
4066 (sym_lineno): Delete.
4067 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
4068 now-unused variable.
4069 (alpha_output_lineno): Delete.
4070 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
4071 * config/mips/mips.c (mips_output_filename): Don't use
4072 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
4073 (mips_output_lineno): Delete.
4074 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
4075 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
4076 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
4077 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
4078 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
4079 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
4080 * config/mmix/mmix.h: Likewise.
4081 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
4082 * config/mmix/mmix-protos.h: Don't prototype it.
4083 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
4084 no need to #undef ASM_OUTPUT_SOURCE_LINE.
4085 * config/arm/aout.h: Remove RISCiX-specific definition of
4086 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
4087 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
4088 ASM_OUTPUT_SOURCE_LINE.
70a8019b 4089 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
3e487b21
ZW
4090 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
4091 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
4092
4093 * doc/tm.texi: Update.
4094
310ff872
RH
40952004-10-20 Richard Henderson <rth@redhat.com>
4096
4097 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
4098
f644cebf
KC
40992004-10-20 Kelley Cook <kcook@gcc.gnu.org>
4100
4101 * configure.ac: Revert my previous patch.
4102 * configure: Regenerate.
4103
872a65b5
BE
41042004-10-20 Ben Elliston <bje@au.ibm.com>
4105
4106 * config/rs6000/rs6000.c
4107 (rs6000_va_start): Use build_va_arg_indirect_ref.
4108 (rs6000_gimplify_va_arg): Likewise.
4109
a03ea89b
BM
41102004-10-20 Bryce McKinlay <mckinlay@redhat.com>
4111
4112 PR java/15575
4113 * configure.ac: Declare AM_LANGINFO_CODESET.
4114 * aclocal.m4: Define AM_LANGINFO_CODESET.
4115 * configure, config.in: Rebuilt.
4116
436d948e
KH
41172004-10-20 Kazu Hirata <kazu@cs.umass.edu>
4118
4119 * expr.c (store_expr): Remove code that is run when
4120 want_value & 1 is nonzero.
4121
b235bd44
MM
41222004-10-20 Mark Mitchell <mark@codesourcery.com>
4123
4124 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
4125 from function pointer to void *.
4126
d0edbeec
KK
41272004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
4128
4129 PR target/18032
4130 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
4131 the frame pointer adjustment when exception handling is enabled.
4132
34bc6352
KH
41332004-10-20 Kazu Hirata <kazu@cs.umass.edu>
4134
4135 * stor-layout.c: Fix a comment typo.
4136
f45bdcd0
KH
41372004-10-20 Kazu Hirata <kazu@cs.umass.edu>
4138
4139 * expr.c (store_field): Remove two arguments value_mode and
4140 unsignedp.
4141 (expand_assignment, store_constructor_field,
4142 expand_expr_real_1): Adjust calls to store_field.
4143
41442004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4145
4146 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
4147
4148 PR target/17317
4149 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
4150 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
4151 base and index register for loads.
4152
4f8102db
RR
4153 * config/arc/t-arc: Fix multilib handling.
4154
b55d5746
HPN
41552004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
4156
9524880c
HPN
4157 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
4158 don't inspect BLOCK_FOR_INSN for barriers.
4159 * emit-rtl.c (emit_barrier_before): Revert last change.
4160 (emit_barrier_after, emit_barrier): Ditto.
4161
b55d5746
HPN
4162 * doc/extend.texi (Extended Asm): Warn and provide example
4163 solution for using a call-clobbered asm register.
4164 (Local Reg Vars): Similar. Cross-reference example.
4165
d717e500
AP
41662004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
4167
4168 * tree-cfg.c (group_case_labels): Look at the second to last
4169 case statement for combing with the default case.
4170
e4ca3dc3
RH
41712004-10-19 Richard Hendeson <rth@redhat.com>
4172
4173 PR 17962
4174 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
4175
953312a8
RH
41762004-10-19 Richard Hendeson <rth@redhat.com>
4177
4178 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
4179 succeeds, only expand the result.
4180
a8afd3ac
RH
41812004-10-19 Richard Hendeson <rth@redhat.com>
4182
4183 PR middle-end/17885
4184 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
4185 of INDIRECT_REF.
4186
e61d7b78
KH
41872004-10-19 Kazu Hirata <kazu@cs.umass.edu>
4188
4189 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
4190 loop with goto.
4191
e836a5a2
KH
41922004-10-19 Kazu Hirata <kazu@cs.umass.edu>
4193
4194 * expr.c (expand_assignment): Remove the last argument.
4195 Change the return type to void.
4196 * expr.h: Update the prototype of expand_assignment.
4197 * function.c (assign_parm_setup_reg): Update a call to
4198 expand_assignment.
4199 * stmt.c (expand_asm_expr): Likewise.
4200
7f8adc4e
KH
42012004-10-19 Kazu Hirata <kazu@cs.umass.edu>
4202
4203 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
4204 unnecessary assignments to temp. Return const0_rtx.
4205
f94cef0a
KK
42062004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
4207
4208 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
4209
4c67db14
KC
42102004-10-18 Kelley Cook <kcook@gcc.gnu.org>
4211
4212 * configure.ac (powerpc-*-darwin*): Require assembler to support
4213 .machine directive.
4214 * configure: Regenerate.
4215
00268eb3
KH
42162004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4217
4218 * reload1.c (ior_hard_reg_set): Remove.
4219 (finish_spills): Use IOR_HARD_REG_SET instead of
4220 ior_hard_reg_set.
4221
26ebd00d
KH
42222004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4223
4224 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
4225 the currently visited word to right.
4226
6e7a355c
EB
42272004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4228
4229 PR middle-end/18045
4230 * expmed.c (expand_smod_pow2): Handle modes whose size
4231 is greater than that of HOST_WIDE_INT.
4232
d4de6966
ZL
42332004-10-18 Ziemowit Laski <zlaski@apple.com>
4234
4235 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
4236
a494ed43 42372004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3e487b21 4238 Roger Sayle <roger@eyesopen.com>
a494ed43
EB
4239
4240 PR middle-end/17813
4241 * dojump.c (discard_pending_stack_adjust): New function.
4242 (clear_pending_stack_adjust): Call it.
4243 * expr.h (discard_pending_stack_adjust): Declare it.
4244 * explow.c (emit_stack_save): Emit pending stack adjustments
4245 before saving the stack pointer.
4246 (emit_stack_restore): Discard pending stack adjustments before
4247 restoring the stack pointer.
4248
a2d36602
RH
42492004-10-18 Richard Henderson <rth@redhat.com>
4250
3e487b21 4251 * c-common.c (handle_mode_attribute): Allow scalar->vector
a2d36602
RH
4252 type changes yet.
4253
df9af2bb
KH
42542004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4255
4256 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
4257 value to expand_assignment.
4258
ab51c2f0
KH
42592004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4260
4261 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
4262 thread_jumps.
4263 (thread_jumps): Iterate until no new forwarder block arises.
4264
78b6731d
KH
42652004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4266
4267 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
4268 (thread_jumps): Use forwardable as cache of
4269 tree_forwarder_block_p throughout the function.
4270
320b0f6a
AK
42712004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
4272
4273 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
4274
77568960
AP
42752004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
4276
4277 PR middle-end/15014
4278 PR middle-end/16973
4279 * tree-cfg.c (remove_bb): If we have a label expression in the
4280 basic block and the label we have taken the address, move the
4281 label expression to the basic block which is previous in the
4282 linked list.
4283 (tree_verify_flow_info): Fix printing out the label name of the
4284 problematic label expression.
4285
b757b9f8
PH
42862004-10-18 Pat Haugen <pthaugen@us.ibm.com>
4287
b1c79b46 4288 PR rtl-optimization/18002
b757b9f8
PH
4289 * simplify-rtx.c (mode_signbit_p): Externalize function...
4290 * rtl.h (mode_signbit_p): ... to here.
4291 * combine.c (simplify_shift_const): Recognize PLUS signbit as
4292 canonical form of XOR signbit and move to outer op.
4293
1a1804c2
DN
42942004-10-18 Diego Novillo <dnovillo@redhat.com>
4295
4296 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
4297 Update all callers.
4298 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
4299 Don't call fold_stmt more than once, use bsi_replace.
4300
bca9e17b
DN
43012004-10-18 Diego Novillo <dnovillo@redhat.com>
4302
4303 PR tree-optimization/17656
4304 * tree-ssa.c (replace_immediate_uses): When replacing a
4305 constant, if the call to fold_stmt produced a different
4306 statement, get an appropriate statement pointer by scanning
4307 STMT's basic block.
4308
b4992641
RH
43092004-10-18 Richard Henderson <rth@redhat.com>
4310
4311 * pointer-set.c (hash1): Don't use libm functions in fallback case.
4312
f072a5c8 43132004-10-18 H.J. Lu <hongjiu.lu@intel.com>
3b415018
L
4314
4315 PR bootstrap/17684
4316 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
4317 (stage1-start): Remove and copy libunwind.a and
4318 libunwind*$(SHLIB_EXT) instead of libunwind*.
4319 (stage2-start): Likewise.
4320 (stage3-start): Likewise.
4321 (stage4-start): Likewise.
4322 (stageprofile-start): Likewise.
4323 (stagefeedback-start): Likewise.
4324
4325 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
4326 the shared library to be created and don't remove the existing
4327 shared library.
4328 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
4329 * config/i386/t-nwld (SHLIB_LINK): Likewise.
4330 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
4331 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
4332 * config/sh/t-linux (SHLIB_LINK): Likewise.
4333 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
4334 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
4335 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
4336 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
4337
4338 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
4339 files.
4340
a2041967
KH
43412004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4342
4343 * basic-block.h (reg_set_iterator): New.
4344 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
4345 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
4346 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
4347 * caller-save.c (save_call_clobbered_regs): Adjust to the new
4348 style.
4349 * cfgcleanup.c (thread_jump): Likewise.
4350 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
4351 * conflict.c (conflict_graph_compute): Likewise.
4352 * flow.c (verify_local_live_at_start, update_life_info,
4353 initialize_uninitialized_subregs, propagate_one_insn,
4354 init_propagate_block_info, free_propagate_block_info,
4355 propagate_block, dump_regset): Likewise.
4356 * global.c (global_conflicts): Likewise.
4357 * graph.c (start_bb): Likewise.
4358 * local-alloc.c (update_equiv_regs): Likewise.
4359 * loop.c (load_mems): Likewise.
4360 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
4361 find_reg, finish_spills): Likewise.
4362 * resource.c (mark_target_live_regs): Likewise.
4363 * sched-deps.c (sched_analyze_insn): Likewise.
4364 * sched-rgn.c (sched-rgn.c): Likewise.
4365 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4366
ba3ed8d8
JJ
43672004-10-18 Jakub Jelinek <jakub@redhat.com>
4368
4369 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
4370 operand 1 instead of 2
4371
2cd0e9f4
KH
43722004-10-18 Kazu Hirata <kazu@cs.umass.edu>
4373
4374 * loop-unroll.c: Fix comment typos.
4375
f37a4f14
RE
43762004-10-18 Revital Eres <eres@il.ibm.com>
4377
4378 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
4379 * loop-unroll.c: Include varray.h.
4380 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
4381 opt_info and expand it to support variable expansion.
4382 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
4383 expand it to support variable expansion.
4384 (pt_info_start_duplication): Rename si_info_start_duplication.
4385 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
4386 to the variable expansion optimization.
4387 (free_opt_info): Rename free_si_info.
4388 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
4389 expand_var_during_unrolling, insert_var_expansion_initialization,
4390 combine_var_copies_in_loop_exit, release_var_copies,
4391 get_expansion): New functions.
4392 (peel_loop_completely, unroll_loop_constant_iterations,
4393 unroll_loop_runtime_iterations, peel_loop_simple,
4394 unroll_loop_stupid): Change uses of struct si_info
4395 to struct opt_info
4396 and add uses of fvariable-expansion-in-unroller flag.
4397 * params.def: Add parameter to restrict the number of expansions.
4398 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
4399 the number of expansions.
3e487b21 4400 * common.opt: (fvariable-expansion-in-unroller): New flag.
f37a4f14
RE
4401 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
4402
535306d0
DS
44032004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
4404
4405 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
4406 __GXX_MERGED_TYPEINFO_NAMES to 0.
4407
0ca541aa
HPN
44082004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
4409
4410 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
4411 handle barriers in a bb by checking that it points to a NULL bb.
4412 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
4413 (emit_barrier_after, emit_barrier): Ditto.
4414
7dcb0442
JM
44152004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
4416
4417 * doc/extend.texi (Attribute Syntax): Clarify details of
4418 attributes on parameters.
4419
e9472263
ZD
44202004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
4421
4422 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
4423 loop.
4424
7c672dfc
AP
44252004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4426
4427 Revert:
4428 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4429
3e487b21
ZW
4430 * c-typeck.c (default_function_array_conversion): Always create
4431 &a[0] for array types.
4432 (build_unary_op): Do not fold &a[x] into a + x.
7c672dfc 4433
ac8245fa
AP
44342004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4435
4436 PR middle-end/17925
4437 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
4438 block if there is a goto with a locus.
4439
caec2cfc
KH
44402004-10-17 Kazu Hirata <kazu@cs.umass.edu>
4441
4442 * config/elfos.h, config/gofast.h, config/interix.h,
4443 config/netbsd.h, config/svr3.h, config/vxworks.h,
4444 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
4445 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
4446 config/alpha/netbsd.h, config/arm/arm-modes.def,
4447 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
4448 config/cris/aout.h, config/frv/frv-modes.def,
4449 config/i386/beos-elf.h, config/i386/gas.h,
4450 config/i386/i386-coff.h, config/i386/i386-modes.def,
4451 config/i386/linux.h, config/i386/linux64.h,
4452 config/i386/mingw32.h, config/i386/netbsd-elf.h,
4453 config/i386/netbsd64.h, config/i386/sco5.h,
4454 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
4455 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
4456 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
4457 config/mips/mips-modes.def, config/mips/sdb.h,
4458 config/mips/vr.h, config/mips/vxworks.h,
4459 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
4460 config/pa/pa32-linux.h, config/rs6000/40x.md,
4461 config/rs6000/7450.md, config/rs6000/8540.md,
4462 config/rs6000/linuxspe.h, config/rs6000/power4.md,
4463 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
4464 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
4465 config/s390/s390-modes.def, config/sh/elf.h,
4466 config/sh/sh-modes.def, config/sh/sh64.h,
4467 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
4468 config/stormy16/stormy16.md, config/v850/v850-protos.h,
4469 config/vax/vax.md: Update copyright.
4470
6c62412f
KH
44712004-10-17 Kazu Hirata <kazu@cs.umass.edu>
4472
4473 * expr.c (expand_expr_real_1): Remove an obsolete comment.
4474
a2a877e2
AP
44752004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4476
4477 * c-typeck.c (default_function_array_conversion): Always create
4478 &a[0] for array types.
4479 (build_unary_op): Do not fold &a[x] into a + x.
4480
bc54ef99
JJ
44812004-10-17 Jakub Jelinek <jakub@redhat.com>
4482
4483 * pointer-set.c (hash1): Use integer part of 2^64 / phi
4484 instead 2^32 / phi if long is 64-bit.
4485
da5b307a
JM
44862004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
4487
13ceb6d1 4488 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
da5b307a
JM
4489 RID_PTRVALUE.
4490 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
4491 declarations.
4492 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
4493 __ptrextent__, __ptrvalue and __ptrvalue__.
4494 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
4495 entries.
4496
4fe52ce9
DJ
44972004-10-16 Dale Johannesen <dalej@apple.com>
4498
4499 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
4500
fce22de5
ZD
45012004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
4502
4503 PR tree-optimization/17766
4504 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
4505 (dom_info_available_p): Declare.
4506 * cfghooks.c (split_block, make_forwarder_block): Use
4507 dom_info_available_p.
4508 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
4509 free_dominance_info, verify_dominators): Ditto.
4510 (dom_info_available_p): New function.
4511 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
4512 (thread_jumps): Use dom_info_available_p.
4513 * tree-complex.c (expand_complex_div_wide): Ditto.
4514 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
4515
80cad5fa
ZD
45162004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
4517
4518 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
4519 (find_best_candidate): Take also important candidates into account.
4520 (find_optimal_iv_set): Initialize important_candidates bitmap.
4521
f59b0bd4
ZD
45222004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
4523
4524 PR tree-optimization/17560
4525 * predict.c (tree_estimate_probability): Mark irreducible
4526 loops.
4527
71068e31
ZD
45282004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
4529
4530 PR rtl-optimization/17723
4531 * cfgcleanup.c (merge_memattrs): Handle case when
4532 MEM_SIZE == NULL_RTX.
4533
29c431a1
AP
45342004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
4535
4536 * toplev.c (dump_file_name): Change type to be const.
4537
dee3cda5
JM
45382004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
4539
4540 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
4541 non_lvalue to stop something being a null pointer constant.
4542
b2df7d08
AH
45432004-10-15 Aldy Hernandez <aldyh@redhat.com>
4544
4545 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
4546 available for TARGET_FPRS.
4547 (FUNCTION_VALUE_REGNO_P): Same.
4548
7088c6e4
GK
45492004-10-15 Geoffrey Keating <geoffk@apple.com>
4550
4551 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4552 -maltivec in same style as other ISA options.
4553
eff41b9f
JG
45542004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
4555
4556 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
4557 definition.
4558
f30278e8
KH
45592004-10-15 Kazu Hirata <kazu@cs.umass.edu>
4560
4561 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
4562 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
4563 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
4564 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
4565 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
4566 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
4567 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
4568 predict.def, predict.h, protoize.c, reload.h, resource.h,
4569 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
4570 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
4571 unwind-sjlj.c, value-prof.h: Update copyright.
4572
ed8b7558
KH
45732004-10-15 Kazu Hirata <kazu@cs.umass.edu>
4574
4575 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
4576
e26ce7ed
DN
45772004-10-15 Diego Novillo <dnovillo@redhat.com>
4578
4579 * tree-optimize.c (execute_one_pass): Stop timer right after
4580 executing the pass.
4581
53e782e5
AP
45822004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
4583
4584 Revert:
4585 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
4586 PR middle-end/17967
4587 Revert:
4588 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
4589 (remove_useless_stmts_1): Fold trees we know how to fold.
4590
d2ab3e37
DE
45912004-10-14 David Edelsohn <edelsohn@gnu.org>
4592
4593 * configure.ac: Add .machine power4 directive when testing for
4594 mfcr field.
4595 * configure: Regenerate.
4596
9d948a40
GK
45972004-10-14 Geoffrey Keating <geoffk@apple.com>
4598
4599 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
4600
eaddbc33
AP
46012004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
4602
4603 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
4604 always.
4605
a6645c18
DJ
46062004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
4607
4608 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
4609 for 'f' if !TARGET_FPRS.
4610
0ba6c56d
RH
46112004-10-14 Richard Henderson <rth@redhat.com>
4612
4613 PR debug/14492
4614 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
4615
559f2da5
RH
46162004-10-14 Richard Henderson <rth@redhat.com>
4617
4618 PR c/17023
4619 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
4620 as error_mark_node.
4621 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
4622 instaed of current_function_decl non-null.
4623
0c58f841
MA
46242004-10-14 Matt Austern <austern@apple.com>
4625
4626 * pointer-set.c: New file, special-purpose hash table.
4627 * pointer-set.h: New file.
4628 * tree.h (struct pointer_set_t): Declare as opaque type.
4629 (tree_walk): Last argument is pointer_set_t* now.
4630 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
3e487b21 4631 (walk_type_fields):
0c58f841
MA
4632 (walk_tree): Convert from htab_t to pointer_set_t for keeping
4633 track of which nodes have already been visited.
4634 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
4635 * cgraphunit.c (cgraph_create_edges): Likewise.
4636 (cgraph_characterize_statics_local): Likewise.
4637 * tree-dfa.c (collect_dfa_stats): Likewise.
4638 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
4639 pointer_set_t* now.
4640 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
4641 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
4642 of walk_subtrees is pointer_set_t* now.
4643 * Makefile.in (OBJS-common): add pointer-set.o
4644 (tree-inline.o): Depends on pointer-set.h
4645 (tree-dfa.o): Likewise
4646 (cgraphunit.o): Likewise
3e487b21 4647
c4e18b1c
GK
46482004-10-14 Geoffrey Keating <geoffk@apple.com>
4649
4650 * config/rs6000/darwin.h (ASM_SPEC): Delete.
4651 (TARGET_ASM_FILE_START): Define.
4652 * config/darwin.h (ASM_SPEC): Define.
4653 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
4654 -mlong-double-128, it's the default. Update comment about reason
4655 for force_cpusubtype_ALL.
4656 * config/rs6000/darwin-vecsave.asm: Supply .machine.
4657 * config/rs6000/darwin-world.asm: Likewise.
4658 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
4659 (symbolic_operand): Delete #if 0ed code.
4660
b77aa1f7
AP
46612004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
4662
4663 * stmt.c (add_case_node): Make sure that we have integer
4664 constant before calling tree_int_cst_compare.
4665
4965c163
AP
46662004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
4667
4668 PR middle-end/17967
4669 Revert:
4670 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
4671 (remove_useless_stmts_1): Fold trees we know how to fold.
4672
b419bac7
JM
46732004-10-14 Joseph S. Myers <joseph@codesourcery.com>
4674
4675 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
4676 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
4677 -m64.
4678
d58005c7
UW
46792004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4680
4681 * reload.c (find_reloads): When reloading a PLUS with constant
4682 operand, make sure the constant is pushed to the constant pool
4683 if required.
4684 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
4685 reload bug workaround.
4686 (s390_expand_plus_operand): Likewise.
4687
3020563a
DE
46882004-10-14 David Edelsohn <edelsohn@gnu.org>
4689
4690 * opts.c (common_handle_option): Do not enable
4691 flag_speculative_prefetching for -fprofile-generate/use.
4692
0ecf0d5f
DP
46932004-10-14 Devang Patel <dpatel@apple.com>
4694
4695 PR 17635
4696 * tree-if-conv.c (process_phi_nodes): Process latch block.
4697 (combine_blocks): Process latch block and update loop structure.
3e487b21 4698
a023975e
OG
46992004-10-14 Olga Golovanevsky <olga@il.ibm.com>
4700
4701 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
4702 (vect_update_ivs_after_vectorizer):
4703 (vect_transform_for_unknown_loop_bound):
4704 (tree_duplicate_loop_to_edge):
4705 (allocate_new_names):
4706 (rename_use_op):
4707 (rename_def_op):
4708 (rename_variables_in_bb):
4709 (free_new_names):
4710 (rename_variables_in_loop):
4711 (copy_phi_nodes):
4712 (update_phis_for_duplicate_loop):
4713 (update_phi_nodes_for_guard):
4714 (make_loop_iterate_ntimes):
4715 (tree_duplicate_loop_to_edge_cfg):
4716 (add_loop_guard):
4717 (vect_analyze_loop_with_symbolic_num_of_iters):
3e487b21 4718 (verify_loop_for_duplication):
a023975e
OG
4719 (vect_gen_niters_for_prolog_loop):
4720 (vect_update_niters_after_peeling):
4721 (vect_update_inits_of_dr):
4722 (vect_update_inits_of_drs):
4723 (vect_build_loop_niters):
4724 (vect_do_peeling_for_alignment): New functions.
4725 (vect_transform_loop): Add unknown and known but indivisible loop
3e487b21 4726 bound support; add peeling for unalignment support.
a023975e
OG
4727 (vect_analyze_loop_form): Support symbolic number of iterations.
4728 (vect_transform_loop_bound): New input parameter.
4729 (vect_get_loop_niters): Change input parameter type.
4730 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
4731 (vectorizable_store): Allow unaligned access.
4732 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
4733 (vect_analyze_data_refs_alignment): Allowed one unaligned
4734 store.
3e487b21 4735 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
a023975e
OG
4736 to use tree.
4737 (LOOP_VINFO_INT_NITERS): New macro.
4738 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
4739 (do_peeling_for_alignment):
4740 (unaligned_drs): New members of _loop_vec_info.
4741 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
4742
7238c5ec
RM
47432004-10-14 Ranjit Mathew <rmathew@hotmail.com>
4744
4745 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
4746 (struct tree_string): Remove "const" qualifier for "str".
4747
322ae40b
IR
47482004-10-14 Ira Rosen <irar@il.ibm.com>
4749
4750 * tree-vectorizer.c (vect_analyze_data_refs): Call
4751 vect_get_base_and_bit_offset to get memory tag for array ref.
4752 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
4753
b79187bb
RE
47542004-10-14 Richard Earnshaw <rearnsha@arm.com>
4755
4756 * configure.ac: Use $LN_S for creating symlinks (not $LN).
4757 * configure: Regenerate.
4758
c7525a64
KG
47592004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4760
4761 * doc/install.texi (*-*-solaris2*): Update with info about kernel
4762 patches to solve spurious testsuite failures.
4763
f0923257
DN
47642004-10-14 Dorit Naishlos <dorit@il.bim.com>
4765
4766 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
4767 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
4768 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
4769 gcc_assert under ENABLE_CHECKING.
4770 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
4771 get_vectype_for_scalar_type).
4772
4773 (vect_get_vec_def_for_operand): Remove redundant variables.
4774 (vect_transform_loop): Likewise.
4775
a2503645
RS
47762004-10-14 Richard Sandiford <rsandifo@redhat.com>
4777
4778 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
4779 global for -mcaller-super-interworking.
4780 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
4781 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
4782 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
4783 not need a frame pointer.
4784 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
4785 the soft frame pointer offset.
4786 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
4787 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
4788 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
4789 the stack. Use frame_pointer_needed to choose between them.
4790 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
4791 (interwork_with_frame): New macro.
4792 (interwork): Add _interwork_{r7,r11}_call_via_rN().
4793
ef9af077
BE
47942004-10-14 Ben Elliston <bje@au.ibm.com>
4795
4796 PR other/17900
4797 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
4798 up the filename looking for a previous directory separator.
4799
81da229b
JM
48002004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
4801
4802 * c-tree.h (enum c_typespec_kind, struct c_typespec,
4803 parser_xref_tag): New.
4804 (struct c_declspecs): Add tag_defined_p. Adjust definition of
4805 typedef_p.
4806 (declspecs_add_type): Adjust prototypes.
4807 * c-parse.in (%union): Add tstype.
4808 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
4809 typespec_reserved_attr, typespec_nonreserved_nonattr,
4810 structsp_attr, structsp_nonattr): Change to tstype. Update
4811 actions.
4812 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
4813 (declspecs_add_type): Update to take struct c_typespec argument.
4814 Set tag_defined_p and typedef_p as appropriate.
4815 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
4816 Update to return struct c_typespec.
4817 (shadow_tag_warned): Don't let empty declarations with qualifiers
4818 or storage class specifiers redeclare a tag if a previous
4819 declaration is visible.
4820
d8cb0614
RH
48212004-10-13 Richard Henderson <rth@redhat.com>
4822
4823 PR debug/15860
4824 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
4825 for DECL_INCOMING_RTL.
4826
bf6ac87c
HPN
48272004-10-14 Hans-Peter Nilsson <hp@axis.com>
4828
4829 PR target/17984
4830 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
4831 trunc_int_for_mode for constants used in shortened mode.
4832
61f03aba
RH
48332004-10-13 Richard Henderson <rth@redhat.com>
4834
3e487b21
ZW
4835 PR c/17384
4836 * c-common.c (handle_mode_attribute): Disallow mode changes that
4837 alter the CODE of the top-level type.
4838
4839 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
4840 integer from internal limits macros.
4841 * config/i386/mm3dnow.h (__v2sf): Fix base type.
61f03aba 4842
32e66afd 48432004-10-13 Richard Henderson <rth@redhat.com>
3e487b21
ZW
4844
4845 PR debug/13841
4846 * function.c (instantiate_decl): Recurse for CONCAT.
32e66afd 4847
520308bc
DE
48482004-10-13 David Edelsohn <edelsohn@gnu.org>
4849
4850 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
4851 andi./andis.
4852 (anddi3): Same.
9a3c428b
DE
4853 (extzvdi_internal1): Add attribute "compare".
4854 (extzvdi_internal2): Same.
520308bc 4855
090359d6
TT
48562004-10-12 Tom Tromey <tromey@redhat.com>
4857
4858 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
4859
2f59e40e
DJ
48602004-10-13 Dale Johannesen <dalej@apple.com>
4861
4862 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
4863
ccab73c3
FCE
48642004-10-13 Frank Ch. Eigler <fche@redhat.com>
4865
4866 * toplev.c (compile_file): Call mudflap_finish_file from here ...
4867 * c-decl.c (c_write_global_declarations): ... instead of here ...
4868 * cp/decl.c (cp_finish_file): ... and here.
4869 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
4870
163075a0
AP
48712004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
4872
4873 * tree-ssa-dom.c (record_range): Free the element if we are not
4874 going to use it.
4875
e89f2821
TT
48762004-10-13 Tom Tromey <tromey@redhat.com>
4877
4878 PR java/15578:
4879 * gcc.c (option_map): Added --extdirs and --encoding.
4880
b9bf58e5
EB
48812004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4882
4883 PR target/14454
4884 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
4885 sparc_can_output_mi_thunk.
4886 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
4887 handling of vcall offset.
4888 (sparc_can_output_mi_thunk): New predicate.
4889 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
4890 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
4891 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
4892
4893 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
4894
4895 * config/sparc/sparc.md (movdi): Remove redundant test.
4896
2a10039c
PB
48972004-10-13 Paolo Bonzini <bonzini@gnu.org>
4898
4899 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
4900 TDF_IPA from -fdump-tree-*-all.
4901
fe013435
PB
49022004-10-13 Paul Brook <paul@codesourcery.com>
4903
4904 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
4905 * config/arm/arm.c (thumb_find_work_register): Update comments.
4906 (arm_load_pic_register): Add argument for scratch register.
4907 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
4908 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
4909
50300b4c
KH
49102004-10-13 Kazu Hirata <kazu@cs.umass.edu>
4911
4912 * tree-data-ref.c: Fix comment typos.
4913
69d49802
JJ
49142004-10-13 Jakub Jelinek <jakub@redhat.com>
4915 Zdenek Dvorak <dvorakz@suse.cz>
4916
4917 PR tree-optimization/17724
4918 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
4919
13c62176
DN
49202004-10-13 Dorit Naishlos <dorit@il.ibm.com>
4921
4922 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
4923 (altivec_builtin_mask_for_store): Likewise.
4924 (altivec_init_builtins): Use lang_hooks.builtin_function to
4925 create the decls for builtin_altivec_mask_for_load/store.
4926
1ce3d58a
NC
49272004-10-13 Nick Clifton <nickc@redhat.com>
4928
4929 * config/c4x/c4x.c: Remove inclusion of loop.h.
4930
f76ccf60
BE
49312004-10-12 Ben Elliston <bje@au.ibm.com>
4932
4933 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
4934 (ei_container): New; renamed.
4935 (ei_start, ei_last): New macros.
4936 (ei_start_1, ei_last_1): Renamed from ei_start.
4937 (ei_last_1, ei_end_p): Use ei_container() where applicable.
4938 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
4939 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
4940
86df10e3 49412004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
fe013435 4942
86df10e3
SP
4943 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
4944 * cfgloop.c (initialize_loops_parallel_p): New.
3e487b21 4945 (flow_loops_find): Initialize the parallel_p field to true for all
86df10e3
SP
4946 the loops.
4947 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
3e487b21 4948 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
86df10e3 4949 the size of the data accessed in the loop.
3e487b21 4950 (struct nb_iter_bound): Moved...
86df10e3
SP
4951 * cfgloop.h (struct nb_iter_bound): ... here.
4952 (estimated_nb_iterations, parallel_p): New fields in struct loop.
4953 (record_estimate): Declare extern here.
4954 * tree-chrec.c: Fix comments.
4955 (nb_vars_in_chrec): New function.
4956 * tree-chrec.h (nb_vars_in_chrec): Declared here.
3e487b21 4957 * tree-data-ref.c: Don't include lambda.h, that is already included
86df10e3
SP
4958 in tree-data-ref.h.
4959 (tree_fold_divides_p): Don't check for integer_onep.
4960 (tree_fold_bezout): Removed.
4961 (gcd): New static duplicated function.
4962 (int_divides_p, dump_subscript): New.
4963 (dump_data_dependence_relation): Use dump_subscript.
3e487b21 4964 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
86df10e3 4965 estimate_niter_from_size_of_data): New.
3e487b21
ZW
4966 (analyze_array_indexes, analyze_array): Call
4967 estimate_niter_from_size_of_data during the detection of array
4968 references. Pass in a pointer to the statement that contains the
86df10e3
SP
4969 array reference.
4970 (all_chrecs_equal_p): New.
4971 (compute_distance_vector): Renamed compute_subscript_distance.
4972 Deal with multivariate conflict functions.
3e487b21 4973 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
86df10e3
SP
4974 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
4975 (non_affine_dependence_relation): New.
3e487b21
ZW
4976 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
4977 analyze_siv_subscript, analyze_miv_subscript,
4978 analyze_overlapping_iterations, subscript_dependence_tester):
86df10e3
SP
4979 Initialize and return last_conflicts function.
4980 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
4981 compute_overlap_steps_for_affine_1_2): New.
4982 (analyze_siv_subscript_affine_cst): Removed.
3e487b21
ZW
4983 (analyze_subscript_affine_affine): Disprove dependences based on the
4984 iteration domains. Solve the univariate dependence case as before,
86df10e3
SP
4985 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
4986 Implement the multivariate case of 2 versus 1 variables.
3e487b21 4987 (build_classic_dist_vector, build_classic_dir_vector): Implement some
86df10e3 4988 unhandled cases.
3e487b21 4989 (find_data_references_in_loop): Compute and initialize
86df10e3
SP
4990 loop->estimated_nb_iterations and loop->parallel_p.
4991 (analyze_all_data_dependences): Modify the debug dump order.
4992 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
4993 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
3e487b21 4994 (SUB_LAST_CONFLICT, subscript->last_conflict,
86df10e3
SP
4995 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
4996 DDR_AFFINE_P, DDR_SIZE_VECT): New.
4997 (find_data_references_in_loop, initialize_data_dependence_relation,
4998 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
4999
06c3418c
KC
50002004-10-12 Kelley Cook <kcook@gcc.gnu.org>
5001
5002 * configure: Regenerate.
5003
01d8c00b
FJ
50042004-10-12 Fariborz Jahanian <fjahanian@apple.com>
5005
5006 PR 17892
5007 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
5008 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
3e487b21 5009 and constant folding of floating point MULT_EXPR/PLUS_EXPR
01d8c00b
FJ
5010 expressions.
5011
967af719
UW
50122004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
5013
5014 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
5015 (s390_gimplify_va_arg): Likewise.
5016
888d2cd6
DJ
50172004-10-12 Daniel Jacobowitz <dan@debian.org>
5018
5019 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
5020 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
5021 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
5022 * regclass.c (record_address_regs): Remove ifdef. Use
5023 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
5024 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
5025 definition.
5026 (scan_rtx_address, replace_oldest_value_addr): Use
5027 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
5028 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
5029 unnecessary definitions.
5030 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
5031 and MODE_BASE_REG_REG_CLASS.
5032 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
5033 (MODE_BASE_REG_REG_CLASS): Define.
5034 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
5035 (REG_MODE_OK_FOR_REG_BASE_P): Define.
5036 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
5037 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
5038
7dcdacad
DB
50392004-10-12 Daniel Berlin <dberlin@dberlin.org>
5040
5041 * tree-ssa-alias.c (verify_name_tags): New function.
5042 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
5043 (verify_alias_info): Call verify_name_tags.
5044
c271ba77
KH
50452004-10-12 Kazu Hirata <kazu@cs.umass.edu>
5046
5047 PR rtl-optimization/17931
5048 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
5049 ZERO_EXTRACT in it.
5050
22de4c3d
RE
50512004-10-12 Richard Earnshaw <rearnsha@arm.com>
5052
5053 * arm.c (arm_print_operand): Use output_operand_lossage where possible
5054 rather than aborting.
5055
fa91adc6
PB
50562004-10-12 Paul Brook <paul@coudesourcery.com>
5057
5058 * config.gcc: Add armv6{k,z,zk}
5059 * config/arm/arm-cores.def: Add arm1176 and mpcore.
5060 * config/arm/tune.md: Regenerate.
5061 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
5062 Define.
5063 (all_architectures): Add armv6k, armv6z, armv6zk.
5064 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
5065 * doc/invoke.texi: Document new arch and cpu values.
5066
a3702807
PB
50672004-10-12 Paul Brook <paul@coodesourcery.com>
5068
5069 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
5070 meabi=4.
5071
49dee49c
PB
50722004-10-12 Paul Brook <paul@codesourcery.com>
5073
5074 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
5075 Handle negative constants.
5076
3789b316
JM
50772004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
5078
5079 PR c/17301
5080 * c-typeck.c (convert_arguments): Return error_mark_node if there
5081 are too few arguments.
5082 (build_function_call): Handle error_mark_node return from
5083 convert_arguments.
5084
35f06ae4
PB
50852004-10-06 Paolo Bonzini <bonzini@gnu.org>
5086
5087 * configure.ac (symbolic_link): Replace with $LN_S.
5088 (Assembler/Linker): Hard link from gas and binutils trees.
5089 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
5090 * configure: Regenerate.
5091
21addcd9
PB
50922004-10-12 Paul Brook <paul@codesourcery.com>
5093
5094 * configure.ac: Don't look for host assembler when building a canadian
5095 cross.
5096 * configure: Regenerate.
5097
afd85c1a
RS
50982004-10-11 Roger Sayle <roger@eyesopen.com>
5099
5100 PR other/17361
5101 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
5102 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
5103 line options for "-lang-asm" and if found allow any of the C-family
5104 front-end options.
5105 (c_common_handle_option): Remove last use of permit_fortran_options.
5106
fc0ea003
UW
51072004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
5108
5109 * config/s390/s390.c (print_operand): Support 'S' format flag.
5110 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
5111 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
5112 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
5113 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
5114 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
5115 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
5116 ("*movstricthi"): Likewise.
5117 ("*load_multiple_di", "*load_multiple_si"): Likewise.
5118 ("*store_multiple_di", "*store_multiple_si"): Likewise.
5119 ("*sethiqisi", "*sethihisi"): Likewise.
5120 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
5121 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
5122 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
5123 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
5124 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
5125
5126 ("*tmhi_full"): Fix incorrect op_type attribute.
5127
5128 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
5129 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
5130 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
5131 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
5132
c94b5e7f
AP
51332004-10-11 Andrew Pinski <pinskia@physics.uc.edu
5134
5135 PR middle-end/16266
5136 * function.c (temp_slots_at_level): Fix typo which creates too
5137 many temp stack slots levels.
5138
cadc42db
UW
51392004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
5140
5141 * config/s390/s390.c (s390_trampoline_template): Generate shorter
5142 trampoline code.
5143 (s390_trampoline_instantiate): Adapt.
5144 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
5145
eb172681
RS
51462004-10-11 Roger Sayle <roger@eyesopen.com>
5147
5148 PR middle-end/17657
5149 * stmt.c (add_case_node): Add additional type argument. Declare
5150 as static to match prototype. Convert the upper and lower bounds
3e487b21 5151 to the specified index type. Optimize away case ranges/values
eb172681
RS
5152 that are outside the index type's bounds. Truncate case ranges
5153 that span the index type's bounds.
5154 (expand_case): Avoid unnessary computation and memory allocation
5155 when index type is error_mark_node. Pass index_type as required
5156 by change to add_case_node API. No need to convert case range
5157 bounds to index_type, this is now done by add_case_node.
5158
19b63d8e
UW
51592004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
5160
5161 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
5162 * config/s390/s390.c (s390_offset_p): New function.
5163 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
5164 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
5165 transform Q->Q alternatives to *clc pattern.
5166 ("*clc"): Move.
5167 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
5168 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
5169 to transform Q->Q alternatives to *mvc pattern.
5170 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
5171 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
5172 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
5173 transform Q->Q alternatives to *nc pattern.
5174 ("*nc"): New insn. New peephole to merge adjacent NCs.
5175 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
5176 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
5177 transform Q->Q alternatives to *oc pattern.
5178 ("*oc"): New insn. New peephole to merge adjacent OCs.
5179 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
5180 transform Q->Q alternatives to *xc pattern.
5181 ("*xc"): New insn. New peephole to merge adjacent XCs.
5182 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
5183
d775bc45
AP
51842004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
5185
5186 * gimplify.c (gimple_push_condition): Make sure that we don't
5187 have any saved condition cleanup if we were at the top level.
5188
6b34e55e
RS
51892004-10-11 Richard Sandiford <rsandifo@redhat.com>
5190
5191 * config/frv/frv.md (*adddi3_internal): Change name to...
5192 (adddi3): ...replacing the exisiting define_expand. Combine
5193 alternatives. Fix the range of the constant constraints ('J' instead
5194 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
5195 to extract the lower and upper halves of the DImode operands.
5196 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
5197 (adddi3_lower): Fix the range of the constant constraints and
5198 remove the bogus operands[2] check.
5199 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
5200 operand 2. Use addxi to handle constant operands.
5201 (subdi3_lower, subdi3_upper): Don't handle constant operands.
5202
422d9921
NS
52032004-10-11 Nathan Sidwell <nathan@codesourcery.com>
5204
5205 * gengtype-lex.l: Add commented } & ) characters to unconfuse
5206 editor's paren matching. Allow #define inside a struct.
5207
0ad28dde
AP
52082004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
5209
5210 PR middle-end/17703
5211 part of PR c++/17657
5212 * fold-const.c (fold_build_cleanup_point_expr): New function.
5213 * tree.h (fold_build_cleanup_point_expr): Prototype.
5214
5c70192c
EC
52152004-10-10 Eric Christopher <echristo@redhat.com>
5216
5217 * dwarf2out.c: Move attribute to subprogram declaration
5218 instead of subroutine type.
5219
9b1f72c4
KH
52202004-10-10 Kazu Hirata <kazu@cs.umass.edu>
5221
5222 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
5223 hoist_insn_after, and hoist_insn_to_edge.
5224 * rtl.h: Remove the prototypes for reg_referenced_between_p,
5225 no_jumps_between_p, and insn_dependent_p.
5226 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
5227 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
5228 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
5229 hoist_insn_to_edge): Remove.
5230
bba5733f
JM
52312004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
5232
5233 PR c/17881
5234 * c-decl.c (grokparms): Don't warn for parameters of incomplete
5235 type in declarations that are not definitions except for the case
5236 of parameters of void type.
5237
f0b698c1
KH
52382004-10-10 Kazu Hirata <kazu@cs.umass.edu>
5239
5240 * tree-cfg.c: Fix comment typos.
5241
c69c9b36
JM
52422004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
5243
5244 PR c/17301
5245 * builtins.c (expand_builtin_va_start): Check for too few
5246 arguments to va_start.
5247
216a5f1b
JM
52482004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
5249
5250 PR c/17189
5251 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
5252 fields a pedwarn. Pedwarn here for unnamed structs/unions if
5253 pedantic.
5254 * c-parse.in (component_decl): Don't pedwarn here for unnamed
5255 fields.
5256
3d5c655f
ZD
52572004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
5258
5259 PR tree-optimization/17906
5260 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
5261 copy non-gimple reg arguments.
5262
fc7ca5fd
RS
52632004-10-09 Roger Sayle <roger@eyesopen.com>
5264
5265 PR rtl-optimization/17853
5266 * simplify-rtx.c (simplify_relational_operation): Correct comment.
5267 Reorganize handling of comparison operations with floating point
5268 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
5269 Likewise, introduce support for comparison operations with vector
5270 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
5271
5272 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
5273 * doc/tm.texi: Likewise.
5274
35ed0a93
SB
52752004-10-09 Steven Bosscher <stevenb@suse.de>
5276
5277 * regs.h (struct reg_info_def): Remove the last_node_uid and
5278 changes_mode fields.
5279 (REGNO_LAST_NOTE_UID): Don't define.
5280 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
5281 * regmove.c (copy_src_to_dest): Likewise.
5282
d2e74f6f
RS
52832004-10-09 Roger Sayle <roger@eyesopen.com>
5284
5285 PR middle-end/17894
5286 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
5287 relational comparison operator op needs to be swapped/reversed when
5288 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
5289
227c4bc7
AP
52902004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
5291
5292 PR tree-opt/17902
5293 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
5294 instead of bsi_start.
5295 (value_replacement): Likewise.
5296 (abs_replacement): Likewise
5297
b7211528
SB
52982004-10-09 Steven Bosscher <stevenb@suse.de>
5299
5300 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
5301 (expand_gimple_cond_expr, expand_gimple_tailcall,
5302 expand_gimple_basic_block): Use it to dump RTL for each stmt.
5303 (tree_expand_cfg): Announce full RTL function dump.
5304 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
5305 not the graph version.
5306 * tree-pretty-print.c (dump_generic_node): Allow empty statements
5307 in the arms of a COND_EXPR for lowered nodes.
5308
538e3964
JM
53092004-10-08 Joseph S. Myers <joseph@codesourcery.com>
5310
5311 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
5312 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
5313 strtoufix16, strtoufix32, strtoufix64): Declare.
5314
6d84156b
JM
53152004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
5316
5317 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
5318 for an out-of-range floating point constant.
5319 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
5320 warning if the target format does not support infinities.
5321
971e29f6
KH
53222004-10-08 Kazu Hirata <kazu@cs.umass.edu>
5323
5324 * emit-rtl.c (last_label_num, base_label_num): Remove.
5325 (max_label_num): Always return label_num.
5326 (set_new_last_label_num, restore_emit_status): Remove.
5327 (init_emit): Don't initialize last_label_num.
5328 * function.c (pop_function_context_from): Don't call
5329 restore_emit_status.
5330 * function.h: Remove the prototype for restore_emit_status.
5331 * rtl.h: Remove the prototype for set_new_last_label_num.
5332
f5bb9a23
KH
53332004-10-08 Kazu Hirata <kazu@cs.umass.edu>
5334
5335 * stmt.c (expand_decl_init): Remove.
5336 * tree.h: Remove the corresponding prototype.
5337
2a9772e3
KH
53382004-10-08 Kazu Hirata <kazu@cs.umass.edu>
5339
5340 * integrate.c (try_constants, subst_constants, mark_stores):
5341 Remove.
5342 * integrate.h: Remove the prototype for try_constants.
5343
6dcc04b0
JM
53442004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
5345
5346 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
5347 (convert_for_assignment): Handle ic_argpass_nonproto. Add
5348 comments about its relevance to errors.
5349 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
5350
14788775
AP
53512004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
5352
5353 PR c/16999
5354 * c-ppoutput.c (cb_ident): Don't quote string as it is already
5355 quoted.
5356
6048b706
DN
53572004-10-08 Diego Novillo <dnovillo@redhat.com>
5358
5359 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
5360 reference_node_pool.
5361
b986ebf3
KH
53622004-10-08 Kazu Hirata <kazu@cs.umass.edu>
5363
5364 * tree-cfg.c: Fix a comment typo.
5365
8a512b77
AK
53662004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
5367
5c70192c 5368 * config/s390/s390.c (s390_register_info): Don't save fprs for
8a512b77
AK
5369 -msoft-float.
5370 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
5371
064e93c2
UW
53722004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
5373
5374 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
5375 (TARGET_DEFAULT): Use symbolic values.
5376 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
5377 (TARGET_DEFAULT): Use symbolic values.
5378 * config/s390/s390.c (s390_backchain_string): Initialize to
5379 TARGET_DEFAULT_BACKCHAIN.
5380
559837f7
KG
53812004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5382
4d9ef6a9
KG
5383 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
5384 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
5385 code.
5386 (expand_builtin_strcat): Accept a type parameter.
5387 (fold_builtin_mempcpy): Accept a type and endp parameter.
5388
559837f7
KG
5389 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
5390 Accept an `exp' instead of an `arglist'.
5391
a58eeb31
NS
53922004-10-08 Nathan Sidwell <nathan@codesourcery.com>
5393
5394 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
5395 reverting my 2004-09-07 patch to use build_int_cst.
5396
39ba2f92
EB
53972004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
5398
5399 PR target/17245
5400 * config/sparc/sparc.c (input_operand): Remove redundant code
5401 for handling LO_SUM.
5402 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
5403 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
5404 Otherwise only accept it for TFmode if quad move insns are available.
5405
10a52335
KH
54062004-10-08 Kazu Hirata <kazu@cs.umass.edu>
5407
5408 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
5409 common cases will be caught earlier than others.
5410
a252f3e8
MM
54112004-10-08 Michael Matz <matz@suse.de>
5412
5413 * loop-doloop.c (doloop_optimize): Extend count.
5414
07ea92d3
KK
54152004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
5416
5417 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
5418 (prefetch): Convert to expander.
5419
54202004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
5421
5422 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
5423 first argument of CALL.
5424 (tls_local_dynamic): Likewise.
5425
2ac2f164
JM
54262004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
5427
5428 * c-typeck.c (enum impl_conv): New.
5429 (convert_for_assignment): Use it. Take tree for function called
5430 instead of its name. Handle ObjC selectors for diagnostics at
5431 start of function. Select diagnostic text within the function
5432 using full sentences for diagnsotics. Use %qE to name functions
5433 in diagnostics.
5434 (convert_arguments, build_modify_expr,
5435 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
5436 callers to convert_for_assignment.
5437 (warn_for_assignment): Remove.
5438
da06f1ae
NC
54392004-10-08 Nick Clifton <nickc@redhat.com>
5440
5441 * config/sh/symbian.c (symbian_possibly_export_base_class):
5442 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
5443 TYPE_CONTAINS_VPTR_P.
5444
69a53ee8
KI
54452004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5446
5447 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
5448 fixed registers form all_used_regs. Update call_really_used_regs.
5449 (CALL_REALLY_USED_REGISTERS): Define.
5450 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
5451 with call_really_used_regs.
5452
29ef8952
AM
54532004-10-08 Alan Modra <amodra@bigpond.net.au>
5454
5455 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
5456 for -profile as well as -p and -pg.
5457
4a750a6d
AP
54582004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
5459
5460 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
5461
52ea044e
KH
54622004-10-07 Kazu Hirata <kazu@cs.umass.edu>
5463
5464 * tree-cfg.c (tree_block_forwards_to): Remove.
5465 * tree-flow.h: Remove the corresponding prototype.
5466
d7d086f0
KH
54672004-10-07 Kazu Hirata <kazu@cs.umass.edu>
5468
5469 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
5470 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
5471
add2402e
GK
54722004-10-07 Geoffrey Keating <geoffk@apple.com>
5473
5474 Radar 3813796
5475 * config/rs6000/rs6000.c (rs6000_generate_compare): When
5476 flag_trapping_math is in effect, don't generate subtract
5477 instructions.
5478
0dfa6c5e
UW
54792004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
5480
5481 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
5482 * config/s390/s390.c (s390_narrow_logical_operator): New function.
5483 (s390_extra_constraint_str): Add 'A' constraints.
5484 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
5485 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
5486 (CONSTRAINT_LEN): Likewise.
5487 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
5488 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
5489 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
5490 ("*iordi3"): Add OI alternative and splitter.
5491 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
5492 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
5493 ("*xordi3"): Add XI alternative and splitter.
5494 ("*xorsi3", "*xorhi3"): Likewise.
5495
94b9aa66
RS
54962004-10-07 Richard Sandiford <rsandifo@redhat.com>
5497
5498 * config/mips/mips.c (mips_function_rodata_section): New function.
5499 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
5500
21213b4c
DP
55012004-10-07 Devang Patel <dpatel@apple.com>
5502
b7211528
SB
5503 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
5504 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
5505 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
5506 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
5507 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
5c70192c 5508 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
21213b4c 5509 UNSPEC_VCONDU_V16QI): New constant defines.
b7211528 5510 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
21213b4c 5511 vconduv16qi): New patterns.
b7211528
SB
5512 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
5513 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
5514 (get_vec_cmp_insn): Same.
5515 (get_vsel_insn): Same.
5516 (rs6000_emit_vector_compare): Same.
5517 (rs6000_emit_vector_select): Same.
21213b4c 5518 (INSN_NOT_AVAILABLE): New.
5c70192c 5519
14de86fa
ZD
55202004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
5521
5522 PR tree-optimization/17749
5523 * tree-tailcall.c (find_tail_calls): Check that parameter is
5524 a gimple_reg.
5525
93348822
KH
55262004-10-07 Kazu Hirata <kazu@cs.umass.edu>
5527
5528 * config/ia64/ia64.c: Fix a comment typo.
5529
224edf72
EB
55302004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5531
5532 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
5533
09ebcffa
GB
55342004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5535
5536 PR c++/17115
5537 * tree-inline.c (expand_call_inline): Do not warn for functions
5538 marked with attribute noinline.
5539
22d66adf
EB
55402004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5541
5542 PR target/17862
5543 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
5544 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
5545
5546 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
5547 of 0 as 4th argument to pass_by_reference.
5548 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
5549
29832164
EC
55502004-10-06 Eric Christopher <echristo@redhat.com>
5551
5552 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
5553 attribute.
5554
ac6b57e5
RS
55552004-10-07 Richard Sandiford <rsandifo@redhat.com>
5556
5557 PR target/17770
5558 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
5559
a82bbcbb
ZD
55602004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
5561
5562 PR rtl-optimization/17791
5563 * loop-doloop.c (doloop_modify): Take number of iterations as
5564 argument.
5565 (doloop_optimize): Extend or shorten the number of iterations
5566 when changing mode of counter register.
5567 * loop-iv.c (lowpart_subreg): Export.
5568 * rtl.h (lowpart_subreg): Declare.
5569
a746fd8c
ZD
55702004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
5571
5572 PR tree-optimization/17806
5573 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
5574 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
5575 flags moved to split_edge.
5576
38636eac
EB
55772004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5578
176f9629 5579 PR middle-end/17835
38636eac
EB
5580 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
5581 before tentatively building the conditional move sequence.
5582
ae8c9754
RS
55832004-10-07 Richard Sandiford <rsandifo@redhat.com>
5584
5585 PR target/16815
5586 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
5587 check.
5588 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
5589 function_arg_padding.
5590
ed00ab95
RS
55912004-10-07 Richard Sandiford <rsandifo@redhat.com>
5592
5593 PR bootstrap/17857
5594 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
5595
5ac6107c
KH
55962004-10-07 Kazu Hirata <kazu@cs.umass.edu>
5597
5598 * hooks.c (hook_int_void_1, hook_void_int): Remove.
5599 * hooks.h: Remove the corresponding prototypes.
5600
a3ed9870
AP
56012004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
5602
5603 PR middle-end/17849
5604 * tree-nested.c (walk_stmt_info): Add changed field.
5605 (convert_nonlocal_reference): Set changed to when we
5606 change a decl to unnested decl.
5607 <case ADDR_EXPR>: Instead of checking if the immediate part
5608 of the ADDR_EXPR changed, check the field changed.
5609 Use recompute_tree_invarant_for_addr_expr instead of unsetting
5610 TREE_INVARIANT.
5611 (convert_local_reference): Set changed to when we
5612 change a decl to unnested decl.
5613 <case ADDR_EXPR>: Instead of checking if the immediate part
5614 of the ADDR_EXPR changed, check the field changed.
5615 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
5616
9e749a8b
KH
56172004-10-06 Kazu Hirata <kazu@cs.umass.edu>
5618
5619 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
5620 * dwarf2out.c (dwarf2out_init): Remove references to
5621 DWARF2_GENERATE_TEXT_SECTION_LABEL.
5622 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
5623 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
5624
03dafa61
JM
56252004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
5626
5627 * c-typeck.c (convert_arguments): Take expression for called
5628 function rather than its name. Handle ObjC selectors directly
5629 rather than relying on warn_for_assignment to do so. Call warning
5630 directly rather than warn_for_assignment. Use %qE in diagnostics.
5631 Say "argument" rather than "arg" in diagnostics.
5632 (build_function_call): Update call to convert_arguments.
5633
75917fc0
AP
56342004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
5635
5636 PR debug/17787
5637 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
5638 ENUMs specially instead of just saying we do.
5639
df7d2d80
EC
56402004-10-06 Eric Christopher <echristo@redhat.com>
5641
5642 * dwarf2.h: Sync with include/elf/dwarf2.h
5643
55e9452e
DB
56442004-10-06 Daniel Berlin <dberlin@dberlin.org>
5645
5646 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
df7d2d80 5647 and TREE_VEC nodes.
55e9452e 5648
44301a59
DB
56492004-10-06 Daniel Berlin <dberlin@dberlin.org>
5650
5651 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
5652 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
df7d2d80 5653
44301a59
DB
56542004-10-06 Daniel Berlin <dberlin@dberlin.org>
5655
5656 * lambda-code.c (compute_nest_using_fourier_motzkin): New
5657 function.
5658 (lambda_compute_auxillary_space): Split from here.
5659
56602004-10-06 Daniel Berlin <dberlin@dberlin.org>
5661
5662 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
5663 * tree-flow.h: Add prototype.
5664 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
df7d2d80 5665 expr_invariant_in_loop.
44301a59 5666
4c1d660f
KH
56672004-10-06 Kazu Hirata <kazu@cs.umass.edu>
5668
5669 * tree-cfg.c (thread_jumps): Remove a duplicate check for
5670 EXIT_BLOCK_PTR.
5671
575f7c2b
UW
56722004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
5673
5674 * config/s390/s390-protos.h (s_imm_operand): Remove.
5675 (s390_pool_operand): Add prototype.
5676 * config/s390/s390.c (general_s_operand): Remove.
5677 (s_imm_operand): Remove.
5678 (s_operand): Merge contents of general_s_operand.
5679 (s390_pool_operand): New function.
5680 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
5681 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
5682 ("*cmpdi_ccu"): Merge Q->Q alternative.
5683 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
5684 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
5685 ("*cli"): Remove.
5686 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
5687 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
5688 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
5689
d13256a3
SE
56902004-10-06 Steve Ellcey <sje@cup.hp.com>
5691
5692 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
5693 call ia64_function_arg_boundary.
5694 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
5695 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
5696 (ia64_function_arg_advance): Do not put 128 bit floats into
5697 FP registers.
5698
609ae0e2
KG
56992004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5700
5701 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
5702 Accept an expression instead of an arglist.
5703 (expand_builtin_stpcpy): Accept an expression instead of an
5704 arglist.
5705
51e9a60c
EB
57062004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5707
5708 PR target/16007
5709 * doc/install.texi (*-*-solaris2*): Mention potential problem
5710 with Sun assembler + GNU linker and C++ programs.
5711 Document status of binutils 2.15 release.
5712
490e9629
JH
57132004-10-06 Jan Hubicka <jh@suse.cz>
5714
5715 * cse.c (cse_main): Kill push/pop context.
5716
d5706a1e
ZW
57172004-10-05 Zack Weinberg <zack@codesourcery.com>
5718
5719 * pretty-print.c: Include tree.h.
5720 (pp_base_prepare_to_format): New function, logic from
5721 text_specifies_location.
5722 (pp_base_format_text): Use gcc_assert.
5723 * pretty-print.h (pp_prepare_to_format): New macro.
5724 (pp_base_prepare_to_format): Prototype.
5725 * diagnostic.c (text_specifies_location): Delete.
5726 (bug_report_request): Delete.
5727 (diagnostic_set_info): Don't call text_specifies_location.
5728 (diagnostic_action_after_output): Put text from
5729 bug_report_request inline here. Use gcc_unreachable.
5730 (diagnostic_report_current_function): Fix comment.
5731 (diagnostic_report_diagnostic): Clarify logic for error recursion.
5732 Call pp_prepare_to_format before diagnostic_starter.
5733 (trim_filename): Use IS_DIR_SEPARATOR.
5734 (fatal_error, internal_error): Use gcc_unreachable.
5735 (error_recursion): Call diagnostic_action_after_output to
5736 issue the bug_report_request message and exit.
5737 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
5738
5739 * c-parse.in: Add list of diagnostic messages to insulate
5740 translation template from version of yacc/bison used to
5741 compile the grammar.
5742
743eeb5a
AM
57432004-10-06 Alan Modra <amodra@bigpond.net.au>
5744
5745 PR 16406
5746 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
5747
7922a3bb
KH
57482004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5749
5750 * basic-block.h: Remove the prototype for
5751 flow_preorder_transversal_compute.
5752 * cfganal.c (dfst_node): Remove.
5753 (flow_preorder_transversal_compute): Likewise.
5754 * rtl.h: Remove the prototype for get_jump_table_offset.
5755 * rtlanal.c (get_jump_table_offset): Remove.
5756
9ec9d82b
RH
57572004-10-05 Richard Henderson <rth@redhat.com>
5758
5759 PR 17756
5760 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
5761
19361834
KC
57622004-10-05 Kelley Cook <kcook@gcc.gnu.org>
5763
5764 PR bootstrap/17817
5765 * Makefile.in: Stage the build directory too.
5766
2a2e3f05
AH
57672004-10-05 Aldy Hernandez <aldyh@redhat.com>
5768
5769 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
5770
5771 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
5772 (frv_emit_move): Same.
5773
5774 * config/frv/frv.c (frv_emit_move): New.
5775 (frv_legitimize_address): New.
5776
5777 * config/frv/frv.md ("movsi"): Call frv_emit_move.
5778 ("movqi"): Same.
5779 ("movhi"): Same.
5780 ("movdi"): Same.
5781 ("movsf"): Same.
5782 ("movdf"): Same.
5783
7fdc3e09
JM
57842004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
5785
5786 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
5787 system headers.
5788
1b36c818
JM
57892004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
5790
5791 * c-decl.c (pushdecl): When an extern declaration at block scope
5792 refers to a visible entity with internal linkage, use the old DECL
5793 rather than the new one.
5794
95740bfc
KH
57952004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5796
5797 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
5798 comments.
5799
20d400c3
KH
58002004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5801
5802 * tree-cfg.c (thread_jumps): Remove a duplicate check for
5803 an infinite loop.
5804
2abacef0
KH
58052004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5806
5807 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
5808 of FOR_BB_BETWEEN. Remove a useless check for unreachable
5809 blocks.
5810
09fa81db
KH
58112004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5812
5813 * tree-cfg.c (cleanup_tree_cfg): Don't call
5814 delete_unreachable_blosk() after thread_jumps().
5815 (thread_jumps): Always remove basic blocks as they become
5816 unreachable.
5817
1111ad78
KH
58182004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5819
5820 * tree-cfg.c (cleanup_tree_cfg): Remove variable
5821 something_changed. Simplify the while loop.
5822
fdd5d9e2
KG
58232004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5824
5825 * builtins.c (expand_builtin_memmove): Delete duplicate code
5826 and accept a tree type for the result.
5827 (expand_builtin_bcopy): Accept a tree type for the result.
5828 (fold_builtin_memmove): Accept an arglist and tree type for
5829 the result.
5830
9bb86f41
UW
58312004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5832
5833 * config/s390/s390.c (s390_dump_pool): Remove return value.
5834 Use gen_pool_align, gen_pool_section_start/end instead of
5835 gen_pool_start/end_31/64.
5836 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
5837 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
5838 ("pool_start_31", "pool_end_31"): Remove.
5839 ("pool_start_64", "pool_end_64"): Likewise.
5840 ("pool_align", "pool_section_start", "pool_section_end": New insns.
5841
5842 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
5843 (TARGET_CANNOT_COPY_INSN_P): Define.
5844 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
5845 (struct constant_pool): New member 'execute'.
5846 (s390_add_execute, s390_find_execute): New functions.
5847 (s390_execute_label, s390_execute_target): Likewise.
5848 (s390_dump_pool): Output in-pool execute target templates.
5849 (s390_dump_execute): New function.
5850 (s390_alloc_pool, s390_free_pool): Handle execute templates.
5851 (s390_mainpool_start, s390_mainpool_finish): Likewise.
5852 (s390_chunkify_start, s390_chunkify_finish): Likewise.
5853 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
5854 ("*execute"): New insn pattern.
5855 ("movmem_short", "*movmem_short"): Use splitters to generate
5856 explicit execute pattern, remove embedded execute.
5857 ("clrmem_short", "*clrmem_short"): Likewise.
5858 ("cmpmem_short", "*cmpmem_short"): Likewise.
5859
af16db69
DB
58602004-10-05 Daniel Berlin <dberlin@dberlin.org>
5861
5862 * tree-ssa.c (verify_ssa): Verify phi arguments only
5863 contain renamed names.
5864
c4ad648e
AM
58652004-10-05 Alan Modra <amodra@bigpond.net.au>
5866
5867 * config/rs6000/linux.h: Formatting, whitespace.
5868 * config/rs6000/linux64.h: Likewise.
5869 * config/rs6000/rs6000-protos.h: Likewise.
5870 * config/rs6000/rs6000.c: Likewise.
5871 (easy_vector_splat_const): Add fall thru comments.
5872 (output_vec_const_move): Likewise.
5873
406176be
KC
58742004-10-05 Kelley Cook <kcook@gcc.gnu.org>
5875
5876 * Makefile.in: Update -Wno-error exceptions for move to build dir.
5877
d840bfd3
CF
58782004-10-05 Chao-Ying Fu <fu@mips.com>
5879 Richard Sandiford <rsandifo@redhat.com>
5880
5881 * doc/invoke.texi (-mpaired-single): Link to the new description of the
5882 built-in functions. Document dependencies.
5883 (-mips3d): Add link here too.
5884 * doc/extend.texi (MIPS Paired-Single Support): New section.
5885
a4a82723
CF
58862004-10-04 Chao-ying Fu <fu@mips.com>
5887
5888 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
5889
fded8de7
DN
58902004-10-04 Diego Novillo <dnovillo@redhat.com>
5891
5892 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
5893 Initialize OPT_STATS to 0.
5894
59c4456e
KH
58952004-10-04 Kazu Hirata <kazu@cs.umass.edu>
5896
5897 * tree-data-ref.c: Fix comment typos.
5898
68b26d5c
SP
58992004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
5900
5901 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
5902 the predicate cannot be computed, don't initialize the result to
5903 false.
5904
b9e6959b
EC
59052004-10-01 Eric Christopher <echristo@redhat.com>
5906
5907 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
5908 locally defined enum.
5909 * dwarf2out.c (add_calling_convention_attribute): Don't
5910 emit DW_CC_normal.
5911
29128154
AP
59122004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
5913
5914 PR c/17178, PR c/17820
5915 * c-decl.c (pop_scope): Do not warn about unused static
5916 variables as they warned in the middle-end.
5917
ef7eaebf
KG
59182004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5919
5920 * builtins.c (expand_builtin_memcpy): Delete duplicate code
5921 and make the first parameter the expression not the arglist.
5922
103b83ea
UW
59232004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
5924
5925 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
5926 as valid modes to expand address expressions.
5927
3f75a254
JM
59282004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
5929
5930 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
5931 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
5932 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
5933 code formatting conventions.
5934
57c1f13e
RS
59352004-10-03 Richard Sandiford <rsandifo@redhat.com>
5936
5937 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
5938
24109c9f
KH
59392004-10-03 Kazu Hirata <kazu@cs.umass.edu>
5940
807e955b 5941 PR tree-optimization/16632
24109c9f
KH
5942 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
5943 fold (A & C) == D into 0, fold ~C. Similarly, for the case
5944 where | is used instead of &.
5945
d3471d77
KH
59462004-10-03 Kazu Hirata <kazu@cs.umass.edu>
5947
5948 * ginclude/stddef.h: Fix a comment typo.
5949
fe7378d2
EB
59502004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5951
5952 PR target/17443
5953 * config.gcc (i?86-*-solaris2*): Restore correct logic
5954 for --enable-threads option.
5955 (sparc64-*-solaris2*): Likewise.
5956 (sparc-*-solaris2*): Likewise.
5957
bf276e5c
AM
59582004-10-03 Alan Modra <amodra@bigpond.net.au>
5959
5960 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
5961 (OS_MISSING_POWERPC64): Move, and comment.
5962 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
5963 (OS_MISSING_POWERPC64): Move, and comment.
5964
07ec3810
ILT
59652004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
5966
5967 * arm.c (output_call_mem): Add missing \t.
5968
3e6b6386
KG
59692004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5970
5971 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
5972 expand_builtin_strncmp): Delete duplicate code.
5973
fefbfa21
FCE
59742004-10-02 Frank Ch. Eigler <fche@redhat.com>
5975
5976 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
5977 take check-base and -limit arguments.
5978 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
5979 check ranges for ARRAY_REF and COMPONENT_REF.
5980 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
5981 instrumentation.
5982
7848dfca
JM
59832004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
5984
5985 * c-objc-common.c (c_tree_printer): Correct description of %E.
5986 Don't fall through after printing an expression.
5987
66efeafc
KH
59882004-10-02 Kazu Hirata <kazu@cs.umass.edu>
5989
5990 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
5991
26d4492f
KH
59922004-10-02 Kazu Hirata <kazu@cs.umass.edu>
5993
5994 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
5995 delete_unrechable_blocks() only when necessary.
5996
ee0f32f4
D
59972004-10-02 P.J. Darcy <darcypj@us.ibm.com>
5998
5999 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
6000 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
6001 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
6002 __gthread_recursive_mutex_unlock): New functions.
6003
3ff688aa
D
60042004-10-02 P.J. Darcy <darcypj@us.ibm.com>
6005
6006 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
6007 * config/s390/tpf-eh.c: Remove file.
6008 * config/s390/tpf-unwind.h: New file.
6009 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
6010 (MD_UNWIND_SUPPORT): Define.
6011
36262a4c
JM
60122004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
6013
6014 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
6015
5b022de5
UW
60162004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
6017
6018 * config/s390/s390-protos.h (s390_comparison): Add prototype.
6019 * config/s390/s390.c (s390_comparison): New function.
6020 (s390_branch_condition_mask): Return -1 for invalid comparisons.
6021 (s390_branch_condition_mnemonic): Assert valid comparison.
6022 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
6023 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
6024 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
6025 s390_comparison instead of comparison_operator.
6026
6027 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
6028 ("cmpmemdi"): Remove.
6029 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
6030 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
6031 ("cmpint_si"): Rename to ...
6032 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
6033 ("cmpint_di", "*cmpint_di"): Likewise.
6034 * config/s390/s390.c (s390_canonicalize_comparison): Remove
6035 redundant UNSPEC_CMPINT conversions.
6036 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
6037
b89dc911
KH
60382004-10-01 Kazu Hirata <kazu@cs.umass.edu>
6039
6040 * collect2.c (COLLECT_PARSE_FLAG): Remove.
6041 (main): Remove a reference to COLLECT_PARSE_FLAG
6042 * system.h: Poison COLLECT_PARSE_FLAG.
6043 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
6044
e367a231
PB
60452004-10-01 Paul Brook <paul@codesourcery.com>
6046
6047 * config/arm/crti.asm: Give _init and _fini function type.
6048
47bcd07d
ZD
60492004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
6050
6051 * common.opt (ftree-loop-ivcanon): Enable by default.
6052 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6053 Enable complete loop unrolling.
6054 (canonicalize_induction_variables, tree_unroll_loops_completely):
6055 Reset scev info.
6056
e367a231 60572004-10-01 Paul Brook <paul@codesourcery.com>
c73d282d
PB
6058
6059 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
6060 not register number.
6061 (thumb_find_work_register): Search full register range.
6062
29c4d22b
AP
60632004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
6064
6065 PR tree-opt/17343
6066 * tree-cfg.c (group_case_labels): Get the label and not
6067 the case expr for the default case.
6068 When the label we looking at is the default, decrement the
6069 new_size.
6070
0f0377f6
JH
60712004-10-01 Jan Hubicka <jh@suse.cz>
6072
6073 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
6074 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
6075 * toplev.h (tree_rest_of_compilation): Update prototype.
6076 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
6077
8f28be81
KH
60782004-10-01 Kazu Hirata <kazu@cs.umass.edu>
6079
6080 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
6081 cleanup_control_flow() out of the while loop.
6082
02ca1718
PB
60832004-10-01 Paolo Bonzini <bonzini@gnu.org>
6084
6085 * tree-vectorizer.c (vectorizable_operation): Fail unless
6086 the mode for the vector type is indeed a vector mode.
6087
e6845c23
ZD
60882004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
6089
6090 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
6091 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
02ca1718 6092 of convert.
e6845c23
ZD
6093 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
6094 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
6095 follow_ssa_edge_in_rhs): Ditto.
6096 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
6097 (dump_iv): Dump base_object.
6098 (dump_use, dump_cand): Use dump_iv.
6099 (determine_base_object): New function.
6100 (alloc_iv): Initialize base_object field.
6101 (record_use): Clear the ssa_name field of iv.
6102 (get_computation_cost_at): Do not use difference of addresses of
6103 two different objects.
6104 (may_eliminate_iv): Do not require the loop to have just single exit.
6105 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
6106 (nonzero_p): New function.
6107 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
6108 tree_simplify_using_condition, simplify_using_initial_conditions,
6109 loop_niter_by_eval, find_loop_niter_by_eval,
6110 estimate_numbers_of_iterations_loop, compare_trees,
6111 upper_bound_in_type, lower_bound_in_type,
6112 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
6113 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
6114 instead of integer_(non)zerop.
6115
5496b36f
JJ
61162004-10-01 Jakub Jelinek <jakub@redhat.com>
6117
6118 Revert
6119 2004-09-29 Jakub Jelinek <jakub@redhat.com>
6120
6121 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
6122 and TI_VA_LIST_FPR_COUNTER_FIELD.
6123 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
6124 * tree-pass.h (pass_stdarg): Add.
6125 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
6126 * tree-stdarg.c: New file.
6127 * Makefile.in (OBJS-common): Add tree-stdarg.o.
6128 (tree-stdarg.o): Add dependencies.
6129 * function.h (struct function): Add va_list_gpr_size and
6130 va_list_fpr_size fields.
6131 * function.c (allocate_struct_function): Initialize them.
6132
6133 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
6134 va_list_{g,f}pr_counter_field.
6135 (ix86_setup_incoming_varargs): Don't do anything if reg_save
6136 area will not be used. Only save registers that tree-stdarg.c
6137 detected they need saving.
6138 (ix86_va_start): Don't set up fields that won't be used.
6139
6140 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
6141 va_list_{g,f}pr_counter_field.
6142 (setup_incoming_varargs): Don't do anything if reg_save
6143 area will not be used. Only save registers that tree-stdarg.c
6144 detected they need saving.
6145 (rs6000_va_start): Don't set up fields that won't be used.
6146
a1c496cb
EC
61472004-09-30 Eric Christopher <echristo@redhat.com>
6148
6149 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
6150 sh abi.
6151 * dwarf2out.c (add_calling_convention_attribute): New function.
6152 (gen_subroutine_type_die): Use.
6153 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
6154 * target.h (gcc_target): Add dwarf_calling_convention.
6155 * hooks.c (hook_int_tree_0): New function.
6156 * hooks.h: Prototype.
6157 * config/sh/sh.c: Include dwarf2.h.
6158 (sh_dwarf_calling_convention): New function.
6159 (TARGET_DWARF_CALLING_CONVENTION): Use.
6160 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
6161
bd042dbb
KG
61622004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6163
6164 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
6165 expand_builtin_strrchr, expand_builtin_strpbrk,
6166 expand_builtin_strncat, expand_builtin_strspn,
6167 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
6168 code.
6169
8cb66696
UW
61702004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
6171
6172 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
6173 prototype.
6174 (s390_logical_operator_ok_p): Likewise.
6175 * config/s390/s390.c (s390_expand_logical_operator): New function.
6176 (s390_logical_operator_ok_p): Likewise.
6177 * config/s390/s390.md ("anddi3"): New expander.
6178 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
6179 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
6180 ("andsi3"): Use s390_expand_logical_operator.
6181 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
6182 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
6183 ("andhi3"): New expander.
6184 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
6185 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
6186 ("andqi3"): New expander.
6187 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
6188 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
6189 ("iordi3"): New expander.
6190 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
6191 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
6192 ("iorsi3"): Use s390_expand_logical_operator.
6193 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
6194 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
6195 ("iorhi3"): New expiorer.
6196 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
6197 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
6198 ("iorqi3"): New expiorer.
6199 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
6200 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
6201 ("xordi3"): New expander.
6202 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
6203 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
6204 ("xorsi3"): New expander.
6205 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
6206 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
6207 ("xorhi3"): New expander.
6208 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
6209 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
6210 ("xorqi3"): New expander.
6211 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
6212 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
6213
7d103eb5
RS
62142004-09-30 Roger Sayle <roger@eyesopen.com>
6215
6216 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
6217 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
6218 machine mode as the result.
6219
dc4f06d9
BE
62202004-09-30 Ben Elliston <bje@au.ibm.com>
6221
6222 PR bootstrap/17761
6223 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
6224 FOR_EACH_EDGE macros.
6225
9bf24266
JM
62262004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
6227
6228 * c-tree.h (readonly_error): Remove.
6229 * c-typeck (enum lvalue_use): New.
6230 (lvalue_or_else, readonly_error): Use it. All callers changed.
6231 (readonly_error): Make static.
6232
a7102479
JH
62332004-09-30 Jan Hubicka <jh@suse.cz>
6234
6235 PR debug/13974
6236 * cfgrtl.c (try_redirect_by_replacing_jump,
6237 force_nonfallthru_and_redirect, commit_one_edge_insertion,
6238 cfg_layout_merge_blocks): Do not attach any line number information
6239 to newly inserted instructions.
6240 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
6241 emit_insn_*_noloc.
6242 (emit_*insn_before, emit_insn*_after): New.
6243 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
6244 existing locators.
6245 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
6246 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
6247
91086990
UW
62482004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
6249
6250 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
6251 (s390_return_address_offset): Remove.
6252 (s390_can_eliminate): Add prototype.
6253 (s390_initial_elimination_offset): Add prototype.
6254 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
6255 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
6256 * config/s390/s390.c (s390_arg_frame_offset): Remove.
6257 (s390_return_address_offset): Remove.
6258 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
6259 (struct machine_function): New member split_branches_pending_p.
6260 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
6261 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
6262 (s390_optimize_prologue): Remove base_used argument. Call
6263 s390_update_frame_layout instead of s390_register_info. Handle
6264 prologue/epilogue insns that touch only RETURN_REGNUM.
6265 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
a1c496cb 6266 (s390_register_info): Remove base_used and return_addr_used
91086990
UW
6267 arguments, compute special register usage inline. Return live
6268 register data to caller.
6269 (s390_frame_info): Remove arguments, do not call s390_register_info.
6270 (s390_init_frame_layout): New function.
6271 (s390_update_frame_layout): Likewise.
6272 (s390_emit_prologue): Call s390_update_frame_layout; some code
6273 move to there. Do not emit pool placeholder insn if unnecessary.
6274
13c025c1
UW
62752004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
6276
6277 * config/s390/s390.c (legitimate_reload_constant_p): Remove
6278 floating point constant workaround.
6279 (s390_secondary_input_reload_class): Handle PLUS reloads
6280 with too-large constant.
6281 (s390_expand_plus_operand): Likewise.
6282 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
6283 ("movsi"): Likewise. Also, remove workaround for non-general
6284 operands.
6285 ("movdf"): Do not call force_const_mem.
6286 ("movsf"): Likewise. Merge expander with *movsf insn.
6287 ("*movsf"): Remove, merge with movsf expander.
6288
99b2692a
PB
62892004-09-30 Paul Brook <paul@codesourcery.com>
6290
6291 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
6292 (ENDFILE_SPEC): Define.
6293 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
6294
3ac7c0f2
RH
62952004-09-30 Richard Henderson <rth@redhat.com>
6296
6297 * config/alpha/qrnnd.asm: Mark for noexecstack.
6298
75b80704
KH
62992004-09-30 Kazu Hirata <kazu@cs.umass.edu>
6300
6301 * protoize.c, tree-cfg.c: Fix comment typos.
6302
254ac10c
JM
63032004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
6304
6305 PR c/17730
6306 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
6307
20c16b36
DN
63082004-09-30 Diego Novillo <dnovillo@redhat.com>
6309
6310 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
6311 expressions...
6312 (add_pointed_to_expr): ... here.
6313 Call add_pointed_to_expr for variables with DECL_INITIAL set.
6314 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
6315 pointer variable, if set.
6316
8b0add27
KH
63172004-09-30 Kazu Hirata <kazu@cs.umass.edu>
6318
6319 * config/sh/sh.c: Follow spelling conventions.
6320
282efe1c
RH
63212004-09-29 Richard Henderson <rth@redhat.com>
6322
6323 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
6324 * doc/tm.texi (DWARF_ZERO_REG): New.
6325
6326 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
6327 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
6328 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
6329
7ce3fc8f
UW
63302004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
6331
6332 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
6333 with a PLUS as source operand.
6334 (expand_movstr): Likewise.
6335 (expand_builtin_stpcpy): Likewise.
6336
e670d9e4
RH
63372004-09-29 Richard Henderson <rth@redhat.com>
6338
6339 PR 17739
6340 * tree-gimple.c (is_gimple_reg): Reject hard registers.
6341 (is_gimple_asm_val): New.
6342 * tree-gimple.h (is_gimple_asm_val): Declare.
6343 * gimplify.c (gimplify_asm_expr): Use it.
6344 * tree-pretty-print.c (print_declaration): Dump hard regs.
6345 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
6346 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
6347 * tree-ssa-pre.c (is_undefined_value): Likewise.
6348 * tree-ssa-copy.c (may_propagate_copy): Likewise.
6349 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
6350 * tree-ssa.c (warn_uninit): Likewise.
6351 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
6352
2587f865
FJ
63532004-09-29 Fariborz Jahanian <fjahanian@apple.com>
6354
6355 * c-decl.c (merge_decls): Use comptype when comparing
6356 types to decide on DECL_SIZE save of olddecl.
6357
1b096a0a
DB
63582004-09-29 Daniel Berlin <dberlin@dberlin.org>
6359
6360 * tree.h (INDIRECT_REF_P): New macro.
6361 * alias.c (get_alias_set): Use it
6362 (nonoverlapping_memrefs_p): Ditto.
6363 * emit-rtl.c (mem_expr_equal_p): Ditto.
6364 (set_mem_attributes_minus_bitpos): Ditto.
6365 (is_gimple_addressable): Ditto.
6366 (get_base_address): Ditto.
6367 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
6368 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
6369 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
6370 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
6371 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
6372 (add_address_candidates): Ditto.
6373 (rewrite_address_base): Ditto.
6374
2a7cd686
BE
63752004-09-30 Ben Elliston <bje@au.ibm.com>
6376
6377 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
6378 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
6379 (rewrite_ssa_into_ssa): Likewise.
6380 * tree-phinodes.c (create_phi_node): Access the number of
6381 predecessor edges using EDGE_COUNT() and not num_preds.
6382
302a2cc5
JM
63832004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
6384
6385 PR c/7425
6386 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
6387
3e6688a7
EC
63882004-09-29 Eric Christopher <echristo@redhat.com>
6389
6390 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
6391
8820e4be
HPN
63922004-09-29 Hans-Peter Nilsson <hp@axis.com>
6393
6394 * config/cris/cris.md (moverside, movemside): With MEM, make sure
6395 the address is (plus reg mem).
6396
d962e7ad
DE
63972004-09-29 David Edelsohn <edelsohn@gnu.org>
6398
6399 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
6400
c4b3f0eb
NS
64012004-09-29 Nathan Sidwell <nathan@codesourcery.com>
6402
6403 * tree.c (make_node_stat): Fix uninitialized warning. Replace
6404 cascaded if ... else if with a switch.
6405
b4f69040
AL
64062004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6407
6408 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
6409
58c8adc1
JJ
64102004-09-29 Jakub Jelinek <jakub@redhat.com>
6411
6412 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
6413 and TI_VA_LIST_FPR_COUNTER_FIELD.
6414 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
6415 * tree-pass.h (pass_stdarg): Add.
6416 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
6417 * tree-stdarg.c: New file.
6418 * Makefile.in (OBJS-common): Add tree-stdarg.o.
6419 (tree-stdarg.o): Add dependencies.
6420 * function.h (struct function): Add va_list_gpr_size and
6421 va_list_fpr_size fields.
6422 * function.c (allocate_struct_function): Initialize them.
6423
6424 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
6425 va_list_{g,f}pr_counter_field.
6426 (ix86_setup_incoming_varargs): Don't do anything if reg_save
6427 area will not be used. Only save registers that tree-stdarg.c
6428 detected they need saving.
6429 (ix86_va_start): Don't set up fields that won't be used.
6430
6431 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
6432 va_list_{g,f}pr_counter_field.
6433 (setup_incoming_varargs): Don't do anything if reg_save
6434 area will not be used. Only save registers that tree-stdarg.c
6435 detected they need saving.
6436 (rs6000_va_start): Don't set up fields that won't be used.
6437
0d5b215c
JJ
64382004-09-29 Jakub Jelinek <jakub@redhat.com>
6439
6440 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
6441 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
6442 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
6443 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
6444 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
6445 ATTR_NONNULL_1_4): New.
6446
a7d6ba24
JJ
64472004-09-29 Jakub Jelinek <jakub@redhat.com>
6448
6449 PR tree-optimization/17697
6450 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
6451 cfg if needed.
6452
50fd1c97
PB
64532004-09-28 Per Bothner <per@bothner.com>
6454
ac973ace 6455 * profile.c (branch_prob): Pass correct value to output_location,
50fd1c97
PB
6456 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
6457
aa24864c
RH
64582004-09-28 Richard Henderson <rth@redhat.com>
6459
6460 PR 15089
6461 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
6462 * tree-flow.h (may_propagate_copy_into_asm): Declare.
6463 * tree-ssa-ccp.c (replace_uses_in): Use it.
6464 * tree-ssa-dom.c (cprop_operand): Likewise.
6465
e376fe58
JL
64662004-09-28 Jeff Law <law@redhat.com>
6467
6468 * tree-ssa-threadupdate.c (create_block_for_threading): Request
6469 that no outgoing edges be left in the duplicate block. Do no
6470 update information on outgoing edges or PHI nodes in target
6471 blocks here.
6472 (remove_ctrl_stmt_and_useless_edges): Renamed from
6473 remove_last_stmt_and_useless_edges. Handle case where the
6474 block is empty or has no control statements. Do not update edge
6475 flags here.
6476 (thread_block): Create a template block rather than copying the
6477 original block every time. Create outgoing edges from the
6478 duplicate blocks and update PHIs at the target of the outgoing
6479 edges here. Fix edge flags for the original block if necessary.
6480 * cfghooks (duplicate_block): No longer assert that the original
6481 block has incoming edges.
6482
805c33df
HPN
64832004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
6484
6485 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
6486 Reg Vars to enforce register allocation with general constraints.
6487 (Explicit Reg Vars): Clarify relation to asm statements.
6488 (Local Reg Vars): Similar.
6489
dcda8480
UW
64902004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6491
6492 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
6493 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
6494 build_control_flow, new_edge): Remove.
6495 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
6496 (bitlst, bitlst_table_last, bitlst_table): Remove.
6497 (bblst): Store basic_block pointer instead of block index.
6498 (bblst_table): Likewise.
6499 (edgelst): Store edge pointer instead of edge index.
6500 (edgelst_table, edgelst_last): New variables.
6501 (extract_bitlst): Rename to ...
6502 (extract_edgelst): ... this. Return edge pointers, not indices.
6503 (split_edges): Update call.
6504 (rgn_edges): Store edge pointers instead of indices.
6505 (edge_to_bit): Remove.
6506 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
6507 (SET_EDGE_TO_BIT): New macro.
6508 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
6509 (find_rgns): Remove edge_list parameter. Traverse standard CFG
6510 data structures instead of haifa_edge et al. Use edge pointers
6511 instead of edge indices everywhere.
6512 (compute_dom_prob_ps): Use standard CFG data structures. Account
6513 for exit edges.
6514 (compute_trg_info): Likewise.
6515 (propagate_deps): Likewise.
6516 (debug_candidate): Account for bblst data structure change.
6517 (check_live_1, update_live_1, is_pfree): Likewise.
6518 (IS_REACHABLE): Use standard CFG data structures.
6519 (init_ready_list): Update bblst_table/edgelst_table allocation.
6520 (schedule_region): Update alloc/cleanup code to data structure
6521 changes. Use edge->aux to store per-region edge index.
6522 (init_regions): No longer call build_control_flow. Do not
6523 create edge list any more.
6524
2f39b6ca
UW
65252004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6526
6527 * cse.c (cse_insn): Avoid creating direct non-local jumps.
6528 * combine.c (can_combine_p): Likewise.
6529 * local-alloc. (update_equiv_regs): Likewise.
6530
b0b324b0
RH
65312004-09-28 Richard Henderson <rth@redhat.com>
6532
6533 PR 17531
6534 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
6535 Don't check VOIDmode here. Force PLUS operands to common type.
6536 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
6537 Pmode if given a non pointer type.
6538
65392004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6540
6541 PR 17531
6542 * optabs.c (expand_binop): Force constants to the correct mode.
6543
ea77e738
UW
65442004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6545
6546 * config/s390/s390.c (s390_adjust_cost): Remove.
6547 (TARGET_SCHED_ADJUST_COST): Do not redefine.
6548 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
3e6688a7 6549 * config/s390/s390.md ("main_pool"): Use "larl" type
ea77e738
UW
6550 attribute if TARGET_CPU_ZARCH.
6551
9924d7d8
JJ
65522004-09-28 Jakub Jelinek <jakub@redhat.com>
6553
6554 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
6555 variable.
6556
81842e1b
DN
65572004-09-28 Diego Novillo <dnovillo@redhat.com>
6558
6559 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
6560 name to the pass.
6561
21ef99b8
SB
65622004-09-28 Steven Bosscher <stevenb@suse.de>
6563
6564 * common.opt (flag_gcse_sm): Disable by default.
6565 (flag_gcse_las): Likewise.
6566 (flag_web): Likewise. Create from this file.
6567 * flags.h: Remove flag_web declaration.
6568 * toplev.c (flag_web): Likewise.
6569 (process_options): Never set flag_web.
6570
78492bf5
SB
65712004-09-28 Steven Bosscher <stevenb@suse.de>
6572
6573 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
6574 * tree-ssa-propagate.c: Include vec.h.
6575 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
6576 instead of varrays.
6577 (cfg_blocks_add): Assert the block is not already in the worklist.
6578 Update uses of interesting_ssa_edges and varying_ssa_edges.
6579 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
6580 ssa_propagate): Likewise.
6581
ef787822
JM
65822004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
6583
6584 PR c/16409
6585 * c-decl.c (start_decl): Check for initializing incomplete array
6586 of VLAs.
6587 (build_compound_literal): Check for TYPE being error_mark_node.
6588 * c-parse.in (primary): Check for VLA compound literals.
6589
c3b8e9aa
DN
65902004-09-28 Diego Novillo <dnovillo@redhat.com>
6591
6592 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
6593 with --disable-checking.
6594
56bac5af
DP
65952004-09-28 Devang Patel <dpatel@apple.com>
6596
6597 * tree-pretty-print.c (dump_generic_node): Print vector types.
3e6688a7 6598
cc15e98f
NC
65992004-09-28 Nick Clifton <nickc@redhat.com>
6600
6601 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
6602 invocation of the function sh_init_cumulative_args.
6603 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
6604 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
6605 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
6606 * config/sh/sh.c (sh_init_cumulative_args): New function based
6607 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
6608 heuristic added to determine the setting of force_mem when a
6609 library function is being called.
6610
ee1f0fb0
DN
66112004-09-28 Diego Novillo <dnovillo@redhat.com>
6612
6613 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
6614 Skip constant arguments.
6615
38e05395
DN
66162004-09-28 Diego Novillo <dnovillo@redhat.com>
6617
6618 * tree-ssa-alias.c (create_name_tags): If PTR points to a
6619 volatile type, mark the tag volatile.
6620 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
6621 volatile.
6622
45fbb186
AP
66232004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
6624
6625 * tree.def (vec_cond_expr): Fix. Change 'e'
6626 to tcc_expression.
6627
c2b7c2d8
KH
66282004-09-28 Kazu Hirata <kazu@cs.umass.edu>
6629
6630 * basic-block.h: Fix a comment typo.
6631
6dbd43ba
KH
66322004-09-28 Kazu Hirata <kazu@cs.umass.edu>
6633
6634 * optabs.c, optabs.h: Fix comment typos.
6635
ecaa611b
EB
66362004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
6637
6638 * config/sparc/sparc.md (call_address_struct_value_sp32):
6639 Properly mask the immediate field of the 'unimp' instruction.
6640 (call_symbolic_struct_value_sp32): Likewise.
6641
2a7cd686 66422004-09-28 Ben Elliston <bje@au.ibm.com>
628f6a4e
BE
6643 Steven Bosscher <stevenb@suse.de>
6644 Andrew Pinski <pinskia@physics.uc.edu>
6645
6646 Merge from edge-vector-branch:
6647 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
6648 (struct edge_def): Remove pred_next, succ_next members.
6649 (struct basic_block_def): Remove pred, succ members. Add preds
6650 and succs members of type VEC(edge).
6651 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
6652 (BRANCH_EDGE): Likewise.
6653 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
6654 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
6655 (edge_iterator): New.
6656 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
6657 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
6658 (FOR_EACH_EDGE): New.
6659 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
6660 where applicable.
6661 (rotate_loop): Likewise.
6662 (find_traces_1_route): Likewise.
6663 (bb_to_key): Likewise.
6664 (connect_traces): Likewise.
6665 (copy_bb_p): Likewise.
6666 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
6667 (add_labels_and_missing_jumps): Likewise.
6668 (fix_up_fall_thru_edges): Likewise.
6669 (find_jump_block): Likewise.
6670 (fix_crossing_conditional_branches): Likewise.
6671 (fix_crossing_unconditional_branches): Likewise.
6672 (add_reg_crossing_jump_notes): Likewise.
6673 * bt-load.c (augment_live_range): Likewise.
6674 * cfg.c (clear_edges): Likewise.
6675 (unchecked_make_edge): Likewise.
6676 (cached_make_edge): Likewise.
6677 (make_single_succ_edge): Likewise.
6678 (remove_edge): Likewise.
6679 (redirect_edge_succ_nodup): Likewise.
6680 (check_bb_profile): Likewise.
6681 (dump_flow_info): Likewise.
6682 (alloc_aux_for_edges): Likewise.
6683 (clear_aux_for_edges): Likewise.
6684 (dump_cfg_bb_info): Likewise.
6685 * cfganal.c (forwarder_block_p): Likewise.
6686 (can_fallthru): Likewise.
6687 (could_fall_through): Likewise.
6688 (mark_dfs_back_edges): Likewise.
6689 (set_edge_can_fallthru_flag): Likewise.
6690 (find_unreachable_blocks): Likewise.
6691 (create_edge_list): Likewise.
6692 (verify_edge_list): Likewise.
6693 (add_noreturn_fake_exit_edges): Likewise.
6694 (connect_infinite_loops_to_exit): Likewise.
6695 (flow_reverse_top_sort_order_compute): Likewise.
6696 (flow_depth_first_order_compute): Likewise.
6697 (flow_preorder_transversal_compute): Likewise.
6698 (flow_dfs_compute_reverse_execute): Likewise.
6699 (dfs_enumerate_from): Likewise.
6700 (compute_dominance_frontiers_1): Likewise.
6701 * cfgbuild.c (make_edges): Likewise.
6702 (compute_outgoing_frequencies): Likewise.
6703 (find_many_sub_basic_blocks): Likewise.
6704 (find_sub_basic_blocks): Likewise.
6705 * cfgcleanup.c (try_simplify_condjump): Likewise.
6706 (thread_jump): Likewise.
6707 (try_forward_edges): Likewise.
6708 (merge_blocks_move): Likewise.
6709 (outgoing_edges_match): Likewise.
6710 (try_crossjump_to_edge): Likewise.
6711 (try_crossjump_bb): Likewise.
6712 (try_optimize_cfg): Likewise.
6713 (merge_seq_blocks): Likewise.
6714 * cfgexpand.c (expand_gimple_tailcall): Likewise.
6715 (expand_gimple_basic_block): Likewise.
6716 (construct_init_block): Likewise.
6717 (construct_exit_block): Likewise.
6718 * cfghooks.c (verify_flow_info): Likewise.
6719 (dump_bb): Likewise.
6720 (delete_basic_block): Likewise.
6721 (split_edge): Likewise.
6722 (merge_blocks): Likewise.
6723 (make_forwarder_block): Likewise.
6724 (tidy_fallthru_edges): Likewise.
6725 (can_duplicate_block_p): Likewise.
6726 (duplicate_block): Likewise.
6727 * cfglayout.c (fixup_reorder_chain): Likewise.
6728 (fixup_fallthru_exit_predecessor): Likewise.
6729 (can_copy_bbs_p): Likewise.
6730 (copy_bbs): Likewise.
6731 * cfgloop.c (flow_loops_cfg_dump): Likewise.
6732 (flow_loop_entry_edges_find): Likewise.
6733 (flow_loop_exit_edges_find): Likewise.
6734 (flow_loop_nodes_find): Likewise.
6735 (mark_single_exit_loops): Likewise.
6736 (flow_loop_pre_header_scan): Likewise.
6737 (flow_loop_pre_header_find): Likewise.
6738 (update_latch_info): Likewise.
6739 (canonicalize_loop_headers): Likewise.
6740 (flow_loops_find): Likewise.
6741 (get_loop_body_in_bfs_order): Likewise.
6742 (get_loop_exit_edges): Likewise.
6743 (num_loop_branches): Likewise.
6744 (verify_loop_structure): Likewise.
6745 (loop_latch_edge): Likewise.
6746 (loop_preheader_edge): Likewise.
6747 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6748 (expected_loop_iterations): Likewise.
6749 * cfgloopmanip.c (remove_bbs): Likewise.
6750 (fix_bb_placement): Likewise.
6751 (fix_irreducible_loops): Likewise.
6752 (remove_path): Likewise.
6753 (scale_bbs_frequencies): Likewise.
6754 (loopify): Likewise.
6755 (unloop): Likewise.
6756 (fix_loop_placement): Likewise.
6757 (loop_delete_branch_edge): Likewise.
6758 (duplicate_loop_to_header_edge): Likewise.
6759 (mfb_keep_just): Likewise.
6760 (create_preheader): Likewise.
6761 (force_single_succ_latches): Likewise.
6762 (loop_split_edge_with): Likewise.
6763 (create_loop_notes): Likewise.
6764 * cfgrtl.c (rtl_split_block): Likewise.
6765 (rtl_merge_blocks): Likewise.
6766 (rtl_can_merge_blocks): Likewise.
6767 (try_redirect_by_replacing_jump): Likewise.
6768 (force_nonfallthru_and_redirect): Likewise.
6769 (rtl_tidy_fallthru_edge): Likewise.
6770 (commit_one_edge_insertion): Likewise.
6771 (commit_edge_insertions): Likewise.
6772 (commit_edge_insertions_watch_calls): Likewise.
6773 (rtl_verify_flow_info_1): Likewise.
6774 (rtl_verify_flow_info): Likewise.
6775 (purge_dead_edges): Likewise.
6776 (cfg_layout_redirect_edge_and_branch): Likewise.
6777 (cfg_layout_can_merge_blocks_p): Likewise.
6778 (rtl_flow_call_edges_add): Likewise.
6779 * cse.c (cse_cc_succs): Likewise.
6780 * df.c (hybrid_search): Likewise.
6781 * dominance.c (calc_dfs_tree_nonrec): Likewise.
6782 (calc_dfs_tree): Likewise.
6783 (calc_idoms): Likewise.
6784 (recount_dominator): Likewise.
6785 * domwalk.c (walk_dominator_tree): Likewise.
6786 * except.c (emit_to_new_bb_before): Likewise.
6787 (connect_post_landing_pads): Likewise.
6788 (sjlj_emit_function_enter): Likewise.
6789 (sjlj_emit_function_exit): Likewise.
6790 (finish_eh_generation): Likewise.
6791 * final.c (compute_alignments): Likewise.
6792 * flow.c (calculate_global_regs_live): Likewise.
6793 (initialize_uninitialized_subregs): Likewise.
6794 (init_propagate_block_info): Likewise.
6795 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6796 * gcse.c (find_implicit_sets): Likewise.
6797 (bypass_block): Likewise.
6798 (bypass_conditional_jumps): Likewise.
6799 (compute_pre_data): Likewise.
6800 (insert_insn_end_bb): Likewise.
6801 (insert_store): Likewise.
6802 (remove_reachable_equiv_notes): Likewise.
6803 * global.c (global_conflicts): Likewise.
6804 (calculate_reg_pav): Likewise.
6805 * graph.c (print_rtl_graph_with_bb): Likewise.
6806 * ifcvt.c (mark_loop_exit_edges): Likewise.
6807 (merge_if_block): Likewise.
6808 (find_if_header): Likewise.
6809 (block_jumps_and_fallthru_p): Likewise.
6810 (find_if_block): Likewise.
6811 (find_cond_trap): Likewise.
6812 (block_has_only_trap): Likewise.
6813 (find_if_case1): Likewise.
6814 (find_if_case_2): Likewise.
6815 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
6816 (perfect_nestify): Likewise.
6817 * lcm.c (compute_antinout_edge): Likewise.
6818 (compute_laterin): Likewise.
6819 (compute_available): Likewise.
6820 (compute_nearerout): Likewise.
6821 * loop-doloop.c (doloop_modify): Likewise.
6822 * loop-init.c (loop_optimizer_init): Likewise.
6823 * loop-invariant.c (find_exits): Likewise.
6824 * loop-iv.c (simplify_using_initial_values): Likewise.
6825 (check_simple_exit): Likewise.
6826 (find_simple_exit): Likewise.
6827 * loop-unroll.c (peel_loop_completely): Likewise.
6828 (unroll_loop_constant_iterations): Likewise.
6829 (unroll_loop_runtime_iterations): Likewise.
6830 * loop-unswitch.c (may_unswitch_on): Likewise.
6831 (unswitch_loop): Likewise.
6832 * modulo-sched.c (generate_prolog_epilog): Likewise.
6833 (sms_schedule): Likewise.
6834 * postreload-gcse.c (eliminate_partially_redundant_load):
6835 Likewise.
6836 * predict.c (can_predict_insn_p): Likewise.
6837 (set_even_probabilities): Likewise.
6838 (combine_predictions_for_bb): Likewise.
6839 (predict_loops): Likewise.
6840 (estimate_probability): Likewise.
6841 (tree_predict_by_opcode): Likewise.
6842 (tree_estimate_probability): Likewise.
6843 (last_basic_block_p): Likewise.
6844 (propagate_freq): Likewise.
6845 (estimate_loops_at_level): Likewise.
6846 (estimate_bb_frequencies): Likewise.
6847 * profile.c (instrument_edges): Likewise.
6848 (get_exec_counts): Likewise.
6849 (compute_branch_probabilities): Likewise.
6850 (branch_prob): Likewise.
6851 * ra-build.c (live_in): Likewise.
6852 * ra-rewrite.c (rewrite_program2): Likewise.
6853 * ra.c (reg_alloc): Likewise.
6854 * reg-stack.c (reg_to_stack): Likewise.
6855 (convert_regs_entry): Likewise.
6856 (compensate_edge): Likewise.
6857 (convert_regs_1): Likewise,
6858 (convert_regs_2): Likewise.
6859 (convert_regs): Likewise.
6860 * regrename.c (copyprop_hardreg_forward): Likewise.
6861 * reload1.c (fixup_abnormal_edges): Likewise.
6862 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
6863 (sbitmap_insersection_of_preds): Likewise.
6864 (sbitmap_union_of_succs): Likewise.
6865 (sbitmap_union_of_preds): Likewise.
6866 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
6867 (fix_basic_block_boundaries): Likewise.
6868 (sched_ebbs): Likewise.
6869 * sched-rgn.c (build_control_flow): Likewise.
6870 (find_rgns): Likewise.
6871 * tracer.c (find_best_successor): Likewise.
6872 (find_best_predecessor): Likewise.
6873 (tail_duplicate): Likewise.
6874 * tree-cfg.c (make_edges): Likewise.
6875 (make_ctrl_stmt_edges): Likewise.
6876 (make_goto_expr_edges): Likewise.
6877 (tree_can_merge_blocks_p): Likewise.
6878 (tree_merge_blocks): Likewise.
6879 (cfg_remove_useless_stmts_bb): Likewise.
6880 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
6881 (tree_block_forwards_to): Likewise.
6882 (cleanup_control_expr_graph): Likewise.
6883 (find_taken_edge): Likewise.
6884 (dump_cfg_stats): Likewise.
6885 (tree_cfg2vcg): Likewise.
6886 (disband_implicit_edges): Likewise.
6887 (tree_find_edge_insert_loc): Likewise.
6888 (bsi_commit_edge_inserts): Likewise.
6889 (tree_split_edge): Likewise.
6890 (tree_verify_flow_info): Likewise.
6891 (tree_make_forwarder_block): Likewise.
6892 (tree_forwarder_block_p): Likewise.
6893 (thread_jumps): Likewise.
6894 (tree_try_redirect_by_replacing_jump): Likewise.
6895 (tree_split_block): Likewise.
6896 (add_phi_args_after_copy_bb): Likewise.
6897 (rewrite_to_new_ssa_names_bb): Likewise.
6898 (dump_function_to_file): Likewise.
6899 (print_pred_bbs): Likewise.
6900 (print_loop): Likewise.
6901 (tree_flow_call_edges_add): Likewise.
6902 (split_critical_edges): Likewise.
6903 (execute_warn_function_return): Likewise.
6904 (extract_true_false_edges_from_block): Likewise.
6905 * tree-if-conv.c (tree_if_conversion): Likewise.
6906 (if_convertable_bb_p): Likewise.
6907 (find_phi_replacement_condition): Likewise.
6908 (combine_blocks): Likewise.
6909 * tree-into-ssa.c (compute_global_livein): Likewise.
6910 (ssa_mark_phi_uses): Likewise.
6911 (ssa_rewrite_initialize_block): Likewise.
6912 (rewrite_add_phi_arguments): Likewise.
6913 (ssa_rewrite_phi_arguments): Likewise.
6914 (insert_phi_nodes_for): Likewise.
6915 (rewrite_into_ssa): Likewise.
6916 (rewrite_ssa_into_ssa): Likewise.
6917 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
6918 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
6919 (rewrite_trees): Likewise.
6920 * tree-pretty-print.c (dump_bb_header): Likewise.
6921 (dump_implicit_edges): Likewise.
6922 * tree-sra.c (insert_edge_copies): Likewise.
6923 (find_obviously_necessary_stmts): Likewise.
6924 (remove_data_stmt): Likewise.
6925 * tree-ssa-dom.c (thread_across_edge): Likewise.
6926 (dom_opt_finalize_block): Likewise.
6927 (single_incoming_edge_ignoring_loop_edges): Likewise.
6928 (record_equivalences_from_incoming_edges): Likewise.
6929 (cprop_into_successor_phis): Likewise.
6930 * tree-ssa-live.c (live_worklist): Likewise.
6931 (calculate_live_on_entry): Likewise.
6932 (calculate_live_on_exit): Likewise.
6933 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6934 (copy_loop_headers): Likewise.
6935 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
6936 (fill_always_executed_in): Likewise.
6937 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
6938 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
6939 (compute_phi_arg_on_exit): Likewise.
6940 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
6941 (get_loops_exit): Likewise.
6942 (split_loop_exit_edge): Likewise.
6943 (ip_normal_pos): Likewise.
6944 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
6945 Likewise.
6946 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
6947 (replace_phi_with_stmt): Likewise.
6948 (value_replacement): Likewise.
6949 * tree-ssa-pre.c (compute_antic_aux): Likewise.
6950 (insert_aux): Likewise.
6951 (init_pre): Likewise.
6952 * tree-ssa-propagate.c (simulate_stmt): Likewise.
6953 (simulate_block): Likewise.
6954 (ssa_prop_init): Likewise.
3e6688a7 6955 * tree-ssa-threadupdate.c (thread_block): Likewise.
628f6a4e
BE
6956 (create_block_for_threading): Likewise.
6957 (remove_last_stmt_and_useless_edges): Likewise.
6958 * tree-ssa.c (verify_phi_args): Likewise.
6959 (verify_ssa): Likewise.
6960 * tree_tailcall.c (independent_of_stmt_p): Likewise.
6961 (find_tail_calls): Likewise.
6962 (eliminate_tail_call): Likewise.
6963 (tree_optimize_tail_calls_1): Likewise.
6964 * tree-vectorizer.c (vect_transform_loop): Likewise.
6965 * var-tracking.c (prologue_stack_adjust): Likewise.
6966 (vt_stack_adjustments): Likewise.
6967 (vt_find_locations): Likewise.
6968 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6969 * config/i386/i386.c (ix86_pad_returns): Likewise.
6970 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6971 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6972
5be9b7a1
EB
69732004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
6974
6975 PR target/16532
6976 * config/sparc/sparc.c (struct machine_function): New field
6977 'leaf_function_p' and 'prologue_data_valid_p'.
6978 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
6979 to conveniently access the above fields.
6980 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
6981 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
6982 of the generic flavor 'current_function_uses_only_leaf_regs'.
6983 (eligible_for_sibcall_delay): Likewise.
6984 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
6985 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
6986 (sparc_asm_function_prologue): Add sanity check for the assumption
6987 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
6988 (sparc_can_use_return_insn_p): New function.
6989 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
6990 (output_restore): Likewise.
6991 (output_sibcall): Likewise.
6992 (sparc_output_mi_thunk): Likewise.
6993 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
6994 * config/sparc/sparc.md (return): New expander.
6995
6996 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
6997
455f19cb
MM
69982004-09-27 Mark Mitchell <mark@codesourcery.com>
6999
7000 PR c++/17642
7001 * stor-layout.c (layout_decl): Use fold_convert, not convert.
7002 (bit_from_pos): Likewise.
7003 (byte_from_pos): Likewise.
7004 (pos_from_bit): Likewise.
7005 (normalize_offset): Likewise.
7006 (place_field): Likewise.
7007 (finalize_type_size): Likewise.
7008 (layout_type): Likewise.
7009 * tree.c (build_index_type): Likewise.
7010
7ce67fbe
DP
70112004-09-27 Devang Patel <dpatel@apple.com>
7012
7013 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
7014 * genopinit.c (optabs): New entry for vcond_gen_code and
7015 vcondu_gen_code.
7016 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
7017 (get_rtx_code): New function.
7018 (vector_compare_rtx): New function.
7019 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
7020 (expand_vec_cond_expr_p): New function.
7021 (expand_vec_cond_expr): New function.
7022 (get_vcond_icode): New function.
7023 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
7024 (vcond_gen_code, vcondu_gen_code): Same.
7025
55040e7a
KC
70262004-09-27 Kelley Cook <kcook@gcc.gnu.org>
7027
7028 * Makefile.in (STAGESTUFF): Split into ...
7029 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
7030 (mostlyclean): Update.
7031 (stage1-start, stage2-start, stage3-start, stage4-start,
7032 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
7033 Move the STAGEMOVESTUFF.
7034
f6260033
EB
70352004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
7036
7037 * system.h (getpagesize): Return 'int' instead of 'long'.
7038
49f41d06
MM
70392004-09-27 Michael Matz <matz@suse.de>
7040
7041 PR bootstrap/17698
7042 PR bootstrap/17702
7043 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
7044 bmp_iter_and_init): Shift by bit_in_word.
7045
a62322c4
KC
70462004-09-27 Kelley Cook <kcook@gcc.gnu.org>
7047
7048 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
7049 * configure.ac: Don't sinclude it here.
7050 * configure: Regenerate.
7051
850e8d3d
DN
70522004-09-27 Dorit Naishlos <dorit@il.ibm.com>
7053
7054 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
7055 Handle AND pattern
7056
5e9bda65
JM
70572004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
7058
7059 PR c/13804
7060 * c-typeck.c (build_component_ref): Name type involved in
7061 diagnostic for structure or union without a member of the given
7062 name.
7063
43f51151
DD
70642004-09-27 DJ Delorie <dj@redhat.com>
7065
7066 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
7067 .comm alignment is bytes, not bits.
7068
6337c1a2
DP
70692004-09-27 Devang Patel <dpatel@apple.com>
7070
7071 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
7072 (print_call_name): Do not print VEC_COND_EXPR.
6337c1a2 7073
7e200b50
DP
70742004-09-27 Devang Patel <dpatel@apple.com>
7075
7076 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
3e6688a7 7077
8c1e80e9
JH
70782004-09-27 Jan Hubicka <jh@suse.cz>
7079
7080 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
7081
75e50bd2
KH
70822004-09-27 Kazu Hirata <kazu@cs.umass.edu>
7083
7084 * bitmap.h: Fix a comment typo.
7085
94c1e7ac
AL
70862004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
7087
7088 * libgcc2.c (getpagesize): Change type of return value to int.
7089
772299b3
MA
70902004-09-26 Matt Austern <austern@apple.com>
7091
7092 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
7093 using mmap.
3e6688a7 7094
87c476a2
ZD
70952004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7096
7097 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
7098 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
7099 (bitmap_iterator): New type.
7100 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
7101 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
7102 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
7103 bmp_iter_and_init, bmp_iter_and_next): New functions.
7104 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
7105 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
7106 use iterator-style EXECUTE_IF_IN_BITMAP macros.
7107 * bitmap.c (bitmap_print): Ditto.
7108 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
7109 btr_def_live_range): Ditto.
7110 * cfganal.c (compute_dominance_frontiers_1) Ditto.
7111 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
7112 Ditto.
7113 * ddg.c (build_inter_loop_deps): Ditto.
7114 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
7115 Ditto.
7116 * except.c (remove_eh_handler): Ditto.
7117 * flow.c (reg_set_to_hard_reg_set): Ditto.
7118 * gcse.c (clear_modify_mem_tables): Ditto.
7119 * global.c (build_insn_chain): Ditto.
7120 * ifcvt.c (dead_or_predicable): Ditto.
7121 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
7122 Ditto.
7123 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
7124 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
7125 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
7126 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
7127 tree_purge_all_dead_eh_edges): Ditto.
7128 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
7129 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
7130 rewrite_ssa_into_ssa): Ditto.
7131 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
7132 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
7133 Ditto.
7134 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
7135 compute_flow_sensitive_aliasing, maybe_create_global_var,
7136 dump_points_to_info_for): Ditto.
7137 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
7138 * tree-ssa-dse.c (dse_finalize_block): Ditto.
7139 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
7140 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
7141 Ditto.
7142 * tree-ssa-loop-ivopts.c (find_induction_variables,
7143 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
7144 determine_use_iv_costs, determine_set_costs, find_best_candidate,
7145 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
7146 Ditto.
7147 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
7148 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
7149 add_call_read_ops): Ditto.
7150 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
7151
69049ba0
JDA
71522004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7153
7154 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
7155 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
7156
6cbaec9e
UW
71572004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
7158
7159 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
7160 reflect size of memory regions being compared.
7161
931e6c29
UW
71622004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
7163
7164 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
7165 expressions. Always clear MEM_SIZE and alias set.
7166
897f610b
RS
71672004-09-26 Roger Sayle <roger@eyesopen.com>
7168 Giovanni Bajo <giovannibajo@gcc.gnu.org>
7169
7170 PR middle-end/17112
7171 * stor-layout.c (compute_record_mode): For records with a single
7172 field, only use the field's mode if its size matches what we'd
7173 have choosen for the record ourselves. This forces the use of
7174 BLKmode for packed records that don't completely fill a mode.
7175
5c8c573a
RS
71762004-09-26 Roger Sayle <roger@eyesopen.com>
7177
7178 PR middle-end/17151
7179 * combine.c (force_to_mode): Remove dubious early return test that
7180 inhibits further optimization.
7181
628f3b63
KH
71822004-09-26 Kazu Hirata <kazu@cs.umass.edu>
7183
7184 * profile.c: Fix a comment typo.
7185
be35cf60
ZD
71862004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7187
7188 PR bootstrap/17591
7189 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
7190 with varying offset.
7191 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
7192 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
7193 ARRAY_REFS.
7194 (expr_invariant_in_loop_p): New function.
7195 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
7196 component_ref_field_offset for COMPONENT_REFs. Do not allow
7197 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
7198 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
7199 MISALIGNED_INDIRECT_REFs.
7200 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
7201 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
7202 MISALIGNED_INDIRECT_REFs.
7203
34096b92
JM
72042004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
7205
7206 PR c/11459
7207 * gcc.c (cpp_options, cc1_options): Preserve relative order of
7208 -std and -ansi options.
7209
5db0241f
JH
72102004-09-26 Jan Hubicka <jh@suse.cz>
7211
1168d30f
JH
7212 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
7213 for nested functions whose proper parent has not been output.
7214
5db0241f
JH
7215 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
7216 when re-constructing profile previously invalidated by loop.
7217
bfe0d06b
DJ
72182004-09-25 Dale Johannesen <dalej@apple.com>
7219
7220 * tree-gimple.c: Move GIMPLE definition...
7221 * doc/tree-ssa.texi: here.
7222
601d18c6
KH
72232004-09-25 Kazu Hirata <kazu@cs.umass.edu>
7224
7225 * tree-vectorizer.c: Fix a comment typo.
7226
ea4b7848
KH
72272004-09-25 Kazu Hirata <kazu@cs.umass.edu>
7228
7229 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
7230 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
7231 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
7232 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
7233
e75220c8
KH
72342004-09-25 Kazu Hirata <kazu@cs.umass.edu>
7235
7236 * tree-ssa-loop-unswitch.c: Fix a comment typo.
7237
87880c12
KH
72382004-09-25 Kazu Hirata <kazu@cs.umass.edu>
7239
7240 * doc/passes.texi: Fix a typo.
7241
f3cd574f
ZD
72422004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7243
7244 * tree-optimize.c (init_tree_optimization_passes): Add
7245 pass_record_bounds.
7246 * tree-pass.h (pass_record_bounds): Declare.
7247 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
7248 New pass.
7249
f34fa464
ZD
72502004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7251
7252 PR tree-optimization/17474
7253 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
7254 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
7255
70f3cc30
JH
72562004-09-25 Jan Hubicka <jh@suse.cz>
7257
f34fa464 7258 * predict.c (counts_to_freqs): Make global.
bbd236a1
JH
7259 * predict.h (counts_to_freqa): Declare.
7260 * profile.c (compute_branch_probabilities): Compute frequencies
7261 * tree-profile.c (do_tree_profiling): Refine conditional on when
7262 tree profiling pass is needed.
7263
70f3cc30
JH
7264 * passes.c (rest_of_handle_cfg): Disable const/pure function
7265 detection when doing tree based profiling.
7266
7267 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
7268 conditional.
7269
b11a9d5f
RS
72702004-09-25 Richard Sandiford <rsandifo@redhat.com>
7271
7272 * config/mips/mips.h (struct mips_args): Clarify comments.
7273 * config/mips/mips.c (struct mips_arg_info): Likewise.
7274 (mips_arg_info): Don't allow fpr_p to affect the register or
7275 stack alignment. Remove o64 silliness.
7276 (function_arg): Deal with the o32 float,float case specially.
7277
03eccdc8
RS
72782004-09-25 Richard Sandiford <rsandifo@redhat.com>
7279
7280 * config/mips/mips.md (loadx, storex): Define for V2SF.
7281
ef44a6ff
UW
72822004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
7283
7284 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
7285 * config/s390/s390.c (s390_back_chain_rtx): New function.
7286 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
7287 Call anti_adjust_stack.
7288 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
7289 only if compiling with back chain.
7290 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
7291 back chain only if back chain enabled. Use s390_back_chain_rtx.
3e6688a7 7292
60ae6360
JM
72932004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
7294
7295 * doc/trouble.texi: Remove obsolete information. Update
7296 information on how to regenerate fixincluded headers.
7297
b99cfc22
JM
72982004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
7299
7300 PR c/12951
7301 * doc/invoke.texi: Document that
7302 -Wno-error-implicit-function-declaration is not accepted.
7303
e2ea71ea
RH
73042004-09-24 Richard Henderson <rth@redhat.com>
7305
7306 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
7307 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
7308 on TARGET_MAX.
7309 (alpha_expand_mov): Allow unaligned vectors.
7310 (alpha_expand_unaligned_store): Use CONST0_RTX.
7311 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
7312
b8545fbf
JL
73132004-09-24 Jeff Law <law@redhat.com>
7314
7315 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
7316 aliasing rules.
7317 (simplify_cond_and_lookup_avail_expr): Likewise.
7318
2fbebc71
JM
73192004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
7320
7321 PR c/12802
7322 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
7323 title. Document interaction with -fms-extensions.
7324 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
7325 section.
7326
2e9522f4
JM
73272004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
7328
7329 PR c/12713
7330 * doc/extend.texi: Document interaction of attribute noreturn and
7331 longjmp.
7332
41bf2a8b
RH
73332004-09-24 Richard Henderson <rth@redhat.com>
7334
7335 PR rtl-opt/17503
7336 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
7337 (som_hash, som_eq): New.
7338 (init_subregs_of_mode, record_subregs_of_mode): New.
7339 (cannot_change_mode_set_regs): Rewrite for htab implementation.
7340 (invalid_mode_change_p): Likewise.
7341 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
7342 * flow.c (mark_used_regs): Likewise.
7343 (life_analysis): Use init_subregs_of_mode.
7344 * regs.h (subregs_of_mode): Remove.
7345 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
7346
84f7a28c
AP
73472004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
7348
7349 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
7350 type with the copy of the conditional.
7351
532c67ca
AP
73522004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
7353
7354 PR tree-opt/16954
7355 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7356 Prevent renaming if the aliasing sets of the type which the
7357 pointer points to are different.
7358
085e33aa
JM
73592004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
7360
7361 PR c/17188
7362 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
7363 declarations of enumerators.
7364 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
7365 for redefinition. Check for nested redefinition.
7366 (finish_struct): Don't check for nested redefinition.
7367 (start_enum): Check for nested redefinition.
7368
a2159c4c
DP
73692004-09-24 Devang Patel <dpatel@apple.com>
7370
7371 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
7372 only when necesssary.
7373 (combine_blocks): Combine loop header and exit block.
3e6688a7 7374
55e74277
PB
73752004-09-24 Paolo Bonzini <bonzini@gnu.org>
7376
7377 * hooks.c (hook_tree_tree_bool_null): New.
7378 * hooks.h (hook_tree_tree_bool_null): Declare it.
7379 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
7380 * targhooks.c (default_fold_builtin): Remove.
7381 * targhooks.h (default_fold_builtin): Remove.
7382
30d3fc60
ZD
73832004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7384
7385 PR rtl-optimization/17625
7386 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
7387
54e075fe
AP
73882004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
7389
7390 PR tree-opt/17624
7391 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
7392 Reject if any of the operands occur in an abnormal PHI.
7393
4a198dea
AS
73942004-09-24 Andreas Schwab <schwab@suse.de>
7395
7396 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
7397 rules.
7398
5d865dac
EB
73992004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
7400
7401 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
7402 if the GNU assembler is used.
7403 (sparc-*-solaris2*): Likewise.
7404 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
7405 (dbxout_function_end): Protect N_ENSYM with it.
7406 (dbxout_begin_prologue): Protect N_BNSYM with it.
7407 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
7408 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
7409 * config/sparc/sol2-gas.h: New file.
7410
4c4a5bbc
L
74112004-09-23 H.J. Lu <hongjiu.lu@intel.com>
7412
7413 PR bootstrap/17369
7414 * Makefile.in (@set_gcc_lib_path@): Added.
7415
7416 * configure.ac: Include ../config/gcc-lib-path.m4. Use
7417 TL_AC_GNU_MAKE_GCC_LIB_PATH.
7418 * configure: Regenerated.
7419
ff80e49f
JM
74202004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
7421
7422 PR c/6980
7423 * c-typeck.c (build_c_cast): Improve wording of
7424 -Wbad-function-cast diagnostic.
7425
e758023d
HPN
74262004-09-23 Hans-Peter Nilsson <hp@axis.com>
7427
7428 PR target/17626
7429 * config/cris/cris.md (moverside, movemside): Rename variable
7430 "reg" to "otherop". To generate canonical RTX, check that otherop
7431 isn't constant instead of checking that operand 1 is a register.
7432
31d66fa9
JJ
74332004-09-23 Jakub Jelinek <jakub@redhat.com>
7434
7435 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
7436
b28b1600
JJ
74372004-09-23 Diego Novillo <dnovillo@redhat.com>
7438 Jakub Jelinek <jakub@redhat.com>
7439
7440 * tree-flow.h (find_new_referenced_vars): Add prototype.
7441 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
7442 Move to...
7443 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
7444 ... here.
7445 (mark_new_vars_to_rename): Walk through all operands.
7446 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
7447 (execute_fold_all_builtins): Use it.
7448 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
7449
512baaea
D
74502004-09-23 P.J. Darcy <darcypj@us.ibm.com>
7451
7452 * gthr-tpf.h: New file.
7453 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
7454 * gthr.h: Use gthr-tpf.h on TPF OS.
7455
3aecd08b
JL
74562004-09-23 Jeff Law <law@redhat.com>
7457
7458 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
7459 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
7460 (substitute_and_fold): Likewise.
7461 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
7462 except invariants from SSA_NAME_VALUE.
7463 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
7464 and SET_SSA_NAME_EQUIV.
7465 (restore_vars_to_original_value, record_const_or_copy): Likewise.
7466 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
7467 (record_equality, cprop_into_successor_phis): Likewise.
7468 (record_equivalences_from_stmt, cprop_operand): Likewise.
7469 (lookup_avail_expr): Likewise.
7470 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
7471 from SSA_NAME_VALUE.
7472 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
7473 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
7474 annotation from the VALUE_HANDLE field.
7475
037cc9c5 74762004-09-21 Fariborz Jahanian <fjahanian@apple.com>
23fad16e 7477
037cc9c5
FJ
7478 PR c++/13989
7479 PR c++/9844
037cc9c5 7480 * tree.c (reconstruct_complex_type): Remove extra "this".
3e6688a7 7481 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
037cc9c5
FJ
7482 Add V4SFmode to case statement.
7483
e6e931b7
JM
74842004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
7485
7486 PR c/16833
7487 * doc/extend.texi, doc/invoke.texi: Document interaction of
7488 -fno-builtin with format checks. Note that built-in functions
7489 have effects beyond generating code that avoids calls to those
7490 functions.
7491
df485d80
FCE
74922004-09-23 Frank Ch. Eigler <fche@redhat.com>
7493
7494 PR tree-optimization/17533
7495 * dominance.c (verify_dominators): Tolerate even more incorrect
7496 dominance data during error message printing.
7497 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
7498 and edges more correctly.
3e6688a7 7499
7ccf35ed
DN
75002004-09-23 Dorit Naishlos <dorit@il.ibm.com>
7501
a834e70b
SB
7502 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
7503 New tree-codes.
7504 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
7505 MISALIGNED_INDIRECT_REF.
7506 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
7507 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
7508 Likewise.
7509 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
7510 (find_interesting_uses_address): Likewise.
7511 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
7512 (build_fold_addr_expr_with_type): Likewise.
7513 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
7514 * print-rtl.c (print_mem_expr): Likewise.
7515 * tree-dump.c (dequeue_and_dump): Likewise.
7516 * tree-eh.c (tree_could_trap_p): Likewise.
7517 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
7518 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
7519 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
7520 Likewise.
7521 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7522 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
7523 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
7524 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
7525 (add_address_candidates, rewrite_address_base): Likewise.
7526 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
7527 Likewise.
7528 * tree.c (staticp, build1_stat): Likewise.
7529
7530 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
7531 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
7532 * tree-ssa-operands.c (get_expr_operands): Likewise.
7533 * expr.c (expand_expr_real_1): Likewise.
7534
7535 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
7536 optabs.
7537 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
7538 for the new optabs.
7539 (expand_ternary_op): New function.
7540 * genopinit.c (optabs): Handle the new optabs.
7541 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
7542 (init_optabs): Initialize vec_realign_load_optab.
7543 (expand_ternary_op): New functions.
7544
7545 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
7546 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
7547 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
7548 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
7549 * target.h (struct vectorize): New member for struct gcc_target.
7550 (misaligned_mem_ok): New member for targetm.vectorize.
7551 (builtin_mask_for_load): Likewise.
7552 (builtin_mask_for_store): Likewise.
7553 * targethooks.c (default_vect_misaligned_mem_ok): New function.
7554 * targethooks.h (default_vect_misaligned_mem_ok): New function.
7555
7556 * config/rs6000/altivec.md (build_vector_mask_for_load): New
7557 define_expand.
7558 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
7559 (vec_realign_load_v16qi): New define_insn.
7560 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
7561 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
7562 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
7563 (altivec_builtin_mask_for_store): New variables.
7564 (rs6000_builtin_mask_for_load): New function. Implements
7565 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
7566 (rs6000_builtin_mask_for_store): New function. Implements
7567 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
7568 (rs6000_expand_builtin): Expand the target builtins
7569 builtin_mask_for_load and builtin_mask_for_store.
7570 (altivec_init_builtins): Initialize the new target builtins.
7571 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
7572 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
7573
7574 * tree-vectorizer.c (vect_create_data_ref): Renamed to
7575 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
7576 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
7577 (vectorizable_store): Call vect_create_data_ref_ptr with additional
7578 arguments, and create an indirect_ref with its return value data_ref.
7579 Check aligned_access_p.
7580 (vectorizable_load): Handle misaligned loads, using software-pipelined
7581 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
7582 vec_realign_load_optab is supported, or using a scheme without
7583 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
7584 misaligned_mem_ok is supported.
7585
7586 (vect_finish_stmt_generation): Typo.
7587 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
7588 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
7589 presence of misaligned loads.
7590 (vect_analyze_data_ref_access): Add check for constant init.
7591 (vect_get_symbl_and_dr): Remove duplicate line.
7592 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
7ccf35ed 7593
d31012b7
KH
75942004-09-23 Kazu Hirata <kazu@cs.umass.edu>
7595
7596 * builtins.c: Fix a comment typo.
7597
aa26df17
JH
75982004-09-23 Jan Hubicka <jh@suse.cz>
7599
7600 * profile.c (branch_prob): Do not verify flow info in the middle of the
7601 pass.
7602
92fc4a2f
ZD
76032004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7604
7605 * cfgloop.h (update_single_exits_after_duplication): Declare.
7606 (loopify, split_loop_bb): Declaration changed.
7607 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
7608 of rtx.
7609 (loopify): Added redirect_all_edges argument.
7610 (update_single_exits_after_duplication): Export.
7611 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
7612 * tree-flow.h (tree_duplicate_loop_to_header_edge,
7613 tree_ssa_loop_version): Declare.
7614 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
7615 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
7616 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
7617 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
7618
7619 * tree-ssa-loop-unswitch.c: New file.
7620 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
7621 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
7622 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
7623 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
7624 * tree-pass.h (pass_unswitch): Declare.
7625 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
7626 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
7627 * doc/passes.texi: Documen tree level loop unswitching.
7628
d7e9e62a
KH
76292004-09-23 Kazu Hirata <kazu@cs.umass.edu>
7630
7631 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
7632
d3147f64
EC
76332004-09-22 Eric Christopher <echristo@redhat.com>
7634
7635 * builtins.c (simplify_builtin_va_start): Remove.
7636 (simplify_builtin): Ditto.
7637 (fold_builtin_strchr): Ditto.
7638 (simplify_builtin_*): Rename remainders to fold_builtin_*.
7639 (expand_builtin): Fix up for above changes.
7640 (fold_builtin_1): Add new folders. Change for above.
7641 (expand_builtin_va_start): Call fold_builtin_next_arg.
7642 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
7643 * tree.h: Remove prototype for simplify_builtin.
7644
e53de54d
JH
76452004-09-23 Jan Hubicka <jh@suse.cz>
7646
60108d34
JH
7647 PR debug/17389
7648 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
7649 of fully inlined functions.
7650 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
7651 inlined.
7652
e53de54d
JH
7653 * cfgexpand.c (add_reg_br_prob_note): New function.
7654 (expand_gimple_cond_expr): Use it.
7655 (tree_expand_cfg): No longer kill the profile.
7656 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
7657 only if it is present.
7658 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
7659 * predict.c (combine_predictions_for_insn): Set the probabilities
7660 based on REG_BR_PROB note if present.
7661 * predict.c (branch_prob): Profile is read only with
7662 flag_branch_probabilities.
7663
dfb77e37
KC
76642004-09-22 Kelley Cook <kcook@gcc.gnu.org>
7665
7666 * aclocal.m4: Add in gettext's m4 includes.
7667 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
a9db2a29 7668 * configure.ac: Add in check for iconv.h
dfb77e37 7669 * configure: Regenerate.
d3147f64 7670
88fa57d7
KC
76712004-09-22 Kelley Cook <kcook@gcc.gnu.org>
7672
7673 * aclocal.m4: Update for rename of gettext-sister.m4.
7674
8eee3528
DB
76752004-09-22 Daniel Berlin <dberlin@dberlin.org>
7676
7677 Fix PR tree-optimization/17587
7678 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
7679 (insert_aux): Instead of here.
7680
c04f07f4
DN
76812004-09-22 Diego Novillo <dnovillo@redhat.com>
7682
7683 PR tree-optimization/16721
7684 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
7685 * tree-ssa-alias.c (create_memory_tag): Move setting of
7686 TREE_THIS_VOLATILE ...
7687 (get_tmt_for): ... here.
7688
ba652ba9
EB
76892004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
7690
7691 * config/sparc/sparc.md (cmove splitter): Fix formatting.
7692 (conditional_trap expander): Reject inappropriate CCmodes.
8db6bcda 7693 (conditional trap insn): Use V9 syntax if possible.
ba652ba9 7694
588d1952
JM
76952004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
7696
7697 PR c/16566
7698 * c-typeck.c (build_component_ref): Don't special-case
7699 COMPOUND_EXPR.
7700
08fb229e
FCE
77012004-09-22 Frank Ch. Eigler <fche@redhat.com>
7702
7703 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
7704 returns NULL.
7705
9b270cce
KH
77062004-09-22 Kazu Hirata <kazu@cs.umass.edu>
7707
7708 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
7709 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
7710 TRUTH_XOR_EXPR): Mention the restriction on types.
7711
8739ed59
MA
77122004-09-22 Matt Austern <austern@apple.com>
7713
8921359e 7714 * config/darwin.c (darwin_make_decl_one_only):
8739ed59 7715 Allow coalesced symbol to appear in static archive's table of contents
d3147f64 7716
a338ab5a
KH
77172004-09-22 Kazu Hirata <kazu@cs.umass.edu>
7718
7719 PR tree-optimization/17512
7720 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
7721 special cases.
7722
39cf49a1
DE
77232004-09-22 David Edelsohn <edelsohn@gnu.org>
7724
7725 * dbxout.c (get_lang_number): Do not define if
7726 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
7727
d1c343cb
RC
77282004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7729
1afd063a 7730 PR target/15583
d1c343cb
RC
7731 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
7732 builtin_define ("__USE_INIT_FINI__").
7733
4798630c
D
77342004-09-22 P.J. Darcy <darcypj@us.ibm.com>
7735
7736 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
7737 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
7738 * config/s390/s390.h (TARGET_TPF): New macro.
7739 * config/s390/s390.md ("eh_return"): New expander.
7740 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
7741 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
7742 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
7743 * config/s390/tpf.h (TARGET_TPF): Define to 1.
7744 (STACK_POINTER_OFFSET): Increase to 448.
7745 (TARGET_DEFAULT): Set -mtpf-trace on as default.
7746 (TPF_LOC_DIFF_OFFSET): New macro.
7747 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
7748 encoding.
7749 (__isPATrange): Add prototype.
7750 (MD_FALLBACK_FRAME_STATE_FOR): Define.
7751 * config/s390/tpf-eh.c: New file.
7752
6a97296a
DN
77532004-09-22 Diego Novillo <dnovillo@redhat.com>
7754
7755 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
7756 operands in an integer comparison.
7757 * tree-cfg.c (find_taken_edge): Call fold() to determine
7758 whether the predicate is known.
7759
3b620440
KC
77602004-09-22 Kelley Cook <kcook@gcc.gnu.org>
7761
7762 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
7763 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
7764 Create build and doc directories along with the language directories.
7765 Don't create doc directory separately.
7766 * configure: Regenerate.
7767 * Makefile.in: Create all object and executables files built
7768 with the build compiler in a build/ directory.
7769 (genobjnames): Add missing build objects.
7770 (STAGESTUFF): Don't stage the gen* programs.
7771 (ggc-none.o): Define dependencies for the target compiler.
7772 (build-print-rtl.o): Rename to build/print-rtl.o.
7773 (build-errors.o): Rename to build/errors.o.
7774 (build-varray.o): Rename to build/varray.o.
7775 (maintainerclean): Delete the contents of the build directory.
7776 ($(genobjs): %.o): Explicitly use -o.
7777 (build/insn-conditions.o): Delete specfic rule to use generic rule.
7778 (build/gengtype-lex.o): Likewise.
7779 (build/gengtype-yacc.o): Likewise.
7780 (build/gcov-iov.o): Likewise.
7781
0e64e323
NS
77822004-09-22 Nathan Sidwell <nathan@codesourcery.com>
7783
7784 * vec.h (VEC_space): Return true if there _is_ space.
7785 (VEC_reserve): Adjust.
7786
e1aeeae9
RS
77872004-09-22 Richard Sandiford <rsandifo@redhat.com>
7788
7789 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
7790 use FPRs for scalar, complex and vector types only.
7791
195da47b
JL
77922004-09-21 Jeff Law <law@redhat.com>
7793
23530866
JL
7794 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
7795 the opt_stats_d structure.
7796 (vrp_data): Change from a varray into a hash table.
7797 (vrp_hash_elt): New structure for elements in the vrp hash table.
7798 (vrp_hash, vrp_eq):New functions for hashing and testing equality
7799 in the vrp hash table.
7800 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
7801 initialization slightly to make it easier to read. No longer need
7802 to grow/clear the varray. Instead empty and delete the hash table.
7803 (dom_opt_finalize_block): Update due to change of VRP_DATA from
7804 a varray to a hash table.
7805 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
7806
195da47b
JL
7807 * tree-ssa-ccp.c (get_default_value): If we have a constant
7808 value recorded for an SSA_NAME, then use that constant as
7809 the initial lattice value.
7810 (substitute_and_fold): Transfer equivalences discovered into
7811 SSA_NAME_EQUIV.
d3147f64 7812
195da47b
JL
7813 * tree.h (SSA_NAME_EQUIV): Add comments.
7814 (SET_SSA_NAME_EQUIV): Similarly.
7815
0a4f0294
DE
78162004-09-21 David Edelsohn <edelsohn@gnu.org>
7817
7818 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
7819
7820 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
7821
1ae57298
MM
78222004-09-21 Mark Mitchell <mark@codesourcery.com>
7823
7824 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
7825 (finish_decl): Likewise.
7826
ad9f20cb
DP
78272004-09-21 Devang Patel <dpatel@apple.com>
7828
7829 * tree.def (VEC_COND_EXPR): New tree node.
7830 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
d3147f64 7831
76419821
SS
78322004-09-21 Stan Shebs <shebs@apple.com>
7833
7834 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
7835 * config/rs6000/darwin-world.asm: Likewise.
d3147f64 7836
7bab95ba
DB
78372004-09-21 Daniel Berlin <dberlin@dberlin.org>
7838
7839 * tree-ssa.c (verify_def): Use print_generic_stmt,
7840 not debug_generic_stmt.
7841 (verify_use): Ditto.
7842 (verify_phi_args): Ditto.
7843 (verify_ssa): Ditto.
7844
a13fd905
PB
78452004-09-21 Paul Brook <paul@codesourcery.com>
7846
7847 * varasm.c (default_assemble_integer): Return false for values wider
7848 than the target word size. Works around GAS bug.
7849
52c5701b
ZW
78502004-09-21 Zack Weinberg <zack@codesourcery.com>
7851
7852 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
7853 gets value 0.
7854 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
7855 if it has value 0.
7856
f0c721ad 78572004-09-21 Daniel Berlin <dberlin@dberlin.org>
52c5701b 7858
f0c721ad
DB
7859 * c-typeck.c (build_function_call): Give name of object
7860 we are attempting to call in error message.
7861 * c-objc-common.c (c_tree_printer): Call pp_expression,
7862 not return false, for 'E' case.
7863
c93320c4
SB
78642004-09-21 Steven Bosscher <stevenb@suse.de>
7865
7866 PR rtl-optimization/17482
7867 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
7868 load_killed_in_block_p): Clarify comments.
7869 (record_last_reg_set_info): Make static inline.
7870 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
7871 (record_opr_changes): New function to replace the above.
7872 (compute_hash_table): Clarify comments. Use record_opr_changes.
7873 (reg_set_between_after_reload_p): Clean up.
7874 (reg_used_between_after_reload_p): Likewise.
7875 (eliminate_partially_redundant_load): Clarify comments.
7876
15ee342b
EB
78772004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
7878
7879 PR rtl-optimization/17266
7880 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
7881
79b82df3
UB
78822004-09-21 Uros Bizjak <uros@kss-loka.si>
7883
7884 PR rtl-optimization/14851
7885 * rtlanal.c (commutative_operand_precedence): Calculate
7886 precedence of stripped constant.
7887
6f2aec07 78882004-09-20 Jeff Law <law@redhat.com>
52c5701b 7889 Jan Hubicka <jh@suse.cz>
6f2aec07
JL
7890
7891 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
7892 initialize key elements here.
7893 (release_ssa_name): Zero the released SSA_NAME here.
7894 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
7895 (struct tree_ssa_name): Add new "equiv" field.
7896 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
7897 (tree_ssa_dominator_optimize): No longer allocate, resize or
7898 clear CONST_AND_COPIES.
7899 (get_value_for, set_value_for): Kill.
7900 (thread_across_edge): Get/set the equivalency using
7901 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
7902 (restore_vars_to_original_value): Likewise.
7903 (record_equivalences_from_phis): Likewise.
7904 (record_dominating_conditions): Likewise.
7905 (record_const_or_copy, record_equality): Likewise.
7906 (lookup_avail_expr): Likewise.
7907 (record_equivalences_from_stmt, cprop_operand): Likewise.
7908 (cprop_into_successor_phis): No longer need to pass around
7909 CONST_AND_COPIES. Callers updated. Get equivalences via
7910 SSA_NAME_EQUIV.
7911 (cprop_into_phis): Likewise.
7912
c162c75e
MA
79132004-09-20 Matt Austern <austern@apple.com>
7914 Zack Weinberg <zack@codesourcery.com>
7915
7916 * c-common.c (fix_string_type): Build the unqualified array
7917 type unconditionally, then use c_build_qualified_type to get
7918 the proper const-qualified variant, and set its
7919 TYPE_MAIN_VARIANT to refer to the unqualified type.
7920 * c-lex.c (c_lex_return_raw_string): New global.
7921 (c_lex_with_flags): Honor it.
7922 * c-pragma.h: Declare it.
7923
5cfa8766
DB
79242004-09-20 Daniel Berlin <dberlin@dberlin.org>
7925
7926 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
7927
d21bede3
JH
79282004-09-21 Jan Hubicka <jh@suse.cz>
7929
7930 PR middle-end/17126
7931 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
7932 (tree_rest_of_compilation): Cleanup.
7933
37337e55
UW
79342004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
7935
7936 * config/s390/s390.c (s390_select_rtx_section): Remove.
7937 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
7938
455786b6
KK
79392004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
7940
7941 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
7942 note to pretend a direct save from the original register when an
7943 intermediate register is used for the save.
7944
2c82eecc
KG
79452004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7946
7947 * tsystem.h (alloca): Provide a default definition.
7948
7949 Revert:
7950 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7951 * unwind-dw2.c: Call __builtin_alloca, not alloca.
7952
b1940f0c
AP
79532004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
7954
7955 PR tree-opt/17558
7956 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
7957 aliasing sets are the same rather than just conflicting.
7958
8f235343
JH
79592004-09-20 Jan Hubicka <jh@suse.cz>
7960
7961 PR middle-end/16460
7962
7963 * cgraph.c (cgraph_unnest_node): New function.
7964 (c_finalize): Rename to ....
7965 (c_warn_unused_result_recursivly): ... this one; do only the warning
7966 (finish_function): Finalize the toplevel function; do not lower nested tree.
7967 * cgraph.h (cgraph_unnest_node): Declare.
7968 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
7969 nestedness datastructure.
7970 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
7971 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
7972 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
7973
04161e2b
RH
79742004-09-20 Richard Henderson <rth@redhat.com>
7975
7976 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
7977 from some_small_symbolic_operand_1; export.
7978 (some_small_symbolic_operand): Remove.
7979 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
7980 extra C check.
7981 * config/alpha/predicates.md (some_small_symbolic_operand): New.
7982
bb033fd8
JH
79832004-09-20 Jan Hubicka <jh@suse.cz>
7984
7985 * predict.c (return_prediction): New function.
7986 (apply_return_prediction): Likewise.
7987 (tree_bb_level_predictions): Likewise.
7988 (tree_estimate_probability): Add noreturn exit edges; call
7989 bb_level_predictions; fix logic of return heuristics.
7990 (predict_paths_leading_to): Rescuesce from old CVS version of
7991 process_note_prediction function.
7992 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
7993
ea506297
AK
79942004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
7995
7996 * config/s390/s390.c (s390_frame_info): Added alignment statement for
7997 floating point register area on stack.
7998
096759eb
JJ
79992004-09-20 Jakub Jelinek <jakub@redhat.com>
8000
8001 * predict.c (expr_expected_value): Use *_CLASS_P macros.
8002
d6fd4b8d
DB
80032004-09-20 Daniel Berlin <dberlin@dberlin.org>
8004
c162c75e 8005 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
d6fd4b8d
DB
8006 generating useless garbage.
8007
c2dda19b
PB
80082004-09-20 Paolo Bonzini <bonzini@gnu.org>
8009
8010 * builtins.c (fold_builtin): Call the new omonymous
8011 target hook for machine-dependent built-ins.
8012 * target-def.h (TARGET_FOLD_BUILTIN): New.
8013 * target.h (struct gcc_target): Add the fold_builtin hook.
8014 * targhooks.c (default_fold_builtin): New.
8015 * targhooks.h (default_fold_builtin): Declare it.
8016
d4a9b3a3
KH
80172004-09-20 Kazu Hirata <kazu@cs.umass.edu>
8018
8019 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
8020 comment typos.
8021
073cbad3
RS
80222004-09-20 Richard Sandiford <rsandifo@redhat.com>
8023
8024 PR target/17565
8025 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
8026
58016611
JH
80272004-09-20 Jan Hubicka <jh@suse.cz>
8028
8029 * predict.c (estimate_probability): Remove unnecesary code.
8030
6775f1f3
IR
80312004-09-19 Ira Rosen <irar@il.ibm.com>
8032
8033 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
8034 (STMT_VINFO_VECT_DR_BASE): Declare.
8035 (VECT_SMODULO): Declare.
8036 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
8037 (vect_compute_array_base_alignment): New function.
8038 (vect_analyze_data_ref_access): Check array indices. Remove one
8039 dimensional arrays restriction.
8040 (vect_get_ptr_offset): New function.
8041 (vect_get_symbl_and_dr): New function.
8042 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
8043 (former name vect_get_base_decl_and_bit_offset).
8044 (vect_create_index_for_array_ref): Removed.
8045 (vect_create_index_for_vector_ref): New function.
8046 (vect_create_addr_base_for_vector_ref): New function.
8047 (vect_create_data_ref): Handle additional data refs. Call
8048 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
8049 (vect_compute_data_ref_alignment): Support the changes. Call
8050 vect_get_base_and_bit_offset.
8051 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
8052 data refs. Store vect_dr_base.
8053 (vect_analyze_data_ref_accesses): Support nonconstant init.
8054 (new_stmt_vec_info): Initialize vect_dr_base field.
8055 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
8056 (get_vectype_for_scalar_type): Check for BLKmode.
8057 * tree-chrec.h (initial_condition_in_loop_num): Declare.
8058 * tree-chrec.c (initial_condition_in_loop_num): New function.
8059 (chrec_component_in_loop_num): New function.
8060 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
8061 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
8062 to be pointer to varray_type.
8063
15db5571
JH
80642004-09-19 Jan Hubicka <jh@suse.cz>
8065
8066 * basic-block.h (update_bb_profile_after_threading): Declare.
8067 * cfg.c (update_bb_profile_after_threading): Break out from ...
8068 * cfgcleanup.c (try_forward_edges): ... here; use it.
8069 * tree-ssa-dom.c (thread_across_edge): Use it.
8070 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
8071 profile of the new BB.
8072
97141338
DB
80732004-09-19 Daniel Berlin <dberlin@dberlin.org>
8074
8075 * tree-ssa-pre.c (insert_into_set): Don't put
8076 is_gimple_min_invariant values into the set.
8077
76fd4fd7
AJ
80782004-09-19 Andreas Jaeger <aj@suse.de>
8079
8080 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
8081 prototype.
8082
938688cd
KH
80832004-09-18 Kazu Hirata <kazu@cs.umass.edu>
8084
8085 * config/cris/cris.h: Preserve the original spelling in a
8086 quote.
8087
fdabe5c2
JL
80882004-09-18 Jeff Law <law@redhat.com>
8089
8090 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
8091 global varrays to replace the block local varrays.
8092 (struct dom_walk_block_data): Remove, no longer used.
8093 (get_eq_expr_value): No longer need to pass around pointers to local
8094 varrays. Callers updated. Unused markers added to unused parameters.
8095 (record_range, record_equivalences_from_stmt): Likewise.
8096 (record_equivalences_from_incoming_edge): Likewise.
8097 (record_var_is_nonzero): Likewise. Update now that we have a
8098 single global varray of SSA_NAMEs that need restoring.
8099 (dom_opt_initialize_block_local_data): Kill, no longer used.
8100 (tree_ssa_dominator_optimize): Initialize new global varrays.
8101 Update callbacks in dominator walker structure.
8102 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
8103 VRP_VARIABLES_STACK.
8104 (restore_nonzero_vars_to_original_value): Update now that we have
8105 a single global varray of SSA_NAMEs that need restoring.
8106 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
8107 Remove unused variables.
8108 (optimize_stmt): Remove unused variable.
8109
0eac5feb
JH
81102004-09-18 Jan Hubicka <jh@suse.cz>
8111
4d539f68
JH
8112 * tree-cfg.c (thread_jumps): Fix updating of the profile.
8113
0eac5feb
JH
8114 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
8115 verify_cgraph call.
8116
454ff5cb
KH
81172004-09-18 Kazu Hirata <kazu@cs.umass.edu>
8118
8119 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
8120 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
8121 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
8122 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
8123 tree-ssa-operands.c, tree-ssa-phiopt.c,
8124 tree-ssa-threadupdate.c: Fix comment typos.
8125
112cdef5
KH
81262004-09-18 Kazu Hirata <kazu@cs.umass.edu>
8127
8128 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
8129 config/arm/README-interworking, config/arm/arm-cores.def,
8130 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
8131 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
8132 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
8133 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
8134 config/frv/frv.md, config/i386/winnt.c,
8135 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
8136 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
8137 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
8138 config/mcore/mcore.c, config/mips/mips.h,
8139 config/mn10300/mn10300.md, config/pa/pa.c,
8140 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
8141 config/rs6000/rs6000.c, config/sh/symbian.c,
8142 config/sparc/sparc.h: Fix comment typos. Follow spelling
8143 conventions.
8144
ad97f4be
JM
81452004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
8146
8147 PR c/17424
8148 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
8149
57e28d7d
DN
81502004-09-18 Diego Novillo <dnovillo@redhat.com>
8151
8152 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
8153 remove TREE_ADDRESSABLE from RESULT_DECL.
8154
d804d490
DN
81552004-09-18 Diego Novillo <dnovillo@redhat.com>
8156
8157 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
8158
8b547e44
JH
81592004-09-18 Jan Hubicka <jh@suse.cz>
8160
8161 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
8162 NULL.
8163 * tree-ssa-alias.c (init_alias_info): Likewise.
8164 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
8165 (verify_ssa): Likewise.
8166 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
8167
b8771ace
JH
81682004-09-18 Jan Hubicka <jh@suse.cz>
8169
8170 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
8171 huge offset.
8172
f4966f8c
KK
81732004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
8174
8175 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
8176 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
8177 DW_EH_PE_sdata* for data.
8178 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8179
a396f8ae
GK
81802004-09-17 Geoffrey Keating <geoffk@apple.com>
8181
8182 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
8183 shared anyway.
8184
8185 PR pch/13361
8186 * c-typeck.c (constructor_asmspec): Delete.
8187 (struct initializer_stack): Delete field 'asmspec'.
8188 (start_init): Delete saving of asmspec.
8189 (finish_init): Don't update constructor_asmspec.
8190 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
8191 * stmt.c (expand_asm): Duplicate strings from tree.
8192 (expand_asm_operands): Likewise.
8193 * tree.c (tree_size): Update computation of size of STRING_CST.
8194 (make_node): Don't make STRING_CST nodes.
8195 (build_string): Allocate string with tree node.
8196 (tree_code_size): Clean up assertions, don't allow requests
8197 for "the size of a STRING_CST".
8198 * tree.def (STRING_CST): Update comment.
8199 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
8200 (tree_string): Place contents of string in tree node.
8201 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
8202 from tree.
8203
9aa44508
ZW
82042004-09-17 Zack Weinberg <zack@codesourcery.com>
8205
8206 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
8207 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
8208
bf3b7cd3
JD
82092004-09-17 Jones Desougi <jones@ingate.com>
8210
8211 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
8212 * configure, config.in: Regenerate.
8213
b85e3643
ZW
82142004-09-17 Zack Weinberg <zack@codesourcery.com>
8215
8216 * tree.c, tree.h (tree_class_strings): Make array const.
8217 Reindent per coding convention. Move asterisk to proper place
8218 per coding convention.
8219
6e336333
AS
82202004-09-18 Andreas Schwab <schwab@suse.de>
8221
8222 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
8223 (tree-vectorizer.o): Likewise.
8224 (targhooks.o): Likewise.
8225
6615c446
JO
82262004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
8227 Zack Weinberg <zack@codesourcery.com>
8228
8229 * alias.c (find_base_decl): Remove unreachable case '3' block.
8230 * expr.c (safe_from_p): Abort if passed a type.
8231 * tree-gimple.c (recalculate_side_effects): Abort if passed
8232 anything other than an expression.
8233 * tree-ssa-pre.c (phi_translate): Return expr immediately if
8234 is_gimple_min_invariant is true for it. Reorder cases for clarity.
8235 Abort on un-handled tree classes.
8236 (valid_in_set): Likewise.
8237 * tree.c (tree_code_class_strings): New static data.
8238
8239 * tree.h (enum tree_code_class): New.
8240 (tree_code_class_strings): Declare.
8241 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
8242 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
8243 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
8244 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
8245 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
8246
8247 * tree.def, c-common.def, objc/objc-tree.def: Use
8248 tree_code_class enumeration constants instead of code letters.
8249
8250 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
8251 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
8252 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
8253 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
8254 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
8255 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
8256 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
8257 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
8258 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
8259 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
8260 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
8261 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
8262 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
8263 Update to match.
8264
8265 * LANGUAGES: Add note about change.
8266
823f0809
DN
82672004-09-17 Diego Novillo <dnovillo@redhat.com>
8268
8269 PR tree-optimization/17319
8270 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
8271 examine pointers on the LHS of an assignment.
8272 (collect_points_to_info_r): Handle RETURN_EXPR.
8273
b5fefcf6
JL
82742004-09-17 Jeff Law <law@redhat.com>
8275
8276 * tree-ssa-dom.c (const_and_copies_stack): New.
8277 (dom_walk_block_data): Remove const_and_copies field.
8278 (record_const_or_copy): No longer need to pass in varray_type *.
8279 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
8280 Callers updated.
8281 (record_equality): Similarly.
8282 (restore_vars_to_original_value): Similarly. Revamp to use new
8283 single global stack rather than per-block stacks.
8284 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
8285 (thread_across_edge): Remove now unused parameters.
8286 (dom_opt_initialize_block_local_data): No longer test the block
8287 local CONST_AND_COPIES.
8288 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
8289
2c459e74
JH
82902004-09-17 Jan Hubicka <jh@suse.cz>
8291
8292 PR tree-optimization/17509
8293 * tree-optimize.c (update_inlined_to_pointers): New function.
8294 (tree_rest_of_compilation): Use it.
8295
0456cbf6
DP
82962004-09-17 Devang Patel <dpatel@apple.com>
8297
8298 * dbxout.c (get_lang_number): New.
8299 (dbxout_init): Include lang number in N_SO stab.
8300 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
8301 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
6615c446 8302
7eae8eb2
DN
83032004-09-17 Diego Novillo <dnovillo@redhat.com>
8304
8305 PR tree-optimization/17273
8306 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
8307 replacement is a constant.
8308
98c3a782
JM
83092004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
8310
8311 * c-tree.h (enum c_typespec_keyword): New.
8312 (struct c_declspecs): Adjust description of "type". Remove
8313 specbits, explicit_int_p and explicit_char_p. Rename
8314 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
8315 short_p, signed_p, unsigned_p and complex_p.
8316 (finish_declspecs): New.
8317 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
8318 typename): Call finish_declspecs.
8319 * c-decl.c (finish_declspecs): New.
8320 (declspecs_add_type): Check for combinations which cannot occur in
8321 valid specifier lists. Update comments.
8322 (shadow_tag_warned): Remove checks done in finish_declspecs.
8323 Don't report useless type name if type defaulted to int.
8324 (grokdeclarator): Remove checks and actions done in
8325 finish_declspecs. Don't allow for type being NULL. Update for
8326 datastructures changes. Initialize decl_attr.
8327 (build_null_declspecs, quals_from_declspecs): Update for
8328 datastructures changes.
8329
254ea84c
SP
83302004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
8331
6615c446 8332 * doc/extend.texi: Fix duplicated word.
254ea84c 8333
fa151acf
TM
83342004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
8335
8336 * doc/invoke.texi: Remove stray explanation on
8337 -freduce-all-givs and -fmove-all-movables.
8338
cd1a8088
JM
83392004-09-17 James Morrison <phython@gcc.gnu.org>
8340
8341 * doc/cfg.texi: Use @smallexample.
8342 * doc/md.texi: Likewise.
8343 * doc/tree-ssa.texi: Likewise.
8344 * doc/extend.texi: Likewise. Use @r{} in comments.
8345 * doc/trouble.texi: Use @r{} in comments.
8346
58ea87a9
HPN
83472004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
8348
8349 * configure.ac (gcc_cv_gld_version): Handle whitespace before
8350 "VERSION=".
8351 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
8352 * configure: Regenerate.
8353
788bb47d
JR
83542004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
8355
8356 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
8357 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
8358 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
8359 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
8360 slashes in substitutions.
8361 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
8362
b01d837f
KH
83632004-09-17 Kazu Hirata <kazu@cs.umass.edu>
8364
8365 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
8366 gimplify.c, lambda-code.c, optabs.c, predict.c,
8367 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
8368 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
8369 conventions.
8370
4ec7afd7
KH
83712004-09-17 Kazu Hirata <kazu@cs.umass.edu>
8372
8373 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
8374 doc/extend.texi, doc/install.texi, doc/invoke.texi,
8375 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
8376 doc/trouble.texi: Use @option around options.
8377
6eab2bc3
RS
83782004-09-17 Richard Sandiford <rsandifo@redhat.com>
8379
8380 * Makefile.in (gen-protos.o): Depend on errors.h.
8381
275a4187
SB
83822004-09-17 Steven Bosscher <stevenb@suse.de>
8383
6615c446 8384 PR tree-optimization/17513
275a4187
SB
8385 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
8386 for successors of the entry block.
8387
b355f222
UB
83882004-09-17 Uros Bizjak <uros@kss-loka.si>
8389
8390 PR rtl-optimization/15187
8391 * ifcvt.c (noce_try_cmove_arith): Exit early if total
8392 insn_rtx_cost of both branches > BRANCH_COST
8393
7a116211
DN
83942004-09-16 Diego Novillo <dnovillo@redhat.com>
8395
8396 PR tree-optimization/17528
8397 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
8398 erase the may-alias set for a tag when merging it with
8399 another.
8400
e57450ce
KK
84012004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
8402
8403 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
8404 for 32-bit TARGET_SHMEDIA.
8405 (call_value): Likewise.
8406
1800536a
DN
84072004-09-16 Diego Novillo <dnovillo@redhat.com>
8408
8409 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
8410 test apply only to TREE_STATIC and DECL_EXTERNAL.
8411
42759f1e
ZD
84122004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8413
8414 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
8415 * basic-block.h (get_dominated_by_region): Declare.
8416 * dominance.c (get_dominated_by_region): New function.
8417 * tree-cfg.c: Include cfglayout.h.
8418 (tree_duplicate_bb): Duplicate also phi nodes.
8419 (struct ssa_name_map_entry): New type.
8420 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
8421 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
8422 allocate_ssa_names, rewrite_to_new_ssa_names_def,
8423 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
8424 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
8425 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
8426 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
8427 rewrite_to_new_ssa_names, allocate_ssa_names,
8428 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
8429 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
8430 (copy_loop_headers): Use tree_duplicate_sese_region.
8431
2731cf24
FCE
84322004-09-16 Frank Ch. Eigler <fche@redhat.com>
8433
8434 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
8435
9fae925b
JL
84362004-09-16 Jeff Law <law@redhat.com>
8437
8438 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
8439 (rewrite_block_data): Remove, no longer used.
8440 (rewrite_initialize_block_local_data): Remove, no longer used.
8441 (rewrite_initialize_block): Mark parameters as unused as needed.
8442 Change references to the block local block_defs to be block_defs_stack.
8443 Push a marker onto the block_defs_stack.
8444 (ssa_rewrite_initialize_block): Similarly.
8445 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
8446 (ssa_register_new_def): No longer needs varray argument. Use
8447 block_defs_stack instead. No longer handle possibly null block_defs
8448 varray. Reverse order of items we push on the stack to make it
8449 easier to identify our marker.
8450 (register_new_def): No longer handle possibly null block_defs
8451 varray.
8452 (rewrite_finalize_block): Revamp to look for markers in the global
8453 block_defs_stack varray rather than wiping a block local varray.
8454 Mark arguments as unused as needed.
8455 (ssa_rewrite_finalize_block): Similarly.
8456 (rewrite_into_ssa): Update initialization of dom walker structure
8457 to reflect that we don't need block local data anymore. Initialize
8458 the block_defs_stack varray.
8459 (rewrite_ssa_into_ssa): Similarly.
8460 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
8461 (struct dom_walk_data): Kill block_defs field.
8462 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
8463 (thread_across_edge): Use the global block_defs_stack instead of
8464 the old block_defs varray.
8465 (dom_opt_initialize_block_local_data): Update now that we don't have
8466 block_defs field to check anymore.
8467 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
8468 (restore_currdefs_to_original_value): Use the new block_defs_stack
8469 instead of a block local varray.
8470 (dom_opt_finalize_block): Similarly.
8471 (record_equivalencs_from_phis): Similarly.
8472 (optimize_stmt, register_definitions_for_stmt): Similarly.
8473
49f48e9f
AM
84742004-09-16 Andrew MacLeod <amacleod@redhat.com>
8475
8476 PR tree-optimization/17517
6615c446 8477 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
49f48e9f
AM
8478 coalesce same-root variables without checking for abnormal PHI usage.
8479
f67d92e9 84802004-09-16 Daniel Berlin <dberlin@dberlin.org>
6615c446 8481
f67d92e9
DB
8482 * cfgloop.h (duplicate_loop): Add prototype.
8483 * cfgloopmanip.c (duplicate_loop): Make non-static.
8484 * lambda-code.c (perfect_nestify): Factor out test whether
8485 we can handle this loop into separate function.
8486 Call it.
8487 (can_convert_to_perfect_nest): New function.
8488 (replace_uses_of_x_with_y): Add modify_stmt call.
8489 * tree-loop-linear.c (linear_transform_loops): Call
8490 rewrite_into_loop_closed_ssa and free_df.
8491
84922004-09-16 Daniel Berlin <dberlin@dberlin.org>
8493
8494 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
8495 loop invariant as well.
8496 (perfect_nestify): new function.
8497 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
6615c446 8498 upper bounds, and steps.
f67d92e9
DB
8499 Set outerinductionvar properly.
8500 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
8501 parameters.
8502 Return NULL if we need a perfect loop and can't make one.
8503 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
8504 (not_interesting_stmt): New function.
8505 (phi_loop_edge_uses_def): Ditto.
8506 (stmt_uses_phi_result): Ditto.
8507 (stmt_is_bumper_for_loop): Ditto.
8508 (perfect_nest_p): Ditto.
8509 (nestify_update_pending_stmts): Ditto.
8510 (replace_uses_of_x_with_y): Ditto.
8511 (stmt_uses_op): Ditto.
8512 (perfect_nestify): Ditto.
8513 * lambda-mat.c (lambda_matrix_id_p): New function.
8514 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
8515 * lambda.h: Update prototypes.
8516 * tree-loop-linear (linear_transform_loop): Use new
8517 perfect_nest_p. Detect and ignore identity transform.
8518 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
8519
85202004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
8521
8522 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
6615c446 8523 Gather also strides of accessed data. Pass in the data references
f67d92e9 8524 array.
6615c446 8525 (try_interchange_loops): Add a new heuristic for handling the temporal
f67d92e9
DB
8526 locality. Pass in the data references array.
8527 (linear_transform_loops): Pass the data references array to
8528 try_interchange_loops.
8529
83c99486
KH
85302004-09-16 Kazu Hirata <kazu@cs.umass.edu>
8531
8532 * doc/invoke.texi: Fix typos. Follow spelling conventions.
8533
4b30ad7e
NS
85342004-09-16 Nathan Sidwell <nathan@codesourcery.com>
8535
8536 * doc/c-tree.texi (Classes): Remove index entries for
8537 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
8538
2f4675b4
ZD
85392004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8540
8541 * fold-const.c (fold): Fold difference of addresses.
8542 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
8543 get_inner_reference.
8544 * tree-ssa-loop-ivopts.c (peel_address): Removed.
8545 (ptr_difference_const): Moved to fold-const.c.
8546 (split_address_cost): Use get_inner_reference instead of peel_address.
8547 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
8548 * tree.h (ptr_difference_const): Export.
8549
8550 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
8551 variable type to the dump. Fix indentation.
8552 (idx_find_step): Handle nonconstant array_ref_element_size and
8553 array_ref_low_bound.
8554 (idx_record_use): Handle array_ref_element_size and
8555 array_ref_low_bound.
8556 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
8557 statements correctly.
8558 (get_computation_at, iv_value): Do not unshare expressions here.
8559 (rewrite_use_outer): Unshare the expression before it is emitted
8560 to code.
8561 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
8562 Moved to tree.c.
8563 * tree.c (unsigned_type_for, signed_type_for): Moved from
8564 tree-ssa-loop-niter.c. Use langhooks.
8565 * tree.h (signed_type_for): Export.
8566
8210e4c4
DE
85672004-09-16 David Edelsohn <edelsohn@gnu.org>
8568
8569 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
8570 prototype.
8571
3dd53121
AP
85722004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
8573
8574 PR target/11572
8575 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
8576 Add two parameters to extra_includes.
8577 (C_INCPATH_INIT): Remove.
8578 * c-incpath.c (register_include_chains): Call extra_pre_includes
8579 before adding the standard include directory.
8580 Update call to extra_includes.
8581 (!defined TARGET_EXTRA_INCLUDES): Update
8582 hook_void_charptr_charptr_int and add !define
8583 TARGET_EXTRA_PRE_INCLUDES.
8584 (!define TARGET_EXTRA_INCLUDES): Define as
8585 hook_void_charptr_charptr_int.
8586 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
8587 (target_c_incpath): Always declare.
8588 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
8589 empty function.
8590 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
8591 * config/darwin.h: (darwin_register_frameworks): Update for
8592 the two new parameters.
8593 (darwin_register_objc_includes): Add prototype.
8594 (TARGET_EXTRA_PRE_INCLUDES): Define.
8595 * config/darwin-c.c (darwin_register_objc_includes): New function.
8596 (darwin_register_frameworks): Update for the two new parameters.
8597 (target_c_incpath): Remove.
8598 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
8599 the compile line.
8600 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
8601 parameters.
8602 (TARGET_EXTRA_PRE_INCLUDES): Document.
8603
8604 * gcc.c (spec_function): Add replace-outfile.
8605 (replace_outfile_spec_function): New function.
8606 * config/darwin.h (LINK_SPEC): Add replace
8607 -lobjc with -lobjc-gnu if -fgnu-runtime is
8608 supplied.
8609 * invoke.texi (replace-outfile): Document.
8610
42f97fd2
JH
86112004-09-13 Jan Hubicka <jh@suse.cz>
8612
8613 * predict.c (expr_expected_value, strip_builtin_expect): New function.
8614 (tree_predict_by_opcode): Use it.
8615 (tree_estimate_probability): Add, for now disabled,
8616 strip_builtin_expect call.
8617
097f3d48
JW
86182004-09-15 James E Wilson <wilson@specifixinc.com>
8619
8620 PR target/17455
8621 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
8622 if current_function_decl is a sibcall.
8623
04a75188
MM
86242004-09-15 Mark Mitchell <mark@codesourcery.com>
8625
8626 * varasm.c (default_function_rdodata_section): Make sure to pass
8627 along a decl for a link-once section.
8628
e776368b
RH
86292004-09-15 Richard Henderson <rth@redhat.com>
8630
8631 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
8632 warning with code disable. Fix formatting.
8633
c7f90219
SB
86342004-09-15 Steven Bosscher <stevenb@suse.de>
8635
8636 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
8637 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
6615c446 8638 after propagating into an ADDR_EXPR.
c7f90219 8639
2f021b67
AP
86402004-09-15 Andrew Pinski <apinski@apple.com>
8641
8642 PR rtl-opt/17427
8643 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
8644 Move it out of gcc_assert.
8645
971801ff
JM
86462004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
8647
8648 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
8649 except.c, fold-const.c, function.c, langhooks.c, params.c,
8650 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
8651 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
8652 for quoting in diagnostics going through pretty-print.c. Use ''
8653 for quoting in other diagnostic text.
8654 * langhooks.c: Include intl.h. Mark text locating diagnostics for
8655 translation.
8656 * Makefile.in (langhooks.o): Update dependencies.
8657 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
8658 formats.
8659
c18a5b6c
MM
86602004-09-15 Mark Mitchell <mark@codesourcery.com>
8661
8662 * configure.ac: Check for COMDAT support. Robustify check for
8663 SHF_MERGE support.
8664 * configure: Regenerated.
8665 * config.in: Likewise.
8666 * langhooks-def.h (lhd_comdat_group): New function.
8667 (LANG_HOOKS_COMDAT_GROUP): New macro.
8668 (LANG_HOOKS_DECLS): Use it.
8669 * langhooks.c (lhd_comdat_group): Define.
8670 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
8671 * output.h (named_section_flags): Make it a macro.
8672 (named_section_real): New function.
8673 (default_no_named_section): Add decl parameter.
8674 (default_elf_asm_named_section): Likewise.
8675 (default_coff_asm_named_section): Likewise.
8676 (default_pe_asm_named_section): Likewise.
8677 * target.h (gcc_target): Adjust type of named_section.
8678 * varasm.c (named_section_flags): Rename to named_section_real.
8679 Add decl parameter.
8680 (default_no_named_section): Add decl parameter.
8681 (default_elf_asm_named_section): Use COMDAT, if available. Deal
8682 with the case that ASM_COMMENT_START is "@".
8683 (default_coff_asm_named_section): Add decl parameter.
8684 (default_pe_asm_named_section): Likewise.
8685 * config/alpha/alpha.c (vms_asm_named_section): Add decl
8686 parameter.
8687 (unicosmk_asm_named_section): Likewise.
8688 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
8689 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
8690 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
8691 * config/cris/cris-protos.h (cris_target_asm_named_section):
8692 Likewise.
8693 * config/cris/cris.c (cris_target_asm_named_section):
8694 Likewise.
8695 * config/darwin/darwin-protos.h (darwin_asm_named_section):
8696 Likewise.
8697 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
8698 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
8699 * config/i386/i386-protos.h (i386_pe_asm_named_section):
8700 Likewise.
8701 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
8702 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
8703 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
8704 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
8705 Likewise.
8706 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
8707 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
8708 * cp/cp-tree.h (cxx_comdat_group): Declare.
8709 * cp/decl.c (cxx_comdat_group): New function.
8710
fe7139ac
JH
87112004-09-15 Jan Hubicka <jh@suse.cz>
8712
87527e4b
JH
8713 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
8714 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
8715
fe7139ac
JH
8716 * tree-cfg.c (remove_bb): Release SSA defs.
8717
1a141fe1
KH
87182004-09-15 Kazu Hirata <kazu@cs.umass.edu>
8719
8720 * doc/tm.texi: Follow spelling conventions.
8721
b3a27618
KH
87222004-09-15 Kazu Hirata <kazu@cs.umass.edu>
8723
8724 * tree-ssa-dom.c: Fix comment typos.
8725
43e7c6a4
AM
87262004-09-15 Alan Modra <amodra@bigpond.net.au>
8727
8728 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
8729 include ccr.
8730 (ppc_fallback_frame_state): Save location of CR.
8731
9a520f40
JJ
87322004-09-15 Jakub Jelinek <jakub@redhat.com>
8733
a45f71f5
JJ
8734 * expr.c (string_constant): Handle also read-only variables
8735 initialized to string literals.
8736
9a520f40
JJ
8737 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
8738 into memcpy (x, y, 1) if memcpy can be expanded inline.
8739
b1d16eff
ZD
87402004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8741
8742 PR tree-optimization/17468
8743 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
8744 definition inside a block precede uses.
8745 * tree-tailcall.c (adjust_return_value): Emit statements in the
8746 correct order.
8747
36579192
RS
87482004-09-15 Richard Sandiford <rsandifo@redhat.com>
8749
8750 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
8751
7c2f2b41
EB
87522004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
8753
8754 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
8755
a5c965c1
JL
87562004-09-14 Jeff Law <law@redhat.com>
8757
48732f23
JL
8758 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
8759 (struct dom_walk_block_data): Remove avail_exprs member.
8760 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
8761 (lookup_avail_expr): No longer need to pass in address of
8762 the block local available exprs stack. All callers changed.
8763 (simplify_cond_and_lookup_avail_expr): Similarly.
8764 (simplify_switch_and_lookup_avail_expr): Similarly.
8765 (get_eq_expr_value, record_cond): Likewise.
8766 (record_dominating_conditions): Likewise.
8767 (update_rhs_and_lookup_avail_expr): Likewise.
8768 (record_equivalences_from_stmt): Likewise.
8769 (dom_opt_initialize_block_local_data): No longer test state of
8770 block local avail_exprs.
8771 (dom_opt_initialize_block): Mark unwind point in the global
8772 avail_expr stack.
8773 (remove_expressions_from_table): Update to unwind to the
8774 most recent unwind marker in the global avail_expr stack.
8775 All callers changed.
8776 (dom_opt_finalize_block): Mark unwind point in the global
8777 avail_expr stack as needed.
8778 (record_cond): Push elements into the global avail_exprs stack.
8779
a5c965c1
JL
8780 * tree-dfa.c (free_df_for_stmt): No longer static.
8781 (free_df): Update comments.
8782 * tree-flow.h (free_df_for_stmt): Prototype.
8783 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
8784 call release_defs.
8785
391f9afb
DN
87862004-09-14 Diego Novillo <dnovillo@redhat.com>
8787
8788 PR tree-optimization/17252
8789 * tree-ssa-alias.c (may_alias_p): Don't assume that a
8790 pointer may not point to itself when using relaxed
8791 aliasing rules.
8792
67f23620
RH
87932004-09-14 Richard Henderson <rth@redhat.com>
8794
8795 PR middle-end/17397
8796 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
8797 while folding <ADDR_EXPR <INDIRECT_REF X>>.
8798
5ffcd779
AP
87992004-09-14 Andrew Pinski <apinski@apple.com>
8800
8801 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
8802 sets of the pointers but the aliasing sets of what they point to.
8803
f6ae6c51
RS
88042004-09-14 Roger Sayle <roger@eyesopen.com>
8805
8806 PR rtl-optimization/9771
8807 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
8808 conditional compilation in init_reg_sets_1.
8809 (init_reg_sets_1): Let global_regs[i] take priority over the frame
8810 (but not stack) pointer exceptions to regs_invalidated_by_call.
8811 (globalize_reg): Globalizing a fixed register may need to update
8812 regs_invalidated_by_call.
8813
1810f6ed
DN
88142004-09-14 Diego Novillo <dnovillo@redhat.com>
8815
8816 PR tree-optimization/15262
8817 * tree-dfa.c (dump_variable): Also print the type of the
8818 variable.
8819 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
8820 memory tags are of conflicting alias sets but have no aliased
8821 symbols in common, add one tag to the alias set of the other.
8822 (setup_pointers_and_addressables): Remove hack to deal with
8823 programs with no aliased symbols.
8824 (may_alias_p): Don't special case aggregate types.
8825
0e6d31fb
JM
88262004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
8827
8828 PR c/15498
8829 * doc/invoke.texi (Environment Variables): Correct example locale.
8830
ab3b6795
JH
88312004-09-14 Jan Hubicka <jh@suse.cz>
8832
8833 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
8834
0c0f8409
MM
88352004-09-14 Mark Mitchell <mark@codesourcery.com>
8836
8837 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
8838
3b53cddc
JM
88392004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
8840
8841 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
8842 restrict_p.
8843 (struct c_declarator): Change u.array.quals and pointer_quals to
8844 int. Add u.array.attrs.
8845 (quals_from_declspecs): New.
8846 * c-decl.c (quals_from_declspecs): New.
8847 (shadow_tag_warned): Give more specific message for useless type
8848 qualifiers.
8849 (build_array_declarator, set_array_declarator_inner,
8850 grokdeclarator, make_pointer_declarator, build_null_declspecs,
8851 declspecs_add_qual): Update for changed structures.
8852
a6e1aa26
JL
88532004-09-14 Jeff Law <law@redhat.com>
8854
8855 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
6615c446 8856 to a global varray.
a6e1aa26
JL
8857 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
8858 (dom_opt_initialize_block_local_data): No longer test state
8859 of stmts_to_rescan.
8860 (dom_opt_finalize_block): Update due to change in scope of
8861 stmts_to_rescan.
8862 (optimize_stmt): Similarly.
8863
8e3c61c5
KH
88642004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8865
8866 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
8867 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
8868 comment typos. Follow spelling conventions.
8869
0e40b5f2
KH
88702004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8871
8872 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
8873 config/i386/predicates.md, config/sparc/sparc.c: Follow
8874 spelling conventions.
8875
113d659a
ZD
88762004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8877 Steven Bosscher <stevenb@suse.de>
8878
8879 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
8880 * basic-block.h (struct reorder_block_def): Add copy_number field.
8881 * cfgloop.h (biv_p): Declare.
8882 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
8883 * common.opt (fsplit-ivs-in-unroller): New flag.
8884 * loop-iv.c (biv_p): New function.
8885 * loop-unroll.c: Include hashtab.h and recog.h.
8886 (struct iv_to_split, struct split_ivs_info): New types.
8887 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
8888 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
8889 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
8890 insert_base_initialization, split_iv): New functions.
8891 (peel_loop_completely, unroll_loop_constant_iterations,
8892 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
8893 Use them.
8894 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
8895
d840495b
ZD
88962004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8897
8898 * tree-cfg.c (thread_jumps): Update dominators correctly in
8899 case destination of threaded edge dominates its source.
8900
c94583fe
ZD
89012004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8902
8903 * unroll.c: Removed.
8904 * loop.h: Removed.
8905 * Makefile.in (LOOP_H, unroll.o): Removed.
8906 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
8907 dependency.
8908 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
8909 reference.
8910 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
8911 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
8912 * loop.c: Do not include loop.h.
8913 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
8914 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
8915 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
8916 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
8917 struct loop_regs, struct loop_movables, struct loop_info): Moved
8918 from loop.h.
8919 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
8920 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
8921 find_common_reg_term, loop_iterations, final_giv_value): Moved
8922 from unroll.c.
8923 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
8924 loop_dump_stream, for_each_insn_in_loop, express_from,
8925 extend_value_for_giv, loop_iv_add_mult_emit_before,
8926 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
8927 loop_insn_first_p, get_condition_for_loop,
8928 loop_insn_emit_before, loop_insn_hoist,
8929 loop_insn_sink): Made static.
8930 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
8931 reference.
8932 (strength_reduce): Do not call unroller.
8933 (record_giv): Do not initialize unrolled field.
8934 (prescan_loop): Do not set loop_info->preconditioned.
8935 * passes.c: Do not include loop.h.
8936 (rest_of_handle_loop_optimize): Do not call unroller.
8937 * predict.c: Do not include loop.h.
8938 * rtl.h (NOTE_PRECONDITIONED): Removed.
8939 * stmt.c: Do not include loop.h.
8940 * toplev.c: Do not include loop.h.
8941 (process_options): Do not handle flag_old_unroll_loops.
8942
8943 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
8944 Documentation removed.
8945 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
8946
03261822
NS
89472004-09-14 Nathan Sidwell <nathan@codesourcery.com>
8948
8949 * Makefile.in (STAGE1_CHECKING): New variable.
8950 (stage1_build): Use it.
8951 * tree-ssa.c (verify_ssa): Preserve state of dominance
8952 information.
8953
869d095e
UB
89542004-09-14 Uros Bizjak <uros@kss-loka.si>
8955
8956 * config/i386/i386.c (output_fp_compare): Add generation
8957 of ftst instruction.
8958 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
8959 Use output_fp_compare () function.
8960 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
8961 (fix_truncdi_memory): Remove operands[5] copy.
8962
19525b57
KH
89632004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8964
8965 * config/m32r/m32r.md, config/m68k/m68kelf.h,
8966 config/mcore/mcore.md, config/rs6000/linux64.h,
8967 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
8968 typos.
8969
a140c081
JW
89702004-09-13 James E Wilson <wilson@specifixinc.com>
8971
8972 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
8973 * gen-protos.c: Include errors.h.
8974 (progname): Delete.
8975
b6acab32
JH
89762004-09-14 Jan Hubicka <jh@suse.cz>
8977
8978 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
8979 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
8980 (predict_loops): Use number_of_iterations_exit to predict
8981 number of iterations on trees.
8982
c1bbfd3c
DJ
89832004-09-13 Dale Johannesen <dalej@apple.com>
8984
8985 PR 17408
8986 PR 17409
8987 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
8988 objects declared extern.
8989
b9705a21
PB
89902004-09-14 Paul Brook <paul@codesourcery.com>
8991
8992 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
8993 HOST_WIDE_INT.
8994
b9193259
DJ
89952004-09-13 Daniel Jacobowitz <dan@debian.org>
8996
8997 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
8998 Only use TYPE_BINFO for aggregates.
8999
3ab0f290
DJ
90002004-09-13 Daniel Jacobowitz <dan@debian.org>
9001
9002 * expmed.c (synth_mult): Initialize latency. Check cost before
9003 checking ops count.
9004
fa9be75f 90052004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
6674a6ce 9006
6674a6ce
KZ
9007 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
9008 add_call_clobber_ops and add_call_read_ops.
9009 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
9010 the number of vdefs and vuses inserted based on analysis of global
9011 variables across calls. * tree-dfa.c (find_referenced_vars):
9012 Needed to reset static var maps before each function is compiled.
9013 * cgraphunit.c:
9014 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
9015 static_vars_info,functions_to_static_vars_info,module_statics_escape,
9016 all_module_statics,searchc_env,dfs_info): New fields to support
9017 analysis of static global variables.
9018 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
9019 cgraph_reset_static_var_maps, get_global_static_vars_info,
9020 get_global_statics_not_read, get_global_statics_not_written,
9021 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
9022 check_rhs_var, check_lhs_var, get_asm_expr_operands,
9023 process_call_for_static_vars, scan_for_static_refs,
9024 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
9025 clear_static_vars_maps, cgraph_propagate_bits,
9026 cgraph_characterize_statics): New. Functions to support analysis
9027 of static global variables.
9028 (cgraph_mark_local_and_external_functions): Renamed from:
9029 (cgraph_mark_local_functions)
9030 (cgraph_expand_all_functions): Remove call to
9031 cgraph_mark_local_and_external_functions.
9032 (cgraph_optimize): Added driver to analyze static variables whose
9033 scope is within the compilation unit. * cgraph.h (struct
9034 cgraph_local_info, GTY): Added statics_read, statics_written,
9035 local, calls_read_all, calls_write_all, for_functions_valid.
9036 (struct cgraph_node): Added next_cycle. * cgraph.c
9037 (dump_cgraph_node): Added print routines for new fields. *
9038 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
9039 list.
9040
61f4f1cc
JM
90412004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
9042
9043 * c-decl.c (grokdeclarator): Correct comments about where storage
9044 class specifiers are rejected by grammar and add corresponding
9045 asserts. Diagnose typedefs and parameters declared inline.
9046 Change warning for inline main to a pedwarn. Only diagnose inline
9047 main if hosted.
9048 (declspecs_add_scspec): Allow duplicate "inline".
9049
88ed5ef5
SE
90502004-09-13 Steve Ellcey <sje@cup.hp.com>
9051
9052 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
9053 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
9054
a5bfe141
RH
90552004-09-13 Richard Henderson <rth@redhat.com>
9056
9057 PR 17436
9058 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
9059 (tree_type): Replace spare with contains_placeholder_bits.
9060 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
9061 make static. Remove seen_types list.
9062 (type_contains_placeholder_p): New.
9063
1823bf53
JW
90642004-09-13 James E Wilson <wilson@specifixinc.com>
9065
9066 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
9067 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
9068 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
9069 bdesc_arrays instead of mips_bdesc.
9070 (mips_init_builtins): Likewise.
9071 * config/mips/mips.h (TARGET_SB1): New.
9072 (HAVE_SQRT_P): Delete.
9073 * config/mips/mips.md (divide_condition): Support V2SF.
9074 (sqrt_condition, recip_condition): New.
9075 (div<mode>3): Use ANYF instead of SCALARF.
9076 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
9077 MODE.
9078 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
9079 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
9080 instead of MODE.
9081 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
9082 instead of SCALARF. Use UNITMODE instead of MODE.
9083
c8a52525
ZW
90842004-09-13 Zack Weinberg <zack@codesourcery.com>
9085
9086 * config.in: Regenerate after removal of libbanshee.
9087
a78e238e
AM
90882004-09-13 Andrew MacLeod <amacleod@redhat.com>
9089
9090 PR tree-optimization/17400
9091 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9092 coalesce partitions when one occurs in an abnormal PHI.
6615c446 9093
5547b982
AP
90942004-09-13 Andrew Pinski <apinski@apple.com>
9095
9096 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
9097 name to _new_size.
9098
0d87c765 90992004-09-13 Richard Henderson <rth@redhat.com>
c8a52525 9100
c892972f
SB
9101 PR inline-asm/6806
9102 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
9103 (cselib_invalidate_rtx_note_stores): New.
9104 (cselib_record_sets, cselib_process_insn): Update to match.
9105 * cselib.h (cselib_invalidate_rtx): Declare.
9106 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
0d87c765 9107
84cce55d
RH
91082004-09-13 Richard Henderson <rth@redhat.com>
9109
9110 PR tree-opt/10528
9111 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
9112 after copying its argument.
9113
bda67431
JM
91142004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
9115
9116 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
9117 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
9118 in diagnostics. Use %' for English apostrophes.
9119 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
9120 (pedwarn_c90, pedwarn_c99): Use it.
9121 * c-decl.c (lookup_label): Quote label name in diagnostic.
9122 * c-parse.in (yyprint): Use ' instead of ` for left quote.
9123 * c-typeck.c (warn_for_assignment): Likewise.
9124
ad7b96a9
JH
91252004-09-13 Jan Hubicka <jh@suse.cz>
9126
9127 * i386.c (x86_schedule): New global variable.
9128 (override_options): Disable scheduling when not supported.
9129 * i386.h (x86_schedule): Declare.
9130 (TARGET_SCHEDULE): New macro.
9131
373c0e7f
RH
91322004-09-12 Richard Henderson <rth@redhat.com>
9133
9134 PR c++/16254
9135 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
9136 * tree.c, tree.h (has_cleanups): Remove.
9137
7fac6722
ZD
91382004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9139
9140 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
9141 arguments of the phi nodes correctly.
9142
85914593
JH
91432004-09-12 Jan Hubicka <jh@suse.cz>
9144
9145 * ggc-common.c (cmp_statistics): Fix sorting.
9146
3d520aaf
DE
91472004-09-12 David Edelsohn <edelsohn@gnu.org>
9148
9149 PR target/16795
9150 * expmed.c (expand_divmod): If cheap power of 2 divide is
9151 available, use it for negative constant as well.
9152
8f8ccdf3
AP
91532004-09-12 Andrew Pinski <apinski@apple.com>
9154
c92d8761
AP
9155 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
9156 size of 0.
9157
8f8ccdf3
AP
9158 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
9159
93330ea1
RH
91602004-09-12 Richard Henderson <rth@redhat.com>
9161
9162 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
9163 or minus one.
9164 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
9165 post-reload, and scratch NULL.
9166 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
9167 (x86_shift_adj_2): Use ix86_expand_clear.
9168 (ashldi3): Remove CMOVE expansion difference.
9169 (ashldi3_1): Remove.
9170 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
9171 add constraints for immediates. New peephole for split-with-temp.
9172 Run splitter after peep2 pass.
9173 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
9174 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
9175 (setcc_2): Rename with *.
9176 * config/i386/predicates.md (reg_or_pm1_operand): New.
9177 (ashldi_input_operand): New.
9178
21076c8e
RH
91792004-09-12 Richard Henderson <rth@redhat.com
9180
9181 * print-rtl.c (print_decl_name): New.
9182 (print_mem_expr): Use it.
9183
f6a41d17
RH
91842004-09-12 Richard Henderson <rth@redhat.com
9185
c892972f
SB
9186 PR 17186, part deux
9187 * except.c (sjlj_emit_function_exit): Fix logic locating
9188 sjlj_exit_after in final block.
f6a41d17 9189
a924fe34
TM
91902004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
9191
9192 * common.opt: Remove flags -fmove-all-movables and
9193 -freduce-all-givs.
9194 * loop-invariant.c (find_invariants_to_move):
9195 Remove all uses of flag_move_all_movables.
9196 * loop.c (move_movables): Remove all uses of
9197 flag_move_all_movables.
9198 (strength_reduce): Remove all uses of
9199 flag_reduce_all_givs.
9200 * doc/invoke.texi: Remove documentation of flags
9201 -fremove-all-movables and -freduce-all-givs.
9202
ec76a0e0
RS
92032004-09-11 Roger Sayle <roger@eyesopen.com>
9204
9205 PR middle-end/17411
9206 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
9207 change. elt->type may be a floating point type, so use fold_convert.
9208
ca472546
GK
92092004-09-11 Geoffrey Keating <geoffk@apple.com>
9210
9211 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
9212 the thing referenced as used, not the stub itself.
9213
9a26d6ee
JM
92142004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
9215
9216 * c-tree.h (enum c_storage_class): New.
9217 (struct c_declspecs): Add storage_class, inline_p and thread_p.
9218 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
9219 declarations and "auto" or "register" in file scope empty
9220 declarations. Give more specific warnings for other cases of
9221 storage class specifiers in empty declarations.
9222 (grokdeclarator): Update for new structures. Don't check for
9223 multiple storage classes. Diagnose file-scope "register" if
9224 pedantic.
9225 (build_null_declspecs): Update.
9226 (declspecs_add_scspec): Update. Diagnose multiple storage class
9227 specifiers and invalid uses of "__thread".
9228
a38b644b
ZW
92292004-09-11 Zack Weinberg <zack@codesourcery.com>
9230
9231 * tree.c (tree_code_size): New function, bulk of code from tree_size.
9232 (tree_size, make_node): Use it.
9233 * tree-ssa-pre.c (init_pre): Use it.
9234 * tree.h: Prototype it.
9235
30d396e3
ZD
92362004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9237
9238 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
9239 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
9240 redirect_immediate_use): Use PHI_DF.
9241 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
9242 (bb_for_stmt): Use PHI_BB.
9243 (get_immediate_uses): Use PHI_DF.
9244 * tree-ssa-dse.c (max_stmt_uid): New variable.
9245 (get_stmt_uid): New function.
9246 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
9247 node annotations.
9248 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
9249 (max_uid): Renamed to max_stmt_uid.
9250 (get_stmt_uid): New function.
9251 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
9252 phi node annotations.
9253 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
9254 * tree.h (PHI_BB, PHI_DF): New accessor functions.
9255 (struct tree_phi_node): Add bb and df fields.
9256
f4a6d54e
RH
92572004-09-11 Richard Henderson <rth@redhat.com>
9258
9259 PR middle-end/17416
9260 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
9261 in conflict loop.
9262
f43329a5
JH
92632004-09-11 Jan Hubicka <jh@suse.cz>
9264
1d1df0df
JH
9265 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
9266 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
9267 * i386.md (i387_cw): Add 'uninitialized' mode.
9268
f43329a5
JH
9269 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
9270 (output_location): Break out from ....
9271 (branch_prob): ... here; handle gcov output on trees.
9272 * toplev.c (process_options): No longer be sorry about coverage for
9273 trees.
9274
05cf561d
SB
92752004-09-11 Steven Bosscher <stevenb@suse.de>
9276
9277 PR c++/17412
9278 * fold-const.c (fold): Do not try to fold the operand of a
9279 CLEANUP_POINT_EXPR if that operand does itself not have any
9280 operands.
9281
9282 PR middle-end/17417
9283 * langhooks.c (lhd_decl_printable_name): Make sure that this
9284 function is called with is a decl node that has an identifier.
9285 * tree-pretty-print.c (dump_function_name): New function to
9286 wrap PRINT_FUNCTION_NAME and dump_decl_name.
9287 (print_call_name): Use it.
9288
547d057d
ME
92892004-09-11 Mohan Embar <gnustuff@thisiscool.com>
9290
9291 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
9292 "config.h" if not.
9293
a17ea89b
JJ
92942004-09-11 Jakub Jelinek <jakub@redhat.com>
9295
9296 * tree-ssa-alias.c (collect_points_to_info_r): Handle
9297 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
9298 to OFFSET.
9299
70bb498a
RH
93002004-09-11 Richard Henderson <rth@redhat.com>
9301
9302 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
9303 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
9304 operand of the ADDR_EXPR.
9305 (expand_expr_real_1): Update to match.
9306
0c94cda4
DE
93072004-09-11 David Edelsohn <edelsohn@gnu.org>
9308
d1909f7b 9309 PR target/17277
0c94cda4
DE
9310 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
9311 choose 64-bit version.
9312
5e55f99d
RH
93132004-09-11 Richard Henderson <rth@redhat.com>
9314
9315 PR c/17396
9316 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
9317
431ae0bf
KH
93182004-09-11 Kazu Hirata <kazu@cs.umass.edu>
9319
9320 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
9321 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
9322 Insert @: after i.e. or e.g.
9323
70601cc2
GK
93242004-09-10 Geoffrey Keating <geoffk@apple.com>
9325
9326 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
9327 D.xxx rather than <Dxxx>.
9328
a38b644b 93292004-09-10 Adam Nemet <anemet@lnxw.com>
8a45d680
AN
9330
9331 * configure.ac (AC_MSG_CHECKING(what linker to use)):
9332 in_tree_ld_is_elf should be true for LynxOS.
a38b644b 9333 * configure: Regenerate.
8a45d680 9334
ecc50d72
AN
93352004-09-10 Adam Nemet <anemet@lnxw.com>
9336
9337 * Makefile.in (all.cross): Add srcextra.
9338
3ae472c2
RS
93392004-09-10 Roger Sayle <roger@eyesopen.com>
9340
9341 PR middle-end/17024
9342 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
9343 floating point comparison operators. Change aborts to gcc_asserts.
9344
dc9d0b14
GK
93452004-09-10 Geoffrey Keating <geoffk@apple.com>
9346
9347 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
9348
a73b091d
JW
93492004-09-10 James E Wilson <wilson@specifixinc.com>
9350
1c8c309b
JW
9351 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
9352 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
9353
273d67e7
JW
9354 * convert.c (convert_to_vector): Replace recursive call with
9355 error_mark_node.
9356
a73b091d
JW
9357 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
9358 Add integer argument named constant. Use const_tiny_rtx instead of
9359 CONST0_RTX.
9360 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
9361 and CONST1_RTX.
9362 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
9363 vector types.
9364 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
9365 of gen_rtx_raw_CONST_VECTOR.
9366
110fce11
EC
93672004-09-10 Eric Christopher <echristo@redhat.com>
9368
9369 PR c/16046
9370 * c-parse.in (attribute): Add NULL_TREE for error case
9371 for error recovery.
9372
5d709b00
ZW
93732004-09-10 Zack Weinberg <zack@codesourcery.com>
9374
9375 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
9376 (extract_interface_info): Delete prototype.
9377 * c-decl.c (extract_interface_info): Delete stub.
9378 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
9379 it's not already been done ...
9380 (init_c_lex): ... not here.
110fce11
EC
9381 (fe_file_change): Don't call extract_interface_info.
9382
616aeba2
JM
93832004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
9384
9385 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
9386 typedef_p and typedef_signed_p.
9387 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
9388 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
9389 Check typedef_p and typedef_signed_p, not typedef_decl.
9390 (grokfield): Check typedef_p, not typedef_decl.
9391 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
9392 not typedef_decl.
9393 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
9394 typedef_decl.
9395
a8508d51
KH
93962004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9397
9398 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
9399
18b3a02a
GK
94002004-09-10 Geoffrey Keating <geoffk@apple.com>
9401
769da818
GK
9402 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
9403 temporary variables.
9404
375d2edc
GK
9405 * dbxout.c (dbxout_block): Update for
9406 current_function_func_begin_label a string.
9407 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
9408 * except.c (dw2_output_call_site_table): Likewise.
9409 * toplev.c (current_function_func_begin_label): Likewise.
9410 * tree.h (current_function_func_begin_label): Likewise.
9411 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
9412
c383c15f
GK
9413 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
9414 loop.
9415
1adaa117
GK
9416 * config/darwin.c: Include target.h.
9417 (struct machopic_indirection): Make ptr_name a string.
9418 (machopic_indirection_hash): Update for ptr_name a string.
9419 (machopic_indirection_eq): Likewise.
9420 (machopic_indirection_name): Likewise.
9421 (machopic_output_indirection): Likewise.
9422 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
9423 string. Don't expect stub names to be in the identifier hash table.
9424 Do call strip_name_encoding before looking up entry in ID hash table.
9425 * config/t-darwin (darwin.o): Add target.h to dependencies.
5d709b00 9426
fb5c67a7
GK
9427 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
9428 of fprintf for register names.
5d709b00 9429
5f11bc8b
GK
9430 * output.h (unlikely_section_label): Delete declaration.
9431 (unlikely_text_section_name): Likewise.
9432 * varasm.c (unlikely_section_label_printed): Make static.
9433 (unlikely_section_label): Likewise.
9434 (unlikely_text_section_name): Likewise.
9435 (assemble_start_function): Use reconcat.
9436
18b3a02a
GK
9437 * rtl.def (REG): Add comment to describe third field.
9438
76f60aa5
AP
94392004-09-10 Andrew Pinski <apinski@apple.com>
9440
9441 * config/darwin.c (machopic_mcount_stub_name): Call
9442 machopic_indirection_name instead of making the string
9443 ourselves.
9444
e30b0ae2
DN
94452004-09-10 Diego Novillo <dnovillo@redhat.com>
9446
9447 Revert
9448
9449 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
9450
9451 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
9452 memory tag is call clobbered, so are its aliases.
9453 (group_aliases): When two memory tags being grouped, if one is
9454 call clobbered, so are the other and its aliases.
9455 (add_may_alias): Remove call-clobbering stuff.
9456 (replace_may_alias): Likewise.
9457 (merge_pointed_to_info): Merge pt_global_mem
9458
89dbed81
KH
94592004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9460
9461 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
9462 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
9463 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
9464 tree-scalar-evolution.c, tree-ssa-copyrename.c,
9465 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
9466
094e84fa
RS
94672004-09-10 Richard Sandiford <rsandifo@redhat.com>
9468
9469 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
9470 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
9471 pair. Remove match_dup from inputs. Remove masaccs handling.
9472 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
9473 (masaccs, mdasaccs): Turn into define_insns.
9474
85d62520
RS
94752004-09-10 Richard Sandiford <rsandifo@redhat.com>
9476
9477 * tree-tailcall.c (process_assignment): Only do accumulator transforms
9478 for floating-point types if flag_unsafe_math_optimizations.
9479
c112cf2b
KH
94802004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9481
9482 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
9483 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
9484 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
9485 config/h8300/h8300.md, config/i386/gmm_malloc.h,
9486 config/ia64/ia64.md, config/ip2k/libgcc.S,
9487 config/mips/mips-ps-3d.md, config/mips/mips.c,
9488 config/rs6000/rs6000.c, config/s390/s390.c,
9489 config/sh/symbian.c: Fix comment typos.
9490
2790879f
AK
94912004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
9492
9493 * config/s390/s390.c (s390_emit_prologue): Added missing
9494 "{}" brackets.
9495
27ef2cdd
KH
94962004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9497
9498 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
9499 typos. Follow spelling conventions.
9500
108ebf88
JM
95012004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
9502
9503 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
9504 in diagnostic. Don't dereference NULL TYPE_NAME.
9505
6cb38cd4
KH
95062004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9507
9508 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
9509 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
9510 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
9511 value-prof.c: Fix comment typos. Follow spelling conventions.
9512
b829f3fa
JH
95132004-09-10 Jan Hubicka <jh@suse.cz>
9514
9515 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
9516 * tree-split_edge.c (tree_split_edge): Likewise.
9517 (thread_jumps): Likewise.
9518
229031d0
KH
95192004-09-10 Kazu Hirata <kazu@cs.umass.edu>
9520
9521 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
9522 typos.
9523
9b3e897d
PB
95242004-09-10 Paolo Bonzini <bonzini@gnu.org>
9525
9526 * cgraph.h (cgraph_dump_file): Do not declare.
9527 * cgraphunit.c (cgraph_dump_file): Declare as static.
9528 (init_cgraph): New.
9529 * toplev.c (cgraph_dump_file): Do not declare.
9530 (compile_file): Call init_cgraph.
9531 * tree-dump.c (dump_files): Add IPA dump file, remove
9532 XML dump of call graph.
9533 (get_dump_file_name): Support IPA dump file naming scheme.
9534 * tree.h (enum tree_dump_index): Add IPA dump file, remove
9535 XML dump of call graph.
9536 * doc/invoke.texi (Debugging Options): Document the new options.
9537
c3ee0579
RS
95382004-09-10 Richard Sandiford <rsandifo@redhat.com>
9539
9540 * doc/extend.texi: Document the FR-V built-in functions.
9541
236f9832
JW
95422004-09-09 James E Wilson <wilson@specifixinc.com>
9543
9544 * doc/sourcebuild.texi: Delete libbanshee reference.
9545
5a29def1
KC
95462004-09-10 Kelley Cook <kcook@gcc.gnu.org>
9547
9548 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
9549
3274deff
JW
95502004-09-09 James E Wilson <wilson@specifixinc.com>
9551
9552 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
9553 before calling vector_types_convertible_p.
9554 (digest_init): Check that inside_init has VECTOR_TYPE before calling
9555 vector_types_convertible_p. Don't give another error if
9556 convert_for_assignment returns error_mark_node.
9557
049e524f
RS
95582004-09-09 Roger Sayle <roger@eyesopen.com>
9559
9560 PR middle-end/17055
9561 * fold-const.c (build_zero_vector): New function to construct a
9562 vector (either floating point or integer) of zeros.
9563 (fold_convert): Internally, enable conversions of integer zero
9564 to arbitrary vector types, using the new build_zero_vector.
9565
1b83d209
RS
95662004-09-09 Roger Sayle <roger@eyesopen.com>
9567
9568 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
9569 expand a left shift by an immediate constant as either an ashl or
9570 a sequence of additions.
9571 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
9572 instead of calling gen_ashlsi3 with a constant directly.
9573
903a5059
RS
95742004-09-09 Roger Sayle <roger@eyesopen.com>
9575
9576 * config/i386/i386.c (ix86_split_long_move): When optimizing for
9577 size, and the low and high parts of a DImode constant are equal,
9578 copy one register to another instead of loading the same immediate
9579 value twice.
9580
469c26f1
RH
95812004-09-09 Richard Henderson <rth@redhat.com>
9582
9583 PR middle-end/17367
9584 * function.c (assign_parm_setup_block): Only put PARALLELs into
9585 a register if use_register_for_decl.
9586
1aee688e
EC
95872004-09-09 Eric Christopher <echristo@redhat.com>
9588
9589 * ra-colorize.c (reset_lists): Move variable declaration inside
9590 ENABLE_CHECKING to avoid unused variable warnings when
9591 not --enable-checking.
9592 (check_colors): Ditto.
9593
89029cd4
MS
95942004-09-09 Mike Stump <mrs@apple.com>
9595
9596 * version.c (version_string): Bump to 4.0.0.
693ff889 9597 * doc/include/gcc-common.texi (version-GCC): Likewise.
89029cd4 9598
3f3174b6
JJ
95992004-09-10 Jakub Jelinek <jakub@redhat.com>
9600
9601 * doc/extend.texi (nothrow attribute): The attribute is not
9602 implemented in 3.2 and earlier.
9603
4c80d5ac
SE
96042004-09-09 Steve Ellcey <sje@cup.hp.com>
9605
9606 * genrecog.c (compute_predicate_codes): Use op0_codes
9607 instead of codes.
9608
2ec3ab99
UW
96092004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
9610
9611 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
9612 implementation changes.
9613
0b21d1dc
UW
96142004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
9615
9616 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
9617 a PARALLEL instead of a SET due to added clobbers.
9618
7bb09d15
UW
96192004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
9620
1aee688e 9621 * reload.c (find_reloads_address): Pass correct operand to
7bb09d15
UW
9622 maybe_memory_address_p.
9623
0a050485
DB
96242004-09-09 Daniel Berlin <dberlin@dberlin.org>
9625
9626 * Makefile.in: Remove libbanshee, tree-alias-*.
9627 Remove tree-alias-common.h dependencies.
9628 * common.opt: Remove -ftree-points-to.
9629 * configure.ac: Remove libbanshee.
9630 * flags.h: Remove pta_type, flag_tree_points_to.
9631 * gengtype.c (open_base_files): Remove tree-alias-type.h.
9632 * opts.c (OPT_ftree_points_to): Remove.
9633 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
9634 * tree-dfa.c: Remove tree-alias-common.h
9635 * tree-into-ssa.c: Ditto.
9636 * tree-outof-ssa.c: Ditto.
9637 * tree-ssa-copyrename.c: Ditto.
9638 * tree-ssa-live.c: Ditto.
9639 * tree-optimize.c: Ditto.
9640 * tree-ssa.c: Ditto.
9641 Remove pass_build_pta, pass_del_pta.
9642 * tree-pass.h: Ditto.
9643 * tree-ssa-alias.c: Remove tree-alias-common.h.
9644 (struct alias_stats_d): Remove pta_queries, pta_resolved.
9645 (pass_may_alias): Remove PROP_pta requirement.
9646 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
9647 (get_tmt_for): Ditto.
9648 (dump_alias_stats): Ditto.
9649 * doc/passes.texi: Remove blurb about points-to analysis.
9650 * fortran/Make-lang.in: Remove tree-alias-*.o.
1aee688e 9651
c1a404bd
RS
96522004-09-09 Richard Sandiford <rsandifo@redhat.com>
9653
9654 * genattrtab.c (write_insn_cases): New function, split out from
9655 write_attr_case. Correctly handle define_peepholes when printing
9656 the instruction name.
9657 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
9658
b2416742
HPN
96592004-09-09 Hans-Peter Nilsson <hp@axis.com>
9660
9661 PR target/17377
9662 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
9663 * config/cris/cris.c (cris_return_address_on_stack): New function.
9664 * config/cris/cris.md ("return"): For location of return address,
9665 also check cris_return_address_on_stack.
9666
b49ce401
DN
96672004-09-09 Diego Novillo <dnovillo@redhat.com>
9668
9669 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
9670 calling phi_ssa_name_p.
9671
116df786
RH
96722004-09-09 Richard Henderson <rth@redhat.com>
9673
9674 PR c/17322
9675 * c-typeck.c (valid_compound_expr_initializer): Use only
9676 initializer_constant_valid_p, and not TREE_CONSTANT.
9677 (digest_init): Likewise.
9678 (output_init_element): Likewise.
9679
41374e13
NS
96802004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
9681
9682 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
9683 live_out_1, prune_hardregs_for_mode, init_one_web_common,
9684 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
9685 record_conflict, compare_and_free_webs, init_webs_defs_uses,
9686 parts_to_webs_1, parts_to_webs, reset_conflicts,
9687 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
9688 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
9689 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
9690 put_move, remove_move, combine, select_spill, colorize_one_web,
9691 try_recolor_web, insert_coalesced_conflicts, check_colors,
9692 break_precolored_alias, restore_conflicts_from_coalesce,
9693 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
9694 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
9695 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
9696 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
9697 check_df): Likewise.
9698 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
9699 real_arithmetic, real_compare, real_exponent, real_ldexp,
9700 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
9701 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
9702 real_digit, real_nan, real_maxval, round_for_format, real_convert,
9703 real_to_target, real_from_target, real_hash, encode_ieee_single,
9704 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
9705 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
9706 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
9707 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
9708 extract_insn, peep2_next_insn, peep2_reg_dead_p,
9709 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
9710 if_test_bypass_p): Likewise.
9711 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
9712 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
9713 emit_swap_insn, swap_to_top, move_for_stack_reg,
9714 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
9715 compensate_edge, convert_regs_1): Likewise.
9716 * regclass.c (init_reg_sets, init_reg_sets_1,
9717 memory_move_secondary_cost): Likewise.
9718 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
9719 Likewise.
9720 * reload.c (push_secondary_reload, find_valid_class, push_reload,
9721 operands_match_p, decompose, immune_p, find_reloads,
9722 find_reloads_toplev, find_reloads_address_1, subst_reloads,
9723 copy_replacements, refers_to_regno_for_reload_p,
9724 reg_overlap_mentioned_for_reload_p): Likewise.
9725 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
9726 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
9727 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
9728 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
9729 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
9730 do_output_reload, fixup_abnormal_edges): Likewise.
9731 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
9732 fill_slots_from_thread, relax_delay_slots): Likewise.
9733 * resource.c (mark_referenced_resources, mark_set_resources):
9734 Likewise.
9735 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
9736 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
9737 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
9738 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
9739 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
9740 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
9741 * rtlhooks.c (gen_lowpart_general): Likewise.
9742 * sbitmap.c (sbitmap_difference): Likewise.
9743 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
9744 sched_analyze, add_forward_dependence): Likewise.
9745 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
9746 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
9747 schedule_insns): Likewise.
9748 * sched-vis.c (print_pattern): Likewise.
9749 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
9750 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
9751 simplify_const_relational_operation, simplify_ternary_operation,
9752 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
9753 Likewise.
9754 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
9755 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
9756 resolve_operand_name_1, expand_return, expand_decl,
9757 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
9758 * stor-layout.c (put_pending_size, smallest_mode_for_size,
9759 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
9760 set_sizetype, get_mode_bounds): Likewise.
9761
15072eb1
ZW
97622004-09-09 Zack Weinberg <zack@codesourcery.com>
9763
9764 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
9765 * config/arm/pecoff.h, config/i386/beos-elf.h
9766 * config/i386/cygming.h, config/i386/i386-interix.h:
9767 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
9768 comment cloned from manual.
9769 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
9770
c2433d7d
FCE
97712004-09-09 Frank Ch. Eigler <fche@redhat.com>
9772
9773 * builtins.c (build_va_arg_indirect_ref): New function.
9774 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
9775 build_fold_indirect_ref.
9776 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
9777 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
9778 * tree.h: Declare new function.
9779
41374e13 97802004-09-09 Nathan Sidwell <nathan@codesourcery.com>
1a2caa7a
NS
9781
9782 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
9783 dumping for development builds.
9784 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
9785 development builds only.
9786 * genattrtab.c (write_eligible_delay): Fix typo in previous
9787 commit.
9788 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
9789 gcc_assert.
9790
41374e13 97912004-09-09 Nathan Sidwell <nathan@codesourcery.com>
282899df
NS
9792
9793 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
9794 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
9795 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
9796 hoist_code, extract_mentioned_regs_helper, compute_store_table,
9797 insert_store): Use gcc_assert and gcc_unreachable.
9798 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
9799 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
9800 ggc_record_overhead): Likewise.
9801 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
9802 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
9803 ggc_pop_context, clear_marks, validate_free_objects,
9804 ggc_pch_read): Likewise.
9805 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
9806 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
9807 ggc_push_context, check_cookies, ggc_collect,
9808 ggc_print_statistics): Likewise.
9809 * gimple-low.c (lower_function_body, lower_stmt,
9810 lower_bind_expr): Likewise.
9811 * gimplify.c (gimple_tree_eq, push_gimplify_context,
9812 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
9813 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
9814 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
9815 gimplify_case_label_expr, gimplify_exit_block_expr,
9816 canonicalize_component_ref, gimplify_compound_lval,
9817 gimplify_self_mod_expr, gimplify_call_expr,
9818 gimplify_init_ctor_eval, gimplify_init_constructor,
9819 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
9820 gimplify_expr, check_pointer_types_r,
9821 force_gimple_operand): Likewise.
9822 * global.c (global_alloc, build_insn_chain): Likewise.
9823 * graph.c (clean_graph_dump_file,
9824 finish_graph_dump_file): Likewise.
9825 gcov-io.c (gcov_open): Use GCOV_CHECK.
9826
2a88ebca
RS
98272004-09-09 Richard Sandiford <rsandifo@redhat.com>
9828
9829 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
9830
34132917
JH
98312004-09-09 Jan Hubicka <jh@suse.cz>
9832
9833 middle-end/17128
282899df
NS
9834 * tree-inline.c (expand_call_inline): Make overactive sanity check
9835 happy.
34132917 9836
9f7aa952
JH
98372004-09-09 Jan Hubicka <jh@suse.cz>
9838
9839 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
9840 VIEW_CONVERT_EXPR.
9841
b2d59f6f
NS
98422004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9843
9844 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
9845 (gengtype.o): Depend on errors.h.
9846 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
9847 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
9848 attr_alt_subset_p, attr_alt_subset_of_compl_p,
9849 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
9850 write_test_expr, write_attr_value, write_eligible_delay,
9851 make_internal_attr, make_numeric_value): Likewise.
9852 * genautomata.c (regexp_name, get_str_vect,
9853 gen_presence_absence_set, automaton_decl_hash,
9854 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
9855 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
9856 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
9857 test_unit_reserv, it_is_empty_reserv_sets,
9858 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
9859 reserv_sets_and, output_cycle_reservs, get_free_state,
9860 intersected_state_reservs_p, states_union, remove_arc,
9861 copy_insn_regexp, transform_1, transform_2, transform_3,
9862 regexp_transform_func, store_alt_unit_usage,
9863 check_regexp_units_distribution, process_seq_for_forming_states,
9864 process_alts_for_forming_states, make_automaton,
9865 form_arcs_marked_by_insn, create_composed_state,
9866 set_out_arc_insns_equiv_num, partition_equiv_class,
9867 process_insn_equiv_class, set_insn_equiv_classes,
9868 units_to_automata_heuristic_distr, form_regexp,
9869 longest_path_length, output_dfa_max_issue_rate, add_vect,
9870 out_state_arcs_num, add_vect_el, output_trans_table,
9871 output_state_alts_table, output_dead_lock_vect,
9872 output_max_insn_queue_index_def,
9873 output_min_insn_conflict_delay_func,
9874 output_internal_insn_latency_func, output_print_reservation_func,
9875 output_cpu_unit_reservation_p, output_state_arcs,
9876 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
9877 make_default_insn_latency_attr,
9878 form_important_insn_automata_lists): Likewise.
9879 * genemit.c (gen_exp, output_add_clobbers,
9880 output_added_clobbers_hard_reg_p): Likewise.
9881 * genextract.c (print_path, main): Likewise.
9882 * genflags.c (gen_macro): Likewise.
9883 * gengenrtl.c: Include errors.h
9884 (type_from_format, accessor_from_format): Likewise.
9885 * gengtype.c (get_file_basename, output_mangled_typename,
9886 walk_type, write_types_process_field,
9887 write_types_local_process_field): Likewise.
9888 * genmodes.c (complete_mode): Likewise.
9889 * genopinit.c (gen_insn): Likewise.
9890 * genoutput.c (output_insn_data, check_constraint_len,
9891 constraint_len): Likewise.
9892 * genpreds.c (add_mode_tests):Likewise.
9893 * gen-protos.c (add_hash): Likewise.
9894 * genrecog.c (find_operand, find_matching_operand,
9895 validate_pattern, add_to_sequence, maybe_both_true,
9896 nodes_identical_1, merge_trees, write_switch, write_cond,
9897 write_action, is_unconditional, make_insn_sequence,
9898 debug_decision_2): Likewise.
9899 * gensupport.c (is_predicable, collect_insn_data,
9900 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
9901
87022a6b
JH
99022004-09-09 Jan Hubicka <jh@suse.cz>
9903
9904 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
b2d59f6f
NS
9905 * cfgbuild.c (compute_outgoing_frequencies): When probability is
9906 missing, guess it.
9907 (find_many_sub_basic_blocks): Do update profile only when it is
9908 present.
87022a6b 9909 * predict.c (set_even_probabilities): Break out from ...
b2d59f6f
NS
9910 (combine_predictions_for_insn): ... here; deal with
9911 !can_predict_insn_p insns.
87022a6b
JH
9912 (combine_predictions_for_bb): Use set_even_probabilities.
9913 (bb_estimate_probability_locally): Break out from ....
9914 (estimate_probability): ... here.
9915 (guess_outgoing_edge_probabilities): New entry point.
9916
e1537934
NS
99172004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9918
3b5edfee
NS
9919 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
9920 handle_braces, process_brace_body, main, used_arg,
9921 set_multilib_dir, print_multilib_info): Use fatal, not abort.
9922
d73d4593
NS
9923 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
9924
e1537934
NS
9925 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
9926 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
9927 Morgan's theorem in last checkin.
9928
1e128c5f
GB
99292004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
9930 Nathan Sidwell <nathan@codesourcery.com>
9931
9932 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
9933 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
9934 * timevar.c (timevar_push, timevar_pop, timevar_start,
9935 timevar_stop): Likewise.
9936 * toplev.c (default_pch_valid_p): Likewise.
9937 * tracer.c (tail_duplicate): Likewise.
9938 * tree-alias-common.c (get_alias_var_decl,
9939 get_values_from_constructor, create_alias_var, delete_alias_vars,
9940 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
9941 Likewise.
9942 * tree.c (tree_size, make_node_stat, copy_node_stat,
9943 build_int_cst_wide, integer_all_onesp, list_length, chainon,
9944 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
9945 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
9946 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
9947 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
9948 build_method_type_directly, decl_type_context, get_callee_fndecl,
9949 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
9950 tree_fold_gcd): Likewise.
9951 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
9952 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
9953 cleanup_control_expr_graph, find_taken_edge,
9954 find_taken_edge_switch_expr, phi_alternatives_equal,
9955 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
9956 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
9957 tree_split_edge, tree_verify_flow_info, thread_jumps,
9958 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
9959 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
9960 chrec_fold_multiply_poly_poly): Likewise.
9961 * tree-complex.c (extract_component, expand_complex_division,
9962 expand_complex_comparison, expand_complex_operations_1,
9963 build_replicated_const, expand_vector_operations_1): Likewise.
9964 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
9965 build_classic_dir_vector): Likewise.
9966 * tree-dfa.c (compute_immediate_uses_for_phi,
9967 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
9968 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
9969 * tree-dump.c (dequeue_and_dump): Likewise.
9970 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
9971 record_in_finally_tree, replace_goto_queue_1,
9972 maybe_record_in_goto_queue, verify_norecord_switch_expr,
9973 do_return_redirection): Likewise.
9974 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
9975 add_to_dst_predicate_list, find_phi_replacement_condition,
9976 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
9977 Likewise.
9978 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
9979 initialize_inlined_parameters, declare_return_variable,
9980 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
9981 optimize_inline_calls, copy_tree_r): Likewise.
9982 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
9983 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
9984 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
9985 tsi_split_statement_list_after, tsi_split_statement_list_before):
9986 Likewise.
9987 * tree-mudflap.c (mf_varname_tree): Likewise.
9988 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
9989 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
9990 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9991 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
9992 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
9993 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
9994 Likewise.
9995 * tree-phinodes.c (resize_phi_node, add_phi_arg,
9996 remove_all_phi_nodes_for): Likewise.
9997 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
9998 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
9999 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
10000 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
10001 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
10002 generate_one_element_ref, generate_element_copy,
10003 generate_element_zero, scalarize_copy, scalarize_init,
10004 scalarize_ldst): Likewise.
10005 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
10006 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
10007 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
10008 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
10009 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
10010 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
10011 widen_bitfield, ccp_fold_builtin): Likewise.
10012 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
10013 replace_exp_1, propagate_tree_value): Likewise.
10014 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
10015 * tree-ssa-dce.c (set_control_dependence_map_bit,
10016 find_control_dependence, find_pdom, mark_operand_necessary,
10017 mark_stmt_if_obviously_necessary,
10018 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
10019 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
10020 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
10021 eliminate_redundant_computations, avail_expr_eq): Likewise.
10022 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
10023 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
10024 duplicate_blocks): Likewise.
10025 * tree-ssa-loop-im.c (for_each_index, set_level,
10026 is_call_clobbered_ref): Likewise.
10027 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
10028 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
10029 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
10030 peel_address, ptr_difference_cost, may_replace_final_value,
10031 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
10032 rewrite_use, rewrite_uses): Likewise.
10033 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
10034 check_loop_closed_ssa_use): Likewise.
10035 * tree-ssanames.c (make_ssa_name): Likewise.
10036 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
10037 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
10038 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
10039 get_indirect_ref_operands, add_stmt_operand): Likewise.
10040 * tree-ssa-pre.c (value_exists_in_set_bitmap,
10041 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
10042 phi_translate, valid_in_set, compute_antic,
10043 find_or_generate_expression, create_expression_by_pieces, insert_aux,
10044 create_value_expr_from, eliminate): Likewise.
10045 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
10046 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
10047 Likewise.
10048 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
10049 eliminate_tail_call): Likewise.
10050 * tree-vectorizer.c (vect_create_index_for_array_ref,
10051 vect_align_data_ref, vect_create_data_ref,
10052 vect_create_destination_var, vect_get_vec_def_for_operand,
10053 vect_finish_stmt_generation, vect_transform_stmt,
10054 vect_transform_loop_bound, vect_transform_loop,
10055 vect_analyze_operations): Likewise.
10056 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
10057 Likewise.
10058 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
10059 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
10060 bsi_after_labels, bsi_last): Likewise.
10061 * tree-ssa-live.c (var_union, change_partition_var,
10062 create_ssa_var_map, calculate_live_on_entry, root_var_init,
10063 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
10064 Likewise.
10065 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
10066 tpa_find_tree): Likewise.
10067 (register_ssa_partition_check): Declare.
10068 (register_ssa_partition): use it.
10069 * tree-ssa-live.c: Include errors.h.
10070 (register_ssa_partition_check): New.
10071 * tree-ssa-operands.c: Include errors.h.
10072 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
10073
c557edf4
RS
100742004-09-09 Richard Sandiford <rsandifo@redhat.com>
10075 Catherine Moore <clm@redhat.com>
10076
10077 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
10078 (FRV_CPU_FR405): New processor enums.
10079 (frv_issue_rate, frv_acc_group): Declare.
10080 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
10081 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
10082 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
10083 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
10084 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
10085 handled by CPP_SPEC.
10086 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
10087 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
10088 (ACC_MASK): New macro.
10089 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
10090 (TARGET_MEDIA_FR450): New macro.
10091 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
10092 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
10093 (LABEL_ALIGN_AFTER_BARRIER): Define.
10094 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
10095 (IACC_FIRST, IACC_LAST): New pair of SPRs.
10096 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
10097 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
10098 (REGISTER_NAMES): Add entries for new registers.
10099 (REG_CLASS_CONTENTS): Update for new register ranges.
10100 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
10101 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
10102 (PACKING_FLAG_USED_P): Delete.
10103 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
10104 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
10105 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
10106 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
10107 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
10108 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
10109 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
10110 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
10111 (CPU_UNITS_QUERY): Define to 1.
10112 * config/frv/frv.c: Include gt-frv.h
10113 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
10114 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
10115 (frv_insn_group): New enumeration.
10116 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
10117 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
10118 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
10119 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
10120 gap left by REGSTATE_LIVE.
10121 (regstate_t): New typedef.
10122 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10123 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
10124 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
10125 Initialize frv_unit_codes[] and frv_type_to_unit[].
10126 (frv_conditional_register_usage): Remove redundant fixing of
10127 accumulator registers.
10128 (frv_insn_packing_flag): Update specification.
10129 (frv_function_prologue): Don't set frv_insn_packing_flag here.
10130 Zero out frv_nops[].
10131 (frv_expand_epilogue): Remove comments about the no-longer-present
10132 SIBCALL_P argument.
10133 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
10134 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
10135 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
10136 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
10137 packing is disabled and if INSN can only issue to M1.
10138 (call_operand): Check TARGET_LONG_CALLS.
10139 (acc_operand, even_acc_operand, quad_acc_operand)
10140 (accg_operand): Simplify. Don't accept pseudo registers.
10141 (output_move_single): Handle SPR<-zero moves.
10142 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
10143 (frv_registers_update, frv_registers_used_p): Delete.
10144 (frv_registers_set_p): Delete.
10145 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
10146 (frv_issues_to_branch_unit_p): New function.
10147 (frv_packet): New structure.
10148 (frv_cond_flags, frv_regstate_conflict_p): New functions.
10149 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
10150 (frv_registers_update_1, frv_registers_update): New functions.
10151 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
10152 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
10153 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
10154 (frv_sort_insn_group, frv_reorder_packet): New functions.
10155 (frv_pack_insns): Use frv_reorder_packet.
10156 (frv_packet_address): New variable.
10157 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
10158 (frv_register_nop, frv_reorg): New functions.
10159 (bdesc_1arg): Add __SCUTSS.
10160 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
10161 __SUBSS, __SLASS and __SCAN.
10162 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
10163 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
10164 (frv_init_builtins): Register the above builtins.
10165 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
15072eb1 10166 registers. Turn the referenced accumulators into global registers.
c557edf4
RS
10167 (frv_read_iacc_argument): New function.
10168 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
10169 (frv_split_iacc_move): New function.
10170 (frv_expand_builtin): Handle the new builtins.
10171 * config/frv/frv.md: Replace old schedulers with new order-independent
10172 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
10173 packing algorithm.
10174 (cpu): Add fr550, fr450 and fr405.
10175 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
10176 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
10177 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
10178 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
10179 (fnop, mnop): New patterns.
10180 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
10181 New constants.
10182 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
10183 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
10184 registers.
10185 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
10186 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
10187 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
10188 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
10189 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
10190 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
10191 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
10192 (frv_prefetch0, frv_prefetch): New patterns.
10193 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
10194 -mcpu=simple. Add -mcpu=fr550.
10195 (MULTILIB_DIRNAMES): Update accordingly.
10196 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
10197 -mcpu=fr450.
10198 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
10199 -mlong-calls and -malign-labels options for FR-V.
10200
deb176fa
JM
102012004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
10202
10203 PR c/8420
10204 * c-tree.h (struct c_declspecs): New.
10205 (struct c_declarator, struct c_type_name, struct c_parm): Update
10206 element types.
10207 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
10208 start_function, start_decl, build_c_parm,
10209 make_pointer_declarator): Update prototypes.
10210 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
10211 declspecs_add_scspec, declspecs_add_attrs): New.
10212 (split_specs_attrs): Remove.
10213 * c-parse.in (%union): Add dsptype.
10214 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
10215 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
10216 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
10217 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
10218 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
10219 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
10220 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
10221 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
10222 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
10223 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
10224 maybe_type_quals_attrs): Change to dsptype.
10225 (struct c_declspec_stack): New.
10226 (current_declspecs, declspec_stack): Change type.
10227 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
10228 structures.
10229 (extdefs): Likewise.
10230 (setspecs): Likewise.
10231 (fndef): Use current_declspecs for empty declspecs list.
10232 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
10233 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
10234 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
10235 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
10236 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
10237 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
10238 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
10239 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
10240 structures and helper functions. Update comments.
10241 (typespec_nonattr): Correct comment.
10242 (maybe_type_quals_attrs, typename): Update to new structures.
10243 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
10244 shadow_tag, shadow_tag_warned, start_function, start_decl,
10245 build_c_parm, make_pointer_declarator,
10246 set_array_declarator_inner, groktypename): Update to new
10247 structures.
10248 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
10249 declspecs_add_scspec, declspecs_add_attrs): New.
10250 (split_specs_attrs): Remove.
10251 (shadow_tag_warned): Make warning for useless type names a
10252 pedwarn. Give hard error for long, short, signed, unsigned or
10253 _Complex used with struct, union or enum in empty declaration.
10254 Make found_tag a bool.
10255 (grokdeclarator): Remove checks now done at parse time.
10256
f8893e47
JM
102572004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
10258
10259 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
10260 c_declarator, struct c_type_name, struct c_parm): New.
10261 (build_array_declarator, set_array_declarator_inner,
10262 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
10263 start_function, start_decl, build_c_parm, build_attrs_declarator,
10264 build_function_declarator, make_pointer_declarator, c_cast_expr,
10265 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
10266 (build_id_declarator): New.
10267 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
10268 structures.
10269 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
10270 ARG_INFO_OTHERS): Remove.
10271 (build_id_declarator): New.
10272 (build_array_declarator, set_array_declarator_inner, groktypename,
10273 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
10274 grokfield, start_function, store_parm_decls_newstyle,
10275 store_parm_decls_oldstyle, store_parm_decls,
10276 build_c_parm, build_attrs_declarator, build_function_declarator,
10277 make_pointer_declarator, grokdeclarator): Update to new
10278 structures.
10279 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
10280 parmtype.
10281 (declarator, notype_declarator, after_type_declarator,
10282 parm_declarator, parm_declarator_starttypename,
10283 parm_declarator_nostarttypename, array_declarator, typename,
10284 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
10285 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
10286 parmlist_1, parmlist_2, parmlist_or_identifiers,
10287 parmlist_or_identifiers_1): Use these types.
10288 (primary, after_type_declarator, parm_declarator_starttypename,
10289 notype_declarator, component_decl, component_declarator,
10290 component_notype_declarator, typename, absdcl,
10291 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
10292 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
10293
bc4b653b
JM
102942004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
10295
10296 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
10297 in_typeof, record_maybe_used_decl, pop_maybe_used,
10298 c_expr_sizeof_expr, c_expr_sizeof_type): New.
10299 * c-decl.c (parser_obstack): New.
10300 (c_init_decl_processing): Initialize parser_obstack.
10301 (c_write_global_declarations_1): Check for used but undefined
10302 static functions.
10303 * c-parse.in (%union): Add otype.
10304 (save_obstack_position): New.
10305 (extdefs): Use it.
10306 (unary_expr): Update in_sizeof and in_alignof. Use
10307 c_expr_sizeof_expr and c_expr_sizeof_type.
10308 (sizeof): Update in_sizeof.
10309 (alignof): Update in_alignof.
10310 (typeof): Update in_typeof.
10311 (typespec_nonreserved_nonattr): Call pop_maybe_used.
10312 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
10313 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
10314 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
10315 (build_external_ref): Set C_DECL_USED or call
10316 record_maybe_used_decl if appropriate.
10317 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
10318
f838cd94
EC
103192004-09-08 Eric Christopher <echristo@redhat.com>
10320
10321 * builtins.c: Fix prototype for fold_builtin_atan.
10322
667bbbbb
EC
103232004-09-08 Eric Christopher <echristo@redhat.com>
10324
10325 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
10326 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
10327 fold_builtin_atan): New functions. Migrate function bodies...
10328 (fold_builtin_1): ... from here.
10329
64045029
AM
103302004-09-09 Alan Modra <amodra@bigpond.net.au>
10331
10332 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
10333 save_size.
10334
f0259218
DE
103352004-09-08 David Edelsohn <edelsohn@gnu.org>
10336
10337 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
10338 * config/rs6000/power5.md (power5-lmul): Same.
10339
609c3937
RH
103402004-09-08 Richard Henderson <rth@redhat.com>
10341
10342 PR rtl-opt/17186
10343 * function.c (expand_function_end): Have fall-off-the-end
10344 return path jump around return register setup.
10345
4e5b002b
EB
103462004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
10347
10348 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
10349 (output_return): Do not test for the presence of the 'unimp' insn.
10350 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
10351 as predicates instead of custom ones. Return raw strings when
10352 possible.
10353 (output_sibcall): Likewise. Concatenate strings.
10354 (output_ubranch): Remove kludge for TurboSPARC.
10355 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
10356 (output_v9branch): Likewise.
10357 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
10358 <#>: Set sparc_indent_opcode if the delay slot is filled.
10359 <(>: Likewise.
10360 <)>: New operand to emit the displacement from the saved PC on return.
10361 <@>: Remove.
10362 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
10363 (ASM_OUTPUT_OPCODE): New macro.
10364 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
10365 * config/sparc/sparc.md (normal_branch, inverted_branch,
10366 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10367 inverted_fpe_branch): Adjust call to output_cbranch.
10368 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
10369 call to output_v9branch.
10370 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
10371 (output_v9branch): Likewise.
10372
5826770c
DP
103732004-09-08 Devang Patel <dpatel@apple.com>
10374
10375 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
10376 -segs_read_only_addr and -segs_read_write_addr.
10377 (WORD_SWITCH_TAKES_ARG): Same.
10378 (LINK_SPEC): Same.
10379 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
10380 -segs_read_write_addr.
10381
6cdd5672
RH
103822004-09-08 Richard Henderson <rth@redhat.com>
10383
10384 * function.c (reference_callee_copied): New.
10385 (assign_parm_setup_reg): Use it.
10386 * calls.c (initialize_argument_information): Likewise.
10387 (emit_library_call_value_1): Likewise.
10388 * function.h (reference_callee_copied): Declare.
10389
10390 * target.h (struct gcc_target): Add callee_copies.
10391 * target-def.h (TARGET_CALLEE_COPIES): New.
10392 (TARGET_PASS_BY_REFERENCE): Update default.
10393 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10394 * targhooks.c (hook_callee_copies_named): New.
10395 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
10396 hook_pass_by_reference_false.
10397 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
10398 * targhooks.h: Update decls.
10399 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
10400 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10401 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
10402 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
10403 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10404 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
10405 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10406 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
10407 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10408 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
10409 (mips_callee_copies): New.
10410 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10411 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
10412 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10413 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
10414 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10415 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
10416 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10417 * config/sh/sh.c (sh_callee_copies): New.
10418 (TARGET_CALLEE_COPIES): New.
10419 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10420 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
10421 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10422 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
10423 for FUNCTION_ARG_CALLEE_COPIES.
10424 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
10425
7f7e0703
DP
104262004-09-08 Devang Patel <dpatel@apple.com>
10427
6cdd5672
RH
10428 * tree-if-conv.c (find_phi_replacement_condition): Return true
10429 edge block.
10430 (replace_phi_with_cond_modify_expr): Select conditional expr args
10431 based on true edge basic block.
667bbbbb 10432
ed7f7d85
JH
104332004-09-08 Jan Hubicka <jh@suse.cz>
10434
10435 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
10436 variables being alias set.
10437
0bccc606
NS
104382004-09-08 Nathan Sidwell <nathan@codesourcery.com>
10439
10440 * final.c (shorten_branches, final, get_insn_template,
10441 output_alternate_entry_point, final_scan_insn, alter_subreg,
10442 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
10443 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
10444 * fix-header.c (lookup_std_proto): Likewise.
10445 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
10446 verify_local_live_at_start, update_life_info, mark_reg,
10447 calculate_global_regs_live, allocate_reg_life_data,
10448 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
10449 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
10450 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
10451 * fold-const.c (force_fit_type, div_and_round_double,
10452 may_negate_without_overflow_p, int_const_binop, const_binop,
10453 size_binop, size_diffop, fold_convert_const, fold_convert,
10454 invert_tree_comparison, swap_tree_comparison,
10455 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
10456 range_binop, make_range, fold_cond_expr_with_comparison,
10457 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
10458 fold_abs_const, fold_not_const, fold_relational_const, round_up,
10459 round_down): Likewise.
10460 * function.c (find_function_data, assign_stack_temp_for_type,
10461 instantiate_virtual_regs_lossage, aggregate_value_p,
10462 assign_parm_find_entry_rtl, assign_parm_setup_block,
10463 expand_function_start, expand_function_end, keep_stack_depressed,
10464 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
10465
599eabdb
DB
104662004-09-08 Daniel Berlin <dberlin@dberlin.org>
10467
10468 * Makefile.in (tree-loop-linear.o): Added.
10469 (OBJS-common): Add tree-loop-linear.o
10470 * common.opt: New flag, ftree-loop-linear.
10471 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
10472 * tree-flow.h: Add prototype for linear_transform_loops.
10473 * tree-optimize.c: Add linear transform after vectorization.
10474 * tree-pass.h: Add struct pass_linear_transform.
10475 * tree-ssa-loop.c: Add pass_linear_transform.
10476 * tree-loop-linear.c: New file.
10477 * lambda-code.c: gcc_assertify.
10478 (gcc_loop_to_lambda_loop): Handle all exit tests.
10479 Handle case where we have (invariant >= induction var).
10480 (find_induction_var_from_exit_cond): Ditto.
667bbbbb 10481
13f5595a
JZ
104822004-09-08 Jie Zhang <zhangjie@magima.com.cn>
10483
10484 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
10485 memory tag is call clobbered, so are its aliases.
10486 (group_aliases): When two memory tags being grouped, if one is
10487 call clobbered, so are the other and its aliases.
10488 (add_may_alias): Remove call-clobbering stuff.
10489 (replace_may_alias): Likewise.
10490 (merge_pointed_to_info): Merge pt_global_mem
10491
89480522
JH
104922004-09-08 Jan Hubicka <jh@suse.cz>
10493
10494 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
10495 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
10496 (cgraph_expand_function): Remove stale cgraph edges of currently
10497 compiled function; fix non-unit-at-a-time code copying function
10498 node for later reuse.
10499
4c254e68
NS
105002004-09-08 Nathan Sidwell <nathan@codesourcery.com>
10501
10502 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
10503 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
10504 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
10505 (vec_gc_free, vec_heap_free): New.
10506 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
10507 (DEF_VEC_P): Add allocator argument. Adjust.
10508 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
10509 (DEF_VEC_O): Add allocator argument. Adjust.
10510 (VEC(free)): New.
10511
10512 * tree.h (tree): Define a GC'd vector.
10513 * lamba-code.c (lambda_loop): Likewise.
10514 * value-prof.h (histogram_value): Likewise.
4c254e68 10515
5b0264cb
NS
105162004-09-08 Nathan Sidwell <nathan@codesourcery.com>
10517
10518 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
10519 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
10520 gen_lowpart_common, gen_highpart, gen_highpart_mode,
10521 subreg_highpart_offset, operand_subword, operand_subword_force,
10522 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
10523 set_mem_alias_set, change_address_1, verify_rtx_sharing,
10524 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
10525 try_split, add_insn_after, add_insn_before, remove_insn,
10526 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
10527 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
10528 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
10529 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
10530 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
10531 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
10532 record_path_before_1, check_path_after_1, check_path_after): Likewise.
10533 * except.c (gen_eh_region, resolve_one_fixup_region,
10534 remove_unreachable_regions, convert_from_eh_region_ranges_1,
10535 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
10536 connect_post_landing_pads, sjlj_emit_function_exit,
10537 remove_exception_handler_label, remove_eh_handler,
10538 reachable_next_level, collect_one_action_chain,
10539 output_function_exception_table): Likewise.
10540 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
10541 optimize_save_area_alloca, allocate_dynamic_stack_space,
10542 probe_stack_range, hard_function_value): Likewise.
10543 * expmed.c (mode_for_extraction, store_bit_field,
10544 store_fixed_bit_field, extract_bit_field, expand_shift,
10545 expand_mult_const, expand_mult, choose_multiplier,
10546 expand_mult_highpart, expand_divmod, emit_store_flag,
10547 do_cmp_and_jump): Likewise.
10548 * expr.c (convert_move, convert_modes, move_by_pieces,
10549 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
10550 move_block_from_reg, gen_group_rtx, emit_group_load,
10551 emit_group_move, emit_group_store, use_reg, use_regs,
10552 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
10553 emit_move_insn, emit_move_insn_1, emit_push_insn,
10554 expand_assignment, store_expr, count_type_elements,
10555 store_constructor, store_field, safe_from_p, expand_var,
10556 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
10557
ced3f397
NS
105582004-09-08 Nathan Sidwell <nathan@codesourcery.com>
10559
10560 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
10561 gcc_assert and gcc_unreachable.
10562 * ddg.c (create_ddg_dependence, add_deps_for_def,
10563 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
10564 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
10565 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
10566 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
10567 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
10568 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
10569 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
10570 dataflow_set_copy, hybrid_search, diagnostic.c,
10571 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
10572 * dojump.c (do_jump): Likewise.
10573 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
10574 compute_dom_fast_query, calculate_dominance_info,
10575 free_dominance_info, get_immediate_dominator,
10576 set_immediate_dominator, get_dominated_by,
10577 redirect_immediate_dominators, nearest_common_dominator,
10578 dominated_by_p, verify_dominators, recount_dominator,
10579 iterate_fix_dominators, add_to_dominance_info,
10580 delete_from_dominance_info): Likewise.
10581 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
10582 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
10583 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
10584 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
10585 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
10586 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
10587 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
10588 output_call_frame_info, output_loc_operands, build_cfa_loc,
10589 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
10590 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
10591 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
10592 splice_child_die, attr_checksum, same_dw_val_p,
10593 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
10594 unmark_dies, value_format, output_loc_list, output_die,
10595 output_pubnames, output_aranges, base_type_die, is_base_type,
10596 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
10597 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
10598 field_byte_offset, add_data_member_location_attribute,
10599 add_const_value_attribute, rtl_for_decl_location,
10600 add_location_or_const_value_attribute, add_byte_size_attribute,
10601 add_bit_offset_attribute, add_bit_size_attribute,
10602 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
10603 decl_start_label, gen_formal_parameter_die,
10604 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
10605 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
10606 force_decl_die, force_type_die, gen_decl_die,
10607 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
10608 dwarf2out_finish): Likewise.
10609
faaaf610
AT
106102004-09-08 Andreas Tobler <toa@pop.agri.ch>
10611
10612 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
10613 * builtins.c: Include tree-mudflap.h.
10614
45c8c47f
UB
106152004-09-08 Uros Bizjak <uros@kss-loka.si>
10616
10617 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
10618 force operand 0.0 into register in XFmode. Also do not force
10619 operand 0.0 into register if !TARGET_CMOVE.
10620 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
667bbbbb 10621 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
45c8c47f
UB
10622 implement ftst x87 instruction.
10623 (*fp_jcc_7): New insn pattern. Change corresponding split
10624 pattern to handle "general_operand" instead of
10625 "nonimmediate_operand".
10626
70d5fb1c
BE
106272004-09-08 Ben Elliston <bje@au.ibm.com>
10628
10629 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
10630
4882ad24
FCE
106312004-09-07 Frank Ch. Eigler <fche@redhat.com>
10632
10633 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
10634 generated from standard va_arg expansion.
10635 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
10636 marked nodes.
10637 (mf_varname_tree, mf_file_function_line_tree): Add some support
10638 for column numbers if compiled with USE_MAPPED_LOCATION.
10639
06f624ba
ZL
106402004-09-07 Ziemowit Laski <zlaski@apple.com>
10641
10642 * c-decl.c (groktypename_in_parm_context): Remove function.
10643 * c-tree.h (groktypename_in_parm_context): Remove prototype.
10644
6408ef33
ZL
106452004-09-07 Ziemowit Laski <zlaski@apple.com>
10646
10647 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
10648 * c-parse.in: Include c-common.h instead of objc-act.h.
10649 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
10650 myparms, myparm): Remove %type declarations.
10651 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
10652 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
10653 declarations.
10654 (objc_inherit_code, objc_public_flag): Remove.
10655 (typespec_nonreserved_nonattr): Call
10656 objc_get_protocol_qualified_type() instead of get_static_reference()
10657 and get_protocol_reference().
10658 (stmt_nocomp): Call grokparm() on @catch parameter.
10659 (objcdef): Move semantic action to objc_finish_implementation().
10660 (classdef): Move semantic action to objc_start_class_interface(),
10661 objc_continue_interface(), objc_finish_interface(),
10662 objc_start_class_implementation(), objc_continue_implementation(),
10663 objc_start_category_interface() and
10664 objc_start_category_implementation().
10665 (protocoldef): Move semantic actions to objc_start_protocol() and
10666 objc_finish_interface().
10667 (ivar_decl_list): Remove nonterminal.
10668 (visibility_spec): Move semantic actions to objc_set_visibility().
10669 (ivar_decls): Remove assignment to $$.
10670 (ivar_decl): Rephrase in terms of component_decl; call
10671 objc_add_instance_variable().
10672 (ivars, ivar_declarator): Remove nonterminals.
10673 (opt_semi): New nonterminal.
10674 (methodtype): Remove semantic actions.
10675 (methoddef): Move semantic actions to objc_set_method_type(),
10676 objc_start_method_definition() and objc_finish_method_definition().
10677 (methodproto): Move semantic actions to objc_set_method_type() and
10678 objc_add_method_declaration().
10679 (methoddecl): Use objc_typename instead of typename; move semantic
10680 actions to objc_build_method_signature().
10681 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
10682 (optparmlist): Express in terms of optparms and optellipsis.
10683 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
10684 nonterminals.
10685 (keyworddecl): Use objc_typename instead of typename.
10686 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
10687 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
10688
8662eb14
AM
106892004-09-08 Alan Modra <amodra@bigpond.net.au>
10690
10691 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
10692 (MD_FALLBACK_FRAME_STATE_FOR): Update.
10693 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
10694 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
10695 (MD_FROB_UPDATE_CONTEXT): Remove default.
10696 (uw_update_context_1): Instead #ifdef invocation.
10697 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
10698 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
10699 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
10700 (MD_UNWIND_SUPPORT): Undefine this instead.
10701 * config/i386/gnu.h: Likewise.
10702 * config/alpha/linux-unwind.h: New file, macro converted to
10703 function, extracted from..
10704 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
10705 (MD_UNWIND_SUPPORT): Define.
10706 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
10707 * config/i386/linux-unwind.h, config/i386/linux.h,
10708 config/i386/linux64.h: Likewise.
10709 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
10710 MD_HANDLE_UNWABI too.
10711 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
10712 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
10713 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
10714 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
10715 * config/sparc/linux-unwind.h, config/sparc/linux.h,
10716 config/sparc/linux64.h: Likewise.
10717 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
10718 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
10719 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
10720 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
10721 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
10722
c4817ba6
JH
107232004-09-07 Jan Hubicka <jh@suse.cz>
10724
ec666d23
JH
10725 * cse.c (fold_rtx): Avoid building of
10726 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
10727
c4817ba6
JH
10728 * tree-ssa-pre.c (grand_bitmap_obstack): New.
10729 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
10730 (init_pre): Initialize obstack.
10731 (fini_pre): Free obstack.
10732
9f0df97a
DD
107332004-09-07 David Daney <ddaney@avtrex.com>
10734
10735 * config.gcc: Added support for --with-divide=[breaks|traps] for
10736 mips targets.
10737 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
10738 (TARGET_DIVIDE_TRAPS): New macro.
10739 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
10740 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
10741 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
10742 GENERATE_DIVIDE_TRAPS.
10743 (mips_output_division): Emit conditional trap if
10744 GENERATE_DIVIDE_TRAPS is set.
10745 * doc/install.texi: Document --with-divide.
10746 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
10747
9beb1c84
CT
107482004-09-07 Caroline Tice <ctice@apple.com>
10749
10750 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
10751 EDGE_CROSSING, to flags test case.
667bbbbb 10752
1905940f
JH
107532004-09-07 Jan Hubicka <jh@suse.cz>
10754
10755 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
10756 class too.
10757
341c100f
NS
107582004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10759
10760 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
10761 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
10762 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
10763 or gcc_unreachable.
10764 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
10765 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
10766 alloc_aux_for_edges, free_aux_for_edges): Likewise.
10767 * cfgcleanup.c (try_forward_edges,
10768 merge_blocks_move_predecessor_nojumps,
10769 merge_blocks_move_successor_nojumps): Likewise.
10770 * cfgexpand.c (expand_gimple_cond_expr,
10771 expand_gimple_tailcall): Likewise.
10772 * cfghooks.c (duplicate_block): Likewise.
10773 * cfglayout.c (record_effective_endpoints,
10774 insn_locators_initialize, change_scope, fixup_reorder_chain,
10775 verify_insn_chain, fixup_fallthru_exit_predecessor,
10776 duplicate_insn_chain, cfg_layout_finalize): Likewise.
10777 * cfgloopanal.c (check_irred): Likewise.
10778 * cfgloop.c (superloop_at_depth, flow_loops_free,
10779 flow_loop_entry_edges_find, flow_loops_find,
10780 flow_loop_outside_edge_p, get_loop_body,
10781 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
10782 get_loop_exit_edges, num_loop_branches, cancel_loop,
10783 verify_loop_structure): Likewise.
10784 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
10785 duplicate_loop_to_header_edge, create_preheader,
10786 create_loop_notes): Likewise.
10787 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
10788 edirect_branch_edge, force_nonfallthru_and_redirect,
10789 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
10790 commit_edge_insertions, commit_edge_insertions_watch_calls,
10791 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
10792 cfg_layout_redirect_edge_and_branch_force,
10793 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
10794 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
10795 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
10796 cgraph_varpool_node): Likewise.
10797 * cgraphunit.c (cgraph_finalize_function,
10798 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
10799 cgraph_expand_function, cgraph_remove_unreachable_nodes,
10800 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10801 cgraph_mark_inline, cgraph_expand_all_functions,
10802 cgraph_build_static_cdtor): Likewise.
10803 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
10804 simplify_logical, distribute_notes, insn_cuid): Likewise.
10805 * conflict.c (conflict_graph_add, print_conflict): Likewise.
10806 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
10807 coverage_checksum_string): Likewise.
10808 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
10809 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
10810 cse_cc_succs, cse_condition_code_reg): Likewise.
10811 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
10812 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
10813 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
10814 cselib_record_set): Likewise.
10815
6b094f38
JH
108162004-09-07 Jan Hubicka <jh@suse.cz>
10817
10818 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
10819
5212068f
NS
108202004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10821
10822 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
10823 fold_convert.
10824 (fold_builtin_strpbrk): Likewise.
10825 * expr.c (array_ref_low_bound): Likewise.
10826 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
10827 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
10828 * tree-sra.c (generate_element_zero): Likewise.
10829 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
10830 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
10831 add_old_iv_candidates, add_iv_candidates): Likewise.
10832 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
10833
366de0ce
NS
108342004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10835
10836 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
10837 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
10838 c_expand_expr, boolean_increment, nonnull_check_p,
10839 check_function_arguments_recurse, fold_offsetof_1): Likewise.
10840 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
10841 builtin_define_type_max): Likewise.
10842 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
10843 implicit_decl_warning, builtin_function, build_compound_literal,
10844 complete_array_type, grokdeclarator, get_parm_info,
10845 start_function, store_parm_decls_oldstyle,
10846 c_write_global_declarations): Likewise.
10847 * c-format.c (get_constant, decode_format_attr,
10848 maybe_read_dollar_number, get_flag_spec, check_format_arg,
10849 check_format_types, format_type_warning,
10850 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
10851 init_dynamic_diag_info, handle_format_attribute): Likewise.
667bbbbb 10852 * c-gimplify.c (push_context, pop_context, finish_bc_block):
366de0ce
NS
10853 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
10854 * c-objc-common.c (c_tree_printer): Likewise.
10855 * c-pch.c (pch_init): Likewise.
10856 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
10857 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
10858 * c-typeck.c (c_incomplete_type_error, composite_type,
10859 common_pointer_type, common_type, same_translation_unit_p,
10860 tagged_types_tu_compatible_p, finish_init, pop_init_level,
10861 set_designator, set_nonincremental_init_from_string,
10862 process_init_element, c_finish_if_stmt): Likewise.
10863 * caller-save.c (init_caller_save, save_call_clobbered_regs,
10864 insert_restore, insert_save, insert_one_insn): Likewise.
10865 * calls.c (emit_call_1, compute_argument_block_size,
10866 precompute_arguments, expand_call, emit_library_call_value_1,
10867 store_one_arg): Likewise.
10868
e1bbfc5c
NS
108692004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10870
10871 * configure.ac (enable-checking): Add release option. Reorganize
10872 to avoid repetition.
10873 * configure: Rebuilt.
10874 * doc/install.texi (enable-checking): Amend documentation.
10875
e64dc647
L
108762004-09-06 H.J. Lu <hongjiu.lu@intel.com>
10877
10878 PR bootstrap/17313
10879 * Makefile.in (specs.ready): Depend on cc1$(exeext).
10880
d3a583b1
JW
108812004-09-06 James E Wilson <wilson@specifixinc.com>
10882
cfd8e493
JW
10883 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
10884 movdf_hardfloat_32bit): Split fG into two alternatives.
10885 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
10886
d3a583b1
JW
10887 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
10888
ff8cea7e
EB
108892004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
10890
10891 * final.c (output_in_slot): Delete.
10892 (final_scan_insn): Revert 2004-09-03 change.
10893 (output_asm_insn): Likewise.
10894 * config/sparc/sparc.c (output_return): Likewise.
10895 (output_sibcall): Likewise.
10896
8679c649
JH
108972004-09-06 Jan Hubicka <jh@suse.cz>
10898
10899 * loop.c (loop_dump_aux): Do not print RTL when not available.
10900 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
10901 frontend specific type nodes.
10902 (produce_memory_decl_rtl): Break out from ...
10903 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
10904 (get_computation_at): Avoid random tree sharing.
10905 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
10906
93f8bd9e
ZW
109072004-09-06 Zack Weinberg <zack@codesourcery.com>
10908
10909 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
10910 unnecessary commands.
10911
c802a859
ME
109122004-09-06 Mohan Embar <gnustuff@thisiscool.com>
10913
10914 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
10915 (bitmap.o): Likewise.
10916
9f8628ba
PB
109172004-09-06 Paolo Bonzini <bonzini@gnu.org>
10918
10919 Unify the management of RTL and tree-level dump files.
10920
10921 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
10922 Don't print function name to the dump file, the pass manager
10923 would do this for us. Add code from the top of
10924 rest_of_compilation, up to the initial RTL dump.
10925 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
10926 close the DFI_sibling dump file.
10927 (rest_of_compilation): Don't do that here. Remove code up to the
10928 initial RTL dump.
10929 (init_optimization_passes): Remove.
10930 (pass_rest_of_compilation): Change pass name to NULL.
10931 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
10932 Do not call init_optimization_passes.
10933 * toplev.h (init_optimization_passes): Remove.
10934
10935 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
10936 finish_graph_dump_file): Remove SUFFIX parameter.
10937 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
10938 finish_graph_dump_file): Likewise.
10939
10940 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
10941 * cfgexpand.c (pass_expand): Adjust.
10942 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
10943 * passes.c (pass_rest_of_compilation): Adjust.
10944 * predict.c (pass_profile): Adjust.
10945 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
10946 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
10947 pass_split_crit_edges, pass_warn_function_return): Adjust.
10948 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
10949 * tree-dfa.c (pass_referenced_vars): Adjust.
10950 * tree-eh.c (pass_lower_eh): Adjust.
10951 * tree-if-conv.c (pass_build_ssa): Adjust.
10952 * tree-into-ssa.c (pass_build_ssa): Adjust.
10953 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
10954 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
10955 * tree-nrv.c (pass_nrv): Adjust.
10956 * tree-optimize.c (pass_gimple, pass_all_optimizations,
10957 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
10958 pass_init_datastructures): Adjust.
10959 * tree-outof-ssa.c (pass_del_ssa): Adjust.
10960 * tree-profile.c (pass_tree_profile): Adjust.
10961 * tree-sra.c (pass_sra): Adjust.
10962 * tree-ssa-alias.c (pass_may_alias): Adjust.
10963 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
10964 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
10965 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
10966 * tree-ssa-dom.c (pass_dominator): Adjust.
10967 * tree-ssa-dse.c (pass_dse): Adjust.
10968 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
10969 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
10970 * tree-ssa-loop-ch.c (pass_ch): Adjust.
10971 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
10972 pass_loop_done, pass_complete_unroll, pass_iv_canon,
10973 pass_iv_optimize, pass_vectorize): Adjust.
10974 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
10975 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
10976 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
10977 pass_late_warn_uninnitialized): Adjust.
10978 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
10979
10980 * Makefile.in (tree-dump.o): Add new dependencies.
10981 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
10982 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
10983 Likewise.
10984 * toplev.c (dump_file_name): New.
10985 * tree-dump.c (dump_enable_all): Add LETTER parameter.
10986 (struct dump_file_info): Add NUM and LETTER fields.
10987 (dump_files): Adjust and add RTL dump files.
10988 (dump_register): Add NUM and LETTER fields.
10989 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
10990 (dump_begin): Use get_dump_file_name.
10991 (dump_switch_p_1): Adjust call to dump_enable_all.
10992 * tree-dump.h (dump_register): Adjust prototype.
10993 * tree-optimize.c (register_one_dump_file): Take dump file index.
10994 Support flags for RTL dumps.
10995 (register_dump_files): Fill in NUM field of struct dump_file_info.
10996 Track properties both when the gate is executed and when it is not.
10997 (execute_todo): Dump RTL. Add PROPERTIES parameter.
10998 (execute_one_pass): Pass properties to execute_todo. Handle VCG
10999 dumps of RTL.
11000 * tree-pass.h (dump_file_name): New.
11001 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
11002 New.
11003
11004 * Makefile.in (passes.o): Add new dependencies.
11005 * passes.c (struct dump_file_info, enum dump_file_index,
11006 dump_file_tbl, init_optimization_passes): Remove.
11007 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
11008 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
11009 dump_enabled_p.
11010 (finish_optimization_passes): Update finish_graph_dump_file loop.
11011 (enable_rtl_dump_file): Remove.
11012 * tree-dump.c (dump_files): Adjust and add RTL dump files.
11013 (enable_rtl_dump_file): Add here.
11014 * tree.h (enum tree_dump_index): Add RTL dump file indices.
11015 * doc/invoke.texi (Debugging options): Document new RTL debugging
11016 options. Update.
11017
8c27b7d4
KH
110182004-09-05 Kazu Hirata <kazu@cs.umass.edu>
11019
11020 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
11021 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
11022 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
11023 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
11024 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
11025 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
11026 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
11027 vec.h: Fix comment formatting.
11028
2a7e31df
KH
110292004-09-05 Kazu Hirata <kazu@cs.umass.edu>
11030
11031 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
11032 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
11033 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
11034 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
11035 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
11036 tree-ssa-loop-niter.c, tree-ssa-operands.c,
11037 tree-ssa-operands.h, tree-ssa-propagate.c,
11038 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
11039 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
11040
2addf926
DN
110412004-09-05 Diego Novillo <dnovillo@redhat.com>
11042
11043 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
11044 vectorizer is enabled.
11045
61b5f210
AJ
110462004-09-05 Andreas Jaeger <aj@suse.de>
11047
11048 * tree-if-conv.c: Spell check comments and clean up whitespace.
11049
8b11a64c
ZD
110502004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11051
11052 * tree-ssa-loop-ivopts.c: New file.
11053 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
11054 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
11055 target_pres_cost, target_spill_cost): Declare.
11056 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
11057 spill_cost): Renamed to ...
11058 (target_avail_regs, target_res_regs, target_small_cost,
11059 target_pres_cost, target_spill_cost): ... and exported.
11060 (init_set_costs, global_cost_for_size): Work with renamed variables.
11061 * common.opt (flag_ivopts): New flag.
11062 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
11063 REF_ORIGINAL.
11064 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
11065 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
11066 generating SSA form.
11067 (force_gimple_operand): New function.
11068 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
11069 * tree-cfg.c (stmt_bsi): New function.
11070 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
11071 PARAM_IV_MAX_CONSIDERED_USES): New.
11072 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
11073 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
11074 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
11075 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
11076 * tree-nested.c (build_addr): Export.
11077 * tree-optimize.c (init_tree_optimization_passes): Add
11078 pass_iv_optimize.
11079 * tree-pass.h (pass_iv_optimize): Declare.
11080 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
11081 IMAGPART_EXPR.
11082 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
11083 as a phi node argument.
11084 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
11085 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
11086 functions.
11087 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
11088 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
11089 pass_iv_optimize): New pass.
11090 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
11091 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
11092 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
11093 * tree.h (REF_ORIGINAL): New macro.
11094 (build_int_cst_type, unsigned_type_for, zero_p,
11095 cst_and_fits_in_hwi, build_addr): Declare.
11096 * doc/invoke.texi (-fivopts): Document.
11097 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
11098 PARAM_IV_MAX_CONSIDERED_USES): Document.
11099 * doc/passes.texi: Document induction variable optimizations pass.
11100
254986c7
KG
111012004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11102
11103 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
11104 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
11105 * c-common.c (c_common_attribute_table): Accept parameters to
11106 sentinel attribute.
11107 (check_function_sentinel, handle_sentinel_attribute): Likewise.
11108 * doc/extend.texi: Update accordingly.
11109
3d091dac
KG
111102004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11111
11112 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
11113 New.
11114 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
11115 attribute.
11116 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
11117 New functions.
11118 (c_common_attribute_table): Add `sentinel' attribute.
11119 (check_function_arguments): Handle `sentinel' attribute.
11120 * doc/extend.texi: Document `sentinel' attribute.
8f1529e6 11121
44269c40 111222004-09-04 H.J. Lu <hongjiu.lu@intel.com>
a60749f5 11123
3d091dac
KG
11124 * configure: Regenerated.
11125
44269c40
KG
111262004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11127
875803a0
RK
11128 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
11129
c51c248f
RK
11130 * tree.c (save_expr): No longer TREE_READONLY.
11131
8d168c24
JH
111322004-09-04 Jan Hubicka <jh@suse.cz>
11133
11134 * passes.c (rest_of_clean_state): Fix merge conflict made during
11135 commiting the patch.
11136
0a9aeefd
JH
111372004-09-04 Jan Hubicka <jh@suse.cz>
11138
11139 * passes.c (rest_of_clean_state): Decompose the instruction stream.
11140
273a2526
RS
111412004-09-04 Richard Sandiford <rsandifo@redhat.com>
11142
11143 * doc/md.texi (shift patterns): New anchor. Add reference to
11144 TARGET_SHIFT_TRUNCATION_MASK.
11145 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
11146 * target.h (shift_truncation_mask): New target hook.
11147 * targhook.h (default_shift_truncation_mask): Declare.
11148 * targhook.c (default_shift_truncation_mask): Define.
11149 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
11150 (TARGET_INITIALIZER): Include it.
11151 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
11152 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
11153 reject all out-of-range values. Fix sign-extension code for modes
11154 whose width is smaller than HOST_BITS_PER_WIDE_INT.
11155 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
11156 (expand_superword_shift, expand_subword_shift): Likewise.
11157 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
11158 (expand_binop): Use them to implement double-word shifts.
11159 * config/arm/arm.c (arm_shift_truncation_mask): New function.
11160 (TARGET_SHIFT_TRUNCATION_MASK): Define.
11161
caf29de7
JH
111622004-09-04 Jan Hubicka <jh@suse.cz>
11163
11164 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
11165 (mix): New macro copied from hashtab.c
11166 (iterative_hash_hashval_t, iterative_hash_pointer,
11167 iterative_hash_host_wide_int): New functions based on hashtab.c
11168 implementation.
11169
e83adf94
RS
111702004-09-04 Richard Sandiford <rsandifo@redhat.com>
11171
11172 * config/mips/mips.md (mask): New mode attribute.
11173 (zero_extendsidi2): Add memory alternative.
11174 (*zero_extendsidi2_mem): Delete.
11175 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
11176 memory_operand in the TARGET_MIPS16 check.
11177 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
11178 Redefine using :GPR and :SHORT.
11179 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
11180
edeacc14
UB
111812004-09-04 Uros Bizjak <uros@kss-loka.si>
11182
11183 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
11184 using rint_optab.
11185 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
11186 expand_builtin_mathfn.
11187 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
11188 btrunc?f patterns for btrunc_optab. Implement rint_optab using
11189 rint?f patterns.
11190 * optabs.c (init_optabs): Initialize rint_optab.
11191 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
11192 Add new OTI_rint.
11193 (btrunc_optab): Rename macro from trunc_optab.
11194 (rint_optab): Define corresponding macro.
11195
11196 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
11197 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
11198
11199 * config/i386/i386-protos.h (emit_i387_cw_initialization):
11200 Change prototype. Add new int parameter.
11201 * config/i386/i386.c (emit_i387_cw_initialization):
11202 Handle new rounding modes.
11203
11204 * config/i386/i386.h (enum fp_cw_mode): Delete.
c9996000 11205 (MODE_NEEDED): Handle new rounding modes.
edeacc14
UB
11206 (EMIT_MODE_SET): Change condition to handle new rounding modes.
11207
11208 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
11209 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
11210 represent different rounding modes of frndint insn.
11211 (type): Add frndint type.
11212 (i387, length, memory): Handle this type.
11213 (i387_cw): New attribute definition.
11214 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
11215 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
11216 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
11217 Add "i387_cw" attribute defined to "trunc".
11218 (x86_fnstcw_1): Remove comment.
11219 (*frndintxf2): Rename insn definition to frndintxf2. Move
11220 insn definition near rint?f2 expanders.
11221 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
11222 rintf and rintl built-ins as inline x87 intrinsics.
11223 (frndintxf2_floor): New pattern to implement floor rounding
11224 mode with frndint x87 instruction.
11225 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
11226 floorf and floorl built-ins as inline x87 intrinsics.
11227 (frndintxf2_ceil): New pattern to implement ceil rounding
11228 mode with frndint x87 instruction.
11229 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
11230 ceilf and ceill built-ins as inline x87 intrinsics.
11231 (frndintxf2_trunc): New pattern to implement trunc rounding
11232 mode with frndint x87 instruction.
11233 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
11234 truncf and truncl built-ins as inline x87 intrinsics.
11235 (frndintxf2_mask_pm): New pattern to implement rounding
11236 mode with exceptions with frndint x87 instruction.
11237 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
11238 implement nearbyint, nearbyintf and nearbyintl built-ins as
11239 inline x87 intrinsics.
11240
183f019b
RS
112412004-09-04 Richard Sandiford <rsandifo@redhat.com>
11242
11243 * config/mips/mips.md (SHORT): New mode macro.
11244 (size): New mode attribute.
11245 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
11246 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
11247 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
11248 !ISA_HAS_SEB_SEH.
11249 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
11250 *extend[qh]isi2_hw patterns and extending them to di.
11251 (extendqihi2): Implement as define_insn_and_split that produces
11252 extendqisi2 after reload.
11253
40923b20
DP
112542004-09-03 Devang Patel <dpatel@apple.com>
11255
11256 * Makefile.in (OBJS-common): Add tree-if-conv.o
11257 (tree-if-conv.o): New rule.
11258 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
11259 (get_loop_body_in_bfs_order): New.
11260 * cfgloop.h (get_loop_body_in_bfs_order): New.
11261 * tree-flow.h (enum move_pos): Move here from ..
11262 * tree-ssa-loop-im.c (enum move_pos): here.
11263 (movement_possibility): Make externally visible.
11264 * tree-optimize.c (init_tree_optimization_passes): New entry for
11265 if conversion pass.
11266 * tree-pass.h (pass_if_conversion): New.
11267 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
11268 * tree-if-conv.c: New file.
11269 * doc/passes.texi: Document tree if-conversion pass.
c9996000 11270 * doc/tree-ssa.texi: Same.
40923b20 11271
443728bb
L
112722004-09-03 H.J. Lu <hongjiu.lu@intel.com>
11273
11274 PR target/14925:
11275 Makefile.in (LIB2ADDEHSTATIC): New.
11276 (LIB2ADDEHSHARED): New.
11277 (LIBUNWIND): New.
11278 (LIBUNWINDDEP): New.
11279 (SHLIBUNWIND_LINK): New.
11280 (SHLIBUNWIND_INSTALL): New.
11281 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
11282 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
11283 (clean): Remove libunwind*
11284 (stage1-start): Remove and copy stage1/libunwind*.
11285 (stage2-start): Remove and copy stage2/libunwind*.
11286 (stage3-start): Remove and copy stage3/libunwind*.
11287 (stage4-start): Remove and copy stage4/libunwind*.
11288 (stageprofile-start): Remove and copy stageprofile/libunwind*.
11289 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
11290
11291 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
11292 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
11293 tmake_file if --with-system-libunwind isn't used.
11294
11295 * config/ia64/t-glibc-libunwind: New file.
11296 * config/t-libunwind-elf: Likewise.
11297 * unwind-compat.c: Likewise.
11298 * unwind-compat.h: Likewise.
11299 * unwind-dw2-fde-compat.c: Likewise.
11300
11301 * config/ia64/t-glibc (LIB2ADDEH): Updated.
11302 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
11303
11304 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
11305 aliases if needed.
11306 * unwind-dw2-fde-glibc.c: Likewise.
11307 * unwind-dw2.c: Likewise.
11308
11309 * config/t-libunwind (LIB2ADDEH): Updated.
11310 (LIB2ADDEHSTATIC): New.
11311 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
11312 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
11313
11314 * configure.ac: Change --enable-libunwind-exceptions to
11315 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
11316 * configure: Regenerated.
11317 * config.in: Updated.
11318
11319 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
11320 above and mention --with-system-libunwind.
11321 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
11322 removed in gcc 3.4.3 and later.
11323
11324 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
11325 USE_LIBUNWIND_EXCEPTIONS is defined.
11326
11327 * mklibgcc.in: Support libunwind.
11328
d20bf446
L
113292004-09-03 H.J. Lu <hongjiu.lu@intel.com>
11330
11331 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
11332 m_NOCONA.
11333
1f6d3a08
RH
113342004-09-03 Richard Henderson <rth@redhat.com>
11335
93f8bd9e
ZW
11336 PR middle-end/9997
11337 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
11338 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
11339 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
11340 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
11341 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
11342 resize_stack_vars_conflict, add_stack_var_conflict,
11343 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
11344 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
11345 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
1f6d3a08
RH
11346 expand_one_static_var, expand_one_hard_reg_var,
11347 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
11348 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
93f8bd9e 11349 (expand_used_vars): Rewrite.
1f6d3a08
RH
11350 * Makefile.in (cfgexpand.o): Update dependencies.
11351
80d8221e
JH
113522004-09-04 Jan Hubicka <jh@suse.cz>
11353
11354 * cfg.c (free_edge): Use ggc_free.
11355 (expunge_block): Use ggc_free.
11356 * passes.c (rest_of_clean_state): Free after compilation.
11357 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
11358 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
11359
bb1058e4
JW
113602004-09-03 James E Wilson <wilson@specifixinc.com>
11361
11362 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
11363 DECL_EXTERNAL check.
11364
ca83de6b
EB
113652004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11366
11367 * final.c (output_in_slot): New global variable.
11368 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
11369 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
11370 'output_in_slot' before invoking output_asm_insn.
11371 (output_asm_insn): Add a space after the tab if 'output_in_slot'
11372 is set.
11373 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
11374 final_scan_insn.
11375 (output_sibcall): Likewise.
11376
1e3e17d3
JH
113772004-09-03 Jan Hubicka <jh@suse.cz>
11378
11379 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
11380 * tree-ssanames (init_ssanames): Likewise.
11381
c41e5f27
ZL
113822004-09-03 Ziemowit Laski <zlaski@apple.com>
11383
11384 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
11385 objc_declare_protocols, objc_start_protocol,
11386 objc_start_class_interface, objc_start_category_interface,
11387 objc_continue_interface, objc_finish_interface,
11388 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
11389 objc_start_class_implementation, objc_start_category_implementation,
11390 objc_continue_implementation, objc_finish_implementation,
11391 objc_add_method_declaration, objc_start_method_definition,
11392 objc_finish_method_definition, objc_build_keyword_decl,
11393 objc_build_method_signature, objc_build_encode_expr,
11394 objc_build_protocol_expr, objc_build_selector_expr,
11395 objc_build_message_expr, objc_build_string_object,
11396 objc_get_class_reference, objc_get_protocol_qualified_type,
11397 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
11398
b30d77c4
JW
113992004-09-03 James E Wilson <wilson@specifixinc.com>
11400
11401 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
11402
11403 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
11404 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
11405 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
11406 (mips_recip1_<fmt>): Use frdiv1 type.
11407 (mips_recip2_<fmt>): Use frdiv2 type.
11408 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
11409 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
11410 and frsqrt1.
11411 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
11412
87cda9d6
DJ
114132004-09-03 Daniel Jacobowitz <dan@debian.org>
11414
11415 * reload.c (find_reloads): Swap operand_loc pointers for
11416 find_dummy_reload if we have swapped two operands.
11417
f671762a
HPN
114182004-09-03 Hans-Peter Nilsson <hp@axis.com>
11419
11420 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
11421 to get the tablejump-insn before the jump-table label.
11422
a45bcfb2
ZL
114232004-09-03 Ziemowit Laski <zlaski@apple.com>
11424
11425 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
11426 objc_declare_protocols, objc_build_message_expr,
11427 objc_finish_message_expr, objc_build_selector_expr,
11428 objc_build_protocol_expr, objc_build_encode_expr,
11429 objc_build_string_object, objc_get_protocol_qualified_type,
11430 objc_get_class_reference, objc_get_class_ivars,
11431 objc_start_class_interface, objc_start_category_interface,
11432 objc_start_protocol, objc_continue_interface, objc_finish_interface,
11433 objc_start_class_implementation, objc_start_category_implementation,
11434 objc_continue_implementation, objc_finish_implementation,
11435 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
11436 objc_add_method_declaration, objc_start_method_definition,
11437 objc_finish_method_definition, objc_add_instance_variable,
11438 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
11439 objc_finish_try_stmt, objc_begin_catch_clause,
11440 objc_finish_catch_clause, objc_build_finally_clause,
11441 objc_build_synchronized, objc_static_init_needed_p,
11442 objc_generate_static_init_call): New prototypes.
11443
9dec91d4
SE
114442004-09-03 Steve Ellcey <sje@cup.hp.com>
11445
11446 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
11447 is only one reg.
11448 (ia64_function_value): Ditto.
11449
61fec9ff
JB
114502004-09-03 Jan Beulich <jbeulich@novell.com>
11451
11452 * config.gcc: Resurrect NetWare as a target. Handle special case of
11453 Novell linker to be used (specified through --with-ld=) and threading
11454 model of either Posix (default) or NKS.
11455 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
11456 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
11457 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
11458 * config/i386/netware.c, config/i386/netware.h: New.
11459 * config/i386/nwld.c, config/i386/nwld.h: New.
11460 * config/i386/netware-crt0.c: New.
11461 * config/i386/netware-libgcc.c: New.
11462 * config/i386/netware-libgcc.def: New.
11463 * config/i386/netware-libgcc.exp: New.
11464 * config/i386/t-netware, config/i386/t-nwld: New.
11465 * gthr-nks.h: New.
11466 * doc/install.texi: Document NKS threading model.
11467
467cecf3
JB
114682004-09-03 Jan Beulich <jbeulich@novell.com>
11469
11470 PR c/7054
11471 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
11472 * tree.h (initial_max_fld_align): Declare
11473 * stor-layout.c (initial_max_fld_align): Define and initialize.
11474 (maximum_field_alignment): Initialize to the same value.
11475 * common.opt: Add -fpack-struct= variant of switch.
11476 * opts.c: Handle -fpack-struct= variant of switch.
11477 * c-pragma.c: Change #pragma pack() handling so that it becomes
11478 compatible to other compilers: accept individual 'push' argument,
11479 make final pop restore (command line) default, correct interaction
11480 of push/pop and sole specification of a new alignment (so that the
11481 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
11482 to #pragma pack(push, <n>).
11483 * doc/extend.texi: New node "Structure-Packing Pragmas" under
11484 "Pragmas", describing #pragma pack.
11485 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
11486 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
11487 Document new TARGET_DEFAULT_PACK_STRUCT.
11488
90300b8c
DP
114892004-09-03 Devang Patel <dpatel@apple.com>
11490
11491 * dwarf2out.c (gen_field_die). Equate decl number to die.
c9996000 11492
d6df6ae2
VM
114932004-09-03 Vladimir Makarov <vmakarov@redhat.com>
11494
11495 PR target/15832
11496 * global.c (modify_reg_pav): New function.
11497 (make_accurate_live_analysis): Call the new function. Move pavin
11498 modification by earlyclobber set into the new function.
11499
25c99d8f
AS
115002004-09-03 Andreas Schwab <schwab@suse.de>
11501
11502 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
11503 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
11504 extended.
11505
7f148c2f
JB
115062004-09-02 Jan Beulich <jbeulich@novell.com>
11507
11508 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
11509 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
11510 not unwind code specific ones.
11511 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
11512 Remove unwind code specific dependencies.
11513 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
11514 Remove gbl-ctors.h.
11515 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
11516 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
11517 * tsystem.h: Declare memcpy and memset when inhibit_libc.
11518
9e42ab3e 115192004-09-02 Roman Zippel <zippel@linux-m68k.org>
c9996000 11520
9e42ab3e
RZ
11521 * combine.c (try_combine): Delay modifying of insns which cannot
11522 be easily undone.
11523
1b08d87d
DB
115242004-09-02 Daniel Berlin <dberlin@dberlin.org>
11525
11526 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
11527 tree-loop-im.
11528 * gcc/tree-ssa-loop.c: Ditto
11529 * gcc/tree-ssa-loop-ivcanon.c: Ditto
11530 * gcc/doc/invoke.texi: Ditto.
11531
d4e43dff
ZL
115322004-09-02 Ziemowit Laski <zlaski@apple.com>
11533
11534 * c-decl.c (store_parm_decls_newstyle): Make static.
11535 (store_parm_decls_from): New function.
11536 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
11537 (store_parm_decls_from): New prototype.
11538
cd7d9ca4
DE
115392004-09-02 David Edelsohn <edelsohn@gnu.org>
11540
11541 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
11542 HImode with STRICT_ALIGNMENT.
11543
40a1c5cb
MM
115442004-09-02 Mark Mitchell <mark@codesourcery.com>
11545
11546 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
11547 (TARGET_OS_CPP_BUILTINS): Likewise.
11548 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
11549 TARGET_BPABI_CPP_BUILTINS.
11550
b54567e2 115512004-09-02 Roman Zippel <zippel@linux-m68k.org>
c9996000 11552
b54567e2
RZ
11553 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
11554
5906d013
EC
115552004-09-02 Eric Christopher <echristo@redhat.com>
11556
11557 * builtins.c (expand_builtin_cabs): Delete.
11558 (expand_builtin): If unable to fold the values do a normal
11559 library call for builtin_cab*.
11560 (fold_builtin_cabs): Depend on optimize and optimize_size.
11561 * optabs.c (expand_cmplxdiv_straight): Delete.
11562 (expand_cmplxdiv_wide): Ditto.
11563 (expand_vector_binop): Ditto.
11564 (expand_vector_unop): Ditto.
11565 (expand_complex_abs): Delete.
11566 (expand_binop): Remove calls to above functions.
11567 Remove open coding of complex arithmetic.
11568 (expand_unop): Ditto.
11569 * optabs.h: Remove prototypes.
11570
3041390d
ZL
115712004-09-02 Ziemowit Laski <zlaski@apple.com>
11572
11573 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
11574 * c-tree.h (store_parm_decls_newstyle): New prototype.
11575
5514620a
GK
115762004-09-02 Geoffrey Keating <geoffk@apple.com>
11577
11578 * config/rs6000/rs6000.c (expand_block_clear): Use vector
11579 instructions if available.
11580 (expand_block_move): Likewise.
11581
02f14c38
JH
115822004-09-03 Jan Hubicka <jh@suse.cz>
11583
11584 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
11585
19dc705e
MM
115862004-09-02 Mark Mitchell <mark@codesourcery.com>
11587
11588 * config/arm/symbian.h (LIB_SPEC): Define to empty.
11589 * config/arm/t-symbian (SHLIB_LC): Likewise.
11590
24112ed0
PB
115912004-09-02 Paul Brook <paul@codesourcery.com>
11592
11593 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
11594
7ad769fe
RS
115952004-09-02 Richard Sandiford <rsandifo@redhat.com>
11596
11597 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
11598 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
11599 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
11600 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
11601 (mips_issue_rate): Remove unreachable abort.
11602 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
11603 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
11604 (mips_block_move_straight, print_operand_address, mips_file_start)
11605 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
11606 (mips_output_conditional_branch, mips_expand_builtin_direct)
11607 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
11608 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
11609 with gcc_assert.
11610
9f09b415
RS
116112004-09-02 Richard Sandiford <rsandifo@redhat.com>
11612
11613 * config/mips/mips.md (*lea_high64): Change split condition to
11614 flow2_completed. Add a peephole2 to generate a more parallel version.
11615
07724022
JH
116162004-09-02 Jan Hubicka <jh@suse.cz>
11617
11618 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
11619 GGC.
11620
11621 * ggc-page.c: include tree-flow.h.
11622 (extra_order_size_table): Add stmt_ann_d.
11623 (STAT_LABEL): Rename from ....
11624 (LABEL): ... this one.
11625 * Makefile.in (ggc-page.o): Add dependency.
11626
11627 * ggc-common.c (ggc_force_collect): New global variable.
11628 (loc_description): Add fields "freed", "collected"
11629 (ptr_hash): New static hash
11630 (ptr_hash_entry): New structure.
11631 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
11632 (ggc_record_overhead): Take ptr argument, record it
11633 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
11634 (cmp_statistics): Imrove sorting.
11635 (dump_ggc_loc_statistics): Output newly collected statistics
11636 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
11637 (ggc_free): Call ggc_free_overhead.
11638 (ggc_collect): Force collection when asked to be forced.
11639 (ggc_collect): Call ggc_prune_overhead_list.
11640 * ggc.h (ggc_force_collect): Declare
11641 (ggc_record_overhead): Update prototype.
11642 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
11643
10060b83
JW
116442004-09-02 James E Wilson <wilson@specifixinc.com>
11645
11646 * common.opt (ftrapping-math): Default to on.
11647
9d2da95b
RE
116482004-09-02 Richard Earnshaw <rearnsha@arm.com>
11649
11650 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
11651
3f1f9228
DC
116522004-09-02 Denis Chertykov <denisc@overta.ru>
11653
11654 PR target/16884
11655 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
11656 match_scratch.
11657 (*movmemqi_insn): Likewise.
11658 (*movmemhi): Likewise.
11659 (clrmemhi): Likewise.
11660 (*clrmemqi): Likewise.
11661 (*clrmemhi): Likewise.
11662
e6fc6c9b
PB
116632004-09-02 Paul Brook <paul@codesourcery.com>
11664
11665 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
11666 default_use_cxa_atexit=yes.
11667
d86c1b91
AM
116682004-09-02 Alan Modra <amodra@bigpond.net.au>
11669
11670 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
11671 (struct kernel_old_ucontext): Delete.
11672 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
11673 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
11674 when IN_LIGGCC2.
11675
3806400d
RS
116762004-09-02 Richard Sandiford <rsandifo@redhat.com>
11677
11678 * toplev.c (process_options): Fix typo.
11679
9969aaf6
RH
116802004-09-01 Richard Henderson <rth@redhat.com>
11681
11682 PR middle-end/17258
11683 * calls.c (initialize_argument_information): Tighten pass-through
11684 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
11685 Use build_fold_addr_expr.
11686 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
11687 that assumes ADDR_EXPR allocates stack space.
11688 * fold-const.c (build_fold_addr_expr_with_type): Look through
11689 WITH_SIZE_EXPR.
11690
1e8964cf
DN
116912004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
11692
11693 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
11694 * ggc.h (ggc_alloc_rtx): Delete.
11695
26276705
RS
116962004-09-01 Roger Sayle <roger@eyesopen.com>
11697
11698 * expmed.c (enum alg_code): Remove long unused enumeration values.
7f148c2f 11699 (struct mult_cost): New structure to hold the "score" of a synthetic
26276705
RS
11700 multiply sequence, including both a rtx_cost and a latency field.
11701 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
11702 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
11703 (struct algorithm): Change type of cost field to be mult_cost.
11704 (synth_mult): Change type of cost_limit argument to be a
11705 pointer to a mult_cost. Update all cost comparisons to use the
5906d013 11706 new mult_cost infrastructure. For alg_add_factor and
26276705
RS
11707 alg_sub_factor operations, latency is lower than the rtx_cost.
11708 (choose_mult_variant): Update calls to synth_mult. Perform
11709 cost comparisons using the new mult_cost infrastructure.
11710 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
11711 to optain the total rtx_cost of a synth_mult "algorithm".
11712
594a3565
DE
117132004-09-01 David Edelsohn <edelsohn@gnu.org>
11714
11715 * config/rs6000/power4.md: Increase store latency to 12.
11716 * config/rs6000/power5.md: Same.
11717
130d5426
JW
117182004-09-01 James E Wilson <wilson@specifixinc.com>
11719
11720 PR target/14064
11721 * config/avr/avr.c (avr_unique_section): Delete prototype and
11722 definition.
11723 (TARGET_ASM_UNIQUE_SECTION): Delete.
11724
57a6af27
ZL
117252004-09-01 Ziemowit Laski <zlaski@apple.com>
11726
11727 * c-parse.in (primary): Call objc_build_message_expr(),
11728 objc_build_selector_expr(), objc_build_protocol_expr(),
11729 objc_build_encode_expr() and objc_build_string_object() instead of
11730 build_message_expr(), build_selector_expr(), build_protocol_expr(),
11731 build_encode_expr() and build_objc_string_object(), respectively.
11732 (component_decl_list2): Call objc_get_class_ivars() instead of
11733 get_class_ivars_from_name().
11734 (keyworddecl): Call objc_build_keyword_decl() instead of
11735 build_keyword_decl().
11736 (receiver): Call objc_get_class_reference() instead of
11737 get_class_reference().
11738 (reswords): Add blank line before @@ifobjc section, for clarity.
11739
5ec214fc
FJ
117402002-09-01 Fariborz Jahanian <fjahanian@apple.com>
11741
11742 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
11743 to Altivec vetors.
11744
40219f96
WY
117452004-09-01 Wu Yongwei <adah@sh163.net>
11746 Danny Smith <dannysmith@users.sourceforge.net>
11747
11748 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
11749 not Windows 'DWORD'.
11750 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
11751 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
11752 (__gthr_win32_recursive_mutex_init_function): Add prototype for
11753 __GTHREAD_HIDE_WIN32API case..
11754 (__gthr_win32_recursive_mutex_lock): Likewise.
11755 (__gthr_win32_recursive_mutex_trylock): Likewise.
11756 (__gthr_win32_recursive_mutex_unlock): Likewise.
11757 (__gthread_recursive_mutex_init_function); Add definition for
11758 __GTHREAD_HIDE_WIN32API case.
11759 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
11760 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
11761 call to InterlockedDecrement.
11762
78ad8fbe
RK
117632004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11764
ba2e294d
RK
11765 * tree-tailcall.c (find_tail_calls): Also fail is statement has
11766 volatile operands.
11767
0705d602
RK
11768 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
11769
78ad8fbe
RK
11770 * doc/c-tree.texi: Document new operands for ARRAY_REF and
11771 COMPONENT_REF.
11772
6d9901e7
ZD
117732004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11774
11775 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
11776 * common.opt (fspeculative-prefetching): New.
11777 * flags.h (flag_speculative_prefetching_set): Declare.
11778 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
11779 values.
11780 * opts.c (flag_sepculative_prefetching_set): New variable.
11781 (common_handle_option): Handle -fspeculative-prefetching.
11782 * passes.c (rest_of_compilation): Ditto.
11783 * profile.c (instrument_values, compute_value_histograms, branch_prob):
11784 Use vectors instead of arrays.
11785 * toplev.c (process_options): Handle -fspeculative-prefetching.
11786 * rtl-profile.c: Include ggc.h.
11787 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
11788 rtl_gen_one_value_profiler_no_edge_manipulation,
11789 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
11790 argument changed.
11791 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
11792 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
11793 argument changed.
11794 * value-prof.c: Include ggc.h.
11795 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
11796 macros.
11797 (insn_prefetch_values_to_profile, find_mem_reference_1,
11798 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
11799 speculative_prefetching_transform): New.
11800 (value_profile_transformations): Call speculative_prefetching_transform.
11801 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
11802 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
11803 tree_find_values_to_profile, find_values to profile): Use vectors
11804 instead of arrays.
11805 (free_profiled_values): Removed.
11806 * value-prof.h (struct histogram_value): Renamed to
11807 struct histogram_value_t.
11808 (histogram_value, histogram_values): New types.
11809 (find_values_to_profile): Declaration changed.
11810 (free_profiled_values): Removed.
11811 (struct profile_hooks): Type of argument of the hooks changed to
11812 histogram_value.
11813 * doc/invoke.texi (-fspeculative-prefetching): Document.
11814
d7fe1183
ZD
118152004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11816
11817 PR rtl-optimization/16408
11818 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
11819
938e234b
RH
118202004-09-01 Richard Henderson <rth@redhat.com>
11821
7f148c2f
JB
11822 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
11823 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
938e234b 11824
d0879c98
JJ
118252004-09-01 Jakub Jelinek <jakub@redhat.com>
11826
11827 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
11828
156a126c
MS
118292004-09-01 Mike Stump <mrs@apple.com>
11830
11831 * config/darwin.c (machopic_symbol_defined_p): In addition to
11832 being SYMBOL_REF_LOCAL_P, a symbol must also be
11833 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
11834 defined in this output file, or translation unit in the case
11835 of IMA not being used.
11836 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
11837 never need .indirect_symbol when indirecting.
11838
a5d8b097
JJ
118392004-09-01 Jakub Jelinek <jakub@redhat.com>
11840
11841 * Makefile.in (bb-reorder.o): Add several dependencies.
11842
266bff3a
JJ
118432004-09-01 Jakub Jelinek <jakub@redhat.com>
11844
11845 * fold-const.c (operand_equal_p): Require equal sign also for
11846 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
11847
32078532
RE
118482004-09-01 Richard Earnshaw <rearnsha@arm.com>
11849
11850 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
11851 for use in configargs.h. Put the cname in a separate variable. Use
11852 that to set target_cpu_default2.
11853
c0311627
R
118542004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
11855 Nick Clifton <nickc@redhat.com>
11856
11857 * config/sh/sh.md ("length"): Increase branch length when
11858 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
11859 constant, 2 byte for aligning the constant.
11860
d98a72fd
RE
118612004-09-01 Richard Earnshaw <rearnsha@arm.com>
11862
11863 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
11864 CPU.
11865 (arm7tdmi-s): New CPU name.
11866 * arm/arm.c (ARM_CORE): Update for new format.
11867 * arm/arm.h (ARM_CORE): Likewise.
11868 * arm/gentune.sh: Update for extra field.
11869 * config.gcc: Likewise.
11870 * arm/arm-tune.md: Regenerate.
11871 * doc/invoke.texi: Document the real processor names for ARM cpus.
11872
0a1aa867
RE
118732004-09-01 Richard Earnshaw <rearnsha@arm.com>
11874
11875 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
11876 (floatdidf): New functions.
11877 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
11878 (floatdisf): New functions.
11879 * t-arm-elf: Use them.
11880
bc095846
ZL
118812004-09-01 Ziemowit Laski <zlaski@apple.com>
11882
11883 * c-common.h (lookup_interface): Remove prototype.
11884 (is_class_name): Rename to objc_is_class_name.
11885 (lookup_objc_ivar): Rename to objc_lookup_ivar.
11886 (get_current_scope): Rename to objc_get_current_scope.
11887 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
11888 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
11889 (yylexname): Call objc_is_class_name() instead of is_class_name().
11890 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
11891 instead of lookup_objc_ivar().
11892 * stub-objc.c (lookup_interface): Remove stub.
11893 (is_class_name): Rename to objc_is_class_name.
11894 (lookup_objc_ivar): Rename to objc_lookup_ivar.
11895
14945fe6
MM
118962004-08-31 Mark Mitchell <mark@codesourcery.com>
11897
11898 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
11899 * config/arm/lib1funcs.asm: Do not include supplemental .S files
11900 when compiling for Symbian.
11901 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
11902 (TARGET_OS_CPP_BUILTINS): Likewise.
11903 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
11904
93415288
SS
119052004-08-31 Stan Shebs <shebs@apple.com>
11906
11907 * toplev.c (process_options): Ensure debug_hooks is initialized.
11908
505970fc
MM
119092004-08-31 Mark Mitchell <mark@codesourcery.com>
11910
11911 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
11912 * target.h (cxx): Add export_class_data.
11913 * config/arm/arm.c (arm_cxx_export_class_data): New function.
11914 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
dc40803a 11915 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
5906d013 11916
bee9efbc
KK
119172004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
11918
11919 * config/sh/sh.c (output_branch): Check the insn length possibly
11920 in the delayed slot.
11921
a4e9ffe5
RK
119222004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11923
a0ca8e0c
RK
11924 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
11925 blank after ')'.
11926 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
11927
a4e9ffe5
RK
11928 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
11929 (c_sizeof_of_alignof_type): Likewise.
11930 * expr.c (array_ref_element_size): Likewise.
11931 (highest_pow2_factor_for_target): Likewise.
11932 * gimplify.c (canonicalize_addr_expr): Likewise.
11933 (gimplify_compound_lval): Likewise.
11934 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
11935 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
11936 * varasm.c (assemble_variable): Likewise.
11937 (output_constant_def_contents): Alignments are unsigned.
11938
631b67ce
RK
119392004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11940 Jeff Law <law@redhat.com>
11941
11942 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
11943 gets modified.
11944
af287697
MM
119452004-08-31 Mark Mitchell <mark@codesourcery.com>
11946
11947 * hooks.c (hook_bool_void_true): New function.
11948 * hooks.h (hook_bool_void_true): Declare.
11949 * target-def.h (TARGET_CXX): Add
11950 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
11951 * target.h (struct cxx): Add key_method_may_be_inline.
11952 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
11953 function.
11954 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
11955 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
11956 __THUMB_INTERWORK.
5906d013 11957
678584fc
DC
119582004-08-31 Denis Chertykov <denisc@overta.ru>
11959
11960 PR target/15417
11961 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
11962 frame pointer register only in Pmode while reload in progress.
11963
c4c9b76e
SC
119642004-08-31 Stephane Carrez <stcarrez@nerim.fr>
11965
11966 PR target/15334
11967 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
11968 because it breaks the 32-bit shift patterns that rely on a match_dup.
11969
c61eceeb
MA
119702004-08-31 Matt Austern <austern@apple.com>
11971
11972 * config/darwin.c (darwin_make_decl_one_only): Allocate section
11973 names once per compilation, instead of once per symbol.
5906d013 11974
71b5d516
PB
119752004-08-31 Paolo Bonzini <bonzini@gnu.org>
11976
11977 * Makefile.in (build_subdir): New substitution.
11978 (fixinc.sh): Simplify heavily since fixincludes is already built.
11979 (stmp-fixinc): Depend on specs.ready.
11980 (install-mkheaders): Use new location of fixincludes.
11981 (clean): Do not descend into fixinc.
11982 (FORBUILD): Replace with ../$(build_subdir).
11983 * configure.ac (build_subdir): Substitute.
11984 (FORBUILD): Do not set.
11985 (all_outputs): Remove fixinc/Makefile.
11986 (default commands): Do not create links in fixinc.
11987 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
11988 the fixincludes configuration steps and substituting
11989 @FIXINCL@ in fixinc.in.
11990 * fixinc.in: New, from fixinc/fixincl.sh.
11991
11992 * fixinc/*: Removed.
5906d013 11993
f7b0fb68
JM
119942004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
11995
11996 * attribs.c (strip_attrs): Remove.
11997 (split_specs_attrs): Move ...
11998 * c-decl.c: ... to here.
11999 * tree.h (split_specs_attrs, strip_attrs): Remove.
12000 * c-tree.h (split_specs_attrs): Declare.
12001
f51a38b9
RS
120022004-08-31 Richard Sandiford <rsandifo@redhat.com>
12003
12004 * read-rtl.c: Disable RTL checking.
12005 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
12006
34ebf755
RS
120072004-08-31 Richard Sandiford <rsandifo@redhat.com>
12008
12009 * config/mips/mips.md (fcond): New code macro and attribute.
12010 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
12011 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
12012 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
12013
9b76aa3b
MM
120142004-08-30 Mark Mitchell <mark@codesourcery.com>
12015
12016 Revert:
12017 2004-08-29 Mark Mitchell <mark@codesourcery.com>
12018 PR rtl-optimization/16590
12019 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
12020
99fa8911
AP
120212004-08-30 Andrew Pinski <apinski@apple.com>
12022
5906d013 12023 * hard-reg-set.h:
992c944c
AP
12024 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
12025 * ChangeLog: Fix previous ChangeLog entry.
12026
99fa8911 12027 PR rtl-opt/13987
5906d013 12028 * config.host (use_long_long_for_widest_fast_int): New, default is
99fa8911
AP
12029 off.
12030 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
12031 * configure.ac: If use_long_long_for_widest_fast_int, then
12032 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
12033 * configure: Regenerate.
12034 * config.in: Regenerate.
12035 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
12036 New: widest integer type supported efficiently in hardware for the
12037 host.
12038 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
12039 HOST_BITS_PER_WIDEST_FAST_INT.
12040 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
5906d013 12041 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
99fa8911
AP
12042 HOST_WIDEST_FAST_INT
12043 instead of HOST_WIDE_INT.
12044 (HARD_REG_SET_LONGS): Likewise.
12045 (UHOST_BITS_PER_WIDE_INT): Likewise.
12046 Change the checks for the fast cases to be based on
992c944c 12047 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
99fa8911 12048
f4c0250b
SB
120492004-08-30 Steven Bosscher <stevenb@suse.de>
12050
12051 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
12052 not the pointers.
12053
ff164b22
GK
120542004-08-30 Geoffrey Keating <geoffk@apple.com>
12055
12056 PR 12738
12057 PR 17205
12058 Radar 3460526
12059 Radar 3775729
12060 * c-decl.c (grokdeclarator): Produce error for 'static' on local
12061 function declaration.
12062
bc482be4
RH
120632004-08-30 Richard Henderson <rth@redhat.com>
12064
12065 * expr.c (array_ref_element_size): Force aligned_size back to
12066 sizetype.
12067 (component_ref_field_offset): Similarly for aligned_offset.
12068 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
12069 low-bound, element-size, field-offset fields rather than
12070 computed values.
12071
21611613
JM
120722004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
12073
12074 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
12075 redundant code.
12076
7b112487
JM
120772004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
12078
12079 * c-tree.h (struct language_function): Add arg_info element.
12080 * c-decl.c (current_function_arg_info): New.
12081 (grokdeclarator, store_parm_decls): Use it instead of
12082 DECL_ARGUMENTS.
12083 (c_push_function_context, c_pop_function_context): Save and
12084 restore it.
12085
5cc200fc
RH
120862004-08-30 Richard Henderson <rth@redhat.com>
12087
5906d013 12088 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
5cc200fc
RH
12089 COMPONENT_REF to pointer arithmetic.
12090 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
12091 constant "c" as a valid constant initializer. Allow narrowing of
12092 differences against the same base object, for any base object.
12093
6377bb9a
RH
120942004-08-30 Richard Henderson <rth@redhat.com>
12095
12096 * expr.c (expand_expr_addr_expr): New.
12097 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
12098
308cd611
RS
120992004-08-30 Richard Sandiford <rsandifo@redhat.com>
12100
12101 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
12102 (mips_fp_condition): New enum.
12103 (mips_fp_conditions): New array.
12104 (print_fcc_operand): Delete.
12105 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
12106 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
12107 (builtin_description): Add "cond" field.
12108 (DIRECT_BUILTIN): Initialize it.
12109 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
12110 into INSN and CODE. Initialize the "cond" field.
12111 (CMP_BUILTINS): Update accordingly.
12112 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
12113 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
12114 mips_fp_condition as argument. Make it the final operand of the
12115 comparison instruction.
12116 (mips_expand_builtin): Update accordingly.
12117 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
12118 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
12119 the gaps.
12120 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
12121 Don't use the 'Q' operand prefix; just print the operand normally.
12122 (mips_cabs_*, mips_c_*): Delete, replacing with...
12123 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
12124 patterns. Split the 4s versions into 2 ps patterns after reload.
12125
88f19756
RH
121262004-08-30 Richard Henderson <rth@redhat.com>
12127
12128 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
12129 assuming an ADDR_EXPR is non-null.
12130
70008293
JM
121312004-08-30 Jason Merrill <jason@redhat.com>
12132
d92a3b38 12133 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
70008293 12134
8ce16ed6
NS
121352004-08-30 Nathan Sidwell <nathan@codesourcery.com>
12136
12137 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
12138 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
12139 gcc_assert and gcc_unreachable instead of abort.
12140 * alloc-pool.c (abort, fancy_abort): Remove.
12141 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
12142 gcc_assert or gcc_unreachable.
12143 * attribs.c (init_attributes, decl_attributes): Likewise.
12144 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
12145 mark_bb_for_unlikely_executed_section,
12146 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
12147 fix_crossing_unconditional_branches): Likewise.
12148 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
12149 bitmap_operation): Likewise.
12150 * bt-load.c (insn_sets_btr_p, augment_live_range,
12151 move_btr_def): Likewise.
12152 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
12153 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
12154 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
12155 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
12156 expand_builtin_memcmp, expand_builtin_args_info,
12157 std_gimplify_va_arg_expr, expand_builtin_unop,
12158 expand_builtin_fputs, expand_builtin_profile_func,
12159 expand_builtin_fork_or_exec, fold_builtin_bitop,
12160 fold_builtin_classify, fold_builtin_fputs): Likewise.
12161
fc6633e0
NS
121622004-08-30 Nathan Sidwell <nathan@codesourcery.com>
12163
e0448193
NS
12164 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
12165 * gcov.c (abort): Remove undef.
12166
fc6633e0
NS
12167 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
12168 (struct tree_binfo): Remove primary field.
12169
89b8abbf
PB
121702004-08-30 Paolo Bonzini <bonzini@gnu.org>
12171
12172 * fixinc/Makefile.in (machname.h): Remove.
12173 (fixincl.x): Do not pass $@ to genfixes.
12174 * fixinc/genfixes: Remove code to produce machname.h.
12175 * fixinc/fixincl.sh: Move it here instead.
12176 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
12177 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
12178 return a bool indicating whether pz_mn_name_pat is NULL.
12179 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
12180 Declare extern C variables for the ENV_TABLE.
12181 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
12182 instead use the result of mn_get_regexps.
12183 * fixinc/fixtests.c: Likewise.
12184
39880d37
PB
121852004-08-30 Paolo Bonzini <bonzini@gnu.org>
12186
12187 * configure.ac: Do not run fixincludes after stage1 during
12188 toplevel bootstrap.
12189 * configure: Regenerate.
12190
a8b3643c
RE
121912004-08-30 Richard Earnshaw <rearnsha@arm.com>
12192
12193 * sched-deps.c (get_condition): Partially revert previous, by never
12194 trying to extract the condition from a condjump.
12195
fc6633e0
NS
121962004-08-30 Nathan Sidwell <nathan@codesourcery.com>
12197
12198 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
12199 (handle_visibility_attribute, c_determine_visibility): Likewise.
12200 * c-common.h (my_friendly_assert): Remove.
12201
afa396ff
RS
122022004-08-30 Richard Sandiford <rsandifo@redhat.com>
12203
12204 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
12205 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
12206 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
12207 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
12208 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
12209
ef6379fd
DN
122102004-08-30 Diego Novillo <dnovillo@redhat.com>
12211
12212 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
12213 in COMPONENT_REF nodes.
12214
7783b402
GDR
122152004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
12216
12217 PR c++/15378
12218 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
12219 global_dc->warning_as_error_requested.
12220 * diagnostic.c (diagnostic_initialize): Tidy.
12221 * diagnostic.h (diagnostic_context::x_data): Remove
12222 (diagnostic_context::issue_warnings_are_errors_message): Rename
12223 from warnings_are_errors_message.
12224 (diagnostic_context::warning_as_error_requested): New.
12225
adf968c7
RE
122262004-08-30 Richard Earnshaw <rearnsha@arm.com>
12227
12228 * sched-deps.c (get_condition): Fix breakage in previous patch.
12229
999f4d5e
PB
122302004-08-30 Paul Brook <paul@codesourcery.com>
12231
12232 * doc/install.texi: Fix broken mpfr link.
12233
5a0c2304
DB
122342004-08-29 David O'Brien <obrien@FreeBSD.org>
12235
12236 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
12237 other FreeBSD platforms.
12238
880873be
RE
122392004-08-29 Richard Earnshaw <rearnsha@arm.com>
12240
12241 * arm.h (REVERSE_CONDITION): Define.
12242 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
12243
15dce812
RE
122442004-08-29 Richard Earnshaw <rearnsha@arm.com>
12245
12246 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
12247 just the codes, call reversed_comparison_code ().
12248 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
12249 (not_reg_cond): Use reversed_comparison_code.
12250 (and_reg_cond): Likewise.
12251 * ifcvt.c (cond_exec_process_if_block): Likewise.
12252 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
12253
6903ecd4
RE
122542004-08-29 Richard Earnshaw <rearnsha@arm.com>
12255
12256 * sched-deps.c (get_condition): Rewrite using jump support functions.
12257 Use reversed_comparison_code.
12258 (conditions_mutex_p): Use reversed_comparison_code.
12259
ea9bfbf2
RS
122602004-08-29 Richard Sandiford <rsandifo@redhat.com>
12261
12262 * config/mips/mips.c (override_options): Disable hot/cold partitioning
12263 for MIPS16.
12264
4ca1f68f
RS
122652004-08-29 Richard Sandiford <rsandifo@redhat.com>
12266
12267 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
12268 (mips_function_type): Move to mips.c.
12269 * config/mips/mips.c (mips_builtin_type): New enum.
12270 (builtin_description): Replace code and ftype with builtin_type
12271 and function_type.
12272 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
12273 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
12274 (CODE_FOR_mips_abs_ps): Define.
12275 (mips_bdesc): Use new macros.
12276 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
12277 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
12278 (mips_expand_builtin_direct): New function.
12279 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
12280 builtin. Replace boolean parameter with builtin_type.
12281 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
12282 (mips_expand_4s_compare_builtin): Delete, replacing with...
12283 (mips_expand_builtin_compare): ...this new function.
12284
5e9f78cc
MM
122852004-08-29 Mark Mitchell <mark@codesourcery.com>
12286
12287 PR rtl-optimization/16590
12288 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
12289
766ff1b1
DN
122902004-08-29 Diego Novillo <dnovillo@redhat.com>
12291
12292 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
12293 * tree-ssa-propagate.c: Fix documentation.
12294
2435c4c1
RS
122952004-08-29 Richard Sandiford <rsandifo@redhat.com>
12296
12297 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
12298 (mov[sd]fcc): Likewise.
12299
53d9ac3b
RS
123002004-08-29 Richard Sandiford <rsandifo@redhat.com>
12301
12302 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
12303
93898c8b
RS
123042004-08-29 Richard Sandiford <rsandifo@redhat.com>
12305
12306 * config/mips/mips.md (divide_condition): New mode attribute.
12307 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
12308 (sqrt[sd]f3): Redefine using SCALARF.
12309 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
12310 patterns.
12311
aae0609c
RS
123122004-08-29 Richard Sandiford <rsandifo@redhat.com>
12313
12314 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
12315 (loadx, storex, fmt, UNITMODE): New mode attributes.
12316 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
12317 (mul[sd]f3): Redefine using :SCALARF.
12318 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
12319 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
12320 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
12321 Check TARGET_FUSED_MADD for V2SF too.
12322 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
12323 were already named.
12324 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
12325 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
12326
74fc61d1
RS
123272004-08-29 Richard Sandiford <rsandifo@redhat.com>
12328
12329 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
12330 V2SF_type_node if it will be needed.
12331
ff55fb9c
RS
123322004-08-29 Richard Sandiford <rsandifo@redhat.com>
12333
12334 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
12335 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
12336 (mips_prepare_builtin_target): New function.
12337 (mips_expand_builtin): Use them. Update calls to subroutines.
12338 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
12339 cmp_choice with a boolean argument to select between movt and movf.
12340 Take the comparison's icode as an argument, not the function's fcode.
12341 (mips_expand_compare_builtin): New function. Rename existing function
12342 to mips_expand_scalar_compare_builtin.
12343 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
12344 (mips_expand_ps_compare_builtin): Use the new functions. Take the
12345 comparison's icode as an argument, not the builtin's fcode.
12346
f691c4e3
RS
123472004-08-29 Richard Sandiford <rsandifo@redhat.com>
12348
12349 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
12350 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
12351 registers are false and -1 if all registers are true.
12352 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
12353 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
12354 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
12355 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
12356 (bc1any2t, bc1any2f): Likewise CCV2.
12357 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
12358
49135706
RS
123592004-08-29 Richard Sandiford <rsandifo@redhat.com>
12360
12361 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
12362 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
12363 UNSPEC rather than an IF_THEN_ELSE.
12364 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
12365 mips_cond_move_tf_ps by name.
12366
06a4ab70
CF
123672004-08-29 Chao-ying Fu <fu@mips.com>
12368 James E Wilson <wilson@specifixinc.com>
5906d013 12369
06a4ab70
CF
12370 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
12371 8 byte size and alignment. Give CCV4 16 byte size and alignment.
12372 * config/mips/mips-ps-3d.md: New file.
12373 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
12374 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12375 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
12376 (mips_output_move): Emit "mov.ps" for V2SFmode.
12377 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
12378 MODE_VECTOR_FLOAT.
12379 (override_options): Check if TARGET_MIPS3D and there was an explicit
12380 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
12381 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
12382 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
12383 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
12384 and allow CCV2 and CCV4 to occupy two and four CC registers.
12385 (print_fcc_operand): New function.
12386 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
12387 %Z to call print_fcc_operand.
12388 (mips_function_value): Handle MODE_VECTOR_FLOAT.
12389 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
12390 (mips_vector_mode_supported_p): New function.
12391 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
12392 (builtin_description): New struct.
12393 (mips_bdesc): New array of struct builtin_description.
12394 (mips_expand_builtin, mips_init_builtins,
12395 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
12396 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
12397 functions.
12398 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
12399 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
12400 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
12401 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
12402 "-mips3d", and "-mno-mips3d".
12403 (ASM_SPEC): Map -mips3d to -mips3d in gas.
12404 (EXTRA_CONSTRAINT_Y): New macro.
12405 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
12406 multi-letter constraint 'Y'.
12407 (CONSTRAINT_LEN): New macro.
12408 (enum mips_builtins): New for MIPS builtin functions.
12409 (enum mips_function_type): New for the types of MIPS builtin functions.
12410 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
5906d013 12411 * config/mips/mips.md: New constants for paired single and MIPS-3D
06a4ab70
CF
12412 instructions. Include the new mips-ps-3d.md file.
12413 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
12414 movv2sf_hardfloat_64bit): New named patterns.
12415 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
12416 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
12417 sdxc1_v2sf_di): New unnamed patterns.
12418 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
12419 const_vector support.
12420 (const_0_or_1_operand): New predicate.
12421 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
12422
750628d8
DN
124232004-08-29 Diego Novillo <dnovillo@redhat.com>
12424
12425 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
12426 (tree-ssa-propagate.o): New rule.
12427 (GTFILES): Add tree-ssa-propagate.c.
12428 * tree-flow.h (struct stmt_ann_d): Remove field
12429 in_ccp_worklist.
12430 * tree-ssa-propagate.c: New file.
12431 * tree-ssa-propagate.h: New file.
12432 * tree-ssa-ccp.c: Re-write to use the routines from
12433 tree-ssa-propagate.c.
12434
f108270b
AP
124352004-08-28 Andrew Pinski <apinski@apple.com>
12436
12437 * tree-ssa-loop.c: Remove extra include of basic-block.h.
12438
e5a002e3
ZL
124392004-08-28 Ziemowit Laski <zlaski@apple.com>
12440
12441 * c-common.h: Update comments about ObjC/ObjC++ entry points.
12442 (objc_is_reserved_word): New prototype.
12443 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
12444 separate section; these are call-backs.
12445 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
12446 ObjC/ObjC++ "@" keywords.
12447 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
12448 prototypes; they already live in c-common.h.
12449 * stub-objc.c: Update copyright notice.
12450 (objc_is_reserved_word): New stub.
12451
2c46a62f
NS
124522004-08-28 Nathan Sidwell <nathan@codesourcery.com>
12453
12454 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
12455 even when not checking.
12456
40aac948
JM
124572004-08-27 Jason Merrill <jason@redhat.com>
12458
12459 PR c++/13684
12460 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
12461 (gimple_push_cleanup): Add eh_only parm.
12462 (gimplify_target_expr): Pass it.
12463 * c.opt (-fno-threadsafe-statics): New option.
12464 * c-opts.c (c_common_handle_option): Handle it.
12465 * c-common.h (flag_threadsafe_statics): Declare it.
12466 * c-common.c (flag_threadsafe_statics): Record it.
12467 * doc/invoke.texi: Document it.
12468 * tsystem.h (_GNU_SOURCE): Define.
12469 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
12470 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
12471 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
12472 (__gthread_recursive_mutex_init_function): New fn.
12473 (__gthread_recursive_mutex_lock): New fn.
12474 (__gthread_recursive_mutex_trylock): New fn.
12475 (__gthread_recursive_mutex_unlock): New fn.
12476 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
12477 * gthr-win32.h, gthr-vxworks.h: Likewise.
12478 * gthr.h: Document.
12479
1494c534
DE
124802004-08-27 David Edelsohn <edelsohn@gnu.org>
12481
12482 * config/rs6000/rs6000.c (rs6000_override_options): Increase
12483 maximum skip to 15. Set function alignment, jump alignment, and
12484 loop alignment to 16 for processors that form dispatch groups.
03e9c50a 12485 (rs6000_rtx_costs): outer_code is used.
1494c534 12486
ce552f75
NS
124872004-08-27 Nathan Sidwell <nathan@codesourcery.com>
12488
e3861d2a
NS
12489 * stor-layout.c (sizetype_set): Remove.
12490 (set_sizetype): Don't test or set it.
12491
ce552f75
NS
12492 * tree.h (size_int_type): Remove.
12493 * fold-const.c: Do not #include gt-fold-const.h.
12494 (size_htab_hash, size_htab_eq): Remove.
12495 (size_int_kind): Use build_int_cst.
12496 (new_const, size_htab): Remove.
12497 (size_int_type): Remove.
12498 (round_up): Use build_int_cst.
12499 (round_down): Likewise. Remove spurious constant build.
12500
06c37c96
NS
125012004-08-27 Nathan Sidwell <nathan@codesourcery.com>
12502
12503 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
12504 Add is_release variable, use it for --enable-werror and
12505 --enable-checking defaults.
12506 * system.h (gcc_assert, gcc_unreachable): New.
12507 * doc/install.texi (--enable-checking): Update.
12508 * configure, config.in: Rebuilt.
12509
57406c63
RS
125102004-08-26 Richard Sandiford <rsandifo@redhat.com>
12511
12512 * rtl.h (read_rtx): Change prototype.
12513 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
12514 line number. Return true on success.
12515 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
12516 callers accordingly.
12517
ee8a6a3e
RH
125182004-08-26 Richard Henderson <rth@redhat.com>
12519
12520 * c-typeck.c (build_offsetof): Remove.
12521 * c-tree.h (build_offsetof): Remove.
12522 * c-common.c (fold_offsetof_1, fold_offsetof): New.
12523 * c-common.h (fold_offsetof): Declare.
12524 * c-parse.in (offsetof_base): New.
12525 (offsetof_member_designator): Use it. Build references, not just
12526 a tree list.
12527 (primary): Use fold_offsetof, not build_offsetof.
12528
525c6bf5
RH
125292004-08-26 Richard Henderson <rth@redhat.com>
12530
12531 * tree.c (staticp): Return the static object.
12532 * tree.h (staticp): Update decl.
12533 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
12534 * langhooks.c (lhd_staticp): Return NULL_TREE.
12535 * langhooks-def.h (lhd_staticp): Update decl.
12536 * c-common.c (c_staticp): Return the static object.
12537 * c-common.h (c_staticp): Update decl.
12538
d416c0b3
RH
125392004-08-26 Richard Henderson <rth@redhat.com>
12540
12541 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
12542 modes.
12543
0b410f0b
JM
125442004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
12545
12546 PR c/13801
12547 * c-decl.c (struct c_binding): Add type and inner_comp fields.
12548 (bind): Set type and inner_comp fields.
12549 (pop_scope): Restore type of decl to the correct type from an
12550 outer scope. Give error when popping file scope for incomplete
12551 arrays completed incompatibly with default initialization in an
12552 inner scope.
12553 (diagnose_mismatched_decls): Handle externs with initializers at
12554 block scope.
12555 (pushdecl): Set type of external declaration at block scope based
12556 only on the visible declarations. Save type when changing the
12557 type of a declaration. Merge an external declaration at block
12558 scope with a visible static declaration at file scope.
12559 (implicitly_declare): Give recycled old declaration the new type
12560 except for incompatible declarations of built-in functions, saving
12561 the old type.
12562
b77c7437
ZL
125632004-08-26 Ziemowit Laski <zlaski@apple.com>
12564
12565 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
12566
a228baff
DB
125672004-08-26 Daniel Berlin <dberlin@dberlin.org>
12568
12569 * tree-alias-common.c (gate_pta): New function.
12570 (pass_build_pta): Use it.
12571 (pass_del_pta): Use it.
12572 (delete_alias_vars): Don't check flag_tree_points_to.
12573
2e6c9641
FJ
125742004-08-26 Fariborz Jahanian <fjahanian@apple.com>
12575
5906d013 12576 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
2e6c9641
FJ
12577 TFmode as additional register mode cloberred by call.
12578
125792004-08-26 Fariborz Jahanian <fjahanian@apple.com>
12580
12581 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
12582 parallel pattern for library call returning DImode in
12583 mixed mode.
12584
125852004-08-26 Fariborz Jahanian <fjahanian@apple.com>
12586
12587 * config/rs6000/rs6000.c (function_arg): Generate parallel
12588 pattern for more split args.
12589
125902004-08-26 Fariborz Jahanian <fjahanian@apple.com>
12591
12592 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
12593 either gen_movdi_di_update or gen_movdi_si_update depending on
12594 target mode.
12595 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
12596 to generate two versions.
5906d013 12597
36d59cf7
DB
125982004-08-26 Daniel Berlin <dberlin@dberlin.org>
12599
12600 * Makefile.in (lambda-code.o): New.
12601 (lambda-trans.o): Ditto.
12602 (TREE_DATA_REF_H): Ditto.
12603 (LAMBDA_H): Ditto.
12604 (lambda-mat.o): Use LAMBDA_H.
12605 (tree-data-ref.o): Ditto.
12606 * lambda-code.c: New file. Lambda code generation algorithm.
12607 * lambda-trans.c: Ditto. Lambda transformation matrix support.
12608 * lambda.h: Add lambda loop structures.
12609 Add lambda loopnest structures.
12610 Add lambda body vector structure.
12611 Add lambda linear expression structures.
12612 Add prototypes for functions in new files.
12613 * lambda-mat.c: Include tree.h
12614
126152004-08-26 Daniel Berlin <dberlin@dberlin.org>
5906d013
EC
12616 Sebastian Pop <pop@cri.ensmp.fr>
12617
12618 * tree-data-ref.h: Include lambda.h
36d59cf7 12619 (free_dependence_relation): Declared here.
5906d013 12620 (free_dependence_relations): Ditto.
36d59cf7
DB
12621 (free_data_refs): Ditto.
12622 * tree-data-ref.c (free_dependence_relation): New function.
12623 (free_dependence_relations): Ditto.
12624 (free_data_refs): Ditot.
12625 (analyze_all_data_dependences): Free datarefs and dependence_relations.
12626 (build_classic_dist_vector): Store in the dependence_relations the
12627 information. Each arc in the dependence_relations graph is labelled
12628 with the distance and direction vectors.
12629 (build_classic_dir_vector): Ditto.
12630 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
12631 Now computes again the whole dependence graph including read-read
12632 relations.
12633 (compute_data_dependences_for_loop): Now dependence_relations contains
12634 all the data, and thus it doesn't need to initialize the classic_dir
12635 and classic_dist vectors.
12636 (analyze_all_data_dependences): Adjusted for using the new interface of
12637 compute_data_dependences_for_loop. Remove the statistics dump.
5906d013 12638
a46bbb5a
BW
126392004-08-26 Bob Wilson <bob.wilson@acm.org>
12640
12641 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
12642 (xtensa_expand_block_move): Update comment.
12643 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
12644
52351a5e
RE
126452004-08026 Richard Earnshaw <rearnsha@arm.com>
12646
12647 PR target/13506
12648 * toplev.c (crash_signal): If we crashed while emitting
12649 a user asm, then die more gracefully.
12650
b72e46f0
NC
126512004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12652
12653 PR target/17119.
12654 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
12655 checking for a valid constant, regardless of sign.
12656
fd9363bf
RH
126572004-08-25 Richard Henderson <rth@redhat.com>
12658
d416c0b3
RH
12659 PR target/16974
12660 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
12661 if the constant satisfies add_operand.
fd9363bf 12662
45f413e4 126632004-08-25 Richard Henderson <rth@redhat.com>
5906d013 12664
d416c0b3
RH
12665 PR debug/10695
12666 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
12667 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
12668 unwind info for >16-bit frames.
45f413e4 12669
7e233208
RK
126702004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
12671
12672 PR target/17171
12673 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
12674
04886dc0
RH
126752004-08-25 Richard Henderson <rth@redhat.com>
12676
d416c0b3
RH
12677 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
12678 (TARGET_CANNOT_FORCE_CONST_MEM): New.
04886dc0 12679
aca2bd7c
AM
126802004-08-25 Andrew MacLeod <amacleod@redhat.com>
12681
12682 * doc/tree-ssa.texi: Document new operand iterator.
12683
0423421f
AM
126842004-08-26 Alan Modra <amodra@bigpond.net.au>
12685
12686 PR target/16480
12687 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
12688 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
12689 as PLUS base regs.
12690
e4dc702c
PB
126912005-08-28 Paul Brook <paul@codesourcery.com>
12692
12693 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
12694 -mfpu=vfp -march=armv5t
37d5a9a5 12695 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
e4dc702c 12696
6dd53648
RH
126972004-08-25 Richard Henderson <rth@redhat.com>
12698
12699 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
12700 * target.h (struct gcc_target): Add scalar_mode_supported_p.
12701 * targhooks.c (default_scalar_mode_supported_p): New.
12702 * targhooks.h (default_scalar_mode_supported_p): Declare.
12703 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
12704
12705 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
12706 before attempting to create types. Tidy.
12707 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
12708
12709 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
12710 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
12711
bab2b22b
RH
127122004-08-25 Richard Henderson <rth@redhat.com>
12713
12714 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
12715 set REAL_MODE_FORMAT for TFmode.
12716
c34be55e
ZL
127172004-08-25 Ziemowit Laski <zlaski@apple.com>
12718
12719 * c-decl.c (grokparm): New function.
12720 * c-tree.h (grokparm): New prototype.
12721
4c124b4c
AM
127222004-08-25 Andrew MacLeod <amacleod@redhat.com>
12723
12724 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
12725 iterator controlling structure.
12726 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
12727 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
12728 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
12729 iterator flags.
12730 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
12731 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
12732 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
12733 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
5906d013 12734 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
4c124b4c
AM
12735 Empty operand pointers.
12736 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
12737 (op_iter_next_use): New. Return next use_operand_p.
12738 (op_iter_next_def): New. Return next def_operand_p.
12739 (op_iter_next_tree): New. Return next operands as a tree.
12740 (op_iter_init): New. Initialize an iterator structure.
12741 (op_iter_init_use): New. Initialize structure and get the first use.
12742 (op_iter_init_def): New. Initialize structure and get the first def.
12743 (op_iter_init_tree): New. Initialize structure and get the first tree.
12744 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
5906d013 12745 (op_iter_init_maydef): New. Initialize structure and get the first
4c124b4c
AM
12746 V_MAY_DEF operands.
12747 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
5906d013 12748 * tree-dfa.c (compute_immediate_uses_for_stmt,
4c124b4c
AM
12749 redirect_immediate_uses): Use new operand iterator.
12750 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
12751 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
12752 operands instead of using *_disappeared_p routines.
12753 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
12754 ssa_rewrite_stmt): Use new operand iterator.
12755 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
12756 rewrite_trees): Use new operand iterator.
12757 * tree-pretty-print.c (dump_vops): Use new operand iterator.
12758 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
5906d013 12759 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
4c124b4c 12760 dump_points_to_info): Use new operand iterator.
5906d013
EC
12761 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
12762 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
4c124b4c 12763 operand iterator.
5906d013 12764 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
4c124b4c
AM
12765 propagate_necessity): Use new operand iterator.
12766 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
12767 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
12768 a parameter instead of a stmt_ann_t.
12769 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
12770 build_tree_conflict_graph): Use new operand iterator.
12771 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
12772 rewrite_mem_refs): Use new operand iterator.
5906d013 12773 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
4c124b4c
AM
12774 check_loop_closed_ssa_use): Use new operand iterator.
12775 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
12776 * tree-ssanames.c (release_defs): Use new operand iterator.
12777 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
12778
4185f1ce
AN
127792004-08-25 Adam Nemet <anemet@lnxw.com>
12780
12781 * tlink.c (initial_cwd): New variable.
12782 (tlink_init): Initialize it.
12783 (recompile_files): Use tlink_execute() instead of system(). Don't
12784 duplicate verbose output of collect_execute. Restore initial_cwd.
12785 Update comment before the function.
12786
700686fa
ZL
127872004-08-25 Ziemowit Laski <zlaski@apple.com>
12788
12789 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
12790 accept) a cast from one Objective-C pointer type to another.
12791
7fb654ef
PC
127922004-08-25 Paolo Carlini <pcarlini@suse.de>
12793
12794 * doc/install.texi: Document that libstdc++-v3 requires
12795 now automake 1.9.1.
12796
8e8d5162
CT
127972004-08-25 Caroline Tice <ctice@apple.com>
12798
12799 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
12800 to comments at start of function.
12801 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
12802 comment.
5906d013
EC
12803 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12804 merge_blocks_move_predecessor_nojumps,
12805 merge_blocks_move_successor_nojumps, merge_blocks_move,
8e8d5162
CT
12806 try_crossjump_to_edge, try_crossjump_bb): Likewise.
12807 * cfglayout.c (fixup_reorder_chain): Likewise.
12808 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
12809 cfg_layout_can_merge_blocks_p): Likewise.
12810 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
5906d013 12811 * passes.c (rest_of_compilation): Update comments for calling
8e8d5162 12812 optimization that partitions hot/cold basic blocks.
5906d013 12813 * doc/invoke.texi: Update documentation of
8e8d5162 12814 freorder-blocks-and-partition flag.
5906d013 12815
41a21e1d
RS
128162004-08-25 Richard Sandiford <rsandifo@redhat.com>
12817
12818 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
12819 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
12820
e5f14571
RS
128212004-08-25 Richard Sandiford <rsandifo@redhat.com>
12822
12823 * config/mips/mips.md (any_shift): New code macro.
12824 (optab, insn): New code attributes.
12825 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
12826 Use the standard rather than internal patterns for the MIPS16
12827 double-shift optimization.
12828 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
12829 Redefine using :GPR and any_shift.
12830 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
12831 to cover all three shifts.
12832 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
12833 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
12834 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
12835
bbbb79d4
GK
128362004-08-24 Geoffrey Keating <geoffk@apple.com>
12837
12838 * gimplify.c (lookup_tmp_var): Separate temporaries when not
12839 optimizing.
12840
d711cf67
JDA
128412004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12842
12843 PR libstdc++/17005 (fix for HP-UX 11.11)
12844 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
12845 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
5906d013 12846 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
d711cf67
JDA
12847 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
12848 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
12849 (LINK_SPEC): Handle march=1.0 option.
12850 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
12851 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
12852 (SUBTARGET_OPTIONS): New define.
12853 (LINK_SPEC): Handle march=1.0 option.
12854 (STARTFILE_SPEC): New define.
12855 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
12856 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
12857 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
12858 (SUBTARGET_OPTIONS): New define.
12859 (LINK_SPEC): Handle march=1.0 option.
12860 (STARTFILE_SPEC): New define.
12861 * config/pa/pa.c (override_options): Add code to process -munix= option.
12862 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
12863 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
12864 defines.
12865 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
12866 (SUBTARGET_OPTIONS): Provide default define.
12867 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
12868 STANDARD_STARTFILE_PREFIX_2): New defines.
12869 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
12870 (ENDFILE_SPEC): Use %O.
12871 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
12872 Mention issue caused by changing namespace and runtime to UNIX 95/98.
12873 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
12874 Document -munix=std option.
12875
5affca01
SB
128762004-08-25 Steven Bosscher <stevenb@suse.de>
12877
12878 * cse.c (cse_around_loop, cse_check_loop_start,
12879 cse_set_around_loop): Remove.
12880 (cse_basic_block): Remove the around_loop argument.
12881 (cse_end_of_basic_block): Remove the after_loop argument.
12882 (cse_main): Likewise.
12883 * rtl.h (cse_main): Update prototype.
12884 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
12885 rest_of_handle_gcse): Update cse_main calls.
12886
7d60be94
NS
128872004-08-25 Nathan Sidwell <nathan@codesourcery.com>
12888
12889 * tree.h (build_int_cst): New, sign extended constant.
12890 (build_int_cstu): New, zero extended constant.
12891 (build_int_cst_wide): Renamed from build_int_cst.
12892 * tree.c (build_int_cst, build_int_cstu): New.
12893 (build_int_cst_wide): Renamed from build_int_cst.
12894 (make_vector_type, build_common_tree_nodes,
12895 build_common_tree_nodes_2): Adjust build_int_cst calls.
12896 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
12897 expand_builtin_strpbrk, expand_builtin_fputs,
12898 build_string_literal, expand_builtin_printf,
12899 expand_builtin_sprintf, fold_builtin_classify_type,
12900 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
12901 fold_builtin_toascii, fold_builtin_isdigit,
12902 simplify_builtin_strstr, simplify_builtin_strpbrk,
12903 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
12904 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
12905 DEF_ATTR_INT): Likewise.
12906 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
12907 Likewise.
12908 * c-lex.c (interpret_integer, lex_charconst): Likewise.
12909 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
12910 * c-pretty-print.c (pp_c_integer_constant): Likewise.
12911 * c-typeck.c (really_start_incremental_init, push_init_level,
12912 set_nonincremental_init_from_string): Likewise.
12913 * calls.c (load_register_parameters): Likewise.
12914 convert.c (convert_to_pointer): Likewise.
12915 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
12916 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
12917 build_gcov_info): Likewise.
12918 * except.c (init_eh, assign_filter_values): Likewise.
12919 * expmed.c (store_fixed_bit_field, extract_bit_field,
12920 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
12921 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
12922 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
12923 * expr.c (convert_move, emit_group_load, emit_group_store,
12924 expand_assignment, store_constructor, store_field,
12925 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
12926 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
12927 invert_truthvalue, optimize_bit_field_compare,
12928 decode_field_reference, all_ones_mask_p, constant_boolean_node,
12929 fold_div_compare, fold, fold_read_from_constant_string,
12930 fold_negate_const, fold_abs_const, fold_not_const, round_up,
12931 round_down): Likewise.
12932 * function.c (assign_parm_setup_block): Likewise.
12933 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
12934 Likewise.
12935 * stor-layout.c (layout_type, initialize_sizetypes,
12936 set_min_and_max_values_for_integral_type): Likewise.
12937 * tree-chrec.c (chrec_fold_multiply_poly_poly,
12938 reset_evolution_in_loop): Likewise.
12939 * tree-chrec.h (build_polynomial_chrec): Likewise.
12940 * tree-complex.c (build_replicated_const): Likewise.
12941 * tree-eh.c (honor_protect_cleanup_actions,
12942 lower_try_finally_onedest, lower_try_finally_copy,
12943 lower_try_finally_switch): Likewise.
12944 * tree-mudflap.c (mf_build_string, mx_register_decls,
12945 mudflap_register_call, mudflap_enqueue_constant): Likewise.
12946 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
12947 * tree-pretty-print.c (dump_generic_node): Likewise.
12948 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
12949 Likewise.
12950 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
12951 * tree-ssa-loop-niter.c (number_of_iterations_cond,
12952 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
12953 Likewise.
12954 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
12955 canonicalize_loop_induction_variables): Likewise.
12956 * tree-vectorizer.c (vect_create_index_for_array_ref,
12957 vect_transform_loop_bound, vect_compute_data_ref_alignment):
12958 Likewise.
12959
12960 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
12961 alpha_gimplify_va_arg_1): Likewise.
12962 * config/arm/arm.c (arm_get_cookie_size): Likewise.
12963 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
12964 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
12965 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12966 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
12967 mips_gimplify_va_arg_expr): Likewise.
12968 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12969 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
12970 add_compiler_branch_island): Likewise.
12971 * config/s390/s390.c (s390_va_start): Likewise.
12972 * config/sh/sh.c (sh_va_start): Likewise.
12973 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
12974 Likewise.
12975 * config/xtensa/xtensa.c (xtensa_va_start,
12976 xtensa_gimplify_va_arg_expr): Likewise.
5906d013 12977
7d60be94
NS
12978 * objc/objc-act.c (build_objc_string_object,
12979 build_objc_symtab_template, init_def_list, init_objc_symtab,
12980 init_module_descriptor, generate_static_references,
12981 build_selector_translation_table, get_proto_encoding,
12982 build_typed_selector_reference, build_selector_reference,
12983 build_next_objc_exception_stuff,
12984 build_method_prototype_list_template, generate_descriptor_table,
12985 generate_protocols, build_protocol_initializer,
12986 build_ivar_list_template, build_method_list_template,
12987 build_ivar_list_initializer, generate_ivars_list,
12988 generate_dispatch_table, generate_protocol_list,
12989 build_category_initializer, build_shared_structure_initializer,
12990 generate_shared_structures, handle_impent,
12991 generate_objc_image_info): Likewise.
12992
8b63d0e5
PB
129932004-04-25 Paolo Bonzini <bonzini@gnu.org>
12994
12995 * cfglayout.c (duplicate_insn_chain): Remove references to
12996 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
12997 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
12998 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
12999 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
13000 and NOTE_INSN_LOOP_CONT.
13001 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
13002 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
13003 and NOTE_INSN_LOOP_CONT.
13004 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
13005 check_dbra_loop, loop_dump_aux): Remove references to removed notes
13006 and fields.
13007 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
13008 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
13009 references to removed notes and fields.
13010 (subtract_reg_term, ujump_to_loop_cont): Remove.
13011
078e3ffe
PB
130122004-08-25 Paolo Bonzini <bonzini@gnu.org>
13013
8b63d0e5 13014 * doc/install.texi: Document that libcpp does not require
078e3ffe
PB
13015 Automake any longer. Document that Automake 1.9.1 should
13016 work everywhere.
13017
f8ca7e49
ZW
130182004-08-25 Zack Weinberg <zack@codesourcery.com>
13019
13020 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
13021 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
13022 DWARF_DEBUGGING_INFO from choice-of-definition chain;
13023 restructure using C89 features (#elif, #error).
13024 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
13025 * config/sh/sh.h: Remove references to DWARF_DEBUG.
13026 * doc/invoke.texi: Remove references to DWARF version 1;
13027 clarify why -gdwarf-2<n> doesn't work.
13028
51a904c9
ZW
130292004-08-25 Zack Weinberg <zack@codesourcery.com>
13030
13031 * basic-block.h (BB_SET_PARTITION): Clear old value first.
13032 * cfg.c (clear_bb_flags): Don't clear partition setting.
69b9b0d2 13033 * ifcvt.c (find_if_case_1): Remove ??? comment.
51a904c9 13034
e548ead9
AM
130352004-08-25 Alan Modra <amodra@bigpond.net.au>
13036
13037 PR target/17052
13038 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
13039 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
13040 current_function_stdarg in place of sysv_varargs_p.
13041 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
13042 sysv_varargs_p.
13043
1e19ac74
RH
130442004-08-24 Richard Henderson <rth@redhat.com>
13045
13046 PR target/16298
13047 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
13048 random codes within CONST.
13049
c61225e7
JW
130502004-08-24 James E Wilson <wilson@specifixinc.com>
13051
13052 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
13053 -freorder-blocks-and-partition.
13054
37840132
JDA
130552004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13056
13057 PR middle-end/17044
13058 * tree-ssa-threadupdate.c (redirection_data): Make static.
13059 (thread_block): Use ggc_alloc_cleared to allocate struct
13060 redirection_data. Don't free elements in redirection_data.
13061
cf1d880b
RS
130622004-08-24 Richard Sandiford <rsandifo@redhat.com>
13063
13064 * config/mips/predicates.md (small_data_pattern): Match prefetches.
13065
b3393f1f
ZD
130662004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13067
13068 PR tree-optimization/17016
13069 * tree-ssa-loop-niter.c (number_of_iterations_cond,
13070 number_of_iterations_exit): Use POINTER_TYPE_P instead
13071 of testing for POINTER_TYPE.
13072
82b85a85
ZD
130732004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13074
13075 * tree-ssa-loop-ivcanon.c: New file.
13076 * tree-ssa-loop-manip.c (create_iv): New function.
13077 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
13078 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
13079 * cfgloop.c (mark_single_exit_loops): New function.
13080 (verify_loop_structure): Verify single-exit loops.
13081 * cfgloop.h (struct loop): Add single_exit field.
13082 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
13083 (mark_single_exit_loops): Declare.
13084 (tree_num_loop_insns): Declare.
13085 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
13086 (duplicate_loop_to_header_edge): Use it.
13087 * common.opt (fivcanon): New flag.
13088 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
13089 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
13090 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
13091 (bsi_insert_on_edge_immediate): New function.
13092 * tree-flow.h (bsi_insert_on_edge_immediate,
13093 canonicalize_induction_variables, tree_unroll_loops_completely,
13094 create_iv): Declare.
13095 * tree-optimize.c (init_tree_optimization_passes): Add
13096 pass_iv_canon and pass_complete_unroll.
13097 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
13098 * tree-scalar-evolution.c (get_loop_exit_condition,
13099 get_exit_conditions_rec, number_of_iterations_in_loop,
13100 scev_initialize): Use single_exit information.
13101 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
13102 missing assumptions.
13103 (loop_niter_by_eval): Return number of iterations as unsigned
13104 int.
13105 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
13106 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
13107 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
13108 New passes.
13109 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
13110 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
13111 the defining statement is ready.
13112 * tree-vectorizer.c (vect_create_iv_simple): Removed.
13113 (vect_create_index_for_array_ref, vect_transform_loop_bound):
13114 Use create_iv.
13115 (vect_transform_loop_bound): Use single_exit information.
13116 (vect_analyze_loop_form): Cleanup bogus tests.
13117 (vectorize_loops): Do not call flow_loop_scan.
13118 * tree.h (may_negate_without_overflow_p): Declare.
13119 * fold-const.c (may_negate_without_overflow_p): Split out from ...
13120 (negate_expr_p): ... this function.
13121 (tree_expr_nonzero_p): Handle overflowed constants correctly.
13122 * doc/invoke.texi (-fivcanon): Document.
13123 * doc/passes.texi: Document canonical induction variable creation.
13124
b3c90666
RS
131252004-08-24 Richard Sandiford <rsandifo@redhat.com>
13126
13127 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
13128 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
13129 using the mode of the operand to decide between them.
13130 * config/mips/mips.md (MOVECC): New mode macro.
13131 (ccreg): New mode attribute.
13132 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
13133 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
13134 (mov[sd]icc): Redefine using :GPR.
13135
4767c570
RS
131362004-08-24 Richard Sandiford <rsandifo@redhat.com>
13137
04550232
RS
13138 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
13139 (mips_prefetch_cookie): New function.
13140 * config/mips/mips.c (print_operand_address): Fix handling of
13141 ADDRESS_CONST_INT.
13142 (mips_emit_prefetch): Delete.
13143 (mips_prefetch_cookie): New function.
13144 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
13145 mode of QImode for the address_operand. Use mips_prefetch_cookie
13146 to calculate the first "pref" operand.
13147 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
13148 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
4767c570 13149
a657c98a
RE
131502004-08-24 Richard Earnshaw <rearnsha@arm.com>
13151
13152 * arm.md: Include predicates.md.
13153 * predicates.md: New file.
13154 * arm.c (s_register_operand, arm_hard_register_operand)
13155 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
13156 (arm_immediate_operand, arm_neg_immediate_operand)
13157 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
13158 (arm_add_operand, arm_addimm_operand, arm_not_operand)
13159 (offsettable_memory_operand, alignable_memory_operand)
13160 (arm_reload_memory_operand, arm_float_rhs_operand)
13161 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
13162 (index_operand, shiftable_operator, logical_binary_operator)
13163 (shift_operator, equality_operator, arm_comparison_operator)
13164 (minmax_operator, cc_register, dominant_cc_register)
13165 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
13166 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
13167 (const_shift_operand, load_multiple_operation)
13168 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
13169 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
13170 (cirrus_register_operand, cirrus_fp_register)
13171 (cirrus_shift_const): Delete, replaced with equivalents in
13172 predicates.md.
13173 (shift_op): Handle ROTATE.
13174 * arm-protos.h: Delete declarations for above.
13175 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
13176 * t-arm (MD_INCLUDES): Add predicates.md.
13177 (s-preds): Depends on MD_INCLUDES.
13178
886ce862
RS
131792004-08-24 Richard Sandiford <rsandifo@redhat.com>
13180
13181 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
13182 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
13183 patterns. Redefine using :GPR. Give the match_operator a mode.
13184 Use '%2' rather than '%z2' for operand 2.
13185
be659abd
RS
131862004-08-24 Richard Sandiford <rsandifo@redhat.com>
13187
13188 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
13189 attribute.
13190
92dcb882
RS
131912004-08-24 Richard Sandiford <rsandifo@redhat.com>
13192
13193 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
13194 of internal patterns.
13195 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
13196 Redefine using :P.
13197 (tablejump): Use expand_binop to calculate address. Adjust names
13198 of internal patterns.
13199 (tablejump[sd]i): Renamed from tablejump_internal[12].
13200 Redefine using :P.
13201 (tablejump_mips16[12]): Delete.
13202
a0160289
RS
132032004-08-24 Richard Sandiford <rsandifo@redhat.com>
13204
13205 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
13206 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
13207 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
13208 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
13209 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
13210
2c4402f4
RS
132112004-08-24 Richard Sandiford <rsandifo@redhat.com>
13212
13213 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
13214 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
13215 using :GPR.
13216 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
13217 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
13218 (*branch_equality[sd]i_inverted): Likewise
13219 branch_equality{,_di}_inverted.
13220 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
13221 Redefine using :GPR.
13222
b5c2f1d1
ZW
132232004-08-24 Zack Weinberg <zack@codesourcery.com>
13224
13225 * rtl.def: Reorganize, placing all codes used only in machine
13226 descriptions at the end.
13227
9e995780
ZW
13228 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
13229 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
13230 rtx_name, rtx_format arrays by direct reference to rtl.def,
13231 first undefining GENERATOR_FILE. Define enum insn_note and
13232 note_insn_name array by direct reference to insn-notes.def.
13233 (adjust_field_rtx_def): Remove local definition of rtx_name.
13234 Use symbolic names for insn notes.
13235 * Makefile.in (gengtype.o): Update dependencies.
13236
076c7ab8
ZW
132372004-08-24 Zack Weinberg <zack@codesourcery.com>
13238
13239 * basic-block.h (struct basic_block_def): Reorder fields to
13240 eliminate interior padding. Remove 'partition' field.
13241 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
13242 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
13243 (BB_COPY_PARTITION): New macros.
13244 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
13245 Replace all references to the 'partition' field of a basic
13246 block with new macros.
13247
13248 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
13249 * final.c (final_scan_insn): Don't handle it.
13250 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
13251 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
13252 * sched-rgn.c (sched_is_disabled_for_current_region_p):
13253 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
13254
8c1d6d62
NS
132552004-08-24 Nathan Sidwell <nathan@codesourcery.com>
13256
13257 * c-decl.c (c_init_decl_processing): Adjust
13258 build_common_tree_nodes call.
13259 * expmed.c (const_mult_add_overflow_p): Use
13260 build_distinct_type_copy.
13261 * stor-layout.c (early_type_list): Remove.
13262 (layout_type): Don't append to early_type_list.
13263 (initialize_sizetypes): Add signed_p argument.
13264 (set_sizetype): Overwrite the stub type nodes directly.
13265 * tree.c (copy_node_stat): Clear a type's value cache here ...
13266 (build_distinct_type): ... not here.
13267 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
13268 * tree.h (initialize_sizetypes): Add signed_p argument.
13269 (build_common_tree_nodes): Likewise.
13270
13271 * objc/objc-act.c (get_static_reference): Use
13272 build_variant_type_copy.
13273 (get_protocol_reference): Likewise.
13274 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
13275
97dc04b3 132762004-08-24 Richard Henderson <rth@redhat.com>
076c7ab8 13277 Andrew Pinski <apinski@apple.com>
97dc04b3
RH
13278
13279 * gimplify.c (gimplify_array_ref_to_plus): Delete.
13280 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
13281 for ARRAY_REF.
13282
13283 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
13284 ARRAY_REF also to get to the STRING_CST.
13285
72cdc543
PB
132862004-08-24 Paul Brook <paul@codesourcery.com>
13287
13288 * config/arm/arm.c (arm_override_options): Update error message.
13289 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
13290 TARGET_HARD_FLOAT_ABI.
13291 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
13292 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
13293
bd5ca07e
NC
132942004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
13295
13296 PR target/17093
13297 * config/m32r.md (movsi_sda): Add SI mode specification to
13298 UNSPEC.
13299
133002004-08-24 Nick Clifton <nickc@redhat.com>
13301
13302 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
13303 of seth_add3_operand.
13304
d46cd2be
NS
133052004-08-24 Nathan Sidwell <nathan@codesourcery.com>
13306
13307 * Makefile.in (PROTO_OBJS): Add errors.o.
13308 * protoize.c (fancy_abort): Remove.
13309 * mips-tfile.c (fancy_abort): Add parameters.
13310
748fa294
JW
133112004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
13312
13313 * doc/trouble.texi (C++ misunderstandings): Fix example code.
13314
4505f099
AT
133152004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
13316
13317 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
13318 (host-default.o): Add dependency on HOOKS_H.
13319 * config/x-linux: Likewise.
13320 * config/x-solaris: Likewise.
13321 * config/i386/x-mingw32: Likewise.
13322 * config/rs6000/x-darwin: Likewise.
13323
a2fe1975
JW
133242004-08-23 James E Wilson <wilson@specifixinc.com>
13325
13326 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
13327 DEF_REG_NOTE.
13328
c3f216e2
MM
133292004-08-23 Mark Mitchell <mark@codesourcery.com>
13330
13331 PR c/14492
13332 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
13333
2e6ae27f
DN
133342004-08-23 Diego Novillo <dnovillo@redhat.com>
13335
13336 * cfg.c (check_bb_profile): Fix typos.
13337 * function.c (assign_parm_is_stack_parm): Likewise.
13338 * tree-nested.c: Likewise.
13339
d685c974
DJ
133402004-08-23 Daniel Jacobowitz <dan@debian.org>
13341
13342 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
13343 Remove TYPECODE.
13344 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
13345
f676971a
EC
133462004-08-23 Eric Christopher <echristo@redhat.com>
13347
13348 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
13349 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
13350 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
13351 * target.h: Ditto.
13352 * hooks.h: Include machmode.h.
13353 (hook_bool_mode_false): Declare.
13354 * hooks.c (hook_bool_mode_false): Define.
13355 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
13356 * stor-layout.c (layout_type): Ditto.
13357 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
13358 Define to target macro.
13359 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
13360 * config/arm/arm.c: Ditto. Use.
13361 * config/arm/arm.h: Ditto.
13362 * config/arm/arm-protos.h: Ditto.
13363 * config/i386/i386.c: Ditto.
13364 * config/i386/i386.h: Ditto.
13365 * config/rs6000/rs6000.c: Ditto.
13366 * config/rs6000/rs6000.h: Ditto.
13367 * config/sh/sh.c: Ditto.
13368 * config/sh/sh.h: Ditto.
13369 * config/sh/sh-protos.h: Ditto.
13370 * config/sh/sh.md: Use.
13371 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
13372 to TARGET_VECTOR_MODE_SUPPORTED_P.
13373
8dd16ecc
NS
133742004-08-23 Nathan Sidwell <nathan@codesourcery.com>
13375
b3d1f5b4
NS
13376 * Makefile.in (BUILD_ERRORS): Set to build-errors.
13377 (errors.o): New target for host.
13378 (build-errors.o): New target for build.
13379 (genobjs): Replace errors.o with build-errors.
13380 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
13381 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
13382 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
13383 (fix-header.o): Add errors.h
13384 * collect2.c (fancy_abort): Add parameters.
13385 * collect2.h (fancy_abort): Don't declare.
13386 * errors.h (fancy_abort): Don't declare.
13387 * errors.c: Include either bconfig.h or config.h.
13388 (fancy_abort): Trim filename.
13389 * fix-header.c (v_fatal, fatal): Remove.
13390 (progname): Remove definition.
13391 (main): Set progname here.
13392 * gcc.c (fancy_abort): Add parameters.
13393 * gcc.h (fancy_abort): Remove declaration.
13394 * gcov.c (fancy_abort): Remove.
13395 * rtl.h (fancy_abort): Don't declare.
13396 (abort): Don't define.
13397 * tree.h (fancy_abort): Don't declare.
13398 (abort): Don't define.
13399 * system.h (fancy_abort): Declare.
13400 (abort): Define to fancy_abort.
13401 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
13402
be88a628
NS
13403 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
13404 (usize_type, ubitsizetype): Remove.
13405 * stor-layout.c (set_sizetype): Don't initialize usizetype,
13406 ubitsizetype.
13407 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
13408
8dd16ecc
NS
13409 * tree.h (build_distinct_type_copy): New.
13410 (build_type_copy): ... here. Rename to ...
13411 (build_variant_type_copy): ... here.
13412 * tree.c (build_qualified_type): Rename build_type_copy call.
13413 (build_distinct_type_copy): New, broken out of ...
13414 (build_type_copy): ... here. Rename to ...
13415 (build_variant_type_copy): ... here. Use
13416 build_distinct_type_copy.
13417 (build_common_tree_nodes_2): Rename build_type_copy call.
13418 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
13419 call.
13420 (handle_packed_attribute, handle_unused_attribute,
13421 handle_transparanet_union_attribute, handle_aligned_attribute,
13422 handle_deprecated_attribute): Likewise.
13423 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
13424 Likewise.
13425 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
13426 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
13427 build_distinct_type_copy.
13428
e8bf0f3b
RS
134292004-08-23 Richard Sandiford <rsandifo@redhat.com>
13430
13431 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
13432 attribute.
13433
4d06ed0a
RS
134342004-08-23 Richard Sandiford <rsandifo@redhat.com>
13435
13436 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
13437 loads and stores.
13438 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
13439 formerly unnamed patterns. Redefine using :P for the address. Remove
13440 explicit length attributes.
13441
a3631d97
ZD
134422004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13443
13444 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
13445 New functions.
13446 (single_reachable_address): Use them.
13447 (schedule_sm): Add dump.
13448 (is_call_clobbered_ref): New function.
13449 (determine_lsm_reg): Check whether the reference is call clobbered.
13450 Only work for gimple_reg_type values.
13451
b1f58428
RS
134522004-08-23 Richard Sandiford <rsandifo@redhat.com>
13453
13454 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
13455 $31 store insns. Redefine using :GPR.
13456
237b301e
RS
134572004-08-23 Richard Sandiford <rsandifo@redhat.com>
13458
13459 * config/mips/mips.md (P): New mode macro.
13460 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
13461 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
13462 Add mode attributes.
13463
c9081a92
RS
134642004-08-23 Richard Sandiford <rsandifo@redhat.com>
13465
13466 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
13467 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
13468 later constants to cover the gap.
13469 (load, store): New mode attributes.
13470 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
13471 Use new unspec constants.
13472
3d1f285d
RS
134732004-08-23 Richard Sandiford <rsandifo@redhat.com>
13474
13475 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
13476 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
13477 to use register_operand rather than uns_arith_operand as the predicate
13478 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
13479 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
13480 Redefine using :GPR. Make same predicate change here. Extend the
13481 commutativity of operands 1 and 2 from the SImode version to the
13482 DImode one.
13483 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
13484 but with no predicate changes.
13485 (*nor[sd]i3): Redefine using :GPR.
13486
c0e1b12f
ZD
134872004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13488
13489 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
13490 noreturn functions.
13491
400a9325
RS
134922004-08-23 Richard Sandiford <rsandifo@redhat.com>
13493
13494 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
13495 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
13496 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
13497 rather than "%z2" (with a fake const0_rtx for operand 2).
13498 (ffs[sd]i2): Redefine using :GPR.
13499 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
13500
2222da3a
RS
135012004-08-23 Richard Sandiford <rsandifo@redhat.com>
13502
13503 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
13504
15ac4ccf
RS
135052004-08-23 Richard Sandiford <rsandifo@redhat.com>
13506
13507 * config/mips/mips.md (any_extend): New code macro.
13508 (u, su): New code attributes.
13509 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
13510 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
13511 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
13512 (*{s,u}mul_acc_di): Redefine using any_extend.
13513 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
13514 to reflect real insn names.
13515 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
13516 with an any_extend template.
13517 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
13518 Add '*' to name.
13519
d46c971d
RS
135202004-08-23 Richard Sandiford <rsandifo@redhat.com>
13521
13522 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
13523 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
13524 (mul[sd]i3_r4000): Redefine using :GPR.
13525 (mulsi3_mult3): Don't check TARGET_MAD separately.
13526 (muldi3_mult3): Moved after mulsi_mult3.
13527
5811cb27
RS
135282004-08-23 Richard Sandiford <rsandifo@redhat.com>
13529
13530 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
13531 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
13532 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
13533 (TARGET_GAS, TARGET_MIPS_AS): Delete.
13534 (TARGET_GPWORD): Define to true for n32 on IRIX.
13535 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
13536 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
13537 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
13538 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
13539 (MDEBUG_ASM_SPEC): Delete, folding into...
13540 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
13541 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
13542 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
13543 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
13544 to define asm_abi_default_spec.
13545 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
13546 (TARGET_ASM_SELECT_SECTION): Delete.
13547 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
13548 for non-mips16 code, removing previous workaround for SGI assemblers.
13549 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
13550 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
13551 (override_options): Remove !TARGET_GAS and !have_named_sections code.
13552 (print_operand): Fold TARGET_GAS conditionals into asm strings.
13553 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
13554 ASM_STABS_OP and ASM_STABN_OP.
13555 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
13556 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
13557 (mips_output_function_prologue): Remove !TARGET_GAS code.
13558 (mips_select_rtx_section): Remove !have_named_sections code.
13559 (mips_select_section): Delete.
13560 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
13561 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
13562 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
13563 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
13564 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
13565 * config/mips/windiss.h (ASM_SPEC): Likewise.
13566
032e8348
RS
135672004-08-23 Richard Sandiford <rsandifo@redhat.com>
13568
13569 * read-rtl.c (map_value, mapping, macro_group): New structures.
13570 (BELLWETHER_CODE): New macro.
13571 (modes, codes, bellwether_codes): New variables.
13572 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
13573 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
13574 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
13575 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
13576 (add_map_value, initialize_macros): New functions.
13577 (def_hash, def_hash_eq_p): Generalize to anything that points to,
13578 or starts with, a char * field.
13579 (find_macro, read_mapping, check_code_macro): New functions.
13580 (read_rtx_1): New, split out from read_rtx. Handle the new
13581 define_{mode,code}_{macro,attr} constructs. Use find_macro
13582 to parse the name of a code or mode. Use BELLWETHER_CODE to
13583 extract the format and to choose a suitable code for rtx_alloc.
13584 Modify recursive invocations to use read_rtx_1.
13585 (read_rtx): Call initialize_macros. Apply code and mode macros
13586 to the rtx returned by read_rtx_1. Cache everything after the
13587 first macro expansion for subsequent read_rtx calls.
13588 * doc/md.texi: Document new .md constructs.
13589 * config/mips/mips.md (GPR): New mode macro.
13590 (d, si8_di5): New mode attributes.
13591 (any_cond): New code macro.
13592 (add[sd]i3): Redefine using :GPR.
13593 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
13594 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
13595 previously unnamed MIPS16 patterns.
13596 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
13597 lines. Don't match (plus (const_int 0) ...).
13598 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
13599 Use a define_split to generate the addition.
13600 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
13601 (subsi3_internal): Delete.
13602 (*subsi3_extended): Renamed from subsi3_internal_2.
13603 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
13604 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
13605 using an any_cond template.
13606
ecce923e
RS
136072004-08-23 Richard Sandiford <rsandifo@redhat.com>
13608
13609 * read-rtl.c (read_rtx): Tidy use of format_ptr.
13610
a269d6c8
RS
136112004-08-23 Richard Sandiford <rsandifo@redhat.com>
13612
13613 * read-rtl.c (string_obstack): New file-scope variable.
13614 (read_string, read_quoted_string, read_braced_string)
13615 (read_escape): Remove obstack parameter and use string_obstack instead.
13616 (read_rtx): Remove function-local rtl_obstack and initialize
13617 string_obstack instead. Update call to read_string.
13618
9fc3b39a
AP
136192004-08-22 Andrew Pinski <apinski@apple.com>
13620
13621 PR c/15262
13622 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
13623 expression is not constant.
13624 (c_finish_return): Do not go through INDIRECT_REF when looking
13625 for the inner expression of an ADDR_EXPR for warning about.
13626
cea49550
RH
136272004-08-22 Richard Henderson <rth@redhat.com>
13628
13629 PR 17075
13630 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
13631 create new blocks and fall through.
13632 (expand_gimple_basic_block): Update to match.
13633
0b540f12
UW
136342004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
13635
13636 * reload.c (find_reloads_address): Make return value tri-state.
13637 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
13638 (find_reloads): Assume that reloaded addresses match 'o' or
13639 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
13640 returned 1 (not -1). Omit optional reloads for address operands
13641 only if find_reloads_address returned 1 (not -1).
13642
13643 * config/s390/s390.c (legitimize_reload_address): New function.
13644 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
13645 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
13646 legitimize_reload_address.
13647
7f5e6307
RH
136482004-08-22 Richard Hendersion <rth@redhat.com>
13649
13650 * tree.h (SAVE_EXPR_RESOLVED_P): New.
13651 * gimplify.c (gimplify_save_expr): Use it.
13652 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
13653 on the temporary variable.
13654
efd610a6
AP
136552004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
13656
13657 * fold-const.c (rtl_expr_nonnegative_p): Delete.
13658 * tree.h (rtl_expr_nonnegative_p): Remove.
13659
324a6c95
SB
136602004-08-22 Steven Bosscher <stevenb@suse.de>
13661
13662 * config/i386/ppro.md (ppro_complex_insn): Add missing check
13663 for cpu==pentiumpro.
13664
13665 * combine.c (struct reg_stat): Fix comment typo.
13666
41db8425
JM
136672004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
13668
13669 * c-tree.h (c_sizeof_nowarn): Remove.
13670
00325bce
JM
136712004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
13672
13673 * c-decl.c (set_array_declarator_type): Rename to
13674 set_array_declarator_inner.
13675 (build_c_parm, build_attrs_declarator, build_function_declarator):
13676 New functions.
13677 (make_pointer_declarator): Call build_attrs_declarator.
13678 * c-tree.h (set_array_declarator_type): Rename to
13679 set_array_declarator_inner.
13680 (build_c_parm, build_attrs_declarator, build_function_declarator):
13681 New prototypes.
13682 * c-parse.in (after_type_declarator,
13683 parm_declarator_starttypename, parm_declarator_nostarttypename,
13684 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
13685 firstparm): Use these functions
13686
60919bce
JM
136872004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
13688
13689 * c-decl.c (build_array_declarator, set_array_declarator_type,
13690 start_decl, grokdeclarator, grokparms): Change boolean parameters
13691 to type bool.
13692 * c-tree.h (build_array_declarator, set_array_declarator_type,
13693 start_decl): Update prototypes.
13694 * c-decl.c, c-parse.in: All callers changed.
13695
bdfd0ed4
MS
136962004-08-21 Mike Stump <mrs@apple.com>
13697
13698 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
13699 (darwin_fix_and_continue): Likewise.
13700 (darwin_fix_and_continue_switch): Likewise.
13701 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
13702 (darwin_fix_and_continue): Likewise.
13703 (darwin_fix_and_continue_switch): Likewise.
13704
35da8b56 137052004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
23d34220
DS
13706
13707 PR c++/16030
13708 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
13709 Remove, merging into ...
13710 (gen_stdcall_or_fastcall_suffix): New function, returning tree
13711 rather than const char*, and accepting additional parameter.
13712 Don't add suffix to '*'-prefixed symbols or variadic functions.
13713 (i386_pe_encode_section_info): Adjust for call to new function.
13714 Call change_decl_assembler_name.
13715
828a4fe4
MS
137162004-08-20 Mike Stump <mrs@apple.com>
13717
13718 * config/darwin.c (machopic_indirect_data_reference): Mark
13719 stubs as defined.
13720 * config/386/386.c (darwin_local_data_pic): Add.
13721 (legitimate_constant_p): Reorder so that PLUS handling runs
13722 before darwin_local_data_pic to match the ordering in
13723 legitimate_pic_address_disp_p and so that MINUS runs after
13724 darwin_local_data_pic as otherwise the darwin_local_data_pic
13725 logic can be skipped, which would be very bad.
13726 (legitimate_pic_address_disp_p): Move from from here to
13727 darwin_local_data_pic so it can be reused.
13728
85b776df
AM
137292004-08-21 Alan Modra <amodra@bigpond.net.au>
13730
13731 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
13732 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
13733 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
13734 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
13735 (RS6000_ABI_NAME): Define as "linux".
13736 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
13737 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
13738 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
13739 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
13740 * config/rs6000/rs6000.c (dot_symbols): New global var.
13741 (rs6000_output_function_entry): New function, modified for
13742 !DOT_SYMBOLS..
13743 (print_operand <case 'z'>): ..extracted from here.
13744 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
13745 (rs6000_output_function_epilogue): Likewise.
13746 (rs6000_elf_declare_function_name): Likewise.
13747 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
13748 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
13749 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
13750 * configure: Regenerate.
13751 * config.in: Regenerate.
13752
14d3dc34
MM
137532004-08-20 Mark Mitchell <mark@codesourcery.com>
13754
0e544c37
MM
13755 * reload.c (find_reloads_address): Fix thinko in previous change.
13756
14d3dc34
MM
13757 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
13758 a CONST_INT.
13759
f3b2657c
JJ
137602004-08-20 Jakub Jelinek <jakub@redhat.com>
13761
13762 PR rtl-optimization/17099
13763 * combine.c (force_to_mode): Check if inner_mask has any bits set
13764 outside of GET_MODE (x) instead of op_mode.
13765
d2294baa
MM
137662004-08-20 Mark Mitchell <mark@codesourcery.com>
13767
13768 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
13769 fragment.
13770 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
13771 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
13772 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
13773 architecture.
13774 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
13775 configurations.
13776 * config/arm/t-symbian: New file.
13777
753d0efa
AP
137782004-08-20 Andrew Pinski <apinski@apple.com>
13779
13780 * regrename.c (kill_value_regno): ANSIfy.
13781
627b6fe2
DJ
137822004-08-20 Dale Johannesen <dalej@apple.com>
13783
324a6c95 13784 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
627b6fe2 13785
d64d5e80
DJ
137862004-08-20 Daniel Jacobowitz <dan@debian.org>
13787
13788 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
13789 (kill_value_regno): New function, derived from kill_value.
13790 (kill_value): Update.
13791 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
13792
af75a7ea 137932004-08-20 Daniel Berlin <dberlin@dberlin.org>
f676971a 13794
af75a7ea
DB
13795 Fix PR tree-optimization/17111
13796 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
13797 of non-value_handles.
13798 (bitmap_set_contains): All constants are in every set.
13799
0a936b12
NS
138002004-08-20 Nathan Sidwell <nathan@codesourcery.com>
13801
13802 * fold-const.c (round_up, round_down): Use build_int_cst.
13803 Optimize common case.
13804
774acadf
ZW
138052004-08-20 Zack Weinberg <zack@codesourcery.com>
13806 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13807
324a6c95 13808 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
774acadf
ZW
13809 one_only_data_section): Rename to som_readonly_data_section,
13810 som_one_only_readonly_data_section and som_one_only_data_section.
324a6c95 13811 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
0a936b12
NS
13812 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
13813 conditional defines.
774acadf
ZW
13814 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
13815 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
13816 string values.
13817 (pa_select_section): Use renamed section functions.
13818 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
324a6c95 13819 SOM_READONLY_DATA_SECTION_FUNCTION,
774acadf 13820 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
324a6c95
SB
13821 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
13822 Define here ...
13823 * config/pa/som.h: ... not here.
13824 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
774acadf
ZW
13825 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
13826 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
324a6c95
SB
13827 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
13828 (READONLY_DATA_SECTION): Use som_readonly_data_section.
774acadf 13829
3224bead
NS
138302004-08-20 Nathan Sidwell <nathan@codesourcery.com>
13831
fabead06
NS
13832 * fold-const.c (int_const_binop): Don't generate non-overflowing
13833 size-types specially.
13834 (fold_convert_const): Likewise.
13835
3224bead
NS
13836 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
13837 clear cache on copied sizetype.
13838
fb38008e
BE
138392004-08-20 Ben Elliston <bje@au.ibm.com>
13840
13841 * configure.ac: Don't escape apostrophe in --enable-coverage help.
13842 * configure: Regenerate.
13843
a9024779
DS
138442004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
13845
13846 PR 5620
13847 * gcc.c (struct stat input_stat): Don't define if
13848 HOST_LACKS_INODE_NUMBERS
13849 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
13850 than stat to determine if temp file is same as input file.
13851 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
13852 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
13853
82563d35
RS
138542004-08-20 Richard Sandiford <rsandifo@redhat.com>
13855
13856 * configure.ac (mips*-*-*): Print an error if not using GAS.
13857 * configure: Regenerated.
13858 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
13859 comments about buggy MIPSpro assemblers.
13860 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
13861 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
13862 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
13863 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
13864 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
13865 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
13866 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
13867 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
13868 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
13869 of more general IRIX 6 definitions.
13870 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
13871 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
13872 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
13873 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
13874 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
13875 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
13876 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
13877 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
13878 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
13879 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
13880 (LINK_SPEC): Move most of definition to iris.h.
13881 (SUBTARGET_LINK_SPEC): New macro.
13882 (IRIX_STARTFILE_SPEC): Fold into...
13883 (STARTFILE_SPEC): ...here.
13884 (IRIX_ENDFILE_SPEC): Fold into...
13885 (ENDFILE_SPEC): ...here.
13886 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
13887 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
13888 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
13889 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
13890 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
13891 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
13892 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
13893 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
13894 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
13895 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
13896 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
13897 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
13898 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
13899 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
13900 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
13901 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
13902 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
13903 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
13904 (TARGET_IRIX6): Define to 1.
13905 (DRIVER_SELF_SPECS): Define.
13906 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
13907 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
13908 (SUBTARGET_LINK_SPEC): New macro.
13909 (IRIX_STARTFILE_SPEC): Fold into...
13910 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
13911 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
13912 (LIB_SPEC, LIBGCC_SPEC): Use them.
13913 (LIB_SPEC): Remove !mabi=* case.
13914 (IRIX_ENDFILE_SPEC): Fold into...
13915 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
13916 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
13917 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
13918 (TARGET_IRIX6): New macro.
13919 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
13920 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
13921 (LABEL_AFTER_LOC): Delete.
13922 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
13923 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
13924 (mips_build_builtin_va_list): Check TARGET_IRIX6.
13925 (override_options): Remove TARGET_SGI_O32_AS-related code.
13926 (irix_output_external_libcall): Make static.
13927 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
13928 LABEL_AFTER_LOC.
13929 (mips_file_start): Tidy guard for ABI sections. Remove use of
13930 ABICALLS_ASM_OP; use .abicalls instead.
13931 (mips_output_aligned_decl_common, mips_declare_object_name)
13932 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
13933 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
13934 .globl foo .text directives.
13935 (irix_asm_named_section_1, irix_asm_named_section)
13936 (irix_section_align_entry, irix_section_align_htab)
13937 (irix_orig_asm_out_file, irix_section_align_entry_eq)
13938 (irix_section_align_entry_hash, irix_asm_output_align)
13939 (irix_file_start, irix_section_align_1, copy_file_data)
13940 (irix_file_end, irix_section_type_flags): Delete.
13941 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
13942 Use standard section syntax. Remove protective "jr $31".
13943 (__gcc_fini): Likewise .gcc_fini.
13944 * config/mips/irix-crtn.asm: Adjust sections accordingly.
13945 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
13946 iris5gas.h.
13947 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
13948 from t-irix-gld.
13949 (EXTRA_MULTILIB_PARTS): Define.
13950 * config/mips/t-iris6: Remove bogus comment.
13951 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
13952 * config/mips/iris5gas.h, config/mips/iris5gld.h,
13953 config/mips/iris6gas.h, config/mips/iris6gld.h,
13954 config/mips/t-iris5-as, config/mips/t-iris5-gas
13955 config/mips/t-irix-gld: Delete.
13956 * config/mips/iris.h: New file.
13957 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
13958
c4cdb8e1
RE
139592004-08-20 Richard Earnshaw <rearnsha@arm.com>
13960
13961 * postreload.c (reload_cse_move2add): Allow any condjump, but check
13962 that the implicit set isn't clobbered in the jump insn.
13963
d55ab31d
MM
139642004-08-19 Mark Mitchell <mark@codesourcery.com>
13965
13966 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
13967 * optabs.c (init_optabs): Don't check it.
13968 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
13969 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
13970
d75f90f1
AK
139712004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
13972
13973 * config/s390/s390.md (s390_warn_framesize_string)
13974 (s390_warn_dynamic_string, s390_stack_size_string)
13975 (s390_stack_guard_string): New global string variables.
13976 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
13977 (s390_stack_guard): New global variables.
13978 (override_options): Added checks for the new options.
13979 (s390_emit_prologue): Emit stack check and trap code and perform
13980 compile time stack size checking.
f676971a
EC
13981
13982 * config/s390/s390.h (TARGET_OPTIONS): Added new options
d75f90f1
AK
13983 "warn-framesize", "warn-dynamicstack", "stack-size" and
13984 "stack-guard".
13985
13986 * doc/invoke.texi: Added documentation for the new options.
13987
ca29916b
UW
139882004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
13989
13990 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
13991 to eliminate warning.
13992 (linear_search_fdes): Declare p as unsigned.
13993 (binary_search_mixed_encoding_fdes): Likewise.
13994 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
13995 to eliminate warning.
13996 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
13997 type cast.
13998
e1d5ee28
UW
139992004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
14000
14001 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
14002 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
14003 instead of one. Check for strictly legitimate address.
14004 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
14005 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
14006
19114537
EC
140072004-08-19 Eric Christopher <echristo@redhat.com>
14008
14009 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
14010 * langhooks.h (unsave_expr_now): Ditto.
14011 * tree.h (unsave_expr_1): Remove prototype.
14012 (lhd_unsave_expr_now): Rename to unsave_expr_now.
14013 * tree-inline.c (unsave_expr_1): Move here
14014 from tree.c. Make static.
14015 (unsave_expr_now): Rename from lhd_unsave_expr_now.
14016 * tree-sra.c: Fix up for rename.
14017 * tree-ssa-copy.c: Ditto.
14018 * tree-eh.c: Ditto.
14019 * tree.c (unsave_expr_1): Move to tree-inline.c.
14020
d5bfecf2
CT
140212004-08-19 Caroline Tice <ctice@apple.com>
14022
324a6c95
SB
14023 * config/i386/cygming.h (switch_to_section): Fix typo (change
14024 in_unlikely_text_section to in_unlikely_executed_text).
19114537 14025
58152808
DB
140262004-08-19 Daniel Berlin <dberlin@dberlin.org>
14027
14028 * vec.h (VEC_lower_bound): New macro.
19114537 14029
ae043003
RS
140302004-08-19 Richard Sandiford <rsandifo@redhat.com>
14031
14032 PR target/16446
14033 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
14034 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
14035 treat each ABI separately. Deal with n32/n64 complex float arguments.
14036 (function_arg): Add associated complex handling here.
14037
50ed9cea
RH
140382004-08-19 Richard Henderson <rth@redhat.com>
14039
14040 * config/arm/arm.c (arm_gen_load_multiple): Use
14041 adjust_automodify_address. Take base memory and offset instead
14042 of unchanging/struct/scalar bits.
14043 (arm_gen_store_multiple): Likewise.
14044 (arm_gen_movmemqi): Use adjust_automodify_address.
14045 * config/arm/arm-protos.h: Update decls.
14046 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
14047 (store_multiple): Similarly.
14048
74ae207d
R
140492004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
14050
14051 * regclass.c (globalize_reg): Update call_really_used_regs.
14052
89b0433e
NS
140532004-08-19 Nathan Sidwell <nathan@codesourcery.com>
14054
31ebd7c8
NS
14055 * doc/invoke.texi (integer-share-limit): Document.
14056
89b0433e
NS
14057 * tree.h (TYPE_CACHED_VALUES_P): New.
14058 (TYPE_CACHED_VALUES): New.
14059 (TYPE_ORIG_SIZE_TYPE): Adjust.
14060 * tree.def (INTEGER_CST): Update documentation.
14061 * tree.c: Inlcude params.h.
14062 (build_int_cst): Cache small values.
14063 (build_type_copy): Do not copy the value cache.
14064 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
14065 unneeded zeroing.
14066 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
14067 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
14068 cache.
14069 * fold-const.c (force_fit_type): Copy value when setting
14070 overflows.
14071 (int_const_binop): Likewise.
14072 * stor-layout.c: Include params.h
14073 (set_sizetype): Create values cache.
14074 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
14075 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
14076 * params.h (INTEGER_SHARE_LIMIT): New.
14077 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
19114537 14078
c2504783
PB
140792004-08-19 Paolo Bonzini <bonzini@gnu.org>
14080
14081 * gimplify.c (gimplify_minimax_expr): Remove.
14082 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
14083
7a8554ce
DN
140842004-08-19 Dorit Naishlos <dorit@il.ibm.com>
14085
19114537 14086 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
7a8554ce
DN
14087 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
14088
1905f33d
MM
140892004-08-19 Mark Mitchell <mark@codesourcery.com>
14090
14091 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
14092
f1732751
AP
140932004-08-18 Andrew Pinski <apinski@apple.com>
14094
14095 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
14096
8c78a388
MM
140972004-08-18 Mark Mitchell <mark@codesourcery.com>
14098
14099 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
14100 (__aeabi_ul2f): Likewise.
14101
7eda7cda
RH
141022004-08-18 Richard Henderson <rth@redhat.com>
14103
14104 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
14105 move to rtl completely.
14106 (struct meminsnbuf, xtensa_emit_block_move): Remove.
14107 (xtensa_find_mode_for_size): Remove.
14108 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
14109 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
14110
88042663
RH
141112004-08-18 Richard Henderson <rth@redhat.com>
14112
14113 * config/mcore/mcore.c (mode_from_align): Remove DImode.
14114 (block_move_sequence): Rewrite to use adjust_address.
14115 (mcore_expand_block_move): Cleanup logic. Accept only operands.
14116 Return boolean indicating success/failure.
14117 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
14118 * config/mcore/mcore.md (movmemsi): Update to match.
14119
699c914a
MS
141202004-08-18 Mike Stump <mrs@apple.com>
14121
14122 * doc/invoke.texi (-mfix-and-continue): Add support for
14123 fast turn around debugging.
14124 (-ffix-and-continue): Likewise.
14125 (-mindirect-data): Likewise.
14126 (-findirect-data): Likewise.
14127 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
14128 (indirect_data): Likewise.
14129 (machopic_data_defined_p): Likewise.
14130 (machopic_output_indirection): Likewise.
14131 (darwin_encode_section_info): Likewise.
14132 (darwin_fix_and_continue): Likewise.
14133 (darwin_fix_and_continue_switch): Likewise.
14134 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
14135 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
14136 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
14137 (SUBTARGET_OPTIONS): Likewise.
14138 (darwin_fix_and_continue): Likewise.
14139 (darwin_fix_and_continue_switch): Likewise.
14140 (TARGET_FIX_AND_CONTINUE): Likewise.
14141 * config/rs6000.c (rs6000_emit_prologue): Likewise.
14142
141432004-08-19 Steven Bosscher <stevenb@suse.de>
bd454efd
SB
14144
14145 * basic-block.h (struct edge_def): Remove crossing_edge.
14146 (EDGE_CROSSING): New define.
14147 (EDGE_ALL_FLAGS): Update.
14148 * bb-reorder.c (find_traces_1_round, better_edge_p,
14149 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
14150 find_jump_block, fix_crossing_conditional_branches,
14151 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
14152 Replace all occurences of crossing_edge with an edge flag check
14153 or set/reset.
14154 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
14155 try_crossjump_bb): Likewise.
14156 * cfglayout.c (fixup_reorder_chain): Likewise.
14157 * cfgrtl.c (force_nonfallthru_and_redirect,
14158 commit_one_edge_insertion): Likewise.
14159
14160 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
14161 * tree-flow.h (compute_dominance_frontiers): Move prototype...
14162 * basic-block.h: ...here.
14163 * tree-cfg.c (compute_dominance_frontiers_1,
14164 compute_dominance_frontiers): Move from here...
14165 * cfganal.c: ...to here. Include timevar.h.
14166
9ff6992e
JW
141672004-08-18 James E Wilson <wilson@specifixinc.com>
14168
c831f54b 14169 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
a1627d80
JW
14170 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
14171
9ff6992e
JW
14172 * config/mips/mips.md (type): Add frdiv.
14173 (divsf3+1, divsf3+2): Change type to frdiv.
14174 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
14175 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
19114537 14176
9ff6992e
JW
14177 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
14178 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
14179 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
14180 * config/mips/5000.md (r5k_fdiv_single): Likewise.
14181 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
14182 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
14183 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
14184 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
14185 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
14186 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
14187 Likewise.
14188 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
14189
c16eb900
RB
141902004-08-18 Robert Bowdidge <bowdidge@apple.com>
14191
14192 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
324a6c95 14193 get regression tester working again.
c16eb900 14194
826c9564
ZW
141952004-08-18 Zack Weinberg <zack@codesourcery.com>
14196
14197 * insn-notes.def, reg-notes.def: New files.
14198 * rtl.h: Use them to define enum insn_note and enum reg_note.
14199 * rtl.c: Use them to define note_insn_name and reg_note_name.
4b179e92 14200 * Makefile.in (RTL_BASE_H): Update.
826c9564
ZW
14201
14202 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
14203 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
14204
21b5653c
RE
142052004-08-18 Richard Earnshaw <rearnsha@arm.com>
14206
14207 * arm.c (arm_size_rtx_costs): New function.
14208 (arm_override_options): Use it if optimizing for space.
14209
542a8afa
RH
142102004-08-18 Richard Henderson <rth@redhat.com>
14211
14212 * emit-rtl.c (gen_const_mem): New.
14213 * rtl.h (gen_const_mem): Declare.
14214 * expr.c (do_tablejump): Use it.
14215 * varasm.c (force_const_mem): Likewise.
14216 * config/darwin.c (machopic_indirect_data_reference): Likewise.
14217 (machopic_legitimize_pic_address): Likewise.
14218 * config/arm/arm.c (legitimize_pic_address): Likewise.
14219 * config/i386/i386.c (legitimize_pic_address): Likewise.
14220 (legitimize_tls_address): Likewise.
14221 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
14222 * config/ia64/ia64.md (load_fptr): Likewise.
14223 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
14224 * config/pa/pa.c (legitimize_pic_address): Likewise.
14225 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
14226 (rs6000_emit_move): Likewise.
14227 * config/s390/s390.c (legitimize_pic_address): Likewise.
14228 (legitimize_tls_address): Likewise.
14229 * config/s390/s390.md (casesi): Likewise.
14230 * config/sh/sh.c (sh_reorg): Likewise.
14231 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
14232 * config/v850/v850.md (casesi): Likewise.
14233
14234 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
14235 * config/sh/sh.c (prepare_move_operands): Remove incorrect
14236 use of MEM_READONLY_P.
14237
0516f6fe
SB
142382004-08-18 Steven Bosscher <stevenb@suse.de>
14239
14240 * Makefile.in (OBJS-common): Add postreload-gcse.c.
14241 Add new postreload-gcse.o.
14242 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
14243 (lookup_as_function, insert, rehash_using_reg, use_related_value,
14244 equiv_constant): Use SAFE_HASH instead of safe_hash.
14245 (exp_equiv_p): Export. Add for_gcse argument when comparing
14246 for GCSE.
14247 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
14248 find_comparison_args, fold_rtx, cse_insn): Update callers.
14249 (hash_rtx): New function derived from old canon_hash and bits
14250 from gcse.c hash_expr_1.
14251 (canon_hash_string): Rename to hash_rtx_string.
14252 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
14253 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
14254 (cselib_lookup): Update this caller.
14255 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
14256 Make static.
14257 (hash_expr): Call hash_rtx.
14258 (ldst_entry): Likewise.
14259 (expr_equiv_p): Call exp_equiv_p.
14260 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
14261 reg_used_on_edge, reg_set_between_after_reload_p,
14262 reg_used_between_after_reload_p, get_avail_load_store_reg,
14263 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
14264 get_bb_avail_insn, hash_scan_set_after_reload,
14265 compute_hash_table_after_reload,
14266 eliminate_partially_redundant_loads, gcse_after_reload,
14267 get_bb_avail_insn, gcse_after_reload_main): Remove.
14268 * postreload-gcse.c: New file, reincarnating most of the above.
14269 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
14270 (gcse_after_reload_main): Update prototype.
14271 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
14272 * passes.c (rest_of_handle_gcse2): Use it.
14273
95013377
DN
142742004-08-18 Diego Novillo <dnovillo@redhat.com>
14275
14276 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
14277 (pass_loop_done): Likewise.
14278
ac9e2cff
AP
142792004-08-18 Andrew Pinski <apinski@apple.com>
14280
826c9564 14281 * config/rs6000/darwin.md: Delete the altivec patterns which are
ac9e2cff
AP
14282 handled differently now.
14283 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
14284 (macho_correct_pic_di): Likewise.
14285 (call_indirect_nonlocal_darwin64): Likewise.
14286 Delete the save world/saveFP/saveVec patterns.
826c9564 14287
ac9e2cff 14288 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
826c9564
ZW
14289 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14290 * config/rs6000/rs6000.md: Include darwin.md.
14291 (builtin_setjmp_receiver): Add DImode case.
14292 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
14293 Darwin bits.
ac9e2cff 14294
92b9a671
MA
142952004-08-18 Matt Austern <austern@apple.com>
14296
14297 Dead code stripping
14298 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
14299 * darwin.c (darwin_file_end): Mark file as potentially strippable.
826c9564 14300
4766261d
RH
143012004-08-18 Richard Henderson <rth@redhat.com>
14302
14303 * alias.c (readonly_fields_p): Remove.
14304 (objects_must_conflict_p): Don't call it.
14305 * tree.h (readonly_fields_p): Remove.
14306 * langhooks.h (struct lang_hooks): Remove honor_readonly.
14307 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
14308
50dc9a88
DN
143092004-08-18 Diego Novillo <dnovillo@redhat.com>
14310
14311 * tree-dfa.c (add_referenced_var): Only global variables are
14312 call-clobbered.
14313 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
14314 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
14315 all pointers dereferenced if the statement dereferences them.
14316 (create_name_tags): Do not create memory tags for pointers
14317 that have PT_ANYTHING set.
14318 Also check if PT_VARS is not empty before creating a name tag.
14319 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
14320 variables that share the same alias set with a pointer that
14321 may point anywhere.
14322 (add_may_alias): Add FIXME comment to remove clobbering
14323 aliased variables and tags.
14324 (replace_may_alias): Likewise.
14325 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
14326 (merge_pointed_to_info): If the original variable has not
14327 points-to information, call set_pt_anything.
14328 (add_pointed_to_var): Do not prevent adding a pointed-to
14329 variable if the pointers is PT_ANYTHING.
14330 If the variable is a global, set PT_GLOBAL_MEM.
14331 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
14332 pointer type only come in PTR+OFFSET flavours.
14333 Always call merge_pointed_to_info on PHI arguments that are
14334 SSA_NAMEs.
14335 (get_nmt_for): Mark call-clobbered tags whose pointer points
14336 to global memory.
14337 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
14338 values.
14339 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
14340 FLAGS.
14341 (add_stmt_operand): Abort if the caller tried to add a killing
14342 definition for a memory tag.
14343 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
14344 unnecessary checks.
14345
62164eb4
R
143462004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
14347
14348 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
14349 from call_used_regs. Update call_really_used_regs.
14350 (CALL_REALLY_USED_REGISTERS): Define.
14351 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
14352 Replace call_used_regs with call_really_used_regs.
14353 (calc_live_regs, sh_media_register_for_return): Likewise.
14354 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
14355 * sh.md (return_media): Likewise.
14356
f9b0ac3b
AP
143572004-08-18 Andrew Pinski <apinski@apple.com>
14358
826c9564 14359 * config/darwin.c (machopic_legitimize_pic_address): Only set
ac9e2cff 14360 MEM_READONLY_P in the non TARGET_TOC case.
f9b0ac3b 14361
f822d252
ZW
143622004-08-18 Zack Weinberg <zack@codesourcery.com>
14363
14364 * rtl.def (NIL): Delete.
14365 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
14366 Tighten the syntax a little.
14367
14368 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
14369 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
14370 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
14371 * config/i386/predicates.md, config/m32r/m32r.h
14372 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
14373 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
14374 * config/sparc/sparc.h, doc/tm.texi:
14375 Replace all occurrences of NIL with UNKNOWN.
14376
6aaf3dde
ZW
143772004-08-18 Zack Weinberg <zack@codesourcery.com>
14378
14379 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
14380 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
14381 sequence inline. Move drop_through_label code into this
14382 block, being the only place it is used. Adjust comments.
14383
d62294f5
FJ
143842004-08-18 Fariborz Jahanian <fjahanian@apple.com>
14385
6aaf3dde
ZW
14386 * config/rs6000/altivec.md: Add new patterns for calls to
14387 save_world/rest_world functions.
14388
14389 * config/rs6000/rs6000-protos.h: (save_world_operation,
14390 restore_world_operation) new declarations.
14391
14392 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
14393 field added.
14394 (rs6000_stack_info): Set world_save_p field.
14395 (save_world_operation): New function.
14396 (restore_world_operation): New function.
14397 (compute_save_world_info): New function.
14398 (rs6000_stack_info): Call compute_save_world_info.
14399 (rs6000_emit_prologue): Check for world_save_p and generate
14400 pattern to call save_world for saving all non-volatile and
14401 special registers.
14402 (rs6000_emit_epilogue): Check for world_save_p and generate
14403 pattern to call rest_world to restore saved registers.
14404
14405 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
14406 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
14407 (rs6000_reg_names): New entries added for save_world_operation and
14408 restore_world_operation.
d62294f5 14409
790ac0e1
CT
144102004-08-18 Caroline Tice <ctice@apple.com>
14411
6aaf3dde 14412 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
790ac0e1
CT
14413 "-freorder-blocks-and-partition" to the flags used in second
14414 stage of profiledbootstrap.
14415 * bb-reorder.c (push_to_next_round_p): Add new variable,
14416 next_round_is_last; set and use variable to make sure, when
14417 partitioning, that the last trace construction round consists
14418 of all (and only) cold basic blocks.
14419 (rotate_loop): Don't copy blocks that end in a section
14420 crossing jump.
14421 (copy_bb): Correctly initialize "partition" of duplicated bb.
14422 (add_unlikely_executed_notes): Add a comment.
14423 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
14424 to make sure, if function contains hot blocks, that the
14425 successors of ENTRY_BLOCK_PTR are hot; also, only look for
14426 crossing edges if the architecture supports named sections.
14427 (mark_bb_for_unlikely_executed_section): Modify to always
14428 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
14429 the basic block note insn.
14430 (fix_crossing_unconditional_branches): Remove extra space.
14431 (fix_edges_for_rarely_executed_code): Modify to only do
14432 partitioning work if the architecture supports named sections.
14433 (reorder_basic_blocks): Modify to only add
14434 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
14435 supports named sections.
14436 * c-common.c (handle_section_attribute): Initialize new global
14437 variable, user_defined_section_attribute, to true if user has
14438 specified one.
14439 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
14440 forward edges that cross section boundaries.
14441 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
14442 partitioning information if the architecture supports named
14443 sections.
14444 * cfgrtl.c (target.h): Add statement to include this.
14445 (rtl_split_block): Make sure newly created bb gets correct
14446 partition.
14447 (try_redirect_by_replacing_jump): Make sure redirection isn't
14448 attempting to cross section boundaries.
14449 (force_nonfallthru_and_redirect): Only do partition fix up if
14450 architecture supports named sections.
14451 (rtl_split_edge): Make sure newly created bb ends up in
14452 correct partition.
14453 (commit_one_edge_insertion): Remove code that incorrectly
14454 updated basic block partition; Make sure partition fix up only
14455 happens if architecture supports named sections and it's not
14456 already done.
14457 (rtl_verify_flow_info_1): Fix if-condition on test/error
14458 condition that fallthru edges are not allowed to cross section
14459 boundaries.
14460 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
14461 * final.c (final_scan_insn): Remove redundant test from if-statement;
14462 change calls to text_section into calls to function_section; add code
14463 to only to partitioning fix up if architecture supports named
14464 sections.
14465 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
14466 partition.
14467 (if_convert): Add targetm.have_named_sections to test.
14468 * output.h (unlikely_section_label): Extern declaration for new global
14469 variable.
14470 (unlikely_text_section_name): Likewise.
14471 * opts.c (decode_options): If both partitioning and DWARF debugging
14472 are turned on, issue a warning that this doesn't work, and change
14473 partitiong to basic block reordering (without hot/cold partitions).
6aaf3dde 14474 * passes.c (rest_of_handle_final): Re-set new global variable,
790ac0e1
CT
14475 user_defined_section_attribute, to false.
14476 (rest_of_compilation): Change options for calling partitioning
14477 function: Don't call if the user defined the section attribute, and
14478 don't call if DECL_ONE_ONLY is true for the current function.
14479 * predict.c (choose_function_section): Return immediately if we
14480 are doing hot/cold partitioning (i.e. let the basic block partitioning
14481 determine where the function belongs).
14482 * reg-stack.c (emit_swap_insn): Add condition to step over
14483 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
14484 * toplev.c (user_defined_section_attribute): New global variable.
89b0433e
NS
14485 * toplev.h (user_defined_section_attribute): Extern declaration
14486 for new global variable.
790ac0e1
CT
14487 * varasm.c (unlikely_section_label): New global variable.
14488 (unlikely_text_section_name): New global variable.
89b0433e
NS
14489 (unlikely_text_section): Add code to initialize
14490 unlikely_text_section_name if necessary; modify to use
14491 unlikely_text_section_name and unlikely_section_label; also to use
14492 named_section properly.
14493 (in_unlikely_text_section): Modify to work correctly with
14494 named_section and to use unlikely_text_section_name.
790ac0e1
CT
14495 (named_section): Add code to work properly with cold section.
14496 (function_section): Clean up if-statement.
89b0433e
NS
14497 * config/darwin.c (darwin_asm_named_section): Return to original
14498 code, removing use of SECTION_FORMAT_STRING.
6aaf3dde 14499 * config/arm/pe.h (switch_to_section): Add case for
790ac0e1
CT
14500 in_unlikely_executed_text to switch statement.
14501 * config/i386/cygming.h (switch_to_section): Likewise.
14502 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
14503 (SECTION_FORMAT_STRING): Likewise.
14504 * config/mcore/mcore.h (switch_to_section): Likewise.
14505 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
14506 (SECTION_FORMAT_STRING): Remove.
14507
3a4416fb
RS
145082004-08-18 Roger Sayle <roger@eyesopen.com>
14509
14510 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
14511 -ffixed-reg safe, by preserving the meanings of zero and one.
14512 (CALL_USED_REGISTERS): Likewise.
14513 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
14514
03904fb3
KK
145152004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
14516
14517 * config/sh/sh.c (split_branches): Check the result of
14518 next_active_insn.
14519 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
14520 Call rtl_register_cfg_hooks.
14521
389fdba0
RH
145222004-08-18 Richard Henderson <rth@redhat.com>
14523
14524 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
14525 * alias.c (true_dependence): Update to match new semantics.
14526 (canon_true_dependence, write_dependence_p): Likewise.
14527 (anti_dependence, output_dependence): Update write_dependence_p args.
14528 (unchanging_anti_dependence): Remove.
14529 * calls.c (purge_mem_unchanging_flag): Remove.
14530 (fixup_tail_calls): Don't call it.
14531 (expand_call): Don't add unchanging memory to function usage.
14532 * expr.c (emit_block_move_via_libcall): Likewise.
14533 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
14534 (get_subtarget): Don't use RTX_UNCHANGING_P.
14535 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
14536 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
14537 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
14538 * cse.c (insert): Don't use RTX_UNCHANGING_P.
14539 (cse_insn, canon_hash): Use MEM_READONLY_P.
14540 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
14541 instead of RTX_UNCHANGING_P.
14542 * explow.c (maybe_set_unchanging): Remove.
14543 * expr.h (maybe_set_unchanging): Remove.
14544 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
14545 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
14546 (assign_parm_setup_reg, expand_function_start): Likewise.
14547 * integrate.c (copy_rtx_and_substitute): Likewise.
14548 * ra-rewrite.c (emit_colors): Likewise.
14549 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
14550 (fixup_match_1): Likewise.
14551 * reload1.c (reload, alter_reg): Likewise.
14552 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
14553 not RTX_UNCHANGING_P.
14554 (equiv_init_varies_p): Likewise.
14555 * loop-invariant.c (check_maybe_invariant): Likewise.
14556 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
14557 * loop.c (note_addr_stored): Likewise.
14558 (prescan_loop): Likewise. Don't check function usage for clobbered
14559 unchanging memory.
14560 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
6aaf3dde 14561 not RTX_UNCHANGING_P.
389fdba0
RH
14562 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
14563 * varasm.c (force_const_mem): Likewise.
14564 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
14565 * web.c (entry_register): Likewise.
14566 * tree-gimple.h (get_base_address): Move decl ...
14567 * tree.h: ... here.
14568 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
14569
14570 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
14571 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
14572 (alpha_set_memflags): Update to match.
14573
14574 * config/darwin.c (machopic_indirect_data_reference): Set
14575 MEM_READONLY_P instead of RTX_UNCHANGING_P.
14576 (machopic_indirect_call_target): Likewise.
14577 (machopic_legitimize_pic_address): Likewise.
6aaf3dde 14578 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
389fdba0
RH
14579 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
14580 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
14581 * config/frv/frv.md (symGOT2reg): Likewise.
14582 * config/i386/i386.c (legitimize_pic_address,
14583 legitimize_tls_address, ix86_split_to_parts): Likewise.
14584 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
14585 * config/ia64/ia64.md (load_fptr): Likewise.
14586 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
14587 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
14588 * config/mcore/mcore.c (block_move_sequence): Likewise.
14589 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
14590 * config/pa/pa.c (legitimize_pic_address): Likewise.
14591 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
14592 (rs6000_emit_move): Likewise.
14593 * config/s390/s390.c (legitimize_pic_address): Likewise.
14594 (legitimize_tls_address): Likewise.
14595 * config/s390/s390.md (casesi): Likewise.
14596 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
14597 * config/sh/sh.md (symGOT2reg): Likewise.
14598 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
14599 * config/v850/v850.md (casesi): Likewise.
14600
14601 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
14602 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
14603 * config/mips/mips.c (mips_restore_gp): Likewise.
14604 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
14605 * config/sh/sh.c (sh_reorg): Likewise.
14606
17ad5b5e
RH
146072004-08-18 Richard Henderson <rth@redhat.com>
14608
14609 * tree.h (struct tree_decl): Add gimple_formal_temp.
14610 (DECL_GIMPLE_FORMAL_TEMP_P): New.
14611 * gimplify.c (pop_gimplify_context): Clear it.
14612 (lookup_tmp_var): Set it, if is_formal.
14613 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
14614 Use is_gimple_val for VECTOR. Simplify return value.
14615 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
14616 (gimplify_expr): Likewise.
14617 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
14618 is_gimple_tmp_rhs for clarity. Update all callers.
14619 (is_gimple_reg_rhs): Simplify logic.
14620 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
14621 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
14622 (is_gimple_formal_tmp_reg): Similarly.
14623 * tree-gimple.h: Update decls.
14624 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
14625 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
14626 * tree-ssa-live.c (var_union, type_var_init): Likewise.
14627
5b0eba61
PB
146282004-08-18 Paolo Bonzini <bonzini@gnu.org>
14629
14630 * c4x.c (legitimize_operands): Remove calls to
14631 preserve_subexpressions_p.
14632
07e15286
DE
146332004-08-18 David Edelsohn <edelsohn@gnu.org>
14634
14635 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
14636 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
14637
ad8c162b
ZL
146382004-08-18 Ziemowit Laski <zlaski@apple.com>
14639
14640 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
14641 Objective-C++ extensions.
14642 * gengtype.c (get_file_basename): Match entire subdirectory name
14643 ('cp', 'objc', 'objcp') rather than just its suffix.
14644 (get_base_file_bitmap): Allow for files to belong to more than one
14645 language.
14646 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
14647 used by more than one front-end.
14648
d56993f2
RE
146492004-08-18 Richard Earnshaw <rearnsha@arm.com>
14650
14651 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
14652 avoid use of preserve_subexpressions_p.
14653
504c0e4f
RH
146542004-08-17 Richard Henderson <rth@redhat.com>
14655
14656 PR 17051
14657 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
14658
54e9a19d
DD
146592004-08-17 DJ Delorie <dj@redhat.com>
14660
14661 * doc/extend.texi: Document new xstormy16 attribute.
14662
14663 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
14664 (xstormy16_splittable_below100_or_register): New.
14665 (combine_bnp): New.
14666 (xstormy16_reorg): New.
14667 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14668
54e9a19d
DD
14669 * config/stormy16/stormy16.md (movqi_internal): Make name public.
14670 (movhi_internal): Likewise.
14671 (cbhranchhi): Likewise.
14672 (cbhranchhi_neg): Likewise.
14673 (andhi3): Only allow splittable below100 operands.
14674 (iorhi3): Likewise.
14675 (peephole2): New and/zero_extend->and peephole.
14676 (peephole2): New load/ior/save->set1 peephole.
14677 (peephole2): New load/and/save->clr1 peephole.
14678 (bclrx, bclrx2, bclr7, bclr15): New.
14679 (bsetx, bsetx2, bset7, bset15): New.
14680
14681 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
14682 liberal about acceptable 'B' masks.
14683
14684 * config/stormy16/stormy16-protos.h
14685 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
14686 xstormy16_below100_operand, xstormy16_below100_or_register,
14687 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
14688 (PREDICATE_CODES): Add new predicates.
6aaf3dde 14689
54e9a19d
DD
14690 * config/stormy16/stormy16.c
14691 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
14692 xstormy16_below100_operand, xstormy16_below100_or_register,
14693 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
14694 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
14695 (xstormy16_legitimate_address_p): Allow below100 symbols.
14696 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
14697 (xstormy16_expand_move): Leave below100 operands as-is.
14698 (xstormy16_encode_section_info): Encode below100 symbols.
14699 (xstormy16_strip_name_encoding): New.
14700 (xstormy16_print_operand): Print 'b' as shift mask.
14701 (xstormy16_attribute_table): Add below100 attributes.
14702 (xstormy16_handle_below100_attribute): New.
14703
14704 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
14705 (XSTORMY16_SECTION_FUNCTION): New.
14706 (EXTRA_SECTION_FUNCTIONS): Define using the above.
14707 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
14708 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
14709 (ASM_OUTPUT_LABELREF): Define.
14710
14711 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
14712 (movhi_internal): Add below100 support.
14713 (andhi3): Add below100 support.
14714 (iorhi3): Add below100 support.
14715 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
14716
4ef47bd8
JW
147172004-08-17 James E Wilson <wilson@specifixinc.com>
14718
14719 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
14720 of VOIDmode for comparison code mode.
14721 * config/mips/mips.md: For conditional move patterns, use mode of
14722 first compare operand for comparison mode, instead of VOIDmode.
e17c734b
JW
14723
14724 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
14725 normal and -ffast-math code.
14726
1a10290c
MM
147272004-08-17 Mark Mitchell <mark@codesourcery.com>
14728
14729 PR c++/15871
14730 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
14731
f4e736dd 147322004-08-17 Robert Bowdidge <bowdidge@apple.com>
6aaf3dde
ZW
14733
14734 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
f4e736dd 14735
13a98f14
AT
147362004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
14737
14738 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
14739 for non Darwin targets.
14740 (*call_value_nonlocal_darwin64): Likewise.
14741
d0b2079e
FJ
147422004-08-17 Fariborz Jahanian <fjahanian@apple.com>
14743
14744 * config/rs6000/rs6000.c (rs6000_function_value): Check for
14745 altivec mode for altivec return register.
14746
feb3dc8b
DE
147472004-08-17 David Edelsohn <edelsohn@gnu.org>
14748
14749 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
ef0e2729 14750 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
feb3dc8b
DE
14751 * config/rs6000/rs6000.md: Include darwin.md.
14752 (builtin_setjmp_receiver): Add DImode case.
14753 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
14754 Darwin bits.
14755
79fe1b3b
DN
147562004-08-17 Dorit Naishlos <dorit@il.ibm.com>
14757
89b0433e
NS
14758 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
14759 trees.
79fe1b3b
DN
14760 * tree-vectorizer.h: New File: Same.
14761 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
14762 * common.opt (ftree-vectorize): New flag to enable vectorization.
89b0433e
NS
14763 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
14764 vectorization pass.
79fe1b3b
DN
14765 * tree-data-ref.h (init_data_ref): Additional argument.
14766 (array_base_name_differ_p): Moved to tree-data-ref.c.
14767 * tree-data-ref.c (array_base_name_differ_p): Revised.
14768 (initialize_data_dependence_relation): Call array_base_name_differ_p
14769 with an extra argument.
14770 (analyze_all_data_dependences): Same.
14771 (init_data_ref): Additional argument is_read to set DR_IS_READ.
89b0433e
NS
14772 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
14773 file.
79fe1b3b
DN
14774 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
14775 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
6aaf3dde 14776 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
79fe1b3b
DN
14777 vectorization pass.
14778 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
14779 (tree_ssa_loop_done): Call scev_finalize.
14780 (tree_vectorize): Define the new vectorization pass.
89b0433e
NS
14781 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
14782 size of the vector they support (until support for multiple vector
14783 sizes is added to the vectorizer).
79fe1b3b
DN
14784 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
14785 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
14786 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
14787 documentation.
14788
e15987c1
NS
147892004-08-17 Nathan Sidwell <nathan@codesourcery.com>
14790
14791 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
14792 usage.
14793 (generate_protocol_list, handle_impent): Likewise.
14794
e3cadb61
RS
147952004-08-17 Roger Sayle <roger@eyesopen.com>
14796
14797 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
14798 ensure that call_used_regs is a superset of both fixed_regs and
14799 call_really_used_regs.
14800
108a579c
DB
148012004-08-17 Daniel Bornstein <danfuzz@milk.com>
14802
14803 PR target/17019
14804 * arm.md (addsi3_cbranch_scratch): Correct case labels.
14805
62fc1d7d
PB
148062004-08-17 Paolo Bonzini <bonzini@gnu.org>
14807
14808 PR middle-end/17036
14809 * fold-const.c (fold): Check for integer operand when
14810 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
14811 Pinski <pinskia@physics.uc.edu>.
14812
7c27e184
PB
148132004-08-17 Paolo Bonzini <bonzini@gnu.org>
14814
14815 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
14816 No need to check if in a cross configuration.
14817 * configure: Regenerate.
14818
14819 * calls.c (precompute_register_parameters):
14820 Inline preserve_subexpressions_p ().
14821 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
14822 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
14823 Likewise.
14824 * expr.c (get_subtarget): Likewise.
14825 * rtl.h (preserve_subexpressions_p): Remove.
14826 * stmt.c (preserve_subexpressions_p): Remove.
14827
14828 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
14829 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
14830 Abort on gimplified cases.
14831
d97c6333
JW
148322004-08-16 James E Wilson <wilson@specifixinc.com>
14833
14834 * tree.h (VECTOR_FLOAT_TYPE_P): New.
14835 (FLOAT_TYPE_P): Use it.
14836 * c-typeck.c (build_binary_op): After convert calls, check for
14837 check for ERROR_MARK operands.
14838
45c8116d
ZW
148392004-08-16 Zack Weinberg <zack@codesourcery.com>
14840
14841 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
14842 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
14843 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
14844 (genobjs static pattern rule): Remove %.c dependency.
14845 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
14846 Rename rules; delete commands; fix dependencies.
14847 (mostlyclean): Do not delete temporary source copies.
14848 * configure.ac: Delete all references to BUILD_PREFIX and
14849 BUILD_PREFIX_1.
14850 * configure: Regenerate.
14851
14852 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
14853 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
14854 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
14855 with #ifndef GENERATOR_FILE so that nothing from those headers
14856 is used.
14857
14858 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
14859
4d73e20b
AN
148602004-08-16 Adam Nemet <anemet@lnxw.com>
14861
14862 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
6aaf3dde 14863
62114438
AP
148642004-08-16 Andrew Pinski <apinski@apple.com>
14865
14866 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
14867 extraneous semicolon.
14868
8e3e233b
DP
148692004-08-16 Devang Patel <dpatel@apple.com>
14870
14871 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
14872 * print-tree.c (print_node): Print DECL_PRESERVE_P.
14873 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
14874 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
14875 * target.h (struct gcc_target): New member, mark_decl_preserved.
45c8116d
ZW
14876 * hooks.c (hook_void_charptr): Rename to ...
14877 (hook_void_constcharptr): ... new name.
14878 * hooks.h (hook_void_charptr): Rename to ..
14879 (hook_void_constcharptr): ... new name.
8e3e233b
DP
14880 * tree.h (DECL_PRESERVE_P): New #define.
14881 (struct tree_decl): New member, preserve_flag.
14882 * varasm.c (assemble_start_function): Mark decl preserved.
14883 (assemble_variable): Same.
14884 * darwin.c (darwin_mark_decl_preserved): New function.
14885 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
14886 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
14887 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
14888
580b3958
JM
148892004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
14890
14891 * c-decl.c (grokdeclarator): Allow for function definition where
14892 innermost declarator has attributes.
14893
93f90be6
FJ
148942004-08-16 Fariborz Jahanian <fjahanian@apple.com>
14895
14896 * except.c (get_exception_filter, build_post_landing_pads,
14897 dw2_build_landing_pads): Use target-specific mode for 'filter'.
14898 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
14899 * target.h (eh_return_filter_mode): New field added.
14900 * targhooks.c (default_eh_return_filter_mode): Defined.
14901 * targhooks.h (default_eh_return_filter_mode): Declared.
14902 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
14903
392765bf
NN
149042004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
14905
14906 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
14907 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
14908 * configure: Regenerate.
14909
49bd1d27
SS
149102004-08-16 Stan Shebs <shebs@apple.com>
14911
14912 Basic support for 64-bit Darwin.
14913 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14914 (machopic_legitimize_pic_address): Similarly, plus use Pmode
14915 instead of SImode.
14916 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
14917 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
14918 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
14919 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
14920 (PROCESSOR_DEFAULT64): Define.
14921 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
14922 Darwin.
14923 * config/rs6000/rs6000.md: Include darwin.md.
14924 (builtin_setjmp_receiver): Add DImode case.
14925 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
14926 Darwin.
14927 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
14928 (rs6000_emit_move): Add DImode case to Darwin bits.
14929 (machopic_output_stub): Use .quad if 64-bit.
14930 * invoke.texi: Document -m32 and -m64.
14931
4e6e4e4c
JJ
149322004-08-16 Janis Johnson <janis187@us.ibm.com>
14933
14934 * doc/extend.texi (AltiVec builtins): Document additional differences
14935 from the Motorola AltiVec PIM.
14936
092313ae
NS
149372004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14938
14939 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
14940 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
14941 (struct tree_common): Update public_flag documentation.
14942
dffc9ae5
NN
149432004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
14944
14945 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
62fc1d7d 14946 Check for artificial variables, not is_gimple_tmp_var.
dffc9ae5
NN
14947 * tree-ssa-live.c (var_union): Likewise.
14948
16e9be4c
NS
149492004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14950
14951 * calls.c (load_register_parameters): Remove spurious FIXME token.
14952
9a4d6480
ZL
149532004-08-15 Ziemowit Laski <zlaski@apple.com>
14954
14955 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
14956 (c-lang.o): Depend on c-objc-common.h.
45c8116d 14957 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
9a4d6480
ZL
14958 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
14959 * c-lang.c: Include c-objc-common.h.
14960 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
14961 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
14962 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
45c8116d
ZW
14963 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
14964 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
9a4d6480
ZL
14965 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
14966 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
45c8116d 14967 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
9a4d6480
ZL
14968 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
14969 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
14970 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
14971 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
14972 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
14973 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
14974 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
14975 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
14976 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
14977 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
14978 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
14979 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
14980 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
14981 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
14982 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
14983 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
14984 Move to c-objc-common.h.
14985 * c-objc-common.c: Include c-objc-common.h.
14986 * c-objc-common.h: New file.
14987
869464ba
AT
149882004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
14989 Andrew Pinski <pinskia@physics.uc.edu>
14990
14991 PR target/14931
14992 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
14993 style.
14994
4a90aeeb
NS
149952004-08-15 Nathan Sidwell <nathan@codesourcery.com>
14996
14997 * tree.h (build_int_cst): New.
14998 (build_int_2): Remove.
14999 * tree.c (build_int_2): Remove.
15000 (build_int_cst): New.
15001 (make_vector_type, build_common_tree_nodes,
15002 build_common_tree_nodes_2): Use build_int_cst.
15003 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
15004 expand_builtin_strpbrk, expand_builtin_fputs,
15005 build_string_literal, expand_builtin_printf,
15006 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
15007 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
15008 fold_builtin_isdigit, simplify_builtin_strstr,
15009 simplify_builtin_strpbrk, fold_builtin_fputs,
15010 simplify_builtin_sprintf): Use build_int_cst.
15011 * c-common.c (start_fname_decls, fix_string_type,
15012 c_common_nodes_and_builtins, c_init_attributes,
15013 shorten_compare): Likewise.
15014 * c-decl.c (complete_array_type,
15015 check_bitfield_type_and_width): Likewise.
15016 * c-lex.c (interpret_integer, lex_charconst): Likewise.
15017 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
15018 * c-pretty-print.c (pp_c_integer_constant): Likewise.
15019 * c-typeck.c (really_start_incremental_init, push_init_level,
15020 set_nonincremental_init_from_string): Likewise.
15021 * calls.c (load_register_parameters): Likewise.
15022 * convert.c (convert_to_pointer): Likewise.
15023 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
15024 build_fn_info_type, build_ctr_info_value, build_gcov_info):
15025 Likewise.
15026 * except.c (init_eh, assign_filter_values, assign_filter_values):
15027 Likewise.
15028 * expmed.c (store_fixed_bit_field, extract_bit_field,
15029 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
15030 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
15031 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
15032 * expr.c (convert_move, emit_group_load, emit_group_store,
15033 expand_assignment, store_constructor, store_field,
15034 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
15035 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
15036 invert_truthvalue, optimize_bit_field_compare,
15037 decode_field_reference, all_ones_mask_p, constant_boolean_node,
15038 fold_div_compare, fold, fold_read_from_constant_string,
15039 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
15040 * function.c (assign_parm_setup_block): Likewise.
15041 * stmt.c (shift_return_value, expand_end_case_type,
15042 estimate_case_costs): Likewise.
15043 * stor-layout.c (layout_type, initialize_sizetypes,
15044 set_min_and_max_values_for_integral_type): Likewise.
15045 * tree-chrec.c (chrec_fold_multiply_poly_poly,
15046 reset_evolution_in_loop): Likewise.
15047 * tree-chrec.h (build_polynomial_chrec): Likewise.
15048 * tree-complex.c (build_replicated_const): Likewise.
15049 * tree-eh.c (honor_protect_cleanup_actions,
15050 lower_try_finally_onedest, lower_try_finally_copy,
15051 lower_try_finally_switch): Likewise.
15052 * tree-mudflap.c (mf_build_string, mx_register_decls,
15053 mudflap_register_call, mudflap_enqueue_constant): Likewise.
15054 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
15055 * tree-pretty-print.c (dump_generic_node): Likewise.
15056 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
15057 Likewise.
15058 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
15059 * tree-ssa-loop-niter.c (number_of_iterations_cond,
15060 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
15061 Likewise.
45c8116d 15062
4a90aeeb
NS
15063 * config/alpha/alpha.c (alpha_initialize_trampoline,
15064 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
15065 * config/arm/arm.c (arm_get_cookie_size): Likewise.
15066 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
15067 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
15068 * config/i860/i860.c (i860_va_start): Likewise.
15069 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15070 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
15071 mips_gimplify_va_arg_expr): Likewise.
15072 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15073 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
15074 add_compiler_branch_island): Likewise.
15075 * config/s390/s390.c (s390_va_start): Likewise.
15076 * config/sh/sh.c (sh_va_start): Likewise.
15077 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
15078 Likewise.
15079 * config/xtensa/xtensa.c (xtensa_va_start,
15080 xtensa_gimplify_va_arg_expr): Likewise.
45c8116d 15081
4a90aeeb
NS
15082 * objc/objc-act.c (build_objc_string_object,
15083 build_objc_symtab_template, init_def_list, init_objc_symtab,
15084 init_module_descriptor, generate_static_references,
15085 build_selector_translation_table, get_proto_encoding,
15086 build_typed_selector_reference, build_selector_reference,
15087 build_next_objc_exception_stuff,
15088 build_method_prototype_list_template, generate_descriptor_table,
15089 generate_protocols, build_protocol_initializer,
15090 build_ivar_list_template, build_method_list_template,
15091 build_ivar_list_initializer, generate_ivars_list,
15092 generate_dispatch_table, generate_protocol_list,
15093 build_category_initializer, build_shared_structure_initializer,
15094 generate_shared_structures, handle_impent,
15095 generate_objc_image_info): Use build_int_cst.
15096
2a68a7de
BE
150972004-08-15 Ben Elliston <bje@au.ibm.com>
15098
15099 * vec.h: Comment improvements.
15100
53fb4de3
RS
151012004-08-14 Roger Sayle <roger@eyesopen.com>
15102
15103 * c-common.c (shorten_compare, pointer_int_sum,
15104 c_common_truthvalue_conversion, boolean_increment): Replace calls
15105 to build with calls to buildN.
15106 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
15107 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
15108 gimplify_switch_stmt): Likewise.
15109 * c-typeck.c (default_function_array_conversion,
15110 build_component_ref, build_array_ref, build_function_call,
15111 pointer_diff, build_unary_op, build_conditional_expr,
15112 build_compound_expr, build_modify_expr, c_finish_goto_label,
15113 c_finish_goto_ptr, c_finish_return, c_finish_loop,
15114 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
15115 build_binary_op): Likewise.
15116
254b17dd
SB
151172004-08-15 Steven Bosscher <stevenb@suse.de>
15118
15119 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
15120
a5252c84
JDA
151212004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15122
15123 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
15124 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
15125 * fixinc/fixincl.x: Rebuilt.
15126
96a30b18
RS
151272004-08-14 Richard Sandiford <rsandifo@redhat.com>
15128
15129 * config/mips/mips-protos.h (mips_symbolic_constant_p)
15130 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
15131 (mips_small_data_pattern_p): Declare.
15132 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
15133 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
15134 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
15135 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
15136 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
15137 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
15138 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
15139 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
15140 (pc_or_label_operand, call_insn_operand, move_operand)
15141 (consttable_operand, symbolic_operand, general_symbolic_operand)
15142 (global_got_operand, local_got_operand, stack_operand)
15143 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
15144 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
15145 (mips_small_data_pattern_p): Replace previous small_data_pattern
15146 predicate. Turn into a bool () (rtx) function.
15147 * config/mips/predicates.md: New file.
15148 * config/mips/mips.md: Include it. Use the target-independent
15149 comparison_operator instead of cmp_op. Rename trap_cmp_op to
15150 trap_comparison_operator and equality_op to equality_operator.
15151 Replace uses of small_int with the equivalent const_arith_operand.
15152 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
15153 const_float_1_operand to const_1_operand. Rename fcc_register_operand
15154 to fcc_reload_operand.
15155 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
15156
e41c9fcb
JDA
151572004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15158
15159 PR libstdc++/17005 partial fix.
15160 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
15161 except when generating ANSI/C89 code.
15162
af9c6659
NS
151632004-08-14 Nathan Sidwell <nathan@codesourcery.com>
15164
15165 * c-common.c (shorten_compare): Use force_fit_type directly.
15166
37de1373
GP
151672004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
15168 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
15169 Dave Korn <dk@artimi.com>
15170
15171 * doc/install.texi (Building): Avoid duplicate reference to GNU
15172 make requirement.
15173 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
15174
06d69cd3
RH
151752004-08-14 Richard Henderson <rth@redhat.com>
15176
15177 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
15178 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
15179
e427abbf
RH
151802004-08-13 Richard Henderson <rth@redhat.com>
15181
15182 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
15183 for constant_call_address_operand.
15184 (call_value_pop_1, call_value_1): Likewise.
15185 (sibcall_value_1, call_value_1_rex64): Likewise.
15186
2b407936
JW
151872004-08-13 James E Wilson <wilson@specifixinc.com>
15188
15189 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
15190 Correct mode from SFmode to DFmode.
15191
3e0d5ae2
ZL
151922004-08-13 Ziemowit Laski <zlaski@apple.com>
15193
15194 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
15195 __cstring_object and __image_info sections with the no_dead_strip
15196 attribute.
15197
e0704143
RS
151982004-08-13 Roger Sayle <roger@eyesopen.com>
15199 David Billinghurst <David.Billinghurst@riotinto.com>
15200
15201 PR libgfortran/15930
15202 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
15203 * fixinc/fixincl.x: Regenerate.
15204 * fixinc/tests/base/internal/math_core.h: New file.
15205
8768c655
RH
152062004-08-13 Richard Henderson <rth@redhat.com>
15207
15208 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
15209 (dbxout_function_end): Remove ifdefs for it.
15210 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
15211
201312c2
RH
152122004-08-13 Richard Henderson <rth@redhat.com>
15213
15214 * Makefile.in (insn-preds.o): Depend on TREE_H.
15215 * genpreds.c (write_insn_preds_c): Include tree.h.
15216 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
15217 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
15218 const48_operand, and_operand, or_operand, mode_width_operand,
15219 mode_mask_operand, mul8_operand, const0_operand,
15220 hard_fp_register_operand, hard_int_register_operand,
15221 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
15222 samegp_function_operand, direct_call_operand, small_symbolic_operand,
45c8116d 15223 global_symbolic_operand, call_operand, symbolic_operand,
201312c2
RH
15224 dtp16_symbolic_operand, dtp32_symbolic_operand,
15225 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
15226 gottp_symbolic_operand, alpha_comparison_operator,
15227 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
15228 signed_comparison_operator, alpha_fp_comparison_operator,
15229 divmod_operator, fix_operator, aligned_memory_operand,
15230 unaligned_memory_operand, reg_or_unaligned_mem_operand,
15231 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
15232 reg_no_subreg_operand, addition_operation): Move to predicates.md.
15233 (reg_or_const_int_operand): Remove. Replace all users with
15234 reg_or_cint_operand.
15235 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
15236 (resolve_reload_operand): Split out of aligned_memory_operand.
15237 * config/alpha/alpha-protos.h: Update for exports.
15238 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
15239 * config/alpha/alpha.md: Include predicates.md.
15240 * config/alpha/predicates.md: New file.
15241
1e9c8405
RS
152422004-08-13 Richard Sandiford <rsandifo@redhat.com>
15243
15244 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
15245 fields with a pointer to the instruction definition.
15246 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
15247 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
15248 (write_attr_case, write_const_num_delay_slots): Update accordingly.
15249 (write_attr_case, write_const_num_delay_slots): Write the name of
15250 an insn next to its case statement.
15251 * genoutput.c (data): Add a filename field.
15252 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
15253 (output_insn_data): Print the location of each insn definition.
15254 * genrecog.c (write_action): Print the name of an insn above
15255 the statement that returns its code.
15256
1e5f1716
AP
152572004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
15258
15259 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
15260 * config/libgloss.h: Likewise.
15261 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
15262 * c4x/c4x-modes.def: Likewise.
15263 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
15264 (c4x_rptb_nop_p): Likewise.
15265 (c4x_rptb_valid_p): Likewise.
15266 (c4x_rptb_insert): Likewise.
15267 (c4x_address_conflict): Likewise.
15268 * config/c4x/c4x.md: Likewise.
15269 * config/frv/frv.md: Likewise.
15270 * config/i386/athlon.md: Likewise.
15271 * config/i386/i386.md: Likewise.
15272 * config/i386/predicates.md: Likewise.
15273 * config/ia64/ia64.c: Likewise.
15274 * config/ia64/itanium1.md: Likewise.
15275 * config/ia64/itanium2.md: Likewise.
15276 * config/iq2000/iq2000.md: Likewise.
15277 * config/mcore/mcore.c: Likewise.
15278 * config/mips/mips.c: Likewise.
15279 * config/mips/r3900.h: Likewise.
15280 * config/mips/sb1.md: Likewise.
15281 * config/pa/milli64.S: Likewise.
15282 * config/pa/pa.c: Likewise.
15283 * config/pa/pa.h: Likewise.
15284 * config/rs6000/8540.md: Likewise.
15285
9bcc9490
DB
152862004-08-13 Daniel Berlin <dberlin@dberlin.org>
15287
15288 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
15289
68fe56fc
R
152902004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
15291
15292 * sh.md (cbranch define_delay) Use cond_delay_slot for
15293 non-anulled condition too.
15294
85d346f1
DE
152952004-08-12 David Edelsohn <edelsohn@gnu.org>
15296
15297 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
15298 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
15299 any_parallel_operand, lmw_operation, stmw_operation,
a688b3ac 15300 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
85d346f1
DE
15301 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
15302 any_parallel_operand.
15303 (return_and_restore_fpregs_{si,di}): Same.
15304
47d2cee5
ZW
153052004-08-12 Zack Weinberg <zack@codesourcery.com>
15306
15307 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
15308 if pred->singleton != PARALLEL, issue a warning and pretend it was.
15309 Also issue a warning for any predicate we don't know about.
15310
8fe75e43
RH
153112004-08-12 Richard Henderson <rth@redhat.com>
15312
15313 * config/i386/i386.c (internal_label_prefix): Export.
15314 (internal_label_prefix_len, struct ix86_address,
15315 ix86_decompose_address, maybe_get_pool_constant,
15316 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
15317 memory_address_length): Export.
47d2cee5 15318 (any_fp_register_operand, fp_register_operand,
8fe75e43 15319 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
47d2cee5 15320 x86_64_general_operand, x86_64_szext_general_operand,
8fe75e43
RH
15321 x86_64_nonmemory_operand, x86_64_movabs_operand,
15322 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
15323 x86_64_zext_immediate_operand, const_int_1_31_operand,
15324 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
15325 tls_symbolic_operand, global_dynamic_symbolic_operand,
15326 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
15327 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
15328 constant_call_address_operand, const0_operand, const1_operand,
15329 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
15330 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
15331 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
15332 general_no_elim_operand, nonmemory_no_elim_operand,
15333 index_register_operand, q_regs_operand, flags_reg_operand,
15334 non_q_regs_operand, zero_extended_scalar_load_operand,
15335 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
47d2cee5 15336 ix86_comparison_operator, ix86_carry_flag_operator,
8fe75e43
RH
15337 fcmov_comparison_operator, promotable_binary_operator,
15338 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
47d2cee5 15339 mult_operator, div_operator, arith_or_logical_operator,
8fe75e43
RH
15340 memory_displacement_operand, cmpsi_operand, long_memory_operand,
15341 aligned_operand): Move to predicates.md as define_predicates.
15342 (tls_symbolic_operand_1): Remove.
15343 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
15344 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
15345 (legitimize_address): Merge tls_symbolic_operand contents.
15346 (ix86_expand_move): Likewise.
15347 * config/i386/i386-protos.h: Update for exports.
15348 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
15349 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
15350 * config/i386/i386.md: Include predicates.md.
15351 * config/i386/predicates.md: New file.
15352
ea3d83a7
MM
153532004-08-13 Mark Mitchell <mark@codesourcery.com>
15354
15355 PR c++/16924
15356 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
15357 SYMBOL_REF_DECL.
15358 (i386_pe_mark_dllimport): Likewise.
15359 (i386_pe_encode_section_info): Likewise, when overriding
15360 dllimport attribute.
15361
414adbdd
GK
153622004-08-12 Geoffrey Keating <geoffk@apple.com>
15363
15364 * configure.ac: When testing for flex, nm, ar, and bison, check
15365 that they will actually be built.
15366 * configure: Regenerate.
15367
c5443745
UW
153682004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
15369
15370 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
15371 (MOVE_MAX_PIECES): Define.
15372
8fa5469d
DP
153732004-08-12 Devang patel <dpatel@apple.com>
15374
15375 * dbxout.c (dbxout_begin_prologue): New function.
15376 (dbx_debug_hooks): Use new begin prologue hook.
15377 (dbxout_function_end): Emit N_ENSYM.
15378 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
47d2cee5 15379
b0b343db
JJ
153802004-08-12 Janis Johnson <janis187@us.ibm.com>
15381
e390eb0a
JJ
15382 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
15383 argument is float*.
15384
e34b6648
JJ
15385 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
15386 for vec_dss.
15387
b0b343db
JJ
15388 * doc/extend.texi (AltiVec builtins): Fix description for recent
15389 changes. Update operation list to match current support.
15390
adf39f8f
AK
153912004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
15392
15393 * config/s390/s390.c (struct s390_frame_layout): New struct as element
15394 of struct machine_function.
15395 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
15396 changed all uses.
15397 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
15398 changed all uses.
15399 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
15400 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
15401 (s390_frame_area, s390_register_info): New functions.
15402 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
15403 for base register.
15404 (s390_return_addr_rtx, s390_return_address_offset)
15405 (s390_va_start, s390_gimplify_va_arg)
15406 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
15407 layouts.
15408 (s390_frame_info): Functionality partly moved to s390_register_info.
15409 Made adaptions for new stack layout.
15410 (save_gprs, restore_gprs): Changed meaning of second parameter and
15411 adapted all callers.
15412
15413 * config/s390/s390.h (s390_backchain_string): New global variable.
15414 (MASK_BACKCHAIN): Removed definition.
15415 (TARGET_BACKCHAIN): Changed check.
15416 (TARGET_KERNEL_BACKCHAIN): New macro.
15417 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
15418 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
15419 "kernel-backchain".
15420 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
15421
15422 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
15423 as condition. Adjusted for new stack layout.
15424
15425 * doc/invoke.texi: Added documentation for new option
15426 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
15427 "-mno-backchain".
15428
db151e9d
PB
154292004-08-12 Paul Brook <paul@codesourcery.com>
15430
15431 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
15432 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
15433
02b75262
DD
154342004-08-12 David Daney <ddaney@avtrex.com>
15435
db151e9d 15436 * java/gcj.texi: Add subsection on signal usage.
02b75262 15437
f64d6991
DE
154382004-08-12 David Edelsohn <edelsohn@gnu.org>
15439
15440 * expr.c (move_by_pieces): Set alignment for move to minimum of
15441 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
15442 alignment, but not less than the original alignment.
15443 (move_by_pieces_ninsns): Same.
15444 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
15445 (store_by_pieces_1): Same.
15446
c597ef4e
DN
154472004-08-12 Diego Novillo <dnovillo@redhat.com>
15448
15449 PR tree-optimization/16867
15450 * tree.c (is_global_var): New function.
15451 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
15452 Call is_global_var.
15453 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
15454 Update all users.
15455 (is_global_var): Declare.
15456 * tree-dfa.c (dump_variable): Display global and addressable
15457 attributes.
15458 (add_referenced_var): Clarify documentation when marking
15459 variables call-clobbered.
15460 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
15461 instead of needs_to_live_in_memory.
15462 (mark_call_clobbered): If the variable is a tag, mark it
15463 DECL_EXTERNAL.
15464 * tree-gimple.c (is_gimple_reg): Don't check for
15465 TREE_ADDRESSABLE.
15466 (is_gimple_non_addressable): Likewise.
15467 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
15468 needs to be marked call-clobbered.
15469 (setup_pointers_and_addressables): Call is_global_var instead
15470 of needs_to_live_in_memory.
15471 * tree-ssa-dce.c (need_to_preserve_store): Remove.
15472 Update all users with is_global_var.
15473 (mark_stmt_if_obviously_necessary): Fix processing of aliased
15474 stores. Don't check the virtual definitions. Rather, check
15475 whether the store is going into global memory.
15476 (find_obviously_necessary_stmts): Get the symbol from the PHI
15477 result.
15478 * tree-ssa-operands.c (get_call_expr_operands): Do not add
15479 clobbering may-defs if the call does not have side effects.
15480
ab5c8549
JJ
154812004-08-12 Jakub Jelinek <jakub@redhat.com>
15482
15483 PR c++/16276
15484 * output.h (default_function_rodata_section,
15485 default_no_function_rodata_section): New prototypes.
15486 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
15487 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
15488 (TARGET_ASM_OUT): Add it.
15489 * varasm.c (default_function_rodata_section,
15490 default_no_function_rodata_section): New functions.
15491 * final.c (final_scan_insn): Call
15492 targetm.asm_out.function_rodata_section instead of
15493 readonly_data_section.
15494 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
15495 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15496 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15497 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
15498 Likewise.
15499 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15500 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
15501 Likewise.
15502 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
15503 Likewise.
15504 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15505 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15506 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
15507
5cf58f28
PB
155082004-08-12 Paul Brook <paul@codesourcery.com>
15509
15510 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
15511 frame info.
15512 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
15513 DWARF2_UNWIND_INFO.
15514
87e184d1
BE
155152004-08-12 Ben Elliston <bje@au.ibm.com>
15516
15517 PR target/16286
15518 * config/rs6000/altivec.h: Change vector to __vector throughout.
15519 (Except for the `vector' macro itself).
15520
e543e219
ZW
155212004-08-12 Zack Weinberg <zack@codesourcery.com>
15522
15523 * genpreds.c: Add capability to generate predicate bodies as
15524 well as function prototypes. Write function prototypes for
15525 the generic predicates too.
15526 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
15527 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
15528 (write_match_code, write_predicate_expr, write_one_predicate_function)
15529 (parse_option): New functions.
15530 (output_predicate_decls): Delete.
15531 (main): Read the machine description, process DEFINE_PREDICATE or
15532 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
15533 as appropriate.
15534
15535 * genrecog.c (struct decision_test): Replace index with
15536 struct pred_data pointer.
15537 (next_index): Remove, unused.
15538 (pred_table, preds, special_mode_pred_table): Delete.
15539 (compute_predicate_codes, process_define_predicate): New functions.
15540 (validate_pattern, add_to_sequence, write_switch): Update for
15541 new data structures.
15542 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
15543 Check both error_count and have_error.
15544
15545 * gensupport.c (in_fname, first_predicate): New globals.
15546 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
15547 (predicate_table, last_predicate, old_pred_table)
15548 (old_special_pred_table): New statics.
15549 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
15550 (add_predicate, init_predicate_table): New functions.
15551 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
15552 (init_md_reader_args_cb): Use the global in_fname. No need to zero
15553 it or max_include_len. Call init_predicate_table.
15554 (read_rtx): Run the predicate queue after the attribute queue
15555 but before all the others.
15556 * gensupport.h (in_fname, struct pred_data, first_predicate)
15557 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
15558 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
15559 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
15560 * dummy-conditions.c: Don't include bconfig.h, system.h,
15561 coretypes.h, tm.h, or system.h. Do include stddef.h.
15562 Duplicate declaration of struct c_test from gensupport.h.
15563
15564 * Makefile.in (OBJS-common): Add insn-preds.o.
15565 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
15566 (insn-preds.c, insn-preds.o): New rules.
15567 (s-preds): Also generate insn-preds.c.
15568 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
15569 Update dependencies.
15570 (print-rtl.o, print-rtl1.o): Correct dependencies.
15571
15572 * recog.h: Delete prototypes of predicate functions.
15573
15574 * doc/md.texi (Predicates): New section with complete
15575 documentation of operand/operator predicates. Remove some
15576 incomplete documentation of predicates from other places.
15577 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
15578 PREDICATE_CODES; indicate that both are deprecated in favor
15579 of define_predicate/define_special_predicate.
15580
15581 * config/ia64/ia64.c: All predicate function definitions moved
15582 to ia64.md, except
15583 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
15584 (ia64_expand_load_address, ia64_expand_move):
15585 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
15586
15587 * config/ia64/ia64.md: All predicates now defined here.
15588 (symbolic_operand): Is now a special predicate.
15589
15590 * config/ia64/ia64.h: Declare ia64_section_threshold.
15591 (PREDICATE_CODES): Delete.
15592
174283a3
RH
155932004-08-12 Richard Henderson <rth@redhat.com>
15594
15595 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
15596 * c-semantics.c (add_stmt): Set it.
15597 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
15598 before instantiating a variable sized type.
15599
15931954
RH
156002004-08-12 Richard Henderson <rth@redhat.com>
15601
15602 * stor-layout.c (round_up, round_down): Move ...
e543e219 15603 * fold-const.c (round_up, round_down): ... here. Use
15931954
RH
15604 multiple_of_p to avoid any arithmetic at all.
15605
57d1dd87
RH
156062004-08-12 Richard Henderson <rth@redhat.com>
15607
15608 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
15609 (gimplify_init_ctor_preeval_1): New.
15610 (gimplify_init_ctor_preeval): New.
15611 (gimplify_init_ctor_eval): New.
15612 (gimplify_init_constructor): Use them. Always gimplify the LHS
15613 object first.
15614
46e34f96
ZL
156152004-08-12 Ziemowit Laski <zlaski@apple.com>
15616
15617 (This patch is part of merge of objc-improvements-branch
15618 into mainline.)
15619
15620 * doc/frontends.texi: Mention Objective-C++ in addition to
15621 Objective-C.
15622 * doc/install.texi: Add 'obj-c++' to list of configurable
15623 languages.
15624 * doc/invoke.texi: Rename Objective-C option headings to
15625 indicate they also apply to Objective-C++. List file
15626 extensions for Objective-C++ sources. Mention that
15627 ObjC and ObjC++ compilations may also use C and C++ options,
15628 respectively. Point users to doc/standards.texi for
15629 further info on ObjC and ObjC++.
15630 * doc/sourcebuild.texi: Mention the objcp/ directory and
15631 the Objective-C++ sources it contains.
15632 * doc/standards.texi: Update link to Apple ObjC site;
15633 add link to gcc readings.html WWW doc.
15634
07f12d8b
AM
156352004-08-12 Alan Modra <amodra@bigpond.net.au>
15636
15637 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
15638 and 2004-07-14 changes.
15639
89aa5a20
PB
156402004-08-12 Paul Brook <paul@codesourcery.com>
15641
15642 * doc/invoke.texi: Fix typo.
15643
5079843a
DP
156442004-08-11 Devang Patel <dpatel@apple.com>
15645
15646 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
15647 and -no_dead_strip_inits_and_terms.
15648 (LINK_SPEC): Same.
15649 * doc/invoke.texi (Darwin Options): Document -dead_strip and
15650 -no_dead_strip_inits_and_terms.
e543e219 15651
876f13b0
PB
156522004-08-11 Paul Brook <paul@codesourcery.com>
15653
15654 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
15655 (arm_load_pic_register): ... to this.
15656 * config/arm/arm.c (arm_finalize_pic): Rename ...
15657 (arm_load_pic_register): ... to this. Always output insns at the
15658 current location. Load via low reg in thumb mode.
15659 (arm_expand_prologue): Call arm_load_pic_register.
15660 (thumb_expand_prologue): Ditto.
15661 * config/arm/arm.h (FINALIZE_PIC): Remove.
15662 * config/arm/arm.md (builtin_setjmp_receiver): Call
15663 arm_load_pic_register.
15664
57934c39
PB
156652004-08-11 Paul Brook <paul@codesourcery.com>
15666
15667 * arm.c (thumb_force_lr_save): Add prototype.
15668 (thumb_compute_save_reg_mask): New function.
15669 (thumb_find_work_register): New function.
15670 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
15671 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
15672 Don't clobber r3 when removing pretend args.
15673 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
15674 (thumb_output_function_prologue): Use new functions.
15675 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
15676 * arm.h (THUMB_REG_PUSHED_P): Remove.
15677
af874237
JW
156782004-08-11 James E Wilson <wilson@specifixinc.com>
15679
15680 PR rtl-optimization/16490
15681 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
15682 global_live_at_end for new basic block if already set for other blocks.
15683
c1618c0c
DE
156842004-08-11 David Edelsohn <edelsohn@gnu.org>
15685
15686 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
15687
15688 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
15689 (mfcr rlwinm rlwinm patterns): Set length to 12.
15690
1a24f92f
AM
156912004-08-11 Andrew MacLeod <amacleod@redhat.com>
15692
15693 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
15694 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
15695 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
15696 (start_ssa_stmt_operands): Delete.
e543e219 15697 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
1a24f92f
AM
15698 struct stmt_operands_d.
15699 (build_ssa_operands): New extern entry point.
e543e219 15700 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
1a24f92f
AM
15701 building code, replace with create_ssa_artficial_load_stmt().
15702 * tree-ssa-operands.c (struct voperands_d): Delete.
15703 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
15704 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
e543e219 15705 (free_uses, free_defs, free_vuses, free_v_may_defs,
1a24f92f
AM
15706 free_v_must_defs): Remove dealloc parameter.
15707 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
15708 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
15709 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
15710 vector comparisons, ssa_name reuse, and allocations here.
15711 (verify_start_operands): Delete.
15712 (finalize_ssa_stmt_operands): Set new operands by calling finalize
15713 routines.
15714 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
15715 (append_def, append_usei): Simplify to simple accumulation.
15716 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
15717 duplicates and simple accumulation.
15718 (free_ssa_operands): Free vectors in a stmt_operand structure.
15719 (build_ssa_operands): New. Create a new stmt_operand structure from
e543e219 15720 a stmt and an old set of stmt_operands.
1a24f92f
AM
15721 (get_stmt_operands): Simplify and call build_ssa_operands.
15722 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
15723 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
15724 add_call_read_ops): Don't pass prev_vops around anymore.
15725 (note_addressable): Return if no stmt annotation.
15726 (copy_virtual_operands): Access v_may_def operands through a struct.
15727 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
15728 hash tables without treating the stmt as a real stmt.
15729 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
15730 v_may_def def and use through a struct instead of 2 array elements.
15731 (struct v_may_def_optype_d): Use v_may_def_operand_type.
15732 (struct stmt_operands_d): New. Struct for storing all operand vectors.
15733
a77655b1
NC
157342004-08-11 Nick Clifton <nickc@redhat.com>
15735
15736 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
15737 this funciton's behaviour. Return true when the current function
15738 has a section attribute and -mlong-calls is in effect.
15739 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
15740 short-call marker when -mlong-calls is in effect and the function
15741 has a section attribute.
15742
6f4a43e0
ZW
157432004-08-10 Zack Weinberg <zack@codesourcery.com>
15744
15745 * stmt.c (expand_return): If asked to return the RESULT_DECL,
15746 just call expand_value_return on result_rtl.
15747
1a186ec5
RH
157482004-08-10 Richard Henderson <rth@redhat.com>
15749
15750 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
15751 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
15752 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
15753 (add_location_or_const_value_attribute): ... not here. Use
15754 loc_descriptor_from_tree if possible.
15755 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
15756 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
15757 values specially.
15758 (loc_descriptor_from_tree): New. Update callers.
15759 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
15760 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
15761 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
15762 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
15763 and BUILT_IN_STACK_RESTORE.
15764 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
15765 * stmt.c (expand_stack_alloc): Remove.
15766 * tree-mudflap.c (mx_register_decls): Don't look for
15767 BUILT_IN_STACK_ALLOC.
15768 * tree-nested.c (convert_local_reference): Likewise.
15769 * tree.h (DECL_VALUE_EXPR): New.
15770
7109c195
RH
157712004-08-10 Richard Henderson <rth@redhat.com>
15772
bf4ccdd6
RH
15773 * stor-layout.c (round_up): Check for 0/1 before dividing.
15774 (round_down): Likewise.
15775
7109c195
RH
15776 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
15777
b3f8d95d
MM
157782004-08-09 Mark Mitchell <mark@codesourcery.com>
15779
15780 * config.gcc (arm*-*-eabi*): New target.
15781 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
15782 (TARGET_LIB_INT_CMP_BIASED): Likewise.
15783 * expmed.c (expand_divmod): Try a two-valued divmod function as a
15784 last resort.
15785 * gthr.h: Remove bogus tokens at end of #pragma.
15786 * optabs.c (expand_twoval_binop_libfunc): New function.
15787 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
15788 (prepare_float_lib_cmp): Try reversing the condition.
15789 (debug_optab_libfuncs): New function.
15790 * optabs.h (expand_twoval_binop_libfunc): Declare.
15791 * config/arm/arm.c (arm_init_libfuncs): New function.
15792 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
15793 (TARGET_INIT_LIBFUNCS): Define it.
15794 * config/arm/arm.h (TARGET_BPABI): New macro.
15795 * config/arm/arm-protos.h
15796 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
15797 * config/arm/bpabi.S: New file.
15798 * config/arm/bpabi.c: Likewise.
15799 * config/arm/bpabi.h: Likewise.
15800 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
15801 (__aeabi_drsub): Likewise.
15802 (__aeabi_dsub): Likewise.
15803 (__aeabi_dadd): Likewise.
15804 (__aeabi_ui2d): Likewise.
15805 (__aeabi_i2d): Likewise.
15806 (__aeabi_f2d): Likewise.
15807 (__aeabi_dmul): Likewise.
15808 (__aeabi_ddiv): Likewise.
15809 (__aeabi_cdrcmple): Likewise.
15810 (__aeabi_cdcmpeq): Likewise.
15811 (__aeabi_cdcmple): Likewise.
15812 (__aeabi_dcmpeq): Likewise.
15813 (__aeabi_dcmplt): Likewise.
15814 (__aeabi_dcmple): Likewise.
15815 (__aeabi_dcmpge): Likewise.
15816 (__aeabi_dcmpgt): Likewise.
15817 (__aeabi_dcmpun): Likewise.
15818 (__aeabi_d2iz): Likewise.
15819 (__aeabi_d2uiz): Likewise.
15820 (__aeabi_d2f): Likewise.
15821 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
15822 (__aeabi_frsub): Likewise.
15823 (__aeabi_fsub): Likewise.
15824 (__aeabi_fadd): Likewise.
15825 (__aeabi_ui2f): Likewise.
15826 (__aeabi_i2f): Likewise.
15827 (__aeabi_fmul): Likewise.
15828 (__aeabi_fdiv): Likewise.
15829 (__aeabi_cfrcmple): Likewise.
15830 (__aeabi_cfcmpeq): Likewise.
15831 (__aeabi_cfcmple): Likewise.
15832 (__aeabi_fcmpeq): Likewise.
15833 (__aeabi_fcmplt): Likewise.
15834 (__aeabi_fcmple): Likewise.
15835 (__aeabi_fcmpge): Likewise.
15836 (__aeabi_fcmpgt): Likewise.
15837 (__aeabi_fcmpun): Likewise.
15838 (__aeabi_f2iz): Likewise.
15839 (__aeabi_f2uiz): Likewise.
15840 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
15841 (__aeabi_uidivmod): New function or alias.
15842 (__aeabi_idivmod): Likewise.
15843 (__aeabi_idiv0): Likewise.
15844 (__aeabi_ldiv0): Likewise.
15845 (__aeabi_llsr): Likewise.
15846 (__aeabi_lasr): Likewise.
15847 (__aeabi_llsl): Likewise.
15848 (bpabi.S): Include it.
15849 * config/arm/libgcc-bpabi.ver: New file.
15850 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
15851 (LINK_SPEC): Remove.
15852 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
15853 __aeabi_ulcmp.
15854 * config/arm/t-bpabi: New file.
15855 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
15856 (TARGET_LIB_INT_CMP_BIASED): Likewise.
6f4a43e0 15857
fba73eb1
DE
158582004-08-10 David Edelsohn <edelsohn@gnu.org>
15859
15860 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
15861 * config/rs6000/rs6000.md (clrmemsi): New pattern.
15862 * config/rs6000/rs6000.c (expand_block_clear): New function.
15863 (expand_block_move): Convert alignment to bits. Use SImode and
15864 HImode for unaligned addresses if not STRICT_ALIGNMENT.
15865
158662004-08-10 Caroline Tice <ctice@apple.com>
c295317d
CT
15867
15868 * varasm.c (unlikely_section_label): New global variable.
15869 (unlikely_text_section_name): New global variable.
15870 (text_section): Remove alignment statement.
6f4a43e0 15871 (unlikely_text_section): Remove alignment statement; use
c295317d
CT
15872 unlikely_section_label rather than hard-coded string.
15873 (assemble_start_function): Initialize unlikely_section_label and
15874 unlikely_text_section_name; make sure cold section is properly
15875 aligned at start of function; output unlikely_section_label if
15876 appropriate.
15877
68f9c5e2
UW
158782004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
15879
15880 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
15881 * config/s390/s390.c (s390_canonicalize_comparison): New function.
15882 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
15883 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
15884 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
15885 ("*tmqi_mem"): Remove SUBREG from pattern.
15886 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
15887 ("*andsi3_cconly"): Likewise.
6f4a43e0 15888
22116d84
L
158892004-08-10 H.J. Lu <hongjiu.lu@intel.com>
15890
15891 PR target/16909
15892 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
15893
c75095b2
JJ
158942004-08-10 Janis Johnson <janis187@us.ibm.com>
15895
15896 * doc/sourcebuild.texi (compat testing): Document available test
15897 framework commands. Use the preferred spelling of DejaGnu.
15898
98975653
DB
158992004-08-10 Daniel Berlin <dberlin@dberlin.org>
15900
15901 * lambda.h: Add matrix type, and prototypes for remainder of
15902 matrix and vector functions.
15903 (lambda_vector_mult_const): New function.
15904 (lambda_vector_negate): Ditto.
15905 (lambda_vector_add): Ditto.
15906 (lambda_vector_add_mc): Ditto.
15907 (lambda_vector_copy): Ditto.
15908 (lambda_vector_zerop): Ditto.
15909 (lambda_vector_equal): Ditto.
15910 (lambda_vector_min_nz): Ditto.
15911 (lambda_vector_first_nz): Ditto.
15912 (lambda_vector_matrix_mult): Ditto.
15913 * lambda-mat.c: New file.
15914 * Makefile.in (lambda-mat.o): New.
15915
68b9f53b
AM
159162004-08-10 Andrew MacLeod <amacleod@redhat.com>
15917
15918 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
15919 after linking stmt into the program.
15920 (bsi_remove): Don't call modify_stmt.
6f4a43e0 15921 * tree-complex.c (update_complex_assignment,
68b9f53b 15922 expand_complex_comparison): Call modify_stmt after changing the stmt.
6f4a43e0 15923 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
68b9f53b
AM
15924 removing the stmt.
15925 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
15926 the stmt, and only if needed.
15927 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
15928 expression.
15929 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
15930 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
15931 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
6f4a43e0 15932 (eliminate_redundant_computations): Don't pass an annotation. Call
68b9f53b
AM
15933 modify_stmt rather than setting the annotation directly.
15934 (record_equivalences_from_stmt): Remove unused local 'j'.
15935 (cprop_operand): Take a stmt rather than an annotation as a parameter.
15936 Call modify_stmt.
15937 (cprop_into_stmt): Pass stmt rather than annotation.
15938 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
6f4a43e0 15939 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
68b9f53b
AM
15940 modify_stmt.
15941 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
15942
01c98570
JM
159432004-08-10 Jason Merrill <jason@redhat.com>
15944
6c9c4526 15945 PR middle-end/16948
01c98570
JM
15946 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
15947 the RESULT_DECL.
15948
b2ddaebb
GK
159492004-08-10 Geoffrey Keating <geoffk@apple.com>
15950
15951 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
15952 hash function.
15953
23657388
RS
159542004-08-10 Roger Sayle <roger@eyesopen.com>
15955
15956 * config/mips/mips.md: New reciprocal square root patterns that
15957 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
15958
c9ca9b88
PB
159592004-08-10 Paul Brook <paul@codesourcery.com>
15960
15961 * config/arm/arm-protos.h (arm_set_return_address,
15962 thumb_set_return_address): Add prototypes.
15963 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
15964 * config/arm/arm.c (arm_compute_func_type,
15965 use_return_insn, arm_compute_save_reg0_reg12_mask,
15966 arm_compute_save_reg_mask, arm_output_function_prologue,
15967 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
15968 current_function_calls_eh_return.
15969 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
15970 old eh code.
15971 (arm_set_return_address, thumb_set_return_address): New functions.
15972 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
15973 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
15974 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
15975 (epilogue): Use the stackadj register.
15976 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
15977
45d78e7f
JJ
159782004-08-10 Jakub Jelinek <jakub@redhat.com>
15979
15980 PR target/3144
15981 * expr.c (move_by_pieces_ninsns): Add max_size argument.
15982 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
15983 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
15984 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
15985 but using MOVE_RATIO.
15986 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
15987 (can_store_by_pieces): Change max_size type to unsigned int.
15988 (store_by_pieces_1): Likewise. Pass max_size to
15989 move_by_pieces_ninsns.
15990 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
15991 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
15992 to move_by_pieces_ninsns.
15993 (STORE_BY_PIECES_P): Define.
15994 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
15995 to move_by_pieces_ninsns.
15996 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
15997
15998 * config/i386/i386.h (CLEAR_RATIO): Define.
15999
25f3e06c
PB
160002004-08-09 Paolo Bonzini <bonzini@gnu.org>
16001
16002 * expr.c (expand_expr_real_1): Add back code that was not dead.
16003
6a3203c8
AP
160042004-08-09 Andrew Pinski <apinski@apple.com>
16005
16006 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
16007 which is found to be compatible before returning the aliasing set.
16008
b9bfca81
DJ
160092004-08-09 Daniel Jacobowitz <dan@debian.org>
16010
16011 * ggc-zone.c (struct alloc_zone): Add statistics counters.
16012 (always_collect): New flag.
16013 (ggc_alloc_zone_1): Update statistics support. Don't include
16014 overhead in allocated counter.
16015 (sweep_pages): Update allocated counter for large pages. Don'y
16016 include overhead.
16017 (ggc_collect_1): Always collect.
16018 (ggc_collect): Honor always_collect flag. Sum all zones to decide
16019 whether to collect.
16020 (SCALE, LABEL): New macros.
16021 (ggc_print_statistics): Add statistics support.
16022
fdded401
RS
160232004-08-09 Roger Sayle <roger@eyesopen.com>
16024
16025 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
16026 (init_expmed): Fix potential overrun problem with "all.reg".
16027 (expand_sdiv2_pow2): Add an alternate implementation for signed
16028 division, if the target provides a suitable conditional move insn.
16029
9d8646d7
PB
160302004-08-09 Paul Brook <paul@codesourcery.com>
16031 Richard Henderson <rth@redhat.com>
16032
16033 * unwind-dw2.c (uw_install_context_1): Update target saved stack
16034 pointer.
16035
d37e6b50
GK
160362004-08-09 Geoffrey Keating <geoffk@apple.com>
16037
16038 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
16039 Check DATA limit only if there's no AS limit. Ignore insanely
16040 low DATA limits.
16041 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
16042 but take care that the AS limit isn't overrun.
16043 * doc/invoke.texi: Update documentation of min-heapsize parameter.
16044
56b043c8
JL
160452004-08-09 Jeff Law <law@redhat.com>
16046
16047 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
16048 (tree-ssa-threadupdate.o): Add dependencies.
16049 * tree-ssa-threadupdate.c: New file.
16050 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
16051 (rewrite_vars_out_of_ssa): Remove prototype.
16052 (cleanup_tree_cfg): Returns a bool.
16053 * tree.h (thread_through_all_blocks): Prototype.
16054 * tree-outof-ssa.c (SSANORM_*): Move into here.
16055 (remove_ssa_form): Now static.
16056 (rewrite_vars_out_of_ssa): Kill.
16057 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
16058 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
16059 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
16060 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
16061 anything was changed.
16062 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
16063 from the PHI's annotation rather than the edge associated with
16064 the new argument.
16065 * tree-ssa-dom.c (redirection_edges): Kill.
16066 (redirect_edges_and_update_ssa_graph): Kill.
16067 (tree_ssa_dominator_optimize): Do not reset forwardable flag
16068 for blocks anymore. Do not initialize redirection_edges.
16069 Call thread_through_all_blocks. Simplify code for cleanup
16070 of the CFG and iterating. No longer call cleanup_tree_cfg
16071 outside the iteration loop.
16072 (thread_across_edge): No longer mess with forwardable blocks.
16073
9b305d55
ZW
160742004-08-09 Zack Weinberg <zack@codesourcery.com>
16075
16076 * explow.c (memory_address): Use memory_address_p.
16077 * recog.c (general_operand): Likewise.
16078 * regrename.c: No need to define REG_OK_STRICT.
16079
27fb79ad
SB
160802004-08-09 Steven Bosscher <stevenb@suse.de>
16081
16082 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
16083 New timers.
16084 * gcse.c: Include timevar.h.
16085 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
16086 and global_copy_prop_count.
16087 (local_const_prop_count, local_copy_prop_count): New static globals.
16088 (gcse_main): Set the right timevar for each pass.
16089 (cprop_jump): Increment global_const_prop_count when a constant is
16090 propagated. Add "GLOBAL" to dump output.
16091 (cprop_insn): Increment global_const_prop_count when a constant is
16092 propagated, or global_copy_prop_count when a copy is propagated.
16093 (do_local_cprop): Likewise for local_const_prop_count and
16094 local_copy_prop_count.
16095 (one_cprop_pass): Initialize const/cprop counters to zero.
16096 Print out results of local and global const/cprop separately.
16097 (bypass_block): Break over-length line.
702d4b73
SB
16098 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
16099 for bb-reorder.o and tracer.o.
27fb79ad 16100
7efcb746
PB
161012004-08-09 Paolo Bonzini <bonzini@gnu.org>
16102
16103 * Makefile.in (GTFILES): Remove stmt.c
16104 (stmt.o): Do not depend on gt-stmt.h.
16105 * emit-rtl.c (emit_line_note): Do not call
16106 set_file_and_line_for_stmt.
16107 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
16108 do everything.
16109 * function.c (free_after_parsing): Do not free STMT field.
16110 (allocate_struct_function): Do not call init_stmt_for_function.
16111 (assign_stack_temp_for_type): Do not accept values of keep
16112 other than 0 or 1.
16113 (init_temp_slots): Do not initialize removed variables.
16114 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
16115 and X_VAR_TEMP_SLOT_LEVEL fields.
16116 * rtl.h (set_file_and_line_for_stmt): Remove.
16117 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
16118 struct stmt_status, cond_stack, case_stack, nesting_stack,
16119 nesting_depth, emit_locus, set_file_and_line_for_stmt,
16120 same_case_target_p, init_stmt_for_function, emit_nop,
16121 expand_start_cond, expand_start_elseif, expand_start_else,
16122 expand_elseif, expand_end_cond): Remove.
16123 (preserve_subexpressions_p): Remove references to CFUN->STMT.
16124 (expand_start_case, expand_end_case_type): Remove, merge into...
16125 (expand_case): ... this one, including other bits from
16126 expand_expr_real_1. Inline same_case_target_p. Turn members
16127 of CASE_STACK into local variables.
16128 (emit_case_bit_tests): Inline same_case_target_p.
16129 (add_case_node): Add HEAD argument, return new head of the list,
16130 do not handle default label here.
16131 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
16132 expand_start_elseif, current_nesting_level, expand_start_case,
16133 expand_end_case_type, expand_end_case, add_case_node,
16134 init_stmt_for_function, expand_elseif): Remove prototypes.
16135 (expand_case): Add prototype.
16136
c4d70ce3
PB
161372004-08-09 Paolo Bonzini <bonzini@gnu.org>
16138
16139 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
16140
161412004-08-09 Paolo Bonzini <bonzini@gnu.org>
e5bacf32
PB
16142
16143 * expr.c (var_rtx): Remove.
16144 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
16145 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
16146 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
16147 Abort.
16148 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
16149 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
16150 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
16151
d72372e4
MH
161522004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
16153 Ayal Zaks <zaks@il.ibm.com>
16154
16155 * common.opt (freschedule-modulo-scheduled-loops): New flag.
16156 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
16157 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
16158 when -freschedule-modulo-scheduled-loops flag is not specified.
16159 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
16160 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
16161 More accurate placing of insn in row of partial schedule.
16162 (ps_insn_find_column): New function.
16163 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
16164 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
16165 (schedule_region): Use sched_is_disabled_for_current_region_p.
16166 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
16167
0737fbff
L
161682004-08-07 H.J. Lu <hongjiu.lu@intel.com>
16169
16170 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
16171 change.
16172
11c4576f
L
161732004-08-07 H.J. Lu <hongjiu.lu@intel.com>
16174
16175 * config/i386/i386.c (ix86_expand_clrmem): Properly call
16176 gen_strset for 64bit target.
16177
34def210
OH
161782004-08-07 Olivier Hainque <hainque@act-europe.fr>
16179
16180 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
16181
5201931e
JM
161822004-08-07 Jason Merrill <jason@redhat.com>
16183
cc77ae10
JM
16184 Make return in memory explicit.
16185 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
16186 (assign_parm_find_data_types): Remove code for old front end
16187 invisible reference handling.
16188 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
16189 (expand_function_end): Likewise.
16190 * gimplify.c (gimplify_return_expr): Handle a dereferenced
16191 RESULT_DECL.
16192 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
16193 (declare_return_variable): Handle DECL_BY_REFERENCE.
16194 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
16195 (cp_genericize_r): Use convert_from_reference.
16196 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
16197 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
16198
5201931e
JM
16199 * c-common.c (c_warn_unused_result): Check TREE_USED before
16200 warning about a CALL_EXPR with an unused value.
16201
2ed9e527
MM
162022004-08-06 Mark Mitchell <mark@codesourcery.com>
16203
16204 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
16205 to the compiler. Use -fshort-wchar by default.
16206
12183e0f
PH
162072004-08-06 Pat Haugen <pthaugen@us.ibm.com>
16208
16209 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
16210 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
16211 threshhold.
16212 * doc/invoke.texi (param): Document min-crossjump-insns.
16213
eaac4679
RS
162142004-08-06 Richard Sandiford <rsandifo@redhat.com>
16215
16216 PR c/13282
16217 * c.opt (Wmissing-field-initializers): New option.
16218 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
16219 * c-typeck.c (pop_init_level): Guard the missing field warning with
16220 warn_missing_field_initializers rather than extra_warnings.
16221 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
16222 some of the explanation from...
16223 (-Wextra): ...here. Say that the missing field warning can be
16224 seperately controlled by -Wmissing-field-initializers.
16225
caad9f81
PB
162262004-08-06 Paolo Bonzini <bonzini@gnu.org>
16227
16228 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
16229 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
16230 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
16231 * tree.def (ENTRY_VALUE_EXPR): Remove.
16232
6b32b628
JJ
162332004-08-06 Jakub Jelinek <jakub@redhat.com>
16234
16235 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
16236 the places where it is actually needed. Don't use repz; stosb
16237 for -Os with sufficiently small constant sizes.
16238 For sufficiently small repz; stos{l,q} repeat counts use a sequence
16239 of stos{l,q} instructions instead.
16240
6797f908
ZD
162412004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16242
16243 PR tree-optimization/16807
16244 * loop-iv.c (dump_iv_info): Dump invariants correctly.
16245 (iv_subreg, iv_extend): Express value of invariant purely in
16246 base field.
16247
866cf037
MM
162482004-08-06 Mark Mitchell <mark@codesourcery.com>
16249
16250 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
16251 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
16252
9652c531 162532004-08-06 Roman Zippel <zippel@linux-m68k.org>
9b305d55 16254
27fb79ad
SB
16255 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
16256 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
16257 pre_dec_operand.
16258 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
16259 pattern until reload is finished to allow better code generation
16260 and split them completely into separate instrunctions.
16261 (*andsi3_split): New pattern.
9652c531 16262
b2ca3702
MM
162632004-08-05 Mark Mitchell <mark@codesourcery.com>
16264
16265 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
16266 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
16267 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
16268 * tree.h (handle_dll_attribute): Declare. Test
16269 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
16270 * c-common.h (c_determine_visibility): Declare.
16271 * c-common.c (c_determine_visibility): New function.
16272 * c-decl.c (finish_decl): Use it.
16273 (finish_function): Likewise.
16274 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
16275 zero, by default. Use #if, not #ifdef, to test it.
16276 * config/arm/arm.c (arm_attribute_table): Use
16277 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
16278 #if.
16279 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
16280 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
16281 to 1.
16282 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
16283 * config/i386/i386.c (ix86_attribute_table): Use
16284 handle_dll_attribute for dllimport/dllexport. Test
16285 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
16286 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
16287 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
16288 it to 1.
16289 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
16290 with #if.
16291 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
16292 it to 1.
16293 * doc/extend.texi (dllexport): Clarify and correct documentation.
16294 (dllimport): Likewise.
16295 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
16296 handle_dll_attribute.
9b305d55 16297
c913f08a
ZD
162982004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16299
16300 * tree-ssa-loop-manip.c: New file.
16301 * Makefile.in (tree-ssa-loop-manip.o): Add.
16302 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
16303 Declare.
16304 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
16305 form.
16306 (tree_ssa_loop_done): Verify loop closed ssa form.
16307 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
16308
d4482715
JDA
163092004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16310
16311 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
16312 pa_asm_output_aligned_local): New functions.
16313 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
16314 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
16315 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
16316 pa_asm_output_aligned_common.
16317 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
16318 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
16319 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
16320 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
16321 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
16322 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
16323 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
16324 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
16325 common data.
16326
21149a79
AP
163272004-08-05 Andrew Pinski <apinski@apple.com>
16328
16329 * objc/objc-act.c (build_objc_string_object): Mark the address
16330 expression as constant.
16331
d5861a7a
DE
163322004-08-05 David Edelsohn <edelsohn@gnu.org>
16333
16334 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
16335 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
16336 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
16337
0a2b72a6
JM
163382004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
16339
16340 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
16341 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
16342 out, and associated obsolete comments.
16343
ca7a3bd7
NS
163442004-08-05 Nathan Sidwell <nathan@codesourcery.com>
16345
16346 * tree.h (force_fit_type): Return a tree, take three flags.
16347 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
16348 TREE_CONSTANT_OVERFLOW here.
16349 (int_const_binop, const_binop): Adjust.
16350 (size_int_type): Do sign extension here.
16351 (fold_convert_const, optimize_bit_field_compare,
16352 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
16353 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
16354 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
16355
d36837f4
ZD
163562004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16357
16358 PR tree-optimization/16864
16359 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
16360 for ssa names without default_def.
16361
ea5f7a19
RS
163622004-08-05 Richard Sandiford <rsandifo@redhat.com>
16363
16364 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
16365 frame pointer, restore eax with an ebp-relative address.
16366
0e6df31e
GK
163672004-08-04 Geoffrey Keating <geoffk@apple.com>
16368
16369 PR 14516
16370 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
16371 * c-common.h (make_rtl_for_local_static): Delete.
16372 * c-decl.c (shadow_tag_warned): Clean up comment.
16373 (finish_decl): Clean up spacing. Use set_user_assembler_name when
16374 appropriate. Don't pass asmspec to rest_of_decl_compilation.
16375 * c-semantics.c (make_rtl_for_local_static): Delete.
16376 * expr.c (init_block_move_fn): Use set_user_assembler_name.
16377 (init_block_clear_fn): Likewise.
16378 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
16379 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
16380 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
16381 * tree.h (make_decl_rtl): Remove second parameter.
16382 (set_user_assembler_name): New.
16383 * varasm.c (set_user_assembler_name): New.
16384 (make_decl_rtl): Remove second parameter. Update callers in many
16385 files.
16386
4f587cb0
AN
163872004-08-05 Adam Nemet <anemet@lnxw.com>
16388
16389 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
16390 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
16391 to LynxOS 4.0.
16392 * gthr-lynx.h: New file.
16393 * config/lynx-ng.h: Remove file.
16394 * config/lynx.h: Update to LynxOS 4.0.
16395 * config/t-lynx: New file.
16396 * config/i386/lynx-ng.h: Remove file.
16397 * config/i386/lynx.h: Update to LynxOS 4.0.
16398 * config/rs6000/lynxbase.h: Remove file.
16399 * config/rs6000/lynx.h: Update to LynxOS 4.0.
16400 * config/rs6000/t-lynx: New file.
16401 * doc/install.texi (Options specification): Remove reference to
16402 LynxOS from systems where --with-gnu-as makes a difference.
16403
85291069
JM
164042004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
16405
16406 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
16407 __UINTMAX_TYPE__.
16408 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
16409 __INTMAX_MAX__.
16410 (c_cpp_builtins): Call it.
16411 * doc/cpp.texi: Update.
16412
30a555d9
DE
164132004-08-04 David Edelsohn <edelsohn@gnu.org>
16414
16415 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
16416 cost.
16417
878f99d2
JH
164182004-08-04 Jan Hubicka <jh@suse.cz>
16419
16420 * basic-block.h (profile_staus): New global variable.
16421 * cfg.c (profile_status): Declare.
16422 (check_bb_profile): Break out from ....; use profile_status
16423 (dump_flow_info): ... here.
16424 * cfgbuild.c (find_basic_blocks): Set profile_status.
16425 * cfgexpand.c (tree_expand_cfg): Likewise.
16426 * predict.c (estimate_probability): Likewise.
16427 * profile.c (branch_prob): Likewise.
16428 * tree-cfg.c (build_tree_cfg): Likewise.
16429 (dump_function_to_file): Use check_bb_profile.
16430 * tree-pretty-print (dump_bb_header): Likewise.
16431 * tree-profile.c (do_tree_profiling): Cleanup.
16432
7e7ec48e
ZW
164332004-08-04 Zack Weinberg <zack@codesourcery.com>
16434
16435 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
16436 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
16437 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
16438 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
16439 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
16440 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
16441 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
16442 (ggc-none.o, errors.o): Move rule to generators section;
16443 correct dependencies.
16444 (min-insn-modes.o): Move rule to generators section; remove
16445 unnecessary explicit command; correct dependencies.
16446 (print-rtl.o, print-rtl1.o): Correct dependencies.
16447 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
16448 (mostlyclean): Update.
16449
16450 * errors.c: Include bconfig.h not config.h. Correct comment.
16451 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
16452 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
16453 * print-rtl.c: Don't include tm_p.h.
16454
16455 * rtl.h: Move forward-decl of struct function down where it's
16456 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
16457 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
16458
b0382c67
ZD
164592004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16460 Jeff Law <law@redhat.com>
16461
16462 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
16463 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
16464 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
16465 manipulate the duplicated ssa names.
16466 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
16467 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
16468 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
16469 New functions.
16470 (release_ssa_name): Do not release ssa names that may have multiple
16471 definitions.
16472 * tree.h (release_ssa_name_force, mark_for_rewrite,
16473 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
16474 marked_ssa_names): Declare.
16475 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
16476 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
16477 Update call to rewrite_ssa_into_ssa.
16478
63c5b495
MM
164792004-08-04 Mark Mitchell <mark@codesourcery.com>
16480
16481 * defaults.h (TARGET_DECLSPEC): New macro.
16482 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
16483 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
b2ca3702 16484 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
63c5b495
MM
16485 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
16486 __declspec support.
16487 (TARGET_DECLSPEC): Define.
16488 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
16489 __declspec support.
16490 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
16491 __declspec support.
16492 (TARGET_DECLSPEC): Define.
16493 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
16494 __declspec support.
16495 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
16496 support.
16497 * doc/tm.texi (TARGET_DECLSPEC): Document.
16498
16499 * doc/extend.texi: Fix typo in comment.
16500
44d10c10
PB
165012004-08-04 Paul Brook <paul@codesourcery.com>
16502
16503 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
16504 (TARGET_CXX): Use it.
16505 * target.h (struct gcc_target): Add cdtor_returns_this.
16506 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
16507 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
16508 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
16509
5e9754af
NS
165102004-08-03 Nathan Sidwell <nathan@codesourcery.com>
16511
16512 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
16513 low/high pair. Do range checking directly.
16514 (interpret_integer): Adjust.
16515
2acc29bd
NC
165162004-08-04 Nick Clifton <nickc@redhat.com>
16517
16518 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
16519 GCC ABI.
16520 * doc/invoke.texi: Document this new switch and also the -mrenesas
16521 switch.
16522
2496942a
NS
165232004-08-04 Nathan Sidwell <nathan@codesourcery.com>
16524
16525 * cfglayout.c (insn_locators_initialize): Update the current
16526 location before initializing a location.
16527
7e2e8179
ZW
165282004-08-03 Zack Weinberg <zack@codesourcery.com>
16529
403f8503
ZW
16530 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
16531 (dbxout_function_end): Return after emitting the "Lscope" symbol
16532 under the same conditions that this function formerly wasn't called.
16533 Add explanatory comments.
16534
bcc7f708 16535 PR 14860
ca043393
ZW
16536 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
16537 on the new decl.
16538
bcc7f708 16539 PR 13956
7e2e8179
ZW
16540 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
16541 functions, broken out of dbxout_block.
16542 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
16543 stabs too, if it contains symbols. Use the begin_label and
16544 the Lscope label (emitted by dbxout_function_end) for the
16545 range of this block.
16546
5d75ba94
NN
165472004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
16548
16549 * doc/install.texi: Update autoconf version requirements.
16550
2e4e72b1
ZW
165512004-08-03 Zack Weinberg <zack@codesourcery.com>
16552
16553 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
16554 * recog.c (general_operand, immediate_operand, nonmemory_operand)
16555 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
16556 * regclass.c (record_reg_classes): Likewise.
16557 * reload.c (find_reloads): Likewise.
16558 * reload1.c (reload): Likewise.
16559
f9942f4e
ZW
165602004-08-03 Zack Weinberg <zack@codesourcery.com>
16561
16562 * gensupport.c (init_md_reader_args_cb): Renamed from
16563 init_md_reader_args. Add third option, callback function for
16564 parsing program-specific options. Add diagnosis of incorrect
16565 number of input files.
16566 (init_md_reader): Fold into init_md_reader_args_cb.
16567 (init_md_reader_args): Now a thin wrapper around
16568 init_md_reader_args_cb.
16569 * gensupport.h: Update prototypes.
16570
16571 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
16572 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
16573 * genrecog.c: No need to diagnose lack of an input file;
16574 init_md_reader_args will handle it.
16575 * genconditions.c: Likewise, and use init_md_reader_args.
16576 * genconstants.c: Likewise, and no need to call read_md_rtx.
16577
9cbe78fb
JM
165782004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
16579
16580 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
16581 declarations.
16582
3e558e80
MS
165832004-08-03 Mike Stump <mrs@apple.com>
16584
16585 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
16586 for frameworks.
16587 * doc/invoke.texi (Darwin Options): Update to reflect above.
16588
a0fac73d
RS
165892004-08-03 Roger Sayle <roger@eyesopen.com>
16590
16591 PR middle-end/16790
16592 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
16593 truncations, not just global truncations.
16594
cddbddb7
AP
165952004-08-03 Andrew Pinski <apinski@apple.com>
16596
16597 PR bootstrap/16865
16598 * loop-iv.c (simplify_using_assignment): Initialize lhs.
16599
bebf829d
PB
166002004-08-03 Paul Brook <paul@codesourcery.com>
16601
16602 * gcc/doc/install.texi: Document MPFR requirement.
16603
cddbddb7 166042004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
3b0727a0 16605
f9942f4e
ZW
16606 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
16607 and mmap() explicitly instead of relying on preset autoconf cache
3b0727a0
MR
16608 variables.
16609 * configure: Regenerate.
16610
f6bc51cb
L
166112004-08-03 H.J. Lu <hongjiu.lu@intel.com>
16612
16613 PR target/16570
16614 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
16615 to tmake_file.
16616 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
16617 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
16618 to tmake_file.
16619
16620 * config/i386/t-gmm_malloc: New file.
16621 * config/i386/t-pmm_malloc: Likewise.
f9942f4e 16622
f6bc51cb
L
16623 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
16624
166252004-08-03 H.J. Lu <hongjiu.lu@intel.com>
0ddcd94f 16626