re PR rtl-optimization/17825 (ICE in reg_bitfield_target_p)
[gcc.git] / gcc / ChangeLog
1 2004-11-27 Jakub Jelinek <jakub@redhat.com>
2
3 PR rtl-optimization/17825
4 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
5 or not.
6
7 2004-11-27 Alan Modra <amodra@bigpond.net.au>
8
9 PR target/12769
10 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
11 from rs6000_default_long_calls for libcalls.
12
13 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14
15 * expmed.c (extract_bit_field): When extracting from non-integer mode,
16 force a SUBREG into a register because we may be taking a further
17 SUBREG of it.
18
19 2004-11-27 Di-an Jan <dianj@freeshell.org>
20
21 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
22
23 2004-11-26 Robert Millan <robertmh@gnu.org>
24
25 Changes for k*bsd-gnu support.
26 * config/i386/linux.h: Define REG_NAME to allow overriding of
27 register names in sc structure.
28 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
29 of sc->reg.
30 * config.gcc: Detect x86_64-k*bsd-gnu systems.
31
32 2004-11-26 Jeff Law <law@redhat.com>
33
34 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
35 retrieve annotations or pointer info before it's necessary.
36 Reorder tests for early continue of the loop. Manually CSE
37 SSA_NAME_VAR.
38
39 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
40
41 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
42 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
43 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
44 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
45 to a fixed reg if the source is the Return Address register.
46 Implement new Rule 15.
47 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
48 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
49 sparc_dwarf_handle_frame_unspec.
50 (gen_save_register_window): New function.
51 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
52 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
53 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
54 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
55 (sparc_asm_function_prologue): Do not emit call frame debugging info.
56 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
57 (sparc_expand_epilogue): Likewise.
58 (sparc_dwarf_handle_frame_unspec): New function.
59 * config/sparc/sparc.md (save_register_window): Remove.
60 (save_register_windowdi): Rewrite modelled on the callframe debug info.
61 (save_register_windowsi): Likewise.
62
63 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
64
65 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
66 BB_HEAD, not BLOCK_HEAD.
67
68 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
69
70 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
71 scratch insns that set a register live at the join point.
72
73 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
74
75 * cse.c, tree-ssa-operands.c: Fix comment typos.
76
77 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
78
79 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
80
81 PR target/18510
82 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
83
84 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
85
86 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
87 check that tests if all edges go to the same destination.
88
89 * bitmap.c (bitmap_find_bit): Speed up by traversing from
90 head->first if that seems profitable.
91
92 2004-11-25 Jeff Law <law@redhat.com>
93
94 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
95 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
96 (pass_loop_done): Use TV_TREE_LOOP_FINI.
97
98 2004-11-26 Alan Modra <amodra@bigpond.net.au>
99
100 PR rtl-optimization/16356
101 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
102 separate output register and one less jump. Enable for powerpc64.
103 (floatdisf2): Adjust for above.
104
105 2004-11-25 Bob Wilson <bob.wilson@acm.org>
106
107 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
108 (GCC_DRIVER_HOST_INITIALIZATION): Define.
109
110 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
111
112 PR middle-end/17957
113 * tree-complex.c (vector_inner_type): New variable moved from
114 build_word_mode_vector_type.
115 (vector_last_type): Likewise.
116 (vector_last_nunits): Likewise.
117 (build_word_mode_vector_type): Use the new variables.
118 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
119 (GTFILES): Add tree-complex.c.
120 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
121
122 2004-11-25 Bob Wilson <bob.wilson@acm.org>
123
124 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
125 __XTENSA_WINDOWED_ABI__.
126
127 2004-11-25 Richard Henderson <rth@redhat.com>
128
129 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
130 args_size adjustments for calls even with cfa as stack pointer.
131 Search calls for stack adjustments after the insn is issued.
132 (dwarf2out_frame_debug): Add after_p argument; pass it on.
133 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
134 * final.c (final_start_function, final_scan_insn): Likewise.
135
136 2004-11-25 Richard Henderson <rth@redhat.com>
137
138 PR c++/6764
139 * reload1.c (set_initial_eh_label_offset): New.
140 (set_initial_label_offsets): Use it.
141
142 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
143
144 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
145 before calling life_analysis and release them after.
146
147 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
148
149 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
150 duplicate code.
151
152 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
153
154 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
155 BITMAP_OBSTACK_ALLOC.
156 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
157
158 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
159
160 parts of PR rtl-opt/18463, rtl-opt/17647
161 * cse.c (canon_for_address): New function.
162 (find_best_addr): Call canon_for_address before getting the
163 address's cost when checking if we should take that address.
164
165 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
166
167 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
168 "tree *" as the first argument.
169 * tree-flow.h: Update the prototype of add_phi_arg.
170 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
171 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
172 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
173 tree-vectorizer.c: Update all call sites of add_phi_arg.
174
175 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
176
177 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
178 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
179 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
180 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
181
182 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
183
184 PR tree-optimization/18587
185 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
186 call clobbered caches as invalid.
187 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
188 indicating whether the call clobbered operand cache is valid.
189 (ssa_ro_call_cache_valid): New. Flag indicating whether the
190 pure/const call operand cache is valid.
191 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
192 list of operands for cached call virtual operands.
193 (clobbered_aliased_loads, clobbered_aliased_stores,
194 ro_call_aliased_load): New. flags caching whether alias bits are
195 to be set in call stmt's.
196 (fini_ssa_operands): Remove call operand caches if present.
197 (get_expr_operands, get_asm_expr_operands,
198 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
199 (get_call_expr_operands): Add call clobbered variables first.
200 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
201 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
202 if it is valid, otherise fill the cache.
203 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
204 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
205 in_v_may_def_list bits.
206 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
207 in_list bits for the v_may_def elements and empty the operand
208 build array
209 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
210 VUSES by checking the in_v_may_def_list bit.
211 (append_v_may_def, append_vuse): Use the in_list bit rather than
212 scanning the array for duplicates.
213
214 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
215
216 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
217 displacements are not short.
218
219 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
220
221 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
222 to load addresses.
223
224 2004-11-25 Mark Mitchell <mark@codesourcery.com>
225
226 PR c++/18001
227 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
228 (lvalue_or_else): Declare.
229 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
230 * c-typeck.c (lvalue_use): Remove.
231 (lvalue_or_else): Remove.
232
233 PR c++/18556
234 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
235 unemitted variables with static storage duration.
236
237 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
238
239 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
240 message with \n.
241
242 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
243
244 * config/rs6000/altivec.md (VIshort): New mode macro.
245 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
246 with ...
247 (altivec_vaddu<VI_char>s): ... this.
248 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
249 with ...
250 (altivec_vadds<VI_char>s): ... this.
251 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
252 with ...
253 (altivec_vsubu<VI_char>s): ... this.
254 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
255 with ...
256 (altivec_vsubs<VI_char>s): ... this.
257 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
258 with ...
259 (altivec_vavgu<VI_char>): ... this.
260 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
261 with ...
262 (altivec_vavgs<VI_char>): ... this.
263 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
264 (altivec_vmsumu<VI_char>m): ... this.
265 (altivec_vmsummbm, altivec_vmsummhm): Replace
266 with ...
267 (altivec_vmsumm<VI_char>m): ... this.
268 (altivec_vandc): Remove.
269 (*andc<mode>3): Renamed to ...
270 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
271 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
272 with ...
273 (altivec_vrl<VI_char>): ... this.
274 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
275 with ...
276 (altivec_vsl<VI_char>): ... this.
277 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
278 with ...
279 (altivec_vsr<VI_char>): ... this.
280 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
281 with ...
282 (altivec_vsra<VI_char>): ... this.
283 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
284 (altivec_vsum4s<VI_char>s): ... this.
285 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
286 with ...
287 (altivec_vperm_<mode>): ... this.
288 (altivec_vsel_4sf): Rename to ...
289 (altivec_vsel_v4sf): ... here.
290 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
291 with ...
292 (altivec_vsel_<mode>): ... this.
293 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
294 altivec_vsldoi_16qi): Rename to ...
295 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
296 altivec_vsldoi_v16qi): ... here.
297 (altivec_vsldoi_4sf): Rename to ...
298 (altivec_vsldoi_v4sf): ... here.
299 (altivec_predicate_v4si, altivec_predicate_v8hi,
300 altivec_predicate_v16qi): Replace with ...
301 (altivec_predicate_<mode>): ... this.
302 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
303 with ...
304 (altivec_lve<VI_char>x): ... this.
305 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
306 with ...
307 (altivec_stve<VI_char>x): ... this.
308 (absv16qi2, absv8hi2, absv4si2): Replace
309 with ...
310 (abs<mode>2): ... this.
311 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
312 with ...
313 (altivec_abss_<mode>): ... this.
314 (vec_realign_load_v16qi, vec_realign_load_v8hi,
315 vec_realign_load_v4si): Replace with ...
316 (vec_realign_load_<mode>): ... this.
317 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
318 insn names.
319 (rs6000_expand_ternop_builtin): Likewise.
320
321 2004-11-25 Andrew Haley <aph@redhat.com>
322
323 * gcc.c (process_command): Don't supply -v to linker.
324
325 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
326
327 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
328 instead of `%s' in diagnostic.
329
330 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
331
332 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
333 (FREE_REG_SET): Adjust.
334 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
335 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
336 (BITMAP_ALLOC): ... here.
337 (BITMAP_OBSTACK_FREE): Rename to ...
338 (BITMAP_FREE): Don't check for NULL bitmap here.
339 * tree-ssa-pre.c (value_insert_into_set_bitmap,
340 bitmap_set_new): Use new names.
341
342 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
343 * df.c (df_free): Likewise.
344 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
345 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
346
347 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
348 (ALLOC_REG_SET): ... here.
349 (FREE_REG_SET): Adjust.
350 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
351 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
352 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
353 * cfgrtl.c (rtl_split_block, rtl_split_edge,
354 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
355 * flow.c (update_life_info, calculate_global_regs_live,
356 allocate_bb_life_data, init_propagate_block_info): Adjust.
357 * global.c (build_insn_chain): Adjust.
358 * ifcvt.c (dead_or_predicable): Adjust.
359 * loop-iv.c (simplify_using_initial_values): Adjust.
360 * recog.c (peephole2_optimize): Adjust.
361 * sched-deps.c (init_deps_global): Adjust.
362
363 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
364
365 * config.gcc (avr-*-rtems*): Fix typo.
366
367 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
368
369 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
370
371 2004-11-24 Jeff Law <law@redhat.com>
372
373 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
374 the number of queries to random elements in the ai->written_vars
375 bitmap.
376
377 2004-11-24 Roger Sayle <roger@eyesopen.com>
378
379 * config/i386/i386.c (override_options): Disable x87 fancy math
380 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
381
382 2004-11-24 Roger Sayle <roger@eyesopen.com>
383
384 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
385 system header conflict on AIX 5.2.
386 * configure: Regenerate.
387
388 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
389
390 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
391 instead of calling phi_arg_from_edge.
392
393 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
394 with e->dest_idx.
395
396 2004-11-24 Ben Elliston <bje@au.ibm.com>
397
398 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
399 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
400 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
401 Likewise.
402
403 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
404
405 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
406
407 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
408 type will be remapped.
409
410 2004-11-24 Steven Bosscher <stevenb@suse.de>
411
412 * c-opts.c (c_common_post_options): Don't clear
413 flag_inline_functions.
414 * dojump.c (clear_pending_stack_adjust): Remove check on
415 flag_inline_functions, it's always true.
416 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
417 that can never trigger.
418 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
419 flag_inline_trees, now that flag_inline_functions is never
420 cleared.
421 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
422 flag_inline_functions at optimization levels greater than
423 or equal to 3. This is already done by default.
424
425 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
426
427 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
428 instead to find the PHI argument. Do not take I as an
429 argument.
430 (eliminate_phi): Adjust the call to eliminate_build. Do not
431 take I as an argument.
432 (rewrite_trees): Adjust the call to eliminate_phi.
433
434 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
435
436 * optabs.h (force_expand_binop): Declare.
437 * optabs.c (force_expand_binop): Export.
438 * stmt.c (shift_return_value): Delete.
439 (expand_return): Don't call it.
440 * expr.h (shift_return_value): Declare.
441 * calls.c (shift_returned_value): Delete in favor of...
442 (shift_return_value): ...this new function. Leave the caller to check
443 for non-BLKmode values passed in the msb of a register. Take said mode
444 and a shift direction as argument. Operate on the hard function value,
445 not a pseudo.
446 (expand_call): Adjust accordingly.
447 * function.c (expand_function_start): If a non-BLKmode return value
448 is padded at the last significant end of the return register, use the
449 return value's natural mode for the DECL_RESULT, not the mode of the
450 padded register.
451 (expand_function_end): Shift the same sort of return values left by
452 the appropriate amount.
453
454 2004-11-24 Matt Austern <austern@apple.com>
455
456 * recog.c (recog_memoized_1): Remove.
457 * recog.h (recog_memoized_1): Remove declaration.
458 (recog_memoized): Change from macro to inline function.
459
460 2004-11-24 Devang Patel <dpatel@apple.com>
461
462 PR/18555
463 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
464 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
465
466 2004-11-24 Devang Patel <dpatel@apple.com>
467
468 * gcc.c (process_command): Supply -v to linker.
469
470 2004-11-24 David Edelsohn <edelsohn@gnu.org>
471 Paolo Bonzini <bonzini@gnu.org>
472
473 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
474 vector modes without ALTIVEC_ABI. Use GCC vector instead of
475 synthetic vector.
476 (rs6000_pass_by_reference): Split conditional into pieces. Use
477 GCC vector instead of synthetic vector.
478
479 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
480
481 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
482 thread-local variable is invariant.
483
484 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
485
486 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
487 Handle TYPE_REF_CAN_ALIAS_ALL.
488 (print_declaration): Print array dimensions like dump_generic_node.
489
490 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
491 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
492
493 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
494
495 * bitmap.c (INLINE): Do not define.
496 (bitmap_elem_to_freelist, bitmap_element_free,
497 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
498 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
499
500 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
501
502 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
503 find the index of a PHI argument. Use e->dest_idx instead.
504 Replace hint with index.
505
506 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
507 with indx.
508
509 2004-11-24 Diego Novillo <dnovillo@redhat.com>
510
511 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
512 regarding PT_MALLOC.
513
514 2004-11-24 Joseph Myers <joseph@codesourcery.com>
515
516 * config/i386/i386.c (optimization_options): Use
517 SUBTARGET_OPTIMIZATION_OPTIONS.
518 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
519 (TARGET_SUBTARGET_DEFAULT): Don't include
520 MASK_OMIT_LEAF_FRAME_POINTER.
521
522 2004-11-24 Mark Mitchell <mark@codesourcery.com>
523
524 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
525 Define to false.
526
527 2004-11-24 Joseph Myers <joseph@codesourcery.com>
528
529 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
530 Use amd64 instead of 64.
531
532 2004-11-24 Mark Mitchell <mark@codesourcery.com>
533 Joseph Myers <joseph@codesourcery.com>
534
535 * crtstuff.c (IN_LIBGCC2): Define it.
536 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
537 instead of HAVE_LD_RO_RW_SECTION_MIXING.
538 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
539 * dwarf2out.c (named_section_eh_frame_section): Check
540 EH_TABLES_CAN_BE_READ_ONLY.
541 * except.c (default_exception_section): Likewise.
542 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
543 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
544
545 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
546
547 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
548 index of a PHI argument.
549
550 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
551 find_edge to find the index of a PHI argument.
552
553 2004-11-24 Steven Bosscher <stevenb@suse.de>
554
555 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
556 and LABELED_BLOCK_EXPR.
557 * gimplify.c (gimplify_labeled_block_expr): Remove.
558 (gimplify_exit_block_expr): Remove.
559 (gimplify_expr): Don't call them.
560 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
561 and LABELED_BLOCK_EXPR.
562 (estimate_num_insns_1): Likewise.
563 (walk_tree): Likewise.
564 * tree-pretty-print.c (dump_generic_node): Don't handle
565 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
566 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
567 (LABELED_BLOCK_EXPR): Likewise.
568 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
569 (LABELED_BLOCK_BODY): Likewise.
570 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
571 (EXIT_BLOCK_RETURN): Removed.
572
573 2004-11-24 Steven Bosscher <stevenb@suse.de>
574
575 * cfgrtl.c (rtl_delete_block): Fix comment.
576 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
577 or BLOCK_END insn notes.
578 * jump.c (squeeze_notes): Likewise.
579 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
580 EH_REGION_END notes, we never have them to begin with.
581 * sched-deps.c (sched_analyze_insn): When updating loop notes,
582 verify that we have indeed only recorded loop notes.
583 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
584 Only record loop notes.
585
586 * cfgexpand.c (tree_expand_cfg): Fix comment.
587
588 * passes.c (rest_of_compilation): Don't do a second call to
589 convert_from_eh_region_ranges from here, it's already called
590 from cfgexpand.c.
591 * except.c (resolve_fixup_regions): Remove.
592 (remove_fixup_regions): Remove.
593 (convert_from_eh_region_ranges_1): Remove.
594 (convert_from_eh_region_ranges): Remove the case where EH is
595 not already lowered at the tree level. We always lower there.
596
597 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
598
599 PR c++/16882
600 * tree.c (make_vector_type): Move qualifiers to the vector type,
601 use the inner type's main variant and build a main variant for
602 the vector type if necessary.
603 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
604
605 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
606
607 * target.h (late_rtl_prologue_epilogue): Remove.
608 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
609 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
610 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
611 remaining bits to...
612 (rest_of_handle_flow2): ...here.
613 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
614 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
615
616 2004-11-23 Mark Mitchell <mark@codesourcery.com>
617
618 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
619 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
620 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
621
622 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
623
624 * config/i386/i386.c (override_options): Move
625 SUBTARGET_OVERRIDE_OPTIONS before defaulting
626 flag_omit_frame_pointer.
627
628 2004-11-23 Richard Henderson <rth@redhat.com>
629
630 * rtl.h (validate_subreg): Declare.
631 * emit-rtl.c (validate_subreg): New.
632 (gen_rtx_SUBREG): Use it.
633 * simplify-rtx.c (simplify_subreg): Likewise.
634 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
635 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
636 fallback whenever gen_realpart/gen_imagpart would not be able to
637 create SUBREGs.
638
639 2004-11-23 Richard Henderson <rth@redhat.com>
640
641 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
642 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
643 modes to CONCAT.
644
645 2004-11-23 Diego Novillo <dnovillo@redhat.com>
646
647 PR tree-optimization/18618
648 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
649 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
650 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
651 Update all users.
652 (stmts_to_rescan): Likewise.
653 (const_and_copies_stack): Likewise.
654 (nonzero_vars_stack): Likewise.
655 (vrp_variables_stack): Likewise.
656
657 2004-11-23 Richard Henderson <rth@redhat.com>
658
659 * cse.c (record_jump_cond_subreg): New.
660 (record_jump_cond): Use it instead of gen_lowpart.
661
662 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
663 Joseph Myers <joseph@codesourcery.com>
664
665 * config/sol2-c.c (solaris_register_pragmas): Use
666 c_register_pragma_with_expansion.
667 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
668 * c-pragma.c (c_register_pragma): Update call to
669 cpp_register_pragma.
670 (c_register_pragma_with_expansion): New function.
671 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
672 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
673 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
674 #pragma align.
675 * doc/tm.texi (c_register_pragma_with_expansion,
676 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
677
678 2004-11-23 Richard Henderson <rth@redhat.com>
679
680 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
681 as mode sizes into local temporaries. Unify failure path.
682
683 2004-11-23 Richard Henderson <rth@redhat.com>
684
685 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
686 * caller-save.c (mark_set_regs): Use subreg_regno instead.
687 * final.c (alter_subreg): Likewise.
688 * local-alloc.c (reg_is_born): Likewise.
689
690 2004-11-23 Richard Henderson <rth@redhat.com>
691
692 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
693 instead of using a SUBREG temporary.
694
695 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
696
697 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
698 two checks.
699
700 2004-11-23 Zack Weinberg <zack@codesourcery.com>
701
702 * function.h (struct function): Remove calls_longjmp.
703 (current_function_calls_longjmp): Delete.
704 * tree.h (ECF_LONGJMP): Delete.
705 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
706 (ECF_LIBCALL_BLOCK): Everybody slide down one.
707 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
708 * builtins.c (expand_builtin_longjmp): Don't set
709 current_function_calls_longjmp.
710 * calls.c (special_function_p): Mark longjmp and siglongjmp
711 with ECF_NORETURN, not ECF_LONGJMP.
712 (emit_call_1, expand_call, emit_library_call_value_1):
713 Don't check for ECF_LONGJMP.
714 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
715 (need_fake_edge_p): Likewise.
716
717 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
718 * system.h: Poison NON_SAVING_SETJMP.
719 * function.c (use_register_for_decl)
720 * gcse.c (compute_hash_table_work, compute_store_table)
721 * postreload-gcse.c (record_opr_changes)
722 * reload.c (find_equiv_reg)
723 * reload1.c (reload)
724 * config/i386/i386.c (ix86_can_use_return_insn_p):
725 Remove code conditional on NON_SAVING_SETJMP.
726 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
727
728 * config/i386/sysv3.h: Delete file.
729 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
730
731 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
732
733 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
734 the vectorization factor is greater than the iteration count.
735 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
736 iteration count is known.
737
738 (vect_build_symbol_bound): Removed. Its functionality moved to
739 vect_generate_tmps_on_preheader.
740 (vect_generate_tmps_on_preheader): Moved content of
741 vect_build_symbol_bound here instead of calling it. Changed some
742 variables names.
743
744 (vect_build_loop_niters): We don't expect a new_bb to be generated -
745 use gcc_assert.
746 (vect_gen_niters_for_prolog_loop): Likewise.
747 (vect_gen_niters_for_prolog_loo): Likewise.
748
749 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
750 (slpeel_add_loop_guard): Likewise.
751 (slpeel_tree_peel_loop_to_edge): Likewise.
752 (vect_do_peeling_for_alignment): Likewise.
753
754 (vect_get_first_index): Missing space.
755
756 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
757
758 * config/s390/s390.md ("*iordi3"): Mark commutative.
759 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
760
761 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
762
763 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
764 greater than PHI_ARG_CAPACITY.
765 (reserve_phi_args_for_new_edge): Initialize the new PHI
766 argument to NULL_TREE. Increment PHI_NUM_ARGS.
767 (add_phi_arg): Add a PHI argument to the slot given by
768 E->dest_idx.
769 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
770 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
771 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
772 argument by looking at PHI_ARG_DEF.
773 (verify_phi_args): Check for a missing PHI argument. Remove
774 the check for duplicate PHI arguments.
775 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
776 (phi_arg_d): Remove e.
777
778 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
779 by restricting to the case with two outgoing edges.
780
781 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
782
783 * config/s390/s390.c (s390_backchain_string): Removed.
784 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
785 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
786 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
787 TARGET_KERNEL_BACKCHAIN to reflect the new options.
788 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
789 (TARGET_KERNEL_BACKCHAIN): Removed.
790 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
791 (TARGET_PACKED_STACK): New macro.
792 (TARGET_SWITCHES): New switches added.
793 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
794 removed.
795 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
796 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
797 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
798 the change in target switch semantics.
799 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
800 (TARGET_DEFAULT): MASK_BACKCHAIN added.
801 * doc/invoke.texi: Added documentation for the new/changed options.
802
803 2004-11-23 Uros Bizjak <uros@kss-loka.si>
804
805 PR rtl-optimization/18614
806 * simplify-rtx.c (simplify_binary_operation): Do not
807 simplify inner elements of constant arguments of
808 VEC_CONCAT insn.
809
810 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
811
812 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
813 0 instead of NULL.
814
815 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
816
817 * tree-phinode.c (make_phi_node): Use a new variable,
818 capacity, to receive the return value of ideal_phi_node_len.
819
820 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
821
822 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
823 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
824 __gthread_recursive_mutex_init_function.
825 (__gthread_key_create): Properly cast -1.
826 (__gthread_recursive_mutex_init_function): New function.
827 (__gthread_recursive_mutex_lock): Rewrite.
828 (__gthread_recursive_mutex_trylock): Likewise.
829 (__gthread_recursive_mutex_unlock): Likewise.
830
831 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
832
833 * config/c4x/t-rtems: New.
834 * config.gcc: Reflect having added c4x/t-rtems.
835
836 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
837
838 PR tree-opt/18403
839 PR tree-opt/18505
840 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
841 lang_hooks.types.type_for_size instead of integer_type_node for the
842 type of ptr_update.
843
844 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
845
846 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
847
848 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
849
850 * config/arm/t-rtems: New.
851 * config.gcc: Reflect having added arm/t-rtems.
852
853 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
854
855 * tree-cfg.c (tree_execute_on_growing_pred): New.
856 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
857 * tree-flow.h: Add a prototype for
858 reserve_phi_args_for_new_edge.
859 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
860 (add_phi_arg): Don't resize a PHI array.
861
862 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
863
864 * config.gcc: Add avr-*-rtems*.
865 * config/avr/t-rtems: New.
866 * config/avr/rtems.h: New.
867
868 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
869
870 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
871 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
872 Add comment to function.
873
874 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
875
876 PR pch/14940
877 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
878
879 PR rtl-optimization/14838
880 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
881 note.
882 (get_last_nonnote_insn): Don't assume last insn is a note.
883
884 2004-11-22 Roger Sayle <roger@eyesopen.com>
885
886 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
887 to fold_binary_to_constant.
888 (nondestructive_fold_unary_to_constant): Likewise, rename to
889 fold_unary_to_constant.
890 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
891 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
892 (nondestructive_fold_unary_to_constant): Likewise.
893 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
894 and fold_binary_to_constant.
895 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
896 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
897 and EXEC_UNARY with calls to fold_*nary_to_constant.
898 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
899 (idx_find_step): Replace uses of EXEC_BINARY with calls to
900 fold_binary_to_constant.
901
902 2004-11-22 Nick Clifton <nickc@redhat.com>
903
904 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
905 initialisation of 'e'.
906
907 2004-11-22 Roger Sayle <roger@eyesopen.com>
908
909 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
910 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
911 automatically for targets without TARGET_80387.
912 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
913 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
914 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
915 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
916 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
917 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
918 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
919 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
920 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
921 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
922 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
923 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
924 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
925 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
926 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
927 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
928 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
929 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
930 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
931 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
932
933 2004-11-22 Dale Johannesen <dalej@apple.com>
934
935 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
936 properly and comment.
937
938 2004-11-22 James A. Morrison <phython@gcc.gnu.org
939
940 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
941 (sparc_init_builtins): New function.
942 (sparc_init_vis_builtins): Create builtin functions for VIS
943 instructions.
944 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
945 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
946 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
947 (def_builtin): New macro for creating builtin functions.
948 (P): New mode macro for pointer types.
949 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
950 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
951 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
952 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
953 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
954 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
955 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
956
957 2004-11-22 Devang Patel <dpatel@apple.com>
958
959 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
960
961 2004-11-22 Devang Patel <dpatel@apple.com>
962
963 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
964 (if_convertible_phi_p): ... new name.
965 (if_convertable_modify_expr_p): Rename to ...
966 (if_convertible_modify_expr_p): ... new name.
967 (if_convertable_stmt_p): Rename to ...
968 (if_convertible_stmt_p): ... new name.
969 (if_convertable_bb_p): Rename to ...
970 (if_convertible_bb_p): ... new name.
971 (if_convertable_loop_p): Rename to ...
972 (if_convertible_loop_p): ... new name.
973
974 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
975
976 PR target/18444
977 * configure.ac (threading): Accept 'posix95'.
978 * configure: Regenerate.
979 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
980 include sol26.h and default to posix95 threads if have_pthread_h.
981 (sparc-*-solaris2*): Likewise.
982 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
983 * gthr-posix95.h: New file.
984 * config/sol26.h: New file.
985 * doc/install.texi (--enable-threads): Document 'posix95'.
986
987 2004-11-23 Ben Elliston <bje@au.ibm.com>
988
989 * pointer-set.h (pointer_set_contains): Remove.
990 * pointer-set.c (pointer_set_contains): Likewise.
991
992 2004-11-22 Dale Johannesen <dalej@apple.com>
993
994 * calls.c (expand_call): Do not call preserve_temp_slots.
995
996 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
997
998 * tree-flow.h: Remove the prototype for remove_phi_arg.
999 Add a prototype for remove_phi_args.
1000 * tree-phinodes.c (remove_phi_arg): Remove.
1001 (remove_phi_args): New.
1002 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
1003 of remove_phi_arg.
1004
1005 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
1006 after making an edge.
1007 (remove_edge): Call execute_on_shrinking_pred before removing
1008 an edge.
1009 (redirect_edge_succ): Call execute_on_growing_pred and
1010 execute_on_shrinking_pred.
1011 * cfghooks.c (execute_on_growing_pred): New.
1012 (execute_on_shrinking_pred): Likewise.
1013 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
1014 execute_on_shrinking_pred.
1015 Add prototypes for execute_on_growing_pred and
1016 execute_on_shrinking_pred.
1017 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
1018 execute_on_growing_pred and execute_on_shrinking_pred.
1019 (cfg_layout_rtl_cfg_hook): Likewise.
1020 * tree-cfg.c (tree_cfg_hooks): Likewise.
1021
1022 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
1023 (tree_cfg_hooks): Use it.
1024 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
1025 (ssa_redirect_edge): Don't call remove_phi_arg_num.
1026
1027 * tree-phinodes.c (remove_phi_arg_num): Make it static.
1028 * tree-flow.h: Remove the corresponding prototype.
1029
1030 * tree-ssa.c (ssa_remove_edge): Remove.
1031 * tree-flow.h: Remove the corresponding prototype.
1032 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
1033 * basic-block.h: Likewise.
1034 * tree-if-conv.c: Likewise.
1035 * tree-ssa-threadupdate.c: Likewise.
1036
1037 2004-11-23 Ben Elliston <bje@au.ibm.com>
1038
1039 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
1040 @table to list the BSI methods. Use individual @findex directives
1041 instead of one with a comma-separated list of index entries.
1042
1043 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
1044
1045 PR tree-optimization/18529
1046 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
1047 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
1048 (fold): Call fold_to_nonsharp_ineq_using_bound.
1049 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
1050 (number_of_iterations_cond): Fold the expressions before futher
1051 processing.
1052 (tree_simplify_using_condition): Handle case when cond or expr is
1053 an EQ_EXPR specially.
1054
1055 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1056
1057 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
1058 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
1059
1060 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1061 Fariborz Jahanian <fjahanian@apple.com>
1062
1063 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
1064 TARGET_ALTIVEC_ABI.
1065 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
1066 Align 16 byte and larger vectors like Altivec.
1067 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
1068 (function_arg): Same.
1069 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
1070
1071 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1072
1073 PR tree-opt/18572
1074 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
1075 it.
1076
1077 2004-11-22 Richard Henderson <rth@redhat.com>
1078
1079 * function.c (assign_parm_setup_block): Revert 11-13 change to
1080 forcably re-mode a (possibly BLKmode) hard register.
1081
1082 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1083
1084 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
1085
1086 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1087
1088 * config/rs6000/power4.md: Remove delay between dispatch and issue
1089 associated with dispatch group slots 3 and 4.
1090 * config/rs6000/power5.md: Same.
1091
1092 2004-11-21 Jeff Law <law@redhat.com>
1093
1094 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
1095 variant.
1096 * cfgbuild.c (make_edges): Likewise.
1097 * cfghooks.c (can_duplicate_block_p): Likewise.
1098 * cfgloop.c (loop_latch_edge): Likewise.
1099 * cfgloopmanip.c (force_single_succ_latches): Likewise.
1100 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1101 * predict.c (predict_loops, propagate_freq): Likewise.
1102 * tracer.c (tail_duplicate): Likewise.
1103 * tree-cfg.c (disband_implicit_edges): Likewise.
1104 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
1105
1106 2004-11-22 Nick Clifton <nickc@redhat.com>
1107
1108 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1109 initialisation of 'e'.
1110
1111 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1112
1113 PR rtl-optimization/18599
1114 * regrename.c (copyprop_hardreg_forward): Speed up by putting
1115 BB_VISITED flags on basic blocks as we process them.
1116
1117 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1118
1119 PR target/18531
1120 * config/rs6000/altivec.md (VI_char): New mode attribute.
1121 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
1122 (add<mode>3): ... this.
1123 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
1124 (sub<mode>3): ... this.
1125 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
1126 (smax<mode>3): ... this.
1127 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
1128 (smin<mode>3): ... this.
1129 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
1130 (umax<mode>3): ... this.
1131 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
1132 (umin<mode>3): ... this.
1133 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1134 (and<mode>3): ... this.
1135 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1136 (ior<mode>3): ... this.
1137 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
1138 (xor<mode>3): ... this.
1139 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1140 (and<mode>3): ... this.
1141 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1142 (ior<mode>3): ... this.
1143 (altivec_vnor): Replace with ...
1144 (altivec_nor<mode>): ... this.
1145 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
1146 (one_cmpl<mode>2): ... this.
1147 (altivec_vandc): New expander.
1148 (*andc<mode>3): New insn.
1149 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
1150
1151 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1152
1153 PR tree-opt/18536
1154 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
1155 creating iv instead of integer_type.
1156 (vect_build_loop_niters): Remove redundant code.
1157 (vect_transform_loop_bound): Removed (duplicates functionality of
1158 make_loop_iterate_ntimes.
1159 (vect_gen_niters_for_prolog_loop): Add documentation. Call
1160 lang_hooks.types.type_for_size to create a type of the required size.
1161 Use that type instead of integer_type. Remove redundant code.
1162 (vect_update_niters_after_peeling): Use type of niters instead of
1163 integer_type.
1164 (vect_transform_loop): Unify handling of known and unknown loop bound
1165 cases. Call make_loop_iterate_ntimes instead of
1166 vect_transform_loop_bound.
1167
1168 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1169
1170 PR target/18217
1171 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
1172 (LIB2ADDEH): Here.
1173
1174 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1175
1176 PR tree-opt/18544
1177 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
1178
1179 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1180
1181 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
1182 m32r*linux.
1183 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
1184 m32r/libgcc-glibc.ver.
1185 * config/m32r/libgcc-glibc.ver: Add New file.
1186
1187 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1188
1189 * bitmap.h (struct bitmap_obstack): New obstack type.
1190 (struct bitmap_head_def): Replace using_obstack with obstack
1191 pointer.
1192 (bitmap_default_obstack): New.
1193 (bitmap_initialize): Make inline, does not do allocation.
1194 (bitmap_release_memory): Remove.
1195 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
1196 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1197 bitmap_obstack_free, bitmap_malloc_free): Declare.
1198 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
1199 (BITMAP_FREE): Replace with ...
1200 (BITMAP_OBSTACK_FREE): ... this.
1201 (BITMAP_XFREE): Adjust.
1202 (BITMAP_INIT_ONCE): Remove.
1203 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
1204 (bitmap_default_obstack): New.
1205 (bitmap_elem_to_freelist): Adjust.
1206 (bitmap_element_allocate): Adjust. Break initialization into ...
1207 (bitmap_obstack_initialize): ... here.
1208 (bitmap_release_memory): Replace with ...
1209 (bitmap_obstack_release): ... this.
1210 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1211 bitmap_obstack_free, bitmap_malloc_free): New.
1212 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
1213 bitmap_initialize.
1214 (bitmap_initialize): Move to bitmap.h.
1215 * gengtype.c (open_base_files): Add obstack.h to ifiles.
1216 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
1217 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
1218 (INITIALIZE_REG_SET): Remove.
1219 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
1220 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
1221 (flow_obstack): Do not declare.
1222 (reg_obstack): Declare.
1223 * regs.h: Include obstack.h.
1224 * tree-optimize.c (tree_rest_of_compilation): Initialize and
1225 release bitmap obstack here.
1226 * bb-reorder.c: #include regs, not basic-block.
1227 (fix_crossing_conditional_branches): Allocate regsets from
1228 reg_obstack.
1229 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
1230 obstack.h.
1231 * caller-save.c: Include regs.h earlier.
1232 * cfg.c: Do not include basic-block.h or obstack.h.
1233 (reg_obstack): Define.
1234 * cfganal.c: Include obstack.h
1235 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
1236 earlier.
1237 * cfglayout.c: Do not include obstack.h.
1238 (flow_obstack): Remove declaration.
1239 (cfg_layout_duplicate_bb): Use reg_obstack.
1240 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
1241 * cfgrtl.c (rtl_split_block): Use reg_obstack.
1242 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
1243 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
1244 (cfg_layout_split_edge): Use reg_obstack.
1245 * cse.c: Include regs.h earlier.
1246 * ddg.c: Do not include basic-block.h.
1247 * dominance.c: Inlude obstack.h.
1248 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
1249 (calculate_global_regs_live): Likewise.
1250 (allocate_bb_life_data): Use reg_obstack.
1251 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
1252 * global.c: Do not include basic-block.h.
1253 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
1254 * graph.c: Include obstack.h.
1255 * haifa-sched.c: Do not include basic-block.h.
1256 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
1257 * local-alloc.c: Do not include basic-block.h.
1258 * loop-init.c, loop-invariant.c: Include obstack.h.
1259 * loop-iv.c: Likewise.
1260 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
1261 adjust.
1262 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
1263 * modulo-sched.c: Do not include basic-block.h.
1264 * passes.c (rest_of_handle_final): Do not call
1265 regset_release_memory.
1266 * ra-debug.c: Include regs.h earlier. Do not include
1267 basic-block.h.
1268 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
1269 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
1270 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
1271 (regset_release_memory): Remove.
1272 * resource.c: Do not include basic-block.h.
1273 * rtlanal.c: Do not include basic-block.h.
1274 * sbitmap.c: Include obstack.h.
1275 * sched-deps.c: Do not include basic-block.h.
1276 (reg_pending_sets_head, reg_pending_clobbers_head,
1277 reg_pending_uses_head): Remove.
1278 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
1279 * sched-ebb.c: Do not include basic-block.h.
1280 * sched-rgn.c: Likewise.
1281 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
1282 BITMAP_XFREE.
1283 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
1284 * tree-sra.c (decide_instantiations): Adjust bitmap
1285 initialization.
1286 * tree-ssa-dce.c: Include obstack.h.
1287 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
1288 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
1289 (bitmap_set_new): Likewise.
1290 (init_pre): Initialize bitmap obstack.
1291 (fini_pre): Release bitmap obstack.
1292 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
1293 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
1294 (mark_for_rewrite, unmark_for_rewrite): Likewise.
1295 (marked_ssa_names): Likewise.
1296 (init_ssanames): Use BITMAP_XMALLOC.
1297 (fini_ssanames): Use BITMAP_XFREE.
1298 * web.c: Include obstack.h
1299
1300 2004-11-22 Nick Clifton <nickc@redhat.com>
1301
1302 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
1303 predecessor in the first for-loop.
1304
1305 2004-11-21 Stan Shebs <shebs@apple.com>
1306
1307 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
1308 UNION_TYPE case.
1309 (function_arg): Move darwin test up, sniff mode first for
1310 efficiency, test for union type.
1311
1312 2004-11-21 Dale Johannesen <dalej@apple.com>
1313
1314 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1315
1316 2004-11-21 Jeff Law <law@redhat.com>
1317
1318 * tree-ssa.c (verify_use): Fix comment.
1319 (verify_phi_args): Check that the number of incoming edges matches
1320 the number of PHI arguments. Check that each PHI argument is
1321 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
1322 dead or duplicated edges. Clear e->aux earlier and avoid separate
1323 loop to clear e->aux and test for missed edges.
1324 (verify_ssa): Remove first walk over statements. Move checking
1325 of PHI args into verify_phi_args. Move checking of statements
1326 with aliased stores and V_MAY_DEFS into the remaining loop over
1327 the statements. Register defs by walking through the formal
1328 SSA_NAME table.
1329
1330 2004-11-21 Roger Sayle <roger@eyesopen.com>
1331
1332 PR middle-end/18520
1333 * dojump.c (compare_from_rtx): Clarify mode argument in function
1334 description. Correct order of mode/cmp_mode arguments in call to
1335 simplify_relational_operation. Check "tem" for COMPARISON_P.
1336
1337 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
1338 David Edelsohn <edelsohn@gnu.org>
1339
1340 PR target/17836
1341 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
1342 synthetic vectors in memory.
1343 (function_arg_boundary): Align large synthetic vectors.
1344 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
1345
1346 2004-11-21 Jeff Law <law@redhat.com>
1347
1348 * cfg.c (update_bb_profile_for_threading): Do not rescale the
1349 successor probabilities if they are not going to change. Pull
1350 division out of loop if we do need to rescale successor probabilities.
1351
1352 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
1353 index of the destination block for the hash value rather than
1354 hashing a pointer.
1355
1356 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
1357
1358 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
1359 checks for neither argument being an array or pointer (swapping
1360 the arguments if necessary), the array argument being a pointer to
1361 or array of functions and for -Wchar-subscripts warnings upfront.
1362
1363 2004-11-20 Jeff Law <law@redhat.com>
1364
1365 * regrename.c (copyprop_hardreg_forward): Only search for a
1366 previously processed block if the current block only has one
1367 predecessor.
1368
1369 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
1370
1371 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
1372 typos.
1373 * config/arm/arm.c: Follow spelling conventions.
1374
1375 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
1376
1377 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
1378 a bit in tune_flags.
1379 (const_double_needs_minipool): Likewise. Split most of the code out
1380 into ...
1381 (arm_const_double_inline_cost): ... new function here.
1382 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
1383 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
1384 word constants of length 2, 3 and 4 insns respectively.
1385 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
1386 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
1387 constraints. Set insn lenghts accordingly.
1388
1389 2004-11-19 Jeff Law <law@redhat.com>
1390
1391 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
1392 a hash table. Extensive modifications throughout to support
1393 that change.
1394 (struct el): New.
1395 (struct local_info): New.
1396 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
1397 fields.
1398 (redirection_data): Now a hashtable.
1399 (redirection_data_hash, redirection_data_eq): New.
1400 (lookup_redirection_data, create_duplicates): New.
1401 (create_edge_and_update_destionation_phis): New.
1402 (fixup_template_block, redirect_edges): New.
1403 (thread_block): Use hash table traversals instead of loops over
1404 varray entries or incoming edge vectors.
1405
1406 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1407
1408 * basic-block.h (edge_def): Add dest_idx.
1409 * cfg.c (unchecked_make_edge): Initialize dest_idx.
1410 (remove_edge): Simplify the disconnection of an edge from its
1411 destination.
1412 (redirect_edge_succ): Likewise.
1413 * cfghooks.c (verify_flow_info): Check the consistency of
1414 dest_idx for each edge.
1415
1416 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
1417
1418 * simplify-rtx.c (simplify_ternary_operation): Use
1419 gen_int_mode.
1420
1421 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1422
1423 * tree-cfg.c (reinstall_phi_args): New.
1424 (tree_split_edge): Use it after redirecting an edge. Don't
1425 modify PHI_ARG_EDGE.
1426
1427 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1428
1429 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
1430 if checking is enabled.
1431
1432 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
1433
1434 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
1435 too many nested scopes.
1436
1437 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1438
1439 PR tree-opt/18181
1440 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
1441 changed to suppoer uses-after-loop and to void creating flow paths
1442 that shouldn't exist.
1443 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
1444 Modified to fit the new peeling scheme. Avoid quadratic behavior.
1445 (slpeel_add_loop_guard): Takes additional argument.
1446 (slpeel_verify_cfg_after_peeling): New function.
1447 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
1448 documentation. Use 'exit-bb' instead of creating 'new-bb'.
1449 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
1450 the new peeling scheme.
1451 (copy_phi_nodes): Function removed. Its functionality moved to
1452 update_phis_for_duplicate_loop.
1453 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
1454 moved here. Added documentation. Modified to fit the new peeling scheme.
1455 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
1456 needed - done in slpeel_tree_peel_loop_to_edge.
1457 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
1458 (vect_do_peeling_for_loop_bound): Add documentation. Call
1459 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
1460 with additional argument.
1461 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
1462
1463 (vect_finish_stmt_generation): Avoid 80 column oveflow.
1464
1465 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1466
1467 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
1468 arguments removed.
1469 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
1470 without last two arguments. Update single_exit of loops.
1471 (vect_update_niters_after_peeling): Removed. Its functionality was
1472 moved to vect_do_peeling_for_alignment.
1473 (vect_do_peeling_for_loop_bound): New name for function previously
1474 called vect_transform_for_unknown_loop_bound.
1475 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
1476 instead of code that duplicates the same functionality.
1477 (vect_do_peeling_for_alignment): Functionality of
1478 vect_update_niters_after_peeling moved here.
1479 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
1480 previously named vect_transform_for_unknown_loop_bound - for both known
1481 and unknown loop bound cases.
1482
1483 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1484
1485 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
1486 previously called verify_loop_for_duplication. All conditions compacted
1487 into one compound condition. Removed debug dumps.
1488 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
1489 functionality moved to vect_can_advance_ivs_p, and some to
1490 vect_analyze_loop_form.
1491 (vect_can_advance_ivs_p): New function. Contains functionality that was
1492 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
1493 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
1494 (vect_analyze_operations): Call vect_can_advance_ivs_p and
1495 slpeel_can_duplicate_loop_p.
1496 (vect_get_loop_niters): Added documentation.
1497 (vect_analyze_loop_form): Check the loop entry always - not only in case
1498 of unknown loop bound. Create preheader and exit bb if necessary. Apply
1499 a check that used to take place in
1500 vect_analyze_loop_with_symbolic_num_of_iters.
1501 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
1502 Remove redundant call to rewrite_into_loop_closed_ssa.
1503 (vect_compute_data_refs_alignment): Removed obsolete comment.
1504
1505 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1506
1507 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
1508 function previously called tree_duplicate_loop_to_edge.
1509 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
1510 previously called tree_duplicate_loop_to_edge_cfg.
1511 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
1512 function name.
1513 (slpeel_update_phi_nodes_for_guard): Likewise.
1514 (slpeel_make_loop_iterate_ntimes): Likewise.
1515 (slpeel_add_loop_guard): Likewise.
1516 (allocate_new_names, free_new_names): Function declaration moved to top
1517 of file.
1518 (rename_use_op, rename_def_op): Likewise.
1519 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
1520 (vect_generate_tmps_on_preheader): Function declaration moved.
1521 (vect_transform_for_unknown_loop_bound): Added missing function
1522 declaration.
1523
1524 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
1525
1526 PR tree-opt/18507
1527 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
1528 Define a VEC(tree_on_heap) for head.
1529 (register_new_def): Change second argument to be a VEC(tree_on_heap).
1530 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1531 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
1532 the VEC(tree_on_heap) function. Also free it before returning.
1533 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1534 for block_defs_stack.
1535 (restore_currdefs_to_original_value): Use VEC_length instead of
1536 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1537 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1538 for block_defs_stack.
1539 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1540 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1541 for block_defs_stack.
1542 (ssa_register_new_def): Likewise.
1543 (ssa_rewrite_initialize_block): Likewise.
1544 (rewrite_finalize_block): Use VEC_length instead of
1545 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1546 (ssa_rewrite_finalize_block): Likewise.
1547 (register_new_def): Change second argument to be a VEC(tree_on_heap).
1548 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
1549 (rewrite_blocks): Initialize block_defs_stack with
1550 the VEC(tree_on_heap) function. Also free it before returning.
1551 (rewrite_ssa_into_ssa): Likewise.
1552
1553 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
1554
1555 * config/darwin.c (machopic_data_defined_p): return 1 for
1556 MACHOPIC_DEFINED_FUNCTION.
1557
1558 2004-11-19 Jeff Law <law@redhat.com>
1559
1560 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
1561 arguments.
1562
1563 2004-11-19 Paul Brook <paul@codesourcery.com>
1564
1565 PR target/17735
1566 * varasm.c (default_assemble_integer): Allow pointer-sized values.
1567 Expand comment.
1568
1569 2004-11-19 Nick Clifton <nickc@redhat.com>
1570
1571 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
1572 zero_extension and lshiftrt insns.
1573 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
1574 where appropriate.
1575 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
1576 to handle bp and bn insn patterns with a zero_extend rtx
1577 inside them.
1578
1579 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
1580
1581 * config/arm/arm.md (generic_sched): Make const.
1582
1583 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1584
1585 * emit-rtl.c (classify_insn): Make it static.
1586 * rtl.h: Remove the corresponding prototype.
1587
1588 * integrate.c (has_func_hard_reg_initial_val,
1589 get_func_hard_reg_initial_val): Make them static.
1590 * integrate.h: Remove the corresponding prototypes.
1591
1592 2004-11-19 Ben Elliston <bje@au.ibm.com>
1593
1594 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
1595 (dw2_asm_output_delta_sleb128): Likewise.
1596 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
1597 (dw2_asm_output_delta_sleb128): Likewise.
1598
1599 2004-11-19 Adam Nemet <anemet@lnxw.com>
1600
1601 * tree-ssa-alias.c: Fix comment.
1602
1603 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1604
1605 * tree-outof-ssa.c: Fix a comment typo.
1606
1607 2004-11-19 Ben Elliston <bje@au.ibm.com>
1608
1609 * predict.h (predict_insn): Remove extern declaration.
1610 * predict.c (predict_insn): Make static.
1611
1612 2004-11-19 Alan Modra <amodra@bigpond.net.au>
1613
1614 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
1615
1616 2004-11-18 Nicolas Pitre <nico@cam.org>
1617
1618 * config/arm/arm.c (const_double_needs_minipool): New function to
1619 determine if a CONST_DOUBLE should be pushed to the minipool.
1620 (note_invalid_constants): Use it.
1621
1622 2004-11-18 Paul Brook <paul@codesourcery.com>
1623
1624 * config/arm/arm.c (target_float_switch): New variable..
1625 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
1626 target_float_switch.
1627 * config/arm/arm.h (target_float_switch): Declare.
1628 (ARM_FLAG_SOFT_FLOAT): Remove.
1629 (TARGET_SWITCHES): Remove hard-float and soft-float.
1630 (TARGET_OPTIONS): Add hard-float and soft-float.
1631 (TARGET_DEFAULT_FLOAT_ABI): Define.
1632 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
1633 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
1634 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
1635 * config/arm/netbsd-elf.h: Ditto.
1636 * config/arm/netbsd.h: Ditto.
1637 * config/arm/pe.h: Ditto.
1638 * config/arm/unknown-elf.h: Ditto.
1639 * config/arm/wince-pe.h: Ditto.
1640 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1641 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1642 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1643
1644 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
1645
1646 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
1647 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
1648 altivec_lvx_4sf): Rename and replace with ...
1649 (altivec_lvx_<mode>): ... mode macro version.
1650 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
1651 altivec_stvx_4sf): Rename and replace with ...
1652 (altivec_stvx_<mode>): ... mode macro version.
1653 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
1654 (mov<mode>): ... mode macro version.
1655 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
1656 *movv4sf_internal1): Replace with ...
1657 (*mov<mode>_internal): ... mode macro version.
1658 (get_vrsave_internal, *set_vrsave_internal, *save_world,
1659 *restore_world): Unquote output statements.
1660 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
1661 altivec_expand_st_builtin): Adjust insn names.
1662
1663 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
1664
1665 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
1666 previous change.
1667 (rs6000_override_options): Likewise.
1668 (spe_build_register_parallel): Handle complex doubles on e500v2.
1669 (rs6000_spe_function_arg): Likewise.
1670 (function_arg): Likewise.
1671 (rs6000_function_value): Likewise.
1672 (rs6000_libcall_value): Likewise.
1673
1674 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
1675
1676 * ifcvt.c (find_if_block): Move the check for the number of edges
1677 above the loops checking for complex edges.
1678 Remove the counting of edges as we use EDGE_COUNT now.
1679
1680 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1681
1682 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1683 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
1684
1685 2004-11-18 Andreas Schwab <schwab@suse.de>
1686
1687 * config/i386/i386.md (define_peephole2): Revert last change.
1688
1689 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1690
1691 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1692 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
1693
1694 2004-11-18 Diego Novillo <dnovillo@redhat.com>
1695
1696 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
1697 of FOR_EACH_BB.
1698
1699 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
1700
1701 * Makefile.in (macro_list): Depend on s-macro_list.
1702 (s-macro_list): New target.
1703
1704 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
1705
1706 PR target/17107
1707 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
1708 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
1709 (fold_range_test): Adjust.
1710 (fold_truthop): Use it.
1711 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
1712 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
1713
1714 2004-11-18 Uros Bizjak <uros@kss-loka.si>
1715
1716 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
1717 insn split constraint.
1718 (define_peephole2): Remove unneeded "&& 1" from peephole2
1719 constraints.
1720
1721 2004-11-18 Ben Elliston <bje@au.ibm.com>
1722
1723 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
1724 element for bsi_prev; use @findex instead.
1725
1726 2004-11-18 Ben Elliston <bje@au.ibm.com>
1727
1728 * opts.h (add_input_filename): Remove extern declaration.
1729 * opts.c (add_input_filename): Make static.
1730
1731 2004-11-17 Mark Mitchell <mark@codesourcery.com>
1732
1733 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
1734 ATTRIBUTE_UNUSED.
1735
1736 2004-11-17 Zack Weinberg <zack@codesourcery.com>
1737
1738 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
1739 * system.h: Poison it.
1740 * doc/tm.texi: Delete its documentation.
1741
1742 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
1743 Mark Mitchell <mark@codesourcery.com>
1744
1745 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
1746 * config/i386/i386.c (i386_solaris_elf_named_section): New
1747 function.
1748 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
1749 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
1750 64-bit.
1751 (ASM_QUAD): Don't undefine for biarch targets.
1752 * config/i386/t-sol2: Introduce multilib support.
1753
1754 2004-11-18 Ben Elliston <bje@au.ibm.com>
1755
1756 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
1757
1758 2004-11-18 Ben Elliston <bje@au.ibm.com>
1759
1760 * cgraph.h: Replace "it's" with "its" throughout.
1761
1762 2004-11-18 Ben Elliston <bje@au.ibm.com>
1763
1764 * doc/rtl.texi (Flags): Grammar fix.
1765
1766 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
1767
1768 * expmed.c (alg_code): Add alg_unknown.
1769 (alg_hash_entry): New.
1770 (NUM_ALG_HASH_ENTRIES): Likewise.
1771 (alg_hash): Likewise.
1772 (synth_mult): Cache the result into alg_hash.
1773
1774 2004-11-17 Zack Weinberg <zack@codesourcery.com>
1775
1776 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
1777 config/rs6000/libgcc-ppc64.ver.
1778
1779 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
1780
1781 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
1782 checking if an unconditional return is followed by a barrier.
1783
1784 * jump.c (condjump_p): Remove unreachable code.
1785
1786 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
1787 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
1788 tree-ssa-live.h, tree.h: Remove unused prototypes.
1789
1790 2004-11-17 Jeff Law <law@redhat.com>
1791
1792 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
1793 (edge_to_cases_elt): Renamed from edge_to_case_leader.
1794 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
1795 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
1796 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
1797 (get_cases_for_edge): New function.
1798 (start_recording_case_labels, end_recording_case_labels): Similarly.
1799 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
1800 chain equivalent CASE_LABEL_EXPRs together.
1801 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
1802 (make_switch_expr_edges): Do not record edge/cases here.
1803 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
1804 (split_critical_edges): Record cases around the edge splitting code.
1805 (cleanup_dead_labels): Use CASE_LABEL again.
1806 (tree_redirect_edge_and_branch): If we have a mapping from edge
1807 to cases, use it to handle redirections. Else do it the slow way.
1808 * tree.h (CASE_LEADER_OR_LABEL): Kill.
1809 (CASE_LABEL): Revert to just looking at the tree's second operand.
1810 * tree.c (get_case_label): Kill.
1811
1812 2004-11-17 Diego Novillo <dnovillo@redhat.com>
1813
1814 PR tree-optimization/18307
1815 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
1816 'orig' are the same node.
1817 (collect_points_to_info_r): Do not call merge_pointed_to_info
1818 when the PHI argument is identical to the LHS.
1819
1820 2004-11-17 Steven Bosscher <stevenb@suse.de>
1821
1822 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
1823 to insert the exit or entry block.
1824 (ssa_prop_init): Use add_control_edge to seed the algorithm.
1825
1826 2004-11-16 Zack Weinberg <zack@codesourcery.com>
1827
1828 * mkmap-flat.awk, mkmap-symver.awk: If the last version
1829 assigned to a symbol was '%exclude', do not emit it anywhere.
1830 If leading_underscore is true, prefix all symbols from the
1831 version scripts with a leading underscore before comparing
1832 them with nm output or emitting them. Remove support for dot
1833 symbols.
1834 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
1835 (SHLIB_MAPFILES): Use libgcc-std.ver.
1836 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
1837 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
1838 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
1839 libgcc-excl.ver and libgcc-glibc.ver.
1840
1841 * config/sh/libgcc-excl.ver: New file.
1842 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
1843
1844 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
1845
1846 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
1847 the test when the edge has the opposite meaning, not when
1848 the first argument is invariant.
1849
1850 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
1851
1852 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
1853 doubles.
1854 (rs6000_complex_function_value): Handle e500 v2 variant.
1855
1856 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
1857
1858 Fix PR tree-optimization/18519
1859
1860 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
1861 * tree-pass.h: Add TODO_cleanup_cfg.
1862 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
1863 (ccp_finalize): Remove call to cleanup_cfg.
1864 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
1865 (pass_cd_dce): Ditto.
1866 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
1867 dump_function_to_file.
1868 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
1869 to cleanup_cfg.
1870 (pass_ch): Add TODO_cleanup_cfg.
1871 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
1872 cleanup_cfg.
1873 (pass_loop_done): Add TODO_cleanup_cfg.
1874 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
1875 (tree_ssa_phiopt): Remove call to cleanup_cfg.
1876
1877 2004-11-16 Devang Patel <dpatel@apple.com>
1878
1879 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
1880
1881 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
1882
1883 * expmed.c, ra-colorize.c: Fix comment typos.
1884
1885 * doc/tm.texi: Fix typos.
1886
1887 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1888 Mark Mitchell <mark@codesourcery.com>
1889
1890 PR target/6123
1891 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
1892 __pic__ if PIC.
1893
1894 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1895
1896 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
1897 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
1898
1899 2004-11-16 Devang Patel <dpatel@apple.com>
1900
1901 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
1902
1903 2004-11-16 Eric Christopher <echristo@redhat.com>
1904
1905 * config/mips/mips.c: Use rtl _P predicates.
1906 * config/mips/mips.h: Ditto.
1907 * config/mips/mips.md: Ditto.
1908
1909 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
1910
1911 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
1912 the pattern.
1913
1914 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
1915
1916 * config/s390/s390.c (s390_cc_modes_compatible): New function.
1917 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
1918
1919 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
1920
1921 PR target/18447
1922 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
1923 before and after the insns for getting GOT address in non-PIC
1924 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
1925 is enabled.
1926
1927 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
1928
1929 * gcc/cse.c (struct change_cc_mode_args): New structure.
1930 (cse_change_cc_mode_insn): New function.
1931 (cse_change_cc_mode): Use validate_change to perfom changes.
1932 (cse_change_cc_mode_insns, cse_condition_code_reg):
1933 Call cse_change_cc_mode_insn.
1934
1935 2004-11-16 Steven Bosscher <stevenb@suse.de>
1936
1937 * stack.h: Remove.
1938
1939 2004-11-16 Steven Bosscher <stevenb@suse.de>
1940
1941 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
1942
1943 2004-11-15 Dale Johannesen <dalej@apple.com>
1944
1945 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
1946
1947 2004-11-15 Dale Johannesen <dalej@apple.com>
1948
1949 * profile.c (compute_branch_probabilities): Prevent
1950 crash with EH in RTL-based profiling.
1951
1952 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
1953
1954 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
1955 COND_EXPR_COND.
1956 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
1957 * tree-ssa-dom.c (thread_across_edge): Likewise.
1958 * tree-vectorizer.c (vect_transform_loop_bound): Replace
1959 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
1960 COND_EXPR_ELSE.
1961
1962 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
1963 (tree_flow_call_edges_add): Update the call to
1964 bsi_commit_edge_inserts.
1965 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
1966 * profile.c (branch_prob): Likewise.
1967 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
1968 * tree-sra.c (scalarize_function): Likewise.
1969 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
1970 * tree-ssa-pre.c (fini_pre): Likewise.
1971 * tree-flow.h: Update the prototype for
1972 bsi_commit_edge_inserts.
1973
1974 2004-11-15 Eric Christopher <echristo@redhat.com>
1975
1976 * sched-deps.c (set_sched_group_p): Delete.
1977 (delete_all_dependencies): New function.
1978 (fixup_sched_groups): Use. New function.
1979 (sched_analyze_insn): Use.
1980
1981 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
1982
1983 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
1984 RROTATE_EXPR or unknown code.
1985 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
1986 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
1987 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
1988 or unknown code.
1989
1990 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
1991
1992 PR c/18498
1993 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
1994 after processing the declarator.
1995
1996 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
1997
1998 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
1999 vec_duplicate.
2000 (altivec_vspltb): Same.
2001 (altivec_vspltw): Same.
2002 (altivec_vspltisb): Same.
2003 (altivec_vspltish): Same.
2004 (altivec_vspltisw): Same.
2005 (altivec_vspltisw_v4sf): Same.
2006 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
2007 UNSPEC_VSPLTISH.
2008 Move "End of vector xor's" comment to the right place.
2009
2010 2004-11-15 Steve Ellcey <sje@cup.hp.com>
2011
2012 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
2013 instead of nonimmediate_operand.
2014
2015 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2016
2017 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
2018 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
2019 * config/sol2.c (solaris_output_init_fini): Update calls to
2020 ASM_OUTPUT_CALL. Include "rtl.h".
2021
2022 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2023
2024 * config/sol2-c.c (cmn_err_char_table): Add "p".
2025
2026 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2027
2028 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
2029 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
2030
2031 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2032
2033 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
2034 within the multilib directory.
2035
2036 2004-11-15 Nick Clifton <nickc@redhat.com>
2037
2038 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
2039 builtin assert of cpu=xstormy16.
2040
2041 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
2042
2043 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
2044 variable.
2045
2046 2004-11-14 Richard Henderson <rth@redhat.com>
2047
2048 PR 18480
2049 * calls.c (struct arg_data): Add parallel_value.
2050 (precompute_register_parameters): Set it.
2051 (load_register_parameters): Use it.
2052 (store_one_arg): Also set it here.
2053
2054 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2055
2056 PR tree-optimization/18431
2057 * fold-const.c (associate_trees): Do not produce x + 0.
2058 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
2059 (fold): Use them.
2060 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
2061 Moved ...
2062 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
2063 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
2064
2065 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
2066
2067 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
2068
2069 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2070
2071 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
2072 value-prof.c: Fix comment typos.
2073
2074 2004-11-14 Stan Shebs <shebs@apple.com>
2075
2076 Basic ABI changes for passing structs by value in 64-bit Darwin.
2077 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
2078 (rs6000_override_options): Set it for 64-bit Darwin.
2079 (rs6000_parse_abi_options): Add testing options to change it.
2080 (rs6000_return_in_memory): Test whether the type is one
2081 that can be passed in registers.
2082 (darwin64_function_arg_advance): New.
2083 (function_arg_advance): Call it, plus add recursion depth
2084 argument and test when counting off arguments.
2085 (rs6000_darwin64_function_arg): New.
2086 (function_arg): Call it.
2087 (setup_incoming_varargs): Add argument to function_arg_advance.
2088 (rs6000_darwin64_function_value): New.
2089 (rs6000_function_value): Call it.
2090 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
2091 * config/rs6000/rs6000-protos.h: Update decl of
2092 function_arg_advance.
2093
2094 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
2095
2096 PR c/17279
2097 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
2098 support TImode before adding __int128_t and __uint128_t types.
2099
2100 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2101
2102 PR tree-opt/18400
2103 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
2104 (vect_transform_loop_bound): Set loop->nb_iterations.
2105
2106 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2107 Andrew Pinski <pinskia@physics.uc.edu>
2108
2109 PR tree-opt/18425
2110 * tree-vectorize.c (vect_build_loop_niters): Do not insert
2111 NULL into the instruction stream. Initialize new_bb to NULL.
2112 (vect_update_ivs_after_vectorizer): Likewise.
2113 (vect_gen_niters_for_prolog_loop): Likewise.
2114
2115 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2116
2117 PR tree-optimization/18431
2118 * tree-flow.h (stmt_references_memory_p): Declare.
2119 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
2120 * tree-ssa.c (stmt_references_memory_p): New function.
2121
2122 2004-11-14 Andreas Schwab <schwab@suse.de>
2123
2124 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
2125 $(EXPR_H).
2126
2127 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2128
2129 * c-common.c (walk_stmt_tree): Remove.
2130 * c-common.h: Remove the corresponding prototype.
2131
2132 * emit-rtl.c (push_to_full_sequence): Remove.
2133 * rtl.h: Remove the corresponding prototype.
2134
2135 * cselib.c, expr.c: Fix comment typos.
2136
2137 2004-11-13 Richard Henderson <rth@redhat.com>
2138
2139 * calls.c (precompute_register_parameters): Force all PARALLELs
2140 into pseudo registers.
2141 (load_register_parameters): Copy PARALLELs into hard registers.
2142 * function.c (assign_parm_setup_block): Copy PARALLELS into
2143 pseudo registers. Do emit_group_store in conversion_insns.
2144 * expr.c (emit_group_load_1): Rename from emit_group_load, take
2145 tmps as an argument. Move final copy loop ...
2146 (emit_group_load): ... here. New function.
2147 (emit_group_load_into_temps, emit_group_move_into_temps): New.
2148 * expr.h: Declare them.
2149
2150 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2151
2152 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
2153 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
2154 with PHI_CHAIN where appropriate.
2155
2156 2004-11-13 Dale Johannesen <dalej@apple.com>
2157
2158 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
2159 (tree_block_label): Ditto.
2160 (flush_pending_stmts): Ditto.
2161 (insert_edge_copies): Ditto.
2162 (expr_invariant_in_loop_p): Ditto.
2163 (TDF_USE_OPS): Parenthesize definition.
2164 (TDF_USE_VOPS): Ditto.
2165
2166 2004-11-13 David Edelsohn <edelsohn@gnu.org>
2167
2168 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
2169 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
2170 (atoll): Declare.
2171 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
2172
2173 2004-11-14 Joseph Myers <joseph@codesourcery.com>
2174
2175 * config/i386/i386.c (override_options): Move loop to set default
2176 tuning to correct place.
2177
2178 2004-11-13 Zak Kipling <zak@transversal.com>
2179
2180 PR target/18300
2181 * config/i386/i386.c (classify_argument): Fix infinite loop when
2182 passing object with 3 or more base classes by value.
2183
2184 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2185
2186 * doc/md.texi (constraints) <% modifier>: Mention that it is
2187 useless when the two alternatives are strictly identical.
2188
2189 2004-11-13 Richard Henderson <rth@redhat.com>
2190
2191 * expmed.c (extract_split_bit_field): Temporarily disable call to
2192 extract_force_align_mem_bit_field.
2193
2194 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2195
2196 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
2197 formatting.
2198
2199 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
2200 lambda-code.c, postreload.c, predict.c, tree-sra.c,
2201 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
2202
2203 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2204
2205 * doc/install.texi (automake): Correctly document that everything now
2206 will use automake 1.9.3.
2207
2208 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
2209
2210 PR target/18347
2211 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
2212 TImode. Sorry for other non-complex larger-than-64-bit modes.
2213 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
2214
2215 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2216
2217 * doc/install.texi (automake): Document that everything now uses 1.9.
2218
2219 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
2220
2221 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
2222 previous loads.
2223
2224 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2225
2226 * tree.h: Fix comment typos.
2227
2228 2004-11-13 Steven Bosscher <stevenb@suse.de>
2229
2230 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
2231 HARD_REGISTER_NUM_P.
2232
2233 * cselib.c (new_cselib_val): Make comment correct and more detailed.
2234 * flow.c (mark_set_1): Likewise.
2235
2236 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
2237 duplicate_eh_regions): Remove.
2238 * except.h (duplicate_eh_regions): Remove prototype.
2239 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
2240 global_const_equiv_varray): Remove.
2241 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
2242 global_const_equiv_varray, set_label_in_map): Remove prototypes,
2243 extern declaration, and #define.
2244 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
2245 (struct inline_remap): Remove.
2246 * varray.c (struct element): Remove entry for const_equiv_data.
2247 * varray.h (struct const_equiv_data): Remove.
2248 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
2249 (union varray_data_tag) <const_equiv>: Remove.
2250 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
2251 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
2252
2253 * regstack.c (record_label_references): Remove unused function.
2254
2255 * rtl.def (VALUE): Update comment.
2256 (LABEL_REF): Remove unused operand 2.
2257 * rtl.h (struct rtx_def): Update for removed accessor macros.
2258 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
2259 REG_LOOP_TEST_P): Remove.
2260 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
2261 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
2262 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
2263
2264 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
2265 Eric Botcazou <ebotcazou@libertysurf.fr>
2266
2267 PR target/18230
2268 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
2269 patterns.
2270 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
2271 (V32I): New macro for 32-bit modes.
2272 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
2273 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
2274 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
2275 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
2276 one_cmpldi_sp64): Use V64I instead of DI.
2277 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
2278 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
2279 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
2280 (nandv64i_vis, nandv32i_vis): New patterns.
2281
2282 2004-11-12 Mike Stump <mrs@apple.com>
2283
2284 * Makefile.in: Add html support.
2285 * java/Make-lang.in: Likewise.
2286 * fortran/Make-lang.in: Likewise.
2287 * treelang/Make-lang.in: Likewise.
2288 * doc/install.texi: Likewise.
2289 * doc/makefile.texi: Likewise.
2290 * doc/sourcebuild.texi: Likewise.
2291
2292 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2293
2294 * tree-ssa-loop-manip.c: Fix a comment typo.
2295
2296 2004-11-12 Mike Stump <mrs@apple.com>
2297
2298 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
2299 renaming this node to Concept Index.
2300 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
2301 to more closely match gcc.texi.
2302
2303 2004-11-12 Jeff Law <law@redhat.com>
2304
2305 * tree-cfg.c (hashtab.h): Include.
2306 (struct edge_to_case_leader_elt): New structure.
2307 (edge_to_case_leader): New.
2308 (edge_to_case_leader_hash): New hashtable hasing function.
2309 (edge_to_case_leader_eq): New hashtable equality function.
2310 (record_switch_edge): New function.
2311 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
2312 (make_switch_expr_edges): Build the edge-to-case-leader
2313 hash table. Tear down the hash table when we're done.
2314 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
2315 CASE_LABEL.
2316 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
2317 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
2318 to use new concept of case leaders to reduce overhead of
2319 redirecting outgoing edges from switch statements.
2320 * tree.c (get_case_label): New function.
2321 * tree.h (CASE_LABEL): Define in terms of get_case_label.
2322 (CASE_LEADER_OR_LABEL): Define.
2323
2324 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2325
2326 * varasm.c (output_addressed_constants): For CONST_DECLs,
2327 output the initializer if present.
2328
2329 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2330
2331 * config/rs6000/darwin.h: Fix confusing typo in comment.
2332
2333 2004-11-12 Devang Patel <dpatel@apple.com>
2334
2335 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
2336
2337 2004-11-12 Devang Patel <dpatel@apple.com>
2338
2339 * tree-if-conv.c (clean_predicate_lists): Use loop header
2340 and latch directly.
2341
2342 2004-11-12 Richard Henderson <rth@redhat.com>
2343
2344 PR 17778
2345 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2346 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2347 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2348 * config/i386/i386-modes.def (XF): Use it.
2349
2350 2004-11-11 Geoffrey Keating <geoffk@apple.com>
2351
2352 * Makefile.in (macro_list): Use move-if-change to avoid spurious
2353 rebuilds.
2354
2355 2004-11-12 Mark Mitchell <mark@codesourcery.com>
2356
2357 PR c++/18416
2358 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
2359 when deciding whether to pass a variable to
2360 cgraph_varpool_finalize_decl or assemble_variable.
2361 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
2362
2363 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
2364
2365 * tree-vectorizer.c: Fix a comment typo.
2366
2367 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
2368
2369 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
2370
2371 2004-11-12 Diego Novillo <dnovillo@redhat.com>
2372
2373 * tree-scalar-evolution.c (analyzable_condition): Remove
2374 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
2375
2376 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
2377
2378 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
2379 Remove m505/roe multilib variant.
2380
2381 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2382
2383 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
2384 to load from the stack.
2385
2386 2004-11-12 Richard Henderson <rth@redhat.com>
2387
2388 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
2389 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
2390 * toplev.h (FL2T__): Remove.
2391 (CLZ_HWI): Rename from FL2T_CLZ__.
2392 (CTZ_HWI): New.
2393 (floor_log2): Simplify.
2394 (exact_log2): New.
2395
2396 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2397
2398 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
2399 compute the first overlapping iterations.
2400
2401 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2402
2403 PR middle-end/18005
2404 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
2405 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
2406
2407 2004-11-12 Steven Bosscher <stevenb@suse.de>
2408
2409 PR tree-optimization/18419
2410 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
2411 pointer set instead of a bitmap.
2412 (walk_use_def_chains): Create, pass and clean up that pointer_set.
2413
2414 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
2415 field an sbitmap.
2416 (init_alias_info): Allocate and zero it here.
2417 (delete_alias_info): Delete it here.
2418 (collect_points_to_info_for): Use it.
2419
2420 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2421
2422 * alias.c (record_alias_subset, addr_side_effect_eval):
2423 Make them static.
2424 * alias.h: Remove the prototype for record_alias_subset.
2425 * expr.h: Remove the commented-out prototype for
2426 record_alias_subset.
2427 * rtl.h: Remove the prototype for addr_side_effect_eval.
2428
2429 * cfglayout.c (choose_inner_scope): Make it static.
2430 * rtl.h: Remove the corresponding prototype.
2431
2432 * cfgloopmanip.c (update_single_exits_after_duplication,
2433 unloop): Make them static.
2434 * cfgloop.h: Remove the corresponding prototypes.
2435
2436 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
2437 Make them static.
2438 * c-tree.h: Remove the corresponding prototypes.
2439
2440 * explow.c (round_push): Make it static.
2441 * expr.h: Remove the corresponding prototype.
2442
2443 * varasm.c (get_named_section_flags, decl_tls_model): Make
2444 them static.
2445 * output.h: Remove the prototype for get_named_section_flags.
2446 * tree.h: Remove the prototype for decl_tls_model.
2447
2448 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2449
2450 * function.c (expand_function_end): Remove an "if" statement
2451 that always triggers.
2452 * stmt.c (expand_null_return_1): Likewise.
2453
2454 2004-11-11 James E. Wilson <wilson@specifixinc.com>
2455
2456 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
2457 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
2458 CLASS_MAX_NREGS): Likewise.
2459
2460 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
2461
2462 PR tree-optimization/17742
2463 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
2464 MINUS_EXPR correctly.
2465
2466 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
2467
2468 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
2469 Give up as soon as the evolution is known not computable.
2470
2471 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2472
2473 PR target/16457
2474 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
2475 mask64_1or2_operand.
2476 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
2477 to spot rlwinm opportunities.
2478 (and64_2_operand): Use mask_1or2_operand.
2479 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
2480
2481 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
2482
2483 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
2484 (vect_update_ivs_after_vectorizer): Update function documentation.
2485 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
2486
2487 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2488
2489 * config/arm/arm.c: Fix a comment typo.
2490
2491 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2492
2493 * bitmap.h (nBITMAP_WORD_BITS): Remove.
2494 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
2495 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
2496 unnecessary casts.
2497 (bitmap_first_set_bit): Return unsigned, use ctzl.
2498 (bitmap_last_set_bit): Remove.
2499 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
2500 unsigned.
2501 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
2502 remove special case code for two word elements.
2503 (bitmap_last_set_bit): Remove.
2504 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
2505 bitmap_first_set_bit with bitmap_empty_p.
2506 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
2507 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
2508 bitmap_last_bit_set.
2509
2510 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2511
2512 PR target/16796
2513 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
2514
2515 PR target/16458
2516 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
2517 unsigned equality compare when we know the operands are unsigned.
2518
2519 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
2520
2521 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
2522 __PIC__ and __pic__ only if TARGET_ABICALLS.
2523 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
2524 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
2525 -KPIC only if not -mno-abicalls.
2526
2527 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
2528 * config/sparc/linux.h, config/sparc/linux64.h
2529 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
2530
2531 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
2532 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
2533 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
2534 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
2535
2536 2004-11-11 Paul Brook <paul@codesourcery.com>
2537
2538 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
2539 register if current_function_uses_pic_offset_table is set.
2540
2541 2004-11-10 David Edelsohn <edelsohn@gnu.org>
2542
2543 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
2544 Change multi-instruction sequences to new attribute.
2545 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
2546 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
2547 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
2548
2549 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
2550
2551 * tree-data-ref.c (build_classic_dist_vector): If either loop
2552 is outside of the nest we asked about, the dependence can't
2553 matter.
2554 (build_classic_dir_vector): Ditto.
2555
2556 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
2557
2558 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
2559 right order.
2560 (force_var_cost): Determine cost of addition and multiplication more
2561 precisely.
2562 (get_computation_cost_at): Add cost for computing address elements to
2563 the final cost.
2564
2565 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
2566 one of the arguments of MINUS_EXPR is an address.
2567 (split_address_to_core_and_offset): New function.
2568 (ptr_difference_const): Handle case when one of the operands is a
2569 pointer.
2570 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
2571 (ptr_difference_cost): Pass addresses instead of objects to
2572 ptr_difference_const.
2573
2574 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
2575
2576 * tree.c (tree_check_failed): Emit general error if the list of
2577 node types is empty.
2578
2579 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2580
2581 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
2582 argument. When the union is passed in the 6th slot, build a
2583 PARALLEL with only one element.
2584 (function_arg): Adjust call to function_arg_union_value.
2585 (function_value): Likewise.
2586
2587 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
2588
2589 PR tree-optimization/17892
2590 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
2591 MINUS_EXPR operator.
2592
2593 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
2594
2595 PR target/18230
2596 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
2597 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
2598
2599 2004-11-10 Steven Bosscher <stevenb@suse.de>
2600
2601 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
2602 (struct basic_block_def): Remove local_set and cond_local_set
2603 fields. Update comment for global_live_at_start.
2604 * flow.c (calculate_global_regs_live): Allocate local_sets and
2605 cond_local_sets here as arrays of bitmaps previously stored in
2606 bb->local_set and bb->cond_local_set. Use xmalloc instead of
2607 obstack allocated bitmaps.
2608
2609 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
2610
2611 PR target/18380
2612 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
2613 hidden.
2614
2615 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
2616
2617 2004-11-09 Jeff Law <law@redhat.com>
2618
2619 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
2620 argument holding last unvisited block. Start search for
2621 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
2622 (connect_infinite_loops_to_exit): Supply last unvisited block
2623 to flow_dfs_compute_reverse_execute.
2624
2625 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
2626
2627 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
2628 doubles.
2629 (floatunssidf2): Same.
2630 (floatsidf2): Same.
2631 ("extendsfdf2"): New expander.
2632 (*extendsfdf2_fpr): Rename.
2633 (*truncdfsf2_fpr): Same.
2634 (*negdf2_fpr): Same.
2635 (*absdf2_fpr): Same.
2636 (*nabsdf2_fpr): Same.
2637 (*adddf3_fpr): Same.
2638 (*subdf3_fpr): Same.
2639 (*muldf3_fpr): Same.
2640 (*divdf3_fpr): Same.
2641
2642 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
2643 ("spe_fix_truncdfsi2"): Same.
2644 (spe_floatunssidf2): Same.
2645 (spe_floatsidf2): Same.
2646
2647 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2648
2649 PR c/18322
2650 * c-common.c (fname_decl): Don't use line number of decl in
2651 diagnostic.
2652
2653 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2654
2655 * config/s390/s390-protos.h (s390_pool_operand): Remove.
2656 * config/s390/s390.c (s390_pool_operand): Likewise.
2657 (s390_extra_constraint_str): Handle 'B' constraints.
2658 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
2659 * config/s390/s390.md: Document 'B' constraints.
2660 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
2661 s390_pool_operand to prevent insns with two literal pool
2662 references. Make pattern commutative.
2663 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
2664 'B' constraint instead of s390_pool_operand.
2665
2666 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2667
2668 * tree-cfg.c (create_bb): Remove unnecessary memset.
2669
2670 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2671
2672 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
2673 (thread_block): Call flush_pending_stmt instead of
2674 copy_phis_to_block.
2675
2676 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2677
2678 * loop-iv.c (iv_number_of_iterations): Make it static.
2679 * cfgloop.h: Remove the corresponding prototype.
2680
2681 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2682
2683 * function.c (combine_temp_slots, assign_parms,
2684 expand_pending_sizes): Make them static.
2685 * tree.h: Remove the corresponding prototypes.
2686
2687 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2688
2689 * emit-rtl.c (copy_most_rtx): Remove.
2690 * rtl.h: Remove the corresponding prototype.
2691
2692 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2693
2694 * cfgloop.c (flow_loops_update): Remove.
2695 * cfgloop.h: Remove the corresponding prototype.
2696
2697 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2698
2699 * conflict.c (mark_reg, conflict_graph_compute): Remove.
2700 * basic-block.h: Remove the prototype for
2701 conflict_graph_compute.
2702
2703 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2704
2705 * tree-if-conv.c (add_to_dst_predicate_list): Change the
2706 second argument to basic_block.
2707 (tree_if_convert_cond_expr): Update call sites.
2708
2709 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2710
2711 * fold-const.c (pedantic_non_lvalue): Make it static.
2712 * tree.h: Remove the corresponding prototype.
2713
2714 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2715
2716 * optabs.c (prepare_operand): Make it static.
2717 * optabs.h: Remove the corresponding prototype.
2718
2719 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2720
2721 * reload1.c (reloads_conflict, gen_reload): Make them static.
2722 * reload.h: Remove the corresponding prototypes.
2723
2724 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2725
2726 * reload.c (refers_to_mem_for_reload_p,
2727 refers_to_regno_for_reload_p): Make them static.
2728 * reload.h: Remove the corresponding prototypes.
2729
2730 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
2731 Eric Botcazou <ebotcazou@libertysurf.fr>
2732
2733 PR target/18230
2734 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
2735 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
2736 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
2737 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
2738 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
2739 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
2740 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
2741 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
2742 MODE_VECTOR_INT modes.
2743 (sparc_extra_constraint_check): Add new constraint 'Y'.
2744 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
2745 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
2746 (V64): New mode macro for 64-bit modes.
2747 (movsf): Use V32 for mode instead of SF.
2748 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
2749 alongside 'G' constraint.
2750 (movdf): Use V64 for mode instead of DF.
2751 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
2752 of DF. Add 'Y' constraint alongside 'G' constraint.
2753 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
2754 instead of DF.
2755
2756 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2757
2758 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
2759 integer NEG and ABS.
2760 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
2761 ("*negdi2_31"): Reimplement using a splitter.
2762 ("*negdi2_cc", "*negdi2_cconly"): New insns.
2763 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
2764 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
2765 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
2766 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
2767 ("*absdi2_cc", "*absdi2_cconly"): New insns.
2768 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
2769 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
2770 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
2771 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
2772 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
2773 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
2774 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
2775 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
2776 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
2777
2778 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2779
2780 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
2781 when eliminating an UNSPEC_CMPINT.
2782 (s390_secondary_input_reload_class): Fix test for CC register reload.
2783 (s390_secondary_output_reload_class): Likewise.
2784 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
2785 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
2786 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
2787 insn patterns with splitters.
2788
2789 2004-11-09 David Edelsohn <edelsohn@gnu.org>
2790
2791 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
2792 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
2793
2794 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2795
2796 * tree-phinodes.c (phi_reverse): New.
2797 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
2798 Use it.
2799 * tree-flow.h: Add a prototype for phi_reverse.
2800
2801 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2802
2803 * tree-ssa-loop-ivopts.c: Fix a comment typo.
2804
2805 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
2806
2807 PR pch/14940
2808 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
2809 definitions.
2810
2811 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2812
2813 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
2814 instead of "arg" in diagnostics.
2815
2816 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2817
2818 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
2819 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
2820 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
2821 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
2822 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
2823 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
2824 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
2825 config/iq2000/iq2000.c, config/m32r/m32r.c,
2826 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
2827 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
2828 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
2829 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
2830 config/sh/symbian.c, config/stormy16/stormy16.c,
2831 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
2832 and %> as appropriate. Use %' as apostrophe in diagnostics where
2833 applicable. Use %< and %> in place of '' quotes where applicable.
2834 Use %qs in place of %<%s%>. Consistently quote __builtin function
2835 names.
2836
2837 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
2838
2839 * gdbinit.in (pbb, pbm): New macros.
2840
2841 2004-11-08 Jeff Law <law@redhat.com>
2842
2843 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
2844 implementing it inline.
2845
2846 * cfganal.c (find_edge): Search pred->succs or succ->preds,
2847 whichever is shorter.
2848
2849 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2850
2851 * passes.c (rest_of_handle_jump): Remove dead code.
2852
2853 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2854
2855 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
2856 the last used element in the worklist.
2857
2858 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2859
2860 * tree-inline.c (remap_save_expr): Make it static.
2861 * tree-inline.h: Remove the corresponding prototype.
2862
2863 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2864
2865 * tree-ssa-loop-niter.c (upper_bound_in_type,
2866 lower_bound_in_type): Make them static.
2867 * tree.h: Remove the corresponding prototypes.
2868
2869 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2870
2871 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
2872 static.
2873 * tree-ssa-live.h: Remove the corresponding prototypes.
2874
2875 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2876
2877 * tree-if-conv.c (tree_if_conversion): Make it static.
2878 * tree-flow.h: Remove the corresponding prototype.
2879
2880 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2881
2882 * tree-ssa-operands.c (build_ssa_operands): Make it static.
2883 * tree-flow.h: Remove the corresponding prototype.
2884
2885 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
2886
2887 PR tree-opt/18299
2888 * tree-inline.c (copy_body_r): Change "t = t" to empty
2889 statement instead of "t".
2890
2891 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2892
2893 * modulo-sched.c (create_partial_schedule,
2894 free_partial_schedule, reset_partial_schedule,
2895 ps_add_node_check_conflicts, rotate_partial_schedule): Make
2896 them static.
2897
2898 2004-11-08 Richard Henderson <rth@redhat.com>
2899
2900 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
2901 the end of a page.
2902
2903 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2904
2905 * sched-deps.c (add_insn_mem_dependence): Make it static.
2906 * sched-int.h: Remove the corresponding prototypes.
2907
2908 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2909
2910 * flow.c (allocate_bb_life_data): Make it static.
2911 * basic-block.h: Remove the corresponding prototype.
2912
2913 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2914
2915 * calls.c (split_complex_values, split_complex_types): Make
2916 them static.
2917 * expr.h: Remove the corresponding prototypes.
2918
2919 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
2920
2921 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
2922 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
2923
2924 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2925
2926 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
2927 statements that always trigger.
2928
2929 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2930
2931 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
2932 tree-scalar-evolution.c, tree-ssa-loop-im.c,
2933 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
2934 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
2935 appropriate.
2936
2937 2004-11-08 Ben Elliston <bje@au.ibm.com>
2938
2939 * cgraph.h (cgraph_calls_p): Remove.
2940 * cgraph.c (cgraph_calls_p): Likewise.
2941
2942 * varray.h (varray_copy): Remove.
2943 * varray.c (varray_copy): Likewise.
2944
2945 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
2946
2947 PR target/18269
2948 * config/darwin.c (machopic_indirect_data_reference):
2949 Call gen_macho_high and gen_macho_low instead of
2950 checking the mode and calling gen_macho_high_di directly.
2951 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
2952 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
2953 to darwin.md.
2954 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
2955 load_macho_picbase, macho_low, macho_high): Removed.
2956 (builtin_setjmp_receiver): Call gen_macho_high and
2957 gen_macho_low instead of checking the mode and calling
2958 gen_macho_high_di directly.
2959 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
2960 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
2961 Moved from rs6000.md.
2962 (macho_high): New expander.
2963 (macho_high_si): Renamed version of macho_high from rs6000.md.
2964 (macho_low): New expander.
2965 (macho_low_si): Renamed version of macho_low from rs6000.md.
2966 (load_macho_picbase): New expander.
2967 (load_macho_picbase_si): Renamed version of load_macho_picbase
2968 from rs6000.md.
2969 (macho_correct_pic): New expander.
2970 (macho_correct_pic_si): Renamed version of macho_correct_pic
2971 from rs6000.md.
2972
2973 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
2974
2975 * c-decl.c (finish_struct): Use complete sentences for diagnostic
2976 for structures or unions with no members or named members.
2977
2978 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
2979
2980 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
2981 taking address of bit-field by assertion.
2982
2983 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2984
2985 * config/s390/s390.md (attribute "op_type"): Default to "NN".
2986 (attribute "atype"): Default to "agen".
2987 (attribute "length"): Default to 6.
2988 (define_asm_attibutes): Remove.
2989 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
2990 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
2991 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
2992 Do not set type attribute to "cs" where already default.
2993 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
2994 "*negdi2_31"):
2995 Do not set type attribute to "other" where already default.
2996 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
2997 "*strlendi", "*strlensi",
2998 "*movmem_long_64", "*movmem_long_31",
2999 "*clrmem_long_64", "*clrmem_long_31",
3000 "*cmpmem_long_64", "*cmpmem_long_31",
3001 "*cmpint_si", "*cmpint_di",
3002 "addti3", "*adddi3_31z", "*adddi3_31",
3003 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
3004 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
3005 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
3006 "*pool_entry", "pool_align", "pool_section_start",
3007 "pool_section_end", "main_pool", "reload_base_31", "pool"):
3008 Do not set op_type attribute to "NN" where already default.
3009 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
3010 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
3011 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
3012 Do not set atype attribute to "agen" where already default.
3013 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
3014
3015 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3016
3017 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
3018
3019 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3020
3021 PR target/16830
3022 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
3023 R3000 and R4000 macros on IRIX.
3024
3025 2004-11-06 Andreas Schwab <schwab@suse.de>
3026
3027 PR target/16286
3028 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
3029 __pixel.
3030
3031 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3032
3033 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
3034
3035 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3036
3037 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
3038 matches no insns already matched by other reservations.
3039 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
3040 matches no insns already matched by other reservations.
3041 ("x_ss"): Remove, replace by ...
3042 ("x_cs"): ... this new reservation. Check type instead of op_type.
3043 Update bypasses to use x_cs instead of x_ss.
3044 ("x_nn"): Remove, replace by ...
3045 ("x_other"): ... this new reservation. Check type instead of op_type.
3046 Add x_other and x_branch to bypasses.
3047 ("x_vs"): New reservation.
3048 * config/s390/s390.md (attribute "type"): Default according to op_type.
3049 ("*execute"): Set type to "cs".
3050
3051 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3052
3053 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
3054 if we are in GIMPLE.
3055
3056 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
3057
3058 PR rtl-optimization/17933
3059 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
3060 (covers_regno_p): New function. Handle SETs of PARALLEL,
3061 and defer the rest to...
3062 (covers_regno_no_parallel_p): New function.
3063
3064 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3065
3066 * config/sparc/sparc.c (function_arg_record_value_1): Skip
3067 fields with zero length.
3068 (function_arg_record_value_2): Likewise.
3069 (function_arg_record_value_3): Use smallest_mode_for_size
3070 instead of mode_for_size.
3071 (function_arg_union_value): Return naked register for unions
3072 with zero length.
3073
3074 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3075
3076 * config/sparc/sparc.c (scan_record_type): Handle vector types.
3077 (function_arg_slotno): Handle vector types specially.
3078 (function_arg_record_value_1): Split fields with vector type and
3079 BLKmode into their subparts.
3080 (function_arg_record_value_2): Likewise. Be prepared to handle
3081 more than 2 registers per field.
3082 (function_arg_union_value): Increment regno inside the loop.
3083 (function_arg_vector_value): New function.
3084 (function_arg): Use it to split fields with vector type and
3085 BLKmode into their subparts and build a PARALLEL. Treat
3086 other vector types like floats.
3087 (function_value): Likewise.
3088 (sparc_pass_by_reference): Handle vector types.
3089 (sparc_return_in_memory): Likewise.
3090
3091 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3092
3093 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
3094 statement that never triggers.
3095
3096 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3097
3098 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
3099 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
3100 ("x_fdivd"): Use also for fsqrtd type.
3101 ("x_fdivs"): Use also for fsqrts type.
3102 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
3103 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
3104 ("fix_truncdfsi2_ibm"): Set type to "other".
3105 ("floatdidf2", "floatdisf2"): Do not clobber CC.
3106 ("floatsidf2", "floatsidf2_ieee"): Likewise.
3107 ("floatsisf2", "floatsisf2_ieee"): Likewise.
3108 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
3109 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
3110 instead of LRER.
3111 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
3112 ("sqrtdf2"): Set type to "fsqrtd".
3113 ("sqrtsf2"): Set type to "fsqrts".
3114
3115 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3116
3117 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
3118 pointer to the last PHI node in the new PHI chain.
3119
3120 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
3121
3122 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
3123 for non-PIC TLS_MODEL_INITIAL_EXEC case.
3124
3125 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3126
3127 * expmed.c: Fix a comment typo.
3128
3129 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3130
3131 PR target/18106
3132 * config/i386/cygming.h
3133 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
3134
3135 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3136
3137 * config/sh/sh4a.md: Fix copyright.
3138
3139 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3140
3141 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
3142 with GCC.
3143
3144 2004-11-05 David Edelsohn <edelsohn@gnu.org>
3145
3146 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
3147 when carry not used. Suggested by Torbjorn Granlund.
3148
3149 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
3150 operand[1] unnecessarily. Suggested by Eric Christopher.
3151 (rs6000_adjust_cost): Increase latency of store to wider load.
3152 (rs6000_rtx_costs): mulli only allows 16-bit constants.
3153
3154 2004-11-05 Stan Shebs <shebs@apple.com>
3155
3156 * config/rs6000/rs6000.c (machopic_output_stub): Output
3157 ldu instead of lwzu for 64-bit stubs.
3158
3159 2004-11-05 Richard Henderson <rth@redhat.com>
3160
3161 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
3162 size 2 with BWX.
3163 (alpha_expand_unaligned_store): Likewise.
3164
3165 2004-11-05 Richard Henderson <rth@redhat.com>
3166
3167 * expmed.c (extract_force_align_mem_bit_field): New.
3168 (extract_split_bit_field): Call it.
3169
3170 2004-11-05 Richard Henderson <rth@redhat.com>
3171
3172 * ia64.md (UNSPEC_SHRP): New.
3173 (dshift_count_operand): New.
3174 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
3175 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
3176
3177 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3178
3179 * c-typeck.c (output_init_element): Return early if value is
3180 error_mark_node.
3181
3182 2004-11-05 James E Wilson <wilson@specifixinc.com>
3183
3184 * invoke.texi (-fno-guess-branch-probability): Rewrite.
3185
3186 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
3187 1 to UNSPEC_GR_SPILL.
3188
3189 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
3190
3191 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
3192 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
3193
3194 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
3195
3196 * bitmap.h (enum bitmap_bits): Remove.
3197 (bitmap_operation): Remove.
3198 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3199 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3200 bitmap_xor_into): Prototype.
3201 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
3202 (bitmap_operation): Remove.
3203 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3204 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3205 bitmap_xor_into): New.
3206 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
3207
3208 PR tree-optimization/18307
3209 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
3210 and ORIG being the same node.
3211
3212 2004-11-04 Geoffrey Keating <geoffk@apple.com>
3213
3214 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
3215 (install-mkheaders): Install the version built for the
3216 host, not for the build machine.
3217 * configure.ac: Always run fixincludes.
3218 (all_outputs): Remove mkheaders.
3219 * configure: Regenerate.
3220 * fixinc.in: Move to fixincludes/.
3221 * mkfixinc.sh: Likewise.
3222 * mkheaders.in: Likewise.
3223 * README-fixinc: Likewise.
3224
3225 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3226
3227 PR target/18263
3228 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
3229 equivalent on the A4.
3230
3231 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3232
3233 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
3234 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
3235 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
3236 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
3237 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
3238 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
3239 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
3240 doc/trouble.texi: Correct end-of-sentence markup and markup of
3241 "etc.", "e.g." and "i.e.". Use @code in various places where
3242 appropriate.
3243
3244 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3245
3246 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
3247 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
3248 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
3249 whitespace.
3250
3251 2004-11-04 Mark Mitchell <mark@codesourcery.com>
3252
3253 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
3254 * doc/extend.texi: Document "notshared" attribute.
3255
3256 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3257
3258 * tree-phinodes.c (make_phi_node): Make it static.
3259 * tree.h: Remove the prototypes for make_phi_node.
3260
3261 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3262
3263 * stmt.c (expand_asm, expand_asm_operands): Make them static.
3264 * tree.h: Remove the prototypes for expand_asm and
3265 expand_asm_operands.
3266
3267 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3268
3269 * passes.c (rest_of_compilation): Make it static.
3270 * toplev.h: Remove the prototype for rest_of_compilation.
3271
3272 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3273
3274 * jump.c (cleanup_barriers): Use delete_insn instead of
3275 delete_barrier.
3276 (delete_barrier): Remove.
3277 * rtl.h: Remove the corresponding prototype.
3278
3279 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3280
3281 * expr.c (mostly_zero_p): Make it static.
3282 * tree.h: Remove the prototype for mostly_zeros_p.
3283
3284 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3285
3286 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
3287
3288 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3289
3290 * builtins.c (expand_builtin_return_addr,
3291 expand_builtin_longjmp, expand_builtin_trap): Make them static.
3292 * expr.h: Remove the prototypes for expand_builtin_longjmp and
3293 expand_builtin_trap.
3294 * tree.h: Remove the prototype for expand_builtin_return_addr.
3295
3296 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3297
3298 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
3299 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
3300 with VAL being NULL.
3301
3302 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3303
3304 * cfghooks.c (delete_basic_block): Remove code to truncate
3305 edge vectors.
3306
3307 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
3308
3309 * flow.c (init_propagate_block_info): Change the type of i to
3310 unsigned.
3311
3312 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
3313
3314 PR tree-optimization/18184
3315 * c-typeck.c (comptypes): Do not treat pointers of different
3316 modes or alias-all flags as equivalent.
3317 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
3318
3319 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
3320
3321 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
3322 reference specific C parser files in examples.
3323
3324 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
3325
3326 PR target/15342
3327 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
3328 as OP_INOUT if the instruction is predicated.
3329
3330 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3331
3332 * bitmap.h: Fix a comment typo. Follow spelling conventions.
3333 * tree-vectorizer.c: Fix a comment typo.
3334
3335 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3336
3337 * sdbout.c (SDB_GENERATE_FAKE): Remove.
3338 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
3339 * system.h: Poison SDB_GENERATE_FAKE.
3340 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
3341
3342 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
3343
3344 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
3345
3346 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3347
3348 PR other/18277
3349 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
3350 2004-10-29 patch
3351
3352 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
3353
3354 * predict.c (propagate_freq): Make bitno unsigned. Move
3355 npredecessors update out of loop.
3356
3357 * bitmap.h (bitmap_iterator): Remove word_bit and bit
3358 fields. Rename others.
3359 (bmp_iter_common_next_1, bmp_iter_single_next_1,
3360 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
3361 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
3362 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
3363 bmp_iter_and_next): Remove.
3364 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
3365 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
3366 New.
3367 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
3368 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
3369
3370 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
3371 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
3372 bitmap_and_into, bitmap_ior_into as appropriate.
3373 * except.c (remove_eh_handler): Likewise.
3374 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
3375 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
3376 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
3377 * tree-ssa-live.h (live_merge_and_clear): Likewise.
3378 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
3379 Likewise.
3380
3381 * bitmap.c (bitmap_print): Make bitno unsigned.
3382 * bt-load.c (clear_btr_from_live_range,
3383 btr_def_live_range): Likewise.
3384 * caller-save.c (save_call_clobbered_regs): Likewise.
3385 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3386 * cfgcleanup.c (thread_jump): Likewise.
3387 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
3388 * conflict.c (conflict_graph_compute): Likewise.
3389 * ddg.c (add_deps_for_use): Likewise.
3390 * df.c (df_refs_update): Likewise.
3391 * except.c (remove_eh_handler): Likewise.
3392 * flow.c (verify_local_live_at_start, update_life_info,
3393 initialize_uninitialized_subregs, propagate_one_insn,
3394 free_propagate_block_info, propagate_block, find_use_as_address,
3395 reg_set_to_hard_reg_set): Likewise.
3396 * gcse.c (clear_modify_mem_tables): Likewise.
3397 * global.c (global_conflicts, build_insn_chain): Likewise.
3398 * ifcvt.c (dead_or_predicable): Likewise.
3399 * local-alloc.c (update_equiv_regs): Likewise.
3400 * loop.c (load_mems): Likewise.
3401 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
3402 Likewise.
3403 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
3404 Likewise.
3405 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
3406 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
3407 * sched-rgn.c (propagate_deps
3408 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
3409 * tree-dfa.c (dump_dfa_stats
3410 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
3411 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
3412 Likewise.
3413 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
3414 free_temp_expr_table, find_replaceable_exprs): Likewise.
3415 * tree-sra.c (scan_function, scalarize_parms): Likewise.
3416 * tree-ssa-alias.c (init_alias_info,
3417 compute_points_to_and_addr_escape,
3418 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
3419 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
3420 * tree-ssa-live.c (new_tree_live_info, live_worklist,
3421 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
3422 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
3423 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
3424 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
3425 add_call_read_ops): Likewise.
3426 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
3427 * tree-ssa-live.h (num_var_partitions): Return unsigned.
3428
3429 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
3430
3431 PR tree-optimization/18009
3432 * tree-vectorizer.h (enum dr_alignment_support): New type.
3433 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
3434 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
3435 single data_reference (instead of a varray of references).
3436 * tree-vectorizer.c (new_loop_vec_info): Likewise.
3437 (vect_gen_niters_for_prolog_loop): Likewise.
3438 (vect_update_inits_of_drs): Likewise.
3439
3440 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
3441 vect_enhance_data_refs_alignment.
3442 (vect_do_peeling_for_alignment): Likewise.
3443 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
3444 this functionality used to be in vect_analyze_data_refs_alignment.
3445 Also update DR_MISALIGNMENT due to peeling; this functionality used to
3446 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
3447 (vect_analyze_data_refs_alignment): Decision on whether and by how much
3448 to peel moved to vect_enhance_data_refs_alignment. Call
3449 vect_supportable_dr_alignment.
3450
3451 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
3452 (vect_compute_data_refs_alignment): Return bool. Consider return value
3453 of vect_compute_data_ref_alignment and return true/false accordingly.
3454 (vect_enhance_data_refs_alignment): Consider return value of
3455 vect_compute_data_refs_alignment and return true/false accordingly.
3456
3457 (vect_supportable_dr_alignment): New function.
3458 (vectorizable_store): Call vect_supportable_dr_alignment.
3459 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
3460 support checks moved from here to vect_supportable_dr_alignment.
3461
3462 (vect_transform_loop): Avoid 80 columns overflow.
3463
3464 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3465
3466 * timevar.c (timevar_enable): Change from
3467 static.
3468 (timevar_push): Rename to ...
3469 (timevar_push_1): this and remove the
3470 enabled check.
3471 (timevar_pop): Rename to ...
3472 (timevar_pop_1): this and remove the
3473 enabled check.
3474 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
3475 (timevar_pop): New macro.
3476 (timevar_push): New macro.
3477 (timevar_enable): Declare.
3478
3479 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3480
3481 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
3482 libgcc for shared libraries.
3483
3484 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3485
3486 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
3487 * config/s390/s390.c (s390_split_access_reg): New function.
3488 (regclass_map): Add access registers.
3489 (get_thread_pointer): Use access register instead of UNSPEC_TP.
3490 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
3491 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
3492 (TP_REGNUM): New define.
3493 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3494 REG_ALLOC_ORDER): Add access registers.
3495 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
3496 CANNOT_CHANGE_MODE_CLASS): Support access registers.
3497 (enum reg_class): Add ACCESS_REGS.
3498 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
3499 (REG_CLASS_FROM_LETTER): Add 't' constraint.
3500 (REGISTER_NAMES): Add access registers.
3501 * config/s390/s390.md (UNSPEC_TP): Remove.
3502 ("*movdi_64"): Add access register alternatives. Provide splitters
3503 to split DImode access register <-> GPR moves into SImode moves.
3504 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
3505 ("movstrictsi"): Likewise.
3506 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
3507 ("set_tp_64", "set_tp_31"): Likewise.
3508 ("*set_tp"): New insn.
3509
3510 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3511
3512 * tree-phinodes.c (resize_phi_node): Copy only a portion of
3513 the PHI node currently in use.
3514
3515 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3516
3517 PR tree-opt/18231
3518 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
3519 also.
3520
3521 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
3522
3523 PR tree-optimization/18270
3524 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
3525 abnormal edges, commit all pending stmts on incoming edges.
3526
3527 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3528
3529 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
3530 cause extra costs. Generate canonical RTL.
3531
3532 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
3533
3534 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
3535 (lambda_compute_target_space). Ditto.
3536 * lambda.h (lambda_trans_matrix): Ditto.
3537 (lambda_linear_expression): Ditto.
3538 (lambda_body_vector): Ditto.
3539 (lambda_loopnest): Ditto.
3540 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
3541 update comments, and remove pointless addition of 0.
3542 (linear_transform_loops): Update comments.
3543
3544 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
3545
3546 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
3547 CEIL_MOD_EXPR.
3548
3549 2004-11-03 Jeff Law <law@redhat.com>
3550
3551 * predict.c (struct block_info_def): Kill "tovisit" field.
3552 (propagate_freq): Accept new "tovisit" parameter. Change
3553 read/write access methods for "tovisit" to check the "tovisit"
3554 bitmap instead of a bit in block_info_def.
3555 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
3556 it to propagate_freq.
3557
3558 * stmt.c (expand_case): Speed up code to detect duplicate case
3559 label targets and count unique case label targets.
3560
3561 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3562
3563 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
3564
3565 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3566
3567 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
3568
3569 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3570
3571 * tree-cfg.c (find_taken_edge): Abort if we are given a
3572 statement that is neither COND_EXPR nor SWITCH_EXPR.
3573
3574 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
3575
3576 * fold-const.c (fold): Reassociate also (x - mult) + mult and
3577 (mult - x) + mult. Cast operands of expression after applying
3578 distributive law to the correct types. Apply distributive law
3579 to a * c - b * c for all non-float types.
3580
3581 2004-11-02 Geoffrey Keating <geoffk@apple.com>
3582
3583 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
3584 because we don't want to run them now; instead, set them to
3585 stmp-install-fixproto or stmp-install-fixinc.
3586 * Makefile.in (stmp-install-fixproto): New.
3587 (stmp-install-fixinc): New.
3588 * configure: Regenerate.
3589
3590 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
3591
3592 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
3593 of bitmap_xor.
3594
3595 2004-11-02 Ziemowit Laski <zlaski@apple.com>
3596
3597 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
3598 (c_types_compatible_p): Move function definition...
3599 * c-objc-common.c (c_types_compatible_p): ...here.
3600 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
3601 c-lang.c.
3602
3603 2004-11-02 Steven Bosscher <stevenb@suse.de>
3604
3605 * cfgloop.h (struct loop): Update comment.
3606 * cse.c (cse_main): Remove obsolete comment.
3607
3608 * expr.h (gen_cond_trap): Move prototype under functions provided
3609 by optabs.c.
3610 (canonicalize_condition, get_condition): Move to...
3611 * rtl.h (canonicalize_condition, get_condition): ...here.
3612 (branch_target_load_optimize): Add comment that this function is
3613 in bt-load.c.
3614 * loop.c (canonicalize_condition, get_condition): Move to...
3615 * rtlanal.c (canonicalize_condition, get_condition): ...here.
3616 * sched-deps.c (get_condition): Rename to sched_get_condition.
3617 (add_dependence): Update this caller.
3618
3619 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
3620
3621 PR tree-opt/16808
3622 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
3623 that the vops get marked for renaming.
3624
3625 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
3626
3627 * config/s390/s390.md ("movcc"): Set type attribute.
3628
3629 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
3630
3631 * tree-phinodes.c (add_phi_arg): Add an assertion that the
3632 edge already exists.
3633
3634 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
3635
3636 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
3637 element that's being removed.
3638
3639 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
3640
3641 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
3642 arguments using PENDING_STMT.
3643 (thread_block): Call copy_phis_to_block after redirecting an
3644 edge.
3645
3646 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
3647
3648 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
3649 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
3650 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
3651 (bitmap_ior_and_compl_into): Produce bool.
3652 (bitmap_union_of_diff): Rename to ...
3653 (bitmap_ior_and_compl): ... here. Produce bool.
3654 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
3655 bitmap_operation directly.
3656 (bitmap_union_of_diff): Rename to ...
3657 (bitmap_ior_and_compl): ... here. Return bool, use
3658 bitmap_operation directly.
3659 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
3660 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
3661 * global.c (modify_bb_reg_pav): Likewise.
3662
3663 * bitmap.h (bitmap_equal_p): Return bool.
3664 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
3665 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
3666 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
3667 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
3668 bitmap_intersect_compl_p.
3669 * ifcvt (dead_or_predicable): Likewise.
3670
3671 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
3672
3673 PR rtl-optimization/17104
3674 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
3675 loads in zero_extend.
3676
3677 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
3678
3679 PR debug/18242
3680 * toplev.c (debug_type_names): Remove "dwarf-1".
3681
3682 2004-11-02 Ben Elliston <bje@au.ibm.com>
3683
3684 * timevar.h (timevar_get): Remove.
3685 * timevar.c (timevar_get): Remove unused function.
3686
3687 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
3688
3689 * doc/include/texinfo.tex: Update from Texinfo CVS.
3690
3691 2004-11-02 Ben Elliston <bje@au.ibm.com>
3692
3693 * cppdefault.h (cpp_SYSROOT): Remove.
3694 * cppdefault.c (cpp_SYSROOT): Likewise.
3695
3696 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
3697
3698 PR tree-optimization/16447
3699 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
3700 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
3701 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
3702 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
3703 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
3704 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
3705 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
3706 (identical_copies_p): New. Return true is two copies are the same.
3707 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
3708 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
3709 for a basic block.
3710 (perform_edge_inserts): New. Determine what to do with all stmts that
3711 have been inserted on edges.
3712 (remove_ssa_form): Analyze and commit edges from here.
3713
3714 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
3715
3716 PR bootstrap/18232
3717 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
3718 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
3719 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
3720 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
3721
3722 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
3723
3724 PR c/18239
3725 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
3726 parameter declarations.
3727
3728 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
3729
3730 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
3731 (s390_secondary_input_reload_class)
3732 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
3733 register.
3734 (s390_expand_cmpmem): Enable cmpmem implementation.
3735 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
3736 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
3737 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
3738 * config/s390/s390.md ("movcc"): New insn pattern.
3739 * doc/md.texi: Document 'c' constraint for s390.
3740
3741 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
3742
3743 PR c++/18064
3744 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
3745 extension.
3746
3747 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
3748
3749 Fix PR tree-optimization/17672
3750 Fix PR tree-optimization/18168
3751
3752 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
3753 assert test.
3754 (gcc_tree_to_linear_expression): Add extra to existing constant.
3755 (depth_of_nest): Factor out function used in various places.
3756 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
3757 functional changes.
3758 (find_induction_var_from_exit_cond): Stop guessing, and just
3759 get the right answer :).
3760 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
3761 Print out message about result of attempt to create perfect nest.
3762 (lbv_to_gcc_expression): Add type argument, use it to do math
3763 and induction variable creation.
3764 (lle_to_gcc_expression): Ditto.
3765 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
3766 oldiv. Pass type argument to lle_to_gcc_expression and
3767 lbv_to_gcc_expression.
3768 Reset number of iterations after transformation.
3769 (perfect_nestify): Remove useless pre-allocation, and cleanup
3770 a small amount.
3771
3772 * tree-data-ref.c (build_classic_dist_vector): Return false for
3773 dependences completely outside of the loop nest we asked about.
3774 (build_classic_dir_vector): Ditto.
3775 (compute_data_dependences_for_loop): Only add dependence relations
3776 inside the loop we asked about.
3777
3778 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
3779 Compute immediate uses.
3780
3781 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
3782
3783 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
3784
3785 * tree-cfg.c (thread_jumps): Fix a comment typo.
3786
3787 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
3788
3789 * tree-cfg.c (thread_jumps): Fix a comment typo.
3790
3791 2004-10-31 Nicolas Pitre <nico@cam.org>
3792
3793 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
3794 values smaller than 2^32.
3795
3796 2004-10-31 Jeff Law <law@redhat.com>
3797
3798 * cfgloop.h (struct loop): Remove unused "nodes" field.
3799 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
3800 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
3801 instead of calling flow_bb_inside_loop_p for every basic block
3802 in the function.
3803 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
3804
3805 2004-10-31 Graham Stott <graham.stott@btinternet.com>
3806
3807 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
3808 INT_5_BITS instead of VAL_5_BITS_P.
3809
3810 2004-10-31 Roger Sayle <roger@eyesopen.com>
3811
3812 PR middle-end/14521
3813 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
3814 for consistent quoting in diagnostic messages.
3815 (expand_call_inline): Likewise.
3816 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3817 * tree-ssa.c (warn_uninitialized_var): Likewise.
3818 (warn_uninitialized_phi): Likewise.
3819
3820 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
3821
3822 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
3823 mode check.
3824
3825 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
3826
3827 * c-common.c: Fix a comment typo.
3828
3829 2004-10-31 Jason Merrill <jason@redhat.com>
3830
3831 PR middle-end/17526
3832 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
3833 aggregate types that are not BLKmode.
3834
3835 2004-10-30 Ziemowit Laski <zlaski@apple.com>
3836
3837 * c-common.h (objc_lookup_ivar): Add second parameter to
3838 prototype.
3839 * c-typeck.c (build_external_ref): After looking up symbol,
3840 pass it to objc_lookup_ivar() to decide whether it or the
3841 ivar should be used, rather than deciding the issue locally.
3842 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
3843 which is simply returned in the non-ObjC case.
3844
3845 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
3846
3847 * sdbout.c (sdbout_symbol): Do not output type .def statements
3848 for builtin types.
3849
3850 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3851
3852 * c-common.c (catenate_strings): New.
3853 (c_parse_error): Use it. Don't over-escape.
3854
3855 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
3856
3857 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
3858 modify the for loop expressions for it. Remove unnecessary casts.
3859 (sh_expand_prologue): Declare reg as unsigned.
3860 (sh_gimplify_va_arg_expr): Initinalize lab_over.
3861 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
3862
3863 2004-10-30 Geoffrey Keating <geoffk@apple.com>
3864
3865 * doc/invoke.texi (Darwin Options): Improve description of
3866 how the subtype is chosen.
3867
3868 2004-10-30 Roger Sayle <roger@eyesopen.com>
3869
3870 PR middle-end/18096
3871 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
3872 the stack adjustment, "size", is valid for Pmode. If the stack
3873 frame is too large, generate a trap insn and issue a warning.
3874
3875 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
3876
3877 * tree-ssa-dom.c: Fix comment typos.
3878
3879 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
3880
3881 * config/sh/sh.c (prepare_move_operands): Use operands[0]
3882 for the output rtl if no_new_pseudos is set. Remove redundant
3883 line.
3884
3885 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
3886
3887 PR c/16666
3888 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
3889 determining whether to copy parameter types from a previous
3890 prototype declaration.
3891
3892 2004-10-29 Roger Sayle <roger@eyesopen.com>
3893
3894 PR rtl-optimization/17581
3895 * cselib.c (cselib_process_insn): The last instruction of a libcall
3896 block, with the REG_RETVAL note, should be considered in the libcall.
3897 * gcse.c (do_local_cprop): Allow constants to be propagated outside
3898 of libcall blocks.
3899 (adjust_libcall_notes): Use simplify_replace_rtx instead of
3900 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
3901
3902 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
3903
3904 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
3905
3906 2004-10-29 Jeff Law <law@redhat.com>
3907
3908 * tree-ssa-dom.c (struct edge_info): New structure holding
3909 edge equivalences and edge redirection information.
3910 (get_eq_expr_value, record_dominating_conditions): Kill.
3911 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
3912 Call record_edge_info.
3913 (allocate_edge_info, free_edge_info): New.
3914 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
3915 rather than cprop_into_phis. Free all edge infos before threading
3916 jumps.
3917 (thread_across_edge): Allocate new edge info structures as needed
3918 and store the redirection target into the edge info structure
3919 instead of the edge's AUX field.
3920 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
3921 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
3922 Revamp code which finds and records equivalences associated with
3923 edges to use saved data in the edge_info structure.
3924 (record_equivalencs_from_phis): Similarly.
3925 (dom_opt_finalize_block): Revamp code which finds and records
3926 equivalences associated with edges to use saved data in the
3927 edge_info structure.
3928 (build_and_record_new_cond): New function.
3929 (record_conditions): Use build_and_record_new_cond to record
3930 dominating conditions.
3931 (record_edge_info): New function.
3932 (record_range): Tighten test for conditions which create
3933 useful range records.
3934
3935 2004-10-29 Geoffrey Keating <geoffk@apple.com>
3936
3937 * config/i386/darwin.h (ASM_SPEC): Simplify.
3938 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
3939 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
3940 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
3941 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
3942 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
3943 in all cases. Pass the right -arch or -arch_only based on -mcpu.
3944 (ASM_SPEC): Handle -force_cpusubtype_ALL.
3945 * doc/invoke.texi (Darwin Options): Improve documentation for
3946 Darwin linker (and libtool) switches.
3947
3948 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
3949
3950 2004-10-29 Stan Shebs <shebs@apple.com>
3951
3952 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
3953
3954 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
3955
3956 * tree-phinodes.c (allocate_phi_node): New.
3957 (make_phi_node, resize_phi_node): Use it.
3958
3959 2004-10-29 David Edelsohn <edelsohn@gnu.org>
3960
3961 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
3962 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
3963
3964 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
3965
3966 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
3967 the whole PHI node.
3968 * tree.h (tree_phi_node): Tell the garbage collector to chase
3969 num_args arguments.
3970
3971 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
3972
3973 * opts.c (decode_options): Lower the crossjump threshold for -Os.
3974
3975 2004-10-29 Diego Novillo <dnovillo@redhat.com>
3976
3977 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
3978
3979 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
3980
3981 * bitmap.h (bitmap_empty_p): New.
3982 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3983 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
3984 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
3985 operation macros.
3986 (bitmap_ior_and_compl): Rename to ...
3987 (bitmap_ior_and_compl_into): ... here.
3988 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
3989 (bitmap_ior_and_compl): Rename to ...
3990 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
3991 flag.
3992 (bitmap_union_of_diff): Use renamed bitmap functions.
3993 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
3994 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
3995 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
3996 * df.c (df_bb_rd_local_compute)
3997 * flow.c (calculate_global_regs_live,
3998 init_propagate_block_info): Likewise.
3999 * ifcvt.c (find_if_case_1, find_if_case_2,
4000 dead_or_predicable): Likewise.
4001 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
4002 reset_conflicts, conflicts_between_webs): Likewise.
4003 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
4004 detect_web_parts_to_rebuild): Likewise.
4005 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
4006 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
4007 * tree-sra.c (decide_instantiations): Likewise.
4008 * tree-ssa-alias.c (create_name_tags,
4009 merge_pointed_to_info): Likewise.
4010 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
4011 * tree-ssa-loop-im.c (move_computations): Likewise.
4012 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
4013 * tree-ssa-pre.c (fini_pre): Likewise.
4014 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
4015 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
4016 * tree-vectorizer.c (vectorize_loops): Likewise.
4017
4018 2004-10-29 Nick Clifton <nickc@redhat.com>
4019
4020 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
4021 adding the PIC register to the fixed_regs array, also add it
4022 to the call_used_regs array.
4023
4024 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
4025
4026 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
4027 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
4028
4029 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
4030
4031 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
4032 (rewrite_blocks): Modify argument, and use it to decide which
4033 function to call.
4034 (rewrite_def_def_chains): Call rewrite_blocks with true here.
4035 (rewrite_into_ssa): and call it with false here.
4036
4037 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
4038
4039 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
4040 triggers into gcc_assert.
4041
4042 2004-10-28 Diego Novillo <dnovillo@redhat.com>
4043
4044 PR tree-optimization/16728
4045 * tree-flow.h (get_ptr_info): Declare.
4046 * tree-ssa-alias.c (get_ptr_info): Make extern.
4047 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
4048 alias information.
4049
4050 2004-10-28 Stan Shebs <shebs@apple.com>
4051
4052 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
4053 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
4054 case.
4055
4056 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
4057
4058 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
4059 prevent their later unnecessary registration.
4060 (mf_build_check_statement_for): Remove "addr" argument, and
4061 related "__mf_value" generated code. Update callers.
4062 (mf_decl_eligible_p): New function, factored from mx_register_decls.
4063 (mx_register_decls): Call it.
4064 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
4065 to restore support for complex nested expressions.
4066 (mudflap_enqueue_decl): Simplify. Move registration call emission
4067 out ...
4068 (mudflap_finish_file): ... to here.
4069 (mudflap_enqueue_constant): Remove dump code.
4070
4071 2004-10-28 Zack Weinberg <zack@codesourcery.com>
4072
4073 PR 18199
4074 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
4075 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
4076 (dbxout_finish_complex_stabs): Update to match.
4077 (dbxout_symbol_location): Call emit_pending_bincls_if_required
4078 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
4079 dbxout_begin_complex_stabs_noforcetext.
4080 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
4081 N_GSYM, using new SYM parameter. Correct logic for special
4082 cases for N_FUN.
4083
4084 * varasm.c (function_section): If DECL is NULL_TREE, don't try
4085 to do anything else. Do not call get_insns if cfun or
4086 cfun->emit are NULL.
4087
4088 2004-10-28 Adam Nemet <anemet@lnxw.com>
4089
4090 PR middle-end/18160
4091 * c-typeck.c (c_mark_addressable): Issue error if address of a
4092 register variable is taken. Use "%qD" to print DECL_NAME.
4093
4094 2004-10-28 Diego Novillo <dnovillo@redhat.com>
4095
4096 * opts.c (decode_options): Don't run PRE at -Os.
4097
4098 2004-10-28 Richard Henderson <rth@redhat.com>
4099
4100 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
4101 zero in the conditional.
4102 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
4103
4104 2004-10-28 Richard Henderson <rth@redhat.com>
4105
4106 * cse.c (memory_extend_rtx): Remove.
4107 (cse_main): Don't set it.
4108 (cse_insn): Use a local buffer instead.
4109
4110 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
4111
4112 * profile.c (branch_prob): Call to init_edge_profiler added.
4113 * rtl-profile.c (rtl_init_edge_profiler): New function.
4114 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
4115 call to safe_insert_insn_on_edge.
4116 (rtl_profile_hooks): rtl_init_edge_profiler added.
4117 * tree-profile.c (tree_init_edge_profiler): New function.
4118 (tree_profile_hooks): tree_init_edge_profiler added.
4119 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
4120
4121 2004-10-28 Nick Clifton <nickc@redhat.com>
4122
4123 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
4124 emit_jump_insn() to generate the return instruction.
4125
4126 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4127
4128 * tree-phinodes.c: Remove trailing whitespace.
4129
4130 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4131
4132 * tree-ssa-loop-ivopts.c: Fix a comment typo.
4133 * doc/invoke.texi: Fix a typo.
4134
4135 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4136
4137 * Makefile.in (OBJS-common): Remove duplicates.
4138
4139 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4140
4141 * lambda-code.c (nestify_update_pending_stmts): Remove.
4142 (perfect_nestify): Use flush_pending_stmts instead of
4143 nestify_update_pending_stmts.
4144 * tree-cfg.c (tree_make_forwarder_block): Use
4145 flush_pending_stmts.
4146 * tree-flow.h: Add a prototype for flush_pending_stmts.
4147 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
4148 Use flush_pending_stmts.
4149 (lv_update_pending_stmts): Remove.
4150 (tree_ssa_loop_version): Use flush_pending_stmts instead of
4151 lv_update_pending_stmts.
4152 * tree-ssa.c (flush_pending_stmts): New.
4153
4154 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
4155
4156 PR target/15286
4157 * final.c (alter_subreg): Compute correct offset to use with
4158 paradoxical SUBREGs of memory operands.
4159 * recog.c (general_operand): Allow paradoxical SUBREGs of
4160 memory operands after reload.
4161 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
4162 has failed when passed a hard register.
4163
4164 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
4165
4166 * function.c (assign_parm_setup_block): Handle parallels correctly.
4167
4168 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
4169
4170 * final.c (shorten_branches): Initialize flags structure.
4171
4172 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
4173
4174 * tree.c (int_cst_node, int_cst_hash_table): New variables.
4175 (init_ttree): Initialize them.
4176 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
4177 (build_int_cst_wide): Use hash table for oversized integers.
4178
4179 2004-10-28 Nick Clifton <nickc@redhat.com>
4180
4181 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
4182 begin_label.
4183
4184 2004-10-27 Richard Henderson <rth@redhat.com>
4185
4186 PR middle-end/18163
4187 * expr.c (emit_group_load): Don't go force temporary for memory
4188 or concat source.
4189 (emit_group_store): Similarly.
4190
4191 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
4192
4193 PR other/18186
4194 * common.opt (--param): Fix spelling of parameter.
4195
4196 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
4197
4198 PR tree-opt/17529
4199 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
4200 Don't fold statement.
4201 <case ASM_EXPR>: Fold the statement.
4202
4203 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4204
4205 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
4206 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
4207
4208 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
4209
4210 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
4211 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
4212 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
4213 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
4214
4215 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
4216
4217 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
4218 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
4219 punctuation outside quotes.
4220
4221 2004-10-27 David Mosberger <davidm@hpl.hp.com>
4222 James E Wilson <wilson@specifixinc.com>
4223
4224 PR target/13158
4225 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
4226 sibcall alloc instruction.
4227 (process_set): Handle sibcall alloc instruction.
4228
4229 2004-10-27 Geoffrey Keating <geoffk@apple.com>
4230
4231 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
4232 SUBTARGET_ATTRIBUTE_TABLE.
4233 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
4234 (SUBTARGET_ATTRIBUTE_TABLE): Define.
4235 * config/darwin.c (darwin_handle_weak_import_attribute): New.
4236 (HAVE_DEAD_STRIP): Delete.
4237 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
4238 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
4239 Prototype.
4240
4241 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
4242
4243 * config/darwin.h (GTHREAD_USE_WEAK): Define.
4244
4245 2004-10-28 Ben Elliston <bje@au.ibm.com>
4246
4247 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
4248 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
4249 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
4250 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
4251 * tree-sra.c: Include "params.h".
4252 (decide_block_copy): Use new parameters.
4253 * doc/invoke.texi (Optimize Options): Document new SRA pass
4254 parameters sra-max-structure-size and sra-field-structure-ratio.
4255
4256 2004-10-27 Nicolas Pitre <nico@cam.org>
4257
4258 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
4259
4260 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
4261
4262 PR tree-optimization/18048
4263 * fold-const.c (try_move_mult_to_index): New function.
4264 (fold): Use try_move_mult_to_index.
4265 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
4266 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
4267 an all-ones unsigned constant without extra bits.
4268 * tree.c (build_low_bits_mask): New function.
4269 * tree.h (build_low_bits_mask): Declare.
4270
4271 2004-10-27 David Edelsohn <edelsohn@gnu.org>
4272
4273 PR target/17956
4274 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
4275 final condition.
4276 (minsf3): Same.
4277 (maxdf3): Same.
4278 (mindf3): Same.
4279
4280 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
4281
4282 * tree-cfg.c (thread_jumps): Speed up by reordering the two
4283 conditions for entering basic blocks into worklist.
4284
4285 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
4286
4287 * tree-cfg.c (thread_jumps): Speed up by pretending to have
4288 ENTRY_BLOCK_PTR in worklist.
4289
4290 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
4291
4292 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
4293 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
4294
4295 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
4296
4297 Fix PR tree-optimization/17133
4298
4299 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
4300 def kill operand.
4301
4302 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
4303 (get_v_must_def_result_ptr): Modify for new structure of
4304 v_must_defs array.
4305 (get_v_must_def_kill_ptr): New.
4306 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
4307 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
4308 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
4309 (op_iter_init): Initialize new mustu members.
4310 (op_iter_next_mustdef): New function.
4311 (op_iter_init_mustdef): Ditto.
4312
4313 * tree-flow.h (rewrite_def_def_chains): New function.
4314
4315 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
4316 (ssa_mark_def_sites): Ditto.
4317 (rewrite_stmt): Ditto.
4318 (ssa_rewrite_stmt): Ditto.
4319 (rewrite_blocks): Factor out from rewrite_into_ssa.
4320 (mark_def_block_sites): Ditto.
4321 (rewrite_def_def_chains): New function, just rewrites def-def
4322 chains without phi node insertion.
4323
4324 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
4325
4326 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
4327
4328 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
4329 they include the rhs now.
4330
4331 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
4332 V_MUST_DEF_RESULT.
4333
4334 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
4335 Update callers.
4336 (mark_really_necessary_kill_operand_phis): New function.
4337 (perform_tree_ssa_dce): Call it.
4338 (pass_dce): Add TODO_fix_def_def_chains.
4339 (pass_cd_dce): Ditto.
4340
4341 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
4342 well.
4343 (rewrite_mem_refs): Ditto.
4344
4345 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
4346 as well.
4347
4348 * tree-ssa-operands.c (allocate_v_may_def_optype):
4349 v_may_def_operand_type_t became v_def_use_operand_type_t.
4350 (allocate_v_must_def_optype) Ditto.
4351 (finalize_ssa_v_must_defs): Update for new operand type, as well
4352 as setting the use portion as well.
4353 (copy_virtual_operands): Copy the kill operand as well.
4354 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
4355 V_MUST_DEF_RESULT.
4356
4357 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
4358 v_def_use_operand_type.
4359 (v_must_def_optype_d): Use v_def_use_operand_type.
4360 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
4361 (V_MUST_DEF_KILL_*): New macros.
4362 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
4363 members.
4364 Rename existing must_i and num_v_must members to mustd_i and
4365 num_v_mustd.
4366 (SSA_OP_VMUSTDEFKILL): New flag.
4367 (SSA_OP_VIRTUAL_KILLS): New flag.
4368 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
4369 (SSA_OP_ALL_KILLS): New flag.
4370 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
4371
4372 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
4373
4374 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
4375 became V_MUST_DEF_RESULT.
4376 (rename_variables_in_bb): Rename kill pointer as well.
4377
4378 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
4379 immediate uses.
4380
4381 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
4382
4383 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
4384 the block that needs it.
4385
4386 2004-10-27 Zack Weinberg <zack@codesourcery.com>
4387
4388 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
4389 ATTRIBUTE_UNUSED.
4390
4391 2004-10-27 Zack Weinberg <zack@codesourcery.com>
4392
4393 * c-lex.c (cb_def_pragma): Clean up code for making location
4394 palatable to diagnostic.c.
4395
4396 2004-10-27 Steven Bosscher <stevenb@suse.de>
4397
4398 PR tree-optimization/17757
4399 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
4400 without any PHI arguments left. Make sure the argument that
4401 we're supposed to remove exists at all.
4402
4403 2004-10-27 Paul Brook <paul@codesourcery.com>
4404
4405 * configure.ac: Don't test for [build] __cxa_atexit when building a
4406 cross compiler.
4407 * configure: Regenerate.
4408
4409 2004-10-27 Paul Brook <paul@codeosurcery.com>
4410
4411 * configure.ac: Use build_exeext not host_exeext when lookin for
4412 target tools.
4413 * configure: Regenerate.
4414
4415 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
4416
4417 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
4418
4419 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
4420 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
4421
4422 PR middle-end/14684
4423 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
4424 to match -fprofile-use.
4425
4426 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
4427
4428 * config/rs6000/rs6000.c: Fix a comment typo.
4429
4430 2004-10-27 Zack Weinberg <zack@codesourcery.com>
4431
4432 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
4433 counter.
4434
4435 2004-10-27 Andreas Schwab <schwab@suse.de>
4436
4437 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
4438 unused.
4439 (default_stabs_asm_out_constructor): Likewise.
4440
4441 2004-10-26 Geoffrey Keating <geoffk@apple.com>
4442
4443 * builtins.c (fold_builtin_unordered_cmp): Always bring both
4444 operands to the same type.
4445
4446 2004-10-26 James E Wilson <wilson@specifixinc.com>
4447
4448 PR target/18010
4449 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
4450
4451 2004-10-26 Zack Weinberg <zack@codesourcery.com>
4452
4453 * dbxout.c: Include obstack.h.
4454 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
4455 default definition.
4456 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
4457 Default-define here.
4458 (DBX_CONTIN_LENGTH): Move definition with others.
4459 (DBX_FINISH_STABS): New target macro.
4460 (current_sym_code, current_sym_value, current_sym_addr)
4461 (current_sym_nchars, CHARS, dbxout_continue)
4462 (print_int_cst_octal, print_octal, print_wide_int)
4463 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
4464 (stabstr_ob, stabstr_last_contin_point): New variables.
4465 (NUMBER_FMT_LOOP): New improper macro.
4466 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
4467 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
4468 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
4469 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
4470 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
4471 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
4472 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
4473 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
4474 New functions and/or proper function-like macros.
4475 (CONTIN): Use stabstr_continue, unconditionally.
4476 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
4477 (dbxout_init): Initialize stabstr_ob. Check
4478 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
4479 if it was used. Use the new interfaces.
4480 (dbxout_source_file): Remove file argument; always write to
4481 asm_out_file. Use the new interfaces.
4482 (dbxout_type_method_1): Remove second argument which is always
4483 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
4484 (dbxout_type_methods): Remove write-only variables. Use the
4485 new interfaces.
4486 (dbxout_parms): Refactor to remove code duplicated in each of
4487 several successive if-else-if blocks. Use the new interfaces.
4488 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
4489 (dbxout_source_line, dbxout_finish, dbxout_type_index)
4490 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
4491 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
4492 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
4493 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
4494 Use the new interfaces.
4495 * Makefile.in (dbxout.o): Update dependencies.
4496
4497 * defaults.h: Don't define ASM_STABD_OP.
4498 * output.h: Prototype new dbxout_* interfaces.
4499 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
4500 * varasm.c: Don't define ASM_STABS_OP.
4501 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
4502 Use the new dbxout.c interfaces. Call sorry if neither
4503 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
4504
4505 * xcoffout.h: Don't define ASM_STABS_OP.
4506 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
4507 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
4508 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
4509 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
4510 do { ... } while (0) idiom.
4511
4512 * config/alpha/alpha.c (num_source_filenames): Export.
4513 * config/alpha/alpha.h (num_source_filenames): Declare.
4514 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
4515 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
4516 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
4517 Always use .debugsym. Update commentary.
4518 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
4519 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
4520 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
4521 Use new interfaces.
4522 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
4523 (macho_branch_islands): Use new interfaces.
4524
4525 * doc/tm.texi: Update.
4526
4527 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
4528
4529 * expr.c (emit_group_store): Do not treat floats as BLKmode.
4530 (emit_group_load): Same.
4531
4532 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
4533
4534 * c-parse.in (datadef): Use pedwarn rather than error and warning
4535 for diagnostic in case of no declaration specifiers.
4536
4537 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
4538
4539 PR bootstrap/15747
4540 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
4541 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
4542 can be used to work around this.
4543
4544 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
4545
4546 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
4547 doubles.
4548
4549 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
4550
4551 * stmt.c (expand_case): Update a comment.
4552
4553 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
4554
4555 * stmt.c (expand_case): Put an assertion that index_expr is
4556 never INTEGER_CST. Don't special case for constant
4557 index_expr.
4558
4559 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
4560
4561 PR 18162
4562 * c-parse.in (designator): Finish with a semi-colon.
4563
4564 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
4565
4566 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
4567 into rotlsi3.
4568
4569 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
4570
4571 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
4572 a default case only.
4573
4574 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
4575
4576 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
4577 e500 doubles.
4578 (spe_build_register_parallel): New.
4579 (rs6000_spe_function_arg): Handle e500 doubles.
4580 (function_arg): Same.
4581 (spe_func_has_64bit_regs_p): Same.
4582 (rs6000_function_value): Same.
4583 (rs6000_libcall_value): Same.
4584 (legitimate_lo_sum_address_p): Return false for e500 doubles.
4585
4586 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
4587 doubles.
4588 (DATA_ALIGNMENT): Same.
4589 (CANNOT_CHANGE_MODE_CLASS): Same.
4590
4591 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
4592
4593 * expr.c (emit_group_load): Handle floats.
4594 (emit_group_store): Same.
4595
4596 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
4597
4598 * c-lex.c (get_nonpadding_token): Remove.
4599 (c_lex_with_flags): Push timevar and eat padding here. Improve
4600 stray token diagnostic.
4601 (lex_string): Replace logic with switch statement, eat padding
4602 token here.
4603
4604 2004-10-26 Geoffrey Keating <geoffk@apple.com>
4605
4606 PR 18149
4607 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
4608
4609 2004-10-25 Geoffrey Keating <geoffk@apple.com>
4610
4611 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
4612 to 'non-weak'.
4613 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
4614 (ASM_MAKE_LABEL_LINKONCE): Delete.
4615 (ASM_WEAKEN_DECL): New.
4616 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
4617 (ASM_DECLARE_FUNCTION_NAME): Likewise.
4618 (TEXT_SECTION_ASM_OP): Add a tab.
4619 (DATA_SECTION_ASM_OP): Likewise.
4620 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
4621 data_section on every section change.
4622 (EXTRA_SECTIONS): Add a bunch of new extra sections.
4623 (EXTRA_SECTION_FUNCTIONS): Likewise.
4624 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
4625 (JCR_SECTION_NAME): Define.
4626 (TARGET_SECTION_TYPE_FLAGS): Don't define.
4627 * config/darwin.c (darwin_encode_section_info): A symbol is defined
4628 in this file if it is not weak.
4629 (textcoal_section): Delete.
4630 (datacoal_section): Delete.
4631 (darwin_make_decl_one_only): Delete.
4632 (machopic_select_section): Handle functions.
4633 (darwin_asm_named_section): Add a tab.
4634 (darwin_section_type_flags): Delete.
4635 (darwin_unique_section): Delete contents.
4636 (darwin_emit_unwind_label): Add a tab. Make decls weak if
4637 DECL_WEAK is set.
4638 * config/darwin-protos.h (darwin_section_type_flags): Delete.
4639 (darwin_make_decl_one_only): Delete.
4640 (text_coal_section): New.
4641 (text_unlikely_section): New.
4642 (text_unlikely_coal_section): New.
4643 (const_coal_section): New.
4644 (data_coal_section): New.
4645 (const_data_coal_section): New.
4646 * varasm.c (function_section): Honour
4647 USE_SELECT_SECTION_FOR_FUNCTIONS.
4648 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
4649 TARGET_USES_WEAK_UNWIND_INFO is in effect.
4650 * dbxout.c (dbxout_source_file): Don't change sections while
4651 a function is being output.
4652
4653 2004-10-25 David Ayers <d.ayers@inode.at>
4654
4655 * c-common.h: Remove RID_ID.
4656 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
4657 (typespec_reserved_attr): Add rule for TYPENAME
4658 non_empty_protocolrefs.
4659 (yylexname): Remove special handling of RID_ID.
4660
4661 2004-10-25 James E Wilson <wilson@specifixinc.com>
4662
4663 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
4664
4665 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
4666
4667 PR c/16667
4668 * c-parse.in (array_designator): New.
4669 (designator): Use it.
4670 (initelt): Only permit array_designator without '=', not ".foo".
4671
4672 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
4673 * gcc/Makefile.in: removed ggc for cgraphunit.
4674 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
4675 * gcc/cgraph.h: removed static var analysis data structures and calls.
4676 * gcc/cgraphunit.c:
4677 cgraph_mark_local_and_external_functions:changed name to
4678 cgraph_mark_local_functions
4679 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
4680 cgraph_reset_static_var_maps,get_global_static_vars_info,
4681 get_global_statics_not_read,get_global_statics_not_written,searchc,
4682 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
4683 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
4684 scan_for_static_refs,cgraph_characterize_statics_local,
4685 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
4686 removed.
4687 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
4688 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
4689 analysis
4690 * gcc/tree-flow.h static_vars_info: removed
4691 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
4692 removed calls to static vars analysis.
4693 get_call_expr_operands: removed callee variable.
4694
4695 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
4696
4697 * cfg.c (unchecked_make_edge, redirect_edge_succ,
4698 redirect_edge_pred): Use VEC_safe_push instead of
4699 VEC_safe_insert.
4700 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
4701
4702 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
4703
4704 * cfgloopmanip.c (loopify): Take two more arguments true_edge
4705 and false_edge.
4706 * cfgloop.h: Adjust the corresponding prototype.
4707 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
4708 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
4709
4710 2004-10-25 Jakub Jelinek <jakub@redhat.com>
4711
4712 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
4713 DECL_INCOMING_RTL is NULL.
4714
4715 2004-10-25 Steven Bosscher <stevenb@suse.de>
4716
4717 * timevar.def (TV_FIND_REFERENCED_VARS): New.
4718 * tree-dfa.c (pass_referenced_var): Use it.
4719
4720 2004-10-25 Roger Sayle <roger@eyesopen.com>
4721 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4722
4723 * cse.c: Change encoding of quantity numbers to avoid undefined
4724 pointer arithmetic on qty_table.
4725 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
4726 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
4727 (new_basic_block): Assign "real" quantity numbers from zero.
4728 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
4729 REG_QTY to its unique negative value.
4730 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
4731 (cse_main): Don't include max_reg when determining max_qty.
4732 (cse_basic_block): Avoid subtracting a large offset from qty_table,
4733 which causes undefined C99 behaviour. Only allocate needed memory.
4734
4735 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
4736
4737 * stmt.c (expand_case): Remove an obsolete comment.
4738
4739 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
4740
4741 PR middle-end/17407
4742 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
4743 layout_type as it is already done by build_array_type.
4744 * tree.c (build_array_type): Layout the type even
4745
4746 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
4747
4748 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
4749
4750 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
4751
4752 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
4753 with wider-than-32-bit HOST_WIDE_INTs.
4754
4755 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
4756
4757 * config/mips/mips.c(mips_output_filename): Remove unused
4758 array ltext_label_name
4759
4760 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
4761
4762 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
4763
4764 2004-10-25 Ben Elliston <bje@au.ibm.com>
4765
4766 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
4767
4768 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
4769
4770 * predict.c (predict_loops): Call scev_finalize instead of
4771 scev_reset.
4772
4773 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
4774
4775 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
4776 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
4777 config/sh/ushmedia.h, config/sparc/elf.h,
4778 config/sparc/sp64-elf.h: Update copyright.
4779
4780 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
4781
4782 * stmt.c (expand_case): Handle the default label outside of
4783 the for loop. Remove code to handle a missing default label.
4784
4785 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
4786
4787 * dbxout.c (dbxout_function_decl): Don't use
4788 DBX_OUTPUT_FUNCTION_END.
4789 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
4790 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
4791
4792 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
4793
4794 PR middle-end/17967
4795 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
4796
4797 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
4798
4799 * tree-ssa-dom.c (record_equality): Use loop depth to determine
4800 which way to record the equality as well.
4801 (loop_depth_of_name): New function.
4802
4803 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
4804
4805 PR middle-end/17793
4806 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
4807 through the operand if it is a useless type conversion.
4808
4809 2004-10-23 Ben Elliston <bje@au.ibm.com>
4810
4811 * cfg.c (remove_edge): Use VEC_unordered_remove.
4812 (redirect_edge_succ): Likewise.
4813 (redirect_edge_pred): Likewise.
4814 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
4815
4816 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
4817
4818 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
4819 beyond its end.
4820
4821 2004-10-22 Eric Christopher <echristo@redhat.com>
4822
4823 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
4824 saves.
4825
4826 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
4827
4828 * config/rs6000/spe.md (spe_extendsfdf2): New.
4829 (movdf_e500_double): New.
4830 (spe_truncdfsf2): New.
4831 (spe_absdf2): New.
4832 (spe_nabsdf2): New.
4833 (spe_negdf2): New.
4834 (sub_adddf3): New.
4835 (spe_subdf3): New.
4836 (spe_muldf3): New.
4837 (spe_floatsidf2): New.
4838 (spe_floatunssidf2): New.
4839 (fix_truncdfsi2): New.
4840 (spe_fixuns_truncdfsi2): New.
4841
4842 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
4843 (fpr_truncdfsf2): New.
4844 (negdf2): Change to expander.
4845 (fpr_negdf2): New.
4846 (fpr_nabsdf2): Name pattern.
4847 (adddf3): Change to expander.
4848 (fpr_adddf3): Nem.
4849 (subdf3): Change to expander.
4850 (fpr_subdf3): New.
4851 (muldf3): Change to expander.
4852 (fpr_muldf3): New.
4853 (divdf3): Change to expander.
4854 (fpr_divdf3): New.
4855 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
4856 (cmpdf): Allow for TARGET_E500_DOUBLE.
4857
4858 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
4859
4860 * c-semantics.c (re_push_stmt_list): Remove.
4861 * c-common.h: Remove the corresponding prototype.
4862
4863 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
4864
4865 * stmt.c (asm_op_is_mem_input): Remove.
4866 * tree.h: Remove the corresponding prototype.
4867
4868 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
4869
4870 * tree-gimple.c (is_gimple_constructor_elt): Remove.
4871 * tree-gimple.h: Remove the corresponding prototype.
4872
4873 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
4874
4875 * varasm.c (get_pool_mode_for_function, get_pool_offset):
4876 Remove.
4877 * rtl.h: Remove the corresponding prototypes.
4878
4879 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
4880
4881 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
4882 edge information when we commit ourselves to threading a
4883 particular jump.
4884
4885 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
4886
4887 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
4888 into worklist instead of their indexes.
4889
4890 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
4891
4892 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
4893 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
4894 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
4895 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
4896 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
4897 tree-scalar-evolution.c, tree-ssa-dom.c,
4898 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
4899 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
4900 tree-vectorizer.c, vec.h: Fix comment formatting.
4901
4902 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
4903
4904 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
4905 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
4906
4907 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
4908
4909 * config/ptx4.h, config/mcore/mcore-pe.h,
4910 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
4911
4912 2004-10-22 Peter Barada <peter@the-baradas.com>
4913
4914 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
4915 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
4916 renaming of non-live registers in interrupt functions.
4917 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
4918
4919 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
4920
4921 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
4922 Use integer for loop counter.
4923 (num_ending_zeros): New function.
4924 (number_of_iterations_cond): Use num_ending_zeros.
4925
4926 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
4927
4928 * config.gcc: Add support for --enable-e500_double.
4929
4930 * config/rs6000/e500-double.h: New file.
4931
4932 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
4933 TARGET_E500_DOUBLE.
4934
4935 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
4936 TARGET_E500_DOUBLE.
4937
4938 * config/rs6000/linuxspe.h: Same.
4939
4940 * doc/invoke.texi (Option Summary): Document new options for
4941 mfloat-gprs.
4942 (RS/6000 and PowerPC Options): Same.
4943
4944 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
4945 function.
4946 (rs6000_override_options): Use it. Use
4947 SUB3TARGET_OVERRIDE_OPTIONS.
4948 Add 8548 to processor_target_table.
4949 (rs6000_legitimate_address): Handle e500 doubles.
4950 (rs6000_legitimize_address): Same.
4951 (rs6000_legitimize_reload_address): Same.
4952 (rs6000_hard_regno_nregs): Same.
4953 (spe_func_has_64bit_regs_p): Same.
4954 (emit_frame_save): Same.
4955 (gen_frame_mem_offset): Same.
4956 (rs6000_dwarf_register_span): Same.
4957 (rs6000_generate_compare): Same.
4958 (easy_fp_constant): Same.
4959 (legitimate_offset_address_p): Same.
4960
4961 * config/rs6000/spe.md: (cmdfeq_gpr): New.
4962 (tstdfeq_gpr): New.
4963 (cmpdfgt_gpr): New.
4964 (tstdfgt_gpr): New.
4965 (tstdfgt_gpr): New.
4966 (cmpdflt_gpr): New.
4967 (tstdflt_gpr): New.
4968 Add new constants.
4969
4970 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4971
4972 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
4973
4974 2004-10-21 Zack Weinberg <zack@codesourcery.com>
4975
4976 * dbxout.c: Remove unnecessary #undefs.
4977 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
4978 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
4979 definition into use sites.
4980 (cwd): Make local to dbxout_init.
4981 (dbxout_init): Restructure cwd-using logic for clarity. Use
4982 IS_DIR_SEPARATOR.
4983 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
4984 STABS_GCC_MARKER folded in here.
4985 * system.h: Poison now-unused macros.
4986 * doc/tm.texi: Remove documentation of now-unused macros.
4987
4988 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
4989
4990 PR c/17538
4991 * c-opts.c (push_command_line_include): Use the current file
4992 name instead of the main one.
4993
4994 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
4995
4996 PR objc/17923
4997 * tree.c (staticp): A CONST_DECL has static storage if either
4998 TREE_STATIC or DECL_EXTERNAL is set.
4999 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
5000 have null names.
5001
5002 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
5003
5004 * expr.c (store_expr): Remove dont_store_target.
5005
5006 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
5007
5008 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
5009
5010 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
5011
5012 * tree-cfg.c (thread_jumps): Move a part of it to ...
5013 (thread_jumps_from_bb): ... here.
5014
5015 2004-10-21 David Edelsohn <edelsohn@gnu.org>
5016
5017 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
5018 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
5019
5020 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
5021
5022 * expr.c (store_expr): Clean up by renaming want_value to
5023 call_param_p.
5024
5025 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
5026
5027 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
5028 fixup pc here.
5029
5030 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
5031
5032 PR 18004.
5033 * expmed.c (store_bit_field): Pass original 'value' before
5034 recursing.
5035
5036 2004-10-21 Nicolas Pitre <nico@cam.org>
5037
5038 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
5039 * config/arm/ieee754-df.S: Ditto.
5040
5041 2004-10-20 Zack Weinberg <zack@codesourcery.com>
5042
5043 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
5044 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
5045 Default to 0.
5046 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
5047 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
5048 an internal label and an N_SLINE .stabn whose value is the
5049 difference between that label and the function entry label.
5050 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
5051 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
5052 label and an N_SO stab with an empty string referring to it.
5053 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
5054 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
5055 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
5056 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
5057 macro is never defined.
5058 * sdbout.c (sdbout_source_line_counter): Delete.
5059 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
5060 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
5061 only two arguments.
5062 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
5063
5064 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
5065 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
5066 definitions (identical to default).
5067 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
5068 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
5069 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
5070 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
5071 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
5072 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
5073 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
5074 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
5075 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
5076 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
5077 (sym_lineno): Delete.
5078 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
5079 now-unused variable.
5080 (alpha_output_lineno): Delete.
5081 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
5082 * config/mips/mips.c (mips_output_filename): Don't use
5083 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
5084 (mips_output_lineno): Delete.
5085 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
5086 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
5087 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
5088 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
5089 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
5090 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
5091 * config/mmix/mmix.h: Likewise.
5092 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
5093 * config/mmix/mmix-protos.h: Don't prototype it.
5094 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
5095 no need to #undef ASM_OUTPUT_SOURCE_LINE.
5096 * config/arm/aout.h: Remove RISCiX-specific definition of
5097 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
5098 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
5099 ASM_OUTPUT_SOURCE_LINE.
5100 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
5101 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
5102 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
5103
5104 * doc/tm.texi: Update.
5105
5106 2004-10-20 Richard Henderson <rth@redhat.com>
5107
5108 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
5109
5110 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
5111
5112 * configure.ac: Revert my previous patch.
5113 * configure: Regenerate.
5114
5115 2004-10-20 Ben Elliston <bje@au.ibm.com>
5116
5117 * config/rs6000/rs6000.c
5118 (rs6000_va_start): Use build_va_arg_indirect_ref.
5119 (rs6000_gimplify_va_arg): Likewise.
5120
5121 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
5122
5123 PR java/15575
5124 * configure.ac: Declare AM_LANGINFO_CODESET.
5125 * aclocal.m4: Define AM_LANGINFO_CODESET.
5126 * configure, config.in: Rebuilt.
5127
5128 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
5129
5130 * expr.c (store_expr): Remove code that is run when
5131 want_value & 1 is nonzero.
5132
5133 2004-10-20 Mark Mitchell <mark@codesourcery.com>
5134
5135 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
5136 from function pointer to void *.
5137
5138 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
5139
5140 PR target/18032
5141 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
5142 the frame pointer adjustment when exception handling is enabled.
5143
5144 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
5145
5146 * stor-layout.c: Fix a comment typo.
5147
5148 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
5149
5150 * expr.c (store_field): Remove two arguments value_mode and
5151 unsignedp.
5152 (expand_assignment, store_constructor_field,
5153 expand_expr_real_1): Adjust calls to store_field.
5154
5155 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
5156
5157 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
5158
5159 PR target/17317
5160 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
5161 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
5162 base and index register for loads.
5163
5164 * config/arc/t-arc: Fix multilib handling.
5165
5166 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
5167
5168 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
5169 don't inspect BLOCK_FOR_INSN for barriers.
5170 * emit-rtl.c (emit_barrier_before): Revert last change.
5171 (emit_barrier_after, emit_barrier): Ditto.
5172
5173 * doc/extend.texi (Extended Asm): Warn and provide example
5174 solution for using a call-clobbered asm register.
5175 (Local Reg Vars): Similar. Cross-reference example.
5176
5177 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
5178
5179 * tree-cfg.c (group_case_labels): Look at the second to last
5180 case statement for combing with the default case.
5181
5182 2004-10-19 Richard Hendeson <rth@redhat.com>
5183
5184 PR 17962
5185 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
5186
5187 2004-10-19 Richard Hendeson <rth@redhat.com>
5188
5189 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
5190 succeeds, only expand the result.
5191
5192 2004-10-19 Richard Hendeson <rth@redhat.com>
5193
5194 PR middle-end/17885
5195 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
5196 of INDIRECT_REF.
5197
5198 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
5199
5200 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
5201 loop with goto.
5202
5203 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
5204
5205 * expr.c (expand_assignment): Remove the last argument.
5206 Change the return type to void.
5207 * expr.h: Update the prototype of expand_assignment.
5208 * function.c (assign_parm_setup_reg): Update a call to
5209 expand_assignment.
5210 * stmt.c (expand_asm_expr): Likewise.
5211
5212 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
5213
5214 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
5215 unnecessary assignments to temp. Return const0_rtx.
5216
5217 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
5218
5219 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
5220
5221 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
5222
5223 * configure.ac (powerpc-*-darwin*): Require assembler to support
5224 .machine directive.
5225 * configure: Regenerate.
5226
5227 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5228
5229 * reload1.c (ior_hard_reg_set): Remove.
5230 (finish_spills): Use IOR_HARD_REG_SET instead of
5231 ior_hard_reg_set.
5232
5233 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5234
5235 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
5236 the currently visited word to right.
5237
5238 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5239
5240 PR middle-end/18045
5241 * expmed.c (expand_smod_pow2): Handle modes whose size
5242 is greater than that of HOST_WIDE_INT.
5243
5244 2004-10-18 Ziemowit Laski <zlaski@apple.com>
5245
5246 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
5247
5248 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5249 Roger Sayle <roger@eyesopen.com>
5250
5251 PR middle-end/17813
5252 * dojump.c (discard_pending_stack_adjust): New function.
5253 (clear_pending_stack_adjust): Call it.
5254 * expr.h (discard_pending_stack_adjust): Declare it.
5255 * explow.c (emit_stack_save): Emit pending stack adjustments
5256 before saving the stack pointer.
5257 (emit_stack_restore): Discard pending stack adjustments before
5258 restoring the stack pointer.
5259
5260 2004-10-18 Richard Henderson <rth@redhat.com>
5261
5262 * c-common.c (handle_mode_attribute): Allow scalar->vector
5263 type changes yet.
5264
5265 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5266
5267 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
5268 value to expand_assignment.
5269
5270 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5271
5272 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
5273 thread_jumps.
5274 (thread_jumps): Iterate until no new forwarder block arises.
5275
5276 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5277
5278 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
5279 (thread_jumps): Use forwardable as cache of
5280 tree_forwarder_block_p throughout the function.
5281
5282 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
5283
5284 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
5285
5286 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
5287
5288 PR middle-end/15014
5289 PR middle-end/16973
5290 * tree-cfg.c (remove_bb): If we have a label expression in the
5291 basic block and the label we have taken the address, move the
5292 label expression to the basic block which is previous in the
5293 linked list.
5294 (tree_verify_flow_info): Fix printing out the label name of the
5295 problematic label expression.
5296
5297 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
5298
5299 PR rtl-optimization/18002
5300 * simplify-rtx.c (mode_signbit_p): Externalize function...
5301 * rtl.h (mode_signbit_p): ... to here.
5302 * combine.c (simplify_shift_const): Recognize PLUS signbit as
5303 canonical form of XOR signbit and move to outer op.
5304
5305 2004-10-18 Diego Novillo <dnovillo@redhat.com>
5306
5307 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
5308 Update all callers.
5309 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
5310 Don't call fold_stmt more than once, use bsi_replace.
5311
5312 2004-10-18 Diego Novillo <dnovillo@redhat.com>
5313
5314 PR tree-optimization/17656
5315 * tree-ssa.c (replace_immediate_uses): When replacing a
5316 constant, if the call to fold_stmt produced a different
5317 statement, get an appropriate statement pointer by scanning
5318 STMT's basic block.
5319
5320 2004-10-18 Richard Henderson <rth@redhat.com>
5321
5322 * pointer-set.c (hash1): Don't use libm functions in fallback case.
5323
5324 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
5325
5326 PR bootstrap/17684
5327 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
5328 (stage1-start): Remove and copy libunwind.a and
5329 libunwind*$(SHLIB_EXT) instead of libunwind*.
5330 (stage2-start): Likewise.
5331 (stage3-start): Likewise.
5332 (stage4-start): Likewise.
5333 (stageprofile-start): Likewise.
5334 (stagefeedback-start): Likewise.
5335
5336 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
5337 the shared library to be created and don't remove the existing
5338 shared library.
5339 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
5340 * config/i386/t-nwld (SHLIB_LINK): Likewise.
5341 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
5342 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
5343 * config/sh/t-linux (SHLIB_LINK): Likewise.
5344 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
5345 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
5346 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
5347 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5348
5349 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
5350 files.
5351
5352 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5353
5354 * basic-block.h (reg_set_iterator): New.
5355 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
5356 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
5357 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
5358 * caller-save.c (save_call_clobbered_regs): Adjust to the new
5359 style.
5360 * cfgcleanup.c (thread_jump): Likewise.
5361 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5362 * conflict.c (conflict_graph_compute): Likewise.
5363 * flow.c (verify_local_live_at_start, update_life_info,
5364 initialize_uninitialized_subregs, propagate_one_insn,
5365 init_propagate_block_info, free_propagate_block_info,
5366 propagate_block, dump_regset): Likewise.
5367 * global.c (global_conflicts): Likewise.
5368 * graph.c (start_bb): Likewise.
5369 * local-alloc.c (update_equiv_regs): Likewise.
5370 * loop.c (load_mems): Likewise.
5371 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
5372 find_reg, finish_spills): Likewise.
5373 * resource.c (mark_target_live_regs): Likewise.
5374 * sched-deps.c (sched_analyze_insn): Likewise.
5375 * sched-rgn.c (sched-rgn.c): Likewise.
5376 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5377
5378 2004-10-18 Jakub Jelinek <jakub@redhat.com>
5379
5380 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
5381 operand 1 instead of 2
5382
5383 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5384
5385 * loop-unroll.c: Fix comment typos.
5386
5387 2004-10-18 Revital Eres <eres@il.ibm.com>
5388
5389 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
5390 * loop-unroll.c: Include varray.h.
5391 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
5392 opt_info and expand it to support variable expansion.
5393 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
5394 expand it to support variable expansion.
5395 (pt_info_start_duplication): Rename si_info_start_duplication.
5396 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
5397 to the variable expansion optimization.
5398 (free_opt_info): Rename free_si_info.
5399 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
5400 expand_var_during_unrolling, insert_var_expansion_initialization,
5401 combine_var_copies_in_loop_exit, release_var_copies,
5402 get_expansion): New functions.
5403 (peel_loop_completely, unroll_loop_constant_iterations,
5404 unroll_loop_runtime_iterations, peel_loop_simple,
5405 unroll_loop_stupid): Change uses of struct si_info
5406 to struct opt_info
5407 and add uses of fvariable-expansion-in-unroller flag.
5408 * params.def: Add parameter to restrict the number of expansions.
5409 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
5410 the number of expansions.
5411 * common.opt: (fvariable-expansion-in-unroller): New flag.
5412 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
5413
5414 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
5415
5416 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
5417 __GXX_MERGED_TYPEINFO_NAMES to 0.
5418
5419 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
5420
5421 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
5422 handle barriers in a bb by checking that it points to a NULL bb.
5423 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
5424 (emit_barrier_after, emit_barrier): Ditto.
5425
5426 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
5427
5428 * doc/extend.texi (Attribute Syntax): Clarify details of
5429 attributes on parameters.
5430
5431 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
5432
5433 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
5434 loop.
5435
5436 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
5437
5438 Revert:
5439 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
5440
5441 * c-typeck.c (default_function_array_conversion): Always create
5442 &a[0] for array types.
5443 (build_unary_op): Do not fold &a[x] into a + x.
5444
5445 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
5446
5447 PR middle-end/17925
5448 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
5449 block if there is a goto with a locus.
5450
5451 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
5452
5453 * config/elfos.h, config/gofast.h, config/interix.h,
5454 config/netbsd.h, config/svr3.h, config/vxworks.h,
5455 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
5456 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
5457 config/alpha/netbsd.h, config/arm/arm-modes.def,
5458 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
5459 config/cris/aout.h, config/frv/frv-modes.def,
5460 config/i386/beos-elf.h, config/i386/gas.h,
5461 config/i386/i386-coff.h, config/i386/i386-modes.def,
5462 config/i386/linux.h, config/i386/linux64.h,
5463 config/i386/mingw32.h, config/i386/netbsd-elf.h,
5464 config/i386/netbsd64.h, config/i386/sco5.h,
5465 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
5466 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
5467 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
5468 config/mips/mips-modes.def, config/mips/sdb.h,
5469 config/mips/vr.h, config/mips/vxworks.h,
5470 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
5471 config/pa/pa32-linux.h, config/rs6000/40x.md,
5472 config/rs6000/7450.md, config/rs6000/8540.md,
5473 config/rs6000/linuxspe.h, config/rs6000/power4.md,
5474 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
5475 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
5476 config/s390/s390-modes.def, config/sh/elf.h,
5477 config/sh/sh-modes.def, config/sh/sh64.h,
5478 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
5479 config/stormy16/stormy16.md, config/v850/v850-protos.h,
5480 config/vax/vax.md: Update copyright.
5481
5482 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
5483
5484 * expr.c (expand_expr_real_1): Remove an obsolete comment.
5485
5486 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
5487
5488 * c-typeck.c (default_function_array_conversion): Always create
5489 &a[0] for array types.
5490 (build_unary_op): Do not fold &a[x] into a + x.
5491
5492 2004-10-17 Jakub Jelinek <jakub@redhat.com>
5493
5494 * pointer-set.c (hash1): Use integer part of 2^64 / phi
5495 instead 2^32 / phi if long is 64-bit.
5496
5497 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
5498
5499 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
5500 RID_PTRVALUE.
5501 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
5502 declarations.
5503 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
5504 __ptrextent__, __ptrvalue and __ptrvalue__.
5505 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
5506 entries.
5507
5508 2004-10-16 Dale Johannesen <dalej@apple.com>
5509
5510 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
5511
5512 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
5513
5514 PR tree-optimization/17766
5515 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
5516 (dom_info_available_p): Declare.
5517 * cfghooks.c (split_block, make_forwarder_block): Use
5518 dom_info_available_p.
5519 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
5520 free_dominance_info, verify_dominators): Ditto.
5521 (dom_info_available_p): New function.
5522 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
5523 (thread_jumps): Use dom_info_available_p.
5524 * tree-complex.c (expand_complex_div_wide): Ditto.
5525 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
5526
5527 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
5528
5529 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
5530 (find_best_candidate): Take also important candidates into account.
5531 (find_optimal_iv_set): Initialize important_candidates bitmap.
5532
5533 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
5534
5535 PR tree-optimization/17560
5536 * predict.c (tree_estimate_probability): Mark irreducible
5537 loops.
5538
5539 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
5540
5541 PR rtl-optimization/17723
5542 * cfgcleanup.c (merge_memattrs): Handle case when
5543 MEM_SIZE == NULL_RTX.
5544
5545 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
5546
5547 * toplev.c (dump_file_name): Change type to be const.
5548
5549 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
5550
5551 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
5552 non_lvalue to stop something being a null pointer constant.
5553
5554 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
5555
5556 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
5557 available for TARGET_FPRS.
5558 (FUNCTION_VALUE_REGNO_P): Same.
5559
5560 2004-10-15 Geoffrey Keating <geoffk@apple.com>
5561
5562 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5563 -maltivec in same style as other ISA options.
5564
5565 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
5566
5567 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
5568 definition.
5569
5570 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
5571
5572 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
5573 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
5574 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
5575 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
5576 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
5577 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
5578 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
5579 predict.def, predict.h, protoize.c, reload.h, resource.h,
5580 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
5581 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
5582 unwind-sjlj.c, value-prof.h: Update copyright.
5583
5584 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
5585
5586 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
5587
5588 2004-10-15 Diego Novillo <dnovillo@redhat.com>
5589
5590 * tree-optimize.c (execute_one_pass): Stop timer right after
5591 executing the pass.
5592
5593 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
5594
5595 Revert:
5596 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
5597 PR middle-end/17967
5598 Revert:
5599 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
5600 (remove_useless_stmts_1): Fold trees we know how to fold.
5601
5602 2004-10-14 David Edelsohn <edelsohn@gnu.org>
5603
5604 * configure.ac: Add .machine power4 directive when testing for
5605 mfcr field.
5606 * configure: Regenerate.
5607
5608 2004-10-14 Geoffrey Keating <geoffk@apple.com>
5609
5610 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
5611
5612 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
5613
5614 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
5615 always.
5616
5617 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
5618
5619 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
5620 for 'f' if !TARGET_FPRS.
5621
5622 2004-10-14 Richard Henderson <rth@redhat.com>
5623
5624 PR debug/14492
5625 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
5626
5627 2004-10-14 Richard Henderson <rth@redhat.com>
5628
5629 PR c/17023
5630 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
5631 as error_mark_node.
5632 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
5633 instaed of current_function_decl non-null.
5634
5635 2004-10-14 Matt Austern <austern@apple.com>
5636
5637 * pointer-set.c: New file, special-purpose hash table.
5638 * pointer-set.h: New file.
5639 * tree.h (struct pointer_set_t): Declare as opaque type.
5640 (tree_walk): Last argument is pointer_set_t* now.
5641 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
5642 (walk_type_fields):
5643 (walk_tree): Convert from htab_t to pointer_set_t for keeping
5644 track of which nodes have already been visited.
5645 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
5646 * cgraphunit.c (cgraph_create_edges): Likewise.
5647 (cgraph_characterize_statics_local): Likewise.
5648 * tree-dfa.c (collect_dfa_stats): Likewise.
5649 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
5650 pointer_set_t* now.
5651 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
5652 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
5653 of walk_subtrees is pointer_set_t* now.
5654 * Makefile.in (OBJS-common): add pointer-set.o
5655 (tree-inline.o): Depends on pointer-set.h
5656 (tree-dfa.o): Likewise
5657 (cgraphunit.o): Likewise
5658
5659 2004-10-14 Geoffrey Keating <geoffk@apple.com>
5660
5661 * config/rs6000/darwin.h (ASM_SPEC): Delete.
5662 (TARGET_ASM_FILE_START): Define.
5663 * config/darwin.h (ASM_SPEC): Define.
5664 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
5665 -mlong-double-128, it's the default. Update comment about reason
5666 for force_cpusubtype_ALL.
5667 * config/rs6000/darwin-vecsave.asm: Supply .machine.
5668 * config/rs6000/darwin-world.asm: Likewise.
5669 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
5670 (symbolic_operand): Delete #if 0ed code.
5671
5672 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
5673
5674 * stmt.c (add_case_node): Make sure that we have integer
5675 constant before calling tree_int_cst_compare.
5676
5677 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
5678
5679 PR middle-end/17967
5680 Revert:
5681 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
5682 (remove_useless_stmts_1): Fold trees we know how to fold.
5683
5684 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
5685
5686 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
5687 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
5688 -m64.
5689
5690 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
5691
5692 * reload.c (find_reloads): When reloading a PLUS with constant
5693 operand, make sure the constant is pushed to the constant pool
5694 if required.
5695 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
5696 reload bug workaround.
5697 (s390_expand_plus_operand): Likewise.
5698
5699 2004-10-14 David Edelsohn <edelsohn@gnu.org>
5700
5701 * opts.c (common_handle_option): Do not enable
5702 flag_speculative_prefetching for -fprofile-generate/use.
5703
5704 2004-10-14 Devang Patel <dpatel@apple.com>
5705
5706 PR 17635
5707 * tree-if-conv.c (process_phi_nodes): Process latch block.
5708 (combine_blocks): Process latch block and update loop structure.
5709
5710 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
5711
5712 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
5713 (vect_update_ivs_after_vectorizer):
5714 (vect_transform_for_unknown_loop_bound):
5715 (tree_duplicate_loop_to_edge):
5716 (allocate_new_names):
5717 (rename_use_op):
5718 (rename_def_op):
5719 (rename_variables_in_bb):
5720 (free_new_names):
5721 (rename_variables_in_loop):
5722 (copy_phi_nodes):
5723 (update_phis_for_duplicate_loop):
5724 (update_phi_nodes_for_guard):
5725 (make_loop_iterate_ntimes):
5726 (tree_duplicate_loop_to_edge_cfg):
5727 (add_loop_guard):
5728 (vect_analyze_loop_with_symbolic_num_of_iters):
5729 (verify_loop_for_duplication):
5730 (vect_gen_niters_for_prolog_loop):
5731 (vect_update_niters_after_peeling):
5732 (vect_update_inits_of_dr):
5733 (vect_update_inits_of_drs):
5734 (vect_build_loop_niters):
5735 (vect_do_peeling_for_alignment): New functions.
5736 (vect_transform_loop): Add unknown and known but indivisible loop
5737 bound support; add peeling for unalignment support.
5738 (vect_analyze_loop_form): Support symbolic number of iterations.
5739 (vect_transform_loop_bound): New input parameter.
5740 (vect_get_loop_niters): Change input parameter type.
5741 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
5742 (vectorizable_store): Allow unaligned access.
5743 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
5744 (vect_analyze_data_refs_alignment): Allowed one unaligned
5745 store.
5746 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
5747 to use tree.
5748 (LOOP_VINFO_INT_NITERS): New macro.
5749 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
5750 (do_peeling_for_alignment):
5751 (unaligned_drs): New members of _loop_vec_info.
5752 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
5753
5754 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
5755
5756 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
5757 (struct tree_string): Remove "const" qualifier for "str".
5758
5759 2004-10-14 Ira Rosen <irar@il.ibm.com>
5760
5761 * tree-vectorizer.c (vect_analyze_data_refs): Call
5762 vect_get_base_and_bit_offset to get memory tag for array ref.
5763 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
5764
5765 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
5766
5767 * configure.ac: Use $LN_S for creating symlinks (not $LN).
5768 * configure: Regenerate.
5769
5770 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5771
5772 * doc/install.texi (*-*-solaris2*): Update with info about kernel
5773 patches to solve spurious testsuite failures.
5774
5775 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
5776
5777 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
5778 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
5779 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
5780 gcc_assert under ENABLE_CHECKING.
5781 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
5782 get_vectype_for_scalar_type).
5783
5784 (vect_get_vec_def_for_operand): Remove redundant variables.
5785 (vect_transform_loop): Likewise.
5786
5787 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
5788
5789 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
5790 global for -mcaller-super-interworking.
5791 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
5792 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
5793 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
5794 not need a frame pointer.
5795 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
5796 the soft frame pointer offset.
5797 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
5798 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
5799 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
5800 the stack. Use frame_pointer_needed to choose between them.
5801 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
5802 (interwork_with_frame): New macro.
5803 (interwork): Add _interwork_{r7,r11}_call_via_rN().
5804
5805 2004-10-14 Ben Elliston <bje@au.ibm.com>
5806
5807 PR other/17900
5808 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
5809 up the filename looking for a previous directory separator.
5810
5811 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
5812
5813 * c-tree.h (enum c_typespec_kind, struct c_typespec,
5814 parser_xref_tag): New.
5815 (struct c_declspecs): Add tag_defined_p. Adjust definition of
5816 typedef_p.
5817 (declspecs_add_type): Adjust prototypes.
5818 * c-parse.in (%union): Add tstype.
5819 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
5820 typespec_reserved_attr, typespec_nonreserved_nonattr,
5821 structsp_attr, structsp_nonattr): Change to tstype. Update
5822 actions.
5823 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
5824 (declspecs_add_type): Update to take struct c_typespec argument.
5825 Set tag_defined_p and typedef_p as appropriate.
5826 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
5827 Update to return struct c_typespec.
5828 (shadow_tag_warned): Don't let empty declarations with qualifiers
5829 or storage class specifiers redeclare a tag if a previous
5830 declaration is visible.
5831
5832 2004-10-13 Richard Henderson <rth@redhat.com>
5833
5834 PR debug/15860
5835 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
5836 for DECL_INCOMING_RTL.
5837
5838 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
5839
5840 PR target/17984
5841 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
5842 trunc_int_for_mode for constants used in shortened mode.
5843
5844 2004-10-13 Richard Henderson <rth@redhat.com>
5845
5846 PR c/17384
5847 * c-common.c (handle_mode_attribute): Disallow mode changes that
5848 alter the CODE of the top-level type.
5849
5850 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
5851 integer from internal limits macros.
5852 * config/i386/mm3dnow.h (__v2sf): Fix base type.
5853
5854 2004-10-13 Richard Henderson <rth@redhat.com>
5855
5856 PR debug/13841
5857 * function.c (instantiate_decl): Recurse for CONCAT.
5858
5859 2004-10-13 David Edelsohn <edelsohn@gnu.org>
5860
5861 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
5862 andi./andis.
5863 (anddi3): Same.
5864 (extzvdi_internal1): Add attribute "compare".
5865 (extzvdi_internal2): Same.
5866
5867 2004-10-12 Tom Tromey <tromey@redhat.com>
5868
5869 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
5870
5871 2004-10-13 Dale Johannesen <dalej@apple.com>
5872
5873 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
5874
5875 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
5876
5877 * toplev.c (compile_file): Call mudflap_finish_file from here ...
5878 * c-decl.c (c_write_global_declarations): ... instead of here ...
5879 * cp/decl.c (cp_finish_file): ... and here.
5880 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
5881
5882 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
5883
5884 * tree-ssa-dom.c (record_range): Free the element if we are not
5885 going to use it.
5886
5887 2004-10-13 Tom Tromey <tromey@redhat.com>
5888
5889 PR java/15578:
5890 * gcc.c (option_map): Added --extdirs and --encoding.
5891
5892 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
5893
5894 PR target/14454
5895 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
5896 sparc_can_output_mi_thunk.
5897 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
5898 handling of vcall offset.
5899 (sparc_can_output_mi_thunk): New predicate.
5900 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
5901 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
5902 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
5903
5904 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
5905
5906 * config/sparc/sparc.md (movdi): Remove redundant test.
5907
5908 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
5909
5910 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
5911 TDF_IPA from -fdump-tree-*-all.
5912
5913 2004-10-13 Paul Brook <paul@codesourcery.com>
5914
5915 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
5916 * config/arm/arm.c (thumb_find_work_register): Update comments.
5917 (arm_load_pic_register): Add argument for scratch register.
5918 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
5919 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
5920
5921 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
5922
5923 * tree-data-ref.c: Fix comment typos.
5924
5925 2004-10-13 Jakub Jelinek <jakub@redhat.com>
5926 Zdenek Dvorak <dvorakz@suse.cz>
5927
5928 PR tree-optimization/17724
5929 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
5930
5931 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
5932
5933 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
5934 (altivec_builtin_mask_for_store): Likewise.
5935 (altivec_init_builtins): Use lang_hooks.builtin_function to
5936 create the decls for builtin_altivec_mask_for_load/store.
5937
5938 2004-10-13 Nick Clifton <nickc@redhat.com>
5939
5940 * config/c4x/c4x.c: Remove inclusion of loop.h.
5941
5942 2004-10-12 Ben Elliston <bje@au.ibm.com>
5943
5944 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
5945 (ei_container): New; renamed.
5946 (ei_start, ei_last): New macros.
5947 (ei_start_1, ei_last_1): Renamed from ei_start.
5948 (ei_last_1, ei_end_p): Use ei_container() where applicable.
5949 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
5950 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
5951
5952 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
5953
5954 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
5955 * cfgloop.c (initialize_loops_parallel_p): New.
5956 (flow_loops_find): Initialize the parallel_p field to true for all
5957 the loops.
5958 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
5959 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
5960 the size of the data accessed in the loop.
5961 (struct nb_iter_bound): Moved...
5962 * cfgloop.h (struct nb_iter_bound): ... here.
5963 (estimated_nb_iterations, parallel_p): New fields in struct loop.
5964 (record_estimate): Declare extern here.
5965 * tree-chrec.c: Fix comments.
5966 (nb_vars_in_chrec): New function.
5967 * tree-chrec.h (nb_vars_in_chrec): Declared here.
5968 * tree-data-ref.c: Don't include lambda.h, that is already included
5969 in tree-data-ref.h.
5970 (tree_fold_divides_p): Don't check for integer_onep.
5971 (tree_fold_bezout): Removed.
5972 (gcd): New static duplicated function.
5973 (int_divides_p, dump_subscript): New.
5974 (dump_data_dependence_relation): Use dump_subscript.
5975 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
5976 estimate_niter_from_size_of_data): New.
5977 (analyze_array_indexes, analyze_array): Call
5978 estimate_niter_from_size_of_data during the detection of array
5979 references. Pass in a pointer to the statement that contains the
5980 array reference.
5981 (all_chrecs_equal_p): New.
5982 (compute_distance_vector): Renamed compute_subscript_distance.
5983 Deal with multivariate conflict functions.
5984 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
5985 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
5986 (non_affine_dependence_relation): New.
5987 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
5988 analyze_siv_subscript, analyze_miv_subscript,
5989 analyze_overlapping_iterations, subscript_dependence_tester):
5990 Initialize and return last_conflicts function.
5991 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
5992 compute_overlap_steps_for_affine_1_2): New.
5993 (analyze_siv_subscript_affine_cst): Removed.
5994 (analyze_subscript_affine_affine): Disprove dependences based on the
5995 iteration domains. Solve the univariate dependence case as before,
5996 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
5997 Implement the multivariate case of 2 versus 1 variables.
5998 (build_classic_dist_vector, build_classic_dir_vector): Implement some
5999 unhandled cases.
6000 (find_data_references_in_loop): Compute and initialize
6001 loop->estimated_nb_iterations and loop->parallel_p.
6002 (analyze_all_data_dependences): Modify the debug dump order.
6003 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
6004 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
6005 (SUB_LAST_CONFLICT, subscript->last_conflict,
6006 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
6007 DDR_AFFINE_P, DDR_SIZE_VECT): New.
6008 (find_data_references_in_loop, initialize_data_dependence_relation,
6009 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
6010
6011 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
6012
6013 * configure: Regenerate.
6014
6015 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
6016
6017 PR 17892
6018 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
6019 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
6020 and constant folding of floating point MULT_EXPR/PLUS_EXPR
6021 expressions.
6022
6023 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
6024
6025 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
6026 (s390_gimplify_va_arg): Likewise.
6027
6028 2004-10-12 Daniel Jacobowitz <dan@debian.org>
6029
6030 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
6031 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
6032 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
6033 * regclass.c (record_address_regs): Remove ifdef. Use
6034 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
6035 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
6036 definition.
6037 (scan_rtx_address, replace_oldest_value_addr): Use
6038 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
6039 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
6040 unnecessary definitions.
6041 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
6042 and MODE_BASE_REG_REG_CLASS.
6043 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
6044 (MODE_BASE_REG_REG_CLASS): Define.
6045 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
6046 (REG_MODE_OK_FOR_REG_BASE_P): Define.
6047 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
6048 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
6049
6050 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
6051
6052 * tree-ssa-alias.c (verify_name_tags): New function.
6053 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
6054 (verify_alias_info): Call verify_name_tags.
6055
6056 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
6057
6058 PR rtl-optimization/17931
6059 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
6060 ZERO_EXTRACT in it.
6061
6062 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
6063
6064 * arm.c (arm_print_operand): Use output_operand_lossage where possible
6065 rather than aborting.
6066
6067 2004-10-12 Paul Brook <paul@coudesourcery.com>
6068
6069 * config.gcc: Add armv6{k,z,zk}
6070 * config/arm/arm-cores.def: Add arm1176 and mpcore.
6071 * config/arm/tune.md: Regenerate.
6072 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
6073 Define.
6074 (all_architectures): Add armv6k, armv6z, armv6zk.
6075 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
6076 * doc/invoke.texi: Document new arch and cpu values.
6077
6078 2004-10-12 Paul Brook <paul@coodesourcery.com>
6079
6080 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
6081 meabi=4.
6082
6083 2004-10-12 Paul Brook <paul@codesourcery.com>
6084
6085 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
6086 Handle negative constants.
6087
6088 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
6089
6090 PR c/17301
6091 * c-typeck.c (convert_arguments): Return error_mark_node if there
6092 are too few arguments.
6093 (build_function_call): Handle error_mark_node return from
6094 convert_arguments.
6095
6096 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
6097
6098 * configure.ac (symbolic_link): Replace with $LN_S.
6099 (Assembler/Linker): Hard link from gas and binutils trees.
6100 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
6101 * configure: Regenerate.
6102
6103 2004-10-12 Paul Brook <paul@codesourcery.com>
6104
6105 * configure.ac: Don't look for host assembler when building a canadian
6106 cross.
6107 * configure: Regenerate.
6108
6109 2004-10-11 Roger Sayle <roger@eyesopen.com>
6110
6111 PR other/17361
6112 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
6113 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
6114 line options for "-lang-asm" and if found allow any of the C-family
6115 front-end options.
6116 (c_common_handle_option): Remove last use of permit_fortran_options.
6117
6118 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
6119
6120 * config/s390/s390.c (print_operand): Support 'S' format flag.
6121 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
6122 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
6123 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
6124 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
6125 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
6126 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
6127 ("*movstricthi"): Likewise.
6128 ("*load_multiple_di", "*load_multiple_si"): Likewise.
6129 ("*store_multiple_di", "*store_multiple_si"): Likewise.
6130 ("*sethiqisi", "*sethihisi"): Likewise.
6131 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
6132 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
6133 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
6134 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
6135 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
6136
6137 ("*tmhi_full"): Fix incorrect op_type attribute.
6138
6139 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
6140 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
6141 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
6142 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
6143
6144 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
6145
6146 PR middle-end/16266
6147 * function.c (temp_slots_at_level): Fix typo which creates too
6148 many temp stack slots levels.
6149
6150 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
6151
6152 * config/s390/s390.c (s390_trampoline_template): Generate shorter
6153 trampoline code.
6154 (s390_trampoline_instantiate): Adapt.
6155 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
6156
6157 2004-10-11 Roger Sayle <roger@eyesopen.com>
6158
6159 PR middle-end/17657
6160 * stmt.c (add_case_node): Add additional type argument. Declare
6161 as static to match prototype. Convert the upper and lower bounds
6162 to the specified index type. Optimize away case ranges/values
6163 that are outside the index type's bounds. Truncate case ranges
6164 that span the index type's bounds.
6165 (expand_case): Avoid unnessary computation and memory allocation
6166 when index type is error_mark_node. Pass index_type as required
6167 by change to add_case_node API. No need to convert case range
6168 bounds to index_type, this is now done by add_case_node.
6169
6170 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
6171
6172 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
6173 * config/s390/s390.c (s390_offset_p): New function.
6174 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
6175 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
6176 transform Q->Q alternatives to *clc pattern.
6177 ("*clc"): Move.
6178 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
6179 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
6180 to transform Q->Q alternatives to *mvc pattern.
6181 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
6182 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
6183 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
6184 transform Q->Q alternatives to *nc pattern.
6185 ("*nc"): New insn. New peephole to merge adjacent NCs.
6186 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
6187 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
6188 transform Q->Q alternatives to *oc pattern.
6189 ("*oc"): New insn. New peephole to merge adjacent OCs.
6190 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
6191 transform Q->Q alternatives to *xc pattern.
6192 ("*xc"): New insn. New peephole to merge adjacent XCs.
6193 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
6194
6195 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
6196
6197 * gimplify.c (gimple_push_condition): Make sure that we don't
6198 have any saved condition cleanup if we were at the top level.
6199
6200 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
6201
6202 * config/frv/frv.md (*adddi3_internal): Change name to...
6203 (adddi3): ...replacing the exisiting define_expand. Combine
6204 alternatives. Fix the range of the constant constraints ('J' instead
6205 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
6206 to extract the lower and upper halves of the DImode operands.
6207 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
6208 (adddi3_lower): Fix the range of the constant constraints and
6209 remove the bogus operands[2] check.
6210 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
6211 operand 2. Use addxi to handle constant operands.
6212 (subdi3_lower, subdi3_upper): Don't handle constant operands.
6213
6214 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
6215
6216 * gengtype-lex.l: Add commented } & ) characters to unconfuse
6217 editor's paren matching. Allow #define inside a struct.
6218
6219 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
6220
6221 PR middle-end/17703
6222 part of PR c++/17657
6223 * fold-const.c (fold_build_cleanup_point_expr): New function.
6224 * tree.h (fold_build_cleanup_point_expr): Prototype.
6225
6226 2004-10-10 Eric Christopher <echristo@redhat.com>
6227
6228 * dwarf2out.c: Move attribute to subprogram declaration
6229 instead of subroutine type.
6230
6231 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
6232
6233 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
6234 hoist_insn_after, and hoist_insn_to_edge.
6235 * rtl.h: Remove the prototypes for reg_referenced_between_p,
6236 no_jumps_between_p, and insn_dependent_p.
6237 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
6238 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
6239 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
6240 hoist_insn_to_edge): Remove.
6241
6242 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
6243
6244 PR c/17881
6245 * c-decl.c (grokparms): Don't warn for parameters of incomplete
6246 type in declarations that are not definitions except for the case
6247 of parameters of void type.
6248
6249 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
6250
6251 * tree-cfg.c: Fix comment typos.
6252
6253 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
6254
6255 PR c/17301
6256 * builtins.c (expand_builtin_va_start): Check for too few
6257 arguments to va_start.
6258
6259 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
6260
6261 PR c/17189
6262 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
6263 fields a pedwarn. Pedwarn here for unnamed structs/unions if
6264 pedantic.
6265 * c-parse.in (component_decl): Don't pedwarn here for unnamed
6266 fields.
6267
6268 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
6269
6270 PR tree-optimization/17906
6271 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
6272 copy non-gimple reg arguments.
6273
6274 2004-10-09 Roger Sayle <roger@eyesopen.com>
6275
6276 PR rtl-optimization/17853
6277 * simplify-rtx.c (simplify_relational_operation): Correct comment.
6278 Reorganize handling of comparison operations with floating point
6279 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
6280 Likewise, introduce support for comparison operations with vector
6281 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
6282
6283 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
6284 * doc/tm.texi: Likewise.
6285
6286 2004-10-09 Steven Bosscher <stevenb@suse.de>
6287
6288 * regs.h (struct reg_info_def): Remove the last_node_uid and
6289 changes_mode fields.
6290 (REGNO_LAST_NOTE_UID): Don't define.
6291 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
6292 * regmove.c (copy_src_to_dest): Likewise.
6293
6294 2004-10-09 Roger Sayle <roger@eyesopen.com>
6295
6296 PR middle-end/17894
6297 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
6298 relational comparison operator op needs to be swapped/reversed when
6299 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
6300
6301 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
6302
6303 PR tree-opt/17902
6304 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
6305 instead of bsi_start.
6306 (value_replacement): Likewise.
6307 (abs_replacement): Likewise
6308
6309 2004-10-09 Steven Bosscher <stevenb@suse.de>
6310
6311 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
6312 (expand_gimple_cond_expr, expand_gimple_tailcall,
6313 expand_gimple_basic_block): Use it to dump RTL for each stmt.
6314 (tree_expand_cfg): Announce full RTL function dump.
6315 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
6316 not the graph version.
6317 * tree-pretty-print.c (dump_generic_node): Allow empty statements
6318 in the arms of a COND_EXPR for lowered nodes.
6319
6320 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
6321
6322 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
6323 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
6324 strtoufix16, strtoufix32, strtoufix64): Declare.
6325
6326 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
6327
6328 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
6329 for an out-of-range floating point constant.
6330 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
6331 warning if the target format does not support infinities.
6332
6333 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
6334
6335 * emit-rtl.c (last_label_num, base_label_num): Remove.
6336 (max_label_num): Always return label_num.
6337 (set_new_last_label_num, restore_emit_status): Remove.
6338 (init_emit): Don't initialize last_label_num.
6339 * function.c (pop_function_context_from): Don't call
6340 restore_emit_status.
6341 * function.h: Remove the prototype for restore_emit_status.
6342 * rtl.h: Remove the prototype for set_new_last_label_num.
6343
6344 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
6345
6346 * stmt.c (expand_decl_init): Remove.
6347 * tree.h: Remove the corresponding prototype.
6348
6349 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
6350
6351 * integrate.c (try_constants, subst_constants, mark_stores):
6352 Remove.
6353 * integrate.h: Remove the prototype for try_constants.
6354
6355 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
6356
6357 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
6358 (convert_for_assignment): Handle ic_argpass_nonproto. Add
6359 comments about its relevance to errors.
6360 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
6361
6362 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
6363
6364 PR c/16999
6365 * c-ppoutput.c (cb_ident): Don't quote string as it is already
6366 quoted.
6367
6368 2004-10-08 Diego Novillo <dnovillo@redhat.com>
6369
6370 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
6371 reference_node_pool.
6372
6373 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
6374
6375 * tree-cfg.c: Fix a comment typo.
6376
6377 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
6378
6379 * config/s390/s390.c (s390_register_info): Don't save fprs for
6380 -msoft-float.
6381 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
6382
6383 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
6384
6385 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
6386 (TARGET_DEFAULT): Use symbolic values.
6387 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
6388 (TARGET_DEFAULT): Use symbolic values.
6389 * config/s390/s390.c (s390_backchain_string): Initialize to
6390 TARGET_DEFAULT_BACKCHAIN.
6391
6392 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6393
6394 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
6395 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
6396 code.
6397 (expand_builtin_strcat): Accept a type parameter.
6398 (fold_builtin_mempcpy): Accept a type and endp parameter.
6399
6400 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
6401 Accept an `exp' instead of an `arglist'.
6402
6403 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
6404
6405 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
6406 reverting my 2004-09-07 patch to use build_int_cst.
6407
6408 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
6409
6410 PR target/17245
6411 * config/sparc/sparc.c (input_operand): Remove redundant code
6412 for handling LO_SUM.
6413 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
6414 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
6415 Otherwise only accept it for TFmode if quad move insns are available.
6416
6417 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
6418
6419 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
6420 common cases will be caught earlier than others.
6421
6422 2004-10-08 Michael Matz <matz@suse.de>
6423
6424 * loop-doloop.c (doloop_optimize): Extend count.
6425
6426 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
6427
6428 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
6429 (prefetch): Convert to expander.
6430
6431 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
6432
6433 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
6434 first argument of CALL.
6435 (tls_local_dynamic): Likewise.
6436
6437 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
6438
6439 * c-typeck.c (enum impl_conv): New.
6440 (convert_for_assignment): Use it. Take tree for function called
6441 instead of its name. Handle ObjC selectors for diagnostics at
6442 start of function. Select diagnostic text within the function
6443 using full sentences for diagnsotics. Use %qE to name functions
6444 in diagnostics.
6445 (convert_arguments, build_modify_expr,
6446 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
6447 callers to convert_for_assignment.
6448 (warn_for_assignment): Remove.
6449
6450 2004-10-08 Nick Clifton <nickc@redhat.com>
6451
6452 * config/sh/symbian.c (symbian_possibly_export_base_class):
6453 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
6454 TYPE_CONTAINS_VPTR_P.
6455
6456 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6457
6458 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
6459 fixed registers form all_used_regs. Update call_really_used_regs.
6460 (CALL_REALLY_USED_REGISTERS): Define.
6461 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
6462 with call_really_used_regs.
6463
6464 2004-10-08 Alan Modra <amodra@bigpond.net.au>
6465
6466 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
6467 for -profile as well as -p and -pg.
6468
6469 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
6470
6471 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
6472
6473 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
6474
6475 * tree-cfg.c (tree_block_forwards_to): Remove.
6476 * tree-flow.h: Remove the corresponding prototype.
6477
6478 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
6479
6480 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
6481 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
6482
6483 2004-10-07 Geoffrey Keating <geoffk@apple.com>
6484
6485 Radar 3813796
6486 * config/rs6000/rs6000.c (rs6000_generate_compare): When
6487 flag_trapping_math is in effect, don't generate subtract
6488 instructions.
6489
6490 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
6491
6492 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
6493 * config/s390/s390.c (s390_narrow_logical_operator): New function.
6494 (s390_extra_constraint_str): Add 'A' constraints.
6495 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
6496 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
6497 (CONSTRAINT_LEN): Likewise.
6498 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
6499 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
6500 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
6501 ("*iordi3"): Add OI alternative and splitter.
6502 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
6503 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
6504 ("*xordi3"): Add XI alternative and splitter.
6505 ("*xorsi3", "*xorhi3"): Likewise.
6506
6507 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
6508
6509 * config/mips/mips.c (mips_function_rodata_section): New function.
6510 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
6511
6512 2004-10-07 Devang Patel <dpatel@apple.com>
6513
6514 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
6515 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
6516 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
6517 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
6518 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
6519 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
6520 UNSPEC_VCONDU_V16QI): New constant defines.
6521 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
6522 vconduv16qi): New patterns.
6523 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
6524 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
6525 (get_vec_cmp_insn): Same.
6526 (get_vsel_insn): Same.
6527 (rs6000_emit_vector_compare): Same.
6528 (rs6000_emit_vector_select): Same.
6529 (INSN_NOT_AVAILABLE): New.
6530
6531 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
6532
6533 PR tree-optimization/17749
6534 * tree-tailcall.c (find_tail_calls): Check that parameter is
6535 a gimple_reg.
6536
6537 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
6538
6539 * config/ia64/ia64.c: Fix a comment typo.
6540
6541 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6542
6543 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
6544
6545 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
6546
6547 PR c++/17115
6548 * tree-inline.c (expand_call_inline): Do not warn for functions
6549 marked with attribute noinline.
6550
6551 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6552
6553 PR target/17862
6554 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
6555 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
6556
6557 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
6558 of 0 as 4th argument to pass_by_reference.
6559 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
6560
6561 2004-10-06 Eric Christopher <echristo@redhat.com>
6562
6563 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
6564 attribute.
6565
6566 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
6567
6568 PR target/17770
6569 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
6570
6571 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
6572
6573 PR rtl-optimization/17791
6574 * loop-doloop.c (doloop_modify): Take number of iterations as
6575 argument.
6576 (doloop_optimize): Extend or shorten the number of iterations
6577 when changing mode of counter register.
6578 * loop-iv.c (lowpart_subreg): Export.
6579 * rtl.h (lowpart_subreg): Declare.
6580
6581 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
6582
6583 PR tree-optimization/17806
6584 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
6585 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
6586 flags moved to split_edge.
6587
6588 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6589
6590 PR middle-end/17835
6591 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
6592 before tentatively building the conditional move sequence.
6593
6594 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
6595
6596 PR target/16815
6597 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
6598 check.
6599 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
6600 function_arg_padding.
6601
6602 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
6603
6604 PR bootstrap/17857
6605 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
6606
6607 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
6608
6609 * hooks.c (hook_int_void_1, hook_void_int): Remove.
6610 * hooks.h: Remove the corresponding prototypes.
6611
6612 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
6613
6614 PR middle-end/17849
6615 * tree-nested.c (walk_stmt_info): Add changed field.
6616 (convert_nonlocal_reference): Set changed to when we
6617 change a decl to unnested decl.
6618 <case ADDR_EXPR>: Instead of checking if the immediate part
6619 of the ADDR_EXPR changed, check the field changed.
6620 Use recompute_tree_invarant_for_addr_expr instead of unsetting
6621 TREE_INVARIANT.
6622 (convert_local_reference): Set changed to when we
6623 change a decl to unnested decl.
6624 <case ADDR_EXPR>: Instead of checking if the immediate part
6625 of the ADDR_EXPR changed, check the field changed.
6626 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
6627
6628 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
6629
6630 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
6631 * dwarf2out.c (dwarf2out_init): Remove references to
6632 DWARF2_GENERATE_TEXT_SECTION_LABEL.
6633 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
6634 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
6635
6636 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
6637
6638 * c-typeck.c (convert_arguments): Take expression for called
6639 function rather than its name. Handle ObjC selectors directly
6640 rather than relying on warn_for_assignment to do so. Call warning
6641 directly rather than warn_for_assignment. Use %qE in diagnostics.
6642 Say "argument" rather than "arg" in diagnostics.
6643 (build_function_call): Update call to convert_arguments.
6644
6645 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
6646
6647 PR debug/17787
6648 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
6649 ENUMs specially instead of just saying we do.
6650
6651 2004-10-06 Eric Christopher <echristo@redhat.com>
6652
6653 * dwarf2.h: Sync with include/elf/dwarf2.h
6654
6655 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
6656
6657 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
6658 and TREE_VEC nodes.
6659
6660 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
6661
6662 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
6663 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
6664
6665 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
6666
6667 * lambda-code.c (compute_nest_using_fourier_motzkin): New
6668 function.
6669 (lambda_compute_auxillary_space): Split from here.
6670
6671 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
6672
6673 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
6674 * tree-flow.h: Add prototype.
6675 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
6676 expr_invariant_in_loop.
6677
6678 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
6679
6680 * tree-cfg.c (thread_jumps): Remove a duplicate check for
6681 EXIT_BLOCK_PTR.
6682
6683 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
6684
6685 * config/s390/s390-protos.h (s_imm_operand): Remove.
6686 (s390_pool_operand): Add prototype.
6687 * config/s390/s390.c (general_s_operand): Remove.
6688 (s_imm_operand): Remove.
6689 (s_operand): Merge contents of general_s_operand.
6690 (s390_pool_operand): New function.
6691 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
6692 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
6693 ("*cmpdi_ccu"): Merge Q->Q alternative.
6694 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
6695 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
6696 ("*cli"): Remove.
6697 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
6698 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
6699 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
6700
6701 2004-10-06 Steve Ellcey <sje@cup.hp.com>
6702
6703 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
6704 call ia64_function_arg_boundary.
6705 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
6706 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
6707 (ia64_function_arg_advance): Do not put 128 bit floats into
6708 FP registers.
6709
6710 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6711
6712 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
6713 Accept an expression instead of an arglist.
6714 (expand_builtin_stpcpy): Accept an expression instead of an
6715 arglist.
6716
6717 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
6718
6719 PR target/16007
6720 * doc/install.texi (*-*-solaris2*): Mention potential problem
6721 with Sun assembler + GNU linker and C++ programs.
6722 Document status of binutils 2.15 release.
6723
6724 2004-10-06 Jan Hubicka <jh@suse.cz>
6725
6726 * cse.c (cse_main): Kill push/pop context.
6727
6728 2004-10-05 Zack Weinberg <zack@codesourcery.com>
6729
6730 * pretty-print.c: Include tree.h.
6731 (pp_base_prepare_to_format): New function, logic from
6732 text_specifies_location.
6733 (pp_base_format_text): Use gcc_assert.
6734 * pretty-print.h (pp_prepare_to_format): New macro.
6735 (pp_base_prepare_to_format): Prototype.
6736 * diagnostic.c (text_specifies_location): Delete.
6737 (bug_report_request): Delete.
6738 (diagnostic_set_info): Don't call text_specifies_location.
6739 (diagnostic_action_after_output): Put text from
6740 bug_report_request inline here. Use gcc_unreachable.
6741 (diagnostic_report_current_function): Fix comment.
6742 (diagnostic_report_diagnostic): Clarify logic for error recursion.
6743 Call pp_prepare_to_format before diagnostic_starter.
6744 (trim_filename): Use IS_DIR_SEPARATOR.
6745 (fatal_error, internal_error): Use gcc_unreachable.
6746 (error_recursion): Call diagnostic_action_after_output to
6747 issue the bug_report_request message and exit.
6748 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
6749
6750 * c-parse.in: Add list of diagnostic messages to insulate
6751 translation template from version of yacc/bison used to
6752 compile the grammar.
6753
6754 2004-10-06 Alan Modra <amodra@bigpond.net.au>
6755
6756 PR 16406
6757 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
6758
6759 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
6760
6761 * basic-block.h: Remove the prototype for
6762 flow_preorder_transversal_compute.
6763 * cfganal.c (dfst_node): Remove.
6764 (flow_preorder_transversal_compute): Likewise.
6765 * rtl.h: Remove the prototype for get_jump_table_offset.
6766 * rtlanal.c (get_jump_table_offset): Remove.
6767
6768 2004-10-05 Richard Henderson <rth@redhat.com>
6769
6770 PR 17756
6771 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
6772
6773 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
6774
6775 PR bootstrap/17817
6776 * Makefile.in: Stage the build directory too.
6777
6778 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
6779
6780 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
6781
6782 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
6783 (frv_emit_move): Same.
6784
6785 * config/frv/frv.c (frv_emit_move): New.
6786 (frv_legitimize_address): New.
6787
6788 * config/frv/frv.md ("movsi"): Call frv_emit_move.
6789 ("movqi"): Same.
6790 ("movhi"): Same.
6791 ("movdi"): Same.
6792 ("movsf"): Same.
6793 ("movdf"): Same.
6794
6795 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
6796
6797 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
6798 system headers.
6799
6800 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
6801
6802 * c-decl.c (pushdecl): When an extern declaration at block scope
6803 refers to a visible entity with internal linkage, use the old DECL
6804 rather than the new one.
6805
6806 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
6807
6808 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
6809 comments.
6810
6811 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
6812
6813 * tree-cfg.c (thread_jumps): Remove a duplicate check for
6814 an infinite loop.
6815
6816 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
6817
6818 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
6819 of FOR_BB_BETWEEN. Remove a useless check for unreachable
6820 blocks.
6821
6822 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
6823
6824 * tree-cfg.c (cleanup_tree_cfg): Don't call
6825 delete_unreachable_blosk() after thread_jumps().
6826 (thread_jumps): Always remove basic blocks as they become
6827 unreachable.
6828
6829 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
6830
6831 * tree-cfg.c (cleanup_tree_cfg): Remove variable
6832 something_changed. Simplify the while loop.
6833
6834 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6835
6836 * builtins.c (expand_builtin_memmove): Delete duplicate code
6837 and accept a tree type for the result.
6838 (expand_builtin_bcopy): Accept a tree type for the result.
6839 (fold_builtin_memmove): Accept an arglist and tree type for
6840 the result.
6841
6842 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
6843
6844 * config/s390/s390.c (s390_dump_pool): Remove return value.
6845 Use gen_pool_align, gen_pool_section_start/end instead of
6846 gen_pool_start/end_31/64.
6847 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
6848 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
6849 ("pool_start_31", "pool_end_31"): Remove.
6850 ("pool_start_64", "pool_end_64"): Likewise.
6851 ("pool_align", "pool_section_start", "pool_section_end": New insns.
6852
6853 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
6854 (TARGET_CANNOT_COPY_INSN_P): Define.
6855 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
6856 (struct constant_pool): New member 'execute'.
6857 (s390_add_execute, s390_find_execute): New functions.
6858 (s390_execute_label, s390_execute_target): Likewise.
6859 (s390_dump_pool): Output in-pool execute target templates.
6860 (s390_dump_execute): New function.
6861 (s390_alloc_pool, s390_free_pool): Handle execute templates.
6862 (s390_mainpool_start, s390_mainpool_finish): Likewise.
6863 (s390_chunkify_start, s390_chunkify_finish): Likewise.
6864 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
6865 ("*execute"): New insn pattern.
6866 ("movmem_short", "*movmem_short"): Use splitters to generate
6867 explicit execute pattern, remove embedded execute.
6868 ("clrmem_short", "*clrmem_short"): Likewise.
6869 ("cmpmem_short", "*cmpmem_short"): Likewise.
6870
6871 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
6872
6873 * tree-ssa.c (verify_ssa): Verify phi arguments only
6874 contain renamed names.
6875
6876 2004-10-05 Alan Modra <amodra@bigpond.net.au>
6877
6878 * config/rs6000/linux.h: Formatting, whitespace.
6879 * config/rs6000/linux64.h: Likewise.
6880 * config/rs6000/rs6000-protos.h: Likewise.
6881 * config/rs6000/rs6000.c: Likewise.
6882 (easy_vector_splat_const): Add fall thru comments.
6883 (output_vec_const_move): Likewise.
6884
6885 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
6886
6887 * Makefile.in: Update -Wno-error exceptions for move to build dir.
6888
6889 2004-10-05 Chao-Ying Fu <fu@mips.com>
6890 Richard Sandiford <rsandifo@redhat.com>
6891
6892 * doc/invoke.texi (-mpaired-single): Link to the new description of the
6893 built-in functions. Document dependencies.
6894 (-mips3d): Add link here too.
6895 * doc/extend.texi (MIPS Paired-Single Support): New section.
6896
6897 2004-10-04 Chao-ying Fu <fu@mips.com>
6898
6899 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
6900
6901 2004-10-04 Diego Novillo <dnovillo@redhat.com>
6902
6903 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
6904 Initialize OPT_STATS to 0.
6905
6906 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
6907
6908 * tree-data-ref.c: Fix comment typos.
6909
6910 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
6911
6912 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
6913 the predicate cannot be computed, don't initialize the result to
6914 false.
6915
6916 2004-10-01 Eric Christopher <echristo@redhat.com>
6917
6918 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
6919 locally defined enum.
6920 * dwarf2out.c (add_calling_convention_attribute): Don't
6921 emit DW_CC_normal.
6922
6923 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
6924
6925 PR c/17178, PR c/17820
6926 * c-decl.c (pop_scope): Do not warn about unused static
6927 variables as they warned in the middle-end.
6928
6929 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6930
6931 * builtins.c (expand_builtin_memcpy): Delete duplicate code
6932 and make the first parameter the expression not the arglist.
6933
6934 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
6935
6936 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
6937 as valid modes to expand address expressions.
6938
6939 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
6940
6941 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
6942 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
6943 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
6944 code formatting conventions.
6945
6946 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
6947
6948 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
6949
6950 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
6951
6952 PR tree-optimization/16632
6953 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
6954 fold (A & C) == D into 0, fold ~C. Similarly, for the case
6955 where | is used instead of &.
6956
6957 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
6958
6959 * ginclude/stddef.h: Fix a comment typo.
6960
6961 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6962
6963 PR target/17443
6964 * config.gcc (i?86-*-solaris2*): Restore correct logic
6965 for --enable-threads option.
6966 (sparc64-*-solaris2*): Likewise.
6967 (sparc-*-solaris2*): Likewise.
6968
6969 2004-10-03 Alan Modra <amodra@bigpond.net.au>
6970
6971 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
6972 (OS_MISSING_POWERPC64): Move, and comment.
6973 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
6974 (OS_MISSING_POWERPC64): Move, and comment.
6975
6976 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
6977
6978 * arm.c (output_call_mem): Add missing \t.
6979
6980 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6981
6982 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
6983 expand_builtin_strncmp): Delete duplicate code.
6984
6985 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
6986
6987 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
6988 take check-base and -limit arguments.
6989 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
6990 check ranges for ARRAY_REF and COMPONENT_REF.
6991 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
6992 instrumentation.
6993
6994 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
6995
6996 * c-objc-common.c (c_tree_printer): Correct description of %E.
6997 Don't fall through after printing an expression.
6998
6999 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
7000
7001 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
7002
7003 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
7004
7005 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
7006 delete_unrechable_blocks() only when necessary.
7007
7008 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
7009
7010 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
7011 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
7012 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
7013 __gthread_recursive_mutex_unlock): New functions.
7014
7015 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
7016
7017 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
7018 * config/s390/tpf-eh.c: Remove file.
7019 * config/s390/tpf-unwind.h: New file.
7020 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
7021 (MD_UNWIND_SUPPORT): Define.
7022
7023 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
7024
7025 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
7026
7027 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
7028
7029 * config/s390/s390-protos.h (s390_comparison): Add prototype.
7030 * config/s390/s390.c (s390_comparison): New function.
7031 (s390_branch_condition_mask): Return -1 for invalid comparisons.
7032 (s390_branch_condition_mnemonic): Assert valid comparison.
7033 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
7034 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
7035 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
7036 s390_comparison instead of comparison_operator.
7037
7038 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
7039 ("cmpmemdi"): Remove.
7040 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
7041 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
7042 ("cmpint_si"): Rename to ...
7043 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
7044 ("cmpint_di", "*cmpint_di"): Likewise.
7045 * config/s390/s390.c (s390_canonicalize_comparison): Remove
7046 redundant UNSPEC_CMPINT conversions.
7047 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
7048
7049 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
7050
7051 * collect2.c (COLLECT_PARSE_FLAG): Remove.
7052 (main): Remove a reference to COLLECT_PARSE_FLAG
7053 * system.h: Poison COLLECT_PARSE_FLAG.
7054 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
7055
7056 2004-10-01 Paul Brook <paul@codesourcery.com>
7057
7058 * config/arm/crti.asm: Give _init and _fini function type.
7059
7060 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
7061
7062 * common.opt (ftree-loop-ivcanon): Enable by default.
7063 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7064 Enable complete loop unrolling.
7065 (canonicalize_induction_variables, tree_unroll_loops_completely):
7066 Reset scev info.
7067
7068 2004-10-01 Paul Brook <paul@codesourcery.com>
7069
7070 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
7071 not register number.
7072 (thumb_find_work_register): Search full register range.
7073
7074 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
7075
7076 PR tree-opt/17343
7077 * tree-cfg.c (group_case_labels): Get the label and not
7078 the case expr for the default case.
7079 When the label we looking at is the default, decrement the
7080 new_size.
7081
7082 2004-10-01 Jan Hubicka <jh@suse.cz>
7083
7084 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
7085 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
7086 * toplev.h (tree_rest_of_compilation): Update prototype.
7087 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
7088
7089 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
7090
7091 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
7092 cleanup_control_flow() out of the while loop.
7093
7094 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
7095
7096 * tree-vectorizer.c (vectorizable_operation): Fail unless
7097 the mode for the vector type is indeed a vector mode.
7098
7099 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
7100
7101 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
7102 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
7103 of convert.
7104 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
7105 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
7106 follow_ssa_edge_in_rhs): Ditto.
7107 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
7108 (dump_iv): Dump base_object.
7109 (dump_use, dump_cand): Use dump_iv.
7110 (determine_base_object): New function.
7111 (alloc_iv): Initialize base_object field.
7112 (record_use): Clear the ssa_name field of iv.
7113 (get_computation_cost_at): Do not use difference of addresses of
7114 two different objects.
7115 (may_eliminate_iv): Do not require the loop to have just single exit.
7116 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
7117 (nonzero_p): New function.
7118 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
7119 tree_simplify_using_condition, simplify_using_initial_conditions,
7120 loop_niter_by_eval, find_loop_niter_by_eval,
7121 estimate_numbers_of_iterations_loop, compare_trees,
7122 upper_bound_in_type, lower_bound_in_type,
7123 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
7124 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
7125 instead of integer_(non)zerop.
7126
7127 2004-10-01 Jakub Jelinek <jakub@redhat.com>
7128
7129 Revert
7130 2004-09-29 Jakub Jelinek <jakub@redhat.com>
7131
7132 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
7133 and TI_VA_LIST_FPR_COUNTER_FIELD.
7134 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
7135 * tree-pass.h (pass_stdarg): Add.
7136 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
7137 * tree-stdarg.c: New file.
7138 * Makefile.in (OBJS-common): Add tree-stdarg.o.
7139 (tree-stdarg.o): Add dependencies.
7140 * function.h (struct function): Add va_list_gpr_size and
7141 va_list_fpr_size fields.
7142 * function.c (allocate_struct_function): Initialize them.
7143
7144 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
7145 va_list_{g,f}pr_counter_field.
7146 (ix86_setup_incoming_varargs): Don't do anything if reg_save
7147 area will not be used. Only save registers that tree-stdarg.c
7148 detected they need saving.
7149 (ix86_va_start): Don't set up fields that won't be used.
7150
7151 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
7152 va_list_{g,f}pr_counter_field.
7153 (setup_incoming_varargs): Don't do anything if reg_save
7154 area will not be used. Only save registers that tree-stdarg.c
7155 detected they need saving.
7156 (rs6000_va_start): Don't set up fields that won't be used.
7157
7158 2004-09-30 Eric Christopher <echristo@redhat.com>
7159
7160 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
7161 sh abi.
7162 * dwarf2out.c (add_calling_convention_attribute): New function.
7163 (gen_subroutine_type_die): Use.
7164 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
7165 * target.h (gcc_target): Add dwarf_calling_convention.
7166 * hooks.c (hook_int_tree_0): New function.
7167 * hooks.h: Prototype.
7168 * config/sh/sh.c: Include dwarf2.h.
7169 (sh_dwarf_calling_convention): New function.
7170 (TARGET_DWARF_CALLING_CONVENTION): Use.
7171 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
7172
7173 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7174
7175 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
7176 expand_builtin_strrchr, expand_builtin_strpbrk,
7177 expand_builtin_strncat, expand_builtin_strspn,
7178 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
7179 code.
7180
7181 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
7182
7183 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
7184 prototype.
7185 (s390_logical_operator_ok_p): Likewise.
7186 * config/s390/s390.c (s390_expand_logical_operator): New function.
7187 (s390_logical_operator_ok_p): Likewise.
7188 * config/s390/s390.md ("anddi3"): New expander.
7189 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
7190 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
7191 ("andsi3"): Use s390_expand_logical_operator.
7192 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
7193 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
7194 ("andhi3"): New expander.
7195 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
7196 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
7197 ("andqi3"): New expander.
7198 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
7199 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
7200 ("iordi3"): New expander.
7201 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
7202 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
7203 ("iorsi3"): Use s390_expand_logical_operator.
7204 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
7205 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
7206 ("iorhi3"): New expiorer.
7207 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
7208 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
7209 ("iorqi3"): New expiorer.
7210 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
7211 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
7212 ("xordi3"): New expander.
7213 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
7214 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
7215 ("xorsi3"): New expander.
7216 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
7217 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
7218 ("xorhi3"): New expander.
7219 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
7220 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
7221 ("xorqi3"): New expander.
7222 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
7223 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
7224
7225 2004-09-30 Roger Sayle <roger@eyesopen.com>
7226
7227 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
7228 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
7229 machine mode as the result.
7230
7231 2004-09-30 Ben Elliston <bje@au.ibm.com>
7232
7233 PR bootstrap/17761
7234 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
7235 FOR_EACH_EDGE macros.
7236
7237 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
7238
7239 * c-tree.h (readonly_error): Remove.
7240 * c-typeck (enum lvalue_use): New.
7241 (lvalue_or_else, readonly_error): Use it. All callers changed.
7242 (readonly_error): Make static.
7243
7244 2004-09-30 Jan Hubicka <jh@suse.cz>
7245
7246 PR debug/13974
7247 * cfgrtl.c (try_redirect_by_replacing_jump,
7248 force_nonfallthru_and_redirect, commit_one_edge_insertion,
7249 cfg_layout_merge_blocks): Do not attach any line number information
7250 to newly inserted instructions.
7251 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
7252 emit_insn_*_noloc.
7253 (emit_*insn_before, emit_insn*_after): New.
7254 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
7255 existing locators.
7256 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
7257 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
7258
7259 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
7260
7261 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
7262 (s390_return_address_offset): Remove.
7263 (s390_can_eliminate): Add prototype.
7264 (s390_initial_elimination_offset): Add prototype.
7265 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
7266 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
7267 * config/s390/s390.c (s390_arg_frame_offset): Remove.
7268 (s390_return_address_offset): Remove.
7269 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
7270 (struct machine_function): New member split_branches_pending_p.
7271 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
7272 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
7273 (s390_optimize_prologue): Remove base_used argument. Call
7274 s390_update_frame_layout instead of s390_register_info. Handle
7275 prologue/epilogue insns that touch only RETURN_REGNUM.
7276 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
7277 (s390_register_info): Remove base_used and return_addr_used
7278 arguments, compute special register usage inline. Return live
7279 register data to caller.
7280 (s390_frame_info): Remove arguments, do not call s390_register_info.
7281 (s390_init_frame_layout): New function.
7282 (s390_update_frame_layout): Likewise.
7283 (s390_emit_prologue): Call s390_update_frame_layout; some code
7284 move to there. Do not emit pool placeholder insn if unnecessary.
7285
7286 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
7287
7288 * config/s390/s390.c (legitimate_reload_constant_p): Remove
7289 floating point constant workaround.
7290 (s390_secondary_input_reload_class): Handle PLUS reloads
7291 with too-large constant.
7292 (s390_expand_plus_operand): Likewise.
7293 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
7294 ("movsi"): Likewise. Also, remove workaround for non-general
7295 operands.
7296 ("movdf"): Do not call force_const_mem.
7297 ("movsf"): Likewise. Merge expander with *movsf insn.
7298 ("*movsf"): Remove, merge with movsf expander.
7299
7300 2004-09-30 Paul Brook <paul@codesourcery.com>
7301
7302 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
7303 (ENDFILE_SPEC): Define.
7304 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
7305
7306 2004-09-30 Richard Henderson <rth@redhat.com>
7307
7308 * config/alpha/qrnnd.asm: Mark for noexecstack.
7309
7310 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
7311
7312 * protoize.c, tree-cfg.c: Fix comment typos.
7313
7314 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
7315
7316 PR c/17730
7317 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
7318
7319 2004-09-30 Diego Novillo <dnovillo@redhat.com>
7320
7321 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
7322 expressions...
7323 (add_pointed_to_expr): ... here.
7324 Call add_pointed_to_expr for variables with DECL_INITIAL set.
7325 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
7326 pointer variable, if set.
7327
7328 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
7329
7330 * config/sh/sh.c: Follow spelling conventions.
7331
7332 2004-09-29 Richard Henderson <rth@redhat.com>
7333
7334 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
7335 * doc/tm.texi (DWARF_ZERO_REG): New.
7336
7337 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
7338 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
7339 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
7340
7341 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
7342
7343 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
7344 with a PLUS as source operand.
7345 (expand_movstr): Likewise.
7346 (expand_builtin_stpcpy): Likewise.
7347
7348 2004-09-29 Richard Henderson <rth@redhat.com>
7349
7350 PR 17739
7351 * tree-gimple.c (is_gimple_reg): Reject hard registers.
7352 (is_gimple_asm_val): New.
7353 * tree-gimple.h (is_gimple_asm_val): Declare.
7354 * gimplify.c (gimplify_asm_expr): Use it.
7355 * tree-pretty-print.c (print_declaration): Dump hard regs.
7356 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
7357 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
7358 * tree-ssa-pre.c (is_undefined_value): Likewise.
7359 * tree-ssa-copy.c (may_propagate_copy): Likewise.
7360 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
7361 * tree-ssa.c (warn_uninit): Likewise.
7362 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
7363
7364 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
7365
7366 * c-decl.c (merge_decls): Use comptype when comparing
7367 types to decide on DECL_SIZE save of olddecl.
7368
7369 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
7370
7371 * tree.h (INDIRECT_REF_P): New macro.
7372 * alias.c (get_alias_set): Use it
7373 (nonoverlapping_memrefs_p): Ditto.
7374 * emit-rtl.c (mem_expr_equal_p): Ditto.
7375 (set_mem_attributes_minus_bitpos): Ditto.
7376 (is_gimple_addressable): Ditto.
7377 (get_base_address): Ditto.
7378 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
7379 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
7380 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
7381 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
7382 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
7383 (add_address_candidates): Ditto.
7384 (rewrite_address_base): Ditto.
7385
7386 2004-09-30 Ben Elliston <bje@au.ibm.com>
7387
7388 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
7389 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
7390 (rewrite_ssa_into_ssa): Likewise.
7391 * tree-phinodes.c (create_phi_node): Access the number of
7392 predecessor edges using EDGE_COUNT() and not num_preds.
7393
7394 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
7395
7396 PR c/7425
7397 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
7398
7399 2004-09-29 Eric Christopher <echristo@redhat.com>
7400
7401 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
7402
7403 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
7404
7405 * config/cris/cris.md (moverside, movemside): With MEM, make sure
7406 the address is (plus reg mem).
7407
7408 2004-09-29 David Edelsohn <edelsohn@gnu.org>
7409
7410 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
7411
7412 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
7413
7414 * tree.c (make_node_stat): Fix uninitialized warning. Replace
7415 cascaded if ... else if with a switch.
7416
7417 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7418
7419 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
7420
7421 2004-09-29 Jakub Jelinek <jakub@redhat.com>
7422
7423 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
7424 and TI_VA_LIST_FPR_COUNTER_FIELD.
7425 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
7426 * tree-pass.h (pass_stdarg): Add.
7427 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
7428 * tree-stdarg.c: New file.
7429 * Makefile.in (OBJS-common): Add tree-stdarg.o.
7430 (tree-stdarg.o): Add dependencies.
7431 * function.h (struct function): Add va_list_gpr_size and
7432 va_list_fpr_size fields.
7433 * function.c (allocate_struct_function): Initialize them.
7434
7435 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
7436 va_list_{g,f}pr_counter_field.
7437 (ix86_setup_incoming_varargs): Don't do anything if reg_save
7438 area will not be used. Only save registers that tree-stdarg.c
7439 detected they need saving.
7440 (ix86_va_start): Don't set up fields that won't be used.
7441
7442 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
7443 va_list_{g,f}pr_counter_field.
7444 (setup_incoming_varargs): Don't do anything if reg_save
7445 area will not be used. Only save registers that tree-stdarg.c
7446 detected they need saving.
7447 (rs6000_va_start): Don't set up fields that won't be used.
7448
7449 2004-09-29 Jakub Jelinek <jakub@redhat.com>
7450
7451 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
7452 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
7453 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
7454 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
7455 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
7456 ATTR_NONNULL_1_4): New.
7457
7458 2004-09-29 Jakub Jelinek <jakub@redhat.com>
7459
7460 PR tree-optimization/17697
7461 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
7462 cfg if needed.
7463
7464 2004-09-28 Per Bothner <per@bothner.com>
7465
7466 * profile.c (branch_prob): Pass correct value to output_location,
7467 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
7468
7469 2004-09-28 Richard Henderson <rth@redhat.com>
7470
7471 PR 15089
7472 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
7473 * tree-flow.h (may_propagate_copy_into_asm): Declare.
7474 * tree-ssa-ccp.c (replace_uses_in): Use it.
7475 * tree-ssa-dom.c (cprop_operand): Likewise.
7476
7477 2004-09-28 Jeff Law <law@redhat.com>
7478
7479 * tree-ssa-threadupdate.c (create_block_for_threading): Request
7480 that no outgoing edges be left in the duplicate block. Do no
7481 update information on outgoing edges or PHI nodes in target
7482 blocks here.
7483 (remove_ctrl_stmt_and_useless_edges): Renamed from
7484 remove_last_stmt_and_useless_edges. Handle case where the
7485 block is empty or has no control statements. Do not update edge
7486 flags here.
7487 (thread_block): Create a template block rather than copying the
7488 original block every time. Create outgoing edges from the
7489 duplicate blocks and update PHIs at the target of the outgoing
7490 edges here. Fix edge flags for the original block if necessary.
7491 * cfghooks (duplicate_block): No longer assert that the original
7492 block has incoming edges.
7493
7494 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
7495
7496 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
7497 Reg Vars to enforce register allocation with general constraints.
7498 (Explicit Reg Vars): Clarify relation to asm statements.
7499 (Local Reg Vars): Similar.
7500
7501 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
7502
7503 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
7504 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
7505 build_control_flow, new_edge): Remove.
7506 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
7507 (bitlst, bitlst_table_last, bitlst_table): Remove.
7508 (bblst): Store basic_block pointer instead of block index.
7509 (bblst_table): Likewise.
7510 (edgelst): Store edge pointer instead of edge index.
7511 (edgelst_table, edgelst_last): New variables.
7512 (extract_bitlst): Rename to ...
7513 (extract_edgelst): ... this. Return edge pointers, not indices.
7514 (split_edges): Update call.
7515 (rgn_edges): Store edge pointers instead of indices.
7516 (edge_to_bit): Remove.
7517 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
7518 (SET_EDGE_TO_BIT): New macro.
7519 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
7520 (find_rgns): Remove edge_list parameter. Traverse standard CFG
7521 data structures instead of haifa_edge et al. Use edge pointers
7522 instead of edge indices everywhere.
7523 (compute_dom_prob_ps): Use standard CFG data structures. Account
7524 for exit edges.
7525 (compute_trg_info): Likewise.
7526 (propagate_deps): Likewise.
7527 (debug_candidate): Account for bblst data structure change.
7528 (check_live_1, update_live_1, is_pfree): Likewise.
7529 (IS_REACHABLE): Use standard CFG data structures.
7530 (init_ready_list): Update bblst_table/edgelst_table allocation.
7531 (schedule_region): Update alloc/cleanup code to data structure
7532 changes. Use edge->aux to store per-region edge index.
7533 (init_regions): No longer call build_control_flow. Do not
7534 create edge list any more.
7535
7536 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
7537
7538 * cse.c (cse_insn): Avoid creating direct non-local jumps.
7539 * combine.c (can_combine_p): Likewise.
7540 * local-alloc. (update_equiv_regs): Likewise.
7541
7542 2004-09-28 Richard Henderson <rth@redhat.com>
7543
7544 PR 17531
7545 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
7546 Don't check VOIDmode here. Force PLUS operands to common type.
7547 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
7548 Pmode if given a non pointer type.
7549
7550 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7551
7552 PR 17531
7553 * optabs.c (expand_binop): Force constants to the correct mode.
7554
7555 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
7556
7557 * config/s390/s390.c (s390_adjust_cost): Remove.
7558 (TARGET_SCHED_ADJUST_COST): Do not redefine.
7559 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
7560 * config/s390/s390.md ("main_pool"): Use "larl" type
7561 attribute if TARGET_CPU_ZARCH.
7562
7563 2004-09-28 Jakub Jelinek <jakub@redhat.com>
7564
7565 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
7566 variable.
7567
7568 2004-09-28 Diego Novillo <dnovillo@redhat.com>
7569
7570 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
7571 name to the pass.
7572
7573 2004-09-28 Steven Bosscher <stevenb@suse.de>
7574
7575 * common.opt (flag_gcse_sm): Disable by default.
7576 (flag_gcse_las): Likewise.
7577 (flag_web): Likewise. Create from this file.
7578 * flags.h: Remove flag_web declaration.
7579 * toplev.c (flag_web): Likewise.
7580 (process_options): Never set flag_web.
7581
7582 2004-09-28 Steven Bosscher <stevenb@suse.de>
7583
7584 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
7585 * tree-ssa-propagate.c: Include vec.h.
7586 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
7587 instead of varrays.
7588 (cfg_blocks_add): Assert the block is not already in the worklist.
7589 Update uses of interesting_ssa_edges and varying_ssa_edges.
7590 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
7591 ssa_propagate): Likewise.
7592
7593 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
7594
7595 PR c/16409
7596 * c-decl.c (start_decl): Check for initializing incomplete array
7597 of VLAs.
7598 (build_compound_literal): Check for TYPE being error_mark_node.
7599 * c-parse.in (primary): Check for VLA compound literals.
7600
7601 2004-09-28 Diego Novillo <dnovillo@redhat.com>
7602
7603 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
7604 with --disable-checking.
7605
7606 2004-09-28 Devang Patel <dpatel@apple.com>
7607
7608 * tree-pretty-print.c (dump_generic_node): Print vector types.
7609
7610 2004-09-28 Nick Clifton <nickc@redhat.com>
7611
7612 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
7613 invocation of the function sh_init_cumulative_args.
7614 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
7615 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
7616 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
7617 * config/sh/sh.c (sh_init_cumulative_args): New function based
7618 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
7619 heuristic added to determine the setting of force_mem when a
7620 library function is being called.
7621
7622 2004-09-28 Diego Novillo <dnovillo@redhat.com>
7623
7624 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
7625 Skip constant arguments.
7626
7627 2004-09-28 Diego Novillo <dnovillo@redhat.com>
7628
7629 * tree-ssa-alias.c (create_name_tags): If PTR points to a
7630 volatile type, mark the tag volatile.
7631 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
7632 volatile.
7633
7634 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
7635
7636 * tree.def (vec_cond_expr): Fix. Change 'e'
7637 to tcc_expression.
7638
7639 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
7640
7641 * basic-block.h: Fix a comment typo.
7642
7643 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
7644
7645 * optabs.c, optabs.h: Fix comment typos.
7646
7647 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
7648
7649 * config/sparc/sparc.md (call_address_struct_value_sp32):
7650 Properly mask the immediate field of the 'unimp' instruction.
7651 (call_symbolic_struct_value_sp32): Likewise.
7652
7653 2004-09-28 Ben Elliston <bje@au.ibm.com>
7654 Steven Bosscher <stevenb@suse.de>
7655 Andrew Pinski <pinskia@physics.uc.edu>
7656
7657 Merge from edge-vector-branch:
7658 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
7659 (struct edge_def): Remove pred_next, succ_next members.
7660 (struct basic_block_def): Remove pred, succ members. Add preds
7661 and succs members of type VEC(edge).
7662 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
7663 (BRANCH_EDGE): Likewise.
7664 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
7665 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
7666 (edge_iterator): New.
7667 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
7668 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
7669 (FOR_EACH_EDGE): New.
7670 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
7671 where applicable.
7672 (rotate_loop): Likewise.
7673 (find_traces_1_route): Likewise.
7674 (bb_to_key): Likewise.
7675 (connect_traces): Likewise.
7676 (copy_bb_p): Likewise.
7677 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
7678 (add_labels_and_missing_jumps): Likewise.
7679 (fix_up_fall_thru_edges): Likewise.
7680 (find_jump_block): Likewise.
7681 (fix_crossing_conditional_branches): Likewise.
7682 (fix_crossing_unconditional_branches): Likewise.
7683 (add_reg_crossing_jump_notes): Likewise.
7684 * bt-load.c (augment_live_range): Likewise.
7685 * cfg.c (clear_edges): Likewise.
7686 (unchecked_make_edge): Likewise.
7687 (cached_make_edge): Likewise.
7688 (make_single_succ_edge): Likewise.
7689 (remove_edge): Likewise.
7690 (redirect_edge_succ_nodup): Likewise.
7691 (check_bb_profile): Likewise.
7692 (dump_flow_info): Likewise.
7693 (alloc_aux_for_edges): Likewise.
7694 (clear_aux_for_edges): Likewise.
7695 (dump_cfg_bb_info): Likewise.
7696 * cfganal.c (forwarder_block_p): Likewise.
7697 (can_fallthru): Likewise.
7698 (could_fall_through): Likewise.
7699 (mark_dfs_back_edges): Likewise.
7700 (set_edge_can_fallthru_flag): Likewise.
7701 (find_unreachable_blocks): Likewise.
7702 (create_edge_list): Likewise.
7703 (verify_edge_list): Likewise.
7704 (add_noreturn_fake_exit_edges): Likewise.
7705 (connect_infinite_loops_to_exit): Likewise.
7706 (flow_reverse_top_sort_order_compute): Likewise.
7707 (flow_depth_first_order_compute): Likewise.
7708 (flow_preorder_transversal_compute): Likewise.
7709 (flow_dfs_compute_reverse_execute): Likewise.
7710 (dfs_enumerate_from): Likewise.
7711 (compute_dominance_frontiers_1): Likewise.
7712 * cfgbuild.c (make_edges): Likewise.
7713 (compute_outgoing_frequencies): Likewise.
7714 (find_many_sub_basic_blocks): Likewise.
7715 (find_sub_basic_blocks): Likewise.
7716 * cfgcleanup.c (try_simplify_condjump): Likewise.
7717 (thread_jump): Likewise.
7718 (try_forward_edges): Likewise.
7719 (merge_blocks_move): Likewise.
7720 (outgoing_edges_match): Likewise.
7721 (try_crossjump_to_edge): Likewise.
7722 (try_crossjump_bb): Likewise.
7723 (try_optimize_cfg): Likewise.
7724 (merge_seq_blocks): Likewise.
7725 * cfgexpand.c (expand_gimple_tailcall): Likewise.
7726 (expand_gimple_basic_block): Likewise.
7727 (construct_init_block): Likewise.
7728 (construct_exit_block): Likewise.
7729 * cfghooks.c (verify_flow_info): Likewise.
7730 (dump_bb): Likewise.
7731 (delete_basic_block): Likewise.
7732 (split_edge): Likewise.
7733 (merge_blocks): Likewise.
7734 (make_forwarder_block): Likewise.
7735 (tidy_fallthru_edges): Likewise.
7736 (can_duplicate_block_p): Likewise.
7737 (duplicate_block): Likewise.
7738 * cfglayout.c (fixup_reorder_chain): Likewise.
7739 (fixup_fallthru_exit_predecessor): Likewise.
7740 (can_copy_bbs_p): Likewise.
7741 (copy_bbs): Likewise.
7742 * cfgloop.c (flow_loops_cfg_dump): Likewise.
7743 (flow_loop_entry_edges_find): Likewise.
7744 (flow_loop_exit_edges_find): Likewise.
7745 (flow_loop_nodes_find): Likewise.
7746 (mark_single_exit_loops): Likewise.
7747 (flow_loop_pre_header_scan): Likewise.
7748 (flow_loop_pre_header_find): Likewise.
7749 (update_latch_info): Likewise.
7750 (canonicalize_loop_headers): Likewise.
7751 (flow_loops_find): Likewise.
7752 (get_loop_body_in_bfs_order): Likewise.
7753 (get_loop_exit_edges): Likewise.
7754 (num_loop_branches): Likewise.
7755 (verify_loop_structure): Likewise.
7756 (loop_latch_edge): Likewise.
7757 (loop_preheader_edge): Likewise.
7758 * cfgloopanal.c (mark_irreducible_loops): Likewise.
7759 (expected_loop_iterations): Likewise.
7760 * cfgloopmanip.c (remove_bbs): Likewise.
7761 (fix_bb_placement): Likewise.
7762 (fix_irreducible_loops): Likewise.
7763 (remove_path): Likewise.
7764 (scale_bbs_frequencies): Likewise.
7765 (loopify): Likewise.
7766 (unloop): Likewise.
7767 (fix_loop_placement): Likewise.
7768 (loop_delete_branch_edge): Likewise.
7769 (duplicate_loop_to_header_edge): Likewise.
7770 (mfb_keep_just): Likewise.
7771 (create_preheader): Likewise.
7772 (force_single_succ_latches): Likewise.
7773 (loop_split_edge_with): Likewise.
7774 (create_loop_notes): Likewise.
7775 * cfgrtl.c (rtl_split_block): Likewise.
7776 (rtl_merge_blocks): Likewise.
7777 (rtl_can_merge_blocks): Likewise.
7778 (try_redirect_by_replacing_jump): Likewise.
7779 (force_nonfallthru_and_redirect): Likewise.
7780 (rtl_tidy_fallthru_edge): Likewise.
7781 (commit_one_edge_insertion): Likewise.
7782 (commit_edge_insertions): Likewise.
7783 (commit_edge_insertions_watch_calls): Likewise.
7784 (rtl_verify_flow_info_1): Likewise.
7785 (rtl_verify_flow_info): Likewise.
7786 (purge_dead_edges): Likewise.
7787 (cfg_layout_redirect_edge_and_branch): Likewise.
7788 (cfg_layout_can_merge_blocks_p): Likewise.
7789 (rtl_flow_call_edges_add): Likewise.
7790 * cse.c (cse_cc_succs): Likewise.
7791 * df.c (hybrid_search): Likewise.
7792 * dominance.c (calc_dfs_tree_nonrec): Likewise.
7793 (calc_dfs_tree): Likewise.
7794 (calc_idoms): Likewise.
7795 (recount_dominator): Likewise.
7796 * domwalk.c (walk_dominator_tree): Likewise.
7797 * except.c (emit_to_new_bb_before): Likewise.
7798 (connect_post_landing_pads): Likewise.
7799 (sjlj_emit_function_enter): Likewise.
7800 (sjlj_emit_function_exit): Likewise.
7801 (finish_eh_generation): Likewise.
7802 * final.c (compute_alignments): Likewise.
7803 * flow.c (calculate_global_regs_live): Likewise.
7804 (initialize_uninitialized_subregs): Likewise.
7805 (init_propagate_block_info): Likewise.
7806 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7807 * gcse.c (find_implicit_sets): Likewise.
7808 (bypass_block): Likewise.
7809 (bypass_conditional_jumps): Likewise.
7810 (compute_pre_data): Likewise.
7811 (insert_insn_end_bb): Likewise.
7812 (insert_store): Likewise.
7813 (remove_reachable_equiv_notes): Likewise.
7814 * global.c (global_conflicts): Likewise.
7815 (calculate_reg_pav): Likewise.
7816 * graph.c (print_rtl_graph_with_bb): Likewise.
7817 * ifcvt.c (mark_loop_exit_edges): Likewise.
7818 (merge_if_block): Likewise.
7819 (find_if_header): Likewise.
7820 (block_jumps_and_fallthru_p): Likewise.
7821 (find_if_block): Likewise.
7822 (find_cond_trap): Likewise.
7823 (block_has_only_trap): Likewise.
7824 (find_if_case1): Likewise.
7825 (find_if_case_2): Likewise.
7826 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
7827 (perfect_nestify): Likewise.
7828 * lcm.c (compute_antinout_edge): Likewise.
7829 (compute_laterin): Likewise.
7830 (compute_available): Likewise.
7831 (compute_nearerout): Likewise.
7832 * loop-doloop.c (doloop_modify): Likewise.
7833 * loop-init.c (loop_optimizer_init): Likewise.
7834 * loop-invariant.c (find_exits): Likewise.
7835 * loop-iv.c (simplify_using_initial_values): Likewise.
7836 (check_simple_exit): Likewise.
7837 (find_simple_exit): Likewise.
7838 * loop-unroll.c (peel_loop_completely): Likewise.
7839 (unroll_loop_constant_iterations): Likewise.
7840 (unroll_loop_runtime_iterations): Likewise.
7841 * loop-unswitch.c (may_unswitch_on): Likewise.
7842 (unswitch_loop): Likewise.
7843 * modulo-sched.c (generate_prolog_epilog): Likewise.
7844 (sms_schedule): Likewise.
7845 * postreload-gcse.c (eliminate_partially_redundant_load):
7846 Likewise.
7847 * predict.c (can_predict_insn_p): Likewise.
7848 (set_even_probabilities): Likewise.
7849 (combine_predictions_for_bb): Likewise.
7850 (predict_loops): Likewise.
7851 (estimate_probability): Likewise.
7852 (tree_predict_by_opcode): Likewise.
7853 (tree_estimate_probability): Likewise.
7854 (last_basic_block_p): Likewise.
7855 (propagate_freq): Likewise.
7856 (estimate_loops_at_level): Likewise.
7857 (estimate_bb_frequencies): Likewise.
7858 * profile.c (instrument_edges): Likewise.
7859 (get_exec_counts): Likewise.
7860 (compute_branch_probabilities): Likewise.
7861 (branch_prob): Likewise.
7862 * ra-build.c (live_in): Likewise.
7863 * ra-rewrite.c (rewrite_program2): Likewise.
7864 * ra.c (reg_alloc): Likewise.
7865 * reg-stack.c (reg_to_stack): Likewise.
7866 (convert_regs_entry): Likewise.
7867 (compensate_edge): Likewise.
7868 (convert_regs_1): Likewise,
7869 (convert_regs_2): Likewise.
7870 (convert_regs): Likewise.
7871 * regrename.c (copyprop_hardreg_forward): Likewise.
7872 * reload1.c (fixup_abnormal_edges): Likewise.
7873 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
7874 (sbitmap_insersection_of_preds): Likewise.
7875 (sbitmap_union_of_succs): Likewise.
7876 (sbitmap_union_of_preds): Likewise.
7877 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
7878 (fix_basic_block_boundaries): Likewise.
7879 (sched_ebbs): Likewise.
7880 * sched-rgn.c (build_control_flow): Likewise.
7881 (find_rgns): Likewise.
7882 * tracer.c (find_best_successor): Likewise.
7883 (find_best_predecessor): Likewise.
7884 (tail_duplicate): Likewise.
7885 * tree-cfg.c (make_edges): Likewise.
7886 (make_ctrl_stmt_edges): Likewise.
7887 (make_goto_expr_edges): Likewise.
7888 (tree_can_merge_blocks_p): Likewise.
7889 (tree_merge_blocks): Likewise.
7890 (cfg_remove_useless_stmts_bb): Likewise.
7891 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
7892 (tree_block_forwards_to): Likewise.
7893 (cleanup_control_expr_graph): Likewise.
7894 (find_taken_edge): Likewise.
7895 (dump_cfg_stats): Likewise.
7896 (tree_cfg2vcg): Likewise.
7897 (disband_implicit_edges): Likewise.
7898 (tree_find_edge_insert_loc): Likewise.
7899 (bsi_commit_edge_inserts): Likewise.
7900 (tree_split_edge): Likewise.
7901 (tree_verify_flow_info): Likewise.
7902 (tree_make_forwarder_block): Likewise.
7903 (tree_forwarder_block_p): Likewise.
7904 (thread_jumps): Likewise.
7905 (tree_try_redirect_by_replacing_jump): Likewise.
7906 (tree_split_block): Likewise.
7907 (add_phi_args_after_copy_bb): Likewise.
7908 (rewrite_to_new_ssa_names_bb): Likewise.
7909 (dump_function_to_file): Likewise.
7910 (print_pred_bbs): Likewise.
7911 (print_loop): Likewise.
7912 (tree_flow_call_edges_add): Likewise.
7913 (split_critical_edges): Likewise.
7914 (execute_warn_function_return): Likewise.
7915 (extract_true_false_edges_from_block): Likewise.
7916 * tree-if-conv.c (tree_if_conversion): Likewise.
7917 (if_convertable_bb_p): Likewise.
7918 (find_phi_replacement_condition): Likewise.
7919 (combine_blocks): Likewise.
7920 * tree-into-ssa.c (compute_global_livein): Likewise.
7921 (ssa_mark_phi_uses): Likewise.
7922 (ssa_rewrite_initialize_block): Likewise.
7923 (rewrite_add_phi_arguments): Likewise.
7924 (ssa_rewrite_phi_arguments): Likewise.
7925 (insert_phi_nodes_for): Likewise.
7926 (rewrite_into_ssa): Likewise.
7927 (rewrite_ssa_into_ssa): Likewise.
7928 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
7929 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
7930 (rewrite_trees): Likewise.
7931 * tree-pretty-print.c (dump_bb_header): Likewise.
7932 (dump_implicit_edges): Likewise.
7933 * tree-sra.c (insert_edge_copies): Likewise.
7934 (find_obviously_necessary_stmts): Likewise.
7935 (remove_data_stmt): Likewise.
7936 * tree-ssa-dom.c (thread_across_edge): Likewise.
7937 (dom_opt_finalize_block): Likewise.
7938 (single_incoming_edge_ignoring_loop_edges): Likewise.
7939 (record_equivalences_from_incoming_edges): Likewise.
7940 (cprop_into_successor_phis): Likewise.
7941 * tree-ssa-live.c (live_worklist): Likewise.
7942 (calculate_live_on_entry): Likewise.
7943 (calculate_live_on_exit): Likewise.
7944 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7945 (copy_loop_headers): Likewise.
7946 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
7947 (fill_always_executed_in): Likewise.
7948 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
7949 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
7950 (compute_phi_arg_on_exit): Likewise.
7951 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
7952 (get_loops_exit): Likewise.
7953 (split_loop_exit_edge): Likewise.
7954 (ip_normal_pos): Likewise.
7955 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
7956 Likewise.
7957 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
7958 (replace_phi_with_stmt): Likewise.
7959 (value_replacement): Likewise.
7960 * tree-ssa-pre.c (compute_antic_aux): Likewise.
7961 (insert_aux): Likewise.
7962 (init_pre): Likewise.
7963 * tree-ssa-propagate.c (simulate_stmt): Likewise.
7964 (simulate_block): Likewise.
7965 (ssa_prop_init): Likewise.
7966 * tree-ssa-threadupdate.c (thread_block): Likewise.
7967 (create_block_for_threading): Likewise.
7968 (remove_last_stmt_and_useless_edges): Likewise.
7969 * tree-ssa.c (verify_phi_args): Likewise.
7970 (verify_ssa): Likewise.
7971 * tree_tailcall.c (independent_of_stmt_p): Likewise.
7972 (find_tail_calls): Likewise.
7973 (eliminate_tail_call): Likewise.
7974 (tree_optimize_tail_calls_1): Likewise.
7975 * tree-vectorizer.c (vect_transform_loop): Likewise.
7976 * var-tracking.c (prologue_stack_adjust): Likewise.
7977 (vt_stack_adjustments): Likewise.
7978 (vt_find_locations): Likewise.
7979 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
7980 * config/i386/i386.c (ix86_pad_returns): Likewise.
7981 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7982 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7983
7984 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
7985
7986 PR target/16532
7987 * config/sparc/sparc.c (struct machine_function): New field
7988 'leaf_function_p' and 'prologue_data_valid_p'.
7989 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
7990 to conveniently access the above fields.
7991 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
7992 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
7993 of the generic flavor 'current_function_uses_only_leaf_regs'.
7994 (eligible_for_sibcall_delay): Likewise.
7995 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
7996 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
7997 (sparc_asm_function_prologue): Add sanity check for the assumption
7998 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
7999 (sparc_can_use_return_insn_p): New function.
8000 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
8001 (output_restore): Likewise.
8002 (output_sibcall): Likewise.
8003 (sparc_output_mi_thunk): Likewise.
8004 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
8005 * config/sparc/sparc.md (return): New expander.
8006
8007 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
8008
8009 2004-09-27 Mark Mitchell <mark@codesourcery.com>
8010
8011 PR c++/17642
8012 * stor-layout.c (layout_decl): Use fold_convert, not convert.
8013 (bit_from_pos): Likewise.
8014 (byte_from_pos): Likewise.
8015 (pos_from_bit): Likewise.
8016 (normalize_offset): Likewise.
8017 (place_field): Likewise.
8018 (finalize_type_size): Likewise.
8019 (layout_type): Likewise.
8020 * tree.c (build_index_type): Likewise.
8021
8022 2004-09-27 Devang Patel <dpatel@apple.com>
8023
8024 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
8025 * genopinit.c (optabs): New entry for vcond_gen_code and
8026 vcondu_gen_code.
8027 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
8028 (get_rtx_code): New function.
8029 (vector_compare_rtx): New function.
8030 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
8031 (expand_vec_cond_expr_p): New function.
8032 (expand_vec_cond_expr): New function.
8033 (get_vcond_icode): New function.
8034 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
8035 (vcond_gen_code, vcondu_gen_code): Same.
8036
8037 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
8038
8039 * Makefile.in (STAGESTUFF): Split into ...
8040 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
8041 (mostlyclean): Update.
8042 (stage1-start, stage2-start, stage3-start, stage4-start,
8043 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
8044 Move the STAGEMOVESTUFF.
8045
8046 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
8047
8048 * system.h (getpagesize): Return 'int' instead of 'long'.
8049
8050 2004-09-27 Michael Matz <matz@suse.de>
8051
8052 PR bootstrap/17698
8053 PR bootstrap/17702
8054 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
8055 bmp_iter_and_init): Shift by bit_in_word.
8056
8057 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
8058
8059 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
8060 * configure.ac: Don't sinclude it here.
8061 * configure: Regenerate.
8062
8063 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
8064
8065 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
8066 Handle AND pattern
8067
8068 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
8069
8070 PR c/13804
8071 * c-typeck.c (build_component_ref): Name type involved in
8072 diagnostic for structure or union without a member of the given
8073 name.
8074
8075 2004-09-27 DJ Delorie <dj@redhat.com>
8076
8077 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
8078 .comm alignment is bytes, not bits.
8079
8080 2004-09-27 Devang Patel <dpatel@apple.com>
8081
8082 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
8083 (print_call_name): Do not print VEC_COND_EXPR.
8084
8085 2004-09-27 Devang Patel <dpatel@apple.com>
8086
8087 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
8088
8089 2004-09-27 Jan Hubicka <jh@suse.cz>
8090
8091 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
8092
8093 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
8094
8095 * bitmap.h: Fix a comment typo.
8096
8097 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
8098
8099 * libgcc2.c (getpagesize): Change type of return value to int.
8100
8101 2004-09-26 Matt Austern <austern@apple.com>
8102
8103 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
8104 using mmap.
8105
8106 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8107
8108 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
8109 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
8110 (bitmap_iterator): New type.
8111 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
8112 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
8113 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
8114 bmp_iter_and_init, bmp_iter_and_next): New functions.
8115 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
8116 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
8117 use iterator-style EXECUTE_IF_IN_BITMAP macros.
8118 * bitmap.c (bitmap_print): Ditto.
8119 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
8120 btr_def_live_range): Ditto.
8121 * cfganal.c (compute_dominance_frontiers_1) Ditto.
8122 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
8123 Ditto.
8124 * ddg.c (build_inter_loop_deps): Ditto.
8125 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
8126 Ditto.
8127 * except.c (remove_eh_handler): Ditto.
8128 * flow.c (reg_set_to_hard_reg_set): Ditto.
8129 * gcse.c (clear_modify_mem_tables): Ditto.
8130 * global.c (build_insn_chain): Ditto.
8131 * ifcvt.c (dead_or_predicable): Ditto.
8132 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
8133 Ditto.
8134 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
8135 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
8136 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
8137 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
8138 tree_purge_all_dead_eh_edges): Ditto.
8139 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
8140 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
8141 rewrite_ssa_into_ssa): Ditto.
8142 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
8143 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
8144 Ditto.
8145 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
8146 compute_flow_sensitive_aliasing, maybe_create_global_var,
8147 dump_points_to_info_for): Ditto.
8148 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
8149 * tree-ssa-dse.c (dse_finalize_block): Ditto.
8150 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
8151 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
8152 Ditto.
8153 * tree-ssa-loop-ivopts.c (find_induction_variables,
8154 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
8155 determine_use_iv_costs, determine_set_costs, find_best_candidate,
8156 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
8157 Ditto.
8158 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
8159 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
8160 add_call_read_ops): Ditto.
8161 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
8162
8163 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8164
8165 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
8166 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
8167
8168 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
8169
8170 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
8171 reflect size of memory regions being compared.
8172
8173 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
8174
8175 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
8176 expressions. Always clear MEM_SIZE and alias set.
8177
8178 2004-09-26 Roger Sayle <roger@eyesopen.com>
8179 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8180
8181 PR middle-end/17112
8182 * stor-layout.c (compute_record_mode): For records with a single
8183 field, only use the field's mode if its size matches what we'd
8184 have choosen for the record ourselves. This forces the use of
8185 BLKmode for packed records that don't completely fill a mode.
8186
8187 2004-09-26 Roger Sayle <roger@eyesopen.com>
8188
8189 PR middle-end/17151
8190 * combine.c (force_to_mode): Remove dubious early return test that
8191 inhibits further optimization.
8192
8193 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
8194
8195 * profile.c: Fix a comment typo.
8196
8197 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8198
8199 PR bootstrap/17591
8200 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
8201 with varying offset.
8202 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
8203 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
8204 ARRAY_REFS.
8205 (expr_invariant_in_loop_p): New function.
8206 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
8207 component_ref_field_offset for COMPONENT_REFs. Do not allow
8208 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
8209 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
8210 MISALIGNED_INDIRECT_REFs.
8211 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
8212 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
8213 MISALIGNED_INDIRECT_REFs.
8214
8215 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
8216
8217 PR c/11459
8218 * gcc.c (cpp_options, cc1_options): Preserve relative order of
8219 -std and -ansi options.
8220
8221 2004-09-26 Jan Hubicka <jh@suse.cz>
8222
8223 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
8224 for nested functions whose proper parent has not been output.
8225
8226 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
8227 when re-constructing profile previously invalidated by loop.
8228
8229 2004-09-25 Dale Johannesen <dalej@apple.com>
8230
8231 * tree-gimple.c: Move GIMPLE definition...
8232 * doc/tree-ssa.texi: here.
8233
8234 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
8235
8236 * tree-vectorizer.c: Fix a comment typo.
8237
8238 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
8239
8240 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
8241 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
8242 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
8243 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
8244
8245 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
8246
8247 * tree-ssa-loop-unswitch.c: Fix a comment typo.
8248
8249 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
8250
8251 * doc/passes.texi: Fix a typo.
8252
8253 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8254
8255 * tree-optimize.c (init_tree_optimization_passes): Add
8256 pass_record_bounds.
8257 * tree-pass.h (pass_record_bounds): Declare.
8258 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
8259 New pass.
8260
8261 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8262
8263 PR tree-optimization/17474
8264 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
8265 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
8266
8267 2004-09-25 Jan Hubicka <jh@suse.cz>
8268
8269 * predict.c (counts_to_freqs): Make global.
8270 * predict.h (counts_to_freqa): Declare.
8271 * profile.c (compute_branch_probabilities): Compute frequencies
8272 * tree-profile.c (do_tree_profiling): Refine conditional on when
8273 tree profiling pass is needed.
8274
8275 * passes.c (rest_of_handle_cfg): Disable const/pure function
8276 detection when doing tree based profiling.
8277
8278 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
8279 conditional.
8280
8281 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
8282
8283 * config/mips/mips.h (struct mips_args): Clarify comments.
8284 * config/mips/mips.c (struct mips_arg_info): Likewise.
8285 (mips_arg_info): Don't allow fpr_p to affect the register or
8286 stack alignment. Remove o64 silliness.
8287 (function_arg): Deal with the o32 float,float case specially.
8288
8289 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
8290
8291 * config/mips/mips.md (loadx, storex): Define for V2SF.
8292
8293 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
8294
8295 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
8296 * config/s390/s390.c (s390_back_chain_rtx): New function.
8297 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
8298 Call anti_adjust_stack.
8299 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
8300 only if compiling with back chain.
8301 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
8302 back chain only if back chain enabled. Use s390_back_chain_rtx.
8303
8304 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
8305
8306 * doc/trouble.texi: Remove obsolete information. Update
8307 information on how to regenerate fixincluded headers.
8308
8309 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
8310
8311 PR c/12951
8312 * doc/invoke.texi: Document that
8313 -Wno-error-implicit-function-declaration is not accepted.
8314
8315 2004-09-24 Richard Henderson <rth@redhat.com>
8316
8317 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
8318 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
8319 on TARGET_MAX.
8320 (alpha_expand_mov): Allow unaligned vectors.
8321 (alpha_expand_unaligned_store): Use CONST0_RTX.
8322 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
8323
8324 2004-09-24 Jeff Law <law@redhat.com>
8325
8326 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
8327 aliasing rules.
8328 (simplify_cond_and_lookup_avail_expr): Likewise.
8329
8330 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
8331
8332 PR c/12802
8333 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
8334 title. Document interaction with -fms-extensions.
8335 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
8336 section.
8337
8338 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
8339
8340 PR c/12713
8341 * doc/extend.texi: Document interaction of attribute noreturn and
8342 longjmp.
8343
8344 2004-09-24 Richard Henderson <rth@redhat.com>
8345
8346 PR rtl-opt/17503
8347 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
8348 (som_hash, som_eq): New.
8349 (init_subregs_of_mode, record_subregs_of_mode): New.
8350 (cannot_change_mode_set_regs): Rewrite for htab implementation.
8351 (invalid_mode_change_p): Likewise.
8352 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
8353 * flow.c (mark_used_regs): Likewise.
8354 (life_analysis): Use init_subregs_of_mode.
8355 * regs.h (subregs_of_mode): Remove.
8356 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
8357
8358 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
8359
8360 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
8361 type with the copy of the conditional.
8362
8363 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
8364
8365 PR tree-opt/16954
8366 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8367 Prevent renaming if the aliasing sets of the type which the
8368 pointer points to are different.
8369
8370 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
8371
8372 PR c/17188
8373 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
8374 declarations of enumerators.
8375 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
8376 for redefinition. Check for nested redefinition.
8377 (finish_struct): Don't check for nested redefinition.
8378 (start_enum): Check for nested redefinition.
8379
8380 2004-09-24 Devang Patel <dpatel@apple.com>
8381
8382 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
8383 only when necesssary.
8384 (combine_blocks): Combine loop header and exit block.
8385
8386 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
8387
8388 * hooks.c (hook_tree_tree_bool_null): New.
8389 * hooks.h (hook_tree_tree_bool_null): Declare it.
8390 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
8391 * targhooks.c (default_fold_builtin): Remove.
8392 * targhooks.h (default_fold_builtin): Remove.
8393
8394 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8395
8396 PR rtl-optimization/17625
8397 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
8398
8399 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
8400
8401 PR tree-opt/17624
8402 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
8403 Reject if any of the operands occur in an abnormal PHI.
8404
8405 2004-09-24 Andreas Schwab <schwab@suse.de>
8406
8407 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
8408 rules.
8409
8410 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
8411
8412 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
8413 if the GNU assembler is used.
8414 (sparc-*-solaris2*): Likewise.
8415 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
8416 (dbxout_function_end): Protect N_ENSYM with it.
8417 (dbxout_begin_prologue): Protect N_BNSYM with it.
8418 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
8419 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
8420 * config/sparc/sol2-gas.h: New file.
8421
8422 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
8423
8424 PR bootstrap/17369
8425 * Makefile.in (@set_gcc_lib_path@): Added.
8426
8427 * configure.ac: Include ../config/gcc-lib-path.m4. Use
8428 TL_AC_GNU_MAKE_GCC_LIB_PATH.
8429 * configure: Regenerated.
8430
8431 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
8432
8433 PR c/6980
8434 * c-typeck.c (build_c_cast): Improve wording of
8435 -Wbad-function-cast diagnostic.
8436
8437 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
8438
8439 PR target/17626
8440 * config/cris/cris.md (moverside, movemside): Rename variable
8441 "reg" to "otherop". To generate canonical RTX, check that otherop
8442 isn't constant instead of checking that operand 1 is a register.
8443
8444 2004-09-23 Jakub Jelinek <jakub@redhat.com>
8445
8446 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
8447
8448 2004-09-23 Diego Novillo <dnovillo@redhat.com>
8449 Jakub Jelinek <jakub@redhat.com>
8450
8451 * tree-flow.h (find_new_referenced_vars): Add prototype.
8452 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
8453 Move to...
8454 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
8455 ... here.
8456 (mark_new_vars_to_rename): Walk through all operands.
8457 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
8458 (execute_fold_all_builtins): Use it.
8459 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
8460
8461 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
8462
8463 * gthr-tpf.h: New file.
8464 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
8465 * gthr.h: Use gthr-tpf.h on TPF OS.
8466
8467 2004-09-23 Jeff Law <law@redhat.com>
8468
8469 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
8470 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
8471 (substitute_and_fold): Likewise.
8472 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
8473 except invariants from SSA_NAME_VALUE.
8474 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
8475 and SET_SSA_NAME_EQUIV.
8476 (restore_vars_to_original_value, record_const_or_copy): Likewise.
8477 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
8478 (record_equality, cprop_into_successor_phis): Likewise.
8479 (record_equivalences_from_stmt, cprop_operand): Likewise.
8480 (lookup_avail_expr): Likewise.
8481 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
8482 from SSA_NAME_VALUE.
8483 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
8484 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
8485 annotation from the VALUE_HANDLE field.
8486
8487 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
8488
8489 PR c++/13989
8490 PR c++/9844
8491 * tree.c (reconstruct_complex_type): Remove extra "this".
8492 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
8493 Add V4SFmode to case statement.
8494
8495 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
8496
8497 PR c/16833
8498 * doc/extend.texi, doc/invoke.texi: Document interaction of
8499 -fno-builtin with format checks. Note that built-in functions
8500 have effects beyond generating code that avoids calls to those
8501 functions.
8502
8503 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
8504
8505 PR tree-optimization/17533
8506 * dominance.c (verify_dominators): Tolerate even more incorrect
8507 dominance data during error message printing.
8508 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
8509 and edges more correctly.
8510
8511 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
8512
8513 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
8514 New tree-codes.
8515 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
8516 MISALIGNED_INDIRECT_REF.
8517 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
8518 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
8519 Likewise.
8520 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
8521 (find_interesting_uses_address): Likewise.
8522 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
8523 (build_fold_addr_expr_with_type): Likewise.
8524 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
8525 * print-rtl.c (print_mem_expr): Likewise.
8526 * tree-dump.c (dequeue_and_dump): Likewise.
8527 * tree-eh.c (tree_could_trap_p): Likewise.
8528 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
8529 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
8530 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
8531 Likewise.
8532 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8533 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
8534 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
8535 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
8536 (add_address_candidates, rewrite_address_base): Likewise.
8537 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
8538 Likewise.
8539 * tree.c (staticp, build1_stat): Likewise.
8540
8541 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
8542 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
8543 * tree-ssa-operands.c (get_expr_operands): Likewise.
8544 * expr.c (expand_expr_real_1): Likewise.
8545
8546 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
8547 optabs.
8548 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
8549 for the new optabs.
8550 (expand_ternary_op): New function.
8551 * genopinit.c (optabs): Handle the new optabs.
8552 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
8553 (init_optabs): Initialize vec_realign_load_optab.
8554 (expand_ternary_op): New functions.
8555
8556 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
8557 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
8558 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
8559 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
8560 * target.h (struct vectorize): New member for struct gcc_target.
8561 (misaligned_mem_ok): New member for targetm.vectorize.
8562 (builtin_mask_for_load): Likewise.
8563 (builtin_mask_for_store): Likewise.
8564 * targethooks.c (default_vect_misaligned_mem_ok): New function.
8565 * targethooks.h (default_vect_misaligned_mem_ok): New function.
8566
8567 * config/rs6000/altivec.md (build_vector_mask_for_load): New
8568 define_expand.
8569 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
8570 (vec_realign_load_v16qi): New define_insn.
8571 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
8572 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
8573 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
8574 (altivec_builtin_mask_for_store): New variables.
8575 (rs6000_builtin_mask_for_load): New function. Implements
8576 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
8577 (rs6000_builtin_mask_for_store): New function. Implements
8578 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
8579 (rs6000_expand_builtin): Expand the target builtins
8580 builtin_mask_for_load and builtin_mask_for_store.
8581 (altivec_init_builtins): Initialize the new target builtins.
8582 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
8583 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
8584
8585 * tree-vectorizer.c (vect_create_data_ref): Renamed to
8586 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
8587 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
8588 (vectorizable_store): Call vect_create_data_ref_ptr with additional
8589 arguments, and create an indirect_ref with its return value data_ref.
8590 Check aligned_access_p.
8591 (vectorizable_load): Handle misaligned loads, using software-pipelined
8592 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
8593 vec_realign_load_optab is supported, or using a scheme without
8594 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
8595 misaligned_mem_ok is supported.
8596
8597 (vect_finish_stmt_generation): Typo.
8598 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
8599 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
8600 presence of misaligned loads.
8601 (vect_analyze_data_ref_access): Add check for constant init.
8602 (vect_get_symbl_and_dr): Remove duplicate line.
8603 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
8604
8605 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
8606
8607 * builtins.c: Fix a comment typo.
8608
8609 2004-09-23 Jan Hubicka <jh@suse.cz>
8610
8611 * profile.c (branch_prob): Do not verify flow info in the middle of the
8612 pass.
8613
8614 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8615
8616 * cfgloop.h (update_single_exits_after_duplication): Declare.
8617 (loopify, split_loop_bb): Declaration changed.
8618 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
8619 of rtx.
8620 (loopify): Added redirect_all_edges argument.
8621 (update_single_exits_after_duplication): Export.
8622 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
8623 * tree-flow.h (tree_duplicate_loop_to_header_edge,
8624 tree_ssa_loop_version): Declare.
8625 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
8626 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
8627 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
8628 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
8629
8630 * tree-ssa-loop-unswitch.c: New file.
8631 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
8632 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
8633 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
8634 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
8635 * tree-pass.h (pass_unswitch): Declare.
8636 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
8637 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
8638 * doc/passes.texi: Documen tree level loop unswitching.
8639
8640 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
8641
8642 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
8643
8644 2004-09-22 Eric Christopher <echristo@redhat.com>
8645
8646 * builtins.c (simplify_builtin_va_start): Remove.
8647 (simplify_builtin): Ditto.
8648 (fold_builtin_strchr): Ditto.
8649 (simplify_builtin_*): Rename remainders to fold_builtin_*.
8650 (expand_builtin): Fix up for above changes.
8651 (fold_builtin_1): Add new folders. Change for above.
8652 (expand_builtin_va_start): Call fold_builtin_next_arg.
8653 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
8654 * tree.h: Remove prototype for simplify_builtin.
8655
8656 2004-09-23 Jan Hubicka <jh@suse.cz>
8657
8658 PR debug/17389
8659 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
8660 of fully inlined functions.
8661 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
8662 inlined.
8663
8664 * cfgexpand.c (add_reg_br_prob_note): New function.
8665 (expand_gimple_cond_expr): Use it.
8666 (tree_expand_cfg): No longer kill the profile.
8667 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
8668 only if it is present.
8669 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
8670 * predict.c (combine_predictions_for_insn): Set the probabilities
8671 based on REG_BR_PROB note if present.
8672 * predict.c (branch_prob): Profile is read only with
8673 flag_branch_probabilities.
8674
8675 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
8676
8677 * aclocal.m4: Add in gettext's m4 includes.
8678 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
8679 * configure.ac: Add in check for iconv.h
8680 * configure: Regenerate.
8681
8682 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
8683
8684 * aclocal.m4: Update for rename of gettext-sister.m4.
8685
8686 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
8687
8688 Fix PR tree-optimization/17587
8689 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
8690 (insert_aux): Instead of here.
8691
8692 2004-09-22 Diego Novillo <dnovillo@redhat.com>
8693
8694 PR tree-optimization/16721
8695 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
8696 * tree-ssa-alias.c (create_memory_tag): Move setting of
8697 TREE_THIS_VOLATILE ...
8698 (get_tmt_for): ... here.
8699
8700 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
8701
8702 * config/sparc/sparc.md (cmove splitter): Fix formatting.
8703 (conditional_trap expander): Reject inappropriate CCmodes.
8704 (conditional trap insn): Use V9 syntax if possible.
8705
8706 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
8707
8708 PR c/16566
8709 * c-typeck.c (build_component_ref): Don't special-case
8710 COMPOUND_EXPR.
8711
8712 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
8713
8714 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
8715 returns NULL.
8716
8717 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
8718
8719 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
8720 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
8721 TRUTH_XOR_EXPR): Mention the restriction on types.
8722
8723 2004-09-22 Matt Austern <austern@apple.com>
8724
8725 * config/darwin.c (darwin_make_decl_one_only):
8726 Allow coalesced symbol to appear in static archive's table of contents
8727
8728 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
8729
8730 PR tree-optimization/17512
8731 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
8732 special cases.
8733
8734 2004-09-22 David Edelsohn <edelsohn@gnu.org>
8735
8736 * dbxout.c (get_lang_number): Do not define if
8737 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
8738
8739 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8740
8741 PR target/15583
8742 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
8743 builtin_define ("__USE_INIT_FINI__").
8744
8745 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
8746
8747 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
8748 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
8749 * config/s390/s390.h (TARGET_TPF): New macro.
8750 * config/s390/s390.md ("eh_return"): New expander.
8751 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
8752 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
8753 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
8754 * config/s390/tpf.h (TARGET_TPF): Define to 1.
8755 (STACK_POINTER_OFFSET): Increase to 448.
8756 (TARGET_DEFAULT): Set -mtpf-trace on as default.
8757 (TPF_LOC_DIFF_OFFSET): New macro.
8758 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
8759 encoding.
8760 (__isPATrange): Add prototype.
8761 (MD_FALLBACK_FRAME_STATE_FOR): Define.
8762 * config/s390/tpf-eh.c: New file.
8763
8764 2004-09-22 Diego Novillo <dnovillo@redhat.com>
8765
8766 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
8767 operands in an integer comparison.
8768 * tree-cfg.c (find_taken_edge): Call fold() to determine
8769 whether the predicate is known.
8770
8771 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
8772
8773 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
8774 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
8775 Create build and doc directories along with the language directories.
8776 Don't create doc directory separately.
8777 * configure: Regenerate.
8778 * Makefile.in: Create all object and executables files built
8779 with the build compiler in a build/ directory.
8780 (genobjnames): Add missing build objects.
8781 (STAGESTUFF): Don't stage the gen* programs.
8782 (ggc-none.o): Define dependencies for the target compiler.
8783 (build-print-rtl.o): Rename to build/print-rtl.o.
8784 (build-errors.o): Rename to build/errors.o.
8785 (build-varray.o): Rename to build/varray.o.
8786 (maintainerclean): Delete the contents of the build directory.
8787 ($(genobjs): %.o): Explicitly use -o.
8788 (build/insn-conditions.o): Delete specfic rule to use generic rule.
8789 (build/gengtype-lex.o): Likewise.
8790 (build/gengtype-yacc.o): Likewise.
8791 (build/gcov-iov.o): Likewise.
8792
8793 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
8794
8795 * vec.h (VEC_space): Return true if there _is_ space.
8796 (VEC_reserve): Adjust.
8797
8798 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
8799
8800 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
8801 use FPRs for scalar, complex and vector types only.
8802
8803 2004-09-21 Jeff Law <law@redhat.com>
8804
8805 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
8806 the opt_stats_d structure.
8807 (vrp_data): Change from a varray into a hash table.
8808 (vrp_hash_elt): New structure for elements in the vrp hash table.
8809 (vrp_hash, vrp_eq):New functions for hashing and testing equality
8810 in the vrp hash table.
8811 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
8812 initialization slightly to make it easier to read. No longer need
8813 to grow/clear the varray. Instead empty and delete the hash table.
8814 (dom_opt_finalize_block): Update due to change of VRP_DATA from
8815 a varray to a hash table.
8816 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
8817
8818 * tree-ssa-ccp.c (get_default_value): If we have a constant
8819 value recorded for an SSA_NAME, then use that constant as
8820 the initial lattice value.
8821 (substitute_and_fold): Transfer equivalences discovered into
8822 SSA_NAME_EQUIV.
8823
8824 * tree.h (SSA_NAME_EQUIV): Add comments.
8825 (SET_SSA_NAME_EQUIV): Similarly.
8826
8827 2004-09-21 David Edelsohn <edelsohn@gnu.org>
8828
8829 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
8830
8831 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
8832
8833 2004-09-21 Mark Mitchell <mark@codesourcery.com>
8834
8835 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
8836 (finish_decl): Likewise.
8837
8838 2004-09-21 Devang Patel <dpatel@apple.com>
8839
8840 * tree.def (VEC_COND_EXPR): New tree node.
8841 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
8842
8843 2004-09-21 Stan Shebs <shebs@apple.com>
8844
8845 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
8846 * config/rs6000/darwin-world.asm: Likewise.
8847
8848 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
8849
8850 * tree-ssa.c (verify_def): Use print_generic_stmt,
8851 not debug_generic_stmt.
8852 (verify_use): Ditto.
8853 (verify_phi_args): Ditto.
8854 (verify_ssa): Ditto.
8855
8856 2004-09-21 Paul Brook <paul@codesourcery.com>
8857
8858 * varasm.c (default_assemble_integer): Return false for values wider
8859 than the target word size. Works around GAS bug.
8860
8861 2004-09-21 Zack Weinberg <zack@codesourcery.com>
8862
8863 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
8864 gets value 0.
8865 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
8866 if it has value 0.
8867
8868 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
8869
8870 * c-typeck.c (build_function_call): Give name of object
8871 we are attempting to call in error message.
8872 * c-objc-common.c (c_tree_printer): Call pp_expression,
8873 not return false, for 'E' case.
8874
8875 2004-09-21 Steven Bosscher <stevenb@suse.de>
8876
8877 PR rtl-optimization/17482
8878 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
8879 load_killed_in_block_p): Clarify comments.
8880 (record_last_reg_set_info): Make static inline.
8881 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
8882 (record_opr_changes): New function to replace the above.
8883 (compute_hash_table): Clarify comments. Use record_opr_changes.
8884 (reg_set_between_after_reload_p): Clean up.
8885 (reg_used_between_after_reload_p): Likewise.
8886 (eliminate_partially_redundant_load): Clarify comments.
8887
8888 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
8889
8890 PR rtl-optimization/17266
8891 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
8892
8893 2004-09-21 Uros Bizjak <uros@kss-loka.si>
8894
8895 PR rtl-optimization/14851
8896 * rtlanal.c (commutative_operand_precedence): Calculate
8897 precedence of stripped constant.
8898
8899 2004-09-20 Jeff Law <law@redhat.com>
8900 Jan Hubicka <jh@suse.cz>
8901
8902 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
8903 initialize key elements here.
8904 (release_ssa_name): Zero the released SSA_NAME here.
8905 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
8906 (struct tree_ssa_name): Add new "equiv" field.
8907 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
8908 (tree_ssa_dominator_optimize): No longer allocate, resize or
8909 clear CONST_AND_COPIES.
8910 (get_value_for, set_value_for): Kill.
8911 (thread_across_edge): Get/set the equivalency using
8912 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
8913 (restore_vars_to_original_value): Likewise.
8914 (record_equivalences_from_phis): Likewise.
8915 (record_dominating_conditions): Likewise.
8916 (record_const_or_copy, record_equality): Likewise.
8917 (lookup_avail_expr): Likewise.
8918 (record_equivalences_from_stmt, cprop_operand): Likewise.
8919 (cprop_into_successor_phis): No longer need to pass around
8920 CONST_AND_COPIES. Callers updated. Get equivalences via
8921 SSA_NAME_EQUIV.
8922 (cprop_into_phis): Likewise.
8923
8924 2004-09-20 Matt Austern <austern@apple.com>
8925 Zack Weinberg <zack@codesourcery.com>
8926
8927 * c-common.c (fix_string_type): Build the unqualified array
8928 type unconditionally, then use c_build_qualified_type to get
8929 the proper const-qualified variant, and set its
8930 TYPE_MAIN_VARIANT to refer to the unqualified type.
8931 * c-lex.c (c_lex_return_raw_string): New global.
8932 (c_lex_with_flags): Honor it.
8933 * c-pragma.h: Declare it.
8934
8935 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
8936
8937 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
8938
8939 2004-09-21 Jan Hubicka <jh@suse.cz>
8940
8941 PR middle-end/17126
8942 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
8943 (tree_rest_of_compilation): Cleanup.
8944
8945 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
8946
8947 * config/s390/s390.c (s390_select_rtx_section): Remove.
8948 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
8949
8950 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
8951
8952 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
8953 note to pretend a direct save from the original register when an
8954 intermediate register is used for the save.
8955
8956 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8957
8958 * tsystem.h (alloca): Provide a default definition.
8959
8960 Revert:
8961 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8962 * unwind-dw2.c: Call __builtin_alloca, not alloca.
8963
8964 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
8965
8966 PR tree-opt/17558
8967 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
8968 aliasing sets are the same rather than just conflicting.
8969
8970 2004-09-20 Jan Hubicka <jh@suse.cz>
8971
8972 PR middle-end/16460
8973
8974 * cgraph.c (cgraph_unnest_node): New function.
8975 (c_finalize): Rename to ....
8976 (c_warn_unused_result_recursivly): ... this one; do only the warning
8977 (finish_function): Finalize the toplevel function; do not lower nested tree.
8978 * cgraph.h (cgraph_unnest_node): Declare.
8979 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
8980 nestedness datastructure.
8981 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
8982 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
8983 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
8984
8985 2004-09-20 Richard Henderson <rth@redhat.com>
8986
8987 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
8988 from some_small_symbolic_operand_1; export.
8989 (some_small_symbolic_operand): Remove.
8990 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
8991 extra C check.
8992 * config/alpha/predicates.md (some_small_symbolic_operand): New.
8993
8994 2004-09-20 Jan Hubicka <jh@suse.cz>
8995
8996 * predict.c (return_prediction): New function.
8997 (apply_return_prediction): Likewise.
8998 (tree_bb_level_predictions): Likewise.
8999 (tree_estimate_probability): Add noreturn exit edges; call
9000 bb_level_predictions; fix logic of return heuristics.
9001 (predict_paths_leading_to): Rescuesce from old CVS version of
9002 process_note_prediction function.
9003 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
9004
9005 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
9006
9007 * config/s390/s390.c (s390_frame_info): Added alignment statement for
9008 floating point register area on stack.
9009
9010 2004-09-20 Jakub Jelinek <jakub@redhat.com>
9011
9012 * predict.c (expr_expected_value): Use *_CLASS_P macros.
9013
9014 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
9015
9016 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
9017 generating useless garbage.
9018
9019 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
9020
9021 * builtins.c (fold_builtin): Call the new omonymous
9022 target hook for machine-dependent built-ins.
9023 * target-def.h (TARGET_FOLD_BUILTIN): New.
9024 * target.h (struct gcc_target): Add the fold_builtin hook.
9025 * targhooks.c (default_fold_builtin): New.
9026 * targhooks.h (default_fold_builtin): Declare it.
9027
9028 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
9029
9030 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
9031 comment typos.
9032
9033 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
9034
9035 PR target/17565
9036 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
9037
9038 2004-09-20 Jan Hubicka <jh@suse.cz>
9039
9040 * predict.c (estimate_probability): Remove unnecesary code.
9041
9042 2004-09-19 Ira Rosen <irar@il.ibm.com>
9043
9044 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
9045 (STMT_VINFO_VECT_DR_BASE): Declare.
9046 (VECT_SMODULO): Declare.
9047 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
9048 (vect_compute_array_base_alignment): New function.
9049 (vect_analyze_data_ref_access): Check array indices. Remove one
9050 dimensional arrays restriction.
9051 (vect_get_ptr_offset): New function.
9052 (vect_get_symbl_and_dr): New function.
9053 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
9054 (former name vect_get_base_decl_and_bit_offset).
9055 (vect_create_index_for_array_ref): Removed.
9056 (vect_create_index_for_vector_ref): New function.
9057 (vect_create_addr_base_for_vector_ref): New function.
9058 (vect_create_data_ref): Handle additional data refs. Call
9059 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
9060 (vect_compute_data_ref_alignment): Support the changes. Call
9061 vect_get_base_and_bit_offset.
9062 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
9063 data refs. Store vect_dr_base.
9064 (vect_analyze_data_ref_accesses): Support nonconstant init.
9065 (new_stmt_vec_info): Initialize vect_dr_base field.
9066 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
9067 (get_vectype_for_scalar_type): Check for BLKmode.
9068 * tree-chrec.h (initial_condition_in_loop_num): Declare.
9069 * tree-chrec.c (initial_condition_in_loop_num): New function.
9070 (chrec_component_in_loop_num): New function.
9071 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
9072 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
9073 to be pointer to varray_type.
9074
9075 2004-09-19 Jan Hubicka <jh@suse.cz>
9076
9077 * basic-block.h (update_bb_profile_after_threading): Declare.
9078 * cfg.c (update_bb_profile_after_threading): Break out from ...
9079 * cfgcleanup.c (try_forward_edges): ... here; use it.
9080 * tree-ssa-dom.c (thread_across_edge): Use it.
9081 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
9082 profile of the new BB.
9083
9084 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
9085
9086 * tree-ssa-pre.c (insert_into_set): Don't put
9087 is_gimple_min_invariant values into the set.
9088
9089 2004-09-19 Andreas Jaeger <aj@suse.de>
9090
9091 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
9092 prototype.
9093
9094 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
9095
9096 * config/cris/cris.h: Preserve the original spelling in a
9097 quote.
9098
9099 2004-09-18 Jeff Law <law@redhat.com>
9100
9101 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
9102 global varrays to replace the block local varrays.
9103 (struct dom_walk_block_data): Remove, no longer used.
9104 (get_eq_expr_value): No longer need to pass around pointers to local
9105 varrays. Callers updated. Unused markers added to unused parameters.
9106 (record_range, record_equivalences_from_stmt): Likewise.
9107 (record_equivalences_from_incoming_edge): Likewise.
9108 (record_var_is_nonzero): Likewise. Update now that we have a
9109 single global varray of SSA_NAMEs that need restoring.
9110 (dom_opt_initialize_block_local_data): Kill, no longer used.
9111 (tree_ssa_dominator_optimize): Initialize new global varrays.
9112 Update callbacks in dominator walker structure.
9113 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
9114 VRP_VARIABLES_STACK.
9115 (restore_nonzero_vars_to_original_value): Update now that we have
9116 a single global varray of SSA_NAMEs that need restoring.
9117 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
9118 Remove unused variables.
9119 (optimize_stmt): Remove unused variable.
9120
9121 2004-09-18 Jan Hubicka <jh@suse.cz>
9122
9123 * tree-cfg.c (thread_jumps): Fix updating of the profile.
9124
9125 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
9126 verify_cgraph call.
9127
9128 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
9129
9130 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
9131 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
9132 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
9133 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
9134 tree-ssa-operands.c, tree-ssa-phiopt.c,
9135 tree-ssa-threadupdate.c: Fix comment typos.
9136
9137 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
9138
9139 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
9140 config/arm/README-interworking, config/arm/arm-cores.def,
9141 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
9142 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
9143 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
9144 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
9145 config/frv/frv.md, config/i386/winnt.c,
9146 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
9147 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
9148 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
9149 config/mcore/mcore.c, config/mips/mips.h,
9150 config/mn10300/mn10300.md, config/pa/pa.c,
9151 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
9152 config/rs6000/rs6000.c, config/sh/symbian.c,
9153 config/sparc/sparc.h: Fix comment typos. Follow spelling
9154 conventions.
9155
9156 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
9157
9158 PR c/17424
9159 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
9160
9161 2004-09-18 Diego Novillo <dnovillo@redhat.com>
9162
9163 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
9164 remove TREE_ADDRESSABLE from RESULT_DECL.
9165
9166 2004-09-18 Diego Novillo <dnovillo@redhat.com>
9167
9168 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
9169
9170 2004-09-18 Jan Hubicka <jh@suse.cz>
9171
9172 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
9173 NULL.
9174 * tree-ssa-alias.c (init_alias_info): Likewise.
9175 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
9176 (verify_ssa): Likewise.
9177 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
9178
9179 2004-09-18 Jan Hubicka <jh@suse.cz>
9180
9181 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
9182 huge offset.
9183
9184 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
9185
9186 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
9187 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9188 DW_EH_PE_sdata* for data.
9189 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9190
9191 2004-09-17 Geoffrey Keating <geoffk@apple.com>
9192
9193 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
9194 shared anyway.
9195
9196 PR pch/13361
9197 * c-typeck.c (constructor_asmspec): Delete.
9198 (struct initializer_stack): Delete field 'asmspec'.
9199 (start_init): Delete saving of asmspec.
9200 (finish_init): Don't update constructor_asmspec.
9201 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
9202 * stmt.c (expand_asm): Duplicate strings from tree.
9203 (expand_asm_operands): Likewise.
9204 * tree.c (tree_size): Update computation of size of STRING_CST.
9205 (make_node): Don't make STRING_CST nodes.
9206 (build_string): Allocate string with tree node.
9207 (tree_code_size): Clean up assertions, don't allow requests
9208 for "the size of a STRING_CST".
9209 * tree.def (STRING_CST): Update comment.
9210 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
9211 (tree_string): Place contents of string in tree node.
9212 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
9213 from tree.
9214
9215 2004-09-17 Zack Weinberg <zack@codesourcery.com>
9216
9217 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
9218 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
9219
9220 2004-09-17 Jones Desougi <jones@ingate.com>
9221
9222 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
9223 * configure, config.in: Regenerate.
9224
9225 2004-09-17 Zack Weinberg <zack@codesourcery.com>
9226
9227 * tree.c, tree.h (tree_class_strings): Make array const.
9228 Reindent per coding convention. Move asterisk to proper place
9229 per coding convention.
9230
9231 2004-09-18 Andreas Schwab <schwab@suse.de>
9232
9233 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
9234 (tree-vectorizer.o): Likewise.
9235 (targhooks.o): Likewise.
9236
9237 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
9238 Zack Weinberg <zack@codesourcery.com>
9239
9240 * alias.c (find_base_decl): Remove unreachable case '3' block.
9241 * expr.c (safe_from_p): Abort if passed a type.
9242 * tree-gimple.c (recalculate_side_effects): Abort if passed
9243 anything other than an expression.
9244 * tree-ssa-pre.c (phi_translate): Return expr immediately if
9245 is_gimple_min_invariant is true for it. Reorder cases for clarity.
9246 Abort on un-handled tree classes.
9247 (valid_in_set): Likewise.
9248 * tree.c (tree_code_class_strings): New static data.
9249
9250 * tree.h (enum tree_code_class): New.
9251 (tree_code_class_strings): Declare.
9252 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
9253 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
9254 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
9255 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
9256 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
9257
9258 * tree.def, c-common.def, objc/objc-tree.def: Use
9259 tree_code_class enumeration constants instead of code letters.
9260
9261 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
9262 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
9263 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
9264 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
9265 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
9266 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
9267 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
9268 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
9269 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
9270 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
9271 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
9272 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
9273 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
9274 Update to match.
9275
9276 * LANGUAGES: Add note about change.
9277
9278 2004-09-17 Diego Novillo <dnovillo@redhat.com>
9279
9280 PR tree-optimization/17319
9281 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
9282 examine pointers on the LHS of an assignment.
9283 (collect_points_to_info_r): Handle RETURN_EXPR.
9284
9285 2004-09-17 Jeff Law <law@redhat.com>
9286
9287 * tree-ssa-dom.c (const_and_copies_stack): New.
9288 (dom_walk_block_data): Remove const_and_copies field.
9289 (record_const_or_copy): No longer need to pass in varray_type *.
9290 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
9291 Callers updated.
9292 (record_equality): Similarly.
9293 (restore_vars_to_original_value): Similarly. Revamp to use new
9294 single global stack rather than per-block stacks.
9295 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
9296 (thread_across_edge): Remove now unused parameters.
9297 (dom_opt_initialize_block_local_data): No longer test the block
9298 local CONST_AND_COPIES.
9299 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
9300
9301 2004-09-17 Jan Hubicka <jh@suse.cz>
9302
9303 PR tree-optimization/17509
9304 * tree-optimize.c (update_inlined_to_pointers): New function.
9305 (tree_rest_of_compilation): Use it.
9306
9307 2004-09-17 Devang Patel <dpatel@apple.com>
9308
9309 * dbxout.c (get_lang_number): New.
9310 (dbxout_init): Include lang number in N_SO stab.
9311 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
9312 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
9313
9314 2004-09-17 Diego Novillo <dnovillo@redhat.com>
9315
9316 PR tree-optimization/17273
9317 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
9318 replacement is a constant.
9319
9320 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
9321
9322 * c-tree.h (enum c_typespec_keyword): New.
9323 (struct c_declspecs): Adjust description of "type". Remove
9324 specbits, explicit_int_p and explicit_char_p. Rename
9325 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
9326 short_p, signed_p, unsigned_p and complex_p.
9327 (finish_declspecs): New.
9328 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
9329 typename): Call finish_declspecs.
9330 * c-decl.c (finish_declspecs): New.
9331 (declspecs_add_type): Check for combinations which cannot occur in
9332 valid specifier lists. Update comments.
9333 (shadow_tag_warned): Remove checks done in finish_declspecs.
9334 Don't report useless type name if type defaulted to int.
9335 (grokdeclarator): Remove checks and actions done in
9336 finish_declspecs. Don't allow for type being NULL. Update for
9337 datastructures changes. Initialize decl_attr.
9338 (build_null_declspecs, quals_from_declspecs): Update for
9339 datastructures changes.
9340
9341 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
9342
9343 * doc/extend.texi: Fix duplicated word.
9344
9345 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
9346
9347 * doc/invoke.texi: Remove stray explanation on
9348 -freduce-all-givs and -fmove-all-movables.
9349
9350 2004-09-17 James Morrison <phython@gcc.gnu.org>
9351
9352 * doc/cfg.texi: Use @smallexample.
9353 * doc/md.texi: Likewise.
9354 * doc/tree-ssa.texi: Likewise.
9355 * doc/extend.texi: Likewise. Use @r{} in comments.
9356 * doc/trouble.texi: Use @r{} in comments.
9357
9358 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
9359
9360 * configure.ac (gcc_cv_gld_version): Handle whitespace before
9361 "VERSION=".
9362 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
9363 * configure: Regenerate.
9364
9365 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
9366
9367 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
9368 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
9369 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
9370 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
9371 slashes in substitutions.
9372 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
9373
9374 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
9375
9376 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
9377 gimplify.c, lambda-code.c, optabs.c, predict.c,
9378 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
9379 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
9380 conventions.
9381
9382 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
9383
9384 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
9385 doc/extend.texi, doc/install.texi, doc/invoke.texi,
9386 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
9387 doc/trouble.texi: Use @option around options.
9388
9389 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
9390
9391 * Makefile.in (gen-protos.o): Depend on errors.h.
9392
9393 2004-09-17 Steven Bosscher <stevenb@suse.de>
9394
9395 PR tree-optimization/17513
9396 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
9397 for successors of the entry block.
9398
9399 2004-09-17 Uros Bizjak <uros@kss-loka.si>
9400
9401 PR rtl-optimization/15187
9402 * ifcvt.c (noce_try_cmove_arith): Exit early if total
9403 insn_rtx_cost of both branches > BRANCH_COST
9404
9405 2004-09-16 Diego Novillo <dnovillo@redhat.com>
9406
9407 PR tree-optimization/17528
9408 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
9409 erase the may-alias set for a tag when merging it with
9410 another.
9411
9412 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
9413
9414 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
9415 for 32-bit TARGET_SHMEDIA.
9416 (call_value): Likewise.
9417
9418 2004-09-16 Diego Novillo <dnovillo@redhat.com>
9419
9420 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
9421 test apply only to TREE_STATIC and DECL_EXTERNAL.
9422
9423 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9424
9425 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
9426 * basic-block.h (get_dominated_by_region): Declare.
9427 * dominance.c (get_dominated_by_region): New function.
9428 * tree-cfg.c: Include cfglayout.h.
9429 (tree_duplicate_bb): Duplicate also phi nodes.
9430 (struct ssa_name_map_entry): New type.
9431 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
9432 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
9433 allocate_ssa_names, rewrite_to_new_ssa_names_def,
9434 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
9435 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
9436 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
9437 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
9438 rewrite_to_new_ssa_names, allocate_ssa_names,
9439 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
9440 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
9441 (copy_loop_headers): Use tree_duplicate_sese_region.
9442
9443 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
9444
9445 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
9446
9447 2004-09-16 Jeff Law <law@redhat.com>
9448
9449 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
9450 (rewrite_block_data): Remove, no longer used.
9451 (rewrite_initialize_block_local_data): Remove, no longer used.
9452 (rewrite_initialize_block): Mark parameters as unused as needed.
9453 Change references to the block local block_defs to be block_defs_stack.
9454 Push a marker onto the block_defs_stack.
9455 (ssa_rewrite_initialize_block): Similarly.
9456 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
9457 (ssa_register_new_def): No longer needs varray argument. Use
9458 block_defs_stack instead. No longer handle possibly null block_defs
9459 varray. Reverse order of items we push on the stack to make it
9460 easier to identify our marker.
9461 (register_new_def): No longer handle possibly null block_defs
9462 varray.
9463 (rewrite_finalize_block): Revamp to look for markers in the global
9464 block_defs_stack varray rather than wiping a block local varray.
9465 Mark arguments as unused as needed.
9466 (ssa_rewrite_finalize_block): Similarly.
9467 (rewrite_into_ssa): Update initialization of dom walker structure
9468 to reflect that we don't need block local data anymore. Initialize
9469 the block_defs_stack varray.
9470 (rewrite_ssa_into_ssa): Similarly.
9471 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
9472 (struct dom_walk_data): Kill block_defs field.
9473 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
9474 (thread_across_edge): Use the global block_defs_stack instead of
9475 the old block_defs varray.
9476 (dom_opt_initialize_block_local_data): Update now that we don't have
9477 block_defs field to check anymore.
9478 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
9479 (restore_currdefs_to_original_value): Use the new block_defs_stack
9480 instead of a block local varray.
9481 (dom_opt_finalize_block): Similarly.
9482 (record_equivalencs_from_phis): Similarly.
9483 (optimize_stmt, register_definitions_for_stmt): Similarly.
9484
9485 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
9486
9487 PR tree-optimization/17517
9488 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9489 coalesce same-root variables without checking for abnormal PHI usage.
9490
9491 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
9492
9493 * cfgloop.h (duplicate_loop): Add prototype.
9494 * cfgloopmanip.c (duplicate_loop): Make non-static.
9495 * lambda-code.c (perfect_nestify): Factor out test whether
9496 we can handle this loop into separate function.
9497 Call it.
9498 (can_convert_to_perfect_nest): New function.
9499 (replace_uses_of_x_with_y): Add modify_stmt call.
9500 * tree-loop-linear.c (linear_transform_loops): Call
9501 rewrite_into_loop_closed_ssa and free_df.
9502
9503 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
9504
9505 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
9506 loop invariant as well.
9507 (perfect_nestify): new function.
9508 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
9509 upper bounds, and steps.
9510 Set outerinductionvar properly.
9511 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
9512 parameters.
9513 Return NULL if we need a perfect loop and can't make one.
9514 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
9515 (not_interesting_stmt): New function.
9516 (phi_loop_edge_uses_def): Ditto.
9517 (stmt_uses_phi_result): Ditto.
9518 (stmt_is_bumper_for_loop): Ditto.
9519 (perfect_nest_p): Ditto.
9520 (nestify_update_pending_stmts): Ditto.
9521 (replace_uses_of_x_with_y): Ditto.
9522 (stmt_uses_op): Ditto.
9523 (perfect_nestify): Ditto.
9524 * lambda-mat.c (lambda_matrix_id_p): New function.
9525 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
9526 * lambda.h: Update prototypes.
9527 * tree-loop-linear (linear_transform_loop): Use new
9528 perfect_nest_p. Detect and ignore identity transform.
9529 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
9530
9531 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
9532
9533 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
9534 Gather also strides of accessed data. Pass in the data references
9535 array.
9536 (try_interchange_loops): Add a new heuristic for handling the temporal
9537 locality. Pass in the data references array.
9538 (linear_transform_loops): Pass the data references array to
9539 try_interchange_loops.
9540
9541 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
9542
9543 * doc/invoke.texi: Fix typos. Follow spelling conventions.
9544
9545 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
9546
9547 * doc/c-tree.texi (Classes): Remove index entries for
9548 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
9549
9550 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9551
9552 * fold-const.c (fold): Fold difference of addresses.
9553 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
9554 get_inner_reference.
9555 * tree-ssa-loop-ivopts.c (peel_address): Removed.
9556 (ptr_difference_const): Moved to fold-const.c.
9557 (split_address_cost): Use get_inner_reference instead of peel_address.
9558 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
9559 * tree.h (ptr_difference_const): Export.
9560
9561 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
9562 variable type to the dump. Fix indentation.
9563 (idx_find_step): Handle nonconstant array_ref_element_size and
9564 array_ref_low_bound.
9565 (idx_record_use): Handle array_ref_element_size and
9566 array_ref_low_bound.
9567 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
9568 statements correctly.
9569 (get_computation_at, iv_value): Do not unshare expressions here.
9570 (rewrite_use_outer): Unshare the expression before it is emitted
9571 to code.
9572 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
9573 Moved to tree.c.
9574 * tree.c (unsigned_type_for, signed_type_for): Moved from
9575 tree-ssa-loop-niter.c. Use langhooks.
9576 * tree.h (signed_type_for): Export.
9577
9578 2004-09-16 David Edelsohn <edelsohn@gnu.org>
9579
9580 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
9581 prototype.
9582
9583 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
9584
9585 PR target/11572
9586 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
9587 Add two parameters to extra_includes.
9588 (C_INCPATH_INIT): Remove.
9589 * c-incpath.c (register_include_chains): Call extra_pre_includes
9590 before adding the standard include directory.
9591 Update call to extra_includes.
9592 (!defined TARGET_EXTRA_INCLUDES): Update
9593 hook_void_charptr_charptr_int and add !define
9594 TARGET_EXTRA_PRE_INCLUDES.
9595 (!define TARGET_EXTRA_INCLUDES): Define as
9596 hook_void_charptr_charptr_int.
9597 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
9598 (target_c_incpath): Always declare.
9599 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
9600 empty function.
9601 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
9602 * config/darwin.h: (darwin_register_frameworks): Update for
9603 the two new parameters.
9604 (darwin_register_objc_includes): Add prototype.
9605 (TARGET_EXTRA_PRE_INCLUDES): Define.
9606 * config/darwin-c.c (darwin_register_objc_includes): New function.
9607 (darwin_register_frameworks): Update for the two new parameters.
9608 (target_c_incpath): Remove.
9609 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
9610 the compile line.
9611 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
9612 parameters.
9613 (TARGET_EXTRA_PRE_INCLUDES): Document.
9614
9615 * gcc.c (spec_function): Add replace-outfile.
9616 (replace_outfile_spec_function): New function.
9617 * config/darwin.h (LINK_SPEC): Add replace
9618 -lobjc with -lobjc-gnu if -fgnu-runtime is
9619 supplied.
9620 * invoke.texi (replace-outfile): Document.
9621
9622 2004-09-13 Jan Hubicka <jh@suse.cz>
9623
9624 * predict.c (expr_expected_value, strip_builtin_expect): New function.
9625 (tree_predict_by_opcode): Use it.
9626 (tree_estimate_probability): Add, for now disabled,
9627 strip_builtin_expect call.
9628
9629 2004-09-15 James E Wilson <wilson@specifixinc.com>
9630
9631 PR target/17455
9632 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
9633 if current_function_decl is a sibcall.
9634
9635 2004-09-15 Mark Mitchell <mark@codesourcery.com>
9636
9637 * varasm.c (default_function_rdodata_section): Make sure to pass
9638 along a decl for a link-once section.
9639
9640 2004-09-15 Richard Henderson <rth@redhat.com>
9641
9642 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
9643 warning with code disable. Fix formatting.
9644
9645 2004-09-15 Steven Bosscher <stevenb@suse.de>
9646
9647 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
9648 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
9649 after propagating into an ADDR_EXPR.
9650
9651 2004-09-15 Andrew Pinski <apinski@apple.com>
9652
9653 PR rtl-opt/17427
9654 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
9655 Move it out of gcc_assert.
9656
9657 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
9658
9659 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
9660 except.c, fold-const.c, function.c, langhooks.c, params.c,
9661 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
9662 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
9663 for quoting in diagnostics going through pretty-print.c. Use ''
9664 for quoting in other diagnostic text.
9665 * langhooks.c: Include intl.h. Mark text locating diagnostics for
9666 translation.
9667 * Makefile.in (langhooks.o): Update dependencies.
9668 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
9669 formats.
9670
9671 2004-09-15 Mark Mitchell <mark@codesourcery.com>
9672
9673 * configure.ac: Check for COMDAT support. Robustify check for
9674 SHF_MERGE support.
9675 * configure: Regenerated.
9676 * config.in: Likewise.
9677 * langhooks-def.h (lhd_comdat_group): New function.
9678 (LANG_HOOKS_COMDAT_GROUP): New macro.
9679 (LANG_HOOKS_DECLS): Use it.
9680 * langhooks.c (lhd_comdat_group): Define.
9681 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
9682 * output.h (named_section_flags): Make it a macro.
9683 (named_section_real): New function.
9684 (default_no_named_section): Add decl parameter.
9685 (default_elf_asm_named_section): Likewise.
9686 (default_coff_asm_named_section): Likewise.
9687 (default_pe_asm_named_section): Likewise.
9688 * target.h (gcc_target): Adjust type of named_section.
9689 * varasm.c (named_section_flags): Rename to named_section_real.
9690 Add decl parameter.
9691 (default_no_named_section): Add decl parameter.
9692 (default_elf_asm_named_section): Use COMDAT, if available. Deal
9693 with the case that ASM_COMMENT_START is "@".
9694 (default_coff_asm_named_section): Add decl parameter.
9695 (default_pe_asm_named_section): Likewise.
9696 * config/alpha/alpha.c (vms_asm_named_section): Add decl
9697 parameter.
9698 (unicosmk_asm_named_section): Likewise.
9699 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
9700 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
9701 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
9702 * config/cris/cris-protos.h (cris_target_asm_named_section):
9703 Likewise.
9704 * config/cris/cris.c (cris_target_asm_named_section):
9705 Likewise.
9706 * config/darwin/darwin-protos.h (darwin_asm_named_section):
9707 Likewise.
9708 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
9709 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
9710 * config/i386/i386-protos.h (i386_pe_asm_named_section):
9711 Likewise.
9712 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
9713 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
9714 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
9715 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
9716 Likewise.
9717 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
9718 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
9719 * cp/cp-tree.h (cxx_comdat_group): Declare.
9720 * cp/decl.c (cxx_comdat_group): New function.
9721
9722 2004-09-15 Jan Hubicka <jh@suse.cz>
9723
9724 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
9725 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
9726
9727 * tree-cfg.c (remove_bb): Release SSA defs.
9728
9729 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
9730
9731 * doc/tm.texi: Follow spelling conventions.
9732
9733 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
9734
9735 * tree-ssa-dom.c: Fix comment typos.
9736
9737 2004-09-15 Alan Modra <amodra@bigpond.net.au>
9738
9739 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
9740 include ccr.
9741 (ppc_fallback_frame_state): Save location of CR.
9742
9743 2004-09-15 Jakub Jelinek <jakub@redhat.com>
9744
9745 * expr.c (string_constant): Handle also read-only variables
9746 initialized to string literals.
9747
9748 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
9749 into memcpy (x, y, 1) if memcpy can be expanded inline.
9750
9751 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9752
9753 PR tree-optimization/17468
9754 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
9755 definition inside a block precede uses.
9756 * tree-tailcall.c (adjust_return_value): Emit statements in the
9757 correct order.
9758
9759 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
9760
9761 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
9762
9763 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
9764
9765 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
9766
9767 2004-09-14 Jeff Law <law@redhat.com>
9768
9769 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
9770 (struct dom_walk_block_data): Remove avail_exprs member.
9771 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
9772 (lookup_avail_expr): No longer need to pass in address of
9773 the block local available exprs stack. All callers changed.
9774 (simplify_cond_and_lookup_avail_expr): Similarly.
9775 (simplify_switch_and_lookup_avail_expr): Similarly.
9776 (get_eq_expr_value, record_cond): Likewise.
9777 (record_dominating_conditions): Likewise.
9778 (update_rhs_and_lookup_avail_expr): Likewise.
9779 (record_equivalences_from_stmt): Likewise.
9780 (dom_opt_initialize_block_local_data): No longer test state of
9781 block local avail_exprs.
9782 (dom_opt_initialize_block): Mark unwind point in the global
9783 avail_expr stack.
9784 (remove_expressions_from_table): Update to unwind to the
9785 most recent unwind marker in the global avail_expr stack.
9786 All callers changed.
9787 (dom_opt_finalize_block): Mark unwind point in the global
9788 avail_expr stack as needed.
9789 (record_cond): Push elements into the global avail_exprs stack.
9790
9791 * tree-dfa.c (free_df_for_stmt): No longer static.
9792 (free_df): Update comments.
9793 * tree-flow.h (free_df_for_stmt): Prototype.
9794 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
9795 call release_defs.
9796
9797 2004-09-14 Diego Novillo <dnovillo@redhat.com>
9798
9799 PR tree-optimization/17252
9800 * tree-ssa-alias.c (may_alias_p): Don't assume that a
9801 pointer may not point to itself when using relaxed
9802 aliasing rules.
9803
9804 2004-09-14 Richard Henderson <rth@redhat.com>
9805
9806 PR middle-end/17397
9807 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
9808 while folding <ADDR_EXPR <INDIRECT_REF X>>.
9809
9810 2004-09-14 Andrew Pinski <apinski@apple.com>
9811
9812 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
9813 sets of the pointers but the aliasing sets of what they point to.
9814
9815 2004-09-14 Roger Sayle <roger@eyesopen.com>
9816
9817 PR rtl-optimization/9771
9818 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
9819 conditional compilation in init_reg_sets_1.
9820 (init_reg_sets_1): Let global_regs[i] take priority over the frame
9821 (but not stack) pointer exceptions to regs_invalidated_by_call.
9822 (globalize_reg): Globalizing a fixed register may need to update
9823 regs_invalidated_by_call.
9824
9825 2004-09-14 Diego Novillo <dnovillo@redhat.com>
9826
9827 PR tree-optimization/15262
9828 * tree-dfa.c (dump_variable): Also print the type of the
9829 variable.
9830 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
9831 memory tags are of conflicting alias sets but have no aliased
9832 symbols in common, add one tag to the alias set of the other.
9833 (setup_pointers_and_addressables): Remove hack to deal with
9834 programs with no aliased symbols.
9835 (may_alias_p): Don't special case aggregate types.
9836
9837 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
9838
9839 PR c/15498
9840 * doc/invoke.texi (Environment Variables): Correct example locale.
9841
9842 2004-09-14 Jan Hubicka <jh@suse.cz>
9843
9844 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
9845
9846 2004-09-14 Mark Mitchell <mark@codesourcery.com>
9847
9848 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
9849
9850 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
9851
9852 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
9853 restrict_p.
9854 (struct c_declarator): Change u.array.quals and pointer_quals to
9855 int. Add u.array.attrs.
9856 (quals_from_declspecs): New.
9857 * c-decl.c (quals_from_declspecs): New.
9858 (shadow_tag_warned): Give more specific message for useless type
9859 qualifiers.
9860 (build_array_declarator, set_array_declarator_inner,
9861 grokdeclarator, make_pointer_declarator, build_null_declspecs,
9862 declspecs_add_qual): Update for changed structures.
9863
9864 2004-09-14 Jeff Law <law@redhat.com>
9865
9866 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
9867 to a global varray.
9868 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
9869 (dom_opt_initialize_block_local_data): No longer test state
9870 of stmts_to_rescan.
9871 (dom_opt_finalize_block): Update due to change in scope of
9872 stmts_to_rescan.
9873 (optimize_stmt): Similarly.
9874
9875 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
9876
9877 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
9878 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
9879 comment typos. Follow spelling conventions.
9880
9881 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
9882
9883 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
9884 config/i386/predicates.md, config/sparc/sparc.c: Follow
9885 spelling conventions.
9886
9887 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9888 Steven Bosscher <stevenb@suse.de>
9889
9890 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
9891 * basic-block.h (struct reorder_block_def): Add copy_number field.
9892 * cfgloop.h (biv_p): Declare.
9893 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
9894 * common.opt (fsplit-ivs-in-unroller): New flag.
9895 * loop-iv.c (biv_p): New function.
9896 * loop-unroll.c: Include hashtab.h and recog.h.
9897 (struct iv_to_split, struct split_ivs_info): New types.
9898 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
9899 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
9900 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
9901 insert_base_initialization, split_iv): New functions.
9902 (peel_loop_completely, unroll_loop_constant_iterations,
9903 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
9904 Use them.
9905 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
9906
9907 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9908
9909 * tree-cfg.c (thread_jumps): Update dominators correctly in
9910 case destination of threaded edge dominates its source.
9911
9912 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9913
9914 * unroll.c: Removed.
9915 * loop.h: Removed.
9916 * Makefile.in (LOOP_H, unroll.o): Removed.
9917 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
9918 dependency.
9919 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
9920 reference.
9921 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
9922 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
9923 * loop.c: Do not include loop.h.
9924 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
9925 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
9926 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
9927 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
9928 struct loop_regs, struct loop_movables, struct loop_info): Moved
9929 from loop.h.
9930 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
9931 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
9932 find_common_reg_term, loop_iterations, final_giv_value): Moved
9933 from unroll.c.
9934 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
9935 loop_dump_stream, for_each_insn_in_loop, express_from,
9936 extend_value_for_giv, loop_iv_add_mult_emit_before,
9937 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
9938 loop_insn_first_p, get_condition_for_loop,
9939 loop_insn_emit_before, loop_insn_hoist,
9940 loop_insn_sink): Made static.
9941 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
9942 reference.
9943 (strength_reduce): Do not call unroller.
9944 (record_giv): Do not initialize unrolled field.
9945 (prescan_loop): Do not set loop_info->preconditioned.
9946 * passes.c: Do not include loop.h.
9947 (rest_of_handle_loop_optimize): Do not call unroller.
9948 * predict.c: Do not include loop.h.
9949 * rtl.h (NOTE_PRECONDITIONED): Removed.
9950 * stmt.c: Do not include loop.h.
9951 * toplev.c: Do not include loop.h.
9952 (process_options): Do not handle flag_old_unroll_loops.
9953
9954 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
9955 Documentation removed.
9956 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
9957
9958 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
9959
9960 * Makefile.in (STAGE1_CHECKING): New variable.
9961 (stage1_build): Use it.
9962 * tree-ssa.c (verify_ssa): Preserve state of dominance
9963 information.
9964
9965 2004-09-14 Uros Bizjak <uros@kss-loka.si>
9966
9967 * config/i386/i386.c (output_fp_compare): Add generation
9968 of ftst instruction.
9969 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
9970 Use output_fp_compare () function.
9971 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
9972 (fix_truncdi_memory): Remove operands[5] copy.
9973
9974 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
9975
9976 * config/m32r/m32r.md, config/m68k/m68kelf.h,
9977 config/mcore/mcore.md, config/rs6000/linux64.h,
9978 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
9979 typos.
9980
9981 2004-09-13 James E Wilson <wilson@specifixinc.com>
9982
9983 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
9984 * gen-protos.c: Include errors.h.
9985 (progname): Delete.
9986
9987 2004-09-14 Jan Hubicka <jh@suse.cz>
9988
9989 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
9990 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
9991 (predict_loops): Use number_of_iterations_exit to predict
9992 number of iterations on trees.
9993
9994 2004-09-13 Dale Johannesen <dalej@apple.com>
9995
9996 PR 17408
9997 PR 17409
9998 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
9999 objects declared extern.
10000
10001 2004-09-14 Paul Brook <paul@codesourcery.com>
10002
10003 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
10004 HOST_WIDE_INT.
10005
10006 2004-09-13 Daniel Jacobowitz <dan@debian.org>
10007
10008 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
10009 Only use TYPE_BINFO for aggregates.
10010
10011 2004-09-13 Daniel Jacobowitz <dan@debian.org>
10012
10013 * expmed.c (synth_mult): Initialize latency. Check cost before
10014 checking ops count.
10015
10016 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
10017
10018 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
10019 add_call_clobber_ops and add_call_read_ops.
10020 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
10021 the number of vdefs and vuses inserted based on analysis of global
10022 variables across calls. * tree-dfa.c (find_referenced_vars):
10023 Needed to reset static var maps before each function is compiled.
10024 * cgraphunit.c:
10025 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
10026 static_vars_info,functions_to_static_vars_info,module_statics_escape,
10027 all_module_statics,searchc_env,dfs_info): New fields to support
10028 analysis of static global variables.
10029 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
10030 cgraph_reset_static_var_maps, get_global_static_vars_info,
10031 get_global_statics_not_read, get_global_statics_not_written,
10032 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
10033 check_rhs_var, check_lhs_var, get_asm_expr_operands,
10034 process_call_for_static_vars, scan_for_static_refs,
10035 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
10036 clear_static_vars_maps, cgraph_propagate_bits,
10037 cgraph_characterize_statics): New. Functions to support analysis
10038 of static global variables.
10039 (cgraph_mark_local_and_external_functions): Renamed from:
10040 (cgraph_mark_local_functions)
10041 (cgraph_expand_all_functions): Remove call to
10042 cgraph_mark_local_and_external_functions.
10043 (cgraph_optimize): Added driver to analyze static variables whose
10044 scope is within the compilation unit. * cgraph.h (struct
10045 cgraph_local_info, GTY): Added statics_read, statics_written,
10046 local, calls_read_all, calls_write_all, for_functions_valid.
10047 (struct cgraph_node): Added next_cycle. * cgraph.c
10048 (dump_cgraph_node): Added print routines for new fields. *
10049 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
10050 list.
10051
10052 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
10053
10054 * c-decl.c (grokdeclarator): Correct comments about where storage
10055 class specifiers are rejected by grammar and add corresponding
10056 asserts. Diagnose typedefs and parameters declared inline.
10057 Change warning for inline main to a pedwarn. Only diagnose inline
10058 main if hosted.
10059 (declspecs_add_scspec): Allow duplicate "inline".
10060
10061 2004-09-13 Steve Ellcey <sje@cup.hp.com>
10062
10063 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
10064 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
10065
10066 2004-09-13 Richard Henderson <rth@redhat.com>
10067
10068 PR 17436
10069 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
10070 (tree_type): Replace spare with contains_placeholder_bits.
10071 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
10072 make static. Remove seen_types list.
10073 (type_contains_placeholder_p): New.
10074
10075 2004-09-13 James E Wilson <wilson@specifixinc.com>
10076
10077 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
10078 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
10079 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
10080 bdesc_arrays instead of mips_bdesc.
10081 (mips_init_builtins): Likewise.
10082 * config/mips/mips.h (TARGET_SB1): New.
10083 (HAVE_SQRT_P): Delete.
10084 * config/mips/mips.md (divide_condition): Support V2SF.
10085 (sqrt_condition, recip_condition): New.
10086 (div<mode>3): Use ANYF instead of SCALARF.
10087 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
10088 MODE.
10089 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
10090 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
10091 instead of MODE.
10092 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
10093 instead of SCALARF. Use UNITMODE instead of MODE.
10094
10095 2004-09-13 Zack Weinberg <zack@codesourcery.com>
10096
10097 * config.in: Regenerate after removal of libbanshee.
10098
10099 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
10100
10101 PR tree-optimization/17400
10102 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10103 coalesce partitions when one occurs in an abnormal PHI.
10104
10105 2004-09-13 Andrew Pinski <apinski@apple.com>
10106
10107 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
10108 name to _new_size.
10109
10110 2004-09-13 Richard Henderson <rth@redhat.com>
10111
10112 PR inline-asm/6806
10113 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
10114 (cselib_invalidate_rtx_note_stores): New.
10115 (cselib_record_sets, cselib_process_insn): Update to match.
10116 * cselib.h (cselib_invalidate_rtx): Declare.
10117 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
10118
10119 2004-09-13 Richard Henderson <rth@redhat.com>
10120
10121 PR tree-opt/10528
10122 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
10123 after copying its argument.
10124
10125 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
10126
10127 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
10128 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
10129 in diagnostics. Use %' for English apostrophes.
10130 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
10131 (pedwarn_c90, pedwarn_c99): Use it.
10132 * c-decl.c (lookup_label): Quote label name in diagnostic.
10133 * c-parse.in (yyprint): Use ' instead of ` for left quote.
10134 * c-typeck.c (warn_for_assignment): Likewise.
10135
10136 2004-09-13 Jan Hubicka <jh@suse.cz>
10137
10138 * i386.c (x86_schedule): New global variable.
10139 (override_options): Disable scheduling when not supported.
10140 * i386.h (x86_schedule): Declare.
10141 (TARGET_SCHEDULE): New macro.
10142
10143 2004-09-12 Richard Henderson <rth@redhat.com>
10144
10145 PR c++/16254
10146 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
10147 * tree.c, tree.h (has_cleanups): Remove.
10148
10149 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10150
10151 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
10152 arguments of the phi nodes correctly.
10153
10154 2004-09-12 Jan Hubicka <jh@suse.cz>
10155
10156 * ggc-common.c (cmp_statistics): Fix sorting.
10157
10158 2004-09-12 David Edelsohn <edelsohn@gnu.org>
10159
10160 PR target/16795
10161 * expmed.c (expand_divmod): If cheap power of 2 divide is
10162 available, use it for negative constant as well.
10163
10164 2004-09-12 Andrew Pinski <apinski@apple.com>
10165
10166 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
10167 size of 0.
10168
10169 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
10170
10171 2004-09-12 Richard Henderson <rth@redhat.com>
10172
10173 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
10174 or minus one.
10175 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
10176 post-reload, and scratch NULL.
10177 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
10178 (x86_shift_adj_2): Use ix86_expand_clear.
10179 (ashldi3): Remove CMOVE expansion difference.
10180 (ashldi3_1): Remove.
10181 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
10182 add constraints for immediates. New peephole for split-with-temp.
10183 Run splitter after peep2 pass.
10184 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
10185 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
10186 (setcc_2): Rename with *.
10187 * config/i386/predicates.md (reg_or_pm1_operand): New.
10188 (ashldi_input_operand): New.
10189
10190 2004-09-12 Richard Henderson <rth@redhat.com
10191
10192 * print-rtl.c (print_decl_name): New.
10193 (print_mem_expr): Use it.
10194
10195 2004-09-12 Richard Henderson <rth@redhat.com
10196
10197 PR 17186, part deux
10198 * except.c (sjlj_emit_function_exit): Fix logic locating
10199 sjlj_exit_after in final block.
10200
10201 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
10202
10203 * common.opt: Remove flags -fmove-all-movables and
10204 -freduce-all-givs.
10205 * loop-invariant.c (find_invariants_to_move):
10206 Remove all uses of flag_move_all_movables.
10207 * loop.c (move_movables): Remove all uses of
10208 flag_move_all_movables.
10209 (strength_reduce): Remove all uses of
10210 flag_reduce_all_givs.
10211 * doc/invoke.texi: Remove documentation of flags
10212 -fremove-all-movables and -freduce-all-givs.
10213
10214 2004-09-11 Roger Sayle <roger@eyesopen.com>
10215
10216 PR middle-end/17411
10217 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
10218 change. elt->type may be a floating point type, so use fold_convert.
10219
10220 2004-09-11 Geoffrey Keating <geoffk@apple.com>
10221
10222 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
10223 the thing referenced as used, not the stub itself.
10224
10225 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
10226
10227 * c-tree.h (enum c_storage_class): New.
10228 (struct c_declspecs): Add storage_class, inline_p and thread_p.
10229 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
10230 declarations and "auto" or "register" in file scope empty
10231 declarations. Give more specific warnings for other cases of
10232 storage class specifiers in empty declarations.
10233 (grokdeclarator): Update for new structures. Don't check for
10234 multiple storage classes. Diagnose file-scope "register" if
10235 pedantic.
10236 (build_null_declspecs): Update.
10237 (declspecs_add_scspec): Update. Diagnose multiple storage class
10238 specifiers and invalid uses of "__thread".
10239
10240 2004-09-11 Zack Weinberg <zack@codesourcery.com>
10241
10242 * tree.c (tree_code_size): New function, bulk of code from tree_size.
10243 (tree_size, make_node): Use it.
10244 * tree-ssa-pre.c (init_pre): Use it.
10245 * tree.h: Prototype it.
10246
10247 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10248
10249 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
10250 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
10251 redirect_immediate_use): Use PHI_DF.
10252 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
10253 (bb_for_stmt): Use PHI_BB.
10254 (get_immediate_uses): Use PHI_DF.
10255 * tree-ssa-dse.c (max_stmt_uid): New variable.
10256 (get_stmt_uid): New function.
10257 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
10258 node annotations.
10259 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
10260 (max_uid): Renamed to max_stmt_uid.
10261 (get_stmt_uid): New function.
10262 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
10263 phi node annotations.
10264 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
10265 * tree.h (PHI_BB, PHI_DF): New accessor functions.
10266 (struct tree_phi_node): Add bb and df fields.
10267
10268 2004-09-11 Richard Henderson <rth@redhat.com>
10269
10270 PR middle-end/17416
10271 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
10272 in conflict loop.
10273
10274 2004-09-11 Jan Hubicka <jh@suse.cz>
10275
10276 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
10277 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
10278 * i386.md (i387_cw): Add 'uninitialized' mode.
10279
10280 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
10281 (output_location): Break out from ....
10282 (branch_prob): ... here; handle gcov output on trees.
10283 * toplev.c (process_options): No longer be sorry about coverage for
10284 trees.
10285
10286 2004-09-11 Steven Bosscher <stevenb@suse.de>
10287
10288 PR c++/17412
10289 * fold-const.c (fold): Do not try to fold the operand of a
10290 CLEANUP_POINT_EXPR if that operand does itself not have any
10291 operands.
10292
10293 PR middle-end/17417
10294 * langhooks.c (lhd_decl_printable_name): Make sure that this
10295 function is called with is a decl node that has an identifier.
10296 * tree-pretty-print.c (dump_function_name): New function to
10297 wrap PRINT_FUNCTION_NAME and dump_decl_name.
10298 (print_call_name): Use it.
10299
10300 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
10301
10302 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
10303 "config.h" if not.
10304
10305 2004-09-11 Jakub Jelinek <jakub@redhat.com>
10306
10307 * tree-ssa-alias.c (collect_points_to_info_r): Handle
10308 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
10309 to OFFSET.
10310
10311 2004-09-11 Richard Henderson <rth@redhat.com>
10312
10313 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
10314 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
10315 operand of the ADDR_EXPR.
10316 (expand_expr_real_1): Update to match.
10317
10318 2004-09-11 David Edelsohn <edelsohn@gnu.org>
10319
10320 PR target/17277
10321 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
10322 choose 64-bit version.
10323
10324 2004-09-11 Richard Henderson <rth@redhat.com>
10325
10326 PR c/17396
10327 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
10328
10329 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
10330
10331 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
10332 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
10333 Insert @: after i.e. or e.g.
10334
10335 2004-09-10 Geoffrey Keating <geoffk@apple.com>
10336
10337 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
10338 D.xxx rather than <Dxxx>.
10339
10340 2004-09-10 Adam Nemet <anemet@lnxw.com>
10341
10342 * configure.ac (AC_MSG_CHECKING(what linker to use)):
10343 in_tree_ld_is_elf should be true for LynxOS.
10344 * configure: Regenerate.
10345
10346 2004-09-10 Adam Nemet <anemet@lnxw.com>
10347
10348 * Makefile.in (all.cross): Add srcextra.
10349
10350 2004-09-10 Roger Sayle <roger@eyesopen.com>
10351
10352 PR middle-end/17024
10353 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
10354 floating point comparison operators. Change aborts to gcc_asserts.
10355
10356 2004-09-10 Geoffrey Keating <geoffk@apple.com>
10357
10358 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
10359
10360 2004-09-10 James E Wilson <wilson@specifixinc.com>
10361
10362 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
10363 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
10364
10365 * convert.c (convert_to_vector): Replace recursive call with
10366 error_mark_node.
10367
10368 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
10369 Add integer argument named constant. Use const_tiny_rtx instead of
10370 CONST0_RTX.
10371 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
10372 and CONST1_RTX.
10373 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
10374 vector types.
10375 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
10376 of gen_rtx_raw_CONST_VECTOR.
10377
10378 2004-09-10 Eric Christopher <echristo@redhat.com>
10379
10380 PR c/16046
10381 * c-parse.in (attribute): Add NULL_TREE for error case
10382 for error recovery.
10383
10384 2004-09-10 Zack Weinberg <zack@codesourcery.com>
10385
10386 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
10387 (extract_interface_info): Delete prototype.
10388 * c-decl.c (extract_interface_info): Delete stub.
10389 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
10390 it's not already been done ...
10391 (init_c_lex): ... not here.
10392 (fe_file_change): Don't call extract_interface_info.
10393
10394 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
10395
10396 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
10397 typedef_p and typedef_signed_p.
10398 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
10399 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
10400 Check typedef_p and typedef_signed_p, not typedef_decl.
10401 (grokfield): Check typedef_p, not typedef_decl.
10402 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
10403 not typedef_decl.
10404 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
10405 typedef_decl.
10406
10407 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
10408
10409 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
10410
10411 2004-09-10 Geoffrey Keating <geoffk@apple.com>
10412
10413 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
10414 temporary variables.
10415
10416 * dbxout.c (dbxout_block): Update for
10417 current_function_func_begin_label a string.
10418 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
10419 * except.c (dw2_output_call_site_table): Likewise.
10420 * toplev.c (current_function_func_begin_label): Likewise.
10421 * tree.h (current_function_func_begin_label): Likewise.
10422 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
10423
10424 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
10425 loop.
10426
10427 * config/darwin.c: Include target.h.
10428 (struct machopic_indirection): Make ptr_name a string.
10429 (machopic_indirection_hash): Update for ptr_name a string.
10430 (machopic_indirection_eq): Likewise.
10431 (machopic_indirection_name): Likewise.
10432 (machopic_output_indirection): Likewise.
10433 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
10434 string. Don't expect stub names to be in the identifier hash table.
10435 Do call strip_name_encoding before looking up entry in ID hash table.
10436 * config/t-darwin (darwin.o): Add target.h to dependencies.
10437
10438 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
10439 of fprintf for register names.
10440
10441 * output.h (unlikely_section_label): Delete declaration.
10442 (unlikely_text_section_name): Likewise.
10443 * varasm.c (unlikely_section_label_printed): Make static.
10444 (unlikely_section_label): Likewise.
10445 (unlikely_text_section_name): Likewise.
10446 (assemble_start_function): Use reconcat.
10447
10448 * rtl.def (REG): Add comment to describe third field.
10449
10450 2004-09-10 Andrew Pinski <apinski@apple.com>
10451
10452 * config/darwin.c (machopic_mcount_stub_name): Call
10453 machopic_indirection_name instead of making the string
10454 ourselves.
10455
10456 2004-09-10 Diego Novillo <dnovillo@redhat.com>
10457
10458 Revert
10459
10460 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
10461
10462 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
10463 memory tag is call clobbered, so are its aliases.
10464 (group_aliases): When two memory tags being grouped, if one is
10465 call clobbered, so are the other and its aliases.
10466 (add_may_alias): Remove call-clobbering stuff.
10467 (replace_may_alias): Likewise.
10468 (merge_pointed_to_info): Merge pt_global_mem
10469
10470 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
10471
10472 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
10473 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
10474 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
10475 tree-scalar-evolution.c, tree-ssa-copyrename.c,
10476 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
10477
10478 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
10479
10480 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
10481 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
10482 pair. Remove match_dup from inputs. Remove masaccs handling.
10483 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
10484 (masaccs, mdasaccs): Turn into define_insns.
10485
10486 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
10487
10488 * tree-tailcall.c (process_assignment): Only do accumulator transforms
10489 for floating-point types if flag_unsafe_math_optimizations.
10490
10491 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
10492
10493 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
10494 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
10495 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
10496 config/h8300/h8300.md, config/i386/gmm_malloc.h,
10497 config/ia64/ia64.md, config/ip2k/libgcc.S,
10498 config/mips/mips-ps-3d.md, config/mips/mips.c,
10499 config/rs6000/rs6000.c, config/s390/s390.c,
10500 config/sh/symbian.c: Fix comment typos.
10501
10502 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
10503
10504 * config/s390/s390.c (s390_emit_prologue): Added missing
10505 "{}" brackets.
10506
10507 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
10508
10509 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
10510 typos. Follow spelling conventions.
10511
10512 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
10513
10514 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
10515 in diagnostic. Don't dereference NULL TYPE_NAME.
10516
10517 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
10518
10519 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
10520 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
10521 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
10522 value-prof.c: Fix comment typos. Follow spelling conventions.
10523
10524 2004-09-10 Jan Hubicka <jh@suse.cz>
10525
10526 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
10527 * tree-split_edge.c (tree_split_edge): Likewise.
10528 (thread_jumps): Likewise.
10529
10530 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
10531
10532 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
10533 typos.
10534
10535 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
10536
10537 * cgraph.h (cgraph_dump_file): Do not declare.
10538 * cgraphunit.c (cgraph_dump_file): Declare as static.
10539 (init_cgraph): New.
10540 * toplev.c (cgraph_dump_file): Do not declare.
10541 (compile_file): Call init_cgraph.
10542 * tree-dump.c (dump_files): Add IPA dump file, remove
10543 XML dump of call graph.
10544 (get_dump_file_name): Support IPA dump file naming scheme.
10545 * tree.h (enum tree_dump_index): Add IPA dump file, remove
10546 XML dump of call graph.
10547 * doc/invoke.texi (Debugging Options): Document the new options.
10548
10549 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
10550
10551 * doc/extend.texi: Document the FR-V built-in functions.
10552
10553 2004-09-09 James E Wilson <wilson@specifixinc.com>
10554
10555 * doc/sourcebuild.texi: Delete libbanshee reference.
10556
10557 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
10558
10559 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
10560
10561 2004-09-09 James E Wilson <wilson@specifixinc.com>
10562
10563 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
10564 before calling vector_types_convertible_p.
10565 (digest_init): Check that inside_init has VECTOR_TYPE before calling
10566 vector_types_convertible_p. Don't give another error if
10567 convert_for_assignment returns error_mark_node.
10568
10569 2004-09-09 Roger Sayle <roger@eyesopen.com>
10570
10571 PR middle-end/17055
10572 * fold-const.c (build_zero_vector): New function to construct a
10573 vector (either floating point or integer) of zeros.
10574 (fold_convert): Internally, enable conversions of integer zero
10575 to arbitrary vector types, using the new build_zero_vector.
10576
10577 2004-09-09 Roger Sayle <roger@eyesopen.com>
10578
10579 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
10580 expand a left shift by an immediate constant as either an ashl or
10581 a sequence of additions.
10582 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
10583 instead of calling gen_ashlsi3 with a constant directly.
10584
10585 2004-09-09 Roger Sayle <roger@eyesopen.com>
10586
10587 * config/i386/i386.c (ix86_split_long_move): When optimizing for
10588 size, and the low and high parts of a DImode constant are equal,
10589 copy one register to another instead of loading the same immediate
10590 value twice.
10591
10592 2004-09-09 Richard Henderson <rth@redhat.com>
10593
10594 PR middle-end/17367
10595 * function.c (assign_parm_setup_block): Only put PARALLELs into
10596 a register if use_register_for_decl.
10597
10598 2004-09-09 Eric Christopher <echristo@redhat.com>
10599
10600 * ra-colorize.c (reset_lists): Move variable declaration inside
10601 ENABLE_CHECKING to avoid unused variable warnings when
10602 not --enable-checking.
10603 (check_colors): Ditto.
10604
10605 2004-09-09 Mike Stump <mrs@apple.com>
10606
10607 * version.c (version_string): Bump to 4.0.0.
10608 * doc/include/gcc-common.texi (version-GCC): Likewise.
10609
10610 2004-09-10 Jakub Jelinek <jakub@redhat.com>
10611
10612 * doc/extend.texi (nothrow attribute): The attribute is not
10613 implemented in 3.2 and earlier.
10614
10615 2004-09-09 Steve Ellcey <sje@cup.hp.com>
10616
10617 * genrecog.c (compute_predicate_codes): Use op0_codes
10618 instead of codes.
10619
10620 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
10621
10622 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
10623 implementation changes.
10624
10625 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
10626
10627 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
10628 a PARALLEL instead of a SET due to added clobbers.
10629
10630 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
10631
10632 * reload.c (find_reloads_address): Pass correct operand to
10633 maybe_memory_address_p.
10634
10635 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
10636
10637 * Makefile.in: Remove libbanshee, tree-alias-*.
10638 Remove tree-alias-common.h dependencies.
10639 * common.opt: Remove -ftree-points-to.
10640 * configure.ac: Remove libbanshee.
10641 * flags.h: Remove pta_type, flag_tree_points_to.
10642 * gengtype.c (open_base_files): Remove tree-alias-type.h.
10643 * opts.c (OPT_ftree_points_to): Remove.
10644 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
10645 * tree-dfa.c: Remove tree-alias-common.h
10646 * tree-into-ssa.c: Ditto.
10647 * tree-outof-ssa.c: Ditto.
10648 * tree-ssa-copyrename.c: Ditto.
10649 * tree-ssa-live.c: Ditto.
10650 * tree-optimize.c: Ditto.
10651 * tree-ssa.c: Ditto.
10652 Remove pass_build_pta, pass_del_pta.
10653 * tree-pass.h: Ditto.
10654 * tree-ssa-alias.c: Remove tree-alias-common.h.
10655 (struct alias_stats_d): Remove pta_queries, pta_resolved.
10656 (pass_may_alias): Remove PROP_pta requirement.
10657 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
10658 (get_tmt_for): Ditto.
10659 (dump_alias_stats): Ditto.
10660 * doc/passes.texi: Remove blurb about points-to analysis.
10661 * fortran/Make-lang.in: Remove tree-alias-*.o.
10662
10663 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
10664
10665 * genattrtab.c (write_insn_cases): New function, split out from
10666 write_attr_case. Correctly handle define_peepholes when printing
10667 the instruction name.
10668 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
10669
10670 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
10671
10672 PR target/17377
10673 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
10674 * config/cris/cris.c (cris_return_address_on_stack): New function.
10675 * config/cris/cris.md ("return"): For location of return address,
10676 also check cris_return_address_on_stack.
10677
10678 2004-09-09 Diego Novillo <dnovillo@redhat.com>
10679
10680 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
10681 calling phi_ssa_name_p.
10682
10683 2004-09-09 Richard Henderson <rth@redhat.com>
10684
10685 PR c/17322
10686 * c-typeck.c (valid_compound_expr_initializer): Use only
10687 initializer_constant_valid_p, and not TREE_CONSTANT.
10688 (digest_init): Likewise.
10689 (output_init_element): Likewise.
10690
10691 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
10692
10693 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
10694 live_out_1, prune_hardregs_for_mode, init_one_web_common,
10695 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
10696 record_conflict, compare_and_free_webs, init_webs_defs_uses,
10697 parts_to_webs_1, parts_to_webs, reset_conflicts,
10698 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
10699 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
10700 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
10701 put_move, remove_move, combine, select_spill, colorize_one_web,
10702 try_recolor_web, insert_coalesced_conflicts, check_colors,
10703 break_precolored_alias, restore_conflicts_from_coalesce,
10704 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
10705 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
10706 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
10707 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
10708 check_df): Likewise.
10709 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
10710 real_arithmetic, real_compare, real_exponent, real_ldexp,
10711 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
10712 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
10713 real_digit, real_nan, real_maxval, round_for_format, real_convert,
10714 real_to_target, real_from_target, real_hash, encode_ieee_single,
10715 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
10716 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
10717 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
10718 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
10719 extract_insn, peep2_next_insn, peep2_reg_dead_p,
10720 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
10721 if_test_bypass_p): Likewise.
10722 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
10723 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
10724 emit_swap_insn, swap_to_top, move_for_stack_reg,
10725 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
10726 compensate_edge, convert_regs_1): Likewise.
10727 * regclass.c (init_reg_sets, init_reg_sets_1,
10728 memory_move_secondary_cost): Likewise.
10729 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
10730 Likewise.
10731 * reload.c (push_secondary_reload, find_valid_class, push_reload,
10732 operands_match_p, decompose, immune_p, find_reloads,
10733 find_reloads_toplev, find_reloads_address_1, subst_reloads,
10734 copy_replacements, refers_to_regno_for_reload_p,
10735 reg_overlap_mentioned_for_reload_p): Likewise.
10736 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
10737 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
10738 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
10739 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
10740 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
10741 do_output_reload, fixup_abnormal_edges): Likewise.
10742 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
10743 fill_slots_from_thread, relax_delay_slots): Likewise.
10744 * resource.c (mark_referenced_resources, mark_set_resources):
10745 Likewise.
10746 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
10747 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
10748 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
10749 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
10750 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
10751 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
10752 * rtlhooks.c (gen_lowpart_general): Likewise.
10753 * sbitmap.c (sbitmap_difference): Likewise.
10754 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
10755 sched_analyze, add_forward_dependence): Likewise.
10756 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
10757 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
10758 schedule_insns): Likewise.
10759 * sched-vis.c (print_pattern): Likewise.
10760 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
10761 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
10762 simplify_const_relational_operation, simplify_ternary_operation,
10763 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
10764 Likewise.
10765 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
10766 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
10767 resolve_operand_name_1, expand_return, expand_decl,
10768 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
10769 * stor-layout.c (put_pending_size, smallest_mode_for_size,
10770 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
10771 set_sizetype, get_mode_bounds): Likewise.
10772
10773 2004-09-09 Zack Weinberg <zack@codesourcery.com>
10774
10775 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
10776 * config/arm/pecoff.h, config/i386/beos-elf.h
10777 * config/i386/cygming.h, config/i386/i386-interix.h:
10778 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
10779 comment cloned from manual.
10780 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
10781
10782 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
10783
10784 * builtins.c (build_va_arg_indirect_ref): New function.
10785 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
10786 build_fold_indirect_ref.
10787 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
10788 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
10789 * tree.h: Declare new function.
10790
10791 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
10792
10793 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
10794 dumping for development builds.
10795 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
10796 development builds only.
10797 * genattrtab.c (write_eligible_delay): Fix typo in previous
10798 commit.
10799 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
10800 gcc_assert.
10801
10802 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
10803
10804 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
10805 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
10806 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
10807 hoist_code, extract_mentioned_regs_helper, compute_store_table,
10808 insert_store): Use gcc_assert and gcc_unreachable.
10809 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
10810 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
10811 ggc_record_overhead): Likewise.
10812 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
10813 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
10814 ggc_pop_context, clear_marks, validate_free_objects,
10815 ggc_pch_read): Likewise.
10816 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
10817 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
10818 ggc_push_context, check_cookies, ggc_collect,
10819 ggc_print_statistics): Likewise.
10820 * gimple-low.c (lower_function_body, lower_stmt,
10821 lower_bind_expr): Likewise.
10822 * gimplify.c (gimple_tree_eq, push_gimplify_context,
10823 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
10824 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
10825 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
10826 gimplify_case_label_expr, gimplify_exit_block_expr,
10827 canonicalize_component_ref, gimplify_compound_lval,
10828 gimplify_self_mod_expr, gimplify_call_expr,
10829 gimplify_init_ctor_eval, gimplify_init_constructor,
10830 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
10831 gimplify_expr, check_pointer_types_r,
10832 force_gimple_operand): Likewise.
10833 * global.c (global_alloc, build_insn_chain): Likewise.
10834 * graph.c (clean_graph_dump_file,
10835 finish_graph_dump_file): Likewise.
10836 gcov-io.c (gcov_open): Use GCOV_CHECK.
10837
10838 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
10839
10840 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
10841
10842 2004-09-09 Jan Hubicka <jh@suse.cz>
10843
10844 middle-end/17128
10845 * tree-inline.c (expand_call_inline): Make overactive sanity check
10846 happy.
10847
10848 2004-09-09 Jan Hubicka <jh@suse.cz>
10849
10850 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
10851 VIEW_CONVERT_EXPR.
10852
10853 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
10854
10855 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
10856 (gengtype.o): Depend on errors.h.
10857 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
10858 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
10859 attr_alt_subset_p, attr_alt_subset_of_compl_p,
10860 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
10861 write_test_expr, write_attr_value, write_eligible_delay,
10862 make_internal_attr, make_numeric_value): Likewise.
10863 * genautomata.c (regexp_name, get_str_vect,
10864 gen_presence_absence_set, automaton_decl_hash,
10865 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
10866 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
10867 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
10868 test_unit_reserv, it_is_empty_reserv_sets,
10869 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
10870 reserv_sets_and, output_cycle_reservs, get_free_state,
10871 intersected_state_reservs_p, states_union, remove_arc,
10872 copy_insn_regexp, transform_1, transform_2, transform_3,
10873 regexp_transform_func, store_alt_unit_usage,
10874 check_regexp_units_distribution, process_seq_for_forming_states,
10875 process_alts_for_forming_states, make_automaton,
10876 form_arcs_marked_by_insn, create_composed_state,
10877 set_out_arc_insns_equiv_num, partition_equiv_class,
10878 process_insn_equiv_class, set_insn_equiv_classes,
10879 units_to_automata_heuristic_distr, form_regexp,
10880 longest_path_length, output_dfa_max_issue_rate, add_vect,
10881 out_state_arcs_num, add_vect_el, output_trans_table,
10882 output_state_alts_table, output_dead_lock_vect,
10883 output_max_insn_queue_index_def,
10884 output_min_insn_conflict_delay_func,
10885 output_internal_insn_latency_func, output_print_reservation_func,
10886 output_cpu_unit_reservation_p, output_state_arcs,
10887 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
10888 make_default_insn_latency_attr,
10889 form_important_insn_automata_lists): Likewise.
10890 * genemit.c (gen_exp, output_add_clobbers,
10891 output_added_clobbers_hard_reg_p): Likewise.
10892 * genextract.c (print_path, main): Likewise.
10893 * genflags.c (gen_macro): Likewise.
10894 * gengenrtl.c: Include errors.h
10895 (type_from_format, accessor_from_format): Likewise.
10896 * gengtype.c (get_file_basename, output_mangled_typename,
10897 walk_type, write_types_process_field,
10898 write_types_local_process_field): Likewise.
10899 * genmodes.c (complete_mode): Likewise.
10900 * genopinit.c (gen_insn): Likewise.
10901 * genoutput.c (output_insn_data, check_constraint_len,
10902 constraint_len): Likewise.
10903 * genpreds.c (add_mode_tests):Likewise.
10904 * gen-protos.c (add_hash): Likewise.
10905 * genrecog.c (find_operand, find_matching_operand,
10906 validate_pattern, add_to_sequence, maybe_both_true,
10907 nodes_identical_1, merge_trees, write_switch, write_cond,
10908 write_action, is_unconditional, make_insn_sequence,
10909 debug_decision_2): Likewise.
10910 * gensupport.c (is_predicable, collect_insn_data,
10911 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
10912
10913 2004-09-09 Jan Hubicka <jh@suse.cz>
10914
10915 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
10916 * cfgbuild.c (compute_outgoing_frequencies): When probability is
10917 missing, guess it.
10918 (find_many_sub_basic_blocks): Do update profile only when it is
10919 present.
10920 * predict.c (set_even_probabilities): Break out from ...
10921 (combine_predictions_for_insn): ... here; deal with
10922 !can_predict_insn_p insns.
10923 (combine_predictions_for_bb): Use set_even_probabilities.
10924 (bb_estimate_probability_locally): Break out from ....
10925 (estimate_probability): ... here.
10926 (guess_outgoing_edge_probabilities): New entry point.
10927
10928 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
10929
10930 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
10931 handle_braces, process_brace_body, main, used_arg,
10932 set_multilib_dir, print_multilib_info): Use fatal, not abort.
10933
10934 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
10935
10936 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
10937 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
10938 Morgan's theorem in last checkin.
10939
10940 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
10941 Nathan Sidwell <nathan@codesourcery.com>
10942
10943 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
10944 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
10945 * timevar.c (timevar_push, timevar_pop, timevar_start,
10946 timevar_stop): Likewise.
10947 * toplev.c (default_pch_valid_p): Likewise.
10948 * tracer.c (tail_duplicate): Likewise.
10949 * tree-alias-common.c (get_alias_var_decl,
10950 get_values_from_constructor, create_alias_var, delete_alias_vars,
10951 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
10952 Likewise.
10953 * tree.c (tree_size, make_node_stat, copy_node_stat,
10954 build_int_cst_wide, integer_all_onesp, list_length, chainon,
10955 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
10956 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
10957 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
10958 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
10959 build_method_type_directly, decl_type_context, get_callee_fndecl,
10960 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
10961 tree_fold_gcd): Likewise.
10962 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
10963 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
10964 cleanup_control_expr_graph, find_taken_edge,
10965 find_taken_edge_switch_expr, phi_alternatives_equal,
10966 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
10967 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
10968 tree_split_edge, tree_verify_flow_info, thread_jumps,
10969 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
10970 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
10971 chrec_fold_multiply_poly_poly): Likewise.
10972 * tree-complex.c (extract_component, expand_complex_division,
10973 expand_complex_comparison, expand_complex_operations_1,
10974 build_replicated_const, expand_vector_operations_1): Likewise.
10975 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
10976 build_classic_dir_vector): Likewise.
10977 * tree-dfa.c (compute_immediate_uses_for_phi,
10978 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
10979 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
10980 * tree-dump.c (dequeue_and_dump): Likewise.
10981 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
10982 record_in_finally_tree, replace_goto_queue_1,
10983 maybe_record_in_goto_queue, verify_norecord_switch_expr,
10984 do_return_redirection): Likewise.
10985 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
10986 add_to_dst_predicate_list, find_phi_replacement_condition,
10987 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
10988 Likewise.
10989 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
10990 initialize_inlined_parameters, declare_return_variable,
10991 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
10992 optimize_inline_calls, copy_tree_r): Likewise.
10993 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
10994 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
10995 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
10996 tsi_split_statement_list_after, tsi_split_statement_list_before):
10997 Likewise.
10998 * tree-mudflap.c (mf_varname_tree): Likewise.
10999 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
11000 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
11001 * tree-optimize.c (tree_rest_of_compilation): Likewise.
11002 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
11003 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
11004 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
11005 Likewise.
11006 * tree-phinodes.c (resize_phi_node, add_phi_arg,
11007 remove_all_phi_nodes_for): Likewise.
11008 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
11009 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
11010 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
11011 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
11012 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
11013 generate_one_element_ref, generate_element_copy,
11014 generate_element_zero, scalarize_copy, scalarize_init,
11015 scalarize_ldst): Likewise.
11016 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
11017 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
11018 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
11019 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
11020 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
11021 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
11022 widen_bitfield, ccp_fold_builtin): Likewise.
11023 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
11024 replace_exp_1, propagate_tree_value): Likewise.
11025 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
11026 * tree-ssa-dce.c (set_control_dependence_map_bit,
11027 find_control_dependence, find_pdom, mark_operand_necessary,
11028 mark_stmt_if_obviously_necessary,
11029 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
11030 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
11031 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
11032 eliminate_redundant_computations, avail_expr_eq): Likewise.
11033 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
11034 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
11035 duplicate_blocks): Likewise.
11036 * tree-ssa-loop-im.c (for_each_index, set_level,
11037 is_call_clobbered_ref): Likewise.
11038 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
11039 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
11040 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
11041 peel_address, ptr_difference_cost, may_replace_final_value,
11042 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
11043 rewrite_use, rewrite_uses): Likewise.
11044 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
11045 check_loop_closed_ssa_use): Likewise.
11046 * tree-ssanames.c (make_ssa_name): Likewise.
11047 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
11048 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
11049 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
11050 get_indirect_ref_operands, add_stmt_operand): Likewise.
11051 * tree-ssa-pre.c (value_exists_in_set_bitmap,
11052 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
11053 phi_translate, valid_in_set, compute_antic,
11054 find_or_generate_expression, create_expression_by_pieces, insert_aux,
11055 create_value_expr_from, eliminate): Likewise.
11056 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
11057 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
11058 Likewise.
11059 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
11060 eliminate_tail_call): Likewise.
11061 * tree-vectorizer.c (vect_create_index_for_array_ref,
11062 vect_align_data_ref, vect_create_data_ref,
11063 vect_create_destination_var, vect_get_vec_def_for_operand,
11064 vect_finish_stmt_generation, vect_transform_stmt,
11065 vect_transform_loop_bound, vect_transform_loop,
11066 vect_analyze_operations): Likewise.
11067 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
11068 Likewise.
11069 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
11070 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
11071 bsi_after_labels, bsi_last): Likewise.
11072 * tree-ssa-live.c (var_union, change_partition_var,
11073 create_ssa_var_map, calculate_live_on_entry, root_var_init,
11074 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
11075 Likewise.
11076 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
11077 tpa_find_tree): Likewise.
11078 (register_ssa_partition_check): Declare.
11079 (register_ssa_partition): use it.
11080 * tree-ssa-live.c: Include errors.h.
11081 (register_ssa_partition_check): New.
11082 * tree-ssa-operands.c: Include errors.h.
11083 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
11084
11085 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
11086 Catherine Moore <clm@redhat.com>
11087
11088 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
11089 (FRV_CPU_FR405): New processor enums.
11090 (frv_issue_rate, frv_acc_group): Declare.
11091 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
11092 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
11093 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
11094 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
11095 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
11096 handled by CPP_SPEC.
11097 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
11098 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
11099 (ACC_MASK): New macro.
11100 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
11101 (TARGET_MEDIA_FR450): New macro.
11102 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
11103 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
11104 (LABEL_ALIGN_AFTER_BARRIER): Define.
11105 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
11106 (IACC_FIRST, IACC_LAST): New pair of SPRs.
11107 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
11108 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
11109 (REGISTER_NAMES): Add entries for new registers.
11110 (REG_CLASS_CONTENTS): Update for new register ranges.
11111 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
11112 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
11113 (PACKING_FLAG_USED_P): Delete.
11114 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
11115 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
11116 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
11117 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
11118 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
11119 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
11120 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
11121 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
11122 (CPU_UNITS_QUERY): Define to 1.
11123 * config/frv/frv.c: Include gt-frv.h
11124 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
11125 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
11126 (frv_insn_group): New enumeration.
11127 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
11128 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
11129 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
11130 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
11131 gap left by REGSTATE_LIVE.
11132 (regstate_t): New typedef.
11133 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11134 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
11135 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
11136 Initialize frv_unit_codes[] and frv_type_to_unit[].
11137 (frv_conditional_register_usage): Remove redundant fixing of
11138 accumulator registers.
11139 (frv_insn_packing_flag): Update specification.
11140 (frv_function_prologue): Don't set frv_insn_packing_flag here.
11141 Zero out frv_nops[].
11142 (frv_expand_epilogue): Remove comments about the no-longer-present
11143 SIBCALL_P argument.
11144 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
11145 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
11146 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
11147 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
11148 packing is disabled and if INSN can only issue to M1.
11149 (call_operand): Check TARGET_LONG_CALLS.
11150 (acc_operand, even_acc_operand, quad_acc_operand)
11151 (accg_operand): Simplify. Don't accept pseudo registers.
11152 (output_move_single): Handle SPR<-zero moves.
11153 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
11154 (frv_registers_update, frv_registers_used_p): Delete.
11155 (frv_registers_set_p): Delete.
11156 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
11157 (frv_issues_to_branch_unit_p): New function.
11158 (frv_packet): New structure.
11159 (frv_cond_flags, frv_regstate_conflict_p): New functions.
11160 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
11161 (frv_registers_update_1, frv_registers_update): New functions.
11162 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
11163 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
11164 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
11165 (frv_sort_insn_group, frv_reorder_packet): New functions.
11166 (frv_pack_insns): Use frv_reorder_packet.
11167 (frv_packet_address): New variable.
11168 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
11169 (frv_register_nop, frv_reorg): New functions.
11170 (bdesc_1arg): Add __SCUTSS.
11171 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
11172 __SUBSS, __SLASS and __SCAN.
11173 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
11174 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
11175 (frv_init_builtins): Register the above builtins.
11176 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
11177 registers. Turn the referenced accumulators into global registers.
11178 (frv_read_iacc_argument): New function.
11179 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
11180 (frv_split_iacc_move): New function.
11181 (frv_expand_builtin): Handle the new builtins.
11182 * config/frv/frv.md: Replace old schedulers with new order-independent
11183 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
11184 packing algorithm.
11185 (cpu): Add fr550, fr450 and fr405.
11186 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
11187 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
11188 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
11189 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
11190 (fnop, mnop): New patterns.
11191 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
11192 New constants.
11193 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
11194 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
11195 registers.
11196 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
11197 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
11198 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
11199 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
11200 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
11201 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
11202 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
11203 (frv_prefetch0, frv_prefetch): New patterns.
11204 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
11205 -mcpu=simple. Add -mcpu=fr550.
11206 (MULTILIB_DIRNAMES): Update accordingly.
11207 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
11208 -mcpu=fr450.
11209 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
11210 -mlong-calls and -malign-labels options for FR-V.
11211
11212 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
11213
11214 PR c/8420
11215 * c-tree.h (struct c_declspecs): New.
11216 (struct c_declarator, struct c_type_name, struct c_parm): Update
11217 element types.
11218 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
11219 start_function, start_decl, build_c_parm,
11220 make_pointer_declarator): Update prototypes.
11221 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
11222 declspecs_add_scspec, declspecs_add_attrs): New.
11223 (split_specs_attrs): Remove.
11224 * c-parse.in (%union): Add dsptype.
11225 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
11226 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
11227 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
11228 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
11229 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
11230 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
11231 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
11232 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
11233 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
11234 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
11235 maybe_type_quals_attrs): Change to dsptype.
11236 (struct c_declspec_stack): New.
11237 (current_declspecs, declspec_stack): Change type.
11238 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
11239 structures.
11240 (extdefs): Likewise.
11241 (setspecs): Likewise.
11242 (fndef): Use current_declspecs for empty declspecs list.
11243 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
11244 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
11245 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
11246 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
11247 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
11248 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
11249 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
11250 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
11251 structures and helper functions. Update comments.
11252 (typespec_nonattr): Correct comment.
11253 (maybe_type_quals_attrs, typename): Update to new structures.
11254 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
11255 shadow_tag, shadow_tag_warned, start_function, start_decl,
11256 build_c_parm, make_pointer_declarator,
11257 set_array_declarator_inner, groktypename): Update to new
11258 structures.
11259 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
11260 declspecs_add_scspec, declspecs_add_attrs): New.
11261 (split_specs_attrs): Remove.
11262 (shadow_tag_warned): Make warning for useless type names a
11263 pedwarn. Give hard error for long, short, signed, unsigned or
11264 _Complex used with struct, union or enum in empty declaration.
11265 Make found_tag a bool.
11266 (grokdeclarator): Remove checks now done at parse time.
11267
11268 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
11269
11270 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
11271 c_declarator, struct c_type_name, struct c_parm): New.
11272 (build_array_declarator, set_array_declarator_inner,
11273 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
11274 start_function, start_decl, build_c_parm, build_attrs_declarator,
11275 build_function_declarator, make_pointer_declarator, c_cast_expr,
11276 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
11277 (build_id_declarator): New.
11278 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
11279 structures.
11280 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
11281 ARG_INFO_OTHERS): Remove.
11282 (build_id_declarator): New.
11283 (build_array_declarator, set_array_declarator_inner, groktypename,
11284 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
11285 grokfield, start_function, store_parm_decls_newstyle,
11286 store_parm_decls_oldstyle, store_parm_decls,
11287 build_c_parm, build_attrs_declarator, build_function_declarator,
11288 make_pointer_declarator, grokdeclarator): Update to new
11289 structures.
11290 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
11291 parmtype.
11292 (declarator, notype_declarator, after_type_declarator,
11293 parm_declarator, parm_declarator_starttypename,
11294 parm_declarator_nostarttypename, array_declarator, typename,
11295 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
11296 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
11297 parmlist_1, parmlist_2, parmlist_or_identifiers,
11298 parmlist_or_identifiers_1): Use these types.
11299 (primary, after_type_declarator, parm_declarator_starttypename,
11300 notype_declarator, component_decl, component_declarator,
11301 component_notype_declarator, typename, absdcl,
11302 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
11303 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
11304
11305 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
11306
11307 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
11308 in_typeof, record_maybe_used_decl, pop_maybe_used,
11309 c_expr_sizeof_expr, c_expr_sizeof_type): New.
11310 * c-decl.c (parser_obstack): New.
11311 (c_init_decl_processing): Initialize parser_obstack.
11312 (c_write_global_declarations_1): Check for used but undefined
11313 static functions.
11314 * c-parse.in (%union): Add otype.
11315 (save_obstack_position): New.
11316 (extdefs): Use it.
11317 (unary_expr): Update in_sizeof and in_alignof. Use
11318 c_expr_sizeof_expr and c_expr_sizeof_type.
11319 (sizeof): Update in_sizeof.
11320 (alignof): Update in_alignof.
11321 (typeof): Update in_typeof.
11322 (typespec_nonreserved_nonattr): Call pop_maybe_used.
11323 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
11324 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
11325 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
11326 (build_external_ref): Set C_DECL_USED or call
11327 record_maybe_used_decl if appropriate.
11328 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
11329
11330 2004-09-08 Eric Christopher <echristo@redhat.com>
11331
11332 * builtins.c: Fix prototype for fold_builtin_atan.
11333
11334 2004-09-08 Eric Christopher <echristo@redhat.com>
11335
11336 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
11337 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
11338 fold_builtin_atan): New functions. Migrate function bodies...
11339 (fold_builtin_1): ... from here.
11340
11341 2004-09-09 Alan Modra <amodra@bigpond.net.au>
11342
11343 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
11344 save_size.
11345
11346 2004-09-08 David Edelsohn <edelsohn@gnu.org>
11347
11348 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
11349 * config/rs6000/power5.md (power5-lmul): Same.
11350
11351 2004-09-08 Richard Henderson <rth@redhat.com>
11352
11353 PR rtl-opt/17186
11354 * function.c (expand_function_end): Have fall-off-the-end
11355 return path jump around return register setup.
11356
11357 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
11358
11359 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
11360 (output_return): Do not test for the presence of the 'unimp' insn.
11361 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
11362 as predicates instead of custom ones. Return raw strings when
11363 possible.
11364 (output_sibcall): Likewise. Concatenate strings.
11365 (output_ubranch): Remove kludge for TurboSPARC.
11366 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
11367 (output_v9branch): Likewise.
11368 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
11369 <#>: Set sparc_indent_opcode if the delay slot is filled.
11370 <(>: Likewise.
11371 <)>: New operand to emit the displacement from the saved PC on return.
11372 <@>: Remove.
11373 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
11374 (ASM_OUTPUT_OPCODE): New macro.
11375 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
11376 * config/sparc/sparc.md (normal_branch, inverted_branch,
11377 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
11378 inverted_fpe_branch): Adjust call to output_cbranch.
11379 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
11380 call to output_v9branch.
11381 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
11382 (output_v9branch): Likewise.
11383
11384 2004-09-08 Devang Patel <dpatel@apple.com>
11385
11386 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
11387 -segs_read_only_addr and -segs_read_write_addr.
11388 (WORD_SWITCH_TAKES_ARG): Same.
11389 (LINK_SPEC): Same.
11390 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
11391 -segs_read_write_addr.
11392
11393 2004-09-08 Richard Henderson <rth@redhat.com>
11394
11395 * function.c (reference_callee_copied): New.
11396 (assign_parm_setup_reg): Use it.
11397 * calls.c (initialize_argument_information): Likewise.
11398 (emit_library_call_value_1): Likewise.
11399 * function.h (reference_callee_copied): Declare.
11400
11401 * target.h (struct gcc_target): Add callee_copies.
11402 * target-def.h (TARGET_CALLEE_COPIES): New.
11403 (TARGET_PASS_BY_REFERENCE): Update default.
11404 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11405 * targhooks.c (hook_callee_copies_named): New.
11406 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
11407 hook_pass_by_reference_false.
11408 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
11409 * targhooks.h: Update decls.
11410 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
11411 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11412 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
11413 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
11414 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11415 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
11416 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11417 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
11418 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11419 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
11420 (mips_callee_copies): New.
11421 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11422 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
11423 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11424 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
11425 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11426 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
11427 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11428 * config/sh/sh.c (sh_callee_copies): New.
11429 (TARGET_CALLEE_COPIES): New.
11430 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11431 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
11432 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11433 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
11434 for FUNCTION_ARG_CALLEE_COPIES.
11435 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
11436
11437 2004-09-08 Devang Patel <dpatel@apple.com>
11438
11439 * tree-if-conv.c (find_phi_replacement_condition): Return true
11440 edge block.
11441 (replace_phi_with_cond_modify_expr): Select conditional expr args
11442 based on true edge basic block.
11443
11444 2004-09-08 Jan Hubicka <jh@suse.cz>
11445
11446 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
11447 variables being alias set.
11448
11449 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
11450
11451 * final.c (shorten_branches, final, get_insn_template,
11452 output_alternate_entry_point, final_scan_insn, alter_subreg,
11453 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
11454 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
11455 * fix-header.c (lookup_std_proto): Likewise.
11456 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
11457 verify_local_live_at_start, update_life_info, mark_reg,
11458 calculate_global_regs_live, allocate_reg_life_data,
11459 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
11460 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
11461 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
11462 * fold-const.c (force_fit_type, div_and_round_double,
11463 may_negate_without_overflow_p, int_const_binop, const_binop,
11464 size_binop, size_diffop, fold_convert_const, fold_convert,
11465 invert_tree_comparison, swap_tree_comparison,
11466 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
11467 range_binop, make_range, fold_cond_expr_with_comparison,
11468 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
11469 fold_abs_const, fold_not_const, fold_relational_const, round_up,
11470 round_down): Likewise.
11471 * function.c (find_function_data, assign_stack_temp_for_type,
11472 instantiate_virtual_regs_lossage, aggregate_value_p,
11473 assign_parm_find_entry_rtl, assign_parm_setup_block,
11474 expand_function_start, expand_function_end, keep_stack_depressed,
11475 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
11476
11477 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
11478
11479 * Makefile.in (tree-loop-linear.o): Added.
11480 (OBJS-common): Add tree-loop-linear.o
11481 * common.opt: New flag, ftree-loop-linear.
11482 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
11483 * tree-flow.h: Add prototype for linear_transform_loops.
11484 * tree-optimize.c: Add linear transform after vectorization.
11485 * tree-pass.h: Add struct pass_linear_transform.
11486 * tree-ssa-loop.c: Add pass_linear_transform.
11487 * tree-loop-linear.c: New file.
11488 * lambda-code.c: gcc_assertify.
11489 (gcc_loop_to_lambda_loop): Handle all exit tests.
11490 Handle case where we have (invariant >= induction var).
11491 (find_induction_var_from_exit_cond): Ditto.
11492
11493 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
11494
11495 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
11496 memory tag is call clobbered, so are its aliases.
11497 (group_aliases): When two memory tags being grouped, if one is
11498 call clobbered, so are the other and its aliases.
11499 (add_may_alias): Remove call-clobbering stuff.
11500 (replace_may_alias): Likewise.
11501 (merge_pointed_to_info): Merge pt_global_mem
11502
11503 2004-09-08 Jan Hubicka <jh@suse.cz>
11504
11505 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
11506 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
11507 (cgraph_expand_function): Remove stale cgraph edges of currently
11508 compiled function; fix non-unit-at-a-time code copying function
11509 node for later reuse.
11510
11511 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
11512
11513 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
11514 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
11515 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
11516 (vec_gc_free, vec_heap_free): New.
11517 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
11518 (DEF_VEC_P): Add allocator argument. Adjust.
11519 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
11520 (DEF_VEC_O): Add allocator argument. Adjust.
11521 (VEC(free)): New.
11522
11523 * tree.h (tree): Define a GC'd vector.
11524 * lamba-code.c (lambda_loop): Likewise.
11525 * value-prof.h (histogram_value): Likewise.
11526
11527 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
11528
11529 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
11530 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
11531 gen_lowpart_common, gen_highpart, gen_highpart_mode,
11532 subreg_highpart_offset, operand_subword, operand_subword_force,
11533 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
11534 set_mem_alias_set, change_address_1, verify_rtx_sharing,
11535 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
11536 try_split, add_insn_after, add_insn_before, remove_insn,
11537 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
11538 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
11539 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
11540 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
11541 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
11542 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
11543 record_path_before_1, check_path_after_1, check_path_after): Likewise.
11544 * except.c (gen_eh_region, resolve_one_fixup_region,
11545 remove_unreachable_regions, convert_from_eh_region_ranges_1,
11546 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
11547 connect_post_landing_pads, sjlj_emit_function_exit,
11548 remove_exception_handler_label, remove_eh_handler,
11549 reachable_next_level, collect_one_action_chain,
11550 output_function_exception_table): Likewise.
11551 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
11552 optimize_save_area_alloca, allocate_dynamic_stack_space,
11553 probe_stack_range, hard_function_value): Likewise.
11554 * expmed.c (mode_for_extraction, store_bit_field,
11555 store_fixed_bit_field, extract_bit_field, expand_shift,
11556 expand_mult_const, expand_mult, choose_multiplier,
11557 expand_mult_highpart, expand_divmod, emit_store_flag,
11558 do_cmp_and_jump): Likewise.
11559 * expr.c (convert_move, convert_modes, move_by_pieces,
11560 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
11561 move_block_from_reg, gen_group_rtx, emit_group_load,
11562 emit_group_move, emit_group_store, use_reg, use_regs,
11563 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
11564 emit_move_insn, emit_move_insn_1, emit_push_insn,
11565 expand_assignment, store_expr, count_type_elements,
11566 store_constructor, store_field, safe_from_p, expand_var,
11567 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
11568
11569 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
11570
11571 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
11572 gcc_assert and gcc_unreachable.
11573 * ddg.c (create_ddg_dependence, add_deps_for_def,
11574 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
11575 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
11576 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
11577 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
11578 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
11579 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
11580 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
11581 dataflow_set_copy, hybrid_search, diagnostic.c,
11582 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
11583 * dojump.c (do_jump): Likewise.
11584 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
11585 compute_dom_fast_query, calculate_dominance_info,
11586 free_dominance_info, get_immediate_dominator,
11587 set_immediate_dominator, get_dominated_by,
11588 redirect_immediate_dominators, nearest_common_dominator,
11589 dominated_by_p, verify_dominators, recount_dominator,
11590 iterate_fix_dominators, add_to_dominance_info,
11591 delete_from_dominance_info): Likewise.
11592 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
11593 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
11594 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
11595 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
11596 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
11597 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
11598 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
11599 output_call_frame_info, output_loc_operands, build_cfa_loc,
11600 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
11601 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
11602 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
11603 splice_child_die, attr_checksum, same_dw_val_p,
11604 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
11605 unmark_dies, value_format, output_loc_list, output_die,
11606 output_pubnames, output_aranges, base_type_die, is_base_type,
11607 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
11608 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
11609 field_byte_offset, add_data_member_location_attribute,
11610 add_const_value_attribute, rtl_for_decl_location,
11611 add_location_or_const_value_attribute, add_byte_size_attribute,
11612 add_bit_offset_attribute, add_bit_size_attribute,
11613 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
11614 decl_start_label, gen_formal_parameter_die,
11615 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
11616 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
11617 force_decl_die, force_type_die, gen_decl_die,
11618 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
11619 dwarf2out_finish): Likewise.
11620
11621 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
11622
11623 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
11624 * builtins.c: Include tree-mudflap.h.
11625
11626 2004-09-08 Uros Bizjak <uros@kss-loka.si>
11627
11628 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
11629 force operand 0.0 into register in XFmode. Also do not force
11630 operand 0.0 into register if !TARGET_CMOVE.
11631 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
11632 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
11633 implement ftst x87 instruction.
11634 (*fp_jcc_7): New insn pattern. Change corresponding split
11635 pattern to handle "general_operand" instead of
11636 "nonimmediate_operand".
11637
11638 2004-09-08 Ben Elliston <bje@au.ibm.com>
11639
11640 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
11641
11642 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
11643
11644 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
11645 generated from standard va_arg expansion.
11646 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
11647 marked nodes.
11648 (mf_varname_tree, mf_file_function_line_tree): Add some support
11649 for column numbers if compiled with USE_MAPPED_LOCATION.
11650
11651 2004-09-07 Ziemowit Laski <zlaski@apple.com>
11652
11653 * c-decl.c (groktypename_in_parm_context): Remove function.
11654 * c-tree.h (groktypename_in_parm_context): Remove prototype.
11655
11656 2004-09-07 Ziemowit Laski <zlaski@apple.com>
11657
11658 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
11659 * c-parse.in: Include c-common.h instead of objc-act.h.
11660 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
11661 myparms, myparm): Remove %type declarations.
11662 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
11663 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
11664 declarations.
11665 (objc_inherit_code, objc_public_flag): Remove.
11666 (typespec_nonreserved_nonattr): Call
11667 objc_get_protocol_qualified_type() instead of get_static_reference()
11668 and get_protocol_reference().
11669 (stmt_nocomp): Call grokparm() on @catch parameter.
11670 (objcdef): Move semantic action to objc_finish_implementation().
11671 (classdef): Move semantic action to objc_start_class_interface(),
11672 objc_continue_interface(), objc_finish_interface(),
11673 objc_start_class_implementation(), objc_continue_implementation(),
11674 objc_start_category_interface() and
11675 objc_start_category_implementation().
11676 (protocoldef): Move semantic actions to objc_start_protocol() and
11677 objc_finish_interface().
11678 (ivar_decl_list): Remove nonterminal.
11679 (visibility_spec): Move semantic actions to objc_set_visibility().
11680 (ivar_decls): Remove assignment to $$.
11681 (ivar_decl): Rephrase in terms of component_decl; call
11682 objc_add_instance_variable().
11683 (ivars, ivar_declarator): Remove nonterminals.
11684 (opt_semi): New nonterminal.
11685 (methodtype): Remove semantic actions.
11686 (methoddef): Move semantic actions to objc_set_method_type(),
11687 objc_start_method_definition() and objc_finish_method_definition().
11688 (methodproto): Move semantic actions to objc_set_method_type() and
11689 objc_add_method_declaration().
11690 (methoddecl): Use objc_typename instead of typename; move semantic
11691 actions to objc_build_method_signature().
11692 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
11693 (optparmlist): Express in terms of optparms and optellipsis.
11694 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
11695 nonterminals.
11696 (keyworddecl): Use objc_typename instead of typename.
11697 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
11698 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
11699
11700 2004-09-08 Alan Modra <amodra@bigpond.net.au>
11701
11702 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
11703 (MD_FALLBACK_FRAME_STATE_FOR): Update.
11704 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
11705 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
11706 (MD_FROB_UPDATE_CONTEXT): Remove default.
11707 (uw_update_context_1): Instead #ifdef invocation.
11708 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
11709 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
11710 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
11711 (MD_UNWIND_SUPPORT): Undefine this instead.
11712 * config/i386/gnu.h: Likewise.
11713 * config/alpha/linux-unwind.h: New file, macro converted to
11714 function, extracted from..
11715 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
11716 (MD_UNWIND_SUPPORT): Define.
11717 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
11718 * config/i386/linux-unwind.h, config/i386/linux.h,
11719 config/i386/linux64.h: Likewise.
11720 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
11721 MD_HANDLE_UNWABI too.
11722 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
11723 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
11724 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
11725 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
11726 * config/sparc/linux-unwind.h, config/sparc/linux.h,
11727 config/sparc/linux64.h: Likewise.
11728 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
11729 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
11730 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
11731 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
11732 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
11733
11734 2004-09-07 Jan Hubicka <jh@suse.cz>
11735
11736 * cse.c (fold_rtx): Avoid building of
11737 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
11738
11739 * tree-ssa-pre.c (grand_bitmap_obstack): New.
11740 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
11741 (init_pre): Initialize obstack.
11742 (fini_pre): Free obstack.
11743
11744 2004-09-07 David Daney <ddaney@avtrex.com>
11745
11746 * config.gcc: Added support for --with-divide=[breaks|traps] for
11747 mips targets.
11748 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
11749 (TARGET_DIVIDE_TRAPS): New macro.
11750 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
11751 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
11752 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
11753 GENERATE_DIVIDE_TRAPS.
11754 (mips_output_division): Emit conditional trap if
11755 GENERATE_DIVIDE_TRAPS is set.
11756 * doc/install.texi: Document --with-divide.
11757 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
11758
11759 2004-09-07 Caroline Tice <ctice@apple.com>
11760
11761 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
11762 EDGE_CROSSING, to flags test case.
11763
11764 2004-09-07 Jan Hubicka <jh@suse.cz>
11765
11766 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
11767 class too.
11768
11769 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
11770
11771 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
11772 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
11773 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
11774 or gcc_unreachable.
11775 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
11776 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
11777 alloc_aux_for_edges, free_aux_for_edges): Likewise.
11778 * cfgcleanup.c (try_forward_edges,
11779 merge_blocks_move_predecessor_nojumps,
11780 merge_blocks_move_successor_nojumps): Likewise.
11781 * cfgexpand.c (expand_gimple_cond_expr,
11782 expand_gimple_tailcall): Likewise.
11783 * cfghooks.c (duplicate_block): Likewise.
11784 * cfglayout.c (record_effective_endpoints,
11785 insn_locators_initialize, change_scope, fixup_reorder_chain,
11786 verify_insn_chain, fixup_fallthru_exit_predecessor,
11787 duplicate_insn_chain, cfg_layout_finalize): Likewise.
11788 * cfgloopanal.c (check_irred): Likewise.
11789 * cfgloop.c (superloop_at_depth, flow_loops_free,
11790 flow_loop_entry_edges_find, flow_loops_find,
11791 flow_loop_outside_edge_p, get_loop_body,
11792 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
11793 get_loop_exit_edges, num_loop_branches, cancel_loop,
11794 verify_loop_structure): Likewise.
11795 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
11796 duplicate_loop_to_header_edge, create_preheader,
11797 create_loop_notes): Likewise.
11798 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
11799 edirect_branch_edge, force_nonfallthru_and_redirect,
11800 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
11801 commit_edge_insertions, commit_edge_insertions_watch_calls,
11802 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
11803 cfg_layout_redirect_edge_and_branch_force,
11804 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
11805 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
11806 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
11807 cgraph_varpool_node): Likewise.
11808 * cgraphunit.c (cgraph_finalize_function,
11809 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
11810 cgraph_expand_function, cgraph_remove_unreachable_nodes,
11811 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
11812 cgraph_mark_inline, cgraph_expand_all_functions,
11813 cgraph_build_static_cdtor): Likewise.
11814 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
11815 simplify_logical, distribute_notes, insn_cuid): Likewise.
11816 * conflict.c (conflict_graph_add, print_conflict): Likewise.
11817 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
11818 coverage_checksum_string): Likewise.
11819 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
11820 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
11821 cse_cc_succs, cse_condition_code_reg): Likewise.
11822 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
11823 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
11824 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
11825 cselib_record_set): Likewise.
11826
11827 2004-09-07 Jan Hubicka <jh@suse.cz>
11828
11829 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
11830
11831 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
11832
11833 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
11834 fold_convert.
11835 (fold_builtin_strpbrk): Likewise.
11836 * expr.c (array_ref_low_bound): Likewise.
11837 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
11838 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
11839 * tree-sra.c (generate_element_zero): Likewise.
11840 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
11841 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
11842 add_old_iv_candidates, add_iv_candidates): Likewise.
11843 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
11844
11845 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
11846
11847 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
11848 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
11849 c_expand_expr, boolean_increment, nonnull_check_p,
11850 check_function_arguments_recurse, fold_offsetof_1): Likewise.
11851 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
11852 builtin_define_type_max): Likewise.
11853 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
11854 implicit_decl_warning, builtin_function, build_compound_literal,
11855 complete_array_type, grokdeclarator, get_parm_info,
11856 start_function, store_parm_decls_oldstyle,
11857 c_write_global_declarations): Likewise.
11858 * c-format.c (get_constant, decode_format_attr,
11859 maybe_read_dollar_number, get_flag_spec, check_format_arg,
11860 check_format_types, format_type_warning,
11861 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
11862 init_dynamic_diag_info, handle_format_attribute): Likewise.
11863 * c-gimplify.c (push_context, pop_context, finish_bc_block):
11864 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
11865 * c-objc-common.c (c_tree_printer): Likewise.
11866 * c-pch.c (pch_init): Likewise.
11867 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
11868 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
11869 * c-typeck.c (c_incomplete_type_error, composite_type,
11870 common_pointer_type, common_type, same_translation_unit_p,
11871 tagged_types_tu_compatible_p, finish_init, pop_init_level,
11872 set_designator, set_nonincremental_init_from_string,
11873 process_init_element, c_finish_if_stmt): Likewise.
11874 * caller-save.c (init_caller_save, save_call_clobbered_regs,
11875 insert_restore, insert_save, insert_one_insn): Likewise.
11876 * calls.c (emit_call_1, compute_argument_block_size,
11877 precompute_arguments, expand_call, emit_library_call_value_1,
11878 store_one_arg): Likewise.
11879
11880 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
11881
11882 * configure.ac (enable-checking): Add release option. Reorganize
11883 to avoid repetition.
11884 * configure: Rebuilt.
11885 * doc/install.texi (enable-checking): Amend documentation.
11886
11887 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
11888
11889 PR bootstrap/17313
11890 * Makefile.in (specs.ready): Depend on cc1$(exeext).
11891
11892 2004-09-06 James E Wilson <wilson@specifixinc.com>
11893
11894 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
11895 movdf_hardfloat_32bit): Split fG into two alternatives.
11896 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
11897
11898 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
11899
11900 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
11901
11902 * final.c (output_in_slot): Delete.
11903 (final_scan_insn): Revert 2004-09-03 change.
11904 (output_asm_insn): Likewise.
11905 * config/sparc/sparc.c (output_return): Likewise.
11906 (output_sibcall): Likewise.
11907
11908 2004-09-06 Jan Hubicka <jh@suse.cz>
11909
11910 * loop.c (loop_dump_aux): Do not print RTL when not available.
11911 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
11912 frontend specific type nodes.
11913 (produce_memory_decl_rtl): Break out from ...
11914 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
11915 (get_computation_at): Avoid random tree sharing.
11916 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
11917
11918 2004-09-06 Zack Weinberg <zack@codesourcery.com>
11919
11920 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
11921 unnecessary commands.
11922
11923 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
11924
11925 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
11926 (bitmap.o): Likewise.
11927
11928 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
11929
11930 Unify the management of RTL and tree-level dump files.
11931
11932 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
11933 Don't print function name to the dump file, the pass manager
11934 would do this for us. Add code from the top of
11935 rest_of_compilation, up to the initial RTL dump.
11936 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
11937 close the DFI_sibling dump file.
11938 (rest_of_compilation): Don't do that here. Remove code up to the
11939 initial RTL dump.
11940 (init_optimization_passes): Remove.
11941 (pass_rest_of_compilation): Change pass name to NULL.
11942 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
11943 Do not call init_optimization_passes.
11944 * toplev.h (init_optimization_passes): Remove.
11945
11946 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
11947 finish_graph_dump_file): Remove SUFFIX parameter.
11948 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
11949 finish_graph_dump_file): Likewise.
11950
11951 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
11952 * cfgexpand.c (pass_expand): Adjust.
11953 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
11954 * passes.c (pass_rest_of_compilation): Adjust.
11955 * predict.c (pass_profile): Adjust.
11956 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
11957 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
11958 pass_split_crit_edges, pass_warn_function_return): Adjust.
11959 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
11960 * tree-dfa.c (pass_referenced_vars): Adjust.
11961 * tree-eh.c (pass_lower_eh): Adjust.
11962 * tree-if-conv.c (pass_build_ssa): Adjust.
11963 * tree-into-ssa.c (pass_build_ssa): Adjust.
11964 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
11965 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
11966 * tree-nrv.c (pass_nrv): Adjust.
11967 * tree-optimize.c (pass_gimple, pass_all_optimizations,
11968 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
11969 pass_init_datastructures): Adjust.
11970 * tree-outof-ssa.c (pass_del_ssa): Adjust.
11971 * tree-profile.c (pass_tree_profile): Adjust.
11972 * tree-sra.c (pass_sra): Adjust.
11973 * tree-ssa-alias.c (pass_may_alias): Adjust.
11974 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
11975 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
11976 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
11977 * tree-ssa-dom.c (pass_dominator): Adjust.
11978 * tree-ssa-dse.c (pass_dse): Adjust.
11979 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
11980 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
11981 * tree-ssa-loop-ch.c (pass_ch): Adjust.
11982 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
11983 pass_loop_done, pass_complete_unroll, pass_iv_canon,
11984 pass_iv_optimize, pass_vectorize): Adjust.
11985 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
11986 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
11987 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
11988 pass_late_warn_uninnitialized): Adjust.
11989 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
11990
11991 * Makefile.in (tree-dump.o): Add new dependencies.
11992 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
11993 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
11994 Likewise.
11995 * toplev.c (dump_file_name): New.
11996 * tree-dump.c (dump_enable_all): Add LETTER parameter.
11997 (struct dump_file_info): Add NUM and LETTER fields.
11998 (dump_files): Adjust and add RTL dump files.
11999 (dump_register): Add NUM and LETTER fields.
12000 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
12001 (dump_begin): Use get_dump_file_name.
12002 (dump_switch_p_1): Adjust call to dump_enable_all.
12003 * tree-dump.h (dump_register): Adjust prototype.
12004 * tree-optimize.c (register_one_dump_file): Take dump file index.
12005 Support flags for RTL dumps.
12006 (register_dump_files): Fill in NUM field of struct dump_file_info.
12007 Track properties both when the gate is executed and when it is not.
12008 (execute_todo): Dump RTL. Add PROPERTIES parameter.
12009 (execute_one_pass): Pass properties to execute_todo. Handle VCG
12010 dumps of RTL.
12011 * tree-pass.h (dump_file_name): New.
12012 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
12013 New.
12014
12015 * Makefile.in (passes.o): Add new dependencies.
12016 * passes.c (struct dump_file_info, enum dump_file_index,
12017 dump_file_tbl, init_optimization_passes): Remove.
12018 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
12019 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
12020 dump_enabled_p.
12021 (finish_optimization_passes): Update finish_graph_dump_file loop.
12022 (enable_rtl_dump_file): Remove.
12023 * tree-dump.c (dump_files): Adjust and add RTL dump files.
12024 (enable_rtl_dump_file): Add here.
12025 * tree.h (enum tree_dump_index): Add RTL dump file indices.
12026 * doc/invoke.texi (Debugging options): Document new RTL debugging
12027 options. Update.
12028
12029 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
12030
12031 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
12032 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
12033 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
12034 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
12035 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
12036 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
12037 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
12038 vec.h: Fix comment formatting.
12039
12040 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
12041
12042 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
12043 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
12044 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
12045 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
12046 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
12047 tree-ssa-loop-niter.c, tree-ssa-operands.c,
12048 tree-ssa-operands.h, tree-ssa-propagate.c,
12049 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
12050 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
12051
12052 2004-09-05 Diego Novillo <dnovillo@redhat.com>
12053
12054 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
12055 vectorizer is enabled.
12056
12057 2004-09-05 Andreas Jaeger <aj@suse.de>
12058
12059 * tree-if-conv.c: Spell check comments and clean up whitespace.
12060
12061 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12062
12063 * tree-ssa-loop-ivopts.c: New file.
12064 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
12065 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
12066 target_pres_cost, target_spill_cost): Declare.
12067 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
12068 spill_cost): Renamed to ...
12069 (target_avail_regs, target_res_regs, target_small_cost,
12070 target_pres_cost, target_spill_cost): ... and exported.
12071 (init_set_costs, global_cost_for_size): Work with renamed variables.
12072 * common.opt (flag_ivopts): New flag.
12073 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
12074 REF_ORIGINAL.
12075 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
12076 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
12077 generating SSA form.
12078 (force_gimple_operand): New function.
12079 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
12080 * tree-cfg.c (stmt_bsi): New function.
12081 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
12082 PARAM_IV_MAX_CONSIDERED_USES): New.
12083 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
12084 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
12085 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
12086 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
12087 * tree-nested.c (build_addr): Export.
12088 * tree-optimize.c (init_tree_optimization_passes): Add
12089 pass_iv_optimize.
12090 * tree-pass.h (pass_iv_optimize): Declare.
12091 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
12092 IMAGPART_EXPR.
12093 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
12094 as a phi node argument.
12095 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
12096 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
12097 functions.
12098 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
12099 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
12100 pass_iv_optimize): New pass.
12101 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
12102 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
12103 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
12104 * tree.h (REF_ORIGINAL): New macro.
12105 (build_int_cst_type, unsigned_type_for, zero_p,
12106 cst_and_fits_in_hwi, build_addr): Declare.
12107 * doc/invoke.texi (-fivopts): Document.
12108 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
12109 PARAM_IV_MAX_CONSIDERED_USES): Document.
12110 * doc/passes.texi: Document induction variable optimizations pass.
12111
12112 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12113
12114 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
12115 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
12116 * c-common.c (c_common_attribute_table): Accept parameters to
12117 sentinel attribute.
12118 (check_function_sentinel, handle_sentinel_attribute): Likewise.
12119 * doc/extend.texi: Update accordingly.
12120
12121 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12122
12123 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
12124 New.
12125 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
12126 attribute.
12127 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
12128 New functions.
12129 (c_common_attribute_table): Add `sentinel' attribute.
12130 (check_function_arguments): Handle `sentinel' attribute.
12131 * doc/extend.texi: Document `sentinel' attribute.
12132
12133 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
12134
12135 * configure: Regenerated.
12136
12137 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12138
12139 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
12140
12141 * tree.c (save_expr): No longer TREE_READONLY.
12142
12143 2004-09-04 Jan Hubicka <jh@suse.cz>
12144
12145 * passes.c (rest_of_clean_state): Fix merge conflict made during
12146 commiting the patch.
12147
12148 2004-09-04 Jan Hubicka <jh@suse.cz>
12149
12150 * passes.c (rest_of_clean_state): Decompose the instruction stream.
12151
12152 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
12153
12154 * doc/md.texi (shift patterns): New anchor. Add reference to
12155 TARGET_SHIFT_TRUNCATION_MASK.
12156 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
12157 * target.h (shift_truncation_mask): New target hook.
12158 * targhook.h (default_shift_truncation_mask): Declare.
12159 * targhook.c (default_shift_truncation_mask): Define.
12160 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
12161 (TARGET_INITIALIZER): Include it.
12162 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
12163 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
12164 reject all out-of-range values. Fix sign-extension code for modes
12165 whose width is smaller than HOST_BITS_PER_WIDE_INT.
12166 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
12167 (expand_superword_shift, expand_subword_shift): Likewise.
12168 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
12169 (expand_binop): Use them to implement double-word shifts.
12170 * config/arm/arm.c (arm_shift_truncation_mask): New function.
12171 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12172
12173 2004-09-04 Jan Hubicka <jh@suse.cz>
12174
12175 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
12176 (mix): New macro copied from hashtab.c
12177 (iterative_hash_hashval_t, iterative_hash_pointer,
12178 iterative_hash_host_wide_int): New functions based on hashtab.c
12179 implementation.
12180
12181 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
12182
12183 * config/mips/mips.md (mask): New mode attribute.
12184 (zero_extendsidi2): Add memory alternative.
12185 (*zero_extendsidi2_mem): Delete.
12186 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
12187 memory_operand in the TARGET_MIPS16 check.
12188 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
12189 Redefine using :GPR and :SHORT.
12190 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
12191
12192 2004-09-04 Uros Bizjak <uros@kss-loka.si>
12193
12194 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
12195 using rint_optab.
12196 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
12197 expand_builtin_mathfn.
12198 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
12199 btrunc?f patterns for btrunc_optab. Implement rint_optab using
12200 rint?f patterns.
12201 * optabs.c (init_optabs): Initialize rint_optab.
12202 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
12203 Add new OTI_rint.
12204 (btrunc_optab): Rename macro from trunc_optab.
12205 (rint_optab): Define corresponding macro.
12206
12207 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
12208 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
12209
12210 * config/i386/i386-protos.h (emit_i387_cw_initialization):
12211 Change prototype. Add new int parameter.
12212 * config/i386/i386.c (emit_i387_cw_initialization):
12213 Handle new rounding modes.
12214
12215 * config/i386/i386.h (enum fp_cw_mode): Delete.
12216 (MODE_NEEDED): Handle new rounding modes.
12217 (EMIT_MODE_SET): Change condition to handle new rounding modes.
12218
12219 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
12220 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
12221 represent different rounding modes of frndint insn.
12222 (type): Add frndint type.
12223 (i387, length, memory): Handle this type.
12224 (i387_cw): New attribute definition.
12225 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
12226 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
12227 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
12228 Add "i387_cw" attribute defined to "trunc".
12229 (x86_fnstcw_1): Remove comment.
12230 (*frndintxf2): Rename insn definition to frndintxf2. Move
12231 insn definition near rint?f2 expanders.
12232 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
12233 rintf and rintl built-ins as inline x87 intrinsics.
12234 (frndintxf2_floor): New pattern to implement floor rounding
12235 mode with frndint x87 instruction.
12236 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
12237 floorf and floorl built-ins as inline x87 intrinsics.
12238 (frndintxf2_ceil): New pattern to implement ceil rounding
12239 mode with frndint x87 instruction.
12240 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
12241 ceilf and ceill built-ins as inline x87 intrinsics.
12242 (frndintxf2_trunc): New pattern to implement trunc rounding
12243 mode with frndint x87 instruction.
12244 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
12245 truncf and truncl built-ins as inline x87 intrinsics.
12246 (frndintxf2_mask_pm): New pattern to implement rounding
12247 mode with exceptions with frndint x87 instruction.
12248 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
12249 implement nearbyint, nearbyintf and nearbyintl built-ins as
12250 inline x87 intrinsics.
12251
12252 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
12253
12254 * config/mips/mips.md (SHORT): New mode macro.
12255 (size): New mode attribute.
12256 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
12257 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
12258 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
12259 !ISA_HAS_SEB_SEH.
12260 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
12261 *extend[qh]isi2_hw patterns and extending them to di.
12262 (extendqihi2): Implement as define_insn_and_split that produces
12263 extendqisi2 after reload.
12264
12265 2004-09-03 Devang Patel <dpatel@apple.com>
12266
12267 * Makefile.in (OBJS-common): Add tree-if-conv.o
12268 (tree-if-conv.o): New rule.
12269 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
12270 (get_loop_body_in_bfs_order): New.
12271 * cfgloop.h (get_loop_body_in_bfs_order): New.
12272 * tree-flow.h (enum move_pos): Move here from ..
12273 * tree-ssa-loop-im.c (enum move_pos): here.
12274 (movement_possibility): Make externally visible.
12275 * tree-optimize.c (init_tree_optimization_passes): New entry for
12276 if conversion pass.
12277 * tree-pass.h (pass_if_conversion): New.
12278 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
12279 * tree-if-conv.c: New file.
12280 * doc/passes.texi: Document tree if-conversion pass.
12281 * doc/tree-ssa.texi: Same.
12282
12283 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
12284
12285 PR target/14925:
12286 Makefile.in (LIB2ADDEHSTATIC): New.
12287 (LIB2ADDEHSHARED): New.
12288 (LIBUNWIND): New.
12289 (LIBUNWINDDEP): New.
12290 (SHLIBUNWIND_LINK): New.
12291 (SHLIBUNWIND_INSTALL): New.
12292 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
12293 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
12294 (clean): Remove libunwind*
12295 (stage1-start): Remove and copy stage1/libunwind*.
12296 (stage2-start): Remove and copy stage2/libunwind*.
12297 (stage3-start): Remove and copy stage3/libunwind*.
12298 (stage4-start): Remove and copy stage4/libunwind*.
12299 (stageprofile-start): Remove and copy stageprofile/libunwind*.
12300 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
12301
12302 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
12303 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
12304 tmake_file if --with-system-libunwind isn't used.
12305
12306 * config/ia64/t-glibc-libunwind: New file.
12307 * config/t-libunwind-elf: Likewise.
12308 * unwind-compat.c: Likewise.
12309 * unwind-compat.h: Likewise.
12310 * unwind-dw2-fde-compat.c: Likewise.
12311
12312 * config/ia64/t-glibc (LIB2ADDEH): Updated.
12313 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
12314
12315 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
12316 aliases if needed.
12317 * unwind-dw2-fde-glibc.c: Likewise.
12318 * unwind-dw2.c: Likewise.
12319
12320 * config/t-libunwind (LIB2ADDEH): Updated.
12321 (LIB2ADDEHSTATIC): New.
12322 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
12323 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
12324
12325 * configure.ac: Change --enable-libunwind-exceptions to
12326 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
12327 * configure: Regenerated.
12328 * config.in: Updated.
12329
12330 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
12331 above and mention --with-system-libunwind.
12332 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
12333 removed in gcc 3.4.3 and later.
12334
12335 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
12336 USE_LIBUNWIND_EXCEPTIONS is defined.
12337
12338 * mklibgcc.in: Support libunwind.
12339
12340 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
12341
12342 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
12343 m_NOCONA.
12344
12345 2004-09-03 Richard Henderson <rth@redhat.com>
12346
12347 PR middle-end/9997
12348 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
12349 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
12350 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
12351 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
12352 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
12353 resize_stack_vars_conflict, add_stack_var_conflict,
12354 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
12355 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
12356 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
12357 expand_one_static_var, expand_one_hard_reg_var,
12358 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
12359 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
12360 (expand_used_vars): Rewrite.
12361 * Makefile.in (cfgexpand.o): Update dependencies.
12362
12363 2004-09-04 Jan Hubicka <jh@suse.cz>
12364
12365 * cfg.c (free_edge): Use ggc_free.
12366 (expunge_block): Use ggc_free.
12367 * passes.c (rest_of_clean_state): Free after compilation.
12368 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
12369 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
12370
12371 2004-09-03 James E Wilson <wilson@specifixinc.com>
12372
12373 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
12374 DECL_EXTERNAL check.
12375
12376 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
12377
12378 * final.c (output_in_slot): New global variable.
12379 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
12380 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
12381 'output_in_slot' before invoking output_asm_insn.
12382 (output_asm_insn): Add a space after the tab if 'output_in_slot'
12383 is set.
12384 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
12385 final_scan_insn.
12386 (output_sibcall): Likewise.
12387
12388 2004-09-03 Jan Hubicka <jh@suse.cz>
12389
12390 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
12391 * tree-ssanames (init_ssanames): Likewise.
12392
12393 2004-09-03 Ziemowit Laski <zlaski@apple.com>
12394
12395 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
12396 objc_declare_protocols, objc_start_protocol,
12397 objc_start_class_interface, objc_start_category_interface,
12398 objc_continue_interface, objc_finish_interface,
12399 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
12400 objc_start_class_implementation, objc_start_category_implementation,
12401 objc_continue_implementation, objc_finish_implementation,
12402 objc_add_method_declaration, objc_start_method_definition,
12403 objc_finish_method_definition, objc_build_keyword_decl,
12404 objc_build_method_signature, objc_build_encode_expr,
12405 objc_build_protocol_expr, objc_build_selector_expr,
12406 objc_build_message_expr, objc_build_string_object,
12407 objc_get_class_reference, objc_get_protocol_qualified_type,
12408 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
12409
12410 2004-09-03 James E Wilson <wilson@specifixinc.com>
12411
12412 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
12413
12414 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
12415 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
12416 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
12417 (mips_recip1_<fmt>): Use frdiv1 type.
12418 (mips_recip2_<fmt>): Use frdiv2 type.
12419 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
12420 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
12421 and frsqrt1.
12422 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
12423
12424 2004-09-03 Daniel Jacobowitz <dan@debian.org>
12425
12426 * reload.c (find_reloads): Swap operand_loc pointers for
12427 find_dummy_reload if we have swapped two operands.
12428
12429 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
12430
12431 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
12432 to get the tablejump-insn before the jump-table label.
12433
12434 2004-09-03 Ziemowit Laski <zlaski@apple.com>
12435
12436 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
12437 objc_declare_protocols, objc_build_message_expr,
12438 objc_finish_message_expr, objc_build_selector_expr,
12439 objc_build_protocol_expr, objc_build_encode_expr,
12440 objc_build_string_object, objc_get_protocol_qualified_type,
12441 objc_get_class_reference, objc_get_class_ivars,
12442 objc_start_class_interface, objc_start_category_interface,
12443 objc_start_protocol, objc_continue_interface, objc_finish_interface,
12444 objc_start_class_implementation, objc_start_category_implementation,
12445 objc_continue_implementation, objc_finish_implementation,
12446 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
12447 objc_add_method_declaration, objc_start_method_definition,
12448 objc_finish_method_definition, objc_add_instance_variable,
12449 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
12450 objc_finish_try_stmt, objc_begin_catch_clause,
12451 objc_finish_catch_clause, objc_build_finally_clause,
12452 objc_build_synchronized, objc_static_init_needed_p,
12453 objc_generate_static_init_call): New prototypes.
12454
12455 2004-09-03 Steve Ellcey <sje@cup.hp.com>
12456
12457 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
12458 is only one reg.
12459 (ia64_function_value): Ditto.
12460
12461 2004-09-03 Jan Beulich <jbeulich@novell.com>
12462
12463 * config.gcc: Resurrect NetWare as a target. Handle special case of
12464 Novell linker to be used (specified through --with-ld=) and threading
12465 model of either Posix (default) or NKS.
12466 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
12467 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
12468 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
12469 * config/i386/netware.c, config/i386/netware.h: New.
12470 * config/i386/nwld.c, config/i386/nwld.h: New.
12471 * config/i386/netware-crt0.c: New.
12472 * config/i386/netware-libgcc.c: New.
12473 * config/i386/netware-libgcc.def: New.
12474 * config/i386/netware-libgcc.exp: New.
12475 * config/i386/t-netware, config/i386/t-nwld: New.
12476 * gthr-nks.h: New.
12477 * doc/install.texi: Document NKS threading model.
12478
12479 2004-09-03 Jan Beulich <jbeulich@novell.com>
12480
12481 PR c/7054
12482 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
12483 * tree.h (initial_max_fld_align): Declare
12484 * stor-layout.c (initial_max_fld_align): Define and initialize.
12485 (maximum_field_alignment): Initialize to the same value.
12486 * common.opt: Add -fpack-struct= variant of switch.
12487 * opts.c: Handle -fpack-struct= variant of switch.
12488 * c-pragma.c: Change #pragma pack() handling so that it becomes
12489 compatible to other compilers: accept individual 'push' argument,
12490 make final pop restore (command line) default, correct interaction
12491 of push/pop and sole specification of a new alignment (so that the
12492 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
12493 to #pragma pack(push, <n>).
12494 * doc/extend.texi: New node "Structure-Packing Pragmas" under
12495 "Pragmas", describing #pragma pack.
12496 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
12497 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
12498 Document new TARGET_DEFAULT_PACK_STRUCT.
12499
12500 2004-09-03 Devang Patel <dpatel@apple.com>
12501
12502 * dwarf2out.c (gen_field_die). Equate decl number to die.
12503
12504 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
12505
12506 PR target/15832
12507 * global.c (modify_reg_pav): New function.
12508 (make_accurate_live_analysis): Call the new function. Move pavin
12509 modification by earlyclobber set into the new function.
12510
12511 2004-09-03 Andreas Schwab <schwab@suse.de>
12512
12513 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
12514 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
12515 extended.
12516
12517 2004-09-02 Jan Beulich <jbeulich@novell.com>
12518
12519 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
12520 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
12521 not unwind code specific ones.
12522 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
12523 Remove unwind code specific dependencies.
12524 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
12525 Remove gbl-ctors.h.
12526 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
12527 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
12528 * tsystem.h: Declare memcpy and memset when inhibit_libc.
12529
12530 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
12531
12532 * combine.c (try_combine): Delay modifying of insns which cannot
12533 be easily undone.
12534
12535 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
12536
12537 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
12538 tree-loop-im.
12539 * gcc/tree-ssa-loop.c: Ditto
12540 * gcc/tree-ssa-loop-ivcanon.c: Ditto
12541 * gcc/doc/invoke.texi: Ditto.
12542
12543 2004-09-02 Ziemowit Laski <zlaski@apple.com>
12544
12545 * c-decl.c (store_parm_decls_newstyle): Make static.
12546 (store_parm_decls_from): New function.
12547 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
12548 (store_parm_decls_from): New prototype.
12549
12550 2004-09-02 David Edelsohn <edelsohn@gnu.org>
12551
12552 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
12553 HImode with STRICT_ALIGNMENT.
12554
12555 2004-09-02 Mark Mitchell <mark@codesourcery.com>
12556
12557 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
12558 (TARGET_OS_CPP_BUILTINS): Likewise.
12559 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
12560 TARGET_BPABI_CPP_BUILTINS.
12561
12562 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
12563
12564 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
12565
12566 2004-09-02 Eric Christopher <echristo@redhat.com>
12567
12568 * builtins.c (expand_builtin_cabs): Delete.
12569 (expand_builtin): If unable to fold the values do a normal
12570 library call for builtin_cab*.
12571 (fold_builtin_cabs): Depend on optimize and optimize_size.
12572 * optabs.c (expand_cmplxdiv_straight): Delete.
12573 (expand_cmplxdiv_wide): Ditto.
12574 (expand_vector_binop): Ditto.
12575 (expand_vector_unop): Ditto.
12576 (expand_complex_abs): Delete.
12577 (expand_binop): Remove calls to above functions.
12578 Remove open coding of complex arithmetic.
12579 (expand_unop): Ditto.
12580 * optabs.h: Remove prototypes.
12581
12582 2004-09-02 Ziemowit Laski <zlaski@apple.com>
12583
12584 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
12585 * c-tree.h (store_parm_decls_newstyle): New prototype.
12586
12587 2004-09-02 Geoffrey Keating <geoffk@apple.com>
12588
12589 * config/rs6000/rs6000.c (expand_block_clear): Use vector
12590 instructions if available.
12591 (expand_block_move): Likewise.
12592
12593 2004-09-03 Jan Hubicka <jh@suse.cz>
12594
12595 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
12596
12597 2004-09-02 Mark Mitchell <mark@codesourcery.com>
12598
12599 * config/arm/symbian.h (LIB_SPEC): Define to empty.
12600 * config/arm/t-symbian (SHLIB_LC): Likewise.
12601
12602 2004-09-02 Paul Brook <paul@codesourcery.com>
12603
12604 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
12605
12606 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
12607
12608 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
12609 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
12610 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
12611 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
12612 (mips_issue_rate): Remove unreachable abort.
12613 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
12614 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
12615 (mips_block_move_straight, print_operand_address, mips_file_start)
12616 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
12617 (mips_output_conditional_branch, mips_expand_builtin_direct)
12618 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
12619 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
12620 with gcc_assert.
12621
12622 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
12623
12624 * config/mips/mips.md (*lea_high64): Change split condition to
12625 flow2_completed. Add a peephole2 to generate a more parallel version.
12626
12627 2004-09-02 Jan Hubicka <jh@suse.cz>
12628
12629 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
12630 GGC.
12631
12632 * ggc-page.c: include tree-flow.h.
12633 (extra_order_size_table): Add stmt_ann_d.
12634 (STAT_LABEL): Rename from ....
12635 (LABEL): ... this one.
12636 * Makefile.in (ggc-page.o): Add dependency.
12637
12638 * ggc-common.c (ggc_force_collect): New global variable.
12639 (loc_description): Add fields "freed", "collected"
12640 (ptr_hash): New static hash
12641 (ptr_hash_entry): New structure.
12642 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
12643 (ggc_record_overhead): Take ptr argument, record it
12644 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
12645 (cmp_statistics): Imrove sorting.
12646 (dump_ggc_loc_statistics): Output newly collected statistics
12647 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
12648 (ggc_free): Call ggc_free_overhead.
12649 (ggc_collect): Force collection when asked to be forced.
12650 (ggc_collect): Call ggc_prune_overhead_list.
12651 * ggc.h (ggc_force_collect): Declare
12652 (ggc_record_overhead): Update prototype.
12653 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
12654
12655 2004-09-02 James E Wilson <wilson@specifixinc.com>
12656
12657 * common.opt (ftrapping-math): Default to on.
12658
12659 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
12660
12661 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
12662
12663 2004-09-02 Denis Chertykov <denisc@overta.ru>
12664
12665 PR target/16884
12666 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
12667 match_scratch.
12668 (*movmemqi_insn): Likewise.
12669 (*movmemhi): Likewise.
12670 (clrmemhi): Likewise.
12671 (*clrmemqi): Likewise.
12672 (*clrmemhi): Likewise.
12673
12674 2004-09-02 Paul Brook <paul@codesourcery.com>
12675
12676 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
12677 default_use_cxa_atexit=yes.
12678
12679 2004-09-02 Alan Modra <amodra@bigpond.net.au>
12680
12681 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
12682 (struct kernel_old_ucontext): Delete.
12683 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
12684 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
12685 when IN_LIGGCC2.
12686
12687 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
12688
12689 * toplev.c (process_options): Fix typo.
12690
12691 2004-09-01 Richard Henderson <rth@redhat.com>
12692
12693 PR middle-end/17258
12694 * calls.c (initialize_argument_information): Tighten pass-through
12695 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
12696 Use build_fold_addr_expr.
12697 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
12698 that assumes ADDR_EXPR allocates stack space.
12699 * fold-const.c (build_fold_addr_expr_with_type): Look through
12700 WITH_SIZE_EXPR.
12701
12702 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
12703
12704 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
12705 * ggc.h (ggc_alloc_rtx): Delete.
12706
12707 2004-09-01 Roger Sayle <roger@eyesopen.com>
12708
12709 * expmed.c (enum alg_code): Remove long unused enumeration values.
12710 (struct mult_cost): New structure to hold the "score" of a synthetic
12711 multiply sequence, including both a rtx_cost and a latency field.
12712 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
12713 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
12714 (struct algorithm): Change type of cost field to be mult_cost.
12715 (synth_mult): Change type of cost_limit argument to be a
12716 pointer to a mult_cost. Update all cost comparisons to use the
12717 new mult_cost infrastructure. For alg_add_factor and
12718 alg_sub_factor operations, latency is lower than the rtx_cost.
12719 (choose_mult_variant): Update calls to synth_mult. Perform
12720 cost comparisons using the new mult_cost infrastructure.
12721 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
12722 to optain the total rtx_cost of a synth_mult "algorithm".
12723
12724 2004-09-01 David Edelsohn <edelsohn@gnu.org>
12725
12726 * config/rs6000/power4.md: Increase store latency to 12.
12727 * config/rs6000/power5.md: Same.
12728
12729 2004-09-01 James E Wilson <wilson@specifixinc.com>
12730
12731 PR target/14064
12732 * config/avr/avr.c (avr_unique_section): Delete prototype and
12733 definition.
12734 (TARGET_ASM_UNIQUE_SECTION): Delete.
12735
12736 2004-09-01 Ziemowit Laski <zlaski@apple.com>
12737
12738 * c-parse.in (primary): Call objc_build_message_expr(),
12739 objc_build_selector_expr(), objc_build_protocol_expr(),
12740 objc_build_encode_expr() and objc_build_string_object() instead of
12741 build_message_expr(), build_selector_expr(), build_protocol_expr(),
12742 build_encode_expr() and build_objc_string_object(), respectively.
12743 (component_decl_list2): Call objc_get_class_ivars() instead of
12744 get_class_ivars_from_name().
12745 (keyworddecl): Call objc_build_keyword_decl() instead of
12746 build_keyword_decl().
12747 (receiver): Call objc_get_class_reference() instead of
12748 get_class_reference().
12749 (reswords): Add blank line before @@ifobjc section, for clarity.
12750
12751 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
12752
12753 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
12754 to Altivec vetors.
12755
12756 2004-09-01 Wu Yongwei <adah@sh163.net>
12757 Danny Smith <dannysmith@users.sourceforge.net>
12758
12759 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
12760 not Windows 'DWORD'.
12761 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
12762 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
12763 (__gthr_win32_recursive_mutex_init_function): Add prototype for
12764 __GTHREAD_HIDE_WIN32API case..
12765 (__gthr_win32_recursive_mutex_lock): Likewise.
12766 (__gthr_win32_recursive_mutex_trylock): Likewise.
12767 (__gthr_win32_recursive_mutex_unlock): Likewise.
12768 (__gthread_recursive_mutex_init_function); Add definition for
12769 __GTHREAD_HIDE_WIN32API case.
12770 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
12771 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
12772 call to InterlockedDecrement.
12773
12774 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12775
12776 * tree-tailcall.c (find_tail_calls): Also fail is statement has
12777 volatile operands.
12778
12779 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
12780
12781 * doc/c-tree.texi: Document new operands for ARRAY_REF and
12782 COMPONENT_REF.
12783
12784 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12785
12786 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
12787 * common.opt (fspeculative-prefetching): New.
12788 * flags.h (flag_speculative_prefetching_set): Declare.
12789 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
12790 values.
12791 * opts.c (flag_sepculative_prefetching_set): New variable.
12792 (common_handle_option): Handle -fspeculative-prefetching.
12793 * passes.c (rest_of_compilation): Ditto.
12794 * profile.c (instrument_values, compute_value_histograms, branch_prob):
12795 Use vectors instead of arrays.
12796 * toplev.c (process_options): Handle -fspeculative-prefetching.
12797 * rtl-profile.c: Include ggc.h.
12798 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
12799 rtl_gen_one_value_profiler_no_edge_manipulation,
12800 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
12801 argument changed.
12802 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
12803 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
12804 argument changed.
12805 * value-prof.c: Include ggc.h.
12806 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
12807 macros.
12808 (insn_prefetch_values_to_profile, find_mem_reference_1,
12809 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
12810 speculative_prefetching_transform): New.
12811 (value_profile_transformations): Call speculative_prefetching_transform.
12812 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
12813 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
12814 tree_find_values_to_profile, find_values to profile): Use vectors
12815 instead of arrays.
12816 (free_profiled_values): Removed.
12817 * value-prof.h (struct histogram_value): Renamed to
12818 struct histogram_value_t.
12819 (histogram_value, histogram_values): New types.
12820 (find_values_to_profile): Declaration changed.
12821 (free_profiled_values): Removed.
12822 (struct profile_hooks): Type of argument of the hooks changed to
12823 histogram_value.
12824 * doc/invoke.texi (-fspeculative-prefetching): Document.
12825
12826 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12827
12828 PR rtl-optimization/16408
12829 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
12830
12831 2004-09-01 Richard Henderson <rth@redhat.com>
12832
12833 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
12834 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
12835
12836 2004-09-01 Jakub Jelinek <jakub@redhat.com>
12837
12838 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
12839
12840 2004-09-01 Mike Stump <mrs@apple.com>
12841
12842 * config/darwin.c (machopic_symbol_defined_p): In addition to
12843 being SYMBOL_REF_LOCAL_P, a symbol must also be
12844 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
12845 defined in this output file, or translation unit in the case
12846 of IMA not being used.
12847 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
12848 never need .indirect_symbol when indirecting.
12849
12850 2004-09-01 Jakub Jelinek <jakub@redhat.com>
12851
12852 * Makefile.in (bb-reorder.o): Add several dependencies.
12853
12854 2004-09-01 Jakub Jelinek <jakub@redhat.com>
12855
12856 * fold-const.c (operand_equal_p): Require equal sign also for
12857 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
12858
12859 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
12860
12861 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
12862 for use in configargs.h. Put the cname in a separate variable. Use
12863 that to set target_cpu_default2.
12864
12865 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
12866 Nick Clifton <nickc@redhat.com>
12867
12868 * config/sh/sh.md ("length"): Increase branch length when
12869 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
12870 constant, 2 byte for aligning the constant.
12871
12872 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
12873
12874 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
12875 CPU.
12876 (arm7tdmi-s): New CPU name.
12877 * arm/arm.c (ARM_CORE): Update for new format.
12878 * arm/arm.h (ARM_CORE): Likewise.
12879 * arm/gentune.sh: Update for extra field.
12880 * config.gcc: Likewise.
12881 * arm/arm-tune.md: Regenerate.
12882 * doc/invoke.texi: Document the real processor names for ARM cpus.
12883
12884 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
12885
12886 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
12887 (floatdidf): New functions.
12888 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
12889 (floatdisf): New functions.
12890 * t-arm-elf: Use them.
12891
12892 2004-09-01 Ziemowit Laski <zlaski@apple.com>
12893
12894 * c-common.h (lookup_interface): Remove prototype.
12895 (is_class_name): Rename to objc_is_class_name.
12896 (lookup_objc_ivar): Rename to objc_lookup_ivar.
12897 (get_current_scope): Rename to objc_get_current_scope.
12898 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
12899 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
12900 (yylexname): Call objc_is_class_name() instead of is_class_name().
12901 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
12902 instead of lookup_objc_ivar().
12903 * stub-objc.c (lookup_interface): Remove stub.
12904 (is_class_name): Rename to objc_is_class_name.
12905 (lookup_objc_ivar): Rename to objc_lookup_ivar.
12906
12907 2004-08-31 Mark Mitchell <mark@codesourcery.com>
12908
12909 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
12910 * config/arm/lib1funcs.asm: Do not include supplemental .S files
12911 when compiling for Symbian.
12912 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
12913 (TARGET_OS_CPP_BUILTINS): Likewise.
12914 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
12915
12916 2004-08-31 Stan Shebs <shebs@apple.com>
12917
12918 * toplev.c (process_options): Ensure debug_hooks is initialized.
12919
12920 2004-08-31 Mark Mitchell <mark@codesourcery.com>
12921
12922 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
12923 * target.h (cxx): Add export_class_data.
12924 * config/arm/arm.c (arm_cxx_export_class_data): New function.
12925 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
12926 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
12927
12928 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
12929
12930 * config/sh/sh.c (output_branch): Check the insn length possibly
12931 in the delayed slot.
12932
12933 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12934
12935 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
12936 blank after ')'.
12937 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
12938
12939 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
12940 (c_sizeof_of_alignof_type): Likewise.
12941 * expr.c (array_ref_element_size): Likewise.
12942 (highest_pow2_factor_for_target): Likewise.
12943 * gimplify.c (canonicalize_addr_expr): Likewise.
12944 (gimplify_compound_lval): Likewise.
12945 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
12946 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
12947 * varasm.c (assemble_variable): Likewise.
12948 (output_constant_def_contents): Alignments are unsigned.
12949
12950 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12951 Jeff Law <law@redhat.com>
12952
12953 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
12954 gets modified.
12955
12956 2004-08-31 Mark Mitchell <mark@codesourcery.com>
12957
12958 * hooks.c (hook_bool_void_true): New function.
12959 * hooks.h (hook_bool_void_true): Declare.
12960 * target-def.h (TARGET_CXX): Add
12961 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
12962 * target.h (struct cxx): Add key_method_may_be_inline.
12963 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
12964 function.
12965 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
12966 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
12967 __THUMB_INTERWORK.
12968
12969 2004-08-31 Denis Chertykov <denisc@overta.ru>
12970
12971 PR target/15417
12972 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
12973 frame pointer register only in Pmode while reload in progress.
12974
12975 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
12976
12977 PR target/15334
12978 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
12979 because it breaks the 32-bit shift patterns that rely on a match_dup.
12980
12981 2004-08-31 Matt Austern <austern@apple.com>
12982
12983 * config/darwin.c (darwin_make_decl_one_only): Allocate section
12984 names once per compilation, instead of once per symbol.
12985
12986 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
12987
12988 * Makefile.in (build_subdir): New substitution.
12989 (fixinc.sh): Simplify heavily since fixincludes is already built.
12990 (stmp-fixinc): Depend on specs.ready.
12991 (install-mkheaders): Use new location of fixincludes.
12992 (clean): Do not descend into fixinc.
12993 (FORBUILD): Replace with ../$(build_subdir).
12994 * configure.ac (build_subdir): Substitute.
12995 (FORBUILD): Do not set.
12996 (all_outputs): Remove fixinc/Makefile.
12997 (default commands): Do not create links in fixinc.
12998 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
12999 the fixincludes configuration steps and substituting
13000 @FIXINCL@ in fixinc.in.
13001 * fixinc.in: New, from fixinc/fixincl.sh.
13002
13003 * fixinc/*: Removed.
13004
13005 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
13006
13007 * attribs.c (strip_attrs): Remove.
13008 (split_specs_attrs): Move ...
13009 * c-decl.c: ... to here.
13010 * tree.h (split_specs_attrs, strip_attrs): Remove.
13011 * c-tree.h (split_specs_attrs): Declare.
13012
13013 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
13014
13015 * read-rtl.c: Disable RTL checking.
13016 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
13017
13018 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
13019
13020 * config/mips/mips.md (fcond): New code macro and attribute.
13021 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
13022 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
13023 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
13024
13025 2004-08-30 Mark Mitchell <mark@codesourcery.com>
13026
13027 Revert:
13028 2004-08-29 Mark Mitchell <mark@codesourcery.com>
13029 PR rtl-optimization/16590
13030 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
13031
13032 2004-08-30 Andrew Pinski <apinski@apple.com>
13033
13034 * hard-reg-set.h:
13035 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
13036 * ChangeLog: Fix previous ChangeLog entry.
13037
13038 PR rtl-opt/13987
13039 * config.host (use_long_long_for_widest_fast_int): New, default is
13040 off.
13041 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
13042 * configure.ac: If use_long_long_for_widest_fast_int, then
13043 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
13044 * configure: Regenerate.
13045 * config.in: Regenerate.
13046 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
13047 New: widest integer type supported efficiently in hardware for the
13048 host.
13049 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
13050 HOST_BITS_PER_WIDEST_FAST_INT.
13051 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
13052 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
13053 HOST_WIDEST_FAST_INT
13054 instead of HOST_WIDE_INT.
13055 (HARD_REG_SET_LONGS): Likewise.
13056 (UHOST_BITS_PER_WIDE_INT): Likewise.
13057 Change the checks for the fast cases to be based on
13058 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
13059
13060 2004-08-30 Steven Bosscher <stevenb@suse.de>
13061
13062 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
13063 not the pointers.
13064
13065 2004-08-30 Geoffrey Keating <geoffk@apple.com>
13066
13067 PR 12738
13068 PR 17205
13069 Radar 3460526
13070 Radar 3775729
13071 * c-decl.c (grokdeclarator): Produce error for 'static' on local
13072 function declaration.
13073
13074 2004-08-30 Richard Henderson <rth@redhat.com>
13075
13076 * expr.c (array_ref_element_size): Force aligned_size back to
13077 sizetype.
13078 (component_ref_field_offset): Similarly for aligned_offset.
13079 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
13080 low-bound, element-size, field-offset fields rather than
13081 computed values.
13082
13083 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
13084
13085 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
13086 redundant code.
13087
13088 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
13089
13090 * c-tree.h (struct language_function): Add arg_info element.
13091 * c-decl.c (current_function_arg_info): New.
13092 (grokdeclarator, store_parm_decls): Use it instead of
13093 DECL_ARGUMENTS.
13094 (c_push_function_context, c_pop_function_context): Save and
13095 restore it.
13096
13097 2004-08-30 Richard Henderson <rth@redhat.com>
13098
13099 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
13100 COMPONENT_REF to pointer arithmetic.
13101 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
13102 constant "c" as a valid constant initializer. Allow narrowing of
13103 differences against the same base object, for any base object.
13104
13105 2004-08-30 Richard Henderson <rth@redhat.com>
13106
13107 * expr.c (expand_expr_addr_expr): New.
13108 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
13109
13110 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
13111
13112 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
13113 (mips_fp_condition): New enum.
13114 (mips_fp_conditions): New array.
13115 (print_fcc_operand): Delete.
13116 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
13117 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
13118 (builtin_description): Add "cond" field.
13119 (DIRECT_BUILTIN): Initialize it.
13120 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
13121 into INSN and CODE. Initialize the "cond" field.
13122 (CMP_BUILTINS): Update accordingly.
13123 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
13124 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
13125 mips_fp_condition as argument. Make it the final operand of the
13126 comparison instruction.
13127 (mips_expand_builtin): Update accordingly.
13128 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
13129 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
13130 the gaps.
13131 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
13132 Don't use the 'Q' operand prefix; just print the operand normally.
13133 (mips_cabs_*, mips_c_*): Delete, replacing with...
13134 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
13135 patterns. Split the 4s versions into 2 ps patterns after reload.
13136
13137 2004-08-30 Richard Henderson <rth@redhat.com>
13138
13139 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
13140 assuming an ADDR_EXPR is non-null.
13141
13142 2004-08-30 Jason Merrill <jason@redhat.com>
13143
13144 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
13145
13146 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
13147
13148 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
13149 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
13150 gcc_assert and gcc_unreachable instead of abort.
13151 * alloc-pool.c (abort, fancy_abort): Remove.
13152 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
13153 gcc_assert or gcc_unreachable.
13154 * attribs.c (init_attributes, decl_attributes): Likewise.
13155 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
13156 mark_bb_for_unlikely_executed_section,
13157 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
13158 fix_crossing_unconditional_branches): Likewise.
13159 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
13160 bitmap_operation): Likewise.
13161 * bt-load.c (insn_sets_btr_p, augment_live_range,
13162 move_btr_def): Likewise.
13163 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
13164 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
13165 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
13166 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
13167 expand_builtin_memcmp, expand_builtin_args_info,
13168 std_gimplify_va_arg_expr, expand_builtin_unop,
13169 expand_builtin_fputs, expand_builtin_profile_func,
13170 expand_builtin_fork_or_exec, fold_builtin_bitop,
13171 fold_builtin_classify, fold_builtin_fputs): Likewise.
13172
13173 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
13174
13175 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
13176 * gcov.c (abort): Remove undef.
13177
13178 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
13179 (struct tree_binfo): Remove primary field.
13180
13181 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
13182
13183 * fixinc/Makefile.in (machname.h): Remove.
13184 (fixincl.x): Do not pass $@ to genfixes.
13185 * fixinc/genfixes: Remove code to produce machname.h.
13186 * fixinc/fixincl.sh: Move it here instead.
13187 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
13188 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
13189 return a bool indicating whether pz_mn_name_pat is NULL.
13190 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
13191 Declare extern C variables for the ENV_TABLE.
13192 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
13193 instead use the result of mn_get_regexps.
13194 * fixinc/fixtests.c: Likewise.
13195
13196 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
13197
13198 * configure.ac: Do not run fixincludes after stage1 during
13199 toplevel bootstrap.
13200 * configure: Regenerate.
13201
13202 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
13203
13204 * sched-deps.c (get_condition): Partially revert previous, by never
13205 trying to extract the condition from a condjump.
13206
13207 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
13208
13209 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
13210 (handle_visibility_attribute, c_determine_visibility): Likewise.
13211 * c-common.h (my_friendly_assert): Remove.
13212
13213 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
13214
13215 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
13216 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
13217 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
13218 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
13219 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
13220
13221 2004-08-30 Diego Novillo <dnovillo@redhat.com>
13222
13223 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
13224 in COMPONENT_REF nodes.
13225
13226 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
13227
13228 PR c++/15378
13229 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
13230 global_dc->warning_as_error_requested.
13231 * diagnostic.c (diagnostic_initialize): Tidy.
13232 * diagnostic.h (diagnostic_context::x_data): Remove
13233 (diagnostic_context::issue_warnings_are_errors_message): Rename
13234 from warnings_are_errors_message.
13235 (diagnostic_context::warning_as_error_requested): New.
13236
13237 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
13238
13239 * sched-deps.c (get_condition): Fix breakage in previous patch.
13240
13241 2004-08-30 Paul Brook <paul@codesourcery.com>
13242
13243 * doc/install.texi: Fix broken mpfr link.
13244
13245 2004-08-29 David O'Brien <obrien@FreeBSD.org>
13246
13247 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
13248 other FreeBSD platforms.
13249
13250 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
13251
13252 * arm.h (REVERSE_CONDITION): Define.
13253 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
13254
13255 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
13256
13257 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
13258 just the codes, call reversed_comparison_code ().
13259 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
13260 (not_reg_cond): Use reversed_comparison_code.
13261 (and_reg_cond): Likewise.
13262 * ifcvt.c (cond_exec_process_if_block): Likewise.
13263 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
13264
13265 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
13266
13267 * sched-deps.c (get_condition): Rewrite using jump support functions.
13268 Use reversed_comparison_code.
13269 (conditions_mutex_p): Use reversed_comparison_code.
13270
13271 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13272
13273 * config/mips/mips.c (override_options): Disable hot/cold partitioning
13274 for MIPS16.
13275
13276 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13277
13278 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
13279 (mips_function_type): Move to mips.c.
13280 * config/mips/mips.c (mips_builtin_type): New enum.
13281 (builtin_description): Replace code and ftype with builtin_type
13282 and function_type.
13283 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
13284 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
13285 (CODE_FOR_mips_abs_ps): Define.
13286 (mips_bdesc): Use new macros.
13287 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
13288 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
13289 (mips_expand_builtin_direct): New function.
13290 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
13291 builtin. Replace boolean parameter with builtin_type.
13292 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
13293 (mips_expand_4s_compare_builtin): Delete, replacing with...
13294 (mips_expand_builtin_compare): ...this new function.
13295
13296 2004-08-29 Mark Mitchell <mark@codesourcery.com>
13297
13298 PR rtl-optimization/16590
13299 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
13300
13301 2004-08-29 Diego Novillo <dnovillo@redhat.com>
13302
13303 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
13304 * tree-ssa-propagate.c: Fix documentation.
13305
13306 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13307
13308 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
13309 (mov[sd]fcc): Likewise.
13310
13311 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13312
13313 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
13314
13315 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13316
13317 * config/mips/mips.md (divide_condition): New mode attribute.
13318 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
13319 (sqrt[sd]f3): Redefine using SCALARF.
13320 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
13321 patterns.
13322
13323 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13324
13325 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
13326 (loadx, storex, fmt, UNITMODE): New mode attributes.
13327 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
13328 (mul[sd]f3): Redefine using :SCALARF.
13329 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
13330 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
13331 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
13332 Check TARGET_FUSED_MADD for V2SF too.
13333 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
13334 were already named.
13335 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
13336 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
13337
13338 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13339
13340 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
13341 V2SF_type_node if it will be needed.
13342
13343 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13344
13345 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
13346 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
13347 (mips_prepare_builtin_target): New function.
13348 (mips_expand_builtin): Use them. Update calls to subroutines.
13349 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
13350 cmp_choice with a boolean argument to select between movt and movf.
13351 Take the comparison's icode as an argument, not the function's fcode.
13352 (mips_expand_compare_builtin): New function. Rename existing function
13353 to mips_expand_scalar_compare_builtin.
13354 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
13355 (mips_expand_ps_compare_builtin): Use the new functions. Take the
13356 comparison's icode as an argument, not the builtin's fcode.
13357
13358 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13359
13360 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
13361 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
13362 registers are false and -1 if all registers are true.
13363 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
13364 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
13365 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
13366 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
13367 (bc1any2t, bc1any2f): Likewise CCV2.
13368 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
13369
13370 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13371
13372 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
13373 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
13374 UNSPEC rather than an IF_THEN_ELSE.
13375 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
13376 mips_cond_move_tf_ps by name.
13377
13378 2004-08-29 Chao-ying Fu <fu@mips.com>
13379 James E Wilson <wilson@specifixinc.com>
13380
13381 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
13382 8 byte size and alignment. Give CCV4 16 byte size and alignment.
13383 * config/mips/mips-ps-3d.md: New file.
13384 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
13385 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
13386 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
13387 (mips_output_move): Emit "mov.ps" for V2SFmode.
13388 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
13389 MODE_VECTOR_FLOAT.
13390 (override_options): Check if TARGET_MIPS3D and there was an explicit
13391 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
13392 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
13393 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
13394 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
13395 and allow CCV2 and CCV4 to occupy two and four CC registers.
13396 (print_fcc_operand): New function.
13397 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
13398 %Z to call print_fcc_operand.
13399 (mips_function_value): Handle MODE_VECTOR_FLOAT.
13400 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
13401 (mips_vector_mode_supported_p): New function.
13402 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
13403 (builtin_description): New struct.
13404 (mips_bdesc): New array of struct builtin_description.
13405 (mips_expand_builtin, mips_init_builtins,
13406 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
13407 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
13408 functions.
13409 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
13410 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
13411 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
13412 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
13413 "-mips3d", and "-mno-mips3d".
13414 (ASM_SPEC): Map -mips3d to -mips3d in gas.
13415 (EXTRA_CONSTRAINT_Y): New macro.
13416 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
13417 multi-letter constraint 'Y'.
13418 (CONSTRAINT_LEN): New macro.
13419 (enum mips_builtins): New for MIPS builtin functions.
13420 (enum mips_function_type): New for the types of MIPS builtin functions.
13421 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
13422 * config/mips/mips.md: New constants for paired single and MIPS-3D
13423 instructions. Include the new mips-ps-3d.md file.
13424 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
13425 movv2sf_hardfloat_64bit): New named patterns.
13426 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
13427 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
13428 sdxc1_v2sf_di): New unnamed patterns.
13429 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
13430 const_vector support.
13431 (const_0_or_1_operand): New predicate.
13432 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
13433
13434 2004-08-29 Diego Novillo <dnovillo@redhat.com>
13435
13436 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
13437 (tree-ssa-propagate.o): New rule.
13438 (GTFILES): Add tree-ssa-propagate.c.
13439 * tree-flow.h (struct stmt_ann_d): Remove field
13440 in_ccp_worklist.
13441 * tree-ssa-propagate.c: New file.
13442 * tree-ssa-propagate.h: New file.
13443 * tree-ssa-ccp.c: Re-write to use the routines from
13444 tree-ssa-propagate.c.
13445
13446 2004-08-28 Andrew Pinski <apinski@apple.com>
13447
13448 * tree-ssa-loop.c: Remove extra include of basic-block.h.
13449
13450 2004-08-28 Ziemowit Laski <zlaski@apple.com>
13451
13452 * c-common.h: Update comments about ObjC/ObjC++ entry points.
13453 (objc_is_reserved_word): New prototype.
13454 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
13455 separate section; these are call-backs.
13456 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
13457 ObjC/ObjC++ "@" keywords.
13458 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
13459 prototypes; they already live in c-common.h.
13460 * stub-objc.c: Update copyright notice.
13461 (objc_is_reserved_word): New stub.
13462
13463 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
13464
13465 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
13466 even when not checking.
13467
13468 2004-08-27 Jason Merrill <jason@redhat.com>
13469
13470 PR c++/13684
13471 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
13472 (gimple_push_cleanup): Add eh_only parm.
13473 (gimplify_target_expr): Pass it.
13474 * c.opt (-fno-threadsafe-statics): New option.
13475 * c-opts.c (c_common_handle_option): Handle it.
13476 * c-common.h (flag_threadsafe_statics): Declare it.
13477 * c-common.c (flag_threadsafe_statics): Record it.
13478 * doc/invoke.texi: Document it.
13479 * tsystem.h (_GNU_SOURCE): Define.
13480 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
13481 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
13482 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
13483 (__gthread_recursive_mutex_init_function): New fn.
13484 (__gthread_recursive_mutex_lock): New fn.
13485 (__gthread_recursive_mutex_trylock): New fn.
13486 (__gthread_recursive_mutex_unlock): New fn.
13487 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
13488 * gthr-win32.h, gthr-vxworks.h: Likewise.
13489 * gthr.h: Document.
13490
13491 2004-08-27 David Edelsohn <edelsohn@gnu.org>
13492
13493 * config/rs6000/rs6000.c (rs6000_override_options): Increase
13494 maximum skip to 15. Set function alignment, jump alignment, and
13495 loop alignment to 16 for processors that form dispatch groups.
13496 (rs6000_rtx_costs): outer_code is used.
13497
13498 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
13499
13500 * stor-layout.c (sizetype_set): Remove.
13501 (set_sizetype): Don't test or set it.
13502
13503 * tree.h (size_int_type): Remove.
13504 * fold-const.c: Do not #include gt-fold-const.h.
13505 (size_htab_hash, size_htab_eq): Remove.
13506 (size_int_kind): Use build_int_cst.
13507 (new_const, size_htab): Remove.
13508 (size_int_type): Remove.
13509 (round_up): Use build_int_cst.
13510 (round_down): Likewise. Remove spurious constant build.
13511
13512 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
13513
13514 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
13515 Add is_release variable, use it for --enable-werror and
13516 --enable-checking defaults.
13517 * system.h (gcc_assert, gcc_unreachable): New.
13518 * doc/install.texi (--enable-checking): Update.
13519 * configure, config.in: Rebuilt.
13520
13521 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
13522
13523 * rtl.h (read_rtx): Change prototype.
13524 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
13525 line number. Return true on success.
13526 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
13527 callers accordingly.
13528
13529 2004-08-26 Richard Henderson <rth@redhat.com>
13530
13531 * c-typeck.c (build_offsetof): Remove.
13532 * c-tree.h (build_offsetof): Remove.
13533 * c-common.c (fold_offsetof_1, fold_offsetof): New.
13534 * c-common.h (fold_offsetof): Declare.
13535 * c-parse.in (offsetof_base): New.
13536 (offsetof_member_designator): Use it. Build references, not just
13537 a tree list.
13538 (primary): Use fold_offsetof, not build_offsetof.
13539
13540 2004-08-26 Richard Henderson <rth@redhat.com>
13541
13542 * tree.c (staticp): Return the static object.
13543 * tree.h (staticp): Update decl.
13544 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
13545 * langhooks.c (lhd_staticp): Return NULL_TREE.
13546 * langhooks-def.h (lhd_staticp): Update decl.
13547 * c-common.c (c_staticp): Return the static object.
13548 * c-common.h (c_staticp): Update decl.
13549
13550 2004-08-26 Richard Henderson <rth@redhat.com>
13551
13552 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
13553 modes.
13554
13555 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
13556
13557 PR c/13801
13558 * c-decl.c (struct c_binding): Add type and inner_comp fields.
13559 (bind): Set type and inner_comp fields.
13560 (pop_scope): Restore type of decl to the correct type from an
13561 outer scope. Give error when popping file scope for incomplete
13562 arrays completed incompatibly with default initialization in an
13563 inner scope.
13564 (diagnose_mismatched_decls): Handle externs with initializers at
13565 block scope.
13566 (pushdecl): Set type of external declaration at block scope based
13567 only on the visible declarations. Save type when changing the
13568 type of a declaration. Merge an external declaration at block
13569 scope with a visible static declaration at file scope.
13570 (implicitly_declare): Give recycled old declaration the new type
13571 except for incompatible declarations of built-in functions, saving
13572 the old type.
13573
13574 2004-08-26 Ziemowit Laski <zlaski@apple.com>
13575
13576 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
13577
13578 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
13579
13580 * tree-alias-common.c (gate_pta): New function.
13581 (pass_build_pta): Use it.
13582 (pass_del_pta): Use it.
13583 (delete_alias_vars): Don't check flag_tree_points_to.
13584
13585 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
13586
13587 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
13588 TFmode as additional register mode cloberred by call.
13589
13590 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
13591
13592 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
13593 parallel pattern for library call returning DImode in
13594 mixed mode.
13595
13596 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
13597
13598 * config/rs6000/rs6000.c (function_arg): Generate parallel
13599 pattern for more split args.
13600
13601 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
13602
13603 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
13604 either gen_movdi_di_update or gen_movdi_si_update depending on
13605 target mode.
13606 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
13607 to generate two versions.
13608
13609 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
13610
13611 * Makefile.in (lambda-code.o): New.
13612 (lambda-trans.o): Ditto.
13613 (TREE_DATA_REF_H): Ditto.
13614 (LAMBDA_H): Ditto.
13615 (lambda-mat.o): Use LAMBDA_H.
13616 (tree-data-ref.o): Ditto.
13617 * lambda-code.c: New file. Lambda code generation algorithm.
13618 * lambda-trans.c: Ditto. Lambda transformation matrix support.
13619 * lambda.h: Add lambda loop structures.
13620 Add lambda loopnest structures.
13621 Add lambda body vector structure.
13622 Add lambda linear expression structures.
13623 Add prototypes for functions in new files.
13624 * lambda-mat.c: Include tree.h
13625
13626 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
13627 Sebastian Pop <pop@cri.ensmp.fr>
13628
13629 * tree-data-ref.h: Include lambda.h
13630 (free_dependence_relation): Declared here.
13631 (free_dependence_relations): Ditto.
13632 (free_data_refs): Ditto.
13633 * tree-data-ref.c (free_dependence_relation): New function.
13634 (free_dependence_relations): Ditto.
13635 (free_data_refs): Ditot.
13636 (analyze_all_data_dependences): Free datarefs and dependence_relations.
13637 (build_classic_dist_vector): Store in the dependence_relations the
13638 information. Each arc in the dependence_relations graph is labelled
13639 with the distance and direction vectors.
13640 (build_classic_dir_vector): Ditto.
13641 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
13642 Now computes again the whole dependence graph including read-read
13643 relations.
13644 (compute_data_dependences_for_loop): Now dependence_relations contains
13645 all the data, and thus it doesn't need to initialize the classic_dir
13646 and classic_dist vectors.
13647 (analyze_all_data_dependences): Adjusted for using the new interface of
13648 compute_data_dependences_for_loop. Remove the statistics dump.
13649
13650 2004-08-26 Bob Wilson <bob.wilson@acm.org>
13651
13652 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
13653 (xtensa_expand_block_move): Update comment.
13654 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
13655
13656 2004-08026 Richard Earnshaw <rearnsha@arm.com>
13657
13658 PR target/13506
13659 * toplev.c (crash_signal): If we crashed while emitting
13660 a user asm, then die more gracefully.
13661
13662 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
13663
13664 PR target/17119.
13665 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
13666 checking for a valid constant, regardless of sign.
13667
13668 2004-08-25 Richard Henderson <rth@redhat.com>
13669
13670 PR target/16974
13671 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
13672 if the constant satisfies add_operand.
13673
13674 2004-08-25 Richard Henderson <rth@redhat.com>
13675
13676 PR debug/10695
13677 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
13678 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
13679 unwind info for >16-bit frames.
13680
13681 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
13682
13683 PR target/17171
13684 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
13685
13686 2004-08-25 Richard Henderson <rth@redhat.com>
13687
13688 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
13689 (TARGET_CANNOT_FORCE_CONST_MEM): New.
13690
13691 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
13692
13693 * doc/tree-ssa.texi: Document new operand iterator.
13694
13695 2004-08-26 Alan Modra <amodra@bigpond.net.au>
13696
13697 PR target/16480
13698 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
13699 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
13700 as PLUS base regs.
13701
13702 2005-08-28 Paul Brook <paul@codesourcery.com>
13703
13704 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
13705 -mfpu=vfp -march=armv5t
13706 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
13707
13708 2004-08-25 Richard Henderson <rth@redhat.com>
13709
13710 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
13711 * target.h (struct gcc_target): Add scalar_mode_supported_p.
13712 * targhooks.c (default_scalar_mode_supported_p): New.
13713 * targhooks.h (default_scalar_mode_supported_p): Declare.
13714 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
13715
13716 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
13717 before attempting to create types. Tidy.
13718 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
13719
13720 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
13721 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
13722
13723 2004-08-25 Richard Henderson <rth@redhat.com>
13724
13725 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
13726 set REAL_MODE_FORMAT for TFmode.
13727
13728 2004-08-25 Ziemowit Laski <zlaski@apple.com>
13729
13730 * c-decl.c (grokparm): New function.
13731 * c-tree.h (grokparm): New prototype.
13732
13733 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
13734
13735 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
13736 iterator controlling structure.
13737 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
13738 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
13739 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
13740 iterator flags.
13741 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
13742 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
13743 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
13744 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
13745 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
13746 Empty operand pointers.
13747 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
13748 (op_iter_next_use): New. Return next use_operand_p.
13749 (op_iter_next_def): New. Return next def_operand_p.
13750 (op_iter_next_tree): New. Return next operands as a tree.
13751 (op_iter_init): New. Initialize an iterator structure.
13752 (op_iter_init_use): New. Initialize structure and get the first use.
13753 (op_iter_init_def): New. Initialize structure and get the first def.
13754 (op_iter_init_tree): New. Initialize structure and get the first tree.
13755 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
13756 (op_iter_init_maydef): New. Initialize structure and get the first
13757 V_MAY_DEF operands.
13758 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
13759 * tree-dfa.c (compute_immediate_uses_for_stmt,
13760 redirect_immediate_uses): Use new operand iterator.
13761 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
13762 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
13763 operands instead of using *_disappeared_p routines.
13764 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
13765 ssa_rewrite_stmt): Use new operand iterator.
13766 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
13767 rewrite_trees): Use new operand iterator.
13768 * tree-pretty-print.c (dump_vops): Use new operand iterator.
13769 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
13770 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
13771 dump_points_to_info): Use new operand iterator.
13772 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
13773 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
13774 operand iterator.
13775 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
13776 propagate_necessity): Use new operand iterator.
13777 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
13778 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
13779 a parameter instead of a stmt_ann_t.
13780 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
13781 build_tree_conflict_graph): Use new operand iterator.
13782 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
13783 rewrite_mem_refs): Use new operand iterator.
13784 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
13785 check_loop_closed_ssa_use): Use new operand iterator.
13786 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
13787 * tree-ssanames.c (release_defs): Use new operand iterator.
13788 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
13789
13790 2004-08-25 Adam Nemet <anemet@lnxw.com>
13791
13792 * tlink.c (initial_cwd): New variable.
13793 (tlink_init): Initialize it.
13794 (recompile_files): Use tlink_execute() instead of system(). Don't
13795 duplicate verbose output of collect_execute. Restore initial_cwd.
13796 Update comment before the function.
13797
13798 2004-08-25 Ziemowit Laski <zlaski@apple.com>
13799
13800 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
13801 accept) a cast from one Objective-C pointer type to another.
13802
13803 2004-08-25 Paolo Carlini <pcarlini@suse.de>
13804
13805 * doc/install.texi: Document that libstdc++-v3 requires
13806 now automake 1.9.1.
13807
13808 2004-08-25 Caroline Tice <ctice@apple.com>
13809
13810 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
13811 to comments at start of function.
13812 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
13813 comment.
13814 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
13815 merge_blocks_move_predecessor_nojumps,
13816 merge_blocks_move_successor_nojumps, merge_blocks_move,
13817 try_crossjump_to_edge, try_crossjump_bb): Likewise.
13818 * cfglayout.c (fixup_reorder_chain): Likewise.
13819 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
13820 cfg_layout_can_merge_blocks_p): Likewise.
13821 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
13822 * passes.c (rest_of_compilation): Update comments for calling
13823 optimization that partitions hot/cold basic blocks.
13824 * doc/invoke.texi: Update documentation of
13825 freorder-blocks-and-partition flag.
13826
13827 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
13828
13829 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
13830 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
13831
13832 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
13833
13834 * config/mips/mips.md (any_shift): New code macro.
13835 (optab, insn): New code attributes.
13836 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
13837 Use the standard rather than internal patterns for the MIPS16
13838 double-shift optimization.
13839 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
13840 Redefine using :GPR and any_shift.
13841 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
13842 to cover all three shifts.
13843 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
13844 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
13845 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
13846
13847 2004-08-24 Geoffrey Keating <geoffk@apple.com>
13848
13849 * gimplify.c (lookup_tmp_var): Separate temporaries when not
13850 optimizing.
13851
13852 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13853
13854 PR libstdc++/17005 (fix for HP-UX 11.11)
13855 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
13856 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
13857 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
13858 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
13859 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
13860 (LINK_SPEC): Handle march=1.0 option.
13861 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
13862 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
13863 (SUBTARGET_OPTIONS): New define.
13864 (LINK_SPEC): Handle march=1.0 option.
13865 (STARTFILE_SPEC): New define.
13866 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
13867 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
13868 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
13869 (SUBTARGET_OPTIONS): New define.
13870 (LINK_SPEC): Handle march=1.0 option.
13871 (STARTFILE_SPEC): New define.
13872 * config/pa/pa.c (override_options): Add code to process -munix= option.
13873 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
13874 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
13875 defines.
13876 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
13877 (SUBTARGET_OPTIONS): Provide default define.
13878 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
13879 STANDARD_STARTFILE_PREFIX_2): New defines.
13880 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
13881 (ENDFILE_SPEC): Use %O.
13882 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
13883 Mention issue caused by changing namespace and runtime to UNIX 95/98.
13884 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
13885 Document -munix=std option.
13886
13887 2004-08-25 Steven Bosscher <stevenb@suse.de>
13888
13889 * cse.c (cse_around_loop, cse_check_loop_start,
13890 cse_set_around_loop): Remove.
13891 (cse_basic_block): Remove the around_loop argument.
13892 (cse_end_of_basic_block): Remove the after_loop argument.
13893 (cse_main): Likewise.
13894 * rtl.h (cse_main): Update prototype.
13895 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
13896 rest_of_handle_gcse): Update cse_main calls.
13897
13898 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
13899
13900 * tree.h (build_int_cst): New, sign extended constant.
13901 (build_int_cstu): New, zero extended constant.
13902 (build_int_cst_wide): Renamed from build_int_cst.
13903 * tree.c (build_int_cst, build_int_cstu): New.
13904 (build_int_cst_wide): Renamed from build_int_cst.
13905 (make_vector_type, build_common_tree_nodes,
13906 build_common_tree_nodes_2): Adjust build_int_cst calls.
13907 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
13908 expand_builtin_strpbrk, expand_builtin_fputs,
13909 build_string_literal, expand_builtin_printf,
13910 expand_builtin_sprintf, fold_builtin_classify_type,
13911 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
13912 fold_builtin_toascii, fold_builtin_isdigit,
13913 simplify_builtin_strstr, simplify_builtin_strpbrk,
13914 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
13915 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
13916 DEF_ATTR_INT): Likewise.
13917 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
13918 Likewise.
13919 * c-lex.c (interpret_integer, lex_charconst): Likewise.
13920 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
13921 * c-pretty-print.c (pp_c_integer_constant): Likewise.
13922 * c-typeck.c (really_start_incremental_init, push_init_level,
13923 set_nonincremental_init_from_string): Likewise.
13924 * calls.c (load_register_parameters): Likewise.
13925 convert.c (convert_to_pointer): Likewise.
13926 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
13927 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
13928 build_gcov_info): Likewise.
13929 * except.c (init_eh, assign_filter_values): Likewise.
13930 * expmed.c (store_fixed_bit_field, extract_bit_field,
13931 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
13932 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
13933 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
13934 * expr.c (convert_move, emit_group_load, emit_group_store,
13935 expand_assignment, store_constructor, store_field,
13936 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
13937 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
13938 invert_truthvalue, optimize_bit_field_compare,
13939 decode_field_reference, all_ones_mask_p, constant_boolean_node,
13940 fold_div_compare, fold, fold_read_from_constant_string,
13941 fold_negate_const, fold_abs_const, fold_not_const, round_up,
13942 round_down): Likewise.
13943 * function.c (assign_parm_setup_block): Likewise.
13944 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
13945 Likewise.
13946 * stor-layout.c (layout_type, initialize_sizetypes,
13947 set_min_and_max_values_for_integral_type): Likewise.
13948 * tree-chrec.c (chrec_fold_multiply_poly_poly,
13949 reset_evolution_in_loop): Likewise.
13950 * tree-chrec.h (build_polynomial_chrec): Likewise.
13951 * tree-complex.c (build_replicated_const): Likewise.
13952 * tree-eh.c (honor_protect_cleanup_actions,
13953 lower_try_finally_onedest, lower_try_finally_copy,
13954 lower_try_finally_switch): Likewise.
13955 * tree-mudflap.c (mf_build_string, mx_register_decls,
13956 mudflap_register_call, mudflap_enqueue_constant): Likewise.
13957 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
13958 * tree-pretty-print.c (dump_generic_node): Likewise.
13959 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
13960 Likewise.
13961 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
13962 * tree-ssa-loop-niter.c (number_of_iterations_cond,
13963 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
13964 Likewise.
13965 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
13966 canonicalize_loop_induction_variables): Likewise.
13967 * tree-vectorizer.c (vect_create_index_for_array_ref,
13968 vect_transform_loop_bound, vect_compute_data_ref_alignment):
13969 Likewise.
13970
13971 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
13972 alpha_gimplify_va_arg_1): Likewise.
13973 * config/arm/arm.c (arm_get_cookie_size): Likewise.
13974 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
13975 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
13976 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13977 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
13978 mips_gimplify_va_arg_expr): Likewise.
13979 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13980 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
13981 add_compiler_branch_island): Likewise.
13982 * config/s390/s390.c (s390_va_start): Likewise.
13983 * config/sh/sh.c (sh_va_start): Likewise.
13984 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
13985 Likewise.
13986 * config/xtensa/xtensa.c (xtensa_va_start,
13987 xtensa_gimplify_va_arg_expr): Likewise.
13988
13989 * objc/objc-act.c (build_objc_string_object,
13990 build_objc_symtab_template, init_def_list, init_objc_symtab,
13991 init_module_descriptor, generate_static_references,
13992 build_selector_translation_table, get_proto_encoding,
13993 build_typed_selector_reference, build_selector_reference,
13994 build_next_objc_exception_stuff,
13995 build_method_prototype_list_template, generate_descriptor_table,
13996 generate_protocols, build_protocol_initializer,
13997 build_ivar_list_template, build_method_list_template,
13998 build_ivar_list_initializer, generate_ivars_list,
13999 generate_dispatch_table, generate_protocol_list,
14000 build_category_initializer, build_shared_structure_initializer,
14001 generate_shared_structures, handle_impent,
14002 generate_objc_image_info): Likewise.
14003
14004 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
14005
14006 * cfglayout.c (duplicate_insn_chain): Remove references to
14007 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
14008 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
14009 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
14010 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
14011 and NOTE_INSN_LOOP_CONT.
14012 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
14013 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
14014 and NOTE_INSN_LOOP_CONT.
14015 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
14016 check_dbra_loop, loop_dump_aux): Remove references to removed notes
14017 and fields.
14018 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
14019 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
14020 references to removed notes and fields.
14021 (subtract_reg_term, ujump_to_loop_cont): Remove.
14022
14023 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
14024
14025 * doc/install.texi: Document that libcpp does not require
14026 Automake any longer. Document that Automake 1.9.1 should
14027 work everywhere.
14028
14029 2004-08-25 Zack Weinberg <zack@codesourcery.com>
14030
14031 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
14032 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
14033 DWARF_DEBUGGING_INFO from choice-of-definition chain;
14034 restructure using C89 features (#elif, #error).
14035 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
14036 * config/sh/sh.h: Remove references to DWARF_DEBUG.
14037 * doc/invoke.texi: Remove references to DWARF version 1;
14038 clarify why -gdwarf-2<n> doesn't work.
14039
14040 2004-08-25 Zack Weinberg <zack@codesourcery.com>
14041
14042 * basic-block.h (BB_SET_PARTITION): Clear old value first.
14043 * cfg.c (clear_bb_flags): Don't clear partition setting.
14044 * ifcvt.c (find_if_case_1): Remove ??? comment.
14045
14046 2004-08-25 Alan Modra <amodra@bigpond.net.au>
14047
14048 PR target/17052
14049 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
14050 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
14051 current_function_stdarg in place of sysv_varargs_p.
14052 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
14053 sysv_varargs_p.
14054
14055 2004-08-24 Richard Henderson <rth@redhat.com>
14056
14057 PR target/16298
14058 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
14059 random codes within CONST.
14060
14061 2004-08-24 James E Wilson <wilson@specifixinc.com>
14062
14063 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
14064 -freorder-blocks-and-partition.
14065
14066 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14067
14068 PR middle-end/17044
14069 * tree-ssa-threadupdate.c (redirection_data): Make static.
14070 (thread_block): Use ggc_alloc_cleared to allocate struct
14071 redirection_data. Don't free elements in redirection_data.
14072
14073 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14074
14075 * config/mips/predicates.md (small_data_pattern): Match prefetches.
14076
14077 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14078
14079 PR tree-optimization/17016
14080 * tree-ssa-loop-niter.c (number_of_iterations_cond,
14081 number_of_iterations_exit): Use POINTER_TYPE_P instead
14082 of testing for POINTER_TYPE.
14083
14084 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14085
14086 * tree-ssa-loop-ivcanon.c: New file.
14087 * tree-ssa-loop-manip.c (create_iv): New function.
14088 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
14089 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
14090 * cfgloop.c (mark_single_exit_loops): New function.
14091 (verify_loop_structure): Verify single-exit loops.
14092 * cfgloop.h (struct loop): Add single_exit field.
14093 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
14094 (mark_single_exit_loops): Declare.
14095 (tree_num_loop_insns): Declare.
14096 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
14097 (duplicate_loop_to_header_edge): Use it.
14098 * common.opt (fivcanon): New flag.
14099 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
14100 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
14101 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
14102 (bsi_insert_on_edge_immediate): New function.
14103 * tree-flow.h (bsi_insert_on_edge_immediate,
14104 canonicalize_induction_variables, tree_unroll_loops_completely,
14105 create_iv): Declare.
14106 * tree-optimize.c (init_tree_optimization_passes): Add
14107 pass_iv_canon and pass_complete_unroll.
14108 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
14109 * tree-scalar-evolution.c (get_loop_exit_condition,
14110 get_exit_conditions_rec, number_of_iterations_in_loop,
14111 scev_initialize): Use single_exit information.
14112 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
14113 missing assumptions.
14114 (loop_niter_by_eval): Return number of iterations as unsigned
14115 int.
14116 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
14117 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
14118 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
14119 New passes.
14120 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
14121 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
14122 the defining statement is ready.
14123 * tree-vectorizer.c (vect_create_iv_simple): Removed.
14124 (vect_create_index_for_array_ref, vect_transform_loop_bound):
14125 Use create_iv.
14126 (vect_transform_loop_bound): Use single_exit information.
14127 (vect_analyze_loop_form): Cleanup bogus tests.
14128 (vectorize_loops): Do not call flow_loop_scan.
14129 * tree.h (may_negate_without_overflow_p): Declare.
14130 * fold-const.c (may_negate_without_overflow_p): Split out from ...
14131 (negate_expr_p): ... this function.
14132 (tree_expr_nonzero_p): Handle overflowed constants correctly.
14133 * doc/invoke.texi (-fivcanon): Document.
14134 * doc/passes.texi: Document canonical induction variable creation.
14135
14136 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14137
14138 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
14139 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
14140 using the mode of the operand to decide between them.
14141 * config/mips/mips.md (MOVECC): New mode macro.
14142 (ccreg): New mode attribute.
14143 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
14144 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
14145 (mov[sd]icc): Redefine using :GPR.
14146
14147 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14148
14149 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
14150 (mips_prefetch_cookie): New function.
14151 * config/mips/mips.c (print_operand_address): Fix handling of
14152 ADDRESS_CONST_INT.
14153 (mips_emit_prefetch): Delete.
14154 (mips_prefetch_cookie): New function.
14155 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
14156 mode of QImode for the address_operand. Use mips_prefetch_cookie
14157 to calculate the first "pref" operand.
14158 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
14159 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
14160
14161 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
14162
14163 * arm.md: Include predicates.md.
14164 * predicates.md: New file.
14165 * arm.c (s_register_operand, arm_hard_register_operand)
14166 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
14167 (arm_immediate_operand, arm_neg_immediate_operand)
14168 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
14169 (arm_add_operand, arm_addimm_operand, arm_not_operand)
14170 (offsettable_memory_operand, alignable_memory_operand)
14171 (arm_reload_memory_operand, arm_float_rhs_operand)
14172 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
14173 (index_operand, shiftable_operator, logical_binary_operator)
14174 (shift_operator, equality_operator, arm_comparison_operator)
14175 (minmax_operator, cc_register, dominant_cc_register)
14176 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
14177 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
14178 (const_shift_operand, load_multiple_operation)
14179 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
14180 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
14181 (cirrus_register_operand, cirrus_fp_register)
14182 (cirrus_shift_const): Delete, replaced with equivalents in
14183 predicates.md.
14184 (shift_op): Handle ROTATE.
14185 * arm-protos.h: Delete declarations for above.
14186 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
14187 * t-arm (MD_INCLUDES): Add predicates.md.
14188 (s-preds): Depends on MD_INCLUDES.
14189
14190 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14191
14192 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
14193 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
14194 patterns. Redefine using :GPR. Give the match_operator a mode.
14195 Use '%2' rather than '%z2' for operand 2.
14196
14197 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14198
14199 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
14200 attribute.
14201
14202 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14203
14204 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
14205 of internal patterns.
14206 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
14207 Redefine using :P.
14208 (tablejump): Use expand_binop to calculate address. Adjust names
14209 of internal patterns.
14210 (tablejump[sd]i): Renamed from tablejump_internal[12].
14211 Redefine using :P.
14212 (tablejump_mips16[12]): Delete.
14213
14214 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14215
14216 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
14217 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
14218 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
14219 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
14220 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
14221
14222 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14223
14224 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
14225 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
14226 using :GPR.
14227 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
14228 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
14229 (*branch_equality[sd]i_inverted): Likewise
14230 branch_equality{,_di}_inverted.
14231 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
14232 Redefine using :GPR.
14233
14234 2004-08-24 Zack Weinberg <zack@codesourcery.com>
14235
14236 * rtl.def: Reorganize, placing all codes used only in machine
14237 descriptions at the end.
14238
14239 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
14240 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
14241 rtx_name, rtx_format arrays by direct reference to rtl.def,
14242 first undefining GENERATOR_FILE. Define enum insn_note and
14243 note_insn_name array by direct reference to insn-notes.def.
14244 (adjust_field_rtx_def): Remove local definition of rtx_name.
14245 Use symbolic names for insn notes.
14246 * Makefile.in (gengtype.o): Update dependencies.
14247
14248 2004-08-24 Zack Weinberg <zack@codesourcery.com>
14249
14250 * basic-block.h (struct basic_block_def): Reorder fields to
14251 eliminate interior padding. Remove 'partition' field.
14252 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
14253 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
14254 (BB_COPY_PARTITION): New macros.
14255 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
14256 Replace all references to the 'partition' field of a basic
14257 block with new macros.
14258
14259 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
14260 * final.c (final_scan_insn): Don't handle it.
14261 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
14262 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
14263 * sched-rgn.c (sched_is_disabled_for_current_region_p):
14264 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
14265
14266 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
14267
14268 * c-decl.c (c_init_decl_processing): Adjust
14269 build_common_tree_nodes call.
14270 * expmed.c (const_mult_add_overflow_p): Use
14271 build_distinct_type_copy.
14272 * stor-layout.c (early_type_list): Remove.
14273 (layout_type): Don't append to early_type_list.
14274 (initialize_sizetypes): Add signed_p argument.
14275 (set_sizetype): Overwrite the stub type nodes directly.
14276 * tree.c (copy_node_stat): Clear a type's value cache here ...
14277 (build_distinct_type): ... not here.
14278 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
14279 * tree.h (initialize_sizetypes): Add signed_p argument.
14280 (build_common_tree_nodes): Likewise.
14281
14282 * objc/objc-act.c (get_static_reference): Use
14283 build_variant_type_copy.
14284 (get_protocol_reference): Likewise.
14285 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
14286
14287 2004-08-24 Richard Henderson <rth@redhat.com>
14288 Andrew Pinski <apinski@apple.com>
14289
14290 * gimplify.c (gimplify_array_ref_to_plus): Delete.
14291 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
14292 for ARRAY_REF.
14293
14294 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
14295 ARRAY_REF also to get to the STRING_CST.
14296
14297 2004-08-24 Paul Brook <paul@codesourcery.com>
14298
14299 * config/arm/arm.c (arm_override_options): Update error message.
14300 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
14301 TARGET_HARD_FLOAT_ABI.
14302 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
14303 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
14304
14305 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
14306
14307 PR target/17093
14308 * config/m32r.md (movsi_sda): Add SI mode specification to
14309 UNSPEC.
14310
14311 2004-08-24 Nick Clifton <nickc@redhat.com>
14312
14313 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
14314 of seth_add3_operand.
14315
14316 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
14317
14318 * Makefile.in (PROTO_OBJS): Add errors.o.
14319 * protoize.c (fancy_abort): Remove.
14320 * mips-tfile.c (fancy_abort): Add parameters.
14321
14322 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
14323
14324 * doc/trouble.texi (C++ misunderstandings): Fix example code.
14325
14326 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
14327
14328 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
14329 (host-default.o): Add dependency on HOOKS_H.
14330 * config/x-linux: Likewise.
14331 * config/x-solaris: Likewise.
14332 * config/i386/x-mingw32: Likewise.
14333 * config/rs6000/x-darwin: Likewise.
14334
14335 2004-08-23 James E Wilson <wilson@specifixinc.com>
14336
14337 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
14338 DEF_REG_NOTE.
14339
14340 2004-08-23 Mark Mitchell <mark@codesourcery.com>
14341
14342 PR c/14492
14343 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
14344
14345 2004-08-23 Diego Novillo <dnovillo@redhat.com>
14346
14347 * cfg.c (check_bb_profile): Fix typos.
14348 * function.c (assign_parm_is_stack_parm): Likewise.
14349 * tree-nested.c: Likewise.
14350
14351 2004-08-23 Daniel Jacobowitz <dan@debian.org>
14352
14353 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
14354 Remove TYPECODE.
14355 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
14356
14357 2004-08-23 Eric Christopher <echristo@redhat.com>
14358
14359 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
14360 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
14361 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
14362 * target.h: Ditto.
14363 * hooks.h: Include machmode.h.
14364 (hook_bool_mode_false): Declare.
14365 * hooks.c (hook_bool_mode_false): Define.
14366 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
14367 * stor-layout.c (layout_type): Ditto.
14368 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
14369 Define to target macro.
14370 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
14371 * config/arm/arm.c: Ditto. Use.
14372 * config/arm/arm.h: Ditto.
14373 * config/arm/arm-protos.h: Ditto.
14374 * config/i386/i386.c: Ditto.
14375 * config/i386/i386.h: Ditto.
14376 * config/rs6000/rs6000.c: Ditto.
14377 * config/rs6000/rs6000.h: Ditto.
14378 * config/sh/sh.c: Ditto.
14379 * config/sh/sh.h: Ditto.
14380 * config/sh/sh-protos.h: Ditto.
14381 * config/sh/sh.md: Use.
14382 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
14383 to TARGET_VECTOR_MODE_SUPPORTED_P.
14384
14385 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
14386
14387 * Makefile.in (BUILD_ERRORS): Set to build-errors.
14388 (errors.o): New target for host.
14389 (build-errors.o): New target for build.
14390 (genobjs): Replace errors.o with build-errors.
14391 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
14392 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
14393 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
14394 (fix-header.o): Add errors.h
14395 * collect2.c (fancy_abort): Add parameters.
14396 * collect2.h (fancy_abort): Don't declare.
14397 * errors.h (fancy_abort): Don't declare.
14398 * errors.c: Include either bconfig.h or config.h.
14399 (fancy_abort): Trim filename.
14400 * fix-header.c (v_fatal, fatal): Remove.
14401 (progname): Remove definition.
14402 (main): Set progname here.
14403 * gcc.c (fancy_abort): Add parameters.
14404 * gcc.h (fancy_abort): Remove declaration.
14405 * gcov.c (fancy_abort): Remove.
14406 * rtl.h (fancy_abort): Don't declare.
14407 (abort): Don't define.
14408 * tree.h (fancy_abort): Don't declare.
14409 (abort): Don't define.
14410 * system.h (fancy_abort): Declare.
14411 (abort): Define to fancy_abort.
14412 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
14413
14414 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
14415 (usize_type, ubitsizetype): Remove.
14416 * stor-layout.c (set_sizetype): Don't initialize usizetype,
14417 ubitsizetype.
14418 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
14419
14420 * tree.h (build_distinct_type_copy): New.
14421 (build_type_copy): ... here. Rename to ...
14422 (build_variant_type_copy): ... here.
14423 * tree.c (build_qualified_type): Rename build_type_copy call.
14424 (build_distinct_type_copy): New, broken out of ...
14425 (build_type_copy): ... here. Rename to ...
14426 (build_variant_type_copy): ... here. Use
14427 build_distinct_type_copy.
14428 (build_common_tree_nodes_2): Rename build_type_copy call.
14429 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
14430 call.
14431 (handle_packed_attribute, handle_unused_attribute,
14432 handle_transparanet_union_attribute, handle_aligned_attribute,
14433 handle_deprecated_attribute): Likewise.
14434 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
14435 Likewise.
14436 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
14437 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
14438 build_distinct_type_copy.
14439
14440 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14441
14442 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
14443 attribute.
14444
14445 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14446
14447 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
14448 loads and stores.
14449 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
14450 formerly unnamed patterns. Redefine using :P for the address. Remove
14451 explicit length attributes.
14452
14453 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14454
14455 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
14456 New functions.
14457 (single_reachable_address): Use them.
14458 (schedule_sm): Add dump.
14459 (is_call_clobbered_ref): New function.
14460 (determine_lsm_reg): Check whether the reference is call clobbered.
14461 Only work for gimple_reg_type values.
14462
14463 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14464
14465 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
14466 $31 store insns. Redefine using :GPR.
14467
14468 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14469
14470 * config/mips/mips.md (P): New mode macro.
14471 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
14472 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
14473 Add mode attributes.
14474
14475 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14476
14477 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
14478 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
14479 later constants to cover the gap.
14480 (load, store): New mode attributes.
14481 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
14482 Use new unspec constants.
14483
14484 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14485
14486 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
14487 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
14488 to use register_operand rather than uns_arith_operand as the predicate
14489 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
14490 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
14491 Redefine using :GPR. Make same predicate change here. Extend the
14492 commutativity of operands 1 and 2 from the SImode version to the
14493 DImode one.
14494 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
14495 but with no predicate changes.
14496 (*nor[sd]i3): Redefine using :GPR.
14497
14498 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14499
14500 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
14501 noreturn functions.
14502
14503 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14504
14505 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
14506 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
14507 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
14508 rather than "%z2" (with a fake const0_rtx for operand 2).
14509 (ffs[sd]i2): Redefine using :GPR.
14510 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
14511
14512 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14513
14514 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
14515
14516 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14517
14518 * config/mips/mips.md (any_extend): New code macro.
14519 (u, su): New code attributes.
14520 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
14521 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
14522 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
14523 (*{s,u}mul_acc_di): Redefine using any_extend.
14524 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
14525 to reflect real insn names.
14526 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
14527 with an any_extend template.
14528 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
14529 Add '*' to name.
14530
14531 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14532
14533 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
14534 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
14535 (mul[sd]i3_r4000): Redefine using :GPR.
14536 (mulsi3_mult3): Don't check TARGET_MAD separately.
14537 (muldi3_mult3): Moved after mulsi_mult3.
14538
14539 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14540
14541 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
14542 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
14543 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
14544 (TARGET_GAS, TARGET_MIPS_AS): Delete.
14545 (TARGET_GPWORD): Define to true for n32 on IRIX.
14546 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
14547 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
14548 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
14549 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
14550 (MDEBUG_ASM_SPEC): Delete, folding into...
14551 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
14552 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
14553 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
14554 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
14555 to define asm_abi_default_spec.
14556 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
14557 (TARGET_ASM_SELECT_SECTION): Delete.
14558 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
14559 for non-mips16 code, removing previous workaround for SGI assemblers.
14560 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
14561 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
14562 (override_options): Remove !TARGET_GAS and !have_named_sections code.
14563 (print_operand): Fold TARGET_GAS conditionals into asm strings.
14564 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
14565 ASM_STABS_OP and ASM_STABN_OP.
14566 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
14567 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
14568 (mips_output_function_prologue): Remove !TARGET_GAS code.
14569 (mips_select_rtx_section): Remove !have_named_sections code.
14570 (mips_select_section): Delete.
14571 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
14572 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
14573 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
14574 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
14575 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
14576 * config/mips/windiss.h (ASM_SPEC): Likewise.
14577
14578 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14579
14580 * read-rtl.c (map_value, mapping, macro_group): New structures.
14581 (BELLWETHER_CODE): New macro.
14582 (modes, codes, bellwether_codes): New variables.
14583 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
14584 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
14585 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
14586 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
14587 (add_map_value, initialize_macros): New functions.
14588 (def_hash, def_hash_eq_p): Generalize to anything that points to,
14589 or starts with, a char * field.
14590 (find_macro, read_mapping, check_code_macro): New functions.
14591 (read_rtx_1): New, split out from read_rtx. Handle the new
14592 define_{mode,code}_{macro,attr} constructs. Use find_macro
14593 to parse the name of a code or mode. Use BELLWETHER_CODE to
14594 extract the format and to choose a suitable code for rtx_alloc.
14595 Modify recursive invocations to use read_rtx_1.
14596 (read_rtx): Call initialize_macros. Apply code and mode macros
14597 to the rtx returned by read_rtx_1. Cache everything after the
14598 first macro expansion for subsequent read_rtx calls.
14599 * doc/md.texi: Document new .md constructs.
14600 * config/mips/mips.md (GPR): New mode macro.
14601 (d, si8_di5): New mode attributes.
14602 (any_cond): New code macro.
14603 (add[sd]i3): Redefine using :GPR.
14604 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
14605 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
14606 previously unnamed MIPS16 patterns.
14607 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
14608 lines. Don't match (plus (const_int 0) ...).
14609 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
14610 Use a define_split to generate the addition.
14611 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
14612 (subsi3_internal): Delete.
14613 (*subsi3_extended): Renamed from subsi3_internal_2.
14614 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
14615 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
14616 using an any_cond template.
14617
14618 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14619
14620 * read-rtl.c (read_rtx): Tidy use of format_ptr.
14621
14622 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14623
14624 * read-rtl.c (string_obstack): New file-scope variable.
14625 (read_string, read_quoted_string, read_braced_string)
14626 (read_escape): Remove obstack parameter and use string_obstack instead.
14627 (read_rtx): Remove function-local rtl_obstack and initialize
14628 string_obstack instead. Update call to read_string.
14629
14630 2004-08-22 Andrew Pinski <apinski@apple.com>
14631
14632 PR c/15262
14633 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
14634 expression is not constant.
14635 (c_finish_return): Do not go through INDIRECT_REF when looking
14636 for the inner expression of an ADDR_EXPR for warning about.
14637
14638 2004-08-22 Richard Henderson <rth@redhat.com>
14639
14640 PR 17075
14641 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
14642 create new blocks and fall through.
14643 (expand_gimple_basic_block): Update to match.
14644
14645 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
14646
14647 * reload.c (find_reloads_address): Make return value tri-state.
14648 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
14649 (find_reloads): Assume that reloaded addresses match 'o' or
14650 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
14651 returned 1 (not -1). Omit optional reloads for address operands
14652 only if find_reloads_address returned 1 (not -1).
14653
14654 * config/s390/s390.c (legitimize_reload_address): New function.
14655 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
14656 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
14657 legitimize_reload_address.
14658
14659 2004-08-22 Richard Hendersion <rth@redhat.com>
14660
14661 * tree.h (SAVE_EXPR_RESOLVED_P): New.
14662 * gimplify.c (gimplify_save_expr): Use it.
14663 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
14664 on the temporary variable.
14665
14666 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
14667
14668 * fold-const.c (rtl_expr_nonnegative_p): Delete.
14669 * tree.h (rtl_expr_nonnegative_p): Remove.
14670
14671 2004-08-22 Steven Bosscher <stevenb@suse.de>
14672
14673 * config/i386/ppro.md (ppro_complex_insn): Add missing check
14674 for cpu==pentiumpro.
14675
14676 * combine.c (struct reg_stat): Fix comment typo.
14677
14678 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
14679
14680 * c-tree.h (c_sizeof_nowarn): Remove.
14681
14682 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
14683
14684 * c-decl.c (set_array_declarator_type): Rename to
14685 set_array_declarator_inner.
14686 (build_c_parm, build_attrs_declarator, build_function_declarator):
14687 New functions.
14688 (make_pointer_declarator): Call build_attrs_declarator.
14689 * c-tree.h (set_array_declarator_type): Rename to
14690 set_array_declarator_inner.
14691 (build_c_parm, build_attrs_declarator, build_function_declarator):
14692 New prototypes.
14693 * c-parse.in (after_type_declarator,
14694 parm_declarator_starttypename, parm_declarator_nostarttypename,
14695 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
14696 firstparm): Use these functions
14697
14698 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
14699
14700 * c-decl.c (build_array_declarator, set_array_declarator_type,
14701 start_decl, grokdeclarator, grokparms): Change boolean parameters
14702 to type bool.
14703 * c-tree.h (build_array_declarator, set_array_declarator_type,
14704 start_decl): Update prototypes.
14705 * c-decl.c, c-parse.in: All callers changed.
14706
14707 2004-08-21 Mike Stump <mrs@apple.com>
14708
14709 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
14710 (darwin_fix_and_continue): Likewise.
14711 (darwin_fix_and_continue_switch): Likewise.
14712 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
14713 (darwin_fix_and_continue): Likewise.
14714 (darwin_fix_and_continue_switch): Likewise.
14715
14716 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
14717
14718 PR c++/16030
14719 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
14720 Remove, merging into ...
14721 (gen_stdcall_or_fastcall_suffix): New function, returning tree
14722 rather than const char*, and accepting additional parameter.
14723 Don't add suffix to '*'-prefixed symbols or variadic functions.
14724 (i386_pe_encode_section_info): Adjust for call to new function.
14725 Call change_decl_assembler_name.
14726
14727 2004-08-20 Mike Stump <mrs@apple.com>
14728
14729 * config/darwin.c (machopic_indirect_data_reference): Mark
14730 stubs as defined.
14731 * config/386/386.c (darwin_local_data_pic): Add.
14732 (legitimate_constant_p): Reorder so that PLUS handling runs
14733 before darwin_local_data_pic to match the ordering in
14734 legitimate_pic_address_disp_p and so that MINUS runs after
14735 darwin_local_data_pic as otherwise the darwin_local_data_pic
14736 logic can be skipped, which would be very bad.
14737 (legitimate_pic_address_disp_p): Move from from here to
14738 darwin_local_data_pic so it can be reused.
14739
14740 2004-08-21 Alan Modra <amodra@bigpond.net.au>
14741
14742 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
14743 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
14744 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
14745 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
14746 (RS6000_ABI_NAME): Define as "linux".
14747 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
14748 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
14749 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
14750 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
14751 * config/rs6000/rs6000.c (dot_symbols): New global var.
14752 (rs6000_output_function_entry): New function, modified for
14753 !DOT_SYMBOLS..
14754 (print_operand <case 'z'>): ..extracted from here.
14755 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
14756 (rs6000_output_function_epilogue): Likewise.
14757 (rs6000_elf_declare_function_name): Likewise.
14758 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
14759 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
14760 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
14761 * configure: Regenerate.
14762 * config.in: Regenerate.
14763
14764 2004-08-20 Mark Mitchell <mark@codesourcery.com>
14765
14766 * reload.c (find_reloads_address): Fix thinko in previous change.
14767
14768 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
14769 a CONST_INT.
14770
14771 2004-08-20 Jakub Jelinek <jakub@redhat.com>
14772
14773 PR rtl-optimization/17099
14774 * combine.c (force_to_mode): Check if inner_mask has any bits set
14775 outside of GET_MODE (x) instead of op_mode.
14776
14777 2004-08-20 Mark Mitchell <mark@codesourcery.com>
14778
14779 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
14780 fragment.
14781 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
14782 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
14783 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
14784 architecture.
14785 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
14786 configurations.
14787 * config/arm/t-symbian: New file.
14788
14789 2004-08-20 Andrew Pinski <apinski@apple.com>
14790
14791 * regrename.c (kill_value_regno): ANSIfy.
14792
14793 2004-08-20 Dale Johannesen <dalej@apple.com>
14794
14795 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
14796
14797 2004-08-20 Daniel Jacobowitz <dan@debian.org>
14798
14799 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
14800 (kill_value_regno): New function, derived from kill_value.
14801 (kill_value): Update.
14802 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
14803
14804 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
14805
14806 Fix PR tree-optimization/17111
14807 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
14808 of non-value_handles.
14809 (bitmap_set_contains): All constants are in every set.
14810
14811 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
14812
14813 * fold-const.c (round_up, round_down): Use build_int_cst.
14814 Optimize common case.
14815
14816 2004-08-20 Zack Weinberg <zack@codesourcery.com>
14817 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14818
14819 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
14820 one_only_data_section): Rename to som_readonly_data_section,
14821 som_one_only_readonly_data_section and som_one_only_data_section.
14822 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
14823 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
14824 conditional defines.
14825 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
14826 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
14827 string values.
14828 (pa_select_section): Use renamed section functions.
14829 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
14830 SOM_READONLY_DATA_SECTION_FUNCTION,
14831 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
14832 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
14833 Define here ...
14834 * config/pa/som.h: ... not here.
14835 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
14836 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
14837 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
14838 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
14839 (READONLY_DATA_SECTION): Use som_readonly_data_section.
14840
14841 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
14842
14843 * fold-const.c (int_const_binop): Don't generate non-overflowing
14844 size-types specially.
14845 (fold_convert_const): Likewise.
14846
14847 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
14848 clear cache on copied sizetype.
14849
14850 2004-08-20 Ben Elliston <bje@au.ibm.com>
14851
14852 * configure.ac: Don't escape apostrophe in --enable-coverage help.
14853 * configure: Regenerate.
14854
14855 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
14856
14857 PR 5620
14858 * gcc.c (struct stat input_stat): Don't define if
14859 HOST_LACKS_INODE_NUMBERS
14860 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
14861 than stat to determine if temp file is same as input file.
14862 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
14863 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
14864
14865 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
14866
14867 * configure.ac (mips*-*-*): Print an error if not using GAS.
14868 * configure: Regenerated.
14869 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
14870 comments about buggy MIPSpro assemblers.
14871 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
14872 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
14873 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
14874 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
14875 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
14876 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
14877 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
14878 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
14879 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
14880 of more general IRIX 6 definitions.
14881 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
14882 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
14883 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
14884 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
14885 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
14886 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
14887 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
14888 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
14889 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
14890 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
14891 (LINK_SPEC): Move most of definition to iris.h.
14892 (SUBTARGET_LINK_SPEC): New macro.
14893 (IRIX_STARTFILE_SPEC): Fold into...
14894 (STARTFILE_SPEC): ...here.
14895 (IRIX_ENDFILE_SPEC): Fold into...
14896 (ENDFILE_SPEC): ...here.
14897 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
14898 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
14899 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
14900 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
14901 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
14902 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
14903 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
14904 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
14905 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
14906 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
14907 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
14908 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
14909 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
14910 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
14911 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
14912 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
14913 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
14914 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
14915 (TARGET_IRIX6): Define to 1.
14916 (DRIVER_SELF_SPECS): Define.
14917 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
14918 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
14919 (SUBTARGET_LINK_SPEC): New macro.
14920 (IRIX_STARTFILE_SPEC): Fold into...
14921 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
14922 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
14923 (LIB_SPEC, LIBGCC_SPEC): Use them.
14924 (LIB_SPEC): Remove !mabi=* case.
14925 (IRIX_ENDFILE_SPEC): Fold into...
14926 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
14927 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
14928 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
14929 (TARGET_IRIX6): New macro.
14930 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
14931 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
14932 (LABEL_AFTER_LOC): Delete.
14933 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
14934 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
14935 (mips_build_builtin_va_list): Check TARGET_IRIX6.
14936 (override_options): Remove TARGET_SGI_O32_AS-related code.
14937 (irix_output_external_libcall): Make static.
14938 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
14939 LABEL_AFTER_LOC.
14940 (mips_file_start): Tidy guard for ABI sections. Remove use of
14941 ABICALLS_ASM_OP; use .abicalls instead.
14942 (mips_output_aligned_decl_common, mips_declare_object_name)
14943 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
14944 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
14945 .globl foo .text directives.
14946 (irix_asm_named_section_1, irix_asm_named_section)
14947 (irix_section_align_entry, irix_section_align_htab)
14948 (irix_orig_asm_out_file, irix_section_align_entry_eq)
14949 (irix_section_align_entry_hash, irix_asm_output_align)
14950 (irix_file_start, irix_section_align_1, copy_file_data)
14951 (irix_file_end, irix_section_type_flags): Delete.
14952 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
14953 Use standard section syntax. Remove protective "jr $31".
14954 (__gcc_fini): Likewise .gcc_fini.
14955 * config/mips/irix-crtn.asm: Adjust sections accordingly.
14956 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
14957 iris5gas.h.
14958 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
14959 from t-irix-gld.
14960 (EXTRA_MULTILIB_PARTS): Define.
14961 * config/mips/t-iris6: Remove bogus comment.
14962 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
14963 * config/mips/iris5gas.h, config/mips/iris5gld.h,
14964 config/mips/iris6gas.h, config/mips/iris6gld.h,
14965 config/mips/t-iris5-as, config/mips/t-iris5-gas
14966 config/mips/t-irix-gld: Delete.
14967 * config/mips/iris.h: New file.
14968 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
14969
14970 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
14971
14972 * postreload.c (reload_cse_move2add): Allow any condjump, but check
14973 that the implicit set isn't clobbered in the jump insn.
14974
14975 2004-08-19 Mark Mitchell <mark@codesourcery.com>
14976
14977 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
14978 * optabs.c (init_optabs): Don't check it.
14979 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
14980 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
14981
14982 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
14983
14984 * config/s390/s390.md (s390_warn_framesize_string)
14985 (s390_warn_dynamic_string, s390_stack_size_string)
14986 (s390_stack_guard_string): New global string variables.
14987 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
14988 (s390_stack_guard): New global variables.
14989 (override_options): Added checks for the new options.
14990 (s390_emit_prologue): Emit stack check and trap code and perform
14991 compile time stack size checking.
14992
14993 * config/s390/s390.h (TARGET_OPTIONS): Added new options
14994 "warn-framesize", "warn-dynamicstack", "stack-size" and
14995 "stack-guard".
14996
14997 * doc/invoke.texi: Added documentation for the new options.
14998
14999 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
15000
15001 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
15002 to eliminate warning.
15003 (linear_search_fdes): Declare p as unsigned.
15004 (binary_search_mixed_encoding_fdes): Likewise.
15005 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
15006 to eliminate warning.
15007 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
15008 type cast.
15009
15010 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
15011
15012 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
15013 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
15014 instead of one. Check for strictly legitimate address.
15015 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
15016 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
15017
15018 2004-08-19 Eric Christopher <echristo@redhat.com>
15019
15020 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
15021 * langhooks.h (unsave_expr_now): Ditto.
15022 * tree.h (unsave_expr_1): Remove prototype.
15023 (lhd_unsave_expr_now): Rename to unsave_expr_now.
15024 * tree-inline.c (unsave_expr_1): Move here
15025 from tree.c. Make static.
15026 (unsave_expr_now): Rename from lhd_unsave_expr_now.
15027 * tree-sra.c: Fix up for rename.
15028 * tree-ssa-copy.c: Ditto.
15029 * tree-eh.c: Ditto.
15030 * tree.c (unsave_expr_1): Move to tree-inline.c.
15031
15032 2004-08-19 Caroline Tice <ctice@apple.com>
15033
15034 * config/i386/cygming.h (switch_to_section): Fix typo (change
15035 in_unlikely_text_section to in_unlikely_executed_text).
15036
15037 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
15038
15039 * vec.h (VEC_lower_bound): New macro.
15040
15041 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
15042
15043 PR target/16446
15044 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
15045 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
15046 treat each ABI separately. Deal with n32/n64 complex float arguments.
15047 (function_arg): Add associated complex handling here.
15048
15049 2004-08-19 Richard Henderson <rth@redhat.com>
15050
15051 * config/arm/arm.c (arm_gen_load_multiple): Use
15052 adjust_automodify_address. Take base memory and offset instead
15053 of unchanging/struct/scalar bits.
15054 (arm_gen_store_multiple): Likewise.
15055 (arm_gen_movmemqi): Use adjust_automodify_address.
15056 * config/arm/arm-protos.h: Update decls.
15057 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
15058 (store_multiple): Similarly.
15059
15060 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
15061
15062 * regclass.c (globalize_reg): Update call_really_used_regs.
15063
15064 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
15065
15066 * doc/invoke.texi (integer-share-limit): Document.
15067
15068 * tree.h (TYPE_CACHED_VALUES_P): New.
15069 (TYPE_CACHED_VALUES): New.
15070 (TYPE_ORIG_SIZE_TYPE): Adjust.
15071 * tree.def (INTEGER_CST): Update documentation.
15072 * tree.c: Inlcude params.h.
15073 (build_int_cst): Cache small values.
15074 (build_type_copy): Do not copy the value cache.
15075 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
15076 unneeded zeroing.
15077 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
15078 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
15079 cache.
15080 * fold-const.c (force_fit_type): Copy value when setting
15081 overflows.
15082 (int_const_binop): Likewise.
15083 * stor-layout.c: Include params.h
15084 (set_sizetype): Create values cache.
15085 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
15086 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
15087 * params.h (INTEGER_SHARE_LIMIT): New.
15088 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
15089
15090 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
15091
15092 * gimplify.c (gimplify_minimax_expr): Remove.
15093 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
15094
15095 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
15096
15097 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
15098 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
15099
15100 2004-08-19 Mark Mitchell <mark@codesourcery.com>
15101
15102 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
15103
15104 2004-08-18 Andrew Pinski <apinski@apple.com>
15105
15106 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
15107
15108 2004-08-18 Mark Mitchell <mark@codesourcery.com>
15109
15110 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
15111 (__aeabi_ul2f): Likewise.
15112
15113 2004-08-18 Richard Henderson <rth@redhat.com>
15114
15115 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
15116 move to rtl completely.
15117 (struct meminsnbuf, xtensa_emit_block_move): Remove.
15118 (xtensa_find_mode_for_size): Remove.
15119 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
15120 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
15121
15122 2004-08-18 Richard Henderson <rth@redhat.com>
15123
15124 * config/mcore/mcore.c (mode_from_align): Remove DImode.
15125 (block_move_sequence): Rewrite to use adjust_address.
15126 (mcore_expand_block_move): Cleanup logic. Accept only operands.
15127 Return boolean indicating success/failure.
15128 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
15129 * config/mcore/mcore.md (movmemsi): Update to match.
15130
15131 2004-08-18 Mike Stump <mrs@apple.com>
15132
15133 * doc/invoke.texi (-mfix-and-continue): Add support for
15134 fast turn around debugging.
15135 (-ffix-and-continue): Likewise.
15136 (-mindirect-data): Likewise.
15137 (-findirect-data): Likewise.
15138 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
15139 (indirect_data): Likewise.
15140 (machopic_data_defined_p): Likewise.
15141 (machopic_output_indirection): Likewise.
15142 (darwin_encode_section_info): Likewise.
15143 (darwin_fix_and_continue): Likewise.
15144 (darwin_fix_and_continue_switch): Likewise.
15145 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
15146 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
15147 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
15148 (SUBTARGET_OPTIONS): Likewise.
15149 (darwin_fix_and_continue): Likewise.
15150 (darwin_fix_and_continue_switch): Likewise.
15151 (TARGET_FIX_AND_CONTINUE): Likewise.
15152 * config/rs6000.c (rs6000_emit_prologue): Likewise.
15153
15154 2004-08-19 Steven Bosscher <stevenb@suse.de>
15155
15156 * basic-block.h (struct edge_def): Remove crossing_edge.
15157 (EDGE_CROSSING): New define.
15158 (EDGE_ALL_FLAGS): Update.
15159 * bb-reorder.c (find_traces_1_round, better_edge_p,
15160 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
15161 find_jump_block, fix_crossing_conditional_branches,
15162 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
15163 Replace all occurences of crossing_edge with an edge flag check
15164 or set/reset.
15165 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
15166 try_crossjump_bb): Likewise.
15167 * cfglayout.c (fixup_reorder_chain): Likewise.
15168 * cfgrtl.c (force_nonfallthru_and_redirect,
15169 commit_one_edge_insertion): Likewise.
15170
15171 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
15172 * tree-flow.h (compute_dominance_frontiers): Move prototype...
15173 * basic-block.h: ...here.
15174 * tree-cfg.c (compute_dominance_frontiers_1,
15175 compute_dominance_frontiers): Move from here...
15176 * cfganal.c: ...to here. Include timevar.h.
15177
15178 2004-08-18 James E Wilson <wilson@specifixinc.com>
15179
15180 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
15181 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
15182
15183 * config/mips/mips.md (type): Add frdiv.
15184 (divsf3+1, divsf3+2): Change type to frdiv.
15185 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
15186 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
15187
15188 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
15189 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
15190 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
15191 * config/mips/5000.md (r5k_fdiv_single): Likewise.
15192 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
15193 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
15194 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
15195 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
15196 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
15197 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
15198 Likewise.
15199 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
15200
15201 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
15202
15203 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
15204 get regression tester working again.
15205
15206 2004-08-18 Zack Weinberg <zack@codesourcery.com>
15207
15208 * insn-notes.def, reg-notes.def: New files.
15209 * rtl.h: Use them to define enum insn_note and enum reg_note.
15210 * rtl.c: Use them to define note_insn_name and reg_note_name.
15211 * Makefile.in (RTL_BASE_H): Update.
15212
15213 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
15214 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
15215
15216 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
15217
15218 * arm.c (arm_size_rtx_costs): New function.
15219 (arm_override_options): Use it if optimizing for space.
15220
15221 2004-08-18 Richard Henderson <rth@redhat.com>
15222
15223 * emit-rtl.c (gen_const_mem): New.
15224 * rtl.h (gen_const_mem): Declare.
15225 * expr.c (do_tablejump): Use it.
15226 * varasm.c (force_const_mem): Likewise.
15227 * config/darwin.c (machopic_indirect_data_reference): Likewise.
15228 (machopic_legitimize_pic_address): Likewise.
15229 * config/arm/arm.c (legitimize_pic_address): Likewise.
15230 * config/i386/i386.c (legitimize_pic_address): Likewise.
15231 (legitimize_tls_address): Likewise.
15232 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
15233 * config/ia64/ia64.md (load_fptr): Likewise.
15234 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
15235 * config/pa/pa.c (legitimize_pic_address): Likewise.
15236 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
15237 (rs6000_emit_move): Likewise.
15238 * config/s390/s390.c (legitimize_pic_address): Likewise.
15239 (legitimize_tls_address): Likewise.
15240 * config/s390/s390.md (casesi): Likewise.
15241 * config/sh/sh.c (sh_reorg): Likewise.
15242 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
15243 * config/v850/v850.md (casesi): Likewise.
15244
15245 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
15246 * config/sh/sh.c (prepare_move_operands): Remove incorrect
15247 use of MEM_READONLY_P.
15248
15249 2004-08-18 Steven Bosscher <stevenb@suse.de>
15250
15251 * Makefile.in (OBJS-common): Add postreload-gcse.c.
15252 Add new postreload-gcse.o.
15253 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
15254 (lookup_as_function, insert, rehash_using_reg, use_related_value,
15255 equiv_constant): Use SAFE_HASH instead of safe_hash.
15256 (exp_equiv_p): Export. Add for_gcse argument when comparing
15257 for GCSE.
15258 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
15259 find_comparison_args, fold_rtx, cse_insn): Update callers.
15260 (hash_rtx): New function derived from old canon_hash and bits
15261 from gcse.c hash_expr_1.
15262 (canon_hash_string): Rename to hash_rtx_string.
15263 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
15264 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
15265 (cselib_lookup): Update this caller.
15266 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
15267 Make static.
15268 (hash_expr): Call hash_rtx.
15269 (ldst_entry): Likewise.
15270 (expr_equiv_p): Call exp_equiv_p.
15271 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
15272 reg_used_on_edge, reg_set_between_after_reload_p,
15273 reg_used_between_after_reload_p, get_avail_load_store_reg,
15274 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
15275 get_bb_avail_insn, hash_scan_set_after_reload,
15276 compute_hash_table_after_reload,
15277 eliminate_partially_redundant_loads, gcse_after_reload,
15278 get_bb_avail_insn, gcse_after_reload_main): Remove.
15279 * postreload-gcse.c: New file, reincarnating most of the above.
15280 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
15281 (gcse_after_reload_main): Update prototype.
15282 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
15283 * passes.c (rest_of_handle_gcse2): Use it.
15284
15285 2004-08-18 Diego Novillo <dnovillo@redhat.com>
15286
15287 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
15288 (pass_loop_done): Likewise.
15289
15290 2004-08-18 Andrew Pinski <apinski@apple.com>
15291
15292 * config/rs6000/darwin.md: Delete the altivec patterns which are
15293 handled differently now.
15294 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
15295 (macho_correct_pic_di): Likewise.
15296 (call_indirect_nonlocal_darwin64): Likewise.
15297 Delete the save world/saveFP/saveVec patterns.
15298
15299 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
15300 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
15301 * config/rs6000/rs6000.md: Include darwin.md.
15302 (builtin_setjmp_receiver): Add DImode case.
15303 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
15304 Darwin bits.
15305
15306 2004-08-18 Matt Austern <austern@apple.com>
15307
15308 Dead code stripping
15309 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
15310 * darwin.c (darwin_file_end): Mark file as potentially strippable.
15311
15312 2004-08-18 Richard Henderson <rth@redhat.com>
15313
15314 * alias.c (readonly_fields_p): Remove.
15315 (objects_must_conflict_p): Don't call it.
15316 * tree.h (readonly_fields_p): Remove.
15317 * langhooks.h (struct lang_hooks): Remove honor_readonly.
15318 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
15319
15320 2004-08-18 Diego Novillo <dnovillo@redhat.com>
15321
15322 * tree-dfa.c (add_referenced_var): Only global variables are
15323 call-clobbered.
15324 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
15325 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
15326 all pointers dereferenced if the statement dereferences them.
15327 (create_name_tags): Do not create memory tags for pointers
15328 that have PT_ANYTHING set.
15329 Also check if PT_VARS is not empty before creating a name tag.
15330 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
15331 variables that share the same alias set with a pointer that
15332 may point anywhere.
15333 (add_may_alias): Add FIXME comment to remove clobbering
15334 aliased variables and tags.
15335 (replace_may_alias): Likewise.
15336 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
15337 (merge_pointed_to_info): If the original variable has not
15338 points-to information, call set_pt_anything.
15339 (add_pointed_to_var): Do not prevent adding a pointed-to
15340 variable if the pointers is PT_ANYTHING.
15341 If the variable is a global, set PT_GLOBAL_MEM.
15342 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
15343 pointer type only come in PTR+OFFSET flavours.
15344 Always call merge_pointed_to_info on PHI arguments that are
15345 SSA_NAMEs.
15346 (get_nmt_for): Mark call-clobbered tags whose pointer points
15347 to global memory.
15348 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
15349 values.
15350 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
15351 FLAGS.
15352 (add_stmt_operand): Abort if the caller tried to add a killing
15353 definition for a memory tag.
15354 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
15355 unnecessary checks.
15356
15357 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
15358
15359 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
15360 from call_used_regs. Update call_really_used_regs.
15361 (CALL_REALLY_USED_REGISTERS): Define.
15362 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
15363 Replace call_used_regs with call_really_used_regs.
15364 (calc_live_regs, sh_media_register_for_return): Likewise.
15365 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
15366 * sh.md (return_media): Likewise.
15367
15368 2004-08-18 Andrew Pinski <apinski@apple.com>
15369
15370 * config/darwin.c (machopic_legitimize_pic_address): Only set
15371 MEM_READONLY_P in the non TARGET_TOC case.
15372
15373 2004-08-18 Zack Weinberg <zack@codesourcery.com>
15374
15375 * rtl.def (NIL): Delete.
15376 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
15377 Tighten the syntax a little.
15378
15379 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
15380 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
15381 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
15382 * config/i386/predicates.md, config/m32r/m32r.h
15383 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
15384 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
15385 * config/sparc/sparc.h, doc/tm.texi:
15386 Replace all occurrences of NIL with UNKNOWN.
15387
15388 2004-08-18 Zack Weinberg <zack@codesourcery.com>
15389
15390 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
15391 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
15392 sequence inline. Move drop_through_label code into this
15393 block, being the only place it is used. Adjust comments.
15394
15395 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
15396
15397 * config/rs6000/altivec.md: Add new patterns for calls to
15398 save_world/rest_world functions.
15399
15400 * config/rs6000/rs6000-protos.h: (save_world_operation,
15401 restore_world_operation) new declarations.
15402
15403 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
15404 field added.
15405 (rs6000_stack_info): Set world_save_p field.
15406 (save_world_operation): New function.
15407 (restore_world_operation): New function.
15408 (compute_save_world_info): New function.
15409 (rs6000_stack_info): Call compute_save_world_info.
15410 (rs6000_emit_prologue): Check for world_save_p and generate
15411 pattern to call save_world for saving all non-volatile and
15412 special registers.
15413 (rs6000_emit_epilogue): Check for world_save_p and generate
15414 pattern to call rest_world to restore saved registers.
15415
15416 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
15417 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
15418 (rs6000_reg_names): New entries added for save_world_operation and
15419 restore_world_operation.
15420
15421 2004-08-18 Caroline Tice <ctice@apple.com>
15422
15423 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
15424 "-freorder-blocks-and-partition" to the flags used in second
15425 stage of profiledbootstrap.
15426 * bb-reorder.c (push_to_next_round_p): Add new variable,
15427 next_round_is_last; set and use variable to make sure, when
15428 partitioning, that the last trace construction round consists
15429 of all (and only) cold basic blocks.
15430 (rotate_loop): Don't copy blocks that end in a section
15431 crossing jump.
15432 (copy_bb): Correctly initialize "partition" of duplicated bb.
15433 (add_unlikely_executed_notes): Add a comment.
15434 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
15435 to make sure, if function contains hot blocks, that the
15436 successors of ENTRY_BLOCK_PTR are hot; also, only look for
15437 crossing edges if the architecture supports named sections.
15438 (mark_bb_for_unlikely_executed_section): Modify to always
15439 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
15440 the basic block note insn.
15441 (fix_crossing_unconditional_branches): Remove extra space.
15442 (fix_edges_for_rarely_executed_code): Modify to only do
15443 partitioning work if the architecture supports named sections.
15444 (reorder_basic_blocks): Modify to only add
15445 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
15446 supports named sections.
15447 * c-common.c (handle_section_attribute): Initialize new global
15448 variable, user_defined_section_attribute, to true if user has
15449 specified one.
15450 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
15451 forward edges that cross section boundaries.
15452 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
15453 partitioning information if the architecture supports named
15454 sections.
15455 * cfgrtl.c (target.h): Add statement to include this.
15456 (rtl_split_block): Make sure newly created bb gets correct
15457 partition.
15458 (try_redirect_by_replacing_jump): Make sure redirection isn't
15459 attempting to cross section boundaries.
15460 (force_nonfallthru_and_redirect): Only do partition fix up if
15461 architecture supports named sections.
15462 (rtl_split_edge): Make sure newly created bb ends up in
15463 correct partition.
15464 (commit_one_edge_insertion): Remove code that incorrectly
15465 updated basic block partition; Make sure partition fix up only
15466 happens if architecture supports named sections and it's not
15467 already done.
15468 (rtl_verify_flow_info_1): Fix if-condition on test/error
15469 condition that fallthru edges are not allowed to cross section
15470 boundaries.
15471 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
15472 * final.c (final_scan_insn): Remove redundant test from if-statement;
15473 change calls to text_section into calls to function_section; add code
15474 to only to partitioning fix up if architecture supports named
15475 sections.
15476 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
15477 partition.
15478 (if_convert): Add targetm.have_named_sections to test.
15479 * output.h (unlikely_section_label): Extern declaration for new global
15480 variable.
15481 (unlikely_text_section_name): Likewise.
15482 * opts.c (decode_options): If both partitioning and DWARF debugging
15483 are turned on, issue a warning that this doesn't work, and change
15484 partitiong to basic block reordering (without hot/cold partitions).
15485 * passes.c (rest_of_handle_final): Re-set new global variable,
15486 user_defined_section_attribute, to false.
15487 (rest_of_compilation): Change options for calling partitioning
15488 function: Don't call if the user defined the section attribute, and
15489 don't call if DECL_ONE_ONLY is true for the current function.
15490 * predict.c (choose_function_section): Return immediately if we
15491 are doing hot/cold partitioning (i.e. let the basic block partitioning
15492 determine where the function belongs).
15493 * reg-stack.c (emit_swap_insn): Add condition to step over
15494 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
15495 * toplev.c (user_defined_section_attribute): New global variable.
15496 * toplev.h (user_defined_section_attribute): Extern declaration
15497 for new global variable.
15498 * varasm.c (unlikely_section_label): New global variable.
15499 (unlikely_text_section_name): New global variable.
15500 (unlikely_text_section): Add code to initialize
15501 unlikely_text_section_name if necessary; modify to use
15502 unlikely_text_section_name and unlikely_section_label; also to use
15503 named_section properly.
15504 (in_unlikely_text_section): Modify to work correctly with
15505 named_section and to use unlikely_text_section_name.
15506 (named_section): Add code to work properly with cold section.
15507 (function_section): Clean up if-statement.
15508 * config/darwin.c (darwin_asm_named_section): Return to original
15509 code, removing use of SECTION_FORMAT_STRING.
15510 * config/arm/pe.h (switch_to_section): Add case for
15511 in_unlikely_executed_text to switch statement.
15512 * config/i386/cygming.h (switch_to_section): Likewise.
15513 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
15514 (SECTION_FORMAT_STRING): Likewise.
15515 * config/mcore/mcore.h (switch_to_section): Likewise.
15516 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
15517 (SECTION_FORMAT_STRING): Remove.
15518
15519 2004-08-18 Roger Sayle <roger@eyesopen.com>
15520
15521 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
15522 -ffixed-reg safe, by preserving the meanings of zero and one.
15523 (CALL_USED_REGISTERS): Likewise.
15524 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
15525
15526 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
15527
15528 * config/sh/sh.c (split_branches): Check the result of
15529 next_active_insn.
15530 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
15531 Call rtl_register_cfg_hooks.
15532
15533 2004-08-18 Richard Henderson <rth@redhat.com>
15534
15535 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
15536 * alias.c (true_dependence): Update to match new semantics.
15537 (canon_true_dependence, write_dependence_p): Likewise.
15538 (anti_dependence, output_dependence): Update write_dependence_p args.
15539 (unchanging_anti_dependence): Remove.
15540 * calls.c (purge_mem_unchanging_flag): Remove.
15541 (fixup_tail_calls): Don't call it.
15542 (expand_call): Don't add unchanging memory to function usage.
15543 * expr.c (emit_block_move_via_libcall): Likewise.
15544 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
15545 (get_subtarget): Don't use RTX_UNCHANGING_P.
15546 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
15547 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
15548 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
15549 * cse.c (insert): Don't use RTX_UNCHANGING_P.
15550 (cse_insn, canon_hash): Use MEM_READONLY_P.
15551 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
15552 instead of RTX_UNCHANGING_P.
15553 * explow.c (maybe_set_unchanging): Remove.
15554 * expr.h (maybe_set_unchanging): Remove.
15555 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
15556 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
15557 (assign_parm_setup_reg, expand_function_start): Likewise.
15558 * integrate.c (copy_rtx_and_substitute): Likewise.
15559 * ra-rewrite.c (emit_colors): Likewise.
15560 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
15561 (fixup_match_1): Likewise.
15562 * reload1.c (reload, alter_reg): Likewise.
15563 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
15564 not RTX_UNCHANGING_P.
15565 (equiv_init_varies_p): Likewise.
15566 * loop-invariant.c (check_maybe_invariant): Likewise.
15567 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
15568 * loop.c (note_addr_stored): Likewise.
15569 (prescan_loop): Likewise. Don't check function usage for clobbered
15570 unchanging memory.
15571 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
15572 not RTX_UNCHANGING_P.
15573 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
15574 * varasm.c (force_const_mem): Likewise.
15575 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
15576 * web.c (entry_register): Likewise.
15577 * tree-gimple.h (get_base_address): Move decl ...
15578 * tree.h: ... here.
15579 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
15580
15581 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
15582 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
15583 (alpha_set_memflags): Update to match.
15584
15585 * config/darwin.c (machopic_indirect_data_reference): Set
15586 MEM_READONLY_P instead of RTX_UNCHANGING_P.
15587 (machopic_indirect_call_target): Likewise.
15588 (machopic_legitimize_pic_address): Likewise.
15589 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
15590 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
15591 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
15592 * config/frv/frv.md (symGOT2reg): Likewise.
15593 * config/i386/i386.c (legitimize_pic_address,
15594 legitimize_tls_address, ix86_split_to_parts): Likewise.
15595 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
15596 * config/ia64/ia64.md (load_fptr): Likewise.
15597 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
15598 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
15599 * config/mcore/mcore.c (block_move_sequence): Likewise.
15600 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
15601 * config/pa/pa.c (legitimize_pic_address): Likewise.
15602 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
15603 (rs6000_emit_move): Likewise.
15604 * config/s390/s390.c (legitimize_pic_address): Likewise.
15605 (legitimize_tls_address): Likewise.
15606 * config/s390/s390.md (casesi): Likewise.
15607 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
15608 * config/sh/sh.md (symGOT2reg): Likewise.
15609 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
15610 * config/v850/v850.md (casesi): Likewise.
15611
15612 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
15613 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
15614 * config/mips/mips.c (mips_restore_gp): Likewise.
15615 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
15616 * config/sh/sh.c (sh_reorg): Likewise.
15617
15618 2004-08-18 Richard Henderson <rth@redhat.com>
15619
15620 * tree.h (struct tree_decl): Add gimple_formal_temp.
15621 (DECL_GIMPLE_FORMAL_TEMP_P): New.
15622 * gimplify.c (pop_gimplify_context): Clear it.
15623 (lookup_tmp_var): Set it, if is_formal.
15624 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
15625 Use is_gimple_val for VECTOR. Simplify return value.
15626 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
15627 (gimplify_expr): Likewise.
15628 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
15629 is_gimple_tmp_rhs for clarity. Update all callers.
15630 (is_gimple_reg_rhs): Simplify logic.
15631 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
15632 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
15633 (is_gimple_formal_tmp_reg): Similarly.
15634 * tree-gimple.h: Update decls.
15635 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
15636 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
15637 * tree-ssa-live.c (var_union, type_var_init): Likewise.
15638
15639 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
15640
15641 * c4x.c (legitimize_operands): Remove calls to
15642 preserve_subexpressions_p.
15643
15644 2004-08-18 David Edelsohn <edelsohn@gnu.org>
15645
15646 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
15647 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
15648
15649 2004-08-18 Ziemowit Laski <zlaski@apple.com>
15650
15651 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
15652 Objective-C++ extensions.
15653 * gengtype.c (get_file_basename): Match entire subdirectory name
15654 ('cp', 'objc', 'objcp') rather than just its suffix.
15655 (get_base_file_bitmap): Allow for files to belong to more than one
15656 language.
15657 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
15658 used by more than one front-end.
15659
15660 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
15661
15662 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
15663 avoid use of preserve_subexpressions_p.
15664
15665 2004-08-17 Richard Henderson <rth@redhat.com>
15666
15667 PR 17051
15668 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
15669
15670 2004-08-17 DJ Delorie <dj@redhat.com>
15671
15672 * doc/extend.texi: Document new xstormy16 attribute.
15673
15674 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
15675 (xstormy16_splittable_below100_or_register): New.
15676 (combine_bnp): New.
15677 (xstormy16_reorg): New.
15678 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15679
15680 * config/stormy16/stormy16.md (movqi_internal): Make name public.
15681 (movhi_internal): Likewise.
15682 (cbhranchhi): Likewise.
15683 (cbhranchhi_neg): Likewise.
15684 (andhi3): Only allow splittable below100 operands.
15685 (iorhi3): Likewise.
15686 (peephole2): New and/zero_extend->and peephole.
15687 (peephole2): New load/ior/save->set1 peephole.
15688 (peephole2): New load/and/save->clr1 peephole.
15689 (bclrx, bclrx2, bclr7, bclr15): New.
15690 (bsetx, bsetx2, bset7, bset15): New.
15691
15692 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
15693 liberal about acceptable 'B' masks.
15694
15695 * config/stormy16/stormy16-protos.h
15696 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
15697 xstormy16_below100_operand, xstormy16_below100_or_register,
15698 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
15699 (PREDICATE_CODES): Add new predicates.
15700
15701 * config/stormy16/stormy16.c
15702 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
15703 xstormy16_below100_operand, xstormy16_below100_or_register,
15704 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
15705 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
15706 (xstormy16_legitimate_address_p): Allow below100 symbols.
15707 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
15708 (xstormy16_expand_move): Leave below100 operands as-is.
15709 (xstormy16_encode_section_info): Encode below100 symbols.
15710 (xstormy16_strip_name_encoding): New.
15711 (xstormy16_print_operand): Print 'b' as shift mask.
15712 (xstormy16_attribute_table): Add below100 attributes.
15713 (xstormy16_handle_below100_attribute): New.
15714
15715 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
15716 (XSTORMY16_SECTION_FUNCTION): New.
15717 (EXTRA_SECTION_FUNCTIONS): Define using the above.
15718 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15719 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
15720 (ASM_OUTPUT_LABELREF): Define.
15721
15722 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
15723 (movhi_internal): Add below100 support.
15724 (andhi3): Add below100 support.
15725 (iorhi3): Add below100 support.
15726 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
15727
15728 2004-08-17 James E Wilson <wilson@specifixinc.com>
15729
15730 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
15731 of VOIDmode for comparison code mode.
15732 * config/mips/mips.md: For conditional move patterns, use mode of
15733 first compare operand for comparison mode, instead of VOIDmode.
15734
15735 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
15736 normal and -ffast-math code.
15737
15738 2004-08-17 Mark Mitchell <mark@codesourcery.com>
15739
15740 PR c++/15871
15741 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
15742
15743 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
15744
15745 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
15746
15747 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
15748
15749 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
15750 for non Darwin targets.
15751 (*call_value_nonlocal_darwin64): Likewise.
15752
15753 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
15754
15755 * config/rs6000/rs6000.c (rs6000_function_value): Check for
15756 altivec mode for altivec return register.
15757
15758 2004-08-17 David Edelsohn <edelsohn@gnu.org>
15759
15760 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
15761 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
15762 * config/rs6000/rs6000.md: Include darwin.md.
15763 (builtin_setjmp_receiver): Add DImode case.
15764 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
15765 Darwin bits.
15766
15767 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
15768
15769 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
15770 trees.
15771 * tree-vectorizer.h: New File: Same.
15772 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
15773 * common.opt (ftree-vectorize): New flag to enable vectorization.
15774 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
15775 vectorization pass.
15776 * tree-data-ref.h (init_data_ref): Additional argument.
15777 (array_base_name_differ_p): Moved to tree-data-ref.c.
15778 * tree-data-ref.c (array_base_name_differ_p): Revised.
15779 (initialize_data_dependence_relation): Call array_base_name_differ_p
15780 with an extra argument.
15781 (analyze_all_data_dependences): Same.
15782 (init_data_ref): Additional argument is_read to set DR_IS_READ.
15783 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
15784 file.
15785 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
15786 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
15787 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
15788 vectorization pass.
15789 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
15790 (tree_ssa_loop_done): Call scev_finalize.
15791 (tree_vectorize): Define the new vectorization pass.
15792 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
15793 size of the vector they support (until support for multiple vector
15794 sizes is added to the vectorizer).
15795 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
15796 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
15797 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
15798 documentation.
15799
15800 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
15801
15802 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
15803 usage.
15804 (generate_protocol_list, handle_impent): Likewise.
15805
15806 2004-08-17 Roger Sayle <roger@eyesopen.com>
15807
15808 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
15809 ensure that call_used_regs is a superset of both fixed_regs and
15810 call_really_used_regs.
15811
15812 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
15813
15814 PR target/17019
15815 * arm.md (addsi3_cbranch_scratch): Correct case labels.
15816
15817 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
15818
15819 PR middle-end/17036
15820 * fold-const.c (fold): Check for integer operand when
15821 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
15822 Pinski <pinskia@physics.uc.edu>.
15823
15824 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
15825
15826 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
15827 No need to check if in a cross configuration.
15828 * configure: Regenerate.
15829
15830 * calls.c (precompute_register_parameters):
15831 Inline preserve_subexpressions_p ().
15832 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
15833 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
15834 Likewise.
15835 * expr.c (get_subtarget): Likewise.
15836 * rtl.h (preserve_subexpressions_p): Remove.
15837 * stmt.c (preserve_subexpressions_p): Remove.
15838
15839 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
15840 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
15841 Abort on gimplified cases.
15842
15843 2004-08-16 James E Wilson <wilson@specifixinc.com>
15844
15845 * tree.h (VECTOR_FLOAT_TYPE_P): New.
15846 (FLOAT_TYPE_P): Use it.
15847 * c-typeck.c (build_binary_op): After convert calls, check for
15848 check for ERROR_MARK operands.
15849
15850 2004-08-16 Zack Weinberg <zack@codesourcery.com>
15851
15852 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
15853 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
15854 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
15855 (genobjs static pattern rule): Remove %.c dependency.
15856 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
15857 Rename rules; delete commands; fix dependencies.
15858 (mostlyclean): Do not delete temporary source copies.
15859 * configure.ac: Delete all references to BUILD_PREFIX and
15860 BUILD_PREFIX_1.
15861 * configure: Regenerate.
15862
15863 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
15864 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
15865 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
15866 with #ifndef GENERATOR_FILE so that nothing from those headers
15867 is used.
15868
15869 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
15870
15871 2004-08-16 Adam Nemet <anemet@lnxw.com>
15872
15873 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
15874
15875 2004-08-16 Andrew Pinski <apinski@apple.com>
15876
15877 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
15878 extraneous semicolon.
15879
15880 2004-08-16 Devang Patel <dpatel@apple.com>
15881
15882 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
15883 * print-tree.c (print_node): Print DECL_PRESERVE_P.
15884 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
15885 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
15886 * target.h (struct gcc_target): New member, mark_decl_preserved.
15887 * hooks.c (hook_void_charptr): Rename to ...
15888 (hook_void_constcharptr): ... new name.
15889 * hooks.h (hook_void_charptr): Rename to ..
15890 (hook_void_constcharptr): ... new name.
15891 * tree.h (DECL_PRESERVE_P): New #define.
15892 (struct tree_decl): New member, preserve_flag.
15893 * varasm.c (assemble_start_function): Mark decl preserved.
15894 (assemble_variable): Same.
15895 * darwin.c (darwin_mark_decl_preserved): New function.
15896 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
15897 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
15898 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
15899
15900 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
15901
15902 * c-decl.c (grokdeclarator): Allow for function definition where
15903 innermost declarator has attributes.
15904
15905 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
15906
15907 * except.c (get_exception_filter, build_post_landing_pads,
15908 dw2_build_landing_pads): Use target-specific mode for 'filter'.
15909 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
15910 * target.h (eh_return_filter_mode): New field added.
15911 * targhooks.c (default_eh_return_filter_mode): Defined.
15912 * targhooks.h (default_eh_return_filter_mode): Declared.
15913 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
15914
15915 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
15916
15917 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
15918 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
15919 * configure: Regenerate.
15920
15921 2004-08-16 Stan Shebs <shebs@apple.com>
15922
15923 Basic support for 64-bit Darwin.
15924 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
15925 (machopic_legitimize_pic_address): Similarly, plus use Pmode
15926 instead of SImode.
15927 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
15928 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
15929 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
15930 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
15931 (PROCESSOR_DEFAULT64): Define.
15932 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
15933 Darwin.
15934 * config/rs6000/rs6000.md: Include darwin.md.
15935 (builtin_setjmp_receiver): Add DImode case.
15936 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
15937 Darwin.
15938 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
15939 (rs6000_emit_move): Add DImode case to Darwin bits.
15940 (machopic_output_stub): Use .quad if 64-bit.
15941 * invoke.texi: Document -m32 and -m64.
15942
15943 2004-08-16 Janis Johnson <janis187@us.ibm.com>
15944
15945 * doc/extend.texi (AltiVec builtins): Document additional differences
15946 from the Motorola AltiVec PIM.
15947
15948 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
15949
15950 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
15951 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
15952 (struct tree_common): Update public_flag documentation.
15953
15954 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
15955
15956 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15957 Check for artificial variables, not is_gimple_tmp_var.
15958 * tree-ssa-live.c (var_union): Likewise.
15959
15960 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
15961
15962 * calls.c (load_register_parameters): Remove spurious FIXME token.
15963
15964 2004-08-15 Ziemowit Laski <zlaski@apple.com>
15965
15966 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
15967 (c-lang.o): Depend on c-objc-common.h.
15968 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
15969 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
15970 * c-lang.c: Include c-objc-common.h.
15971 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
15972 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
15973 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
15974 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
15975 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
15976 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
15977 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
15978 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
15979 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
15980 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
15981 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
15982 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
15983 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
15984 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
15985 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
15986 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
15987 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
15988 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
15989 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
15990 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
15991 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
15992 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
15993 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
15994 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
15995 Move to c-objc-common.h.
15996 * c-objc-common.c: Include c-objc-common.h.
15997 * c-objc-common.h: New file.
15998
15999 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
16000 Andrew Pinski <pinskia@physics.uc.edu>
16001
16002 PR target/14931
16003 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
16004 style.
16005
16006 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
16007
16008 * tree.h (build_int_cst): New.
16009 (build_int_2): Remove.
16010 * tree.c (build_int_2): Remove.
16011 (build_int_cst): New.
16012 (make_vector_type, build_common_tree_nodes,
16013 build_common_tree_nodes_2): Use build_int_cst.
16014 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
16015 expand_builtin_strpbrk, expand_builtin_fputs,
16016 build_string_literal, expand_builtin_printf,
16017 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
16018 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
16019 fold_builtin_isdigit, simplify_builtin_strstr,
16020 simplify_builtin_strpbrk, fold_builtin_fputs,
16021 simplify_builtin_sprintf): Use build_int_cst.
16022 * c-common.c (start_fname_decls, fix_string_type,
16023 c_common_nodes_and_builtins, c_init_attributes,
16024 shorten_compare): Likewise.
16025 * c-decl.c (complete_array_type,
16026 check_bitfield_type_and_width): Likewise.
16027 * c-lex.c (interpret_integer, lex_charconst): Likewise.
16028 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
16029 * c-pretty-print.c (pp_c_integer_constant): Likewise.
16030 * c-typeck.c (really_start_incremental_init, push_init_level,
16031 set_nonincremental_init_from_string): Likewise.
16032 * calls.c (load_register_parameters): Likewise.
16033 * convert.c (convert_to_pointer): Likewise.
16034 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
16035 build_fn_info_type, build_ctr_info_value, build_gcov_info):
16036 Likewise.
16037 * except.c (init_eh, assign_filter_values, assign_filter_values):
16038 Likewise.
16039 * expmed.c (store_fixed_bit_field, extract_bit_field,
16040 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
16041 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
16042 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
16043 * expr.c (convert_move, emit_group_load, emit_group_store,
16044 expand_assignment, store_constructor, store_field,
16045 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
16046 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
16047 invert_truthvalue, optimize_bit_field_compare,
16048 decode_field_reference, all_ones_mask_p, constant_boolean_node,
16049 fold_div_compare, fold, fold_read_from_constant_string,
16050 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
16051 * function.c (assign_parm_setup_block): Likewise.
16052 * stmt.c (shift_return_value, expand_end_case_type,
16053 estimate_case_costs): Likewise.
16054 * stor-layout.c (layout_type, initialize_sizetypes,
16055 set_min_and_max_values_for_integral_type): Likewise.
16056 * tree-chrec.c (chrec_fold_multiply_poly_poly,
16057 reset_evolution_in_loop): Likewise.
16058 * tree-chrec.h (build_polynomial_chrec): Likewise.
16059 * tree-complex.c (build_replicated_const): Likewise.
16060 * tree-eh.c (honor_protect_cleanup_actions,
16061 lower_try_finally_onedest, lower_try_finally_copy,
16062 lower_try_finally_switch): Likewise.
16063 * tree-mudflap.c (mf_build_string, mx_register_decls,
16064 mudflap_register_call, mudflap_enqueue_constant): Likewise.
16065 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
16066 * tree-pretty-print.c (dump_generic_node): Likewise.
16067 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
16068 Likewise.
16069 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
16070 * tree-ssa-loop-niter.c (number_of_iterations_cond,
16071 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
16072 Likewise.
16073
16074 * config/alpha/alpha.c (alpha_initialize_trampoline,
16075 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
16076 * config/arm/arm.c (arm_get_cookie_size): Likewise.
16077 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
16078 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
16079 * config/i860/i860.c (i860_va_start): Likewise.
16080 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16081 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
16082 mips_gimplify_va_arg_expr): Likewise.
16083 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16084 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
16085 add_compiler_branch_island): Likewise.
16086 * config/s390/s390.c (s390_va_start): Likewise.
16087 * config/sh/sh.c (sh_va_start): Likewise.
16088 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
16089 Likewise.
16090 * config/xtensa/xtensa.c (xtensa_va_start,
16091 xtensa_gimplify_va_arg_expr): Likewise.
16092
16093 * objc/objc-act.c (build_objc_string_object,
16094 build_objc_symtab_template, init_def_list, init_objc_symtab,
16095 init_module_descriptor, generate_static_references,
16096 build_selector_translation_table, get_proto_encoding,
16097 build_typed_selector_reference, build_selector_reference,
16098 build_next_objc_exception_stuff,
16099 build_method_prototype_list_template, generate_descriptor_table,
16100 generate_protocols, build_protocol_initializer,
16101 build_ivar_list_template, build_method_list_template,
16102 build_ivar_list_initializer, generate_ivars_list,
16103 generate_dispatch_table, generate_protocol_list,
16104 build_category_initializer, build_shared_structure_initializer,
16105 generate_shared_structures, handle_impent,
16106 generate_objc_image_info): Use build_int_cst.
16107
16108 2004-08-15 Ben Elliston <bje@au.ibm.com>
16109
16110 * vec.h: Comment improvements.
16111
16112 2004-08-14 Roger Sayle <roger@eyesopen.com>
16113
16114 * c-common.c (shorten_compare, pointer_int_sum,
16115 c_common_truthvalue_conversion, boolean_increment): Replace calls
16116 to build with calls to buildN.
16117 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
16118 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
16119 gimplify_switch_stmt): Likewise.
16120 * c-typeck.c (default_function_array_conversion,
16121 build_component_ref, build_array_ref, build_function_call,
16122 pointer_diff, build_unary_op, build_conditional_expr,
16123 build_compound_expr, build_modify_expr, c_finish_goto_label,
16124 c_finish_goto_ptr, c_finish_return, c_finish_loop,
16125 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
16126 build_binary_op): Likewise.
16127
16128 2004-08-15 Steven Bosscher <stevenb@suse.de>
16129
16130 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
16131
16132 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16133
16134 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
16135 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
16136 * fixinc/fixincl.x: Rebuilt.
16137
16138 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
16139
16140 * config/mips/mips-protos.h (mips_symbolic_constant_p)
16141 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
16142 (mips_small_data_pattern_p): Declare.
16143 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
16144 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
16145 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
16146 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
16147 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
16148 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
16149 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
16150 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
16151 (pc_or_label_operand, call_insn_operand, move_operand)
16152 (consttable_operand, symbolic_operand, general_symbolic_operand)
16153 (global_got_operand, local_got_operand, stack_operand)
16154 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
16155 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
16156 (mips_small_data_pattern_p): Replace previous small_data_pattern
16157 predicate. Turn into a bool () (rtx) function.
16158 * config/mips/predicates.md: New file.
16159 * config/mips/mips.md: Include it. Use the target-independent
16160 comparison_operator instead of cmp_op. Rename trap_cmp_op to
16161 trap_comparison_operator and equality_op to equality_operator.
16162 Replace uses of small_int with the equivalent const_arith_operand.
16163 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
16164 const_float_1_operand to const_1_operand. Rename fcc_register_operand
16165 to fcc_reload_operand.
16166 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
16167
16168 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16169
16170 PR libstdc++/17005 partial fix.
16171 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
16172 except when generating ANSI/C89 code.
16173
16174 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
16175
16176 * c-common.c (shorten_compare): Use force_fit_type directly.
16177
16178 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
16179 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
16180 Dave Korn <dk@artimi.com>
16181
16182 * doc/install.texi (Building): Avoid duplicate reference to GNU
16183 make requirement.
16184 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
16185
16186 2004-08-14 Richard Henderson <rth@redhat.com>
16187
16188 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
16189 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
16190
16191 2004-08-13 Richard Henderson <rth@redhat.com>
16192
16193 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
16194 for constant_call_address_operand.
16195 (call_value_pop_1, call_value_1): Likewise.
16196 (sibcall_value_1, call_value_1_rex64): Likewise.
16197
16198 2004-08-13 James E Wilson <wilson@specifixinc.com>
16199
16200 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
16201 Correct mode from SFmode to DFmode.
16202
16203 2004-08-13 Ziemowit Laski <zlaski@apple.com>
16204
16205 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
16206 __cstring_object and __image_info sections with the no_dead_strip
16207 attribute.
16208
16209 2004-08-13 Roger Sayle <roger@eyesopen.com>
16210 David Billinghurst <David.Billinghurst@riotinto.com>
16211
16212 PR libgfortran/15930
16213 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
16214 * fixinc/fixincl.x: Regenerate.
16215 * fixinc/tests/base/internal/math_core.h: New file.
16216
16217 2004-08-13 Richard Henderson <rth@redhat.com>
16218
16219 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
16220 (dbxout_function_end): Remove ifdefs for it.
16221 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
16222
16223 2004-08-13 Richard Henderson <rth@redhat.com>
16224
16225 * Makefile.in (insn-preds.o): Depend on TREE_H.
16226 * genpreds.c (write_insn_preds_c): Include tree.h.
16227 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
16228 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
16229 const48_operand, and_operand, or_operand, mode_width_operand,
16230 mode_mask_operand, mul8_operand, const0_operand,
16231 hard_fp_register_operand, hard_int_register_operand,
16232 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
16233 samegp_function_operand, direct_call_operand, small_symbolic_operand,
16234 global_symbolic_operand, call_operand, symbolic_operand,
16235 dtp16_symbolic_operand, dtp32_symbolic_operand,
16236 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
16237 gottp_symbolic_operand, alpha_comparison_operator,
16238 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
16239 signed_comparison_operator, alpha_fp_comparison_operator,
16240 divmod_operator, fix_operator, aligned_memory_operand,
16241 unaligned_memory_operand, reg_or_unaligned_mem_operand,
16242 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
16243 reg_no_subreg_operand, addition_operation): Move to predicates.md.
16244 (reg_or_const_int_operand): Remove. Replace all users with
16245 reg_or_cint_operand.
16246 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
16247 (resolve_reload_operand): Split out of aligned_memory_operand.
16248 * config/alpha/alpha-protos.h: Update for exports.
16249 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
16250 * config/alpha/alpha.md: Include predicates.md.
16251 * config/alpha/predicates.md: New file.
16252
16253 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
16254
16255 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
16256 fields with a pointer to the instruction definition.
16257 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
16258 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
16259 (write_attr_case, write_const_num_delay_slots): Update accordingly.
16260 (write_attr_case, write_const_num_delay_slots): Write the name of
16261 an insn next to its case statement.
16262 * genoutput.c (data): Add a filename field.
16263 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
16264 (output_insn_data): Print the location of each insn definition.
16265 * genrecog.c (write_action): Print the name of an insn above
16266 the statement that returns its code.
16267
16268 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
16269
16270 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
16271 * config/libgloss.h: Likewise.
16272 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
16273 * c4x/c4x-modes.def: Likewise.
16274 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
16275 (c4x_rptb_nop_p): Likewise.
16276 (c4x_rptb_valid_p): Likewise.
16277 (c4x_rptb_insert): Likewise.
16278 (c4x_address_conflict): Likewise.
16279 * config/c4x/c4x.md: Likewise.
16280 * config/frv/frv.md: Likewise.
16281 * config/i386/athlon.md: Likewise.
16282 * config/i386/i386.md: Likewise.
16283 * config/i386/predicates.md: Likewise.
16284 * config/ia64/ia64.c: Likewise.
16285 * config/ia64/itanium1.md: Likewise.
16286 * config/ia64/itanium2.md: Likewise.
16287 * config/iq2000/iq2000.md: Likewise.
16288 * config/mcore/mcore.c: Likewise.
16289 * config/mips/mips.c: Likewise.
16290 * config/mips/r3900.h: Likewise.
16291 * config/mips/sb1.md: Likewise.
16292 * config/pa/milli64.S: Likewise.
16293 * config/pa/pa.c: Likewise.
16294 * config/pa/pa.h: Likewise.
16295 * config/rs6000/8540.md: Likewise.
16296
16297 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
16298
16299 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
16300
16301 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
16302
16303 * sh.md (cbranch define_delay) Use cond_delay_slot for
16304 non-anulled condition too.
16305
16306 2004-08-12 David Edelsohn <edelsohn@gnu.org>
16307
16308 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
16309 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16310 any_parallel_operand, lmw_operation, stmw_operation,
16311 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
16312 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
16313 any_parallel_operand.
16314 (return_and_restore_fpregs_{si,di}): Same.
16315
16316 2004-08-12 Zack Weinberg <zack@codesourcery.com>
16317
16318 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
16319 if pred->singleton != PARALLEL, issue a warning and pretend it was.
16320 Also issue a warning for any predicate we don't know about.
16321
16322 2004-08-12 Richard Henderson <rth@redhat.com>
16323
16324 * config/i386/i386.c (internal_label_prefix): Export.
16325 (internal_label_prefix_len, struct ix86_address,
16326 ix86_decompose_address, maybe_get_pool_constant,
16327 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
16328 memory_address_length): Export.
16329 (any_fp_register_operand, fp_register_operand,
16330 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
16331 x86_64_general_operand, x86_64_szext_general_operand,
16332 x86_64_nonmemory_operand, x86_64_movabs_operand,
16333 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
16334 x86_64_zext_immediate_operand, const_int_1_31_operand,
16335 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
16336 tls_symbolic_operand, global_dynamic_symbolic_operand,
16337 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
16338 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
16339 constant_call_address_operand, const0_operand, const1_operand,
16340 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
16341 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
16342 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
16343 general_no_elim_operand, nonmemory_no_elim_operand,
16344 index_register_operand, q_regs_operand, flags_reg_operand,
16345 non_q_regs_operand, zero_extended_scalar_load_operand,
16346 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
16347 ix86_comparison_operator, ix86_carry_flag_operator,
16348 fcmov_comparison_operator, promotable_binary_operator,
16349 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
16350 mult_operator, div_operator, arith_or_logical_operator,
16351 memory_displacement_operand, cmpsi_operand, long_memory_operand,
16352 aligned_operand): Move to predicates.md as define_predicates.
16353 (tls_symbolic_operand_1): Remove.
16354 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
16355 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
16356 (legitimize_address): Merge tls_symbolic_operand contents.
16357 (ix86_expand_move): Likewise.
16358 * config/i386/i386-protos.h: Update for exports.
16359 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
16360 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
16361 * config/i386/i386.md: Include predicates.md.
16362 * config/i386/predicates.md: New file.
16363
16364 2004-08-13 Mark Mitchell <mark@codesourcery.com>
16365
16366 PR c++/16924
16367 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
16368 SYMBOL_REF_DECL.
16369 (i386_pe_mark_dllimport): Likewise.
16370 (i386_pe_encode_section_info): Likewise, when overriding
16371 dllimport attribute.
16372
16373 2004-08-12 Geoffrey Keating <geoffk@apple.com>
16374
16375 * configure.ac: When testing for flex, nm, ar, and bison, check
16376 that they will actually be built.
16377 * configure: Regenerate.
16378
16379 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
16380
16381 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
16382 (MOVE_MAX_PIECES): Define.
16383
16384 2004-08-12 Devang patel <dpatel@apple.com>
16385
16386 * dbxout.c (dbxout_begin_prologue): New function.
16387 (dbx_debug_hooks): Use new begin prologue hook.
16388 (dbxout_function_end): Emit N_ENSYM.
16389 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
16390
16391 2004-08-12 Janis Johnson <janis187@us.ibm.com>
16392
16393 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
16394 argument is float*.
16395
16396 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
16397 for vec_dss.
16398
16399 * doc/extend.texi (AltiVec builtins): Fix description for recent
16400 changes. Update operation list to match current support.
16401
16402 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
16403
16404 * config/s390/s390.c (struct s390_frame_layout): New struct as element
16405 of struct machine_function.
16406 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
16407 changed all uses.
16408 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
16409 changed all uses.
16410 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
16411 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
16412 (s390_frame_area, s390_register_info): New functions.
16413 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
16414 for base register.
16415 (s390_return_addr_rtx, s390_return_address_offset)
16416 (s390_va_start, s390_gimplify_va_arg)
16417 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
16418 layouts.
16419 (s390_frame_info): Functionality partly moved to s390_register_info.
16420 Made adaptions for new stack layout.
16421 (save_gprs, restore_gprs): Changed meaning of second parameter and
16422 adapted all callers.
16423
16424 * config/s390/s390.h (s390_backchain_string): New global variable.
16425 (MASK_BACKCHAIN): Removed definition.
16426 (TARGET_BACKCHAIN): Changed check.
16427 (TARGET_KERNEL_BACKCHAIN): New macro.
16428 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
16429 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
16430 "kernel-backchain".
16431 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
16432
16433 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
16434 as condition. Adjusted for new stack layout.
16435
16436 * doc/invoke.texi: Added documentation for new option
16437 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
16438 "-mno-backchain".
16439
16440 2004-08-12 Paul Brook <paul@codesourcery.com>
16441
16442 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
16443 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
16444
16445 2004-08-12 David Daney <ddaney@avtrex.com>
16446
16447 * java/gcj.texi: Add subsection on signal usage.
16448
16449 2004-08-12 David Edelsohn <edelsohn@gnu.org>
16450
16451 * expr.c (move_by_pieces): Set alignment for move to minimum of
16452 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
16453 alignment, but not less than the original alignment.
16454 (move_by_pieces_ninsns): Same.
16455 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
16456 (store_by_pieces_1): Same.
16457
16458 2004-08-12 Diego Novillo <dnovillo@redhat.com>
16459
16460 PR tree-optimization/16867
16461 * tree.c (is_global_var): New function.
16462 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
16463 Call is_global_var.
16464 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
16465 Update all users.
16466 (is_global_var): Declare.
16467 * tree-dfa.c (dump_variable): Display global and addressable
16468 attributes.
16469 (add_referenced_var): Clarify documentation when marking
16470 variables call-clobbered.
16471 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
16472 instead of needs_to_live_in_memory.
16473 (mark_call_clobbered): If the variable is a tag, mark it
16474 DECL_EXTERNAL.
16475 * tree-gimple.c (is_gimple_reg): Don't check for
16476 TREE_ADDRESSABLE.
16477 (is_gimple_non_addressable): Likewise.
16478 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
16479 needs to be marked call-clobbered.
16480 (setup_pointers_and_addressables): Call is_global_var instead
16481 of needs_to_live_in_memory.
16482 * tree-ssa-dce.c (need_to_preserve_store): Remove.
16483 Update all users with is_global_var.
16484 (mark_stmt_if_obviously_necessary): Fix processing of aliased
16485 stores. Don't check the virtual definitions. Rather, check
16486 whether the store is going into global memory.
16487 (find_obviously_necessary_stmts): Get the symbol from the PHI
16488 result.
16489 * tree-ssa-operands.c (get_call_expr_operands): Do not add
16490 clobbering may-defs if the call does not have side effects.
16491
16492 2004-08-12 Jakub Jelinek <jakub@redhat.com>
16493
16494 PR c++/16276
16495 * output.h (default_function_rodata_section,
16496 default_no_function_rodata_section): New prototypes.
16497 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
16498 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
16499 (TARGET_ASM_OUT): Add it.
16500 * varasm.c (default_function_rodata_section,
16501 default_no_function_rodata_section): New functions.
16502 * final.c (final_scan_insn): Call
16503 targetm.asm_out.function_rodata_section instead of
16504 readonly_data_section.
16505 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
16506 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
16507 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
16508 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
16509 Likewise.
16510 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
16511 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
16512 Likewise.
16513 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
16514 Likewise.
16515 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
16516 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
16517 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
16518
16519 2004-08-12 Paul Brook <paul@codesourcery.com>
16520
16521 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
16522 frame info.
16523 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
16524 DWARF2_UNWIND_INFO.
16525
16526 2004-08-12 Ben Elliston <bje@au.ibm.com>
16527
16528 PR target/16286
16529 * config/rs6000/altivec.h: Change vector to __vector throughout.
16530 (Except for the `vector' macro itself).
16531
16532 2004-08-12 Zack Weinberg <zack@codesourcery.com>
16533
16534 * genpreds.c: Add capability to generate predicate bodies as
16535 well as function prototypes. Write function prototypes for
16536 the generic predicates too.
16537 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
16538 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
16539 (write_match_code, write_predicate_expr, write_one_predicate_function)
16540 (parse_option): New functions.
16541 (output_predicate_decls): Delete.
16542 (main): Read the machine description, process DEFINE_PREDICATE or
16543 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
16544 as appropriate.
16545
16546 * genrecog.c (struct decision_test): Replace index with
16547 struct pred_data pointer.
16548 (next_index): Remove, unused.
16549 (pred_table, preds, special_mode_pred_table): Delete.
16550 (compute_predicate_codes, process_define_predicate): New functions.
16551 (validate_pattern, add_to_sequence, write_switch): Update for
16552 new data structures.
16553 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
16554 Check both error_count and have_error.
16555
16556 * gensupport.c (in_fname, first_predicate): New globals.
16557 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
16558 (predicate_table, last_predicate, old_pred_table)
16559 (old_special_pred_table): New statics.
16560 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
16561 (add_predicate, init_predicate_table): New functions.
16562 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
16563 (init_md_reader_args_cb): Use the global in_fname. No need to zero
16564 it or max_include_len. Call init_predicate_table.
16565 (read_rtx): Run the predicate queue after the attribute queue
16566 but before all the others.
16567 * gensupport.h (in_fname, struct pred_data, first_predicate)
16568 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
16569 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
16570 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
16571 * dummy-conditions.c: Don't include bconfig.h, system.h,
16572 coretypes.h, tm.h, or system.h. Do include stddef.h.
16573 Duplicate declaration of struct c_test from gensupport.h.
16574
16575 * Makefile.in (OBJS-common): Add insn-preds.o.
16576 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
16577 (insn-preds.c, insn-preds.o): New rules.
16578 (s-preds): Also generate insn-preds.c.
16579 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
16580 Update dependencies.
16581 (print-rtl.o, print-rtl1.o): Correct dependencies.
16582
16583 * recog.h: Delete prototypes of predicate functions.
16584
16585 * doc/md.texi (Predicates): New section with complete
16586 documentation of operand/operator predicates. Remove some
16587 incomplete documentation of predicates from other places.
16588 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
16589 PREDICATE_CODES; indicate that both are deprecated in favor
16590 of define_predicate/define_special_predicate.
16591
16592 * config/ia64/ia64.c: All predicate function definitions moved
16593 to ia64.md, except
16594 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
16595 (ia64_expand_load_address, ia64_expand_move):
16596 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
16597
16598 * config/ia64/ia64.md: All predicates now defined here.
16599 (symbolic_operand): Is now a special predicate.
16600
16601 * config/ia64/ia64.h: Declare ia64_section_threshold.
16602 (PREDICATE_CODES): Delete.
16603
16604 2004-08-12 Richard Henderson <rth@redhat.com>
16605
16606 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
16607 * c-semantics.c (add_stmt): Set it.
16608 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
16609 before instantiating a variable sized type.
16610
16611 2004-08-12 Richard Henderson <rth@redhat.com>
16612
16613 * stor-layout.c (round_up, round_down): Move ...
16614 * fold-const.c (round_up, round_down): ... here. Use
16615 multiple_of_p to avoid any arithmetic at all.
16616
16617 2004-08-12 Richard Henderson <rth@redhat.com>
16618
16619 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
16620 (gimplify_init_ctor_preeval_1): New.
16621 (gimplify_init_ctor_preeval): New.
16622 (gimplify_init_ctor_eval): New.
16623 (gimplify_init_constructor): Use them. Always gimplify the LHS
16624 object first.
16625
16626 2004-08-12 Ziemowit Laski <zlaski@apple.com>
16627
16628 (This patch is part of merge of objc-improvements-branch
16629 into mainline.)
16630
16631 * doc/frontends.texi: Mention Objective-C++ in addition to
16632 Objective-C.
16633 * doc/install.texi: Add 'obj-c++' to list of configurable
16634 languages.
16635 * doc/invoke.texi: Rename Objective-C option headings to
16636 indicate they also apply to Objective-C++. List file
16637 extensions for Objective-C++ sources. Mention that
16638 ObjC and ObjC++ compilations may also use C and C++ options,
16639 respectively. Point users to doc/standards.texi for
16640 further info on ObjC and ObjC++.
16641 * doc/sourcebuild.texi: Mention the objcp/ directory and
16642 the Objective-C++ sources it contains.
16643 * doc/standards.texi: Update link to Apple ObjC site;
16644 add link to gcc readings.html WWW doc.
16645
16646 2004-08-12 Alan Modra <amodra@bigpond.net.au>
16647
16648 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
16649 and 2004-07-14 changes.
16650
16651 2004-08-12 Paul Brook <paul@codesourcery.com>
16652
16653 * doc/invoke.texi: Fix typo.
16654
16655 2004-08-11 Devang Patel <dpatel@apple.com>
16656
16657 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
16658 and -no_dead_strip_inits_and_terms.
16659 (LINK_SPEC): Same.
16660 * doc/invoke.texi (Darwin Options): Document -dead_strip and
16661 -no_dead_strip_inits_and_terms.
16662
16663 2004-08-11 Paul Brook <paul@codesourcery.com>
16664
16665 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
16666 (arm_load_pic_register): ... to this.
16667 * config/arm/arm.c (arm_finalize_pic): Rename ...
16668 (arm_load_pic_register): ... to this. Always output insns at the
16669 current location. Load via low reg in thumb mode.
16670 (arm_expand_prologue): Call arm_load_pic_register.
16671 (thumb_expand_prologue): Ditto.
16672 * config/arm/arm.h (FINALIZE_PIC): Remove.
16673 * config/arm/arm.md (builtin_setjmp_receiver): Call
16674 arm_load_pic_register.
16675
16676 2004-08-11 Paul Brook <paul@codesourcery.com>
16677
16678 * arm.c (thumb_force_lr_save): Add prototype.
16679 (thumb_compute_save_reg_mask): New function.
16680 (thumb_find_work_register): New function.
16681 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
16682 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
16683 Don't clobber r3 when removing pretend args.
16684 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
16685 (thumb_output_function_prologue): Use new functions.
16686 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
16687 * arm.h (THUMB_REG_PUSHED_P): Remove.
16688
16689 2004-08-11 James E Wilson <wilson@specifixinc.com>
16690
16691 PR rtl-optimization/16490
16692 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
16693 global_live_at_end for new basic block if already set for other blocks.
16694
16695 2004-08-11 David Edelsohn <edelsohn@gnu.org>
16696
16697 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
16698
16699 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
16700 (mfcr rlwinm rlwinm patterns): Set length to 12.
16701
16702 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
16703
16704 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
16705 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
16706 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
16707 (start_ssa_stmt_operands): Delete.
16708 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
16709 struct stmt_operands_d.
16710 (build_ssa_operands): New extern entry point.
16711 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
16712 building code, replace with create_ssa_artficial_load_stmt().
16713 * tree-ssa-operands.c (struct voperands_d): Delete.
16714 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
16715 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
16716 (free_uses, free_defs, free_vuses, free_v_may_defs,
16717 free_v_must_defs): Remove dealloc parameter.
16718 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
16719 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
16720 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
16721 vector comparisons, ssa_name reuse, and allocations here.
16722 (verify_start_operands): Delete.
16723 (finalize_ssa_stmt_operands): Set new operands by calling finalize
16724 routines.
16725 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
16726 (append_def, append_usei): Simplify to simple accumulation.
16727 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
16728 duplicates and simple accumulation.
16729 (free_ssa_operands): Free vectors in a stmt_operand structure.
16730 (build_ssa_operands): New. Create a new stmt_operand structure from
16731 a stmt and an old set of stmt_operands.
16732 (get_stmt_operands): Simplify and call build_ssa_operands.
16733 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
16734 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
16735 add_call_read_ops): Don't pass prev_vops around anymore.
16736 (note_addressable): Return if no stmt annotation.
16737 (copy_virtual_operands): Access v_may_def operands through a struct.
16738 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
16739 hash tables without treating the stmt as a real stmt.
16740 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
16741 v_may_def def and use through a struct instead of 2 array elements.
16742 (struct v_may_def_optype_d): Use v_may_def_operand_type.
16743 (struct stmt_operands_d): New. Struct for storing all operand vectors.
16744
16745 2004-08-11 Nick Clifton <nickc@redhat.com>
16746
16747 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
16748 this funciton's behaviour. Return true when the current function
16749 has a section attribute and -mlong-calls is in effect.
16750 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
16751 short-call marker when -mlong-calls is in effect and the function
16752 has a section attribute.
16753
16754 2004-08-10 Zack Weinberg <zack@codesourcery.com>
16755
16756 * stmt.c (expand_return): If asked to return the RESULT_DECL,
16757 just call expand_value_return on result_rtl.
16758
16759 2004-08-10 Richard Henderson <rth@redhat.com>
16760
16761 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
16762 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
16763 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
16764 (add_location_or_const_value_attribute): ... not here. Use
16765 loc_descriptor_from_tree if possible.
16766 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
16767 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
16768 values specially.
16769 (loc_descriptor_from_tree): New. Update callers.
16770 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
16771 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
16772 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
16773 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
16774 and BUILT_IN_STACK_RESTORE.
16775 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
16776 * stmt.c (expand_stack_alloc): Remove.
16777 * tree-mudflap.c (mx_register_decls): Don't look for
16778 BUILT_IN_STACK_ALLOC.
16779 * tree-nested.c (convert_local_reference): Likewise.
16780 * tree.h (DECL_VALUE_EXPR): New.
16781
16782 2004-08-10 Richard Henderson <rth@redhat.com>
16783
16784 * stor-layout.c (round_up): Check for 0/1 before dividing.
16785 (round_down): Likewise.
16786
16787 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
16788
16789 2004-08-09 Mark Mitchell <mark@codesourcery.com>
16790
16791 * config.gcc (arm*-*-eabi*): New target.
16792 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
16793 (TARGET_LIB_INT_CMP_BIASED): Likewise.
16794 * expmed.c (expand_divmod): Try a two-valued divmod function as a
16795 last resort.
16796 * gthr.h: Remove bogus tokens at end of #pragma.
16797 * optabs.c (expand_twoval_binop_libfunc): New function.
16798 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
16799 (prepare_float_lib_cmp): Try reversing the condition.
16800 (debug_optab_libfuncs): New function.
16801 * optabs.h (expand_twoval_binop_libfunc): Declare.
16802 * config/arm/arm.c (arm_init_libfuncs): New function.
16803 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
16804 (TARGET_INIT_LIBFUNCS): Define it.
16805 * config/arm/arm.h (TARGET_BPABI): New macro.
16806 * config/arm/arm-protos.h
16807 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
16808 * config/arm/bpabi.S: New file.
16809 * config/arm/bpabi.c: Likewise.
16810 * config/arm/bpabi.h: Likewise.
16811 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
16812 (__aeabi_drsub): Likewise.
16813 (__aeabi_dsub): Likewise.
16814 (__aeabi_dadd): Likewise.
16815 (__aeabi_ui2d): Likewise.
16816 (__aeabi_i2d): Likewise.
16817 (__aeabi_f2d): Likewise.
16818 (__aeabi_dmul): Likewise.
16819 (__aeabi_ddiv): Likewise.
16820 (__aeabi_cdrcmple): Likewise.
16821 (__aeabi_cdcmpeq): Likewise.
16822 (__aeabi_cdcmple): Likewise.
16823 (__aeabi_dcmpeq): Likewise.
16824 (__aeabi_dcmplt): Likewise.
16825 (__aeabi_dcmple): Likewise.
16826 (__aeabi_dcmpge): Likewise.
16827 (__aeabi_dcmpgt): Likewise.
16828 (__aeabi_dcmpun): Likewise.
16829 (__aeabi_d2iz): Likewise.
16830 (__aeabi_d2uiz): Likewise.
16831 (__aeabi_d2f): Likewise.
16832 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
16833 (__aeabi_frsub): Likewise.
16834 (__aeabi_fsub): Likewise.
16835 (__aeabi_fadd): Likewise.
16836 (__aeabi_ui2f): Likewise.
16837 (__aeabi_i2f): Likewise.
16838 (__aeabi_fmul): Likewise.
16839 (__aeabi_fdiv): Likewise.
16840 (__aeabi_cfrcmple): Likewise.
16841 (__aeabi_cfcmpeq): Likewise.
16842 (__aeabi_cfcmple): Likewise.
16843 (__aeabi_fcmpeq): Likewise.
16844 (__aeabi_fcmplt): Likewise.
16845 (__aeabi_fcmple): Likewise.
16846 (__aeabi_fcmpge): Likewise.
16847 (__aeabi_fcmpgt): Likewise.
16848 (__aeabi_fcmpun): Likewise.
16849 (__aeabi_f2iz): Likewise.
16850 (__aeabi_f2uiz): Likewise.
16851 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
16852 (__aeabi_uidivmod): New function or alias.
16853 (__aeabi_idivmod): Likewise.
16854 (__aeabi_idiv0): Likewise.
16855 (__aeabi_ldiv0): Likewise.
16856 (__aeabi_llsr): Likewise.
16857 (__aeabi_lasr): Likewise.
16858 (__aeabi_llsl): Likewise.
16859 (bpabi.S): Include it.
16860 * config/arm/libgcc-bpabi.ver: New file.
16861 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
16862 (LINK_SPEC): Remove.
16863 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
16864 __aeabi_ulcmp.
16865 * config/arm/t-bpabi: New file.
16866 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
16867 (TARGET_LIB_INT_CMP_BIASED): Likewise.
16868
16869 2004-08-10 David Edelsohn <edelsohn@gnu.org>
16870
16871 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
16872 * config/rs6000/rs6000.md (clrmemsi): New pattern.
16873 * config/rs6000/rs6000.c (expand_block_clear): New function.
16874 (expand_block_move): Convert alignment to bits. Use SImode and
16875 HImode for unaligned addresses if not STRICT_ALIGNMENT.
16876
16877 2004-08-10 Caroline Tice <ctice@apple.com>
16878
16879 * varasm.c (unlikely_section_label): New global variable.
16880 (unlikely_text_section_name): New global variable.
16881 (text_section): Remove alignment statement.
16882 (unlikely_text_section): Remove alignment statement; use
16883 unlikely_section_label rather than hard-coded string.
16884 (assemble_start_function): Initialize unlikely_section_label and
16885 unlikely_text_section_name; make sure cold section is properly
16886 aligned at start of function; output unlikely_section_label if
16887 appropriate.
16888
16889 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
16890
16891 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
16892 * config/s390/s390.c (s390_canonicalize_comparison): New function.
16893 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
16894 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
16895 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
16896 ("*tmqi_mem"): Remove SUBREG from pattern.
16897 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
16898 ("*andsi3_cconly"): Likewise.
16899
16900 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
16901
16902 PR target/16909
16903 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
16904
16905 2004-08-10 Janis Johnson <janis187@us.ibm.com>
16906
16907 * doc/sourcebuild.texi (compat testing): Document available test
16908 framework commands. Use the preferred spelling of DejaGnu.
16909
16910 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
16911
16912 * lambda.h: Add matrix type, and prototypes for remainder of
16913 matrix and vector functions.
16914 (lambda_vector_mult_const): New function.
16915 (lambda_vector_negate): Ditto.
16916 (lambda_vector_add): Ditto.
16917 (lambda_vector_add_mc): Ditto.
16918 (lambda_vector_copy): Ditto.
16919 (lambda_vector_zerop): Ditto.
16920 (lambda_vector_equal): Ditto.
16921 (lambda_vector_min_nz): Ditto.
16922 (lambda_vector_first_nz): Ditto.
16923 (lambda_vector_matrix_mult): Ditto.
16924 * lambda-mat.c: New file.
16925 * Makefile.in (lambda-mat.o): New.
16926
16927 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
16928
16929 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
16930 after linking stmt into the program.
16931 (bsi_remove): Don't call modify_stmt.
16932 * tree-complex.c (update_complex_assignment,
16933 expand_complex_comparison): Call modify_stmt after changing the stmt.
16934 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
16935 removing the stmt.
16936 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
16937 the stmt, and only if needed.
16938 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
16939 expression.
16940 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
16941 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
16942 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
16943 (eliminate_redundant_computations): Don't pass an annotation. Call
16944 modify_stmt rather than setting the annotation directly.
16945 (record_equivalences_from_stmt): Remove unused local 'j'.
16946 (cprop_operand): Take a stmt rather than an annotation as a parameter.
16947 Call modify_stmt.
16948 (cprop_into_stmt): Pass stmt rather than annotation.
16949 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
16950 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
16951 modify_stmt.
16952 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
16953
16954 2004-08-10 Jason Merrill <jason@redhat.com>
16955
16956 PR middle-end/16948
16957 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
16958 the RESULT_DECL.
16959
16960 2004-08-10 Geoffrey Keating <geoffk@apple.com>
16961
16962 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
16963 hash function.
16964
16965 2004-08-10 Roger Sayle <roger@eyesopen.com>
16966
16967 * config/mips/mips.md: New reciprocal square root patterns that
16968 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
16969
16970 2004-08-10 Paul Brook <paul@codesourcery.com>
16971
16972 * config/arm/arm-protos.h (arm_set_return_address,
16973 thumb_set_return_address): Add prototypes.
16974 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
16975 * config/arm/arm.c (arm_compute_func_type,
16976 use_return_insn, arm_compute_save_reg0_reg12_mask,
16977 arm_compute_save_reg_mask, arm_output_function_prologue,
16978 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
16979 current_function_calls_eh_return.
16980 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
16981 old eh code.
16982 (arm_set_return_address, thumb_set_return_address): New functions.
16983 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
16984 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
16985 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
16986 (epilogue): Use the stackadj register.
16987 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
16988
16989 2004-08-10 Jakub Jelinek <jakub@redhat.com>
16990
16991 PR target/3144
16992 * expr.c (move_by_pieces_ninsns): Add max_size argument.
16993 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
16994 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
16995 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
16996 but using MOVE_RATIO.
16997 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
16998 (can_store_by_pieces): Change max_size type to unsigned int.
16999 (store_by_pieces_1): Likewise. Pass max_size to
17000 move_by_pieces_ninsns.
17001 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
17002 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
17003 to move_by_pieces_ninsns.
17004 (STORE_BY_PIECES_P): Define.
17005 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
17006 to move_by_pieces_ninsns.
17007 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
17008
17009 * config/i386/i386.h (CLEAR_RATIO): Define.
17010
17011 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
17012
17013 * expr.c (expand_expr_real_1): Add back code that was not dead.
17014
17015 2004-08-09 Andrew Pinski <apinski@apple.com>
17016
17017 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
17018 which is found to be compatible before returning the aliasing set.
17019
17020 2004-08-09 Daniel Jacobowitz <dan@debian.org>
17021
17022 * ggc-zone.c (struct alloc_zone): Add statistics counters.
17023 (always_collect): New flag.
17024 (ggc_alloc_zone_1): Update statistics support. Don't include
17025 overhead in allocated counter.
17026 (sweep_pages): Update allocated counter for large pages. Don'y
17027 include overhead.
17028 (ggc_collect_1): Always collect.
17029 (ggc_collect): Honor always_collect flag. Sum all zones to decide
17030 whether to collect.
17031 (SCALE, LABEL): New macros.
17032 (ggc_print_statistics): Add statistics support.
17033
17034 2004-08-09 Roger Sayle <roger@eyesopen.com>
17035
17036 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
17037 (init_expmed): Fix potential overrun problem with "all.reg".
17038 (expand_sdiv2_pow2): Add an alternate implementation for signed
17039 division, if the target provides a suitable conditional move insn.
17040
17041 2004-08-09 Paul Brook <paul@codesourcery.com>
17042 Richard Henderson <rth@redhat.com>
17043
17044 * unwind-dw2.c (uw_install_context_1): Update target saved stack
17045 pointer.
17046
17047 2004-08-09 Geoffrey Keating <geoffk@apple.com>
17048
17049 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
17050 Check DATA limit only if there's no AS limit. Ignore insanely
17051 low DATA limits.
17052 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
17053 but take care that the AS limit isn't overrun.
17054 * doc/invoke.texi: Update documentation of min-heapsize parameter.
17055
17056 2004-08-09 Jeff Law <law@redhat.com>
17057
17058 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
17059 (tree-ssa-threadupdate.o): Add dependencies.
17060 * tree-ssa-threadupdate.c: New file.
17061 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
17062 (rewrite_vars_out_of_ssa): Remove prototype.
17063 (cleanup_tree_cfg): Returns a bool.
17064 * tree.h (thread_through_all_blocks): Prototype.
17065 * tree-outof-ssa.c (SSANORM_*): Move into here.
17066 (remove_ssa_form): Now static.
17067 (rewrite_vars_out_of_ssa): Kill.
17068 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
17069 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
17070 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
17071 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
17072 anything was changed.
17073 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
17074 from the PHI's annotation rather than the edge associated with
17075 the new argument.
17076 * tree-ssa-dom.c (redirection_edges): Kill.
17077 (redirect_edges_and_update_ssa_graph): Kill.
17078 (tree_ssa_dominator_optimize): Do not reset forwardable flag
17079 for blocks anymore. Do not initialize redirection_edges.
17080 Call thread_through_all_blocks. Simplify code for cleanup
17081 of the CFG and iterating. No longer call cleanup_tree_cfg
17082 outside the iteration loop.
17083 (thread_across_edge): No longer mess with forwardable blocks.
17084
17085 2004-08-09 Zack Weinberg <zack@codesourcery.com>
17086
17087 * explow.c (memory_address): Use memory_address_p.
17088 * recog.c (general_operand): Likewise.
17089 * regrename.c: No need to define REG_OK_STRICT.
17090
17091 2004-08-09 Steven Bosscher <stevenb@suse.de>
17092
17093 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
17094 New timers.
17095 * gcse.c: Include timevar.h.
17096 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
17097 and global_copy_prop_count.
17098 (local_const_prop_count, local_copy_prop_count): New static globals.
17099 (gcse_main): Set the right timevar for each pass.
17100 (cprop_jump): Increment global_const_prop_count when a constant is
17101 propagated. Add "GLOBAL" to dump output.
17102 (cprop_insn): Increment global_const_prop_count when a constant is
17103 propagated, or global_copy_prop_count when a copy is propagated.
17104 (do_local_cprop): Likewise for local_const_prop_count and
17105 local_copy_prop_count.
17106 (one_cprop_pass): Initialize const/cprop counters to zero.
17107 Print out results of local and global const/cprop separately.
17108 (bypass_block): Break over-length line.
17109 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
17110 for bb-reorder.o and tracer.o.
17111
17112 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
17113
17114 * Makefile.in (GTFILES): Remove stmt.c
17115 (stmt.o): Do not depend on gt-stmt.h.
17116 * emit-rtl.c (emit_line_note): Do not call
17117 set_file_and_line_for_stmt.
17118 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
17119 do everything.
17120 * function.c (free_after_parsing): Do not free STMT field.
17121 (allocate_struct_function): Do not call init_stmt_for_function.
17122 (assign_stack_temp_for_type): Do not accept values of keep
17123 other than 0 or 1.
17124 (init_temp_slots): Do not initialize removed variables.
17125 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
17126 and X_VAR_TEMP_SLOT_LEVEL fields.
17127 * rtl.h (set_file_and_line_for_stmt): Remove.
17128 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
17129 struct stmt_status, cond_stack, case_stack, nesting_stack,
17130 nesting_depth, emit_locus, set_file_and_line_for_stmt,
17131 same_case_target_p, init_stmt_for_function, emit_nop,
17132 expand_start_cond, expand_start_elseif, expand_start_else,
17133 expand_elseif, expand_end_cond): Remove.
17134 (preserve_subexpressions_p): Remove references to CFUN->STMT.
17135 (expand_start_case, expand_end_case_type): Remove, merge into...
17136 (expand_case): ... this one, including other bits from
17137 expand_expr_real_1. Inline same_case_target_p. Turn members
17138 of CASE_STACK into local variables.
17139 (emit_case_bit_tests): Inline same_case_target_p.
17140 (add_case_node): Add HEAD argument, return new head of the list,
17141 do not handle default label here.
17142 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
17143 expand_start_elseif, current_nesting_level, expand_start_case,
17144 expand_end_case_type, expand_end_case, add_case_node,
17145 init_stmt_for_function, expand_elseif): Remove prototypes.
17146 (expand_case): Add prototype.
17147
17148 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
17149
17150 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
17151
17152 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
17153
17154 * expr.c (var_rtx): Remove.
17155 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
17156 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
17157 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
17158 Abort.
17159 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
17160 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
17161 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
17162
17163 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
17164 Ayal Zaks <zaks@il.ibm.com>
17165
17166 * common.opt (freschedule-modulo-scheduled-loops): New flag.
17167 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
17168 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
17169 when -freschedule-modulo-scheduled-loops flag is not specified.
17170 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
17171 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
17172 More accurate placing of insn in row of partial schedule.
17173 (ps_insn_find_column): New function.
17174 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
17175 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
17176 (schedule_region): Use sched_is_disabled_for_current_region_p.
17177 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
17178
17179 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
17180
17181 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
17182 change.
17183
17184 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
17185
17186 * config/i386/i386.c (ix86_expand_clrmem): Properly call
17187 gen_strset for 64bit target.
17188
17189 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
17190
17191 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
17192
17193 2004-08-07 Jason Merrill <jason@redhat.com>
17194
17195 Make return in memory explicit.
17196 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
17197 (assign_parm_find_data_types): Remove code for old front end
17198 invisible reference handling.
17199 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
17200 (expand_function_end): Likewise.
17201 * gimplify.c (gimplify_return_expr): Handle a dereferenced
17202 RESULT_DECL.
17203 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
17204 (declare_return_variable): Handle DECL_BY_REFERENCE.
17205 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
17206 (cp_genericize_r): Use convert_from_reference.
17207 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
17208 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
17209
17210 * c-common.c (c_warn_unused_result): Check TREE_USED before
17211 warning about a CALL_EXPR with an unused value.
17212
17213 2004-08-06 Mark Mitchell <mark@codesourcery.com>
17214
17215 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
17216 to the compiler. Use -fshort-wchar by default.
17217
17218 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
17219
17220 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
17221 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
17222 threshhold.
17223 * doc/invoke.texi (param): Document min-crossjump-insns.
17224
17225 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
17226
17227 PR c/13282
17228 * c.opt (Wmissing-field-initializers): New option.
17229 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
17230 * c-typeck.c (pop_init_level): Guard the missing field warning with
17231 warn_missing_field_initializers rather than extra_warnings.
17232 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
17233 some of the explanation from...
17234 (-Wextra): ...here. Say that the missing field warning can be
17235 seperately controlled by -Wmissing-field-initializers.
17236
17237 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
17238
17239 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
17240 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
17241 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
17242 * tree.def (ENTRY_VALUE_EXPR): Remove.
17243
17244 2004-08-06 Jakub Jelinek <jakub@redhat.com>
17245
17246 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
17247 the places where it is actually needed. Don't use repz; stosb
17248 for -Os with sufficiently small constant sizes.
17249 For sufficiently small repz; stos{l,q} repeat counts use a sequence
17250 of stos{l,q} instructions instead.
17251
17252 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17253
17254 PR tree-optimization/16807
17255 * loop-iv.c (dump_iv_info): Dump invariants correctly.
17256 (iv_subreg, iv_extend): Express value of invariant purely in
17257 base field.
17258
17259 2004-08-06 Mark Mitchell <mark@codesourcery.com>
17260
17261 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
17262 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
17263
17264 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
17265
17266 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
17267 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
17268 pre_dec_operand.
17269 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
17270 pattern until reload is finished to allow better code generation
17271 and split them completely into separate instrunctions.
17272 (*andsi3_split): New pattern.
17273
17274 2004-08-05 Mark Mitchell <mark@codesourcery.com>
17275
17276 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
17277 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
17278 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
17279 * tree.h (handle_dll_attribute): Declare. Test
17280 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
17281 * c-common.h (c_determine_visibility): Declare.
17282 * c-common.c (c_determine_visibility): New function.
17283 * c-decl.c (finish_decl): Use it.
17284 (finish_function): Likewise.
17285 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
17286 zero, by default. Use #if, not #ifdef, to test it.
17287 * config/arm/arm.c (arm_attribute_table): Use
17288 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
17289 #if.
17290 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
17291 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
17292 to 1.
17293 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
17294 * config/i386/i386.c (ix86_attribute_table): Use
17295 handle_dll_attribute for dllimport/dllexport. Test
17296 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
17297 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
17298 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
17299 it to 1.
17300 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
17301 with #if.
17302 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
17303 it to 1.
17304 * doc/extend.texi (dllexport): Clarify and correct documentation.
17305 (dllimport): Likewise.
17306 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
17307 handle_dll_attribute.
17308
17309 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17310
17311 * tree-ssa-loop-manip.c: New file.
17312 * Makefile.in (tree-ssa-loop-manip.o): Add.
17313 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
17314 Declare.
17315 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
17316 form.
17317 (tree_ssa_loop_done): Verify loop closed ssa form.
17318 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
17319
17320 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17321
17322 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
17323 pa_asm_output_aligned_local): New functions.
17324 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
17325 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
17326 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
17327 pa_asm_output_aligned_common.
17328 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
17329 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
17330 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
17331 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
17332 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
17333 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
17334 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
17335 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
17336 common data.
17337
17338 2004-08-05 Andrew Pinski <apinski@apple.com>
17339
17340 * objc/objc-act.c (build_objc_string_object): Mark the address
17341 expression as constant.
17342
17343 2004-08-05 David Edelsohn <edelsohn@gnu.org>
17344
17345 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
17346 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
17347 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
17348
17349 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
17350
17351 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
17352 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
17353 out, and associated obsolete comments.
17354
17355 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
17356
17357 * tree.h (force_fit_type): Return a tree, take three flags.
17358 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
17359 TREE_CONSTANT_OVERFLOW here.
17360 (int_const_binop, const_binop): Adjust.
17361 (size_int_type): Do sign extension here.
17362 (fold_convert_const, optimize_bit_field_compare,
17363 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
17364 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
17365 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
17366
17367 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17368
17369 PR tree-optimization/16864
17370 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
17371 for ssa names without default_def.
17372
17373 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
17374
17375 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
17376 frame pointer, restore eax with an ebp-relative address.
17377
17378 2004-08-04 Geoffrey Keating <geoffk@apple.com>
17379
17380 PR 14516
17381 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
17382 * c-common.h (make_rtl_for_local_static): Delete.
17383 * c-decl.c (shadow_tag_warned): Clean up comment.
17384 (finish_decl): Clean up spacing. Use set_user_assembler_name when
17385 appropriate. Don't pass asmspec to rest_of_decl_compilation.
17386 * c-semantics.c (make_rtl_for_local_static): Delete.
17387 * expr.c (init_block_move_fn): Use set_user_assembler_name.
17388 (init_block_clear_fn): Likewise.
17389 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
17390 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
17391 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
17392 * tree.h (make_decl_rtl): Remove second parameter.
17393 (set_user_assembler_name): New.
17394 * varasm.c (set_user_assembler_name): New.
17395 (make_decl_rtl): Remove second parameter. Update callers in many
17396 files.
17397
17398 2004-08-05 Adam Nemet <anemet@lnxw.com>
17399
17400 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
17401 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
17402 to LynxOS 4.0.
17403 * gthr-lynx.h: New file.
17404 * config/lynx-ng.h: Remove file.
17405 * config/lynx.h: Update to LynxOS 4.0.
17406 * config/t-lynx: New file.
17407 * config/i386/lynx-ng.h: Remove file.
17408 * config/i386/lynx.h: Update to LynxOS 4.0.
17409 * config/rs6000/lynxbase.h: Remove file.
17410 * config/rs6000/lynx.h: Update to LynxOS 4.0.
17411 * config/rs6000/t-lynx: New file.
17412 * doc/install.texi (Options specification): Remove reference to
17413 LynxOS from systems where --with-gnu-as makes a difference.
17414
17415 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
17416
17417 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
17418 __UINTMAX_TYPE__.
17419 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
17420 __INTMAX_MAX__.
17421 (c_cpp_builtins): Call it.
17422 * doc/cpp.texi: Update.
17423
17424 2004-08-04 David Edelsohn <edelsohn@gnu.org>
17425
17426 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
17427 cost.
17428
17429 2004-08-04 Jan Hubicka <jh@suse.cz>
17430
17431 * basic-block.h (profile_staus): New global variable.
17432 * cfg.c (profile_status): Declare.
17433 (check_bb_profile): Break out from ....; use profile_status
17434 (dump_flow_info): ... here.
17435 * cfgbuild.c (find_basic_blocks): Set profile_status.
17436 * cfgexpand.c (tree_expand_cfg): Likewise.
17437 * predict.c (estimate_probability): Likewise.
17438 * profile.c (branch_prob): Likewise.
17439 * tree-cfg.c (build_tree_cfg): Likewise.
17440 (dump_function_to_file): Use check_bb_profile.
17441 * tree-pretty-print (dump_bb_header): Likewise.
17442 * tree-profile.c (do_tree_profiling): Cleanup.
17443
17444 2004-08-04 Zack Weinberg <zack@codesourcery.com>
17445
17446 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
17447 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
17448 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
17449 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
17450 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
17451 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
17452 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
17453 (ggc-none.o, errors.o): Move rule to generators section;
17454 correct dependencies.
17455 (min-insn-modes.o): Move rule to generators section; remove
17456 unnecessary explicit command; correct dependencies.
17457 (print-rtl.o, print-rtl1.o): Correct dependencies.
17458 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
17459 (mostlyclean): Update.
17460
17461 * errors.c: Include bconfig.h not config.h. Correct comment.
17462 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
17463 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
17464 * print-rtl.c: Don't include tm_p.h.
17465
17466 * rtl.h: Move forward-decl of struct function down where it's
17467 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
17468 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
17469
17470 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17471 Jeff Law <law@redhat.com>
17472
17473 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
17474 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
17475 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
17476 manipulate the duplicated ssa names.
17477 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
17478 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
17479 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
17480 New functions.
17481 (release_ssa_name): Do not release ssa names that may have multiple
17482 definitions.
17483 * tree.h (release_ssa_name_force, mark_for_rewrite,
17484 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
17485 marked_ssa_names): Declare.
17486 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
17487 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
17488 Update call to rewrite_ssa_into_ssa.
17489
17490 2004-08-04 Mark Mitchell <mark@codesourcery.com>
17491
17492 * defaults.h (TARGET_DECLSPEC): New macro.
17493 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
17494 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
17495 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
17496 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
17497 __declspec support.
17498 (TARGET_DECLSPEC): Define.
17499 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
17500 __declspec support.
17501 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
17502 __declspec support.
17503 (TARGET_DECLSPEC): Define.
17504 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
17505 __declspec support.
17506 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
17507 support.
17508 * doc/tm.texi (TARGET_DECLSPEC): Document.
17509
17510 * doc/extend.texi: Fix typo in comment.
17511
17512 2004-08-04 Paul Brook <paul@codesourcery.com>
17513
17514 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
17515 (TARGET_CXX): Use it.
17516 * target.h (struct gcc_target): Add cdtor_returns_this.
17517 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
17518 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
17519 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
17520
17521 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
17522
17523 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
17524 low/high pair. Do range checking directly.
17525 (interpret_integer): Adjust.
17526
17527 2004-08-04 Nick Clifton <nickc@redhat.com>
17528
17529 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
17530 GCC ABI.
17531 * doc/invoke.texi: Document this new switch and also the -mrenesas
17532 switch.
17533
17534 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
17535
17536 * cfglayout.c (insn_locators_initialize): Update the current
17537 location before initializing a location.
17538
17539 2004-08-03 Zack Weinberg <zack@codesourcery.com>
17540
17541 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
17542 (dbxout_function_end): Return after emitting the "Lscope" symbol
17543 under the same conditions that this function formerly wasn't called.
17544 Add explanatory comments.
17545
17546 PR 14860
17547 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
17548 on the new decl.
17549
17550 PR 13956
17551 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
17552 functions, broken out of dbxout_block.
17553 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
17554 stabs too, if it contains symbols. Use the begin_label and
17555 the Lscope label (emitted by dbxout_function_end) for the
17556 range of this block.
17557
17558 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
17559
17560 * doc/install.texi: Update autoconf version requirements.
17561
17562 2004-08-03 Zack Weinberg <zack@codesourcery.com>
17563
17564 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
17565 * recog.c (general_operand, immediate_operand, nonmemory_operand)
17566 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
17567 * regclass.c (record_reg_classes): Likewise.
17568 * reload.c (find_reloads): Likewise.
17569 * reload1.c (reload): Likewise.
17570
17571 2004-08-03 Zack Weinberg <zack@codesourcery.com>
17572
17573 * gensupport.c (init_md_reader_args_cb): Renamed from
17574 init_md_reader_args. Add third option, callback function for
17575 parsing program-specific options. Add diagnosis of incorrect
17576 number of input files.
17577 (init_md_reader): Fold into init_md_reader_args_cb.
17578 (init_md_reader_args): Now a thin wrapper around
17579 init_md_reader_args_cb.
17580 * gensupport.h: Update prototypes.
17581
17582 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
17583 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
17584 * genrecog.c: No need to diagnose lack of an input file;
17585 init_md_reader_args will handle it.
17586 * genconditions.c: Likewise, and use init_md_reader_args.
17587 * genconstants.c: Likewise, and no need to call read_md_rtx.
17588
17589 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
17590
17591 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
17592 declarations.
17593
17594 2004-08-03 Mike Stump <mrs@apple.com>
17595
17596 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
17597 for frameworks.
17598 * doc/invoke.texi (Darwin Options): Update to reflect above.
17599
17600 2004-08-03 Roger Sayle <roger@eyesopen.com>
17601
17602 PR middle-end/16790
17603 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
17604 truncations, not just global truncations.
17605
17606 2004-08-03 Andrew Pinski <apinski@apple.com>
17607
17608 PR bootstrap/16865
17609 * loop-iv.c (simplify_using_assignment): Initialize lhs.
17610
17611 2004-08-03 Paul Brook <paul@codesourcery.com>
17612
17613 * gcc/doc/install.texi: Document MPFR requirement.
17614
17615 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
17616
17617 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
17618 and mmap() explicitly instead of relying on preset autoconf cache
17619 variables.
17620 * configure: Regenerate.
17621
17622 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
17623
17624 PR target/16570
17625 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
17626 to tmake_file.
17627 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
17628 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
17629 to tmake_file.
17630
17631 * config/i386/t-gmm_malloc: New file.
17632 * config/i386/t-pmm_malloc: Likewise.
17633
17634 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
17635
17636 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
17637 Tanguy Fautrà <tfautre@pandora.be>
17638
17639 * config/i386/pmm_malloc.h: New file.
17640
17641 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
17642
17643 * config/i386/gmm_malloc.h: New file.
17644
17645 2004-08-03 Dale Johannesen <dalej@apple.com>
17646
17647 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
17648 * c-common.c: Include opts.h.
17649 (c_common_get_alias_set): Fix check for a single input file.
17650 * toplev.c: Remove current_file_decl.
17651 * tree.h: Ditto.
17652
17653 2004-08-03 Mark Mitchell <mark@codesourcery.com>
17654
17655 * config.gcc (arm*-*-symbianelf*): New target.
17656 * config/arm/symbian.h: New file.
17657
17658 * gthr-gnat.c: Add visibility #pragmas.
17659 * gthr-gnat.h : Likewise.
17660 * gthr.h: Likewise.
17661 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
17662 (__ffsDI2): Likewise.
17663 (__clzSI2): Likewise.
17664 (__ctzSI2): Likewise.
17665 (__ctzDI2): Likewise.
17666 (__popcountSI2): Likewise.
17667 (__popcountDI2): Likewise.
17668 (__paritySI2): Likewise.
17669 (__parityDI2): Likewise.
17670 * libgcc2.h: Add visibility #pragmas.
17671 (__clzDI2): Add prototype.
17672 (__clzSI2): Likewise.
17673 (__ctzSI2): Likewise.
17674 (__ffsDI2): Likewise.
17675 (__ffsSI2): Likewise.
17676 (__ctzDI2): Likewise.
17677 (__popcountSI2): Likewise.
17678 (__popcountDI2): Likewise.
17679 (__paritySI2): Likewise.
17680 (__parityDI2): Likewise.
17681 * unwind-dw2-fde.h: Add visibility #pragmas.
17682 * unwind.h: Likewise.
17683
17684 2004-08-03 David Edelsohn <edelsohn@gnu.org>
17685 Dale Johannesen <dalej@apple.com>
17686 Roger Sayle <roger@eyesopen.com>
17687
17688 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
17689 constants more accurately. Adjust costs for FMA instructions.
17690 Add cases for most logical and float operations. Recurse into
17691 most operands.
17692
17693 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
17694
17695 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
17696
17697 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
17698
17699 * ra-build.c (conflicts_between_webs): For webs that cross a call add
17700 conflicts to regs_invalidated_by_call.
17701
17702 2004-08-03 Paul Brook <paul@codesourcery.com>
17703
17704 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
17705
17706 2004-08-03 Jan Hubicka <jh@suse.cz>
17707
17708 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
17709 ARRAY_REF argument.
17710
17711 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
17712
17713 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
17714 arm968es, arm10e, arm1020e, arm1022e.
17715 * invoke.texi: Update list of ARM cores.
17716 * arm-tune.md: Regenerate.
17717
17718 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
17719
17720 * arm/gentune.sh: New file.
17721 * arm/t-arm: New file.
17722 * arm/arm-tune.md: New file (autogenerated).
17723 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
17724 * arm.md (attribute tune): Delete. Include arm-tune.md.
17725
17726 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
17727
17728 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
17729 penultimate parameter. All callers adjusted.
17730 (struct prefix_list): Remove used_flag_ptr.
17731 (find_a_file): Do not set *pl->used_flag_ptr.
17732 (warn_B, warn_std_ptr): Remove.
17733
17734 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
17735 Mostafa Hagog <mustafa@il.ibm.com>
17736
17737 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
17738
17739 2004-08-02 Geoffrey Keating <geoffk@apple.com>
17740
17741 * dwarf2out.c (output_call_frame_info): Don't change data format
17742 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
17743 label. Use 'true' not '1'.
17744 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
17745 required.
17746
17747 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
17748
17749 * gdbinit.in: Reflect previous changes to rtunion_def.
17750
17751 2004-08-02 Roger Sayle <roger@eyesopen.com>
17752
17753 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
17754 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
17755
17756 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
17757
17758 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
17759 vec_p_reserve.
17760 * langhooks.h (lang_hooks::builtin_function): Rename parameter
17761 from "class" to "bt_class".
17762
17763 2004-08-02 Paul Brook <paul@codesourcery.com>
17764
17765 PR rtl-optimization/15068
17766 * flow.c (init_propagate_block_info): Check condition is reversible.
17767
17768 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
17769
17770 * gengtype.h (options::info): Change type to const char *.
17771 (enum gc_used_enum): Move out of struct type scope.
17772 * gengtype.c (create_option): Convert initializer for option::info to
17773 appropiate type.
17774 (adjust_field_type, walk_type, write_func_for_structure,
17775 write_root, write_roots): Remove pointless cast.
17776
17777 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
17778
17779 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
17780
17781 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
17782
17783 * rtl.h (union rtunion_def): Have all members start with the
17784 prefix "rt_".
17785 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
17786 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
17787 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
17788 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
17789 access.
17790 * gengtype.c (adjust_field_rtx_def): Likewise.
17791 * rtlanal.c (loc_mentioned_in_p): Likewise.
17792
17793 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
17794
17795 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
17796 Replace uses of mips/elf64.h with mips/elf.h
17797 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
17798 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
17799 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
17800 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
17801 (HANDLE_SYSV_PRAGMA): Delete.
17802 (ASM_OUTPUT_DEF): Fix formatting.
17803 * config/mips/elf64.h: Delete.
17804
17805 2004-08-01 Zack Weinberg <zack@codesourcery.com>
17806
17807 * config/ia64/ia64.c (got_symbolic_operand): Do require a
17808 symbol+offset operand to have its offset be zero mod 0x3fff
17809 when GOT entries are in use. Clarify logic in SYMBOL_REF
17810 case. Clarify comments.
17811 (ia64_expand_load_address): Split a symbol+offset load when
17812 the offset is nonzero mod 0x3fff, not 0x1fff.
17813
17814 2004-08-01 Geoffrey Keating <geoffk@apple.com>
17815
17816 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
17817 if trying to *store* to a non-offsettable address.
17818 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
17819 a nonoffsettable address.
17820 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
17821 Clean up.
17822 (movti_string): Don't move GPRs to a nonoffsettable address.
17823 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
17824
17825 2004-08-02 Ben Elliston <bje@au.ibm.com>
17826
17827 PR target/16155
17828 * config/rs6000/altivec.h: Replace typeof with __typeof__.
17829
17830 2004-08-01 Richard Henderson <rth@redhat.com>
17831
17832 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
17833 variable sized types.
17834
17835 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
17836
17837 * doc/invoke.texi: In the MIPS options section, remove the passage
17838 saying that -mexplicit-relocs is usually disabled for -mabicalls
17839 -fno-unit-at-a-time.
17840 * config/mips/mips.c (override_options): Remove the code that enforced
17841 this rule.
17842
17843 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
17844
17845 * config/mips/mips.md (cprestore): Provide two alternatives, one for
17846 an in-range offset and one for an out-of-range offset. Wrap the latter
17847 in .set macro/.set nomacro if it's inside a .set nomacro block.
17848
17849 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
17850
17851 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
17852 (mips_restore_gp): Declare.
17853 * config/mips/mips.c (mips_add_offset): Add a scratch register
17854 argument. Reimplement in rtl only, reusing MIPS16 logic from
17855 mips_output_mi_thunk.
17856 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
17857 to mips_add_offset.
17858 (mips_gp_save_slot): Delete.
17859 (mips_restore_gp): New function.
17860 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
17861 * config/mips/mips.md (exception_receiver): Turn into a
17862 define_insn_and_split. Use mips_restore_gp to do the split.
17863 (call_internal, call_value_internal, call_value_multiple_internal): Use
17864 mips_restore_gp to restore $gp.
17865
17866 2004-07-31 Andrew Pinski <apinski@apple.com>
17867
17868 PR other/16842
17869 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
17870
17871 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
17872
17873 * c-decl.c (diagnose_mismatched_decls): Give error for external
17874 redeclaration of identifier declared with no linkage, not just
17875 warning with -Wtraditional. Do not check DECL_CONTEXT to give
17876 error for redeclaration with no linkage.
17877
17878 2004-07-30 Geoffrey Keating <geoffk@apple.com>
17879 Fariborz Jahanian <fjahanian@apple.com>
17880
17881 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
17882 non-offsettable addresses even for DImode.
17883 (rs6000_split_multireg_move): Cope with non-offsettable addresses
17884 being moved into multiple GPRs.
17885
17886 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
17887 to 64.
17888 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
17889 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
17890 to 128.
17891 * config/rs6000/darwin-ldouble.c (isless): New macro.
17892 (inf): New macro.
17893 (nonfinite): New macro.
17894 (FPKINF): Delete.
17895 (_xlqadd): Completely rewrite.
17896 (_xlqmul): Correct overflow handling.
17897 (_xlqdiv): Correct overflow handling.
17898 * config/rs6000/darwin-ldouble-format: New file.
17899
17900 2004-07-30 Roger Sayle <roger@eyesopen.com>
17901 Richard Henderson <rth@redhat.com>
17902
17903 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
17904 9 into the equivalent lea instruction.
17905
17906 2004-07-30 Richard Henderson <rth@redhat.com>
17907
17908 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
17909 with DECL_INITIAL if fb_lvalue.
17910 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
17911 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
17912 with <Cxxx>.
17913 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
17914
17915 2004-07-30 Diego Novillo <dnovillo@redhat.com>
17916
17917 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
17918 pointer escapes through a function call, assume that the
17919 callee will dereference it.
17920 (add_pointed_to_var): Assume that VALUE is always an
17921 ADDR_EXPR.
17922 (collect_points_to_info_r): Only call add_pointed_to_var if
17923 the value is an ADDR_EXPR.
17924
17925 2004-07-30 Diego Novillo <dnovillo@redhat.com>
17926
17927 * tree-ssa-alias.c (create_alias_map_for): Do not get the
17928 alias set of the inner type of ARRAY_TYPEs.
17929
17930 2004-07-29 Diego Novillo <dnovillo@redhat.com>
17931
17932 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
17933 setting a non-register to UNDEFINED right before the call to
17934 set_lattice_value.
17935
17936 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
17937
17938 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
17939
17940 2004-07-29 Diego Novillo <dnovillo@redhat.com>
17941
17942 * tree-ssa.c (verify_flow_sensitive_alias_info): When
17943 comparing points-to sets of different pointers, make sure the
17944 second pointer is actually referenced in the code.
17945
17946 2004-07-29 Zack Weinberg <zack@codesourcery.com>
17947
17948 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
17949 (got_symbolic_operand): Remove unreachable code.
17950 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
17951 setjmp_operand; add entry for tls_symbolic_operand.
17952 * config/ia64/ia64-protos.h: Remove all prototypes of
17953 predicate functions.
17954
17955 2004-07-29 Mark Mitchell <mark@codesourcery.com>
17956
17957 * c-common.h (lang_post_pch_load): New variable.
17958 * c-pch.c (lang_post_pch_load): Define it.
17959 (c_common_read_pch): Use it.
17960 * cgraphunit.c (record_call_1): Give the front end a chance to
17961 record additional needed entities when a variable is marked as
17962 needed.
17963 * tlink.c (recompile_files): Robustify.
17964 (scan_linker_output): If a symbol is assigned to a file,
17965 but after recompilation is not present there, issue an error
17966 message.
17967
17968 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17969
17970 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
17971 Take orig_loop argument and pass it to set_level.
17972 (schedule_sm): Pass the correct orig_loop to force_move_till.
17973
17974 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17975
17976 * cfgloop.c (update_latch_info): Update dominator of the new block.
17977 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
17978 info.
17979 * dominance.c (verify_dominators): Check that the dominance tree is
17980 connected.
17981 (recount_dominator): Ignore unreachable blocks.
17982 (iterate_fix_dominators): Cleanup old dominance information before
17983 recomputing it.
17984
17985 2004-07-29 Diego Novillo <dnovillo@redhat.com>
17986
17987 * tree-ssa-operands.c (get_expr_operands): Revert changes
17988 to ADDR_EXPR processing introduced by:
17989 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17990 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
17991
17992 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
17993
17994 * doc/implement-c.texi: Add C90 subclause references. Point to
17995 preprocessor documentation instead of duplicating it. Add points
17996 only present in C90. Fill in documentation for all points.
17997
17998 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17999
18000 * pa.c (output_movb): Correct typo.
18001
18002 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
18003
18004 * ra.h (single_reg_in_regclass): Declare.
18005 * ra.c (single_reg_in_regclass): Define.
18006 (first_hard_reg): New.
18007 (init_ra): Initialize single_reg_in_regclass.
18008 * ra-colorize.c (ok_class): New.
18009 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
18010
18011 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
18012
18013 * gcov-io.h: Allow zero tag as EOF indicator.
18014 (gcov_is_eof): Remove.
18015 (gcov_truncate): Remove.
18016 * gcov-io.c (gcov_seek): Always SEEK_SET.
18017 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
18018 EOF tag.
18019 * coverage.c (read_counts_file): Don't use gcov_is_eof.
18020 * gcov-dump.c (dump_file): Likewise.
18021 * gcov.c (read_graph_file, read_count_file): Likewise.
18022
18023 * c-decl.c (complete_array_type): Don't gratuitously copy
18024 maxindex. Check it always has a type.
18025
18026 2004-07-29 Steven Bosscher <stevenb@suse.de>
18027
18028 * rtl.c (currently_expanding_to_rtl): New.
18029 * rtl.h (currently_expanding_to_rtl): Export it.
18030 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
18031
18032 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
18033 inliner hack.
18034 * config/sh/sh.c: Replace rtx_equal_function_value_matters
18035 with currently_expanding_to_rtl.
18036 * config/sh/sh.md: Likewise.
18037 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
18038
18039 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
18040
18041 Introduce sh2a support.
18042 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
18043 * config.gcc: Build multilibs for sh2a and sh2a-single by
18044 default.
18045 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
18046 default. Split their tests out of the corresponding SH4
18047 multilibs.
18048 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
18049 multilibs for SH2a.
18050 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
18051 * config.gcc: Handle sh2a multilibs and cpu selection.
18052 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
18053 * config/sh/t-mlib-sh2a: New.
18054 * config/sh/t-mlib-sh2a-nofpu: New.
18055 * config/sh/t-mlib-sh2a-single: New.
18056 * config/sh/t-mlib-sh2a-single-only: New.
18057 2004-07-09 Nick Clifton <nickc@redhat.com>
18058 Issue 43400
18059 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
18060 -ml and -m2a are used together.
18061 2004-03-23 DJ Delorie <dj@redhat.com>
18062 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
18063 when we have a double-sized FPU.
18064 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
18065 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
18066 is set.
18067 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
18068 -msh2a-single and -msh2a-single-only
18069 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
18070 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
18071 is set.
18072 2004-02-20 DJ Delorie <dj@delorie.com>
18073 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
18074 2004-02-20 Fred Fish <fnf@redhat.com>,
18075 Corinna Vinschen <vinschen@redhat.com>
18076 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
18077 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
18078 2004-02-18 DJ Delorie <dj@redhat.com>
18079 * config/sh/sh.c (broken_move): Add support for movi20.
18080 * config/sh/sh.h: Likewise.
18081 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
18082 * config/sh/sh.md (udivsi3_sh2a): New.
18083 (udivsi3): Call it.
18084 (divsi3_sh2a): New.
18085 (divsi3): Call it.
18086 (mul_r): New.
18087 (ashlsi3_sh2a): New.
18088 (ashrsi3_sh2a): New.
18089 (lshrsi3_sh2a): New.
18090 (movsi_i): Disable for sh2a.
18091 (movsi_ie): Add movi20.
18092 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
18093 sh2a, for -m2a-nofpu mode.
18094 2004-02-13 DJ Delorie <dj@redhat.com>
18095 * config/sh/lib1funcs.asm: Handle double vs single better.
18096 * config/sh/sh.h: Likewise.
18097 2004-02-09 DJ Delorie <dj@redhat.com>
18098 * config/sh/crt1.asm: Add support for sh2a.
18099 * config/sh/elf.h: Likewise.
18100 * config/sh/lib1funcs.asm: Likewise.
18101 * config/sh/sh.c: Likewise.
18102 * config/sh/sh.md: Likewise.
18103 * config/sh/sh.h: Likewise.
18104 * config/sh/t-sh: Likewise.
18105
18106 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
18107
18108 * config/frv/frv.md (movqi_internal, movhi_internal,
18109 movsi_internal): Add backup alternatives for memory inputs.
18110
18111 2004-07-28 Matt Austern <austern@apple.com>
18112
18113 * config/darwin.c (darwin_one_byte_bool): New global variable.
18114 * config/darwin.h (darwin_one_byte_bool): Declare.
18115 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
18116 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
18117 value of darwin_one_byte_bool.
18118 * doc/invoke.texi: Document -mone-byte-bool flag.
18119
18120 2004-07-28 Eric Christopher <echristo@redhat.com>
18121
18122 * c-common.c (c_common_unsafe_for_reeval): Delete.
18123 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
18124 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
18125 * calls.c (fix_unsafe_tree): Delete.
18126 (expand_call): Delete code which used above.
18127 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
18128 * expr.c (expand_expr_real_1): Ditto.
18129 * fold-const.c (non_lvalue): Ditto.
18130 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
18131 (lhd_unsafe_for_reeval): Ditto.
18132 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
18133 * langhooks.h (unsafe_for_reeval): Ditto.
18134 (unsave_expr_now): Adjust comment.
18135 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
18136 (estimate_num_insns_1): Ditto.
18137 * tree-pretty-print.c (dump_generic_node): Ditto.
18138 * tree.c (expr_align): Ditto.
18139 (unsave_expr): Delete.
18140 (unsafe_for_reeval): Ditto.
18141 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
18142 * tree.def (UNSAVE_EXPR): Delete.
18143 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
18144
18145 2004-07-28 Zack Weinberg <zack@codesourcery.com>
18146
18147 * tree.h (enum tls_model): Move ...
18148 * coretypes.h: ... here.
18149
18150 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
18151
18152 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
18153
18154 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
18155
18156 * cse.c (validate_canon_reg): New function, split out from...
18157 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
18158
18159 2004-07-28 Diego Novillo <dnovillo@redhat.com>
18160
18161 * tree-ssa-alias.c (maybe_create_global_var): Don't just
18162 return if .GLOBAL_VAR has been created.
18163
18164 2004-07-28 Diego Novillo <dnovillo@redhat.com>
18165
18166 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
18167 every variable that may have aliases, not just tags.
18168
18169 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
18170
18171 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
18172 move_from_CR_eq_bit.
18173 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
18174
18175
18176 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
18177 e500_flip_eq_bit.
18178
18179 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
18180 output_e500_flip_eq_bit.
18181
18182 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
18183 output_e500_flip_eq_bit.
18184 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
18185 output_e500_flip_eq_bit.
18186 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
18187 (print_operand): case D. Get to EQ bit.
18188
18189 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
18190
18191 * gcov.c (function_summary): Add missing \n.
18192
18193 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
18194
18195 Introduce sh4a support.
18196 * config.gcc: Handle sh4a multilibs and cpu selection.
18197 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
18198 * config/sh/t-mlib-sh4a: New.
18199 * config/sh/t-mlib-sh4al: New.
18200 * config/sh/t-mlib-sh4a-nofpu: New.
18201 * config/sh/t-mlib-sh4a-single: New.
18202 * config/sh/t-mlib-sh4a-single-only: New.
18203 2004-02-20 DJ Delorie <dj@redhat.com>
18204 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
18205 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
18206 2003-08-22 Eric Christopher <echristo@redhat.com>
18207 * config/sh/sh4a.md: Update for chip errata.
18208 2003-08-07 Eric Christopher <echristo@redhat.com>
18209 * config/sh/sh4a.md: New file. sh4a processor description.
18210 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
18211 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
18212 of -m4a-nofpu.
18213 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
18214 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
18215 * doc/invoke.texi (SH Options): Document -m4al.
18216 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
18217 * config/sh/sh.c (expand_block_move): Remove commented-out code
18218 checked in by mistake.
18219 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
18220 single elements from SFmode vectors.
18221 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
18222 register.
18223 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
18224 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
18225 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
18226 sh_fsca_int2sf): Remove variable declarations.
18227 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
18228 sh_fsca_int2sf): New functions.
18229 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
18230 sh_fsca_int2sf_rtx): New static variables.
18231 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
18232 sh_fsca_int2sf): Declare.
18233 * config/sh/sh.md: Adjust.
18234 * doc/invoke.texi (SH Options): Document new options.
18235 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
18236 compatibility from SH4 code.
18237 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
18238 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
18239 early.
18240 (memory_movsrc_operand): Renamed to...
18241 (unaligned_load_operand): ... this. Simplified.
18242 * config/sh/sh.h (PREDICATE_CODES): Adjust.
18243 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
18244 input operand to SImode, and adjust the others. Introduce
18245 post-increment by peephole.
18246 * config/sh/sh.c (expand_block_move): Give the target address the
18247 same mode as the temp reg.
18248 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
18249 copying.
18250 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
18251 Introduce support for SH4a.
18252 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
18253 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
18254 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
18255 sh_fsca_int2sf): New.
18256 (sh_init_builtins): Initialize them.
18257 (print_operand): Support `d'.
18258 (expand_block_move): Use movua if src is misaligned.
18259 (memory_movsrc_operand): New.
18260 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
18261 and one of the SH4 macros.
18262 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
18263 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
18264 SELECT_SH4A_SINGLE): New.
18265 (TARGET_NONE): Add SH4A_BIT.
18266 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
18267 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
18268 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
18269 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
18270 (enum processor_type): Added PROCESSOR_SH4A.
18271 (PREDICATE_CODES): Add memory_movsrc_operand.
18272 * config/sh/sh.md: Removed unused variables.
18273 (attr cpu): Add sh4a.
18274 (attr type): Add movua, fsrra and fsca.
18275 (prefetch): New, for SH4.
18276 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
18277 (toggle_sz): Set type to fp.
18278 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
18279 (movua, extv, extzv): New.
18280 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
18281 and 4a-single-only.
18282
18283 2004-07-28 Diego Novillo <dnovillo@redhat.com>
18284
18285 * tree-optimize.c (init_tree_optimization_passes): Schedule
18286 pass_may_alias right after the program is renamed into SSA.
18287 * tree-pass.h (PROP_alias): Define.
18288 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
18289 * tree-sra.c (pass_sra): Likewise.
18290 * tree-ssa-ccp.c (pass_ccp): Likewise.
18291 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
18292 * tree-ssa-dce.c (pass_dce): Likewise.
18293 * tree-ssa-dom.c (pass_dominator): Likewise.
18294 * tree-ssa-dse.c (pass_dse): Likewise.
18295 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
18296 * tree-ssa-loop-ch.c (pass_ch): Likewise.
18297 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18298 * tree-ssa-pre.c (pass_pre): Likewise.
18299 * tree-tailcall.c (pass_tail_recursion): Likewise.
18300 * tree-ssa.c (pass_redundant_phi): Likewise.
18301 * tree-ssa-alias.c (aliases_computed_p): Remove.
18302 Update all users.
18303 (init_alias_info): Do not mark all type tags for renaming
18304 unconditionally.
18305 Clear may_aliases from every symbol.
18306 (setup_pointers_and_addressables): If a pointer has not been
18307 dereferenced and it had a type tag, clear it and mark the old
18308 tag for renaming.
18309
18310 2004-07-28 Diego Novillo <dnovillo@redhat.com>
18311
18312 PR tree-optimization/16705
18313 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
18314 .GLOBAL_VAR.
18315
18316 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18317
18318 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
18319 check.
18320
18321 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
18322 don't make another one.
18323
18324 PR optimization/15077
18325 * function.h (struct function): Add field saved_static_chain_decl.
18326 Fix comment for static_chain_decl.
18327 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
18328 * tree-inline.h (save_body): Add new arg.
18329 * tree-optimize.c (tree_rest_of_compilation): Handle saving
18330 static_chain_decl.
18331
18332 2004-07-27 Richard Henderson <rth@redhat.com>
18333
18334 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
18335 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
18336 is_gimple_addressable.
18337 * tree-gimple.c (is_gimple_addressable): Rename from
18338 is_gimple_addr_expr_arg; accept INDIRECT_REF.
18339 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
18340 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
18341 rename to is_gimple_addressable.
18342
18343 2004-07-28 Alan Modra <amodra@bigpond.net.au>
18344
18345 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
18346
18347 2004-07-27 Richard Henderson <rth@redhat.com>
18348
18349 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
18350 before rounding.
18351
18352 2004-07-27 Zack Weinberg <zack@codesourcery.com>
18353
18354 * libgcc2.c: Change all conditionals testing
18355 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
18356 * libgcc2.h: Likewise.
18357 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
18358 TYPE_PRECISION of float80_type to 80.
18359 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
18360 of fpreg_type and float80_type to 80.
18361 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
18362 * config/m68k/netbsd-elf.h:
18363 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
18364 to evaluate to 80 whenever they would formerly have evaluated to 96.
18365 * config/i386/sco5.h: Remove unnecessary redefinition of
18366 LONG_DOUBLE_TYPE_SIZE.
18367 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
18368 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
18369 XFmode, with a bitsize of 80. Update commentary.
18370 * config/ia64/ia64-modes.def: Likewise.
18371 * config/m68k/m68k-modes.def: Likewise.
18372
18373 2004-07-27 Steven Bosscher <stevenb@suse.de>
18374
18375 * cfgexpand.c (tree_expand_cfg): Fix comment.
18376
18377 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
18378 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
18379 Remove.
18380 (prepare_function_start): Don't set rtx_equal_function_value_matters.
18381 * integrate.c (copy_rtx_and_substitute): Don't test for it.
18382 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
18383 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
18384 here again. Update leading comment.
18385 * rtl.c (rtx_equal_function_value_matters): Remove.
18386 (rtx_equal_p): Don't test for it.
18387 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
18388 Likewise.
18389
18390 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
18391 * rtl.c (note_insn_name): Likewise.
18392 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
18393 * final.c (final_scan_insn): Likewise.
18394
18395 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
18396 * passes.c (rest_of_handle_eh): Do it here.
18397
18398 * stmt.c (struct nesting): Remove struct nesting block member.
18399 (struct stmt_status): Remove x_block_start_count field.
18400 (current_block_start_count): Remove.
18401
18402 2004-07-27 Brian Booth <bbooth@redhat.com>
18403
18404 * tree-optimize.c (register_one_dump_file): Update condition that uses
18405 static_pass_number.
18406 (dup_pass_1): Replace with...
18407 (next_pass_1): This.
18408 (NEXT_PASS): Call next_pass_1.
18409 (DUP_PASS): Remove.
18410 (init_tree_optimization_passes): Remove uses of DUP_PASS.
18411 (execute_one_pass): Update condition that uses
18412 static_pass_number.
18413 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
18414 integer.
18415
18416 2004-07-27 Nick Clifton <nickc@redhat.com>
18417
18418 * config/m32r/m32r.c: Include integrate.h in order to get the
18419 prototype for get_hard_reg_initial_val().
18420
18421 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
18422 and tidy up indentation.
18423 (final_presence_set): Use absence_set instead, so that if there is
18424 nothing in the "o" pipe the "s" pipe can be scheduled.
18425
18426 2004-07-27 Diego Novillo <dnovillo@redhat.com>
18427
18428 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
18429 don't have PT_VARS nor PT_MALLOC set.
18430 Clear name tag from pointers that have not been dereferenced.
18431 (set_pt_anything, set_pt_malloc): Forward declare.
18432 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
18433 not type compatibility when determining if a pointer can be
18434 copy propagated.
18435
18436 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
18437
18438 * expr.h (canonicalize_condition, get_condition): Add an int argument.
18439 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
18440 it to check whether the condition is still valid at the jump insn.
18441 * ifcvt.c (noce_get_condition): Likewise.
18442 (noce_get_alt_condition): Update call to canonicalize_condition.
18443 * loop-iv.c (simplify_using_initial_values): Update call to
18444 get_condition. Remove FIXME.
18445 (check_simple_exit): Update call to get_condition.
18446 * loop-unswitch.c (may_unswitch_on): Likewise.
18447 * loop.c (check_dbra_loop): Likewise.
18448 (canonicalize_condition, get_condition): Add an argument to say whether
18449 the condition must still be valid at INSN.
18450 (get_condition_for_loop): Update call to get_condition. Require that
18451 the condition be valid at INSN.
18452 * predict.c (estimate_probability): Update call to get_condition.
18453 Remove unused earliest parameter.
18454 (expected_value_to_br_prob): Update call to canonicalize_condition.
18455
18456 2004-07-26 Eric Christopher <echristo@redhat.com>
18457
18458 * tree-dfa.c (add_referenced_var): Register initializers of global
18459 variables.
18460
18461 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
18462
18463 * config/i386/i386.c (function_arg): Always treat 8-
18464 and 16-byte wide vectors the same, even if MMX/SSE
18465 are disabled.
18466 (contains_128bit_aligned_vector_p): Add comment.
18467
18468 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
18469
18470 * ra.h (enum node_type): Rename to:
18471 (enum ra_node_type).
18472 * ra-colorize.c: Likewise.
18473
18474 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
18475
18476 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
18477 after simplifying the jump.
18478
18479 2004-06-26 Richard Henderson <rth@redhat.com>
18480
18481 * calls.c (combine_pending_stack_adjustment_and_call): Make
18482 preferred_unit_stack_boundary argument unsigned. Make
18483 unadjusted_alignment unsigned.
18484 (expand_call): Make preferred_stack_boundary and
18485 preferred_unit_stack_boundary variables unsigned.
18486 * function.c (assign_stack_local_1): Make alignment unsigned.
18487 * function.h (struct function): Make stack_alignment_needed,
18488 preferred_stack_boundary unsigned.
18489 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
18490 (ix86_compute_frame_layout): Make stack_alignment_needed,
18491 preferred_alignment variables unsigned.
18492 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
18493
18494 2004-07-26 Tom Tromey <tromey@redhat.com>
18495
18496 * tree.h: Fix typo in comment.
18497
18498 2004-07-26 Daniel Jacobowitz <dan@debian.org>
18499
18500 PR bootstrap/12804
18501 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
18502 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
18503 (ggc_free): Remove incorrect freeing.
18504 (sweep_pages): Advance PP for large pages. Fix indentation.
18505
18506 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
18507
18508 PR rtl-optimization/16643
18509 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
18510 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
18511 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
18512 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
18513 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
18514 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18515 * rtl.h (tracer): Add a flags parameter.
18516 * tracer.c (tracer): Pass it to cfg_layout_initialise.
18517 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
18518 (rest_of_handle_reorder_blocks): Update calls to tracer and
18519 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
18520 (rest_of_handle_tracer): Pass 0 to tracer.
18521 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
18522
18523 2004-07-25 David Edelsohn <edelsohn@gnu.org>
18524
18525 PR target/16239
18526 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
18527 f->f.
18528
18529 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
18530
18531 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
18532 (BINFO_BASE_ACCESS): Adjust.
18533 (BINFO_BASE_ACCESS_APPEND): New.
18534 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
18535 * dbxout.c (dbxout_type): Adjust binfo access accessing.
18536 * dwarf2out.c (gen_member_die): Likewise.
18537 * tree-dump.c (deque_and_dump): Likewise.
18538
18539 2004-07-26 Falk Hueffner <falk@debian.org>
18540
18541 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
18542 costs.
18543
18544 2004-07-25 Roger Sayle <roger@eyesopen.com>
18545
18546 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
18547 value off of the stack if TARGET_USE_FFREEP.
18548
18549 2004-07-26 Bernardo Innocenti <bernie@develer.com>
18550
18551 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
18552 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
18553 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
18554 check on invocation of XRESIZEVEC ().
18555
18556 2004-07-26 Bernardo Innocenti <bernie@develer.com>
18557
18558 * c-common.c (disable_builtin_function): Rename variable n to
18559 new_disabled_builtin.
18560 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
18561 Rename local variable old to old_decl.
18562 * gensupport.c (shift_output_template): Rename parameter old to src.
18563 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
18564 old_rtx and newx to new_rtx.
18565
18566 2004-07-26 Bernardo Innocenti <bernie@develer.com>
18567
18568 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
18569 of c-pragma.h.
18570 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
18571 enum cpp_ttype.
18572 * c-lex.c: Likewise.
18573
18574 2004-07-25 Roger Sayle <roger@eyesopen.com>
18575
18576 * fold-const.c (constant_boolean_node): Make extern.
18577 (make_range): Wrap long lines.
18578 (fold_cond_expr_with_comparison): Remove unnecessary call to
18579 pedantic_non_lvalue. Add missing calls to fold_convert.
18580 (fold_truthop): Add missing calls to fold_convert.
18581 (fold): Likewise.
18582 * tree.h (constant_boolean_node): Add prototype here.
18583 * builtins.c (expand_builtin_strncmp): Add missing calls to
18584 fold_convert.
18585 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
18586 Call fold_convert and constant_boolean_node to correct types.
18587 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
18588 missing call to fold_convert to correct types.
18589
18590 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
18591 Brian Ryner <bryner@brianryner.com>
18592
18593 PR c++/9283
18594 PR c++/15000
18595 * c-common.c (c_common_attribute_table): Allow
18596 handle_visibility_attribute to be called for types.
18597 (handle_visibility_attribute) When given a type, set the visibility
18598 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
18599 so that we can check later whether the attribute was present. Added
18600 warning if attribute applied to non class type.
18601 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
18602 decls and checking that they are consistent.
18603 * common.opt: Added -fvisibility.
18604 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
18605 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
18606 * flags.h, tree.h: Added assorted support defines for overall patch
18607 * opts.c: Added parsing support for -fvisibility.
18608 * tree.c (build_decl): Set visibility for all decls to be whatever
18609 is in force at that time.
18610 * varasm.c (default_binds_local_p_1): Reworked logic determining
18611 when to make a symbol locally bound.
18612 * doc/invoke.texi: Added documentation for -fvisibility and
18613 -fvisibility-inlines-hidden.
18614
18615 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18616
18617 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
18618 * c-common.c: Add missing casts from void * to other types.
18619 * c-decl.c: Likewise.
18620 * c-format.c: Likewise.
18621 * c-lex.c: Likewise.
18622 * c-pragma.c: Likewise.
18623 * c-typeck.c: Likewise.
18624 * defaults.h: Likewise.
18625 * genconstants.c: Likewise.
18626 * gengtype-lex.l: Likewise.
18627 * genmodes.c: Likewise.
18628 * read-rtl.c: Likewise.
18629 * rtl.c: Likewise.
18630
18631 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18632
18633 * bitmap.c: Use type-safe memory allocation macros from libiberty.
18634 * c-common.c: Likewise.
18635 * c-decl.c: Likewise.
18636 * c-lang.c: Likewise.
18637 * c-lex.c: Likewise.
18638 * c-opts.c: Likewise.
18639 * c-parse.in: Likewise.
18640 * c-typeck.c: Likewise.
18641 * genconditions.c: Likewise.
18642 * gengtype-lex.l: Likewise.
18643 * gengtype-yacc.y: Likewise.
18644 * gengtype.c: Likewise.
18645 * genmodes.c: Likewise.
18646 * gensupport.c: Likewise.
18647 * read-rtl.c: Likewise.
18648 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
18649 htab_find_slot().
18650
18651 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18652
18653 * c-decl.c (groktypename, groktypename_in_param_context): Rename
18654 variable typename to type_name.
18655 * c-lex.c (interpret_float): Likewise.
18656
18657 2004-07-25 Roger Sayle <roger@eyesopen.com>
18658
18659 * convert.c (convert_to_real, convert_to_integer,
18660 convert_to_complex): Replace calls to build with calls to buildN.
18661 * coverage.c (tree_coverage_counter_ref): Likewise.
18662 * dojump.c (do_jump): Likewise.
18663 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
18664 * emit-rtl.c (component_ref_for_mem_expr,
18665 set_mem_attributes_minus_bitpos): Likewise.
18666 * explow.c (update_nonlocal_goto_save_area): Likewise.
18667 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
18668 expand_mult_add): Likewise.
18669 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
18670 store_constructor, get_inner_reference, expand_expr_real_1,
18671 try_casesi, try_tablejump): Likewise.
18672 * function.c (expand_function_start): Likewise.
18673 * stmt.c (emit_case_bit_tests, expand_end_case_type,
18674 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
18675 * stor-layout.c (place_union_field, layout_type): Likewise.
18676 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
18677 * varasm.c (copy_constant): Likewise.
18678
18679 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18680
18681 * c-common.c: Rename all identifiers named `new'.
18682 * c-decl.c: Likewise.
18683 * gensupport.c: Likewise.
18684 * simplify-rtx.c: Likewise.
18685 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
18686 with XNEW().
18687 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
18688 with XNEWVEC().
18689
18690 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
18691
18692 PR c/15360
18693 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
18694 declarations until after calling pushdecl.
18695 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
18696 "extern" and not on whether the declaration is initialized.
18697
18698 2004-07-25 Daniel Jacobowitz <dan@debian.org>
18699
18700 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
18701 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
18702 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
18703 "cpplib.h", "c-pragma.h", "c-common.h".
18704 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
18705 (solaris_register_pragmas): New functions.
18706 * config/sol2-protos.h: New file.
18707 * config/sol2.c: New file.
18708 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
18709 (REGISTER_TARGET_PRAGMAS): New macros.
18710 (solaris_pending_aligns, solaris_pending_inits)
18711 (solaris_pending_finis): New variables.
18712 * config/t-sol2 (sol2-c.o): Update dependencies.
18713 (sol2.o): New rule.
18714 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
18715 SUBTARGET_INSERT_ATTRIBUTES.
18716 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
18717 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
18718 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
18719 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
18720 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
18721 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
18722 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
18723 * config/sparc/sparc.c (sparc_attribute_table): New.
18724 (TARGET_INSERT_ATTRIBUTES): Define in terms of
18725 SUBTARGET_INSERT_ATTRIBUTES.
18726 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
18727 is defined.
18728 * doc/extend.texi (Solaris Pragmas): New section.
18729
18730 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18731
18732 * c-common.c: Rename all identifiers named `class' to `cl'.
18733 * c-common.h: Likewise.
18734 * c-parse.in: Likewise.
18735 * c-typeck.c: Likewise.
18736 * genmodes.c: Likewise.
18737 * real.c: Likewise.
18738 * real.h: Likewise.
18739 * recog.c: Likewise.
18740 * recog.h: Likewise.
18741 * regrename.c: Likewise.
18742 * tree.h: Likewise.
18743 * c-common.c (builtin_function_2): Change type of 5th parameter from
18744 int to enum built_in_function. Change type of 8th parameter from int
18745 to bool.
18746 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
18747 with GGC_CNEW().
18748 * c-typeck.c (convert_arguments): Change type of formal_prec from
18749 int to unsigned int.
18750 * genmodes.c (blank_mode): Make a few negative constants unsigned.
18751 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
18752 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
18753 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
18754 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
18755 iterator to for_all_modes () instead of an enum because enums can't
18756 be incremented in C++.
18757
18758
18759 2004-07-25 Daniel Jacobowitz <dan@debian.org>
18760
18761 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
18762 hard registers.
18763
18764 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18765
18766 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
18767 Handle ARRAY_RANGE_REF like ARRAY_REF.
18768
18769 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
18770
18771 * c-typeck.c (digest_init): Don't allow arrays of signed or
18772 unsigned variants of wchar_t to be initialized by wide string
18773 constants. Do allow arrays of enumerated types compatible with
18774 wchar_t to be initialized by wide string constants. Refine tests
18775 distinguishing wide and narrow strings and arrays. Give specific
18776 error for arrays of other integer types initialized by string
18777 constants.
18778 (output_init_element, process_init_element): Check for
18779 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
18780 initializing with string constants.
18781
18782 2004-07-25 Richard Henderson <rth@redhat.com>
18783
18784 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
18785 on the RESULT_DECL.
18786 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
18787 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
18788 DECL_IGNORED_P to new decl.
18789
18790 2004-07-24 Zack Weinberg <zack@codesourcery.com>
18791
18792 * config/ia64/ia64.c (general_xfmode_operand)
18793 (destination_xfmode_operand): Delete.
18794 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
18795 * config/ia64/ia64.md (*movxf_internal): Use general_operand
18796 and destination_operand.
18797
18798 2004-07-24 Alexander Kabaev <kan@freebsd.org>
18799
18800 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
18801 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
18802
18803 2004-07-24 Alexander Kabaev <kan@freebsd.org>
18804 Zack Weinberg <zack@codesourcery.com
18805
18806 PR 16684
18807 * c-decl.c (diagnose_mismatched_decls): Don't issue a
18808 redundant-declaration warning the first time a builtin is
18809 declared explicitly.
18810
18811 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18812
18813 * tree.h (staticp): Change return type to bool.
18814
18815 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18816
18817 * c-common.c (c_staticp): Last episode of the staticp saga.
18818
18819 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18820
18821 * c-common.h (c_staticp): Change return type from int to bool.
18822 * tree.c (staticp): Likewise.
18823 * langhooks.h (staticp): Likewise.
18824
18825 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18826
18827 * langhooks-def.h (lhd_staticp): Change return type from int to
18828 bool in prototype to match definition.
18829
18830 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18831
18832 * system.h (bool, true, false): Don't redefine as preprocessor macros
18833 in C++.
18834
18835 2004-07-24 Roger Sayle <roger@eyesopen.com>
18836
18837 * expmed.c (init_expmed): A signed modulus by a power of two is
18838 considered cheap if its less than or equal to four instructions.
18839
18840 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18841
18842 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
18843 GGC_CNEWVAR): New macros.
18844
18845 2004-07-25 Bernardo Innocenti <bernie@develer.com>
18846
18847 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
18848 lists.
18849 * c-decl.c: Likewise.
18850 * c-format.c: Likewise.
18851 * c-lex.c: Likewise.
18852 * c-opts.c: Likewise.
18853 * c-pragma.c: Likewise.
18854 * c-typeck.c: Likewise.
18855 * gencheck.c: Likewise.
18856 * genconditions.c: Likewise.
18857 * genconfig.c: Likewise.
18858 * genflags.c: Likewise.
18859 * gengtype.c: Likewise.
18860 * gensupport.c: Likewise.
18861 * ggc-none.c: Likewise.
18862 * langhooks.c: Likewise.
18863 * statistics.h: Likewise.
18864 * stub-objc.c: Likewise.
18865 * java/decl.c: Likewise.
18866
18867 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
18868
18869 * config/m68k/m68k.c (output_scc_di): Fix coding style.
18870 (symbolic_operand): Fix prototype.
18871 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
18872 * config/m68k/m68k.md: Add constants for registers a0 and sp and
18873 use them, change from the "{...}" syntax to the simpler {...}
18874 syntax.
18875 (*cfv4_extendqisi2): Fix destination predicate.
18876 * config/m68k/m68k-protos.h: Remove various declarations also
18877 generated via PREDICATE_CODES.
18878
18879 2004-07-23 Mike Stump <mrs@apple.com>
18880
18881 * c-typeck.c (convert_for_assignment): Tightened up pointer
18882 converstions that differ in signedness.
18883
18884 2004-07-23 Zack Weinberg <zack@codesourcery.com>
18885
18886 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
18887
18888 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18889
18890 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
18891 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
18892
18893 * gimplify.c (gimplify_compound_lval): Check for no handled
18894 operations, rather than checking for explicit list of nodes.
18895 (is_gimple_addr_expr_arg_or_indirect): New function.
18896 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
18897 redundant setting of TREE_INVARIANT.
18898 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
18899 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
18900
18901 2004-07-23 Diego Novillo <dnovillo@redhat.com>
18902
18903 PR tree-optimization/16688
18904 PR tree-optimization/16689
18905 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
18906 unnecessary initialization of 'tag'.
18907 (get_tmt_for): Check that the new type tag has the same alias
18908 set as the pointed-to type.
18909 (group_aliases): Only regular variables need to be removed
18910 from the alias set of a name tag.
18911 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
18912 propagation if the two types are not compatible.
18913 (merge_alias_info): Rename from replace_ssa_names_ann.
18914 Add more checking.
18915 (replace_exp_1): If both arguments are SSA_NAMEs, check that
18916 the propagation can be done.
18917 Only call merge_alias_info on pointers.
18918 (propagate_value): Likewise.
18919 * tree-ssa-copyrename.c: Include langhooks.h.
18920 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
18921 to do the merging.
18922 Do not coalesce variables with incompatible types.
18923 (rename_ssa_copies): Call replace_ssa_name_symbol.
18924 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
18925 the same type as the underlying _DECL.
18926 * tree-ssanames.c (replace_ssa_name_symbol): New function.
18927 * tree.h (replace_ssa_name_symbol): Declare.
18928
18929 2004-07-23 Richard Henderson <rth@redhat.com>
18930
18931 PR c++/16277
18932 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
18933 unshare it properly.
18934 (gimplify_modify_expr_rhs): Push assignment from a conditional into
18935 the conditional for all non-register types.
18936
18937 2004-07-23 Richard Henderson <rth@redhat.com>
18938
18939 * expr.c (expand_expr_real_1): Don't handle non-local variables.
18940 * expr.h (fix_lexical_addr): Remove.
18941 * function.c (NEED_SEPARATE_AP): Remove.
18942 (fix_lexical_addr): Remove.
18943 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
18944 not null decl_function_context.
18945 (create_alias_vars): Likewise.
18946 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
18947 (simple_goto_p): Likewise.
18948 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
18949 * tree-ssa-ccp.c (get_default_value): Likewise.
18950 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
18951 * tree.c (needs_to_live_in_memory): Likewise.
18952 * tree-flow-inline.h (may_be_aliased): Move...
18953 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
18954 when TREE_STATIC variables may be addressable.
18955
18956 2004-07-24 Jakub Jelinek <jakub@redhat.com>
18957
18958 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
18959
18960 2004-07-23 Zack Weinberg <zack@codesourcery.com>
18961
18962 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
18963 bitmap contents if GENERATOR_FILE is defined.
18964 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
18965 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
18966
18967 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
18968
18969 * c-decl.c (start_function): Form composite type of function types
18970 rather than copying type from previous prototype declaration.
18971
18972 2004-07-23 Janis Johnson <janis187@us.ibm.com>
18973
18974 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
18975 the const qualifier for the second argument in the C++ functions.
18976
18977 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
18978 specific pointer types.
18979
18980 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
18981 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
18982 for vector bool and/or vector pixel, add C++ and C missing support.
18983 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
18984 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
18985 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
18986 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
18987 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
18988 missing C++ and C support for vector bool and/or vector pixel.
18989 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
18990 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
18991 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
18992 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
18993 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
18994 C++ and C types used for vector bool and/or vector pixel.
18995 (vec_st, vec_stl): Add C++ support for vector pixel.
18996 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
18997 (vec_all_ne): Add C++ support for vector pixel.
18998
18999 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
19000 (vec_vmulesb): Add missing C++ function.
19001 (vec_perm): Fix type of third argument in C++ function.
19002 (vec_vsum4shs): Fix C++ function name.
19003 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
19004 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
19005 argument passed to the error handler in C macro.
19006 (vec_nmsub): Remove extra parens around argument names in C macro.
19007 (vec_packpx): Add missing parens in C macro.
19008
19009 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
19010
19011 * machmode.def: Remove vector modes.
19012 * config/alpha/alpha-modes.def: Add supported vector modes.
19013 * config/arm/arm-modes.def: Likewise.
19014 * config/frv/frv-modes.def: Likewise.
19015 * config/i386/i386-modes.def: Likewise.
19016 * config/rs6000/rs6000-modes.def: Likewise.
19017 * config/sh/sh-modes.def: Likewise.
19018
19019 2004-07-23 Matthias Klose <doko@debian.org>
19020
19021 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
19022 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
19023 * config.h: Regenerate.
19024 * configure: Likewise.
19025
19026 2004-07-22 Mark Mitchell <mark@codesourcery.com>
19027
19028 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
19029 generated SYMBOL_REFs for labels.
19030 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
19031 Change prototype.
19032 (machopic_stub_name): Remove.
19033 (machopic_indirection_name): New function.
19034 (machopic_mcount_stub_name): Likewise.
19035 (machopic_classify_name): Remove.
19036 (machopic_function_base_sym): New function.
19037 (machpoic_classify_symbol): Likewise.
19038 (machopic_classify_ident): Remove.
19039 (machopic_define_ident): Likewise.
19040 (machopic_define_name): Likewise.
19041 (machopic_name_defined_p): Likewise.
19042 (machopic_ident_defined_p): Likewise.
19043 (darwin_strip_name_encoding): Likewise.
19044 (machopic_define_symbol): New function.
19045 * config/darwin.c (hashtab.h): Include.
19046 (machopic_defined_list): Remove.
19047 (machopic_classify_ident): Likewise.
19048 (machopic_classify_name): Likewise.
19049 (machopic_ident_defined_p): Likewise.
19050 (machopic_define_ident): Likewise.
19051 (machopic_define_name): Likewise.
19052 (machopic_symbol_defined_p): New function.
19053 (machopic_classify_symbol): Likewise.
19054 (machopic_data_defined_p): Use machopic_classify_symbol.
19055 (machopic_define_symbol): New function.
19056 (machopic_function_base_sym): New function.
19057 (machopic_non_lazy_pointers): Remove.
19058 (machopic_non_lazy_ptr_name): Likewise.
19059 (machopic_stubs): Likewise.
19060 (machopic_stub_name): Likewise.
19061 (NON_LAZY_POINTER_SUFFIX): New macro.
19062 (STUB_SUFFIX): Likewise.
19063 (machopic_indirection): New structure.
19064 (machopic_indirections): New variable.
19065 (machopic_indirection_hash): New function.
19066 (machopic_indirection_eq): Likewise.
19067 (machopic_indirection_name): Likewise.
19068 (machopic_mcount_stub_name): New function.
19069 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
19070 hash table.
19071 (machopic_indirect_data_reference): Rework to use new functions.
19072 (machopic_indirect_call_target): Likewise.
19073 (machopic_legitimize_pic_address): Likewise.
19074 (machopic_output_indirection): New function.
19075 (machopic_finish): Use it.
19076 (machopic_operand_p): Rework to use new functions.
19077 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
19078 (darwin_strip_name_encoding): Remove.
19079 (update_non_lazy_ptrs): Remove.
19080 (update_stubs): Likewise.
19081 (darwin_non_lazy_pcrel): Use new functions.
19082 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
19083 (ASM_OUTPUT_LABELREF): Likewise.
19084 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
19085 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
19086 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
19087 (TARGET_STRIP_NAME_ENCODING): Do not use
19088 darwin_strip_name_encoding.
19089 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
19090 darwin_strip_name_encoding.
19091 * config/i386/darwin.h (FUNCTION_PROFILER): Use
19092 machopic_mcount_stub_name.
19093 * config/i386/i386.c (x86_output_mi_thunk): Use
19094 machopic_indirection_name, not machopic_stub_name.
19095 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
19096 machopic_function_base_sym.
19097 (print_operand): Use machopic_classify_symbol.
19098 (rs6000_emit_prologue): Use machopic_function_base_sym.
19099 (output_profile_hook): Do not use machopic_stub_name.
19100 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
19101
19102 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
19103
19104 PR c/7284
19105 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
19106 as multiplication.
19107
19108 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
19109
19110 * doc/implement-c.texi: New file.
19111 * doc/extend.texi (C Implementation): Move to there.
19112 * doc/gcc.texi: Include implement-c.texi.
19113 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
19114
19115 2004-07-22 Jason Merrill <jason@redhat.com>
19116
19117 * integrate.c (copy_decl_for_inlining): Remove invisible reference
19118 handling.
19119 * tree-inline.c (setup_one_parameter): Likewise.
19120
19121 2004-07-22 Brian Booth <bbooth@redhat.com>
19122
19123 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
19124 (substitute_and_fold): Propigate into VUSE operands when possible.
19125 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
19126 (cp_lattice_meet): Handle merging of latticevalues when
19127 UNKNOWN_VAL is present.
19128 (visit_stmt): Visit assignments with V_MUST_DEFs.
19129 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
19130 (ccp_fold): Deal with RHS' that are constant and virtual.
19131 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
19132 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
19133 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
19134 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
19135 computing immediate uses.
19136 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
19137 transition.
19138 (replace_vuse_in): New function.
19139 (likely_value): Add check of vuse operands.
19140 (get_default_value): Set the default value of virtually defined
19141 variables to UKNOWN_VAL instead of VARYING.
19142
19143 2004-07-22 Richard Henderson <rth@redhat.com>
19144
19145 * expr.c (emit_push_insn): Don't use set_mem_attributes.
19146
19147 2004-07-22 Richard Henderson <rth@redhat.com>
19148
19149 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
19150 variables due to conditional compilation.
19151
19152 2004-07-22 Diego Novillo <dnovillo@redhat.com>
19153
19154 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
19155 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
19156 Release SSA names that have been re-renamed.
19157 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
19158 variable.
19159 * tree-ssa-alias.c (init_alias_info): If aliases have been
19160 computed before, clear existing alias information.
19161 (create_name_tags): Do no fixup PT_ANYTHING pointers.
19162 If the new name tag for a pointer is different than the one it
19163 had before, mark the old tag for renaming.
19164 (replace_may_alias): New function.
19165 (group_aliases): Call it.
19166 (setup_pointers_and_addressables): Always call get_tmt_for.
19167 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
19168 once.
19169 (set_pt_anything): New local function.
19170 (set_pt_malloc): New local function.
19171 (merge_pointed_to_info): Don't merge pointed-to variables from
19172 the original pointer if the destination is pointing to an
19173 unknown location.
19174 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
19175 (add_pointed_to_var): Do not add a variable to the points-to
19176 set if the pointer is already pointing to anywhere.
19177 (collect_points_to_info_r): If the defining statement is a PHI
19178 node, only merge pointed-to information if the argument has
19179 already been visited.
19180 (get_tmt_for): Only create a new tag if the pointer didn't
19181 have one already.
19182 (dump_alias_info): Emit more information.
19183 (dump_points_to_info_for): Likewise.
19184 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
19185 try to get the annotation of an SSA_NAME.
19186 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
19187 alias sets when checking is enabled.
19188 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
19189 (eliminate): Mark basic blocks that will need
19190 EH information cleaned up.
19191 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
19192 predecessor.
19193 Initialize need_eh_cleanup.
19194 (fini_pre): Call tree_purge_all_dead_eh_edges and
19195 cleanup_tree_cfg if needed.
19196 Free need_eh_cleanup.
19197 * tree-ssa.c (verify_ssa_name): New function.
19198 (verify_def): Call it.
19199 Re-arrange to avoid printing too many error messages.
19200 (verify_use): Likewise.
19201 (verify_phi_args): Likewise.
19202 (verify_flow_insensitive_alias_info): New function.
19203 (verify_flow_sensitive_alias_info): New function.
19204 (verify_alias_info): New function.
19205 (verify_ssa): Call verify_alias_info.
19206 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
19207 program.
19208 Re-arrange to avoid printing too many error messages.
19209 * tree-ssanames.c (make_ssa_name): Clear
19210 SSA_NAME_IN_FREE_LIST.
19211 (release_ssa_name): Never release a default definition.
19212 (release_defs): New function.
19213 * tree.h: Declare it.
19214 * tree-ssa-dce.c (remove_dead_stmt): Call it.
19215
19216 2004-07-22 Diego Novillo <dnovillo@redhat.com>
19217
19218 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
19219 If true, do a depth-first search. Do a breadht-first search,
19220 otherwise.
19221 (walk_use_def_chains): Add new argument IS_DFS.
19222 Update all users.
19223 * tree-flow.h (walk_use_def_chains): Update prototype.
19224
19225 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
19226
19227 * config/cris/cris.md: Tweak formatting.
19228 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
19229 (mover2side, moverside, movemside, movei, op3, andu): Replace
19230 live define_peephole:s with define_peephole2 near-equivalents.
19231 Delete the rest.
19232 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
19233 word-size modes.
19234 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
19235 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
19236 "*mov_sidesi_mem" respectively.
19237
19238 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
19239
19240 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
19241 (gimplify_build1): Move from tree-complex.c do_unop.
19242 (gimplify_build2): Move from tree-complex.c do_binop.
19243 (gimplify_build3): New.
19244 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
19245 Adjust throughout to call the functions above.
19246 * tree-flow.h: Declare the functions above.
19247 * tree-nested.c (gimplify_val): Rename to...
19248 (tsi_gimplify_val): ... this.
19249
19250 * Makefile.in (tree_complex.o): Update dependencies.
19251 (stor-layout.o): Depend on regs.h.
19252 * c-common.c (handle_vector_size_attribute): Update for
19253 vector types without corresponding vector modes.
19254 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
19255 a corresponding vector mode is not available.
19256 * print-tree.c (print_node): Print nunits for vector types
19257 * regclass.c (have_regs_of_mode): New.
19258 (init_reg_sets_1): Initialize it and use it instead
19259 of allocatable_regs_of_mode.
19260 * regs.h (have_regs_of_mode): Declare it.
19261 * stor-layout.c (layout_type): Pick a mode for vector types.
19262 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
19263 build_replicated_const, do_unop, do_binop, do_plus_minus,
19264 do_negate, expand_vector_piecewise, expand_vector_parallel,
19265 expand_vector_addition, expand_vector_operations_1,
19266 expand_vector_operations, tree_lower_operations,
19267 pass_lower_vector_ssa, pass_pre_expand): New.
19268 (expand_complex_operations, pass_lower_complex): Remove.
19269 * tree-optimize.c (init_tree_optimization_passes): Adjust
19270 pass ordering for changes in tree-complex.c.
19271 * tree-pass.h: Declare new passes.
19272 * tree.c (finish_vector_type): Remove.
19273 (make_vector_type): New.
19274 (build_vector_type_for_mode, build_vector_type): Rewritten.
19275 * tree.def (VECTOR_TYPE): Document where the number of
19276 subparts is stored.
19277 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
19278 (make_vector): Remove declaration.
19279
19280 2004-07-21 Richard Henderson <rth@redhat.com>
19281
19282 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
19283 TREE_THIS_VOLATILE, may_aliases, or optimization level.
19284 (remove_useless_vars): Dump debugging info.
19285 (expand_used_vars): Move ...
19286 * cfgexpand.c (expand_used_vars): ... here. Make static.
19287 * tree-flow-inline.h (set_is_used): New.
19288 (set_default_def): Use get_var_ann.
19289 * tree-flow.h: Update decls.
19290 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
19291 (create_ssa_var_map): Use it.
19292 * tree-ssa.c (set_is_used): Remove.
19293
19294 2004-07-22 Ben Elliston <bje@au.ibm.com>
19295
19296 * gdbinit.in: Set a breakpoint on internal_error.
19297
19298 2004-07-21 Richard Henderson <rth@redhat.com>
19299
19300 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
19301 to create a new basic block.
19302
19303 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
19304
19305 PR c/15052
19306 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
19307 return type on function definitions. Move other warnings for
19308 qualified return type to -Wreturn-type. Do not condition any such
19309 warnings on -pedantic. Update comments.
19310 (start_function): Only copy function type from previous prototype
19311 declaration if return types are compatible.
19312 * c-typeck.c (function_types_compatible_p): Don't condition
19313 warning for incompatibility of volatile qualifiers on the return
19314 type on -pedantic. Update comment.
19315 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
19316
19317 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
19318
19319 * c-typeck.c (set_init_index): Require designator to be of integer
19320 type.
19321
19322 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
19323
19324 PR c/11250
19325 * c-parse.in (init): Change to exprtype.
19326 (primary): Set original_code for STRING to STRING_CST.
19327 Call maybe_warn_string_init for compound literals.
19328 (initdcl, notype_initdcl): Call maybe_warn_string_init.
19329 (initval): Update.
19330 * c-tree.h (maybe_warn_string_init): New.
19331 (pop_init_level, process_init_element): Use struct c_expr.
19332 (struct c_expr): Update comment.
19333 * c-typeck.c (maybe_warn_string_init): New function.
19334 (digest_init): Call it. Additional parameter strict_string. All
19335 callers changed.
19336 (output_init_element): Likewise.
19337 (struct constructor_stack): Use struct c_expr for
19338 replacement_value.
19339 (really_start_incremental_init, push_init_level): Update.
19340 (pop_init_level): Update. Return struct c_expr.
19341 (process_init_level): Update. Take struct c_expr argument.
19342
19343 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
19344
19345 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
19346 commit.
19347
19348 2004-07-21 Eric Christopher <echristo@redhat.com>
19349
19350 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
19351 removal.
19352 * c-decl.c (pop_scope): Ditto.
19353 * calls.c (expand_call): Remove call to current_nesting_level,
19354 update comment accordingly. Remove calls to expand_start_target_temps
19355 and expand_end_target_temps.
19356 * cfgexpand.c (construct_init_block): Remove call to
19357 expand_start_bindings_and_block.
19358 (construct_exit_block): Remove call to expand_end_bindings.
19359 * expr.c (safe_from_p): Remove BIND_EXPR handling.
19360 (expand_expr_real_1): Ditto. Fix formatting.
19361 (expand_vars): Delete.
19362 * stmt.c (POPSTACK): Remove block_stack.
19363 (stmt_status): Remove x_block_stack.
19364 (block_stack): Delete.
19365 (expand_start_bindings_and_block): Ditto.
19366 (expand_start_target_temps): Ditto.
19367 (expand_end_target_temps): Ditto.
19368 (current_nesting_level): Ditto.
19369 (warn_about_unused_variables): Ditto.
19370 (expand_end_bindings): Ditto.
19371 * tree.h: Remove declarations for above.
19372
19373 2004-07-21 Steven Bosscher <stevenb@suse.de>
19374
19375 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
19376 * rtl.c (note_insn_name): Likewise.
19377 * print-rtl.c (print_rtx): Don't print it.
19378 * cfgrtl.h (can_delete_note_p): Don't handle it.
19379 (rtl_delete_block): Likewise.
19380 * passes.c (rest_of_handle_guess_branch_prob): Remove.
19381 (rest_of_compilation): Don't call it.
19382 * predict.c (process_note_predictions, process_note_prediction,
19383 note_prediction_to_br_prob): Remove.
19384 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
19385 * stmt.c (return_prediction): Remove.
19386 (expand_value_return): Don't call it. Don't add prediction
19387 notes for return statements.
19388
19389 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
19390
19391 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
19392 once.
19393
19394 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
19395
19396 * c-common.c (vector_types_convertible_p): Use vector types'
19397 TYPE_SIZE and TREE_TYPE instead of their mode.
19398 * convert.c (convert_to_integer): Likewise.
19399 (convert_to_vector): Likewise.
19400 * fold-const.c (fold_convert): Likewise.
19401 * varasm.c (output_constant): Likewise.
19402 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
19403 Allow a VECTOR_TYPE initializer to be made of several vectors.
19404 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
19405 of cleared and need_to_clear, and use fold_convert.
19406 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
19407 integer vectors.
19408
19409 2004-07-20 Richard Henderson <rth@redhat.com>
19410
19411 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
19412 (expand_gimple_basic_block): out from here. Renamed from expand_block.
19413
19414 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
19415
19416 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
19417 enormous cost if not TARGET_HARD_MUL.
19418
19419 2004-07-20 Andrew Pinski <apinski@apple.com>
19420
19421 PR target/16557
19422 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
19423 (ASM_SPEC): here.
19424
19425 2004-07-21 Paul brook <paul@codesourcery.com>
19426
19427 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
19428
19429 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19430
19431 * fold-const.c (operand_equal_p): Temporarily support NULL args.
19432 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
19433 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
19434
19435 2004-07-20 Zack Weinberg <zack@codesourcery.com>
19436
19437 * rtl.h (plus_constant): Delete.
19438 (plus_constant_wide): Rename to plus_constant.
19439 (plus_constant_for_output_wide): Delete vestigial prototype.
19440 (GEN_INT): Remove unnecessary cast.
19441 * tree.h (build_int_2, size_int_type): Delete.
19442 (build_int_2_wide): Rename to build_int_2.
19443 (size_int_wide): Rename to size_int_kind.
19444 (size_int_type_wide): Rename to size_int_type.
19445 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
19446 Remove unnecessary cast.
19447 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
19448 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
19449 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
19450 (size_int_type_wide): Rename size_int_type.
19451 (int_const_binop): Use size_int_type.
19452 * c-lex.c (interpret_integer): Use build_int_2.
19453 * final.c (split_double): Remove unnecessary casts.
19454 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
19455
19456 2004-07-20 Richard Henderson <rth@redhat.com>
19457
19458 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
19459 (gimplify_compound_lval): Use is_gimple_tmp_reg.
19460 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
19461 (is_gimple_tmp_reg): New.
19462 * tree-gimple.h (is_gimple_tmp_reg): Declare.
19463
19464 2004-07-20 Richard Henderson <rth@redhat.com>
19465
19466 * tree-pretty-print.c (dump_generic_node): Dump
19467 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
19468
19469 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
19470
19471 * tree-mudflap.c (mf_set_options_fndecl): New tree.
19472 (mudflap_init): Set it.
19473 (mudflap_register_call): Remove __mf_init call.
19474 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
19475 to pass "-ignore-reads" option to libmudflap if needed.
19476
19477 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
19478
19479 PR c++/14607
19480 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
19481 (MAKE_DECL_ONE_ONLY): Undefine.
19482 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
19483 readonly_data, one_only_data_section, forget_section): New prototypes.
19484 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
19485 functions.
19486 (pa_select_section): Add one-only (COMDAT) support.
19487 * pa.h (struct machine_function): Define.
19488 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
19489 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
19490 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
19491 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
19492 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
19493 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
19494 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
19495 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
19496 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
19497 for EXTRA_SECTION_FUNCTIONS.
19498 * doc/install.texi: Update binutils requirements.
19499
19500 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
19501
19502 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
19503 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
19504 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
19505 size_t.
19506 (struct VEC): Use unsigned for num and alloc.
19507 * vec.c (struct vec_prefix): Likewise.
19508 (vec_o_reserve): Adjust.
19509
19510 * dbxout.c (dbxout_type): Fix printf format.
19511
19512 * tree.h (binfo_member): Remove.
19513 * tree.c (binfo_member): Remove.
19514
19515 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
19516
19517 * tree.h: Include vec.h
19518 (DEF_VEC_P(tree)): New type.
19519 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
19520 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
19521 (BINFO_LANG_SLOT): Remove.
19522 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
19523 (struct tree_binfo): Turn base_binfos into a trailing
19524 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
19525 (binfo_lang_slots): Remove.
19526 * tree.c (binfo_lang_slots): Remove.
19527 (make_tree_binfo_stat): Take a base binfo count, not a
19528 lang slot count. Adjust.
19529 * Makefile.in (TREE_H): Add vec.h
19530 * alias.c (record_component_aliases): Adjust BINFO access.
19531 * dbxout.c (dbxout_type): Likewise.
19532 * dwarf2out.c (gen_member_die): Likewise.
19533 * sdbout.c (sdbout_one_type): Likewise.
19534 * tree-dump.c (deque_and_dump): Likewise.
19535 * config/i386/i386.c (classify_argument,
19536 contains_128bit_aligned_vector_p): Likewise.
19537 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
19538 * doc/c-tree.texi (Classes): Update BINFO documentation.
19539
19540 2004-07-20 Steven Bosscher <stevenb@suse.de>
19541
19542 * c-common.h (check_case_value): Remove prototype.
19543 (c_add_case_label): Adjust prototype.
19544 * c-common.c (check_case_value): Make static.
19545 (check_case_bounds): New function.
19546 (c_add_case_label): Use it. Take new argument orig_type.
19547 * c-typeck.c (struct c_switch): New orig_type field.
19548 (c_start_case): Set it.
19549 (do_case): Pass it to c_add_case_label.
19550 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
19551 cases from here. Add the labels in reverse order.
19552 * stmt.c (struct case_node): Adjust comment. Remove balance field.
19553 (add_case_node): Return nothing, don't check for duplicate cases.
19554 Insert new case nodes in a list, not in an AVL tree.
19555 (expand_end_case_type): Don't turn a case tree into a case list.
19556 (case_tree2list): Remove.
19557 * tree.h (add_case_node): Adjust prototype.
19558
19559 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
19560
19561 * genattr.c (struct range, struct function_unit,
19562 write_units, extend_range, init_range): Remove them.
19563 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
19564 Output "#define INSN_SCHEDULING" here.
19565 * genattrtab.c (struct range, struct function_unit_op,
19566 struct function_unit, struct dimension, enum operator,
19567 operate_exp, expand_units, simplify_knowing,
19568 encode_units_mask, simplify_by_exploding,
19569 find_and_mark_used_attributes, unmark_used_attributes,
19570 add_values_to_cover, increment_current_value,
19571 test_for_current_value, simplify_with_current_value,
19572 simplify_with_current_value_aux, gen_unit,
19573 write_unit_name, write_function_unit_info,
19574 write_complex_function, write_toplevel_expr,
19575 find_single_value, extend_range): Remove.
19576 (write_attr_get): Do not handle common_av->value
19577 being an FFS.
19578 (struct attr_desc): Remove func_units_p and blockage_p.
19579 (write_attr_valueq): Do not handle them.
19580 (find_attr): Do not clear them.
19581 (make_internal_attr): Do not initialize them.
19582 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
19583 * sched-vis.c (init_target_units, insn_print_units,
19584 init_block_visualization, print_block_visualization,
19585 visualize_scheduled_insns, visualize_no_unit,
19586 visualize_stall_cycles, visualize_alloc,
19587 visualize_free, target_units, get_visual_tbl_length,
19588 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
19589 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
19590 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
19591 * haifa-sched.c (blockage_range, clear_units,
19592 schedule_unit, actual_hazard, potential_hazard,
19593 insn_unit, unit_last_insn, unit_tick,
19594 actual_hazard_this_instance, potential_hazard,
19595 schedule_unit, max_insn_queue_index_value): Remove.
19596 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
19597 max_insn_queue_index.
19598 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
19599 * doc/md.texi (Processor pipeline description): Remove
19600 references to old pipeline descriptions.
19601 (Automaton pipeline description): Merge with the above.
19602 (Old pipeline description, Comparison of the two descriptions):
19603 Remove.
19604
19605 * bt-load.c (migrate_btr_def): Remove references to
19606 use_pipeline_interface.
19607 * haifa-sched.c (insn_cost, schedule_insn,
19608 schedule_block, advance_one_cycle, sched_init,
19609 queue_to_ready, sched_finish): Likewise.
19610 * modulo-sched.c (sms_schedule, advance_one_cycle,
19611 ps_has_conflicts): Likewise.
19612 * sched-rgn.c (init_ready): Likewise.
19613 (debug_dependencies): Likewise, and remove an "if (1)".
19614 * target.h (use_dfa_pipeline_interface): Remove.
19615 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19616 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19617 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19618 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19619 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19620 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19621 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19622 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19623 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19624 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19625 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19626 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19627 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19628 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19629 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19630 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19631 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19632 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19633 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
19634
19635 2004-07-19 Roger Sayle <roger@eyesopen.com>
19636
19637 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
19638
19639 2004-07-19 Jeff Law <law@redhat.com>
19640
19641 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
19642 (get_eq_expr_value): Use it. Simplify slightly.
19643
19644 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
19645
19646 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
19647 (umulsidi3_32bit_r4000): Likewise.
19648
19649 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
19650
19651 * vec.h: Propagate location information properly.
19652 (VEC_T_iterate): Add result pointer parameter.
19653 (VEC_T_space): New.
19654 (VEC_T_reserve): Use it.
19655
19656 2004-07-19 Daniel Jacobowitz <dan@debian.org>
19657
19658 * Makefile.in (c-format.o): Depend on c-format.h.
19659 * c-format.h: New file.
19660 (struct format_char_info): Add CHAIN member.
19661 * c-format.c: Move some types and constants to c-format.h.
19662 (format_type_error): Set to -1.
19663 (struct function_format_info): Use an int for format_type.
19664 (decode_format_type): Return an int. Return format_type_error
19665 on error.
19666 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
19667 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
19668 (scan_char_table, time_char_table, monetary_char_table): Initialize
19669 CHAIN to NULL.
19670 (n_format_types): New variable.
19671 (check_format_info_main): Handle CHAIN in format_char_info.
19672 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
19673 TARGET_N_FORMAT_TYPES.
19674 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
19675 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
19676 * config/sol2-c.c: New file.
19677 * config/t-sol2: New file.
19678 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
19679 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
19680 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
19681
19682 * doc/extend.texi (Target Format Checks): New section.
19683 (Function Attributes): Mention it.
19684 * doc/invoke.texi: Mention target format checks.
19685 * doc/sourcebuild.texi: Mention target format checks.
19686 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
19687 TARGET_FORMAT_TYPES.
19688
19689 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
19690
19691 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
19692 added.
19693 * config/s390/s390.c (regclass_map initializer): Register 35 added to
19694 ADDR_REGS.
19695 (load_multiple_operation, store_multiple_operation): Removed
19696 pointless sanity check.
19697 (s390_decompose_address): Added check for return_address_pointer_rtx.
19698 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
19699 (s390_return_address_offset): New function.
19700 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
19701 (FRAME_REGNO_P): Added check for register 35.
19702 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
19703 REG_ALLOC_ORDER): Appended entry for register 35.
19704 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
19705 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
19706 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
19707 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
19708 is eliminable using stack pointer or hard frame pointer.
19709 (REGISTER_NAMES): Added name for register 35.
19710 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
19711 pointless sanity check.
19712
19713 2004-07-19 Roger Sayle <roger@eyesopen.com>
19714
19715 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
19716 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
19717 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
19718 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
19719 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
19720 (fold_relational_const): Tidy up handling of floating point
19721 comparisons by calling real_compare. Remove tree_expr_nonzero_p
19722 transformation; fold_relational_const assumes constant operands.
19723
19724 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
19725
19726 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
19727 directory.
19728
19729 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
19730
19731 * c-tree.h (struct c_expr): Define.
19732 (C_SET_EXP_ORIGINAL_CODE): Remove.
19733 (parser_build_binary_op, build_compound_expr): Update prototypes.
19734 * c-parse.in (%union): Add exprtype.
19735 (FUNC_NAME): Mark as ttype.
19736 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
19737 exprtype.
19738 (expr): Update. Define directly in terms of expr_no_commas
19739 instead of using nonnull_exprlist.
19740 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
19741 offsetof_member_designator, typespec_nonreserved_nonattr, init,
19742 initval, designator, component_declarator,
19743 component_notype_declarator, enumerator, array_declarator,
19744 condition, exexpr, switch_statement, stmt_nocomp, stmt,
19745 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
19746 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
19747 where appropriate.
19748 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
19749 * c-common.c (c_common_truthvalue_conversion): Don't check
19750 C_EXP_ORIGINAL_CODE.
19751 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
19752 Don't use C_EXP_ORIGINAL_CODE.
19753 (default_conversion, default_function_array_conversion): Don't use
19754 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
19755 (internal_build_compound_expr): Merge into build_compound_expr.
19756 (build_compound_expr): Take two operands instead of a TREE_LIST.
19757 * objc/objc-act.c (get_super_receiver): Update calls to
19758 build_compound_expr.
19759
19760 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
19761
19762 * config/sh/sh.c (sh_use_dfa_interface): Remove.
19763 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
19764 hook_int_void_1.
19765 * config/sh/sh.md: Extract pipeline descriptions
19766 into separate files.
19767 * config/sh/sh1.md: New file, extracted from sh.md.
19768 * config/sh/sh4.md: New file, extracted from sh.md.
19769 * config/sh/shmedia.md: New file, extracted from sh.md
19770 and rewritten using new-style pipeline description.
19771
19772 2004-07-18 Zack Weinberg <zack@codesourcery.com>
19773
19774 * config/pa/pa.md: Delete the two remaining define_peephole
19775 patterns.
19776
19777 2004-07-18 Steven Bosscher <stevenb@suse.de>
19778 Joseph S. Myers <jsm@polyomino.org.uk>
19779
19780 * c-common.c (c_common_truthvalue_conversion): Don't warn if
19781 TREE_NO_WARNING is set.
19782
19783 2004-07-18 Roger Sayle <roger@eyesopen.com>
19784
19785 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
19786 simplify_builtin_strncmp): Delete.
19787 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
19788 Change argument to accept an arglist instead of an "exp". Assume
19789 that the return type is always integer_type_node. Copy missing
19790 transformations from their now obsolete simplify_builtin_*
19791 equivalents.
19792 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
19793 fold_builtin_strcmp and fold_builtin_strncmp.
19794 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
19795 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
19796 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
19797
19798 2004-07-18 Daniel Jacobowitz <dan@debian.org>
19799
19800 * Makefile.in (tree-alias-common.o): Update dependencies.
19801
19802 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
19803
19804 * cfgloop.c (flow_loop_nested_p): Fix comment.
19805
19806 2004-07-17 Jason Merrill <jason@redhat.com>
19807
19808 PR c++/16115
19809 * stor-layout.c (relayout_decl): New fn.
19810 * tree.h: Declare it.
19811 (DECL_BY_REFERENCE): New macro.
19812
19813 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
19814
19815 * libgcc2.c (__enable_execute_stack): New symbol.
19816 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
19817 and declare __enable_execute_stack.
19818 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
19819 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
19820 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
19821 ENABLE_EXECUTE_STACK.
19822 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
19823 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
19824 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
19825 ENABLE_EXECUTE_STACK.
19826 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
19827 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
19828 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
19829 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
19830 ENABLE_EXECUTE_STACK.
19831 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
19832 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
19833 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
19834 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
19835 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
19836 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
19837 (sparc64_initialize_trampoline): Likewise.
19838 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
19839
19840 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
19841
19842 * langhooks.h (builtin_function): New langhook.
19843 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
19844 (LANG_HOOKS_INITIALIZER): Update.
19845 * tree.h (builtin_function): Remove.
19846 * doc/tm.texi: Update.
19847 * c-tree.h (builtin_function): Declare.
19848 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
19849 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
19850 config/ia64/ia64.c, config/iq2000/iq2000.c,
19851 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
19852 config/stormy16/stormy16.c: All callers of builtin_function
19853 changed.
19854
19855 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
19856
19857 PR target/16556
19858 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
19859 Remove white space after the backslash.
19860
19861 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
19862
19863 PR rtl-optimization/16294
19864 * resource.c (return_insn_p): New predicate.
19865 (mark_target_live_regs): Use it. Special-case return insns.
19866 (init_resource_info): Use it. Don't scan the epilogue past
19867 a return.
19868
19869 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19870
19871 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
19872 destroy dominance information.
19873 * passes.c (rest_of_handle_loop2): Free dominance information.
19874 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
19875 jump threading.
19876 (thread_jumps): Update dominance information and remove unreachable
19877 blocks.
19878 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
19879 information and remove the unreachable block.
19880
19881 2004-07-17 Graham Stott <graham.stott@btinternet.com>
19882
19883 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
19884
19885 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
19886
19887 * doc/sourcebuild.texi: Remove libf2c entry.
19888
19889 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
19890
19891 * config/i386/i386.md (movv16qi_internal): Fix typo.
19892
19893 2004-07-17 Steven Bosscher <stevenb@suse.de>
19894
19895 * final.c (final_scan_insn): Fix broken commit from previous
19896 patch.
19897
19898 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
19899
19900 * c-typeck.c (parser_build_binary_op): Condition warnings for
19901 X<=Y<=Z on -Wparentheses instead of -Wextra.
19902 * doc/invoke.texi: Update. Document that most of -Wparentheses is
19903 supported for C only.
19904
19905 2004-07-17 Steven Bosscher <stevenb@suse.de>
19906
19907 * cfgcleanup.c (try_simplify_condjump): Don't remove line
19908 notes to avoid unreachable code warnings.
19909 * toplev.c (backend_init): Don't emit line notes for
19910 unreachable code warnings.
19911
19912 * combine.c (distribute_notes): Don't distribute a
19913 REG_VTABLE_REF note.
19914 * final.c (final_scan_insn): Don't handle it.
19915 * rtl.c (reg_note_name): Remove it.
19916 * rtl.h (enum reg_node): Dito.
19917
19918 * emit-rtl.c (force_line_numbers, restore_line_number_status):
19919 Remove.
19920 * rtl.h (force_line_numbers, restore_line_number_status):
19921 Remove prototypes.
19922
19923 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
19924 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
19925 (using_eh_for_cleanups): Also moved here.
19926
19927 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
19928 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
19929 to expand_start_case and add_case_node.
19930 * stmt.c (struct nesting): Cleanup unused fields condition_code,
19931 last_unconditional_cleanup, nominal_type, printname, and
19932 line_number_status.
19933 (struct fixup_goto): Remove.
19934 (struct stmt_status): Remove x_goto_fixup_chain field.
19935 (goto_fixup_chain): Remove.
19936 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
19937 pushcase, pushcase_range): Remove.
19938 (expand_start_bindings_and_block): Don't set unused fields in
19939 the nesting stack.
19940 (expand_start_case, add_case_node): Cleanup unused formal arguments.
19941 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
19942 instead of emit_jump_if_reachable.
19943 (emit_case_nodes): Likewise.
19944 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
19945 static.
19946 (update_eh_label): Work around left-over exception handing regions.
19947 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
19948 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
19949 (pass_cleanup_cfg_post_optimizing): New pass.
19950 (init_tree_optimization_passes): Run the new pass after all
19951 optimizations.
19952 * tree.h (pushcase, pushcase_range): Remove prototypes.
19953 (expand_start_case, add_case_node): Update prototypes.
19954
19955 2004-07-16 Krister Walfridsson <cato@df.lth.se>
19956
19957 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
19958
19959 2004-07-16 Richard Henderson <rth@redhat.com>
19960
19961 * builtins.c (std_expand_builtin_va_arg): Remove.
19962 (expand_builtin_va_arg): Remove.
19963 * expr.h: Don't declare them.
19964 * gimplify.c (mark_decls_volatile_r): Remove.
19965 (copy_if_shared_r): Don't call it.
19966 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
19967 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
19968 * gimple-low.c (lower_stmt): Likewise.
19969 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
19970 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
19971 * tree-ssa-operands.c (get_expr_operands): Likewise.
19972 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
19973 EXPAND_BUILTIN_VA_ARG.
19974 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
19975 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
19976 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
19977 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
19978
19979 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
19980
19981 * tree-ssa-pre.c (insert_aux): Break out if we hit
19982 a critical edge.
19983
19984 2004-07-16 Richard Henderson <rth@redhat.com>
19985
19986 * basic-block.h (remove_fake_exit_edges): Declare.
19987 * cfganal.c (remove_fake_predecessors): Rename from
19988 remove_fake_successors; iterate over predecessors.
19989 (remove_fake_exit_edges): New.
19990 * cfgcleanup.c (try_optimize_cfg): Use it.
19991 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
19992 * predict.c (estimate_probability): Likewise.
19993 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
19994 * tree-cfg.c (make_edges): Likewise.
19995 * tree-ssa-pre.c (fini_pre): Likewise.
19996 * profile.c (instrument_edges): Don't remove_fake_edges.
19997 (branch_prob): Do it earlier here.
19998
19999 2004-07-16 Richard Henderson <rth@redhat.com>
20000
20001 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
20002 switchification wrt CONSTRUCTOR. Document the reason.
20003
20004 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
20005
20006 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
20007 that prevented descriptive __mf_check source location strings.
20008
20009 2004-07-16 Richard Henderson <rth@redhat.com>
20010
20011 * tree-def (WITH_SIZE_EXPR): New.
20012 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
20013 * expr.c (expand_expr_real_1): Likewise.
20014 * gimplify.c (maybe_with_size_expr): New.
20015 (gimplify_arg, gimplify_modify_expr): Use it.
20016 (gimplify_modify_expr_to_memcpy): Take size parameter.
20017 (gimplify_modify_expr_to_memset): Likewise.
20018 (gimplify_expr): Handle WITH_SIZE_EXPR.
20019 * tree-alias-common.c (find_func_aliases): Likewise.
20020 * tree-eh.c (tree_could_trap_p): Likewise.
20021 (tree_could_throw_p): Likewise.
20022 * tree-gimple.c (is_gimple_lvalue): Likewise.
20023 (get_call_expr_in): Likewise.
20024 * tree-inline.c (estimate_num_insns_1): Likewise.
20025 (expand_calls_inline): Likewise.
20026 * tree-nested.c (convert_call_expr): Likewise.
20027 * tree-pretty-print.c (dump_generic_node): Likewise.
20028 * tree-sra.c (sra_walk_expr): Likewise.
20029 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
20030 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
20031 * tree-ssa-operands.c (get_expr_operands): Likewise.
20032 * tree-tailcall.c (find_tail_calls): Likewise.
20033
20034 * calls.c (expand_call): Reset old_stack_allocated after
20035 calling emit_stack_restore.
20036
20037 2004-07-16 Richard Henderson <rth@redhat.com>
20038
20039 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
20040 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
20041 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
20042 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
20043 copy_res_decl_for_inlining.
20044
20045 * tree-inline.c (declare_return_variable): New modify_dest argument.
20046 Use it as the return value, when possible or manditory. Handle
20047 TREE_ADDRESSABLE types.
20048 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
20049 replacement of CALL_EXPR.
20050
20051 2004-07-16 Richard Henderson <rth@redhat.com>
20052
20053 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
20054 * gimple-low.c (expand_var_p): Don't check it.
20055 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
20056 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
20057 * tree-ssa-operands.c (add_stmt_operand): Likewise.
20058 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
20059 (find_referenced_vars): Don't call them.
20060 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
20061
20062 2004-07-16 Richard Henderson <rth@redhat.com>
20063
20064 * function.c (pass_by_reference): True for all variable sized types.
20065
20066 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
20067
20068 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
20069 * tree-pretty-print.c: Include tree-chrec.h.
20070 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
20071 and POLYNOMIAL_CHREC nodes.
20072
20073 2004-07-16 Steve Ellcey <sje@cup.hp.com>
20074
20075 * builtins.c (expand_builtin_stpcpy): Do not create temporary
20076 reg with VOIDmode.
20077
20078 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
20079
20080 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
20081
20082 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
20083
20084 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
20085 to BASE_REGNUM.
20086 * config/s390/s390.c: Likewise.
20087 * config/s390/s390.h: Likewise.
20088
20089 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20090
20091 * config/mips/mips.md (addsi3, adddi3): Remove special handling
20092 of $sp adds. Remove REGNO checks from mips16 patterns.
20093
20094 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20095
20096 * config/mips/mips.md: Delete outdated comment.
20097
20098 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20099
20100 * config/mips/mips.c (get_float_compare_codes): Delete.
20101 (mips_emit_compare): New function, mostly extracted from
20102 get_float_compare_codes and gen_conditional_branch.
20103 (gen_conditional_branch, gen_conditional_move): Use it.
20104
20105 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
20106
20107 * genautomata.c (add_vect): Speedup by using integers as
20108 bit-vectors for walking through the comb_vect and finding
20109 a match.
20110
20111 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20112
20113 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
20114 operand is an uns_arith_operand; use subtraction otherwise.
20115 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
20116 not just arith_operands.
20117
20118 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20119
20120 * config/mips/mips-protos.h (gen_int_relational): Delete.
20121 (mips_emit_scc): Declare.
20122 * config/mips/mips.c (internal_test): Delete.
20123 (sle_operand, sleu_operand): New functions.
20124 (map_test_to_internal_test, gen_int_relational): Delete.
20125 (mips_emit_binary, mips_relational_operand_ok_p)
20126 (mips_emit_int_relational, mips_zero_if_equal)
20127 (mips_emit_scc): New functions.
20128 (gen_conditional_branch): Rework to use mips_emit_int_relational.
20129 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
20130 sleu_operand.
20131 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
20132 (sltu, sleu): Use mips_emit_scc.
20133 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
20134 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
20135 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
20136
20137 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20138
20139 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
20140
20141 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20142
20143 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
20144 (*sne_[sd]i): Likewise sne_[sd]i_zero.
20145 (*sgt_[sd]i): ...and sgt_[sd]i.
20146 (*slt_[sd]i): ...and slt_[sd]i.
20147 (*sgtu_[sd]i): ...and sgtu_[sd]i.
20148 (*sltu_[sd]i): ...and sltu_[sd]i.
20149 (*sleu_[sd]i): ...and sleu_[sd]i_const.
20150 Name previously unnamed mips16 patterns. Formatting fixes.
20151
20152 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20153
20154 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
20155 (branch_type): Delete.
20156 (gen_conditional_branch, gen_conditional_move)
20157 (mips_gen_conditional_trap): Update after name change. Get the
20158 comparison mode from cmp_operands[0].
20159 * config/mips/mips.h (cmp_type, branch_type): Delete.
20160 (cmp_operands): Renamed from branch_cmp.
20161 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
20162 name change. Don't set branch_type.
20163 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
20164 mode class of cmp_operands[0] rather than branch_type. Update after
20165 name change.
20166
20167 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20168
20169 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
20170 of 0...255 to 0 when inside a SET.
20171
20172 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20173
20174 * config/mips/mips.md: Remove mips16 define_peepholes.
20175
20176 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
20177
20178 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
20179 (fini_pre): Remove fake edges.
20180
20181 2004-07-15 Richard Henderson <rth@redhat.com>
20182
20183 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
20184 (get_indirect_ref_operands, get_call_expr_operands): ... these.
20185
20186 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
20187
20188 * vec.h (VEC_address): New function.
20189
20190 2004-07-14 Jason Merrill <jason@redhat.com>
20191
20192 PR middle-end/15885
20193 * gimplify.c (gimplify_arg): New fn, split out from...
20194 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
20195
20196 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
20197
20198 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
20199 generate code which is generated by pushqi1 now
20200 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
20201
20202 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
20203
20204 * combine.c (simplify_set): match the mode of the constant 0 with
20205 the tested operand to match the compare behaviour and the
20206 simplify_relational_operation() expectation.
20207
20208 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
20209
20210 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
20211 ("bordered"): Same.
20212
20213 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
20214
20215 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
20216 unconditionally.
20217 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
20218
20219 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
20220
20221 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
20222 calls in mips16 code.
20223
20224 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
20225
20226 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
20227 the destination of the li as well as for the neg.
20228
20229 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
20230
20231 g++/15861
20232 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
20233 * cgraph.h: Update declaration.
20234 * c-decl.c (build_cdtor): Update call with default priority.
20235 * coverage.c (create_coverage): Ditto.
20236 * tree-mudflap.c (mf_init_fndecl): New tree.
20237 (mudflap_init): Set it.
20238 (mudflap_register_call): Arrange to call __mf_init before the first
20239 __mf_register call.
20240 (mudflap_finish_file): Mark the mudflap static initializer as extra
20241 high priority, to beat all C++ static constructors.
20242
20243 2004-07-15 Jeff Law <law@redhat.com>
20244
20245 * loop.c (check_insn_for_givs): Restore check for code labels that was
20246 accidentally deleted by a recent checkin.
20247
20248 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
20249
20250 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
20251 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
20252
20253 2004-07-14 Richard Henderson <rth@redhat.com>
20254
20255 * print-tree.c (print_node): Fix casts last change.
20256
20257 2004-07-15 Paul Brook <paul@codesourcery.com>
20258
20259 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
20260 to TARGET_UNWIND_INFO.
20261 * except.c (output_function_exception_table): Ditto.
20262 * except.h: Ditto.
20263 * opts.c (decode_options): Ditto.
20264 * passes.c (rest_of_handle_final): Ditto.
20265 * final.c (final_start_function): Ditto.
20266 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
20267 target hook.
20268 * targhooks.h (default_unwind_emit): Declare.
20269 * targhooks.c (default_unwind_emit): New function.
20270 * target-def.h: Define and use TARGET_UNWIND_EMIT.
20271 * target.h (struct gcc_target): Add unwind_emit.
20272 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
20273 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
20274 Remove IA64_UNWIND_EMIT.
20275 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
20276
20277 2004-07-14 Richard Henderson <rth@redhat.com>
20278
20279 * print-tree.c (print_node): Handle SSA_NAME.
20280
20281 2004-07-14 James E Wilson <wilson@specifixinc.com>
20282
20283 PR target/16325
20284 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
20285 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
20286
20287 2004-07-15 Jakub Jelinek <jakub@redhat.com>
20288
20289 * expr.c (expand_assignment): Reenable bitfield += optimizations.
20290 Use alias set 0 for memory, do proper mode calculations and adjust
20291 address for memories.
20292
20293 2004-07-14 Per Bothner <per@bothner.com>
20294
20295 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
20296 structure with extra column field.
20297 * tree.c (expand_location): Also fill in column field.
20298 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
20299 gets confused by the two conditionally-compiled definitions.
20300
20301 2004-07-14 Eric Christopher <echristo@redhat.com>
20302
20303 * calls.c (expand_call): Fix typo in comment.
20304
20305 2004-07-14 Steve Ellcey <sje@cup.hp.com>
20306
20307 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
20308 comparision of TFmode.
20309
20310 2004-07-14 Richard Henderson <rth@redhat.com>
20311
20312 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
20313 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
20314 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
20315 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
20316 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
20317 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
20318 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
20319 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
20320 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
20321
20322 2004-07-14 Mike Stump <mrs@apple.com>
20323
20324 * config/darwin.h (WINT_TYPE): Define to be int to match
20325 system header files.
20326
20327 2004-07-14 Bob Wilson <bob.wilson@acm.org>
20328
20329 * config/xtensa/xtensa.c (function_arg_advance): Check for args
20330 that must be passed in the stack.
20331 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
20332 arguments if the size is not a constant.
20333
20334 2004-07-14 Per Bothner <per@bothner.com>
20335
20336 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
20337 instead of EXPR_LOCUS in a boolean context, which is always true
20338 if --enable-mapped-location.
20339 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
20340
20341 2004-07-14 Richard Henderson <rth@redhat.com>
20342
20343 * dominance.c (struct dom_info): Add fake_exit_edge.
20344 (init_dom_info): Allocate it.
20345 (free_dom_info): Free it.
20346 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
20347 in two passes.
20348 (calc_idoms): Honor fake_exit_edge.
20349
20350 2004-07-13 Jason Merrill <jason@redhat.com>
20351
20352 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
20353 (rhs_test_for): New fn.
20354 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
20355 * tree-gimple.h: Declare them.
20356 * gimplify.c (gimplify_modify_expr): Use the new fns.
20357
20358 2004-07-14 Richard Henderson <rth@redhat.com>
20359
20360 * config/arm/arm-protos.h (arm_va_arg): Remove.
20361 * config/arm/arm.c (arm_va_arg): Remove.
20362 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
20363 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
20364
20365 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20366
20367 * pa.c (fix_range): New function to mark a range(s) of registers as
20368 fixed registers.
20369 (override_options): Call fix_range if the -mfixed-range option string
20370 is not empty.
20371 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
20372 * doc/invoke.texi (-mfixed-range): Document new option.
20373
20374 2004-07-14 David Edelsohn <edelsohn@gnu.org>
20375
20376 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
20377 for TARGET_64BIT.
20378 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
20379
20380 2004-07-14 Roger Sayle <roger@eyesopen.com>
20381
20382 * expmed.c (expand_sdiv_pow2): New function to expand signed division
20383 by a positive power of two, split out from expand_divmod. Provide
20384 an alternate implementation when shifts are expensive. Lower the
20385 threshold for using a branchless implementation to BRANCH_COST >= 2.
20386 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
20387
20388 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
20389
20390 * tree-dfa.c (make_rename_temp): *Really* work just
20391 like create_tmp_var if called while outside SSA form.
20392
20393 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
20394
20395 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
20396 for division by zero.
20397 ("umodsi3"): Likewise.
20398
20399 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
20400
20401 * config/mips/mips.c (mips_output_move): When generating mips16 code,
20402 force loads of negative constants to be split.
20403 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
20404 Generalize SImode li/neg splitter to cope with other modes.
20405
20406 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
20407
20408 * expmed.c: Remove more references to QUEUED in the comments.
20409 * expr.c: Likewise.
20410
20411 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
20412
20413 Revert:
20414 2004-07-13 Richard Henderson <rth@redhat.com>
20415 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
20416 correctly.
20417
20418 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
20419
20420 * tree-dfa.c (make_rename_temp): Work just like
20421 create_tmp_var if called while outside SSA form.
20422
20423 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
20424
20425 * expr.c (enqueue_insn, finish_expr_for_function,
20426 protect_from_queue, queued_subexp_p, mark_queue,
20427 emit_insns_enqueued_after_mark, emit_queue,
20428 expand_increment): Remove.
20429 (store_constructor): Expand increment as an assignment.
20430 (expand_expr_real_1 <case PREINCREMENT_EXPR,
20431 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
20432 case POSTDECREMENT_EXPR>): Abort.
20433 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
20434 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
20435 protect_from_queue, emit_queue, queued_subexp_p): Remove.
20436 * function.h (pending_chain, x_pending_chain): Remove.
20437 * rtl.def (QUEUED): Remove.
20438
20439 * emit-rtl.c (copy_insn_1, copy_most_rtx,
20440 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
20441 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
20442 encode_units_mask): Likewise.
20443 * local-alloc.c (equiv_init_varies_p): Likewise.
20444 * rtl.c (copy_rtx): Likewise.
20445 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
20446 * simplify-rtx.c (simplify_gen_subreg): Likewise.
20447 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
20448
20449 * builtins.c (expand_builtin, expand_builtin_apply,
20450 expand_builtin_mathfn, expand_builtin_mathfn_2,
20451 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
20452 Remove calls to emit_queue and protect_from_queue.
20453 * calls.c (expand_call, precompute_arguments,
20454 precompute_register_parameters, rtx_for_function_call,
20455 store_one_arg): Likewise.
20456 * dojump.c (do_compare_and_jump, do_jump): Likewise.
20457 * explow.c (memory_address): Likewise.
20458 * expmed.c (clear_by_pieces_1, clear_storage,
20459 clear_storage_via_libcall, emit_group_load,
20460 emit_group_store, emit_store_flag,
20461 expand_expr_real_1, store_by_pieces,
20462 store_constructor, store_expr, try_casesi,
20463 try_tablejump): Likewise.
20464 * function.c (expand_pending_sizes): Likewise.
20465 * optabs.c (emit_cmp_and_jump_insns,
20466 emit_conditional_add, emit_conditional_move,
20467 expand_fix, expand_float, prepare_cmp_insn): Likewise.
20468 * stmt.c (emit_case_bit_tests,
20469 expand_asm_expr, expand_computed_goto,
20470 expand_decl_init, expand_end_case_type,
20471 expand_end_stmt_expr, expand_expr_stmt_value,
20472 expand_return, expand_start_case,
20473 optimize_tail_recursion): Likewise.
20474 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
20475 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
20476
20477 2004-07-14 Ben Elliston <bje@au.ibm.com>
20478
20479 * vec.h: Comment fix.
20480
20481 2004-07-13 Richard Henderson <rth@redhat.com>
20482
20483 * target.h (struct gcc_target): Add calls.pass_by_reference.
20484 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
20485 * function.c (pass_by_reference): Use the hook.
20486 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
20487 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
20488 (hook_pass_by_reference_must_pass_in_stack): New.
20489 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
20490 (alpha_pass_by_reference): New.
20491 (TARGET_PASS_BY_REFERENCE): New.
20492 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20493 * config/arc/arc.c (arc_pass_by_reference): New.
20494 (TARGET_PASS_BY_REFERENCE): New.
20495 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20496 (FUNCTION_ARG_CALLEE_COPIES): True.
20497 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
20498 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
20499 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
20500 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20501 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20502 * config/cris/cris.c (cris_pass_by_reference): New.
20503 (TARGET_PASS_BY_REFERENCE): New.
20504 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
20505 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
20506 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20507 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
20508 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20509 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
20510 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
20511 (frv_function_arg_pass_by_reference): Remove.
20512 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20513 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
20514 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
20515 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
20516 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20517 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
20518 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
20519 (ia64_pass_by_reference): Rename from
20520 ia64_function_arg_pass_by_reference.
20521 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20522 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20523 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
20524 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
20525 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
20526 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20527 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
20528 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
20529 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
20530 (m32r_pass_by_reference): Adjust prototype. Make static.
20531 Handle mode sizes correctly.
20532 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20533 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
20534 (m68hc11_function_arg_pass_by_reference): Remove.
20535 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20536 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
20537 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
20538 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20539 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
20540 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
20541 (mips_va_arg): Use pass_by_reference.
20542 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
20543 Handle mode sizes correctly.
20544 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20545 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
20546 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
20547 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
20548 (mmix_pass_by_reference): Rename from
20549 mmix_function_arg_pass_by_reference.
20550 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20551 (FUNCTION_ARG_CALLEE_COPIES): True.
20552 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
20553 (mn10300_pass_by_reference): New.
20554 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20555 (FUNCTION_ARG_CALLEE_COPIES): True.
20556 * config/pa/pa.c (pa_pass_by_reference): New.
20557 (TARGET_PASS_BY_REFERENCE): New.
20558 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20559 (FUNCTION_ARG_CALLEE_COPIES): True.
20560 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
20561 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
20562 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
20563 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20564 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
20565 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
20566 (s390_pass_by_reference): Rename from
20567 s390_function_arg_pass_by_reference.
20568 (s390_function_arg_advance): Don't query pass-by-ref.
20569 (s390_function_arg): Likewise.
20570 (s390_gimplify_va_arg): Use pass_by_reference.
20571 (s390_call_saved_register_used): Likewise.
20572 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20573 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
20574 (shcompact_byref, sh_pass_by_reference): New.
20575 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20576 (SHCOMPACT_BYREF): Remove.
20577 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
20578 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
20579 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
20580 (sparc_gimplify_va_arg): Use pass_by_reference.
20581 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20582 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20583 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
20584 (v850_pass_by_reference): New.
20585 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20586 (FUNCTION_ARG_CALLEE_COPIES): True.
20587 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
20588 FUNCTION_ARG_PASS_BY_REFERENCE docs.
20589
20590 2004-07-14 Richard Henderson <rth@redhat.com>
20591 Richard Sandiford <rsandifo@redhat.com>
20592
20593 * config/mips/mips-protos.h (mips_va_arg): Delete.
20594 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
20595 * config/mips/mips.c: Include tree-gimple.h.
20596 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
20597 (mips_arg_info): Remove special handling of must_pass_in_stck args.
20598 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
20599 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
20600
20601 2004-07-13 Bob Wilson <bob.wilson@acm.org>
20602
20603 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
20604 arguments for COND_EXPR in big-endian adjustment code.
20605
20606 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20607
20608 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
20609 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
20610 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
20611 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
20612
20613 2004-07-13 Diego Novillo <dnovillo@redhat.com>
20614
20615 PR tree-optimization/16443
20616 * tree-ssa-alias.c: Add more description for
20617 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
20618 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
20619 clobbering of call-clobbered and addressable variables. If
20620 there are any before aliases have been computed, add them.
20621
20622 2004-07-13 Diego Novillo <dnovillo@redhat.com>
20623
20624 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
20625 verification.
20626
20627 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
20628
20629 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
20630 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
20631 to the same type.
20632
20633 2004-07-13 Per Bothner <per@bothner.com>
20634
20635 * collect2.c (main): Handle --no-demangle and --demangle flags.
20636
20637 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
20638
20639 * Makefile.in (OBJS-common): Add tree-data-ref.o.
20640 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
20641 (tree-data-ref.o): New rule.
20642 * lambda.h: New file.
20643 * tree-data-ref.c: New file.
20644 * tree-data-ref.h: New file.
20645 * tree.c (int_cst_value, tree_fold_gcd): New functions.
20646 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
20647
20648 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
20649
20650 PR target/13926
20651 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
20652 * config/sparc/sparc.c (output_ubranch): New function.
20653 * config/sparc/sparc.md (jump pattern): Use it.
20654
20655 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
20656
20657 PR target/16494
20658 * config/sparc/sparc.c (output_cbranch): Properly guard
20659 the code handling far branches with TARGET_V9.
20660 * config/sparc/sparc.md (length attribute): Document the
20661 side-effect of having a length greater or equal to 3.
20662
20663 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
20664 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
20665
20666 PR target/15186
20667 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
20668 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
20669
20670 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
20671 Martin Sebor <sebor@roguewave.com>
20672
20673 PR target/12602
20674 * doc/invoke.texi (SPARC options): Document -threads
20675 and -pthreads on Solaris.
20676
20677 2004-07-13 Richard Henderson <rth@redhat.com>
20678
20679 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
20680 by reference.
20681 (ind_gimplify_va_arg_expr): Remove.
20682 * tree.h (ind_gimplify_va_arg_expr): Remove.
20683 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
20684 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
20685 argsp to be null.
20686
20687 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
20688 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
20689 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
20690 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
20691 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
20692
20693 2004-07-13 Richard Henderson <rth@redhat.com>
20694
20695 * function.c (pass_by_reference): New.
20696 (assign_parm_find_data_types): Use it.
20697 * calls.c (initialize_argument_information): Likewise.
20698 (emit_library_call_value_1): Likewise.
20699 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20700 * function.h (pass_by_reference): Declare.
20701
20702 2004-07-13 Richard Henderson <rth@redhat.com>
20703
20704 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
20705 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
20706 * expr.h (MUST_PASS_IN_STACK): Remove.
20707 * system.h (MUST_PASS_IN_STACK): Poison.
20708 * tree.h (must_pass_in_stack_var_size): Declare.
20709 (must_pass_in_stack_var_size_or_pad): Declare.
20710 * calls.c (must_pass_in_stack_var_size): New.
20711 (must_pass_in_stack_var_size_or_pad): Rename from
20712 default_must_pass_in_stack.
20713 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
20714 (TARGET_MUST_PASS_IN_STACK): New.
20715 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
20716 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
20717 (TARGET_MUST_PASS_IN_STACK): New.
20718 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
20719 * config/frv/frv.c (frv_must_pass_in_stack): New.
20720 (TARGET_MUST_PASS_IN_STACK): New.
20721 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
20722 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
20723 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
20724 (ix86_must_pass_in_stack): Make static.
20725 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
20726 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
20727 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
20728 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
20729 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
20730 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
20731 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
20732 (mcore_must_pass_on_stack): Remove.
20733 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
20734 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
20735 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
20736 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
20737 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
20738 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
20739 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
20740 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
20741 (TARGET_MUST_PASS_IN_STACK): New.
20742 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
20743 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
20744 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
20745 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
20746 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
20747 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
20748 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
20749 MUST_PASS_IN_STACK.
20750
20751 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
20752 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
20753 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
20754 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
20755 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
20756 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
20757 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
20758 config/xtensa/xtensa.c: Use target hook.
20759
20760 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
20761
20762 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
20763 * configure: Rebuilt.
20764
20765 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
20766
20767 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
20768 * config/mips/mips.h (mips_reg_names): Don't declare.
20769 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
20770 (TARGET_NAME_REGS): Delete.
20771 (TARGET_SWITCHES): Remove -mrnames.
20772 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
20773 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
20774 in REGISTER_NAMES.
20775 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
20776 (override_options): Remove handling of TARGET_NAME_REGS.
20777
20778 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
20779
20780 * config/mips/mips.h (TARGET_*): Boolify.
20781
20782 2004-07-12 Nick Clifton <nickc@redhat.com>
20783
20784 * config.gcc: Add sh-*-symbianelf target.
20785 * config/sh/sh.c: Add new target macros:
20786 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
20787 TARGET_CXX_IMPORT_EXPORT_CLASS.
20788 (sh_file_start): Create a definition of the .directive section.
20789 (sh_attribute): Add dllimport and dllexport attributes.
20790 * config/sh/symbian-pre.h: New file.
20791 * config/sh/symbian-post.h: New file.
20792 * config/sh/symbian.c: New file. Contains Symbian specific
20793 functions.
20794 * config/sh/sh-protos.h: Add prototypes for new functions
20795 provided by symbian.c.
20796 * config/sh/t-symbian: New file.
20797 * doc/extend.texi: Document support for dllimport and dllexport
20798 attributes by the sh-symbianelf target.
20799
20800 2004-07-12 James E Wilson <wilson@specifixinc.com>
20801
20802 * Makefile.in (AR): Use @AR@ not ar.
20803 (NM): New.
20804 (AR_FOR_TARGET): Use $(AR) not ar for native.
20805 (NM_FOR_TARGET): Use $(NM) not nm for native.
20806 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
20807 * configure: Regenerate.
20808
20809 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
20810
20811 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
20812 special case.
20813 (ashldi3_sp64): Likewise.
20814
20815 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20816
20817 PR target/16477
20818 * pa.c (function_arg): Update comment.
20819 * pa.h (BLOCK_REG_PADDING): Define.
20820
20821 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20822
20823 PR tree-optimization/16461
20824 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
20825 arguments of phi nodes.
20826
20827 2004-07-12 Devang Patel <dpatel@apple.com>
20828
20829 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
20830
20831 2004-07-12 Steve Ellcey <sje@cup.hp.com>
20832
20833 * function.c (expand_function_start): Ensure r_save is in Pmode.
20834 * calls.c (prepare_call_address): Ensure static_chain_value is
20835 in Pmode.
20836 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
20837 r_save_area are in Pmode.
20838 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
20839 fnaddr, and static_chain are in Pmode.
20840
20841 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
20842
20843 PR target/16445
20844 * config/ia64/ia64.c (bundling): Don't count ignored insns.
20845
20846 2004-07-12 Richard Henderson <rth@redhat.com>
20847
20848 * target.h (struct gcc_target): Move gimplify_va_arg_expr
20849 next to build_builtin_va_list.
20850 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
20851 * builtins.c (gimplify_va_arg_expr): Likewise.
20852 * gimplify.c (copy_if_shared_r): Likewise.
20853
20854 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
20855
20856 * passes.c (rest_of_decl_compilation): Don't defer call of
20857 assemble_variable if its DECL_RTL is already set.
20858
20859 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
20860
20861 * cfgloop.h (struct loop): Add nb_iterations field.
20862 (current_loops): Declare.
20863 * tree-chrec.c (chrec_not_analyzed_yet,
20864 chrec_dont_know, chrec_known, count_ev_in_wider_type,
20865 chrec_contains_symbols_defined_in_loop): Remove the temporary
20866 hooks.
20867 * tree-flow-inline.h (loop_containing_stmt): New function.
20868 * tree-scalar-evolution.c: Add implementation.
20869 * tree-scalar-evolution.h: Add declarations.
20870
20871 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
20872
20873 PR rtl-optimization/15921
20874 * Makefile.in (global.o): Add recog.h.
20875
20876 * global.c (recog.h): Add the include-clause.
20877 (bb_info): New member earlyclobber.
20878 (allocate_bb_info, free_bb_info): Initialize/finish the new
20879 member.
20880 (earlyclobber_regclass, earlyclobber_regclass_length): The new
20881 global variables.
20882 (check_earlyclobber, regclass_intersect,
20883 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
20884 New functions.
20885 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
20886 (make_accurate_live_analysis): Modify pavin.
20887
20888 2004-07-12 Diego Novillo <dnovillo@redhat.com>
20889
20890 * tree-cfg.c (find_taken_edge): Statically compute the truth
20891 value of a predicate comparing an SSA_NAME to itself.
20892
20893 2004-07-12 Roger Sayle <roger@eyesopen.com>
20894
20895 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
20896 rs6000 doesn't have shift-and-add or shift-and-sub instructions
20897 by returning the cost of a multiplication plus an addition.
20898
20899 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
20900
20901 PR tree-optimization/14107
20902 * gimplify.c (gimplify_return_expr): Accept a
20903 RETURN_EXPR with an error argument.
20904 * tree-optimize.c (init_tree_optimization_passes):
20905 Run pass_warn_function_return at -O0.
20906
20907 2004-07-12 Roger Sayle <roger@eyesopen.com>
20908
20909 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
20910 index entry.
20911
20912 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
20913
20914 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
20915 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20916 * config/mips/3000.md: Add copyright notice. Remove automota and
20917 function units; use generic ones instead. Only define reservations
20918 for things that are different from generic.md. Extend each clause
20919 to include r3900.
20920 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
20921 * config/mips/mips.md: Include them. Remove define_function_units.
20922 (alu, imuldiv): New automata and units.
20923
20924 2004-07-12 Ben Elliston <bje@au.ibm.com>
20925
20926 * doc/invoke.texi (Optimize Options): Document -frename-registers
20927 not being enabled by default at -O3.
20928
20929 2004-07-11 Roger Sayle <roger@eyesopen.com>
20930
20931 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
20932 floating point additions, to keep real immediate constant positive.
20933 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
20934 into X + C, and leave positive real constants as X - C.
20935
20936 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20937
20938 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
20939
20940 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20941
20942 PR tree-optimization/15654
20943 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
20944
20945 2004-07-11 Roger Sayle <roger@eyesopen.com>
20946
20947 * builtins.c (fold_builtin_fputs): Don't bother converting the
20948 return type to integer_type_node, as we've already checked that
20949 the result will be ignored.
20950
20951 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
20952 that signed addition, subtraction, multiplication, division,
20953 remainder, negation and absolute value may potentially trap.
20954
20955 * fold-const.c (fold_ignored_result): New function to strip
20956 non-side-effecting tree nodes from an expression whose result
20957 is ignored.
20958 (fold_convert): Call fold_ignored_result when casting a value
20959 to VOID_TYPE.
20960 (omit_one_operand): Call fold_ignored_result on the "omitted"
20961 operand when building a COMPOUND_EXPR.
20962 (pedantic_omit_one_operand): Likewise.
20963 * tree.h (fold_ignored_result): Prototype here.
20964 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
20965 when we're going to ignore the result.
20966
20967 2004-07-11 Richard Henderson <rth@redhat.com>
20968
20969 PR tree-opt/16383
20970 * tree-ssa-ccp.c (fold_stmt_r): Split out...
20971 * tree.c (fields_compatible_p, find_compatible_field): ... new.
20972 * tree.h (fields_compatible_p, find_compatible_field): Declare.
20973 * tree-sra.c (sra_hash_tree): Hash fields by offset.
20974 (sra_elt_eq): Use fields_compatible_p.
20975 (generate_one_element_ref): Use find_compatible_field.
20976
20977 2004-07-11 Richard Henderson <rth@redhat.com>
20978
20979 PR tree-opt/16422
20980 * tree-sra.c (generate_one_element_init): New.
20981 (generate_element_init): Use it.
20982 (scalarize_init): Push/pop gimplify context around it.
20983 (find_new_referenced_vars_1, find_new_referenced_vars): New.
20984 * gimplify.c (gimplify_expr): Allow SSA_NAME.
20985
20986 2004-07-11 Roger Sayle <roger@eyesopen.com>
20987
20988 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
20989 combine.c's combine_insn_cost.
20990 * rtl.h (insn_rtx_cost): Prototype here.
20991 * combine.c (combine_insn_cost): Delete function.
20992 (combine_validate_cost): Update callers of combine_insn_cost to
20993 call insn_rtx_cost instead.
20994 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
20995 requesting the rtx_cost of call and/or jump instructions.
20996
20997 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
20998 rtx_cost directly. Don't request/use the cost of call or jump
20999 instructions. Return -1 if the cost of any instruction can't be
21000 determined (or the BB contains a function call).
21001 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
21002 -1 (i.e. can't determine the cost of any instruction or the basic
21003 block contains a subroutine call).
21004 (find_if_case_2): Likewise.
21005
21006 2004-07-11 Roger Sayle <roger@eyesopen.com>
21007
21008 * rs6000.c (struct processor_costs): Change semantics of fields to
21009 include the COST_N_INSNS scaling, and update all initializers.
21010 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
21011 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
21012 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
21013 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
21014
21015 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
21016
21017 * LANGUAGES: Remove obsolete information.
21018
21019 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
21020
21021 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
21022 SIGBUS signal frames, the PSW address points *to* the faulting
21023 instruction, not after it.
21024
21025 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
21026
21027 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
21028 added to TLS symbol addresses.
21029
21030 2004-07-11 Richard Henderson <rth@redhat.com>
21031
21032 * expmed.c (init_expmed): Use stack-local structures for
21033 temporary rtl. Don't recognize shifts.
21034
21035 2004-07-11 Richard Henderson <rth@redhat.com>
21036
21037 * expr.c (store_expr): Don't fiddle subreg promotion for types
21038 with precision smaller than the mode.
21039
21040 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
21041
21042 * tree.h (all_types_permanent): Remove.
21043
21044 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
21045
21046 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
21047 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
21048 * langhooks.c (lhd_clear_binding_stack): Remove.
21049 * langhooks-def.h (lhd_clear_binding_stack,
21050 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
21051 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
21052 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
21053 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
21054 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
21055 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
21056 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
21057 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
21058 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
21059 * tree.h (poplevel): Don't declare.
21060 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
21061 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
21062 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
21063 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
21064 Remove.
21065
21066 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
21067
21068 PR tree-optimization/16437
21069 * c-common.c (shorten_compare): Don't mark result of conversion to
21070 narrower signed type as overflowing.
21071 * fold-const.c (decode_field_reference): Determine whether
21072 signedness comes from outer type using precision rather than size.
21073
21074 2004-07-11 Phil Edwards <phil@codesourcery.com>
21075
21076 * configure.ac: Alphabetize --enable-checking list, add
21077 missing valgrind entry.
21078 * configure: Regenerate.
21079
21080 2004-07-11 Phil Edwards <phil@codesourcery.com>
21081
21082 * doc/install.texi (Testing): Fix syntax in "make check" example.
21083
21084 2004-07-10 James E Wilson <wilson@specifixinc.com>
21085
21086 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
21087
21088 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21089
21090 PR rtl-optimization/16001
21091 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
21092 niter_expr.
21093
21094 2004-07-10 Geoffrey Keating <geoffk@apple.com>
21095
21096 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
21097
21098 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
21099 James Morrison <phython@gcc.gnu.org>
21100
21101 * doc/contrib.texi (Contributors): Add gfortran contributors and
21102 fix a couple of typos.
21103
21104 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21105
21106 PR rtl-optimization/15387
21107 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
21108 to incoming args space correctly.
21109
21110 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21111
21112 * pa.c (output_indirect_call): Only use %r2 as the link register in
21113 indirect calls with the long PA 2.0 pc-relative branch.
21114
21115 2004-07-10 Daniel Jacobowitz <dan@debian.org>
21116
21117 * config/i386/i386.c (override_options): Pick a 64-bit CPU
21118 for the default tuning if TARGET_64BIT.
21119
21120 2004-07-10 Richard Henderson <rth@redhat.com>
21121
21122 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
21123 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
21124
21125 2004-07-10 Jakub Jelinek <jakub@redhat.com>
21126
21127 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
21128 * expmed.c (store_bit_field, extract_bit_field): Remove last
21129 argument.
21130 * builtins.c (expand_builtin_signbit): Adjust callers.
21131 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
21132 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
21133 * ifcvt.c (noce_emit_move_insn): Likewise.
21134 * stmt.c (expand_return): Likewise.
21135 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
21136 store_field, expand_expr_real_1): Likewise.
21137
21138 2004-07-10 Richard Henderson <rth@redhat.com>
21139
21140 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
21141
21142 2004-07-09 Mike Stump <mrs@apple.com>
21143
21144 * config/darwin.c (no_dead_strip): Add.
21145 (HAVE_DEAD_STRIP): Add.
21146 (darwin_emit_unwind_label): Ensure that we don't dead code strip
21147 the .eh label.
21148
21149 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21150
21151 * tree-ssa-loop-im.c: New file.
21152 * Makefile.in (tree-ssa-loop-im.o): Add.
21153 * cfgloop.c (superloop_at_depth): New function.
21154 * cfgloop.h (superloop_at_depth): Declare.
21155 * common.opt (ftree-lim): New flag.
21156 * expr.c (array_ref_up_bound): New function.
21157 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
21158 * timevar.def (TV_LIM): New timevar.
21159 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
21160 computing immediate uses of a phi node.
21161 * tree-flow.h (struct tree_ann_common_d): Add aux field.
21162 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
21163 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
21164 * tree-pass.h (pass_lim): Declare.
21165 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
21166 functions.
21167 (pass_lim): New pass structure.
21168 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
21169 * tree.c (in_array_bounds_p): New function.
21170 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
21171 (in_array_bounds_p, array_ref_up_bound): Declare.
21172 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
21173 * doc/passes.texi (tree-ssa-loop-im.c): Document.
21174
21175 2004-07-09 Richard Henderson <rth@redhat.com>
21176
21177 * builtins.c (expand_builtin_stpcpy): Don't modify len.
21178
21179 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
21180 with prejudice.
21181
21182 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
21183
21184 * flags.h: Delete redundant prototypes that are being generated
21185 in options.h from common.opt.
21186 * common.opt: Add in the expository comments formerly in flags.h.
21187
21188 2004-07-09 Jan Beulich <jbeulich@novell.com>
21189
21190 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
21191 available for use only when TARGET_MMX/_SSE is set, and check for
21192 variable argument function if any register count is non-zero.
21193 (function_arg): Correctly suppress repeated warnings for passing SSE
21194 vectors are arguments without SSE enabled.
21195 (ix86_function_arg_boundary): Without SSE enabled, the use of what
21196 would be SSE register modes does no longer influence the alignment.
21197
21198 2004-07-09 Richard Henderson <rth@redhat.com>
21199
21200 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
21201 Always align upward to arg boundary. Use size_in_bytes/round_up.
21202 Maintain type-correctness of constants.
21203 * stor-layout.c (round_up, round_down): Special-case powers of 2.
21204
21205 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
21206
21207 * config/sparc/sparc.c (*_costs): Scale instruction costs
21208 by COSTS_N_INSNS.
21209 (sparc_rtx_costs): Adjust as appropriate.
21210
21211 2004-07-09 Jan Beulich <jbeulich@novell.com>
21212
21213 * config/i386/mm3dnow.h: New.
21214 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
21215
21216 2004-07-09 Richard Henderson <rth@redhat.com>
21217
21218 * simplify-rtx.c (simplify_const_relational_operation): Only
21219 look at bounds of scalar integers.
21220
21221 2004-07-09 Jan Beulich <jbeulich@novell.com>
21222
21223 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
21224
21225 2004-07-09 Andrew Pinski <apinski@apple.com>
21226
21227 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
21228 always referenced.
21229 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
21230 UOBJC_METACLASS_decl.
21231
21232 2004-07-09 James E Wilson <wilson@specifixinc.com>
21233
21234 PR target/16364
21235 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
21236 do return a parallel if hfa_mode == XFmode and mode == TImode.
21237
21238 2004-07-09 Jan Beulich <jbeulich@novell.com>
21239
21240 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
21241 permissible for unary plus.
21242
21243 2004-07-09 Jan Beulich <jbeulich@novell.com>
21244
21245 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
21246 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
21247 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
21248 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
21249 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
21250 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
21251 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
21252 (BUILTIN_xxxIMAX): New.
21253 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
21254 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
21255 BUILT_IN_PARITYIMAX.
21256
21257 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
21258
21259 * config/sparc/sparc.h (processor_costs): Define.
21260 (sparc_costs): Declare.
21261 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
21262 hypersparc_costs, sparclet_costs, ultrasparc_costs,
21263 ultrasparc3_costs): New.
21264 (sparc_override_options): Set sparc_costs as appropriate.
21265 (sparc_rtx_costs): Use sparc_costs instead of messy
21266 conditionals.
21267
21268 2004-07-09 Steven Bosscher <stevenb@suse.de>
21269
21270 * doc/md.texi (Processor pipeline description): Mention that
21271 the old pipeline description is deprecated.
21272
21273 * config/rs6000/7450.md (automaton ppc7450): Split up, move
21274 mciu_7450 function unit to...
21275 (automaton ppc7450mciu): ...new automaton.
21276
21277 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
21278 (schedule_block): Don't consider inserting bubbles.
21279 (sched_init): Don't initialize DFA bubbles.
21280 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
21281 TARGET_SCHED_DFA_BUBBLE): Remove.
21282 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
21283 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
21284 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
21285
21286 * stmt.c (conditional_context): Remove prototype.
21287 * tree.h (conditional_context): Remove.
21288 * tree-cfg.c (pre_insert_on_edge): Remove.
21289
21290 * c-common.h (c_expand_asm_operands): Remove prototype.
21291 * c-typeck.c (c_expand_asm_operands): Remove.
21292
21293 2004-07-09 Jan Beulich <jbeulich@novell.com>
21294
21295 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
21296 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
21297 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
21298 and V8QI are class SSE. All sufficiently small remaining vector modes
21299 must be passed in one or two integer registers.
21300 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
21301 returned in memory.
21302 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
21303 __builtin_ia32_pmuludq128 have non-uniform argument and return types
21304 and must thus be handled explicitly.
21305 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
21306 MMX and XMM regs.
21307 (movv8qi_internal, movv4hi_internal, movv2si_internal,
21308 movv2sf_internal): Permit moving between MMX and XMM registers (since
21309 MMX areguments and return values are passed in XMM registers).
21310 (sse2_umulsidi3): Correct type and mode.
21311
21312 2004-07-09 Richard Henderson <rth@redhat.com>
21313
21314 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
21315
21316 2004-07-09 Eric Christopher <echristo@redhat.com>
21317
21318 * config/rs6000/40x.md: Split into two automatons.
21319
21320 2004-07-09 Zack Weinberg <zack@codesourcery.com>
21321 Andrew Pinski <apinski@apple.com>
21322
21323 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
21324 on when we have more than one input file.
21325 (c_common_parse_file): Restore loop over all input files.
21326 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
21327
21328 * c-decl.c (set_type_context): New function.
21329 (pop_scope): Use it to set context of types. When we
21330 encounter a TYPE_DECL, set the context of the attached type too.
21331 (pop_file_scope): Don't call cpp_undef_all here.
21332 (diagnose_mismatched_decls): Do not complain about a second
21333 definition of an 'extern inline' function if it's not in the
21334 same translation unit. Do not complain about inline
21335 declaration after use if the use was in a different
21336 translation unit.
21337 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
21338 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
21339 the external scope.
21340 (pushdecl_top_level): Likewise.
21341 (grokdeclarator): Clarify what is going on with setting
21342 DECL_EXTERNAL on function types, a little.
21343 (c_write_global_declarations): Don't do anything if
21344 -fsyntax-only or errors have been encountered.
21345
21346 2004-07-09 Zack Weinberg <zack@codesourcery.com>
21347
21348 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
21349
21350 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21351
21352 PR target/16459
21353 * pa.c (output_indirect_call): Use %r2 as the link register when
21354 calling $$dyncall with a pc-relative branch.
21355
21356 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
21357
21358 * doc/install.texi (Binaries): Mention OpenPKG.
21359
21360 2004-07-09 Diego Novillo <dnovillo@redhat.com>
21361
21362 Fix PR tree-optimization/15555
21363 * tree-dfa.c (dump_variable): If the variable is a pointer
21364 SSA_NAME, also dump its points-to information.
21365 * tree-flow.h (struct ptr_info_def): Add field
21366 is_dereferenced.
21367 (dump_points_to_info_for): Declare.
21368 (debug_points_to_info_for): Declare.
21369 * tree-optimize.c (init_tree_optimization_passes): Add a
21370 second alias analysis pass after DOM2.
21371 Move pass_del_pta to a later spot.
21372 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
21373 create a name tags when we find a dereferenced pointer. Just
21374 mark the pointer dereferenced.
21375 (collect_points_to_info_for): Move code to clear points-to
21376 information to create_name_tags.
21377 (create_name_tags): New function.
21378 (compute_flow_sensitive_aliasing): Call it.
21379 (setup_pointers_and_addressables): Mark type tags for renaming
21380 here instead of ...
21381 (create_memory_tag): ... here.
21382 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
21383 (dump_points_to_info_for): Declare extern.
21384 (debug_points_to_info_for): New function.
21385
21386 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
21387
21388 * config/arc/arc.md: Switch to DFA-based scheduler description.
21389 * config/arc/arc.c: Switch to DFA-based scheduler description.
21390
21391 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
21392
21393 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
21394 pointer.
21395
21396 2004-07-09 Richard Henderson <rth@redhat.com>
21397
21398 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
21399 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21400 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
21401 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
21402
21403 * config/v850/v850-protos.h (v850_va_arg): Remove.
21404 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21405 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
21406 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
21407 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
21408 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
21409
21410 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
21411
21412 PR target/12133
21413 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
21414 and DImode to use +/-4k offset.
21415
21416 2004-07-09 Richard Henderson <rth@redhat.com>
21417
21418 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
21419 Remove.
21420 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21421 (xstormy16_gimplify_va_arg_expr): Rewrite from
21422 xstormy16_expand_builtin_va_arg.
21423 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
21424
21425 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
21426 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
21427
21428 * config/sh/sh-protos.h (sh_va_arg): Remove.
21429 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21430 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
21431 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
21432
21433 * config/pa/pa-protos.h (hppa_va_arg): Remove.
21434 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21435 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
21436 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
21437
21438 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
21439 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21440 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
21441 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
21442
21443 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21444
21445 * config/sparc/sparc.md (return): Rewrite length formula.
21446 * config/sparc/sparc.c (output_return): Pass 1 as 5th
21447 argument to final_scan_insn when in a delay slot.
21448 (output_sibcall): Likewise.
21449
21450 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
21451
21452 * arm.c (arm_cpp_interwork): New variable.
21453 (arm_override_options): Set it if TARGET_INTERWORK was on the command
21454 line.
21455 * arm.h (arm_cpp_interwork): Declare it.
21456 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
21457 __THUMB_INTERWORK__ in the preprocessor.
21458
21459 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
21460
21461 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
21462
21463 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21464
21465 PR target/16416
21466 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
21467 Override default settings to account for -m32 and -m64.
21468
21469 2004-07-08 Randolph Chung <tausq@debian.org>
21470
21471 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
21472
21473 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
21474
21475 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
21476 before comparing it as such.
21477
21478 2004-07-08 Richard Henderson <rth@redhat.com>
21479
21480 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
21481 temporary. Use bit arithmetic to align.
21482
21483 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
21484
21485 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
21486 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
21487 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
21488 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
21489 add_labels_and_missing_jumps, find_jump_block,
21490 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
21491 Likewise.
21492 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
21493 link_btr_uses, move_btr_def): Likewise.
21494 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
21495 expand_builtin_expect_jump): Likewise.
21496 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
21497 * calls.c (expand_call, emit_library_call_value_1): Likewise.
21498 * cfganal.c (forwarder_block_p): Likewise.
21499 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
21500 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
21501 find_bb_boundaries): Likewise.
21502 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
21503 merge_blocks_move_predecessor_nojumps,
21504 merge_blocks_move_successor_nojumps, insns_match_p,
21505 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
21506 try_optimize_cfg): Likewise.
21507 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
21508 * cfglayout.c (skip_insns_after_block, label_for_bb,
21509 record_effective_endpoints, insn_locators_initialize,
21510 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
21511 * cfgmainloop.c (create_loop_notes): Likewise.
21512 * cfgrtl.c (delete_insn, delete_insn_chain,
21513 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
21514 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
21515 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
21516 redirect_branch_edge, force_nonfallthru_and_redirect,
21517 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
21518 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
21519 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
21520 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
21521 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
21522 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
21523 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
21524 * combine.c (combine_instructions, can_combine_p, try_combine,
21525 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
21526 distribute_notes, distribute_links, insn_cuid): Likewise.
21527 * cse.c (fold_rtx, cse_insn, cse_around_loop,
21528 invalidate_skipped_block, cse_set_around_loop,
21529 cse_end_of_basic_block, cse_main, cse_basic_block,
21530 cse_condition_code_reg): Likewise.
21531 * cselib.c (cselib_process_insn): Likewise.
21532 * ddg.c (create_ddg): Likewise.
21533 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
21534 Likewise.
21535 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
21536 gen_label_die, dwarf2out_var_location): Likewise.
21537 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
21538 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
21539 last_call_insn, active_insn_p, next_label, prev_label,
21540 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
21541 add_insn_before, remove_insn, add_function_usage_to,
21542 reorder_insns, find_line_note, remove_unnecessary_notes,
21543 emit_insn_after_1, classify_insn): Likewise.
21544 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
21545 connect_post_landing_pads, sjlj_mark_call_sites,
21546 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
21547 can_throw_internal, can_throw_external, set_nothrow_function_flags,
21548 convert_to_eh_region_ranges): Likewise.
21549 * explow.c (optimize_save_area_alloca): Likewise.
21550 * expr.c (expand_expr_real): Likewise.
21551 * final.c (insn_current_reference_address, compute_alignments,
21552 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
21553 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
21554 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
21555 propagate_block_delete_insn, propagate_one_insn,
21556 init_propagate_block_info, propagate_block, libcall_dead_p,
21557 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
21558 Likewise.
21559 * function.c (instantiate_virtual_regs, reorder_blocks_1,
21560 expand_function_start, expand_function_end, contains,
21561 thread_prologue_and_epilogue_insns,
21562 reposition_prologue_and_epilogue_notes): Likewise.
21563 * gcse.c (constprop_register, bypass_conditional_jumps,
21564 insert_insn_end_bb, gcse_after_reload): Likewise.
21565 * genemit.c (gen_expand, gen_split): Likewise.
21566 * genpeep.c (gen_peephole, main): Likewise.
21567 * global.c (build_insn_chain): Likewise.
21568 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
21569 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
21570 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
21571 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
21572 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
21573 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
21574 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
21575 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
21576 dead_or_predicable): Likewise.
21577 * integrate.c (try_constants): Likewise.
21578 * jump.c (rebuild_jump_labels, cleanup_barriers,
21579 purge_line_number_notes, init_label_info, mark_all_labels,
21580 squeeze_notes, get_label_before, get_label_after,
21581 reversed_comparison_code_parts, simplejump_p, pc_set,
21582 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
21583 delete_barrier, delete_prior_computation, delete_computation,
21584 delete_related_insns, delete_for_peephole, redirect_jump):
21585 Likewise.
21586 * lcm.c (optimize_mode_switching): Likewise.
21587 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
21588 Likewise.
21589 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
21590 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
21591 * loop-iv.c (simplify_using_assignment): Likewise.
21592 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
21593 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
21594 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
21595 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
21596 check_insn_for_givs, check_final_value, update_giv_derive,
21597 basic_induction_var, product_cheap_p, check_dbra_loop,
21598 loop_insn_first_p, last_use_this_basic_block,
21599 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
21600 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
21601 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
21602 sms_schedule_by_order): Likewise.
21603 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
21604 * postreload.c (reload_cse_simplify_operands, reload_combine,
21605 reload_cse_move2add): Likewise.
21606 * predict.c (can_predict_insn_p, estimate_probability,
21607 expected_value_to_br_prob, process_note_predictions): Likewise.
21608 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
21609 * profile.c (branch_prob): Likewise.
21610 * ra-build.c (live_out_1, livethrough_conflicts_bb,
21611 detect_webs_set_in_cond_jump): Likewise.
21612 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
21613 ra_print_rtl_with_bb): Likewise.
21614 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
21615 * recog.c (next_insn_tests_no_inequality, find_single_use,
21616 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
21617 * reg-stack.c (next_flags_user, record_label_references,
21618 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
21619 compensate_edge, convert_regs_1): Likewise.
21620 * regclass.c (scan_one_insn): Likewise.
21621 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
21622 regmove_optimize, fixup_match_1, single_set_for_csa,
21623 combine_stack_adjustments_for_block): Likewise.
21624 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
21625 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
21626 find_equiv_reg): Likewise.
21627 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
21628 reload_as_needed, emit_input_reload_insns, do_output_reload,
21629 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
21630 Likewise.
21631 * reorg.c (find_end_label, emit_delay_sequence,
21632 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
21633 get_jump_flags, rare_destination, mostly_true_jump,
21634 try_merge_delay_insns, redundant_insn, own_thread_p,
21635 fill_simple_delay_slots, fill_slots_from_thread,
21636 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
21637 dbr_schedule): Likewise.
21638 * resource.c (find_basic_block, next_insn_no_annul,
21639 find_dead_or_set_registers, mark_target_live_regs): Likewise.
21640 * rtl.h (RTX_PREV): Likewise.
21641 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
21642 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
21643 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
21644 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
21645 tablejump_p, computed_jump_p, insns_safe_to_move_p,
21646 find_first_parameter_load, can_hoist_insn_p): Likewise.
21647 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
21648 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
21649 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
21650 schedule_ebbs): Likewise.
21651 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
21652 is_conditionally_protected, can_schedule_ready_p,
21653 add_branch_dependences, debug_dependencies): Likewise.
21654 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
21655 Likewise.
21656 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
21657 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
21658 set_dominates_use, ujump_to_loop_cont): Likewise.
21659 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
21660 * varasm.c (output_constant_pool_1): Likewise.
21661
21662 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21663
21664 * tree-scalar-evolution.c: New file.
21665 * tree-scalar-evolution.h: New file.
21666 * tree-ssa-loop-niter.c: New file.
21667 * Makefile.in (SCEV_H): New.
21668 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
21669 * cfgloop.h (struct loop): Add bounds field.
21670 * tree-flow.h (struct tree_niter_desc): New type.
21671 (number_of_iterations_cond, number_of_iterations_exit,
21672 loop_niter_by_eval, find_loop_niter_by_eval,
21673 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
21674 free_numbers_of_iterations_estimates): Declare.
21675 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
21676 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
21677 * doc/invoke.texi (max-iterations-to-track): Document.
21678
21679 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
21680
21681 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
21682 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
21683 (MODE_AFTER): Add cast appropriately.
21684 * config/sh/sh.md (movdi splitter): Likewise.
21685 (casesi_worker_2): Add const qualifier appropriately.
21686 (eh_return): Remove unused variable.
21687 (insv): Initialize v;
21688
21689 2004-07-08 Richard Henderson <rth@redhat.com>
21690
21691 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
21692 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21693 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
21694 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
21695 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
21696
21697 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
21698 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21699 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
21700 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
21701
21702 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
21703 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21704 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
21705 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
21706
21707 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
21708 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21709 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
21710 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
21711
21712 * config/i860/i860-protos.h (i860_va_arg): Remove.
21713 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21714 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
21715 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
21716
21717 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
21718
21719 * system.h: Prototype getpagesize if missing.
21720 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
21721 * configure: Regenerate.
21722 * config.in: Regenerate.
21723
21724 2004-07-08 Richard Henderson <rth@redhat.com>
21725
21726 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
21727 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21728 (fr30_gimplify_va_arg_expr): New.
21729 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
21730 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
21731
21732 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
21733
21734 PR target/16414
21735 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
21736 of asm_noperands result.
21737
21738 2004-07-08 Richard Henderson <rth@redhat.com>
21739
21740 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
21741 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21742 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
21743 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
21744
21745 2004-07-08 Richard Henderson <rth@redhat.com>
21746
21747 * builtins.c (ind_gimplify_va_arg_expr): New.
21748 * tree.h (ind_gimplify_va_arg_expr): Declare.
21749 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
21750
21751 2004-07-08 Jan Beulich <jbeulich@novell.com>
21752
21753 * expmed.c (extract_bit_field): Correct condition to use vec_extract
21754 patterns also on vector elements other than the first one.
21755 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
21756 break statements.
21757
21758 2004-07-08 Geoffrey Keating <geoffk@apple.com>
21759
21760 * config/rs6000/darwin-ldouble.c: Correct reference
21761 to the Linnainmaa paper.
21762
21763 2004-07-08 Richard Henderson <rth@redhat.com>
21764
21765 * config/arc/arc-protos.h (arc_va_arg): Remove.
21766 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21767 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
21768 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
21769
21770 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
21771 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21772 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
21773 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
21774
21775 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21776
21777 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
21778
21779 2004-07-08 Zack Weinberg <zack@codesourcery.com>
21780
21781 * c-decl.c (static_ctors, static_dtors): Make static.
21782 (pop_file_scope): Call c_common_write_pch and
21783 cgraph_finalize_compilation_unit here.
21784 (build_cdtor): Moved here from c-objc-common.c; simplify.
21785 (c_write_global_declarations_1): Clarify comment.
21786 (c_write_global_declarations): Close the external scope before
21787 doing anything else. Call build_cdtor, cgraph_optimize, and
21788 mudflap_finish_file here.
21789 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
21790 Clarify comment.
21791 * c-objc-common.c: No need to include cgraph.h.
21792 (build_cdtor): Moved to c-decl.c.
21793 (c_objc_common_finish_file): Delete.
21794 * c-tree.h: Update to match.
21795 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
21796 (generate_static_references): Set TREE_USED before calling finish_decl.
21797 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
21798 on the static_instances_decl.
21799
21800 2004-07-08 Zack Weinberg <zack@codesourcery.com>
21801
21802 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
21803 decls when there is only one input translation unit.
21804 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
21805 change of 2004-07-05; do not treat declarations with
21806 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
21807 * opts.c (cur_in_fname): Delete.
21808 * opts.h: Likewise.
21809 * tree.c: Revert changes of 2004-07-05; no special treatment
21810 for TRANSLATION_UNIT_DECLs.
21811 * Makefile.in (tree.o): Update dependencies.
21812
21813 2004-07-08 Roger Sayle <roger@eyesopen.com>
21814
21815 * builtins.c (fold_builtin_strcpy): Merge functionality from
21816 simplify_builtin_strcpy. Add additional len argument. No longer
21817 static. Remove function prototype.
21818 (fold_builtin_strncpy): Likewise integrate functionality from
21819 simplify_builtin_strncpy. Add additional slen argument. No
21820 longer static. Remove function prototype.
21821 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
21822 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
21823 types of "ignore" and "unlocked" parameters to bool.
21824 (fold_builtin_1): Add additional ignore argument. Call renamed
21825 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
21826 builtins. Update arguments to fold_builtin_strncpy and
21827 fold_builtin_strcpy. Add function prototype.
21828 (fold_builtin): Add additional Boolean ignore argument to pass
21829 to fold_builtin_1.
21830 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
21831 and fold_builtin_strncpy instead of simplify_builtin_fputs,
21832 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
21833
21834 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
21835 simplify_builtin_strncpy): Delete function prototypes.
21836 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
21837 fold_builtin_strncpy): Add function prototypes here.
21838 (fold_builtin): Update function prototype with new "bool ignore".
21839
21840 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
21841 (ccp_fold_builtin): Update call to fold_builtin. Call
21842 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
21843 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
21844 simplify_builtin_strncpy respectively.
21845 * fold-const.c (fold): Update call to fold_builtin.
21846
21847 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
21848
21849 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
21850 to strcpy.
21851
21852 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
21853 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
21854 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
21855 * calls.c: Remove ifdefs of macros above.
21856 * functions.c: Likewise.
21857 * expr.c: Likewise.
21858
21859 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
21860
21861 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
21862 (arch attribute): Delete.
21863 (current_function_calls_alloca attribute): Rename into calls_alloca.
21864 (calls_eh_return): New attribute.
21865 (leaf_function): Likewise.
21866 (length attribute): Fix formula for sibcalls.
21867 (return insn): Correctly compute the 'length' attribute.
21868 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
21869
21870 2004-07-08 Richard Henderson <rth@redhat.com>
21871
21872 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
21873 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
21874 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
21875 * tree-eh.c (lower_eh_constructs_1): Likewise.
21876 * tree-sra.c (sra_walk_modify_expr): Likewise.
21877 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21878 (eliminate_unnecessary_stmts): Likewise.
21879 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
21880 * tree-tailcall.c (optimize_tail_call): Likewise.
21881 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
21882
21883 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
21884 Jakub Jelinek <jakub@redhat.com>
21885
21886 * config/i386/i386.c (override_options): Enable
21887 SSE prefetches with -mtune, as long as we are
21888 compiling for i686 or higher. All i686 processors
21889 accept SSE prefetches as NOPS, some i586's don't.
21890
21891 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
21892
21893 PR target/10567
21894 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
21895
21896 2004-07-08 Diego Novillo <dnovillo@redhat.com>
21897
21898 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
21899 the handling of clobbering ASM_EXPRs.
21900
21901 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
21902
21903 PR target/16430
21904 * config/sparc/sparc.c (function_value): In 64-bit mode,
21905 return the aggregates larger than 16 bytes like unions.
21906
21907 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
21908
21909 PR target/16199
21910 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
21911 'temp' is zero, generate new pseudos as needed and emit the
21912 sequence of insns in single-assignment form. Resync comments
21913 with code.
21914 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
21915 function before reload.
21916
21917 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
21918
21919 * vec.c (vec_assert_fail): Remove duplicate 'function'.
21920
21921 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
21922
21923 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
21924 Allocation is signed.
21925 (VEC_reserve): Return flag, allocation is signed.
21926
21927 2004-07-08 Richard Henderson <rth@redhat.com>
21928
21929 * tree-ssa-ccp.c (fold_stmt): Get type directly from
21930 OBJ_TYPE_REF_OBJECT.
21931
21932 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
21933 Neil Booth <neil@daikokuya.co.uk>
21934
21935 PR c/2511
21936 PR c/3325
21937 * c-decl.c (finish_struct): Ensure bit-fields are given the
21938 correct type.
21939 * c-common.c (c_common_signed_or_unsigned_type): For C, require
21940 the precision to match as well as the mode.
21941 * expr.c (reduce_to_bit_field_precision): New function.
21942 (expand_expr_real_1): Reduce expressions of bit-field type to
21943 proper precision.
21944 * langhooks.h (reduce_bit_field_operations): New hook.
21945 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
21946 Define.
21947 * c-lang.c, objc/objc-lang.c
21948 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
21949 * objc/objc-act.c (check_ivars): Convert types to bit-field types
21950 before checking.
21951 * tree.c (build_nonstandard_integer_type): New function.
21952 * tree.h (build_nonstandard_integer_type): New prototype.
21953 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
21954 conversions between integer and boolean types as useless.
21955
21956 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
21957
21958 * c-common.c (c_common_nodes_and_builtins): Do not
21959 create __builtin_ptrdiff_t and __builtin_size_t.
21960
21961 2004-07-08 Andrew Pinski <apinski@apple.com>
21962
21963 * Makefile.in (libbackend.o): Add -combine to the gcc
21964 command line.
21965
21966 2004-07-08 Nick Clifton <nickc@redhat.com>
21967
21968 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
21969 Set to -Os.
21970
21971 2004-07-08 Richard Henderson <rth@redhat.com>
21972
21973 * except.c (expand_eh_region_start, expand_eh_region_end,
21974 expand_eh_handler, expand_eh_region_end_cleanup,
21975 expand_start_all_catch, expand_start_catch, expand_end_catch,
21976 expand_end_all_catch, expand_eh_region_end_allowed,
21977 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
21978 expand_eh_region_end_fixup): Remove.
21979 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
21980 cleanups, outer_cleanups, label_chain, exception_region.
21981 (struct goto_fixup): Remove stack_level, cleanup_list_list.
21982 (struct label_chain): Remove.
21983 (struct stmt_status): Remove x_stack_block_stack.
21984 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
21985 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
21986 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
21987 end_cleanup_deferral, last_cleanup_this_contour,
21988 containing_blocks_have_cleanups_or_stack_level,
21989 any_pending_cleanups): Remove.
21990 (expand_null_return_1): Take no arguments.
21991 (expand_label, expand_naked_return, expand_return,
21992 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
21993 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
21994 expand_end_case_type): Don't use any of them.
21995 * calls.c (expand_call): Likewise.
21996 * dojump.c (do_jump): Likewise.
21997 * function.c (expand_function_end): Likewise.
21998 * expr.c (store_expr, expand_expr_real_1): Likewise.
21999 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
22000 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
22001 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
22002 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
22003 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
22004 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
22005 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
22006 for WITH_CLEANUP_EXPR.
22007 (gimple_push_cleanup): Likewise.
22008 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
22009 * print-tree.c (print_node): Likewise.
22010 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
22011 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
22012 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
22013 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
22014 (GOTO_SUBROUTINE_EXPR): Remove.
22015 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
22016 (DECL_TOO_LATE): Remove.
22017 * except.h, tree.h: Update decls.
22018
22019 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
22020
22021 * explow.c (optimize_save_area_alloca): Do not accept parameters.
22022 * passes.c (rest_of_handle_final): Handle symout.
22023 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
22024 Push timevar here.
22025 (rest_of_handle_sched): Break out SMS. Remove ifs for
22026 flag_schedule_insns and flag_modulo_sched.
22027 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
22028 collect at the end.
22029 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
22030 (rest_of_handle_partition_blocks, rest_of_handle_sms,
22031 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
22032 rest_of_handle_mode_switching, rest_of_handle_jump,
22033 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
22034 rest_of_handle_jump2, rest_of_handle_postreload,
22035 rest_of_handle_flow2, rest_of_clean_state,
22036 rest_of_handle_shorten_branches,
22037 rest_of_handle_prologue_epilogue,
22038 rest_of_handle_branch_target_load_optimize): New.
22039 (rest_of_compilation): Call the above. Remove ggc_collect
22040 calls moved to rest_of_handle_*.
22041 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
22042
22043 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
22044 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
22045 * except.h (set_nothrow_function_flags): Update comment.
22046 * function.c (current_function_nothrow): Remove.
22047 * output.h (current_function_nothrow): Remove.
22048 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
22049 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
22050
22051 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
22052
22053 PR bootstrap/16326
22054 * reorg.c: Revert 2004-06-30 change.
22055 (find_end_label): If HAVE_epilogue and !HAVE_return,
22056 return 0 instead of creating a label at the end of the insn chain.
22057 (optimize_skip): Account for the failure mode of find_end_label.
22058 (fill_simple_delay_slots): Likewise.
22059 (fill_slots_from_thread): Likewise.
22060 (relax_delay_slots): Likewise.
22061
22062 2004-07-08 Diego Novillo <dnovillo@redhat.com>
22063
22064 * tree-flow.h (addressable_vars): Declare.
22065 * tree-ssa-alias.c (addressable_vars): Define.
22066 (setup_pointers_and_addressables): Add addressable variables
22067 to addressable_vars.
22068 * tree-ssa-operands.c (get_stmt_operands): Move
22069 handling of ASM_EXPRs ...
22070 (get_asm_expr_operands): ... here.
22071 When the ASM_EXPR clobbers memory, also clobber addressable
22072 variables.
22073 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
22074 (delete_tree_ssa): Reset addressable_vars.
22075
22076 2004-07-07 Jan Beulich <jbeulich@novell.com>
22077 Richard Henderson <rth@redhat.com>
22078
22079 * varasm.c (assemble_variable): Use assemble_zeros for
22080 zero-initialized variables.
22081 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
22082 for SECCAT_BSS and SECCAT_TBSS.
22083
22084 2004-07-07 Jan Beulich <jbeulich@novell.com>
22085
22086 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
22087
22088 * expmed.c (emit_store_flag): Also special-case double-word
22089 (in-)equality comparison against -1.
22090
22091 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
22092 passing arguments the containers for which are registers.
22093
22094 * calls.c (emit_library_call_value_1): Use mode of function parameter
22095 rather than that of argument since constants have none.
22096
22097 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
22098
22099 Introduce H8SX support.
22100 * expr.c (expand_strcpy): Renamed and moved to...
22101 * builtins.c (expand_movstr): ... here. Tweak.
22102 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
22103 computed or has side effects.
22104 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
22105 unused, or if mempcpy fails. Adjust the return value in the
22106 latter case. Use movstr if everything else fails.
22107 * doc/md.texi (movstr): Document.
22108 (movmemM, clrmemM): Fix explanation of memory block operands.
22109 * config/h8300/h8300.md (stpcpy): Renamed to...
22110 (movstr): ... this. Adjust.
22111 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
22112 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
22113 movmem* and clrstr* to clrmem*.
22114 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
22115 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
22116 GENERAL_REGS, always.
22117 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
22118 getting the stack pointer as addr.
22119 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
22120 from general_operand_dst.
22121 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
22122 variant of...
22123 (movmd_internal): ... this. Add modes to operands. Disparage `D'
22124 instead of requiring it to match only before reload.
22125 (stpcpy_internal_normal): New, normal-mode variant of...
22126 (stpcpy_internal): ... this. Add modes to operands. Disparage
22127 `D' instead of requiring it to match only before reload.
22128 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
22129 mode argument.
22130 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
22131 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
22132 h8300_get_index.
22133 * config/h8300/h8300.md (attr type): Add call.
22134 (attr can_delay): If type is call, set it no.
22135 (call, call_value): Set type to call.
22136 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
22137 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
22138 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
22139 * tree.c (get_narrower): Don't narrow integral types into
22140 non-integral types.
22141 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
22142 frame_size *before* the first use.
22143 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
22144 on input.
22145 (peephole2): Don't widen instructions that push SP. Move
22146 decrement of SP to the end of all stm-generating peepholes.
22147 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
22148 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
22149 and OR to set it to all ones.
22150 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
22151 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
22152 (call, call_value): Set can_delay to "no".
22153 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
22154 * config/h8300/h8300.md (extzv): Make subreg check more robust.
22155 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
22156 * config/h8300/h8300.md (*brabit): Remove.
22157 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
22158 zero_extract. Use bit_memory_operand as the predicate for
22159 operand 1 and 'WU' as the constraint. Check the difference
22160 between the base length and the final one when deciding which
22161 type of branch to use.
22162 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
22163 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
22164 Use convert_move to extend the result for TARGET_H8300SX. Check
22165 for QImode memory references. Optimize the case where the
22166 destination is a paradoxical subreg.
22167 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
22168 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
22169 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
22170 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
22171 * config/h8300/h8300.md: Include mova.md
22172 (length_table): Add mova and mova_zero.
22173 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
22174 after all constant addresses for '%R', '%X', '%T' and '%S'.
22175 (h8300_mova_length): New function.
22176 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
22177 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
22178 dependencies for s-config, etc.
22179 * config/h8300/gemova.sh: New file.
22180 * config/h8300/mova.md: Generated.
22181 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
22182 * config/h8300/h8300.c (h8300_bitfield_length): New.
22183 (nibble_operand): Adjust.
22184 (h8300_binary_length): Handle conditional binary op.
22185 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
22186 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
22187 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
22188 and P#<0, unused so far. W and Y are now prefixes to multi-letter
22189 constraints. WU is introduced as a variant of U that requires a
22190 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
22191 * config/h8300/h8300.md (attr type): Added bitbranch.
22192 (attr length_table): Added bitfield and bitbranch.
22193 (attr length): Compute bitbranch length.
22194 (andqi): Separate pattern for H8300SX. Use bfld for loading the
22195 least-significant bit of a byte.
22196 (brabit, brabc, brabs): New.
22197 (insv, extzv): Emit bfst and bfld on H8300SX.
22198 (bfld, bfst, seq, sne): New.
22199 (bstzhireg, cmpstz, bstz, bistz): New.
22200 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
22201 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
22202 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
22203 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
22204 (h8sx_unary_memory_operator): New function.
22205 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
22206 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
22207 * config/h8300/h8300.md: Add peepholes to combine reloads and
22208 arithmetic insns.
22209 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
22210 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
22211 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
22212 (and?i, ior?i, xor?i): Likewise.
22213 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
22214 * config/h8300/h8300.c: Move enums and prototypes to head of file.
22215 Various whitespace fixes.
22216 (h8300_constant_length): New function, split out from...
22217 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
22218 (h8300_classify_operand): Use IN_RANGE.
22219 (h8300_classify_operand): Use h8300_constant_length.
22220 (h8300_short_move_mem_p): Tighten size check.
22221 (h8sx_mergeable_memrefs_p): Tighten equality check.
22222 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
22223 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
22224 for -msx.
22225 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
22226 * config/h8300/crtn.asm: Likewise.
22227 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
22228 if __H8300SX__ is defined.
22229 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
22230 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
22231 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
22232 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
22233 addresses as mode-dependent.
22234 * config/h8300/h8300.c (print_operand_address): Update call to
22235 h8300_get_index.
22236 (h8300_get_index): Take a mode argument. Rework to fix an
22237 earlier misunderstanding.
22238 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
22239 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
22240 into a register if TARGET_H8300SX.
22241 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
22242 TARGET_H8300SX. Also disable related define_splits.
22243 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
22244 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
22245 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
22246 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
22247 * config/h8300/h8300.h (OK_FOR_Z): New macro.
22248 (EXTRA_CONSTRAINT_STR): Check it.
22249 * config/h8300/h8300.c (h8300_classify_operand): Accept null
22250 class arguments.
22251 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
22252 * config/h8300/h8300.md (length_table): Add mov_imm4.
22253 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
22254 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
22255 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
22256 be a label.
22257 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
22258 * config/h8300/h8300.c (h8300_reorg): New function.
22259 (TARGET_MACHINE_DEPENDENT_REORG): Define.
22260 * config/h8300/h8300.md (length): Subtract the length of the
22261 delay slot from (pc) when checking the range of forward branches.
22262 (delay_slot, can_delay): New attributes.
22263 (define_delay): Add bra/s handling.
22264 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
22265 (jump): Add delayed-branch handling.
22266 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
22267 * expr.c (expand_strcpy): New function.
22268 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
22269 (expand_builtin_stpcpy): Likewise.
22270 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
22271 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
22272 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
22273 handling to improve register allocation for -fno-omit-frame-pointer.
22274 (h8sx_split_movmd): Delete, moving er6 handling into...
22275 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
22276 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
22277 (movmd): Add calls to copy_rtx.
22278 (movmd_internal): In the second alternative, allow the initial and
22279 final destination registers to be different . Update the splitter
22280 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
22281 instead of h8sx_split_movmd.
22282 (stpcpy, movsd): New expanders.
22283 (movsd_internal): New define_insn.
22284 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
22285 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
22286 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
22287 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
22288 and DESTINATION_REGS.
22289 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
22290 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
22291 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
22292 (h8300_move_ratio): Declare.
22293 (MOVE_RATIO): Use it.
22294 * config/h8300/h8300.c (h8300_move_ratio): New variable.
22295 (h8300_init_once): Initialize it.
22296 (h8300_reg_class_from_letter): New function.
22297 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
22298 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
22299 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
22300 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
22301 (movstrsi, movmd): New expanders.
22302 (movmd_internal): New insn.
22303 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
22304 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
22305 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
22306 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
22307 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
22308 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
22309 * config/h8300/h8300.c (nibble_operand): Fix warning.
22310 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
22311 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
22312 (movsf_h8300h): Disable for TARGET_H8300SX.
22313 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
22314 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
22315 h8300_stm_parallel and h8300_return_parallel.
22316 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
22317 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
22318 h8300_stm_parallel, h8300_return_parallel): New functions.
22319 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
22320 if TARGET_H8300SX. Use h8300_push_pop.
22321 (h8300_expand_epilogue): Likewise. Try to merge the return insn
22322 and final pop when generating h8sx code. Always emit some form
22323 of return insn.
22324 * config/h8300/h8300.md: Don't enforce register alignment in
22325 stm peepholes if TARGET_H8300SX.
22326 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
22327 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
22328 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
22329 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
22330 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
22331 (MULTILIB_DIRNAMES): Add a directory for it.
22332 (MULTILIB_MATCHES): Delete.
22333 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
22334 * final.c (walk_alter_subreg): Handle addresses with subregs
22335 inside a ZERO_EXTEND or AND.
22336 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
22337 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
22338 if TARGET_H8300SX.
22339 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
22340 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
22341 @(dd,Rn.w) and @(dd,ERn.L).
22342 (h8300_displacement_size): Take the whole address as argument.
22343 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
22344 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
22345 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
22346 (h8sx_mergeable_memrefs_p): Declare.
22347 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
22348 (HAVE_PRE_INCREMENT): Likewise.
22349 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
22350 addresses for TARGET_H8300SX,
22351 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
22352 and POST_DEC.
22353 (movb_length_table, movl_length_table): New tables.
22354 (movw_length_table): Define to movb_length_table.
22355 (h8300_displacement_size): New, split out from...
22356 (h8300_classify_address): ...here. Handle pre/post inc/dec.
22357 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
22358 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
22359 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
22360 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
22361 (compute_plussi_length, compute_plussi_cc): Update accordingly.
22362 (h8sx_unary_shift_operator): Get the mode from the operator.
22363 (binary_shift_operator): Likewise.
22364 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
22365 a memory reference, check whether the reference is offsettable.
22366 (length_table): Add movb, movw and movl.
22367 (movqi): Add new h8sx pattern. Don't force one operand to be a
22368 register when generating h8sx code.
22369 (movhi, movsi, movsf): Likewise.
22370 (movstrictqi): Use the length_table attribute.
22371 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
22372 (addqi3): Split into a define_expand and define_insn. Don't accept
22373 memory operands in the expander. Use h8300_operands_match_p to
22374 check for matching operands in the define_insn.
22375 (subqi3, negqi2, one_cmplqi2): Likewise.
22376 (add[hs]i3): Don't accept memory operands in the expander. Likewise
22377 in any patterns that are unused in h8sx code. In the h8sx patterns,
22378 use h8300_operands_match_p to check whether operands match.
22379 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
22380 one_cmpl[hs]i3): Likewise.
22381 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
22382 in the expander.
22383 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
22384 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
22385 (h8300_insn_length_from_table): Add a second parameter.
22386 (output_h8sx_shift): Declare.
22387 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
22388 (EXTRA_CONSTRAINT): Replace with...
22389 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
22390 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
22391 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
22392 and h8sx_binary_shift_operator.
22393 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
22394 for TARGET_H8300SX.
22395 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
22396 (bit_memory_operand, fix_bit_operand): Likewise.
22397 (h8300_length_table_for_insn): Remove.
22398 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
22399 instructions.
22400 (h8300_short_immediate_length, h8300_binary_length): New functions.
22401 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
22402 (output_plussi): Use sub to add negative constants.
22403 (compute_plussi_length): Adjust accordingly.
22404 (h8sx_single_shift_type): New enum.
22405 (h8sx_single_shift, h8sx_unary_shift_operator,
22406 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
22407 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
22408 single h8sx instruction. Return false in this case.
22409 * config/h8300/h8300.md (length_table): Add short_immediate.
22410 (length): Pass the operand array to h8300_insn_length_from_table.
22411 (adjust_length): Assume "no" for insns with a length_table attribute.
22412 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
22413 (*addhi3_h8300hs): Don't use for h8sx.
22414 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
22415 and sub.w #xx:3.
22416 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
22417 1's predicate to nonimmediate_operand. Only skip default expansion
22418 if expand_a_shift or expand_a_rotate returns true. Add new patterns
22419 for single h8sx shift instructions.
22420 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
22421 * config/h8300/h8300.c (nibble_operand): Split out of...
22422 (reg_or_nibble_operand): ... this.
22423 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
22424 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
22425 umulhisi3): Introduce expand, and introduce separate insns for
22426 sign- or zero-extended REG and already-extended CONST_INT.
22427 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
22428 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
22429 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
22430 (subhi3): Likewise. Don't accept immediates for operand 1.
22431 Remove the early clobber from second alternative of the h8300s pattern.
22432 (subsi3): Generalize for h8sx. Force operand 2 into a register
22433 on plain h8300 targets.
22434 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
22435 (subsi3_h8300h): Generalize for h8sx.
22436 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
22437 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
22438 * config/h8300/h8300.c (reg_or_nibble_operand): New.
22439 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
22440 (TARGET_H8300SXMUL): New.
22441 (CONST_OK_FOR_P): New.
22442 (CONST_OK_FOR_LETTER_P): Adjust.
22443 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
22444 umulhisi3): Accept 4-bit immediate on H8SX.
22445 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
22446 (udivsi3, divhi3, udivsi3, divsi3): New.
22447 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
22448 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
22449 * config/h8300/h8300.h (OK_FOR_Q): New macro.
22450 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
22451 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
22452 Add ADDRESSOF to the bit_operand entry.
22453 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
22454 (h8300_src_operand): Likewise.
22455 (bit_operand): Check nonimmediate_operand rather than general_operand.
22456 Accept any nonimmediate_operand in h8sx code.
22457 (h8300_and_costs): Initialize operands[1].
22458 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
22459 (h8300_operand_class): New enum.
22460 (h8300_length_table): New typedef.
22461 (addb_length_table, addw_length_table, addl_length_table,
22462 logicl_length_table): New tables.
22463 (logicb_length_table, logicw_length_table): New macros.
22464 (h8300_classify_operand, h8300_length_from_table,
22465 h8300_length_table_for_insn, h8300_unary_length,
22466 h8300_insn_length_from_table): New functions.
22467 (output_plussi): Only use adds and subs for register destinations.
22468 Disable redundant clause.
22469 (compute_plussi_cc): Likewise.
22470 (compute_plussi_length): Likewise. Use h8300_length_from_table
22471 to work out the length of an insn.
22472 (output_logical_op): Only use narrower immediate instructions
22473 if the destination is a register.
22474 (compute_logical_op_cc): Likewise.
22475 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
22476 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
22477 * config/h8300/h8300.md (length_table): New attribute.
22478 (length): When an instruction has a length_table attribute, use
22479 h8300_insn_length_from_table to calculate its default length.
22480 (cmpqi): Use h8300_dst_operand for the first operand and
22481 h8300_src_operand for the second.
22482 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
22483 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
22484 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
22485 iorsi3, xorhi3, xorsi3): Likewise.
22486 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
22487 so that it allows any combination of operands for TARGET_H8300SX.
22488 (iorqi3, xorqi3): Likewise.
22489 (cmpqi): Use the length_table attribute.
22490 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
22491 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
22492 (cmpqi): Add 'Q' constraint.
22493 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
22494 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
22495 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
22496 * config/h8300/h8300.h (MASK_H8300SX): New macro.
22497 (TARGET_H8300S): True for both -ms and -msx.
22498 (TARGET_H8300SX): New macro.
22499 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
22500 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
22501 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
22502 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
22503 [Temporary change.]
22504 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
22505 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
22506 16-bit pointers and 32-bit ints.
22507 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
22508 CONST_DOUBLE with mode no wider than SImode.
22509 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
22510 output operand.
22511 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
22512 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
22513 or SUBREG thereof.
22514 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
22515 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
22516 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
22517
22518 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
22519
22520 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
22521
22522 2004-07-07 Per Bothner <per@bothner.com>
22523
22524 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
22525
22526 2004-07-07 Mike Stump <mrs@apple.com>
22527
22528 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
22529 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
22530 (machopic_finish): Likewise.
22531
22532 2004-07-07 Richard Henderson <rth@redhat.com>
22533
22534 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
22535 through any value-preserving cast.
22536
22537 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
22538
22539 * function.c (assign_parm_find_data_types): Call
22540 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
22541
22542 2004-07-07 Steven Bosscher <stevenb@suse.de>
22543
22544 * tree-cfg.c (group_case_labels): Remove case labels that have
22545 the same target as the default case.
22546
22547 2004-07-07 Steven Bosscher <stevenb@suse.de>
22548
22549 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
22550 regardless of DECL_LANG_SPECIFIC being present or not.
22551 * tree.h (DECL_NUM_STMTS): Purge.
22552
22553 2004-07-07 Andrew Pinski <apinski@apple.com>
22554
22555 * configure: Regenerate with the right autoconf.
22556
22557 2004-07-07 David Edelsohn <edelsohn@gnu.org>
22558
22559 * ifcvt.c (total_bb_rtx_cost): New function.
22560 (find_if_case_1): Compare rtx_cost of basic block to cost of
22561 BRANCH_COST insns.
22562 (find_if_case_2): Same.
22563
22564 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
22565
22566 PR target/10567
22567 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
22568 (output_return): Likewise.
22569 (output_sibcall): Abort if !flag_delayed_branch.
22570 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
22571 (emit_and_preserve): New function.
22572 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
22573 indirect jump to the thunked-to function if !flag_delayed_branch.
22574 * config/sparc/sparc.md (delayed_branch): New attribute.
22575 (load_pcrel_sym): Honor flag_delayed_branch. Use above
22576 attribute to compute the length of the insn.
22577 (goto_handler_and_restore): Likewise.
22578
22579 2004-07-07 Andrew Pinski <apinski@apple.com>
22580
22581 PR tree-optimization/15777
22582 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
22583
22584 * expr.c (expand_expr_real_1): Fix formating.
22585 BUFFER_REF and IN_EXPR are dead.
22586 * fold-const.c (non_lvalue): BUFFER_REF is dead.
22587 * tree-inline.c (estimate_num_insns_1): Likewise.
22588 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
22589 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
22590 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
22591
22592 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
22593
22594 * collect2.c (dump_file): Don't call cplus_demangle if
22595 HAVE_LD_DEMANGLE is defined.
22596 (main): Pass "--demangle" to ld if no_demangle is not 0 and
22597 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
22598 if HAVE_LD_DEMANGLE is defined.
22599
22600 * configure.ac (--with-demangler-in-ld): Added
22601 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
22602 --with-demangler-in-ld is used.
22603 * config.in: Regenerated.
22604 * configure: Likewise.
22605
22606 2004-07-07 Roger Sayle <roger@eyesopen.com>
22607
22608 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
22609 for simple floating point operations "fp", double precision
22610 multiplication "dmul", and single and double precision division
22611 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
22612 (ppc630_cost): New table split from ppc620_cost, to distinguish
22613 differences in floating point latencies.
22614 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
22615 (rs6000_rtx_costs): Add support for single and double precision
22616 floating point addition, subtraction, multiplication, division,
22617 fused-multiply-add, fused-multiply-sub, negation, absolute value
22618 and negative absolute value. Tweak MEM case to use prefered idiom.
22619
22620 2004-07-07 Richard Henderson <rth@redhat.com>
22621
22622 * tree-flow-inline.h (may_propagate_copy): Move...
22623 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
22624 attempt to copy between types requiring conversion.
22625 * tree-flow.h (may_propagate_copy): Update decl.
22626 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
22627
22628 2004-07-07 Jakub Jelinek <jakub@redhat.com>
22629
22630 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
22631 from -mtune= option.
22632
22633 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
22634
22635 * builtins.c: Rename movstr*, except for movstrict*, to
22636 movmem* and clrstr* to clrmem*.
22637 * expr.c: Likewise.
22638 * expr.h: Likewise.
22639 * genopinit.c: Likewise.
22640 * integrate.c: Likewise.
22641 * local-alloc.c: Likewise.
22642 * optabs.c: Likewise.
22643 * optabs.h: Likewise.
22644 * config/alpha/alpha.h: Likewise.
22645 * config/alpha/alpha.md: Likewise.
22646 * config/arm/arm-protos.h: Likewise.
22647 * config/arm/arm.c: Likewise.
22648 * config/arm/arm.md: Likewise.
22649 * config/avr/avr.md: Likewise.
22650 * config/c4x/c4x.c: Likewise.
22651 * config/c4x/c4x.md: Likewise.
22652 * config/frv/frv.md: Likewise.
22653 * config/i386/i386-protos.h: Likewise.
22654 * config/i386/i386.c: Likewise.
22655 * config/i386/i386.h: Likewise.
22656 * config/i386/i386.md: Likewise.
22657 * config/i860/i860.c: Likewise.
22658 * config/i860/i860.md: Likewise.
22659 * config/ip2k/ip2k.md: Likewise.
22660 * config/ip2k/libgcc.S: Likewise.
22661 * config/ip2k/t-ip2k: Likewise.
22662 * config/m32r/m32r.c: Likewise.
22663 * config/m32r/m32r.md: Likewise.
22664 * config/mcore/mcore.md: Likewise.
22665 * config/mips/mips.c: Likewise.
22666 * config/mips/mips.md: Likewise.
22667 * config/ns32k/ns32k.c: Likewise.
22668 * config/ns32k/ns32k.h: Likewise.
22669 * config/ns32k/ns32k.md: Likewise.
22670 * config/pa/pa.c: Likewise.
22671 * config/pa/pa.md: Likewise.
22672 * config/pdp11/pdp11.h: Likewise.
22673 * config/pdp11/pdp11.md: Likewise.
22674 * config/rs6000/rs6000.c: Likewise.
22675 * config/rs6000/rs6000.md: Likewise.
22676 * config/s390/s390-protos.h: Likewise.
22677 * config/s390/s390.c: Likewise.
22678 * config/s390/s390.md: Likewise.
22679 * config/sh/lib1funcs.asm: Likewise.
22680 * config/sh/sh.c: Likewise.
22681 * config/sh/sh.md: Likewise.
22682 * config/sh/t-sh: Likewise.
22683 * config/sparc/sparc.h: Likewise.
22684 * config/vax/vax.md: Likewise.
22685 * config/xtensa/xtensa.c: Likewise.
22686 * config/xtensa/xtensa.md: Likewise.
22687 * doc/invoke.texi: Likewise.
22688 * doc/md.texi: Likewise.
22689 * doc/rtl.texi: Likewise.
22690
22691 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
22692
22693 PR target/16407
22694 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
22695 * config/mips/mips.c (mips_declare_common_object): New function,
22696 mostly split out from...
22697 (mips_output_aligned_decl_common): ...here.
22698 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
22699 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
22700 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
22701 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
22702
22703 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22704
22705 PR c/16392
22706 * function.c (assign_parms): Fix typo from previous change.
22707
22708 2004-07-07 Jason Merrill <jason@redhat.com>
22709
22710 PR c++/15815
22711 * doc/extend.texi (C++ Interface): Correct information and
22712 discourage use.
22713
22714 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
22715
22716 PR target/16130
22717 PR target/16142
22718 PR target/16143
22719 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
22720 insn.
22721
22722 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
22723
22724 PR target/1679.
22725 * config/m32r/m32r.c (m32r_function_symbol): New function:
22726 Generate a symbol name RTX with the correct m32r specific flags
22727 set.
22728 (block_move_call): Use new function to generate correct symbol.
22729 * config/m32r/m32r-protos.h: Add prototype for new funcion.
22730 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
22731 function.
22732
22733 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
22734
22735 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
22736 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
22737 TYPE_BINFO_BASETYPE): Remove.
22738 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
22739 to ...
22740 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
22741 here.
22742 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
22743 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
22744 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
22745 (struct tree_binfo): Rename base_types to base_binfos.
22746 * alias.c (record_component_aliases): Adjust BINFO macros.
22747 * dbxout.c (dbxout_type): Likewise.
22748 * dwarf2out.c (gen_member_die): Likewise.
22749 * sdbout.c (sdbout_one_type): Likewise.
22750 * tree-dump.c (deque_and_dump): Likewise.
22751 * config/i386/i386.c (classify_argument,
22752 contains_128bit_aligned_vector_p): Likewise.
22753
22754 2004-07-07 Nick Clifton <nickc@redhat.com>
22755
22756 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
22757 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
22758
22759 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
22760
22761 * vec.h: Fix the example use.
22762
22763 2004-07-06 Richard Henderson <rth@redhat.com>
22764
22765 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
22766 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
22767 * tree-inline.c (copy_body_r, setup_one_parameter,
22768 initialize_inlined_parameters, expand_call_inline,
22769 declare_inline_vars): Don't check it.
22770 (expand_calls_inline): Remove old version, rename new version
22771 from gimple_expand_calls_inline.
22772 * tree-optimize.c (execute_gimple): Remove.
22773 (pass_gimple): Don't run anything.
22774
22775 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
22776
22777 * doc/sourcebuild.texi: Use semicolons instead of commas in
22778 section title.
22779
22780 2004-07-06 Richard Henderson <rth@redhat.com>
22781
22782 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
22783 (sra_walk_modify_expr, scan_init): Likewise.
22784 (generate_element_zero): Check visited before scanning children.
22785 (generate_element_init): Set visited on error.
22786 (scalarize_init): Handle generate_element_init failure similar
22787 to use_block_copy.
22788
22789 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
22790
22791 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
22792 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
22793
22794 2004-07-06 Richard Henderson <rth@redhat.com>
22795
22796 * config/i386/i386.c (legitimize_pic_address): Make static.
22797 (legitimize_address): Handle CONST with TLS operand.
22798 (ix86_expand_move): Don't call legitimize_pic_address directly.
22799 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
22800
22801 2004-07-06 Roger Sayle <roger@eyesopen.com>
22802
22803 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
22804 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
22805 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
22806 is currently executed unconditionally, i.e. not in "else_bb".
22807
22808 2004-07-06 Steven Bosscher <stevenb@suse.de>
22809
22810 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
22811 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22812 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
22813 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22814 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
22815 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22816 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
22817 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22818 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
22819 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22820 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
22821 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22822 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
22823 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22824 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
22825 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22826
22827 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
22828
22829 * dojump.c (do_jump): REFERENCE_EXPR is dead.
22830 * expr.c (expand_expr_real_1): Ditto.
22831 * tree-inline.c (estimate_num_insns_1): Ditto.
22832 * tree-pretty-print.c (dump_generic_node): Ditto.
22833 (op_symbol): Ditto.
22834 * tree.def: Ditto.
22835
22836 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
22837
22838 * tree-ssa-pre.c (reference_node_pool): New pool.
22839 (find_or_generate_expression): Class 'r' is okay too.
22840 (create_value_expr_from): Ditto.
22841 (add_to_sets): LHS should not include vuses.
22842 (eliminate): Ditto.
22843 (compute_avail): Reverse ordering of tests.
22844 Valuize INDIRECT_REF as well.
22845
22846 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
22847
22848 PR rtl-optimization/16380
22849 * loop.c (check_dbra_loop): Sink comparison instructions if they
22850 do something other than set cc0.
22851
22852 2004-07-06 James E Wilson <wilson@specifixinc.com>
22853
22854 * doc/interface.texi (longjmp and automatic variables): Delete
22855 paragraph recommending taking the address of a variable.
22856
22857 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
22858
22859 * vec.h (VEC_embedded_alloc): Remove.
22860 (VEC_embedded_size, VEC_embedded_init): New.
22861 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
22862 MEM_STAT_INFO.
22863 (VEC_truncate): New.
22864 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
22865 (vec_embedded_alloc): Remove.
22866 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
22867 (vec_embedded_alloc): Remove.
22868
22869 2004-07-06 Mark Mitchell <mark@codesourcery.com>
22870
22871 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
22872 (gt-langhooks.h): Remove.
22873
22874 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
22875
22876 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
22877
22878 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
22879
22880 * config/sparc/sparc.c (get_pc_symbol): Rename into
22881 add_pc_to_pic_symbol.
22882 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
22883 (load_pic_register): Account for previous changes.
22884 Use reg_names. Don't create the label twice.
22885 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
22886 UNSPEC_LOAD_PCREL_SYM.
22887 (get_pc): Rename into load_pcrel_sym. Add predicate to
22888 operands. Remove condition.
22889
22890 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
22891
22892 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
22893 RECORD, UNION & QUAL_UNION is actually a binfo.
22894
22895 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
22896 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
22897 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
22898 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
22899 * dwarf2out.c (add_data_member_location_attribute): Likewise.
22900 (gen_inheritance_die): Likewise.
22901 * tree-dump.c (deque_and_dump): Likewise.
22902 * doc/c-tree.texi (Binfos): Add under reconstruction note.
22903
22904 2004-07-06 Steven Bosscher <stevenb@suse.de>
22905
22906 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
22907 Define.
22908 * config/mcore/mcore.md: Model memory latency with a simple DFA
22909 pipeline description instead of a define_function_unit.
22910
22911 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22912
22913 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
22914 * langhooks.h (var_mod_type_p): Likewise.
22915 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
22916 * expr.c (count_type_elements): Properly handle return from
22917 array_type_nelts and properly test for overflow.
22918 * gimplify.c (gimplify_init_constructor): Properly handle return
22919 from array_type_nelts.
22920 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
22921 * integrate.c (copy_decl_for_inlining): Correct comments.
22922 * tree-inline.c (remap_decl): Update comments, remove dead code,
22923 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
22924 (remap_type): Only remap if variably modified by vars in function
22925 being inlined.
22926 (copy_body_r): Use compatible_type langhooks to see when can fold.
22927 (setup_one_parameter): Don't remap type.
22928 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
22929 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
22930 compute TREE_INVARIANT for decl case.
22931 (find_var_from_fn): New function.
22932 (variably_modified_type_p): Add arg and call new function.
22933 * tree.h (variably_modified_type_p): Add extra arg.
22934
22935 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
22936
22937 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
22938 (goto_handler_and_restore_v9): Delete disabled insn.
22939 (goto_handler_and_restore_v9_sp64): Likewise.
22940
22941 2004-07-05 Roger Sayle <roger@eyesopen.com>
22942
22943 * calls.c (load_register_parameters): Call expand_shift instead
22944 of expand_binop with ashl_optab (or other shift optab) directly.
22945 * expr.c (emit_group_load, emit_group_store): Likewise.
22946 * function.c (assign_parm_setup_block): Likewise.
22947 * stmt.c (shift_return_value): Likewise.
22948
22949 2004-07-05 Jakub Jelinek <jakub@redhat.com>
22950
22951 * expr.c (expand_assignment): Disable the bitfield += optimizations.
22952
22953 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
22954
22955 * doc/sourcebuild.texi: Revert previous patch.
22956
22957 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
22958
22959 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
22960 TARGET_MEM_FUNCTIONS.
22961 * system.h: Poison TARGET_MEM_FUNCTIONS.
22962 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
22963 bcmp_libfunc, bzero_libfunc): Remove.
22964 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
22965 bzero_libfunc.
22966 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
22967 * doc/standards.texi: Don't mention calling BSD string functions.
22968 * doc/invoke.texi: Likewise. Mention that memmove may be called.
22969 * config/vax/t-memfuncs: New.
22970 * config/memcmp.c, config/memcpy.c, config/memmove.c,
22971 config/memset.c: New.
22972 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
22973 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
22974 vax/t-memfuncs.
22975 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
22976 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
22977 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
22978 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
22979 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
22980 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
22981 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
22982 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
22983 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
22984 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
22985
22986 2004-07-05 Richard Henderson <rth@redhat.com>
22987
22988 * function.c (assign_parm_setup_reg): Properly rename variables in
22989 FUNCTION_ARG_CALLEE_COPIES section.
22990
22991 2004-07-05 Zack Weinberg <zack@codesourcery.com>
22992
22993 * tree-mudflap.c: Include cgraph.h.
22994 (mf_init_extern_trees): Rename to mudflap_init. Export.
22995 Rewrite to create synthetic declarations instead of looking
22996 up declarations from mf-runtime.h.
22997 (mf_make_builtin, mf_make_cache_struct_type): New functions.
22998 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
22999 Correct commentary.
23000 (execute_mudflap_function_decls, mudflap_register_call):
23001 Don't call mf_init_extern_trees.
23002 (mudflap_finish_file): Use cgraph_build_static_cdtor.
23003
23004 * tree-mudflap.h: Update prototypes.
23005 * c-mudflap.c: Delete file.
23006 * c-common.c: Include tree-mudflap.h.
23007 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
23008 * Makefile.in: Remove all references to c-mudflap.o.
23009 Update dependencies.
23010
23011 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23012
23013 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
23014 displacements with the spatial-locality cache-control completer.
23015
23016 2004-07-05 Zack Weinberg <zack@codesourcery.com>
23017
23018 * langhooks.c: Don't include gt-langhooks.h.
23019 (var_labelno): Delete.
23020 (lhd_set_decl_assembler_name): Do not append a distinguishing
23021 number to file-scope internal-linkage declarations for the first
23022 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
23023 the declaration itself (if at block scope), or its containing
23024 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
23025 number.
23026
23027 * opts.c (cur_in_fname): New global.
23028 * opts.h: Declare it.
23029 * tree.c: Include opts.h.
23030 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
23031 DECL_UID equal to cur_in_fname.
23032 (copy_node_stat): Do not change DECL_UID when copying a
23033 TRANSLATION_UNIT_DECL.
23034 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
23035 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
23036
23037 * c-decl.c (c_static_assembler_name): Delete.
23038 * c-tree.h (c_static_assembler_name): Delete prototype.
23039 * c-lang.c, objc/objc-lang.c: Don't override
23040 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
23041
23042 * Makefile.in (tree.o): Update dependencies.
23043 (GTFILES): Remove langhooks.c.
23044
23045 2004-07-05 Roger Sayle <roger@eyesopen.com>
23046
23047 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
23048 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
23049 Normalize "X % C" as "X % -C" for signed modulus and negative C.
23050 Optimize "X % -Y" as "X % Y" for signed modulus.
23051 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
23052 into "((unsigned) X % Y) == 0".
23053
23054 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
23055
23056 * sourcebuild.texi (Config Fragments): Use @comma{} in
23057 cross-reference to section title.
23058
23059 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23060
23061 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
23062 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
23063 (gimplify_target_expr, gimplify_expr): Likewise.
23064 (copy_if_shared_r): No longer need special case for BIND_EXPR.
23065 (unshare_body, unvisit_body): Only look at nested if BODY_P is
23066 whole function.
23067 (gimplify_compound_lval): See if we can strip any useless conversion.
23068 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
23069 from RHS, not LHS.
23070 (gimplify_modify_expr_to_memset): Likewise.
23071 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
23072 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
23073 (declare_inline_vars): Likewise.
23074 (walk_type_fields): New function.
23075 (walk_tree): Use it.
23076 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
23077
23078 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
23079 (sra_walk_modify_expr): Allow init function to fail.
23080 (scan_init): Now returns bool.
23081 (generate_element_init): If can't understand INIT, return false.
23082 (scalarize_init): Return false if generate_element_init does.
23083
23084 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
23085 print bounds.
23086
23087 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
23088 bounds if bounds aren't constant.
23089
23090 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
23091
23092 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
23093 to type hooks; remove bogus PARAMS.
23094
23095 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
23096
23097 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
23098 * dwarf2out.c (add_data_member_location_attribute): Check for
23099 TREE_BINFO.
23100 * tree.c (tree_node_kinds): Add "binfos".
23101 (binfo_lang_slots): New.
23102 (make_node_stat): Add TREE_BINFO.
23103 (make_tree_binfo_stat): New.
23104 (tree_node_structure): Add TREE_BINFO.
23105 * tree.def (TREE_BINFO): New.
23106 * tree.h (REC_OR_UNION_CHECK): Rename to ...
23107 (RECORD_OR_UNION_CHECK): ... here.
23108 (NOT_RECORD_OR_UNION_CHECK): New.
23109 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
23110 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
23111 RECORD_OR_UNION_CHECK.
23112 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
23113 (TYPE_LANG_SLOT_1): New.
23114 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
23115 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
23116 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
23117 (BINFO_ELTS): Remove.
23118 (BINFO_LANG_SLOT): New.
23119 (struct tree_binfo): New.
23120 (binfo_lang_slots): Declare.
23121 (enum tree_node_structure_enum): Add TS_BINFO.
23122 (union tree_node): Add binfo.
23123 (make_tree_binfo_stat): Declare.
23124 (make_tree_binfo): New.
23125 (enum tree_node_kind): Add binfo_kind.
23126
23127 * objc/objc-act.c (start_class, objc_declare_protocols,
23128 start_protocols): Use TYPE_LANG_SLOT_1.
23129 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
23130 to ...
23131 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
23132 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
23133 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
23134 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
23135
23136 2004-07-05 Steven Bosscher <stevenb@suse.de>
23137
23138 * rtl.h (struct rtx_def): Remove the integrated flag.
23139 Use the return_val flag for MEM_SCALAR_P.
23140 Reshuffle and update flags in CLEAR_RTX_FLAGS.
23141
23142 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
23143
23144 PR target/16357
23145 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
23146 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
23147 move_by_pieces.
23148
23149 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
23150
23151 * var-tracking.c: Fix some comments.
23152 (frame_stack_adjust): New.
23153 (vt_stack_adjustments): Init stack_adjust of entry block to
23154 minus stack adjustment of function prologue.
23155 (adjust_stack_reference): Do not adjust if adjustment == 0.
23156 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
23157 (emit_notes_in_bb): Likewise.
23158 (vt_add_function_parameters): Do not adjust locations of
23159 function arguments.
23160 (vt_initialize): Compute the stack adjustment of function
23161 prologue and offset the initial "location" of frame_base_decl
23162 from the stack pointer after prologue.
23163
23164 2004-07-04 Richard Henderson <rth@redhat.com>
23165
23166 * function.c (struct assign_parm_data_all): New.
23167 (struct assign_parm_data_one): New.
23168 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
23169 assign_parm_find_data_types, assign_parms_setup_varargs,
23170 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
23171 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
23172 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
23173 assign_parm_setup_block, assign_parm_setup_reg,
23174 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
23175 (assign_parms): ... here.
23176
23177 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
23178
23179 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
23180 now are bitmap_set_t's.
23181 (bitmap_insert_into_set): No point in inserting the value if
23182 it's invariant.
23183 (bitmap_set_contains): New function.
23184 (bitmap_set_replace_value): Add comment on why we do it
23185 this way.
23186 (set_contains): Removed.
23187 (bitmap_set_subtract_from_value_set): New name of
23188 set_subtract now that it's arguments are two different
23189 types of sets.
23190 Update callers.
23191 (bitmap_find_leader): Change algorithm used.
23192 (find_or_generate_expression): Update use of functions for new
23193 bitmap sets.
23194 (create_expression_by_pieces): Ditto.
23195 (insert_aux): Ditto.
23196 (insert): Ditto.
23197 (add_to_sets): Ditto.
23198 (init_pre): Ditto.
23199 (execute_pre): Ditto.
23200 (compute_avail): Ditto.
23201 Also ignore virtual phis.
23202
23203 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
23204
23205 * combine.c (simplify_comparison): Fix comment typo.
23206
23207 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
23208
23209 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
23210 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
23211 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
23212 (output_restore): Change parameter from 'insn' to 'pat'.
23213 (output_return): Adjust call to output_restore.
23214 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
23215 Adjust call to output_restore.
23216
23217 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
23218
23219 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
23220 and assert system is bsd.
23221
23222 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
23223
23224 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
23225 (TARGET_SWITCHES): Remove -mdebugc.
23226 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
23227 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
23228 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
23229 (sle_[sd]i_reg): Delete.
23230
23231 2004-07-04 Steven Bosscher <stevenb@suse.de>
23232
23233 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
23234 Define.
23235 * config/iq2000/iq2000.md: Translate old pipeline description to an
23236 equivalent new one.
23237
23238 2004-07-04 Roger Sayle <roger@eyesopen.com>
23239
23240 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
23241 Ensure the replacement rhs is valid gimple before performing
23242 the substitution. Return false if these sanity checks fail.
23243 (fold_stmt): Only set changed to true, if set_rhs returns true.
23244 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
23245 succeeds.
23246
23247 2004-07-04 Richard Henderson <rth@redhat.com>
23248
23249 PR c/16348
23250 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
23251
23252 2004-07-04 Mark Mitchell <mark@codesourcery.com>
23253
23254 * configure.ac (ranlib_flags): New variable.
23255 * Makefile.in (RANLIB_FLAGS): New variable.
23256 (libbackend.a): Use it.
23257 * configure: Regenerated.
23258
23259 2004-07-04 Roger Sayle <roger@eyesopen.com>
23260
23261 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
23262 a "sign mask" instead of using ashr_optab directly.
23263
23264 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
23265
23266 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
23267 * doc/cppopts.texi: Clarify processing of command-line defines.
23268
23269 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
23270
23271 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
23272
23273 2004-07-04 Richard Henderson <rth@redhat.com>
23274
23275 * rtl.def (ADDRESSOF): Remove.
23276 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
23277 (find_base_term, memrefs_conflict_p): Likewise.
23278 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
23279 (fold_rtx, cse_insn, set_live_p): Likewise.
23280 * dwarf2out.c (mem_loc_descriptor): Likewise.
23281 (add_location_or_const_value_attribute): Likewise.
23282 * emit-rtl.c (copy_insn_1): Likewise.
23283 * explow.c (memory_address): Likewise.
23284 * expmed.c (store_split_bit_field): Likewise.
23285 * expr.c (expand_expr_real_1): Likewise.
23286 * function.c (instantiate_decl
23287 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
23288 * genrecog.c (preds, validate_pattern): Likewise.
23289 * integrate.c (copy_rtx_and_substitute): Likewise.
23290 * recog.c (general_operand, register_operand): Likewise.
23291 (memory_address_p): Likwise.
23292 * reload1.c (eliminate_regs, elimination_effects): Likewise.
23293 * rtl.c (copy_rtx): Likewise.
23294 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
23295 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
23296 * rtlhooks.c (gen_lowpart_general): Likewise.
23297 * stmt.c (expand_asm_operands): Likewise.
23298 * web.c (entry_register, replace_ref, web_main): Likewise.
23299 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
23300 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
23301 * config/arm/arm.c (thumb_rtx_costs): Likewise.
23302 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
23303 * config/frv/frv.c (move_destination_operand, move_source_operand,
23304 condexec_dest_operand, condexec_source_operand,
23305 condexec_memory_operand): Likewise.
23306 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
23307 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
23308 (destination_xfmode_operand): Likewise.
23309 * config/mips/mips.h (PREDICATE_CODES): Likewise.
23310 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
23311 * config/s390/s390.c (general_s_operand): Likewise.
23312 * config/s390/s390.md (mov*): Likewise.
23313 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
23314
23315 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
23316 * expr.c (expand_expr_real_1): Likewise.
23317 * stmt.c (expand_decl): Likewise.
23318 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
23319
23320 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
23321 postponed_insns, put_var_into_stack, put_reg_into_stack,
23322 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
23323 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
23324 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
23325 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
23326 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
23327 purge_bitfield_addressof_replacements, purge_addressof_replacements,
23328 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
23329 struct insns_for_mem_walk_info, insns_for_mem_walk,
23330 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
23331 setjmp_protect_args): Remove.
23332 (push_function_context_to): Don't handle var_refs_queue.
23333 (pop_function_context_from, free_after_compilation): Likewise.
23334 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
23335 (assign_parms, allocate_struct_function): Likewise.
23336 (use_register_for_decl): New.
23337 (expand_function_end): Don't setjmp_protect.
23338 * function.h (struct emit_status): Update commentary.
23339 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
23340 (max_parm_reg, parm_reg_stack_loc): Remove.
23341 * passes.c (DFI_addressof): Remove.
23342 (dump_file_info): Remove addressof.
23343 (rest_of_handle_addressof): Remove.
23344 (rest_of_compilation): Don't call it.
23345 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
23346 * stmt.c (expand_decl): Use use_register_for_decl.
23347 * tree.h: Update decls.
23348 * web.c (mark_addressof): Remove.
23349 * doc/invoke.texi (-dF): Remove.
23350
23351 2004-07-03 Richard Henderson <rth@redhat.com>
23352
23353 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
23354 instead of gen_mem_addressof.
23355 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
23356 TImode output register.
23357
23358 2004-07-03 Richard Henderson <rth@redhat.com>
23359
23360 PR tree-optimization/16341
23361 * tree-sra.c (sra_walk_function): Increment to next stmt before
23362 processing the current stmt.
23363 (sra_insert_after): Always use BSI_SAME_STMT.
23364
23365 2004-07-03 Richard Henderson <rth@redhat.com>
23366
23367 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
23368 fp plus with minus.
23369
23370 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
23371
23372 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
23373 with tree_int_cst_equal.
23374
23375 2004-07-03 Andreas Schwab <schwab@suse.de>
23376
23377 * config/ia64/ia64.md: Define new attribute "empty".
23378 (prologue_use, nop_x, insn_group_barrier): Set it.
23379
23380 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
23381 skip over "empty" insns.
23382
23383 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23384
23385 * tree-inline.c (initialize_inlined_parameters): Pass proper function
23386 context to gimplify_body.
23387 (walk_tree): Don't walk into types twice.
23388 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
23389
23390 * tree-sra.c (generate_element_init): Remove any useless conversions.
23391
23392 * gimplify.c (gimplify_conversion): Remove stripping useless
23393 conversions from here.
23394 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
23395 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
23396 Unshare before substituting PLACEHOLDER_EXPR.
23397 (gimplify_modify_expr_to_memset): Likewise.
23398 Pass address of TO to memset, not TO itself.
23399 (gimplify_init_constructor): Make copy of OBJECT so we have it each
23400 time we make an expression (to match a PLACEHOLDER_EXPR).
23401
23402 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
23403 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
23404 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
23405 * tree-ssa-dom.c (local_fold): Likewise.
23406
23407 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
23408 * langhooks.h (strct lang_hooks): New field type_max_size.
23409 * function.c (assign_temp): Call it.
23410
23411 2004-07-03 Steven Bosscher <stevenb@suse.de>
23412
23413 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
23414 * config/sh/sh.md: Convert the SH1 pipeline description to
23415 a DFA model.
23416
23417 2004-07-02 Zack Weinberg <zack@codesourcery.com>
23418
23419 * c-decl.c (struct c_binding): Remove contour field; add
23420 depth, invisible, nested fields.
23421 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
23422 (B_IN_EXTERNAL_SCOPE): New convenience macros.
23423 (bind): Add invisible and nested arguments. Initialize
23424 new fields of struct c_binding; adjust loop scanning for
23425 insertion point.
23426 (free_binding_and_advance): Clear structure with memset.
23427 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
23428 in file scope, even if it's in external scope too.
23429 (pushdecl): Adjust to match. Create invisible file-scope
23430 declarations for block-scope forward declarations of static functions.
23431 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
23432 (undeclared_variable, lookup_label, declare_label, define_label)
23433 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
23434 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
23435 (store_parm_decls_oldstyle): Adjust to match.
23436 (diagnose_mismatched_decls): Correct handling of linkage clashes.
23437 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
23438
23439 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
23440 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
23441
23442 2004-07-02 Richard Henderson <rth@redhat.com>
23443
23444 * c-decl.c (grokdeclarator): Don't frob current_function_decl
23445 around variable_size.
23446 (set_decl_nonlocal): Remove.
23447 (store_parm_decls): Add stmts for pending sizes.
23448 * calls.c (calls_function, calls_function_1): Remove.
23449 (precompute_arguments): Don't call it.
23450 * cfgexpand.c (set_save_expr_context): Remove.
23451 (tree_expand_cfg): Don't call it.
23452 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
23453 (dwarf2out_finish): Likewise.
23454 * expr.c (emit_block_move): Adjust addresses to BLKmode.
23455 (store_constructor): Don't pre-evaluate SAVE_EXPR.
23456 (safe_from_p): Don't queue SAVE_EXPRs.
23457 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
23458 or build plain VAR_DECLs.
23459 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
23460 (fold): Likewise.
23461 (fold_checksum_tree): Don't special-case SAVE_EXPR.
23462 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
23463 (put_var_into_stack): Don't handle SAVE_EXPR.
23464 (gen_mem_addressof): Likewise.
23465 * function.h (struct function): Remove x_save_expr_regs.
23466 (save_expr_regs): Remove.
23467 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
23468 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
23469 * stor-layout.c (variable_size): Don't set it.
23470 (force_type_save_exprs, force_type_save_exprs_1): Remove.
23471 * tree-inline.c (remap_save_expr): Remove fn argument. Update
23472 all callers. Don't set SAVE_EXPR_CONTEXT.
23473 * tree-inline.h (remap_save_expr): Update decl.
23474 * tree.c (save_expr): Update build size.
23475 (first_rtl_op): Don't handle SAVE_EXPR.
23476 (unsave_expr_1, contains_placeholder_p): Likewise.
23477 (decl_function_context): Likewise.
23478 * tree.def (SAVE_EXPR): Remove args 1 and 2.
23479 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
23480 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
23481
23482 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
23483
23484 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
23485 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
23486 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
23487 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
23488 some first-person references and patronizing comments. Based on
23489 printed manual.
23490 * doc/invoke.texi: Don't reference fortran@gnu.org.
23491 * doc/trouble.texi (Warning when a non-void function value is
23492 ignored): Rewrite. From Russ Allbery and Chris Devers.
23493
23494 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
23495
23496 * tree-ssa-pre.c (bitmap_set_t): New.
23497 (bb_value_sets): avail_out is now a bitmap_set_t.
23498 (bitmap_find_leader): New function.
23499 (bitmap_value_insert_into_set): Ditto.
23500 (bitmap_set_copy): Ditto.
23501 (bitmap_value_replace_in_set): Ditto.
23502 (bitmap_set_contains_value): Ditto.
23503 (bitmap_set_new): Ditto.
23504 (bitmap_set_pool): New pool.
23505 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
23506 (insert_aux): Ditto.
23507 (add_to_sets): Ditto.
23508 (compute_avail): Ditto
23509 (eliminate): Ditto.
23510 (init_pre): Ditto.
23511 (fini_pre): Ditto.
23512 (execute_pre): Ditto.
23513
23514 2004-07-02 Roger Sayle <roger@eyesopen.com>
23515
23516 * config/rs6000/rs6000.c (struct processor_costs): New structure
23517 used to hold instruction latencies/sizes for processor types.
23518 (rs6000_cost): New global variable pointing to current CPU's costs.
23519 (rs6000_override_options): Initialize rs6000_cost to point to the
23520 appropriate cost table based upon rs6000_cpu and optimize_size.
23521 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
23522 timings inline.
23523
23524 2004-07-02 Richard Henderson <rth@redhat.com>
23525
23526 * expmed.c (make_tree): Don't use SET_DECL_RTL.
23527
23528 2004-07-02 Steven Bosscher <stevenb@suse.de>
23529
23530 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
23531
23532 2004-07-01 Richard Henderson <rth@redhat.com>
23533
23534 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
23535 (alpha_gp_save_rtx): Use assign_stack_local instead of
23536 gen_mem_addressof.
23537
23538 2004-07-01 Richard Henderson <rth@redhat.com>
23539
23540 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
23541 (alpha_rtx_cost_data): Update to match.
23542 (alpha_rtx_cost_size): New.
23543 (alpha_rtx_costs): Honor optimize_size.
23544
23545 2004-07-01 Richard Henderson <rth@redhat.com>
23546
23547 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
23548 * cfgexpand.c (tree_expand_cfg): Do it here.
23549 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
23550 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
23551 * config/mips/mips.c (mips_output_mi_thunk): And here.
23552 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
23553 * config/sh/sh.c (sh_output_mi_thunk): And here.
23554 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
23555
23556 2004-07-01 Richard Henderson <rth@redhat.com>
23557
23558 * tree.def (RTL_EXPR): Remove.
23559 * c-typeck.c (lvalue_p): Don't handle it.
23560 * expr.c (safe_from_p): Likewise.
23561 (expand_expr_real_1): Likewise.
23562 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
23563 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
23564 * gengtype.c (adjust_field_tree_exp): Likewise.
23565 * stmt.c (warn_if_unused_value): Likewise.
23566 * tree-gimple.c (recalculate_side_effects): Likewise.
23567 * tree-pretty-print.c (dump_generic_node): Likewise.
23568 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
23569 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
23570 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
23571
23572 * stmt.c (struct stmt_status): Remove x_last_expr_type,
23573 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
23574 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
23575 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
23576 all the bits that tracked last_expr.
23577 (expand_end_bindings): Don't track last_expr.
23578 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
23579 (clear_last_expr): Remove.
23580 (expand_asm): Don't call it.
23581 (expand_asm_operands, expand_end_cond): Likewise.
23582 (expand_naked_return, expand_null_return_1): Likewise.
23583 * c-typeck.c (c_begin_compound_stmt): Likewise.
23584 * cfgexpand.c (expand_block): Use expand_expr_stmt.
23585 * expr.c (expand_expr_real_1): Likewise.
23586 * tree.h: Update prototypes.
23587
23588 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
23589 (struct emit_status): Remove sequence_rtl_expr.
23590 (struct function): Remove x_rtl_expr_chain.
23591 (seq_rtl_expr, rtl_expr_chain): Remove.
23592 * function.c (struct temp_slot): Remove rtl_expr.
23593 (assign_stack_temp_for_type): Don't set it.
23594 (free_temp_slots, pop_temp_slots): Don't check it.
23595 (free_after_compilation): Don't clear x_rtl_expr_chain.
23596 (fixup_var_refs): Don't search it.
23597 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
23598 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
23599 or seq_rtl_expr.
23600 (push_topmost_sequence): Likewise.
23601 (end_sequence, init_emit): Likewise.
23602 (start_sequence_for_rtl_expr): Remove.
23603 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
23604 * rtl.h (preserve_rtl_expr_result): Remove.
23605
23606 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
23607
23608 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
23609 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
23610 typos.
23611
23612 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
23613
23614 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
23615 (STANDARD_STARTFILE_PREFIX_2): Define.
23616 (standard_startfile_prefix_1): Initialize to
23617 STANDARD_STARTFILE_PREFIX_1.
23618 (standard_startfile_prefix_2): Initialize to
23619 STANDARD_STARTFILE_PREFIX_2.
23620 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
23621 (STANDARD_STARTFILE_PREFIX_1): Define.
23622 (STANDARD_STARTFILE_PREFIX_2): Define.
23623 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
23624 (STANDARD_STARTFILE_PREFIX_2): Document.
23625
23626 2004-07-01 Richard Henderson <rth@redhat.com>
23627
23628 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
23629 in order to disable scalarization. Instead set a flag and wait
23630 for a candidate decl.
23631
23632 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
23633
23634 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
23635 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
23636 Use terminology "testsuite" and "enumerated".
23637
23638 2004-07-01 Richard Henderson <rth@redhat.com>
23639
23640 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
23641 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
23642 (initial_return_save): Likewise.
23643 (flush_queued_reg_saves): Remap register numbers.
23644 (dwarf2out_return_reg): Likewise.
23645
23646 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23647
23648 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
23649
23650 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
23651 access functions for lower bound and element size and only output
23652 if lower bound nonzero or element size not same as that of type.
23653 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
23654
23655 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
23656
23657 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
23658
23659 2004-07-01 Per Bothner <per@bothner.com>
23660
23661 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
23662
23663 2004-07-01 Jakub Jelinek <jakub@redhat.com>
23664
23665 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
23666 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
23667 first operand. Don't optimize if the bitfield is volatile.
23668
23669 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
23670
23671 * c-pretty-print.c (pp_c_postfix_expression): Handle
23672 floating-point comparison operators.
23673 (pp_c_expression): Pass floating-point comparison
23674 operators to pp_c_postfix_expression.
23675
23676 2004-07-01 Roger Sayle <roger@eyesopen.com>
23677
23678 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
23679 rtx_cost instead of "had_mult" to determine whether the transformed
23680 expression is cheaper than the original.
23681
23682 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
23683
23684 * alias.c (get_alias_set, canon_rtx, get_addr,
23685 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
23686 Use MEM_P.
23687 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
23688 expand_builtin): Likewise.
23689 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
23690 Likewise.
23691 * combine.c (can_combine_p, combinable_i3pat, try_combine,
23692 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
23693 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
23694 record_dead_and_set_regs_1, get_last_value_validate,
23695 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
23696 * cse.c (check_dependence, canon_hash, equiv_constant,
23697 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
23698 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
23699 count_reg_usage): Likewise.
23700 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
23701 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
23702 cselib_record_sets): Likewise.
23703 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
23704 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
23705 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
23706 * df.c (df_uses_record): Likewise.
23707 * dojump (do_jump): Likewise.
23708 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
23709 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
23710 decl_start_label): Likewise.
23711 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
23712 operand_subword, change_address_1, make_safe_from): Likewise.
23713 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
23714 stabilize, force_not_mem): Likewise.
23715 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
23716 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
23717 * expr.c (convert_move, convert_modes, emit_block_move,
23718 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
23719 emit_move_insn_1, expand_assignment, store_expr,
23720 store_constructor_field, store_constructor, store_field,
23721 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
23722 Likewise.
23723 * final.c (cleanup_subreg_operands, alter_subreg,
23724 get_mem_expr_from_op): Likewise.
23725 * flow.c (notice_stack_pointer_modification_1,
23726 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
23727 Likewise.
23728 * function.c (mark_temp_addr_taken, preserve_temp_slots,
23729 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
23730 optimize_bit_field, flush_addressof, purge_addressof_1,
23731 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
23732 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
23733 keep_stack_depressed): Likewise.
23734 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
23735 noce_process_if_block, find_memory): Likewise.
23736 * integrate.c (subst_constants, allocate_initial_values): Likewise.
23737 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
23738 update_equiv_regs): Likewise.
23739 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
23740 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
23741 * optabs.c (expand_abs, emit_unop_insn): Likewise.
23742 * passes.c (rest_of_handle_final): Likewise.
23743 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
23744 move2add_note_store): Likewise.
23745 * ra-build.c (detect_remat_webs): Likewise.
23746 * ra-debug.c (dump_static_insn_cost): Likewise.
23747 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
23748 * recog.c (validate_change, apply_change_group, cancel_changes,
23749 validate_replace_rtx_1, general_operand, register_operand,
23750 nonmemory_operand, push_operand, pop_operand, memory_operand,
23751 indirect_operand, asm_operand_ok, offsettable_memref_p,
23752 offsettable_nonstrict_memref_p, constrain_operands,
23753 store_data_bypass_p): Likewise.
23754 * reg-stack.c (subst_stack_regs_pat): Likewise.
23755 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
23756 copy_cost, reg_scan_mark_refs): Likewise.
23757 * regmove.c (optimize_reg_copy_3, stack_memref_p,
23758 combine_stack_adjustments_for_block): Likewise.
23759 * regrename.c (copyprop_hardreg_forward_1): Likewise.
23760 * reload.c (can_reload_into, push_reload, decompose, immune_p,
23761 find_reloads, find_reloads_address, find_reloads_address_1,
23762 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
23763 find_equiv_reg): Likewise.
23764 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
23765 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
23766 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
23767 delete_address_reloads): Likewise.
23768 * resource.c (mark_referenced_resources): Likewise.
23769 * rtlanal.c (get_jump_table_offset, count_occurrences,
23770 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
23771 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
23772 num_sign_bit_copies1): Likewise.
23773 * rtlhooks.c (gen_lowpart_general): Likewise.
23774 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
23775 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
23776 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
23777 sdbout_global_decl): Likewise.
23778 * simplify-rtx.c (simplify_subreg): Likewise.
23779 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
23780 expand_anon_union_decl, expand_end_case_type): Likewise.
23781 * unroll.c (calculate_giv_inc): Likewise.
23782 * var-tracking.c (stack_adjust_offset_pre_post,
23783 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
23784 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
23785 vt_add_function_parameters): Likewise.
23786 * varasm.c (make_var_volatile, notice_global_symbol,
23787 assemble_external, decode_addr_const, mark_weak,
23788 default_encode_section_info): Likewise.
23789
23790 2004-07-01 Steven Bosscher <stevenb@suse.de>
23791
23792 * stmt.c (check_seenlabel): Remove.
23793 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
23794
23795 2004-07-01 Richard Henderson <rth@redhat.com>
23796
23797 * function.h (struct function): Remove x_function_call_count.
23798 (function_call_count): Remove.
23799 * calls.c (expand_call): Don't set it.
23800 * integrate.c (copy_rtx_and_substitute): Likewise.
23801
23802 * function.h (struct function): Remove x_cleanup_label.
23803 (cleanup_label): Remove.
23804 * stmt.c (expand_value_return): Don't use it.
23805 * function.c (free_after_compilation): Don't set it.
23806 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
23807 * cfgexpand.c (tree_expand_cfg): Update call.
23808 * tree.h (expand_function_start): Update decl.
23809
23810 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
23811
23812 PR c/1027
23813 * c-lang.c (c_initialize_diagnostics): Move from here ...
23814 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
23815 (c_tree_printer): Use pretty-printer to format %T.
23816 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
23817 before '*' if not C++.
23818 (pp_c_direct_abstract_declarator): Don't try to print array upper
23819 bound for flexible array members.
23820 * c-tree.h: Include "diagnostic.h".
23821 (c_initialize_diagnostics): Declare.
23822 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
23823 * c-format.c (format_type_warning): New function. Improve
23824 diagnostics for incorrect format argument types.
23825 (check_format_types): Use it. Add two parameters. Use the
23826 TYPE_MAIN_VARIANT of wanted_type.
23827 (check_format_info_main): Pass new parameters to
23828 check_format_types.
23829 (struct format_wanted_type): Update comment.
23830
23831 2004-07-01 Nick Clifton <nickc@redhat.com>
23832
23833 * target.h (struct gcc_target): Add new field to struct cxx:
23834 import_export_class.
23835 * target-def.h (TARGET_CXX): Initialise the new field.
23836 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
23837 the new field.
23838 * doc/tm.texi: Document the new target hook.
23839
23840 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
23841
23842 * builtins.c (fold_builtin_classify): Fix typo.
23843
23844 2004-07-01 Richard Henderson <rth@redhat.com>
23845
23846 * function.c (identify_blocks, identify_blocks_1): Remove.
23847 * function.h (identify_blocks): Remove.
23848 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
23849
23850 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
23851
23852 * builtins.c (fold_builtin_classify): New.
23853 (fold_builtin_unordered_cmp): Fix commentary.
23854 (fold_builtin): Use it.
23855 * builtins.def: Define builtins for isnan,
23856 isnanf, isnanl, finite, finitef, finitel,
23857 isinf, isinff, isinfl.
23858
23859 2004-07-01 Richard Henderson <rth@redhat.com>
23860
23861 * function.h (struct function): Remove dont_emit_block_notes.
23862 * gimple-low.c (lower_function_body): Don't set it.
23863 * cfgexpand.c (expand_block): Don't check it.
23864 * cfglayout.c (insn_locators_initialize): Likewise.
23865 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
23866 * passes.c (rest_of_compilation): Likewise.
23867 * stmt.c (expand_start_bindings_and_block): Likewise.
23868 (expand_end_bindings): Likewise.
23869
23870 2004-07-01 Richard Henderson <rth@redhat.com>
23871
23872 * cgraph.h (cgraph_build_static_cdtor): Declare.
23873 * cgraphunit.c (cgraph_build_static_cdtor): New.
23874 * c-objc-common.c (build_cdtor): Use it.
23875 * coverage.c (create_coverage): Likewise.
23876 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
23877 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
23878
23879 See ChangeLog.11 for earlier changes.