]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
opts.h (add_input_filename): Remove extern declaration.
[gcc.git] / gcc / ChangeLog
1 2004-11-18 Ben Elliston <bje@au.ibm.com>
2
3 * opts.h (add_input_filename): Remove extern declaration.
4 * opts.c (add_input_filename): Make static.
5
6 2004-11-17 Mark Mitchell <mark@codesourcery.com>
7
8 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
9 ATTRIBUTE_UNUSED.
10
11 2004-11-17 Zack Weinberg <zack@codesourcery.com>
12
13 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
14 * system.h: Poison it.
15 * doc/tm.texi: Delete its documentation.
16
17 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
18 Mark Mitchell <mark@codesourcery.com>
19
20 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
21 * config/i386/i386.c (i386_solaris_elf_named_section): New
22 function.
23 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
24 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
25 64-bit.
26 (ASM_QUAD): Don't undefine for biarch targets.
27 * config/i386/t-sol2: Introduce multilib support.
28
29 2004-11-18 Ben Elliston <bje@au.ibm.com>
30
31 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
32
33 2004-11-18 Ben Elliston <bje@au.ibm.com>
34
35 * cgraph.h: Replace "it's" with "its" throughout.
36
37 2004-11-18 Ben Elliston <bje@au.ibm.com>
38
39 * doc/rtl.texi (Flags): Grammar fix.
40
41 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
42
43 * expmed.c (alg_code): Add alg_unknown.
44 (alg_hash_entry): New.
45 (NUM_ALG_HASH_ENTRIES): Likewise.
46 (alg_hash): Likewise.
47 (synth_mult): Cache the result into alg_hash.
48
49 2004-11-17 Zack Weinberg <zack@codesourcery.com>
50
51 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
52 config/rs6000/libgcc-ppc64.ver.
53
54 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
55
56 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
57 checking if an unconditional return is followed by a barrier.
58
59 * jump.c (condjump_p): Remove unreachable code.
60
61 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
62 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
63 tree-ssa-live.h, tree.h: Remove unused prototypes.
64
65 2004-11-17 Jeff Law <law@redhat.com>
66
67 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
68 (edge_to_cases_elt): Renamed from edge_to_case_leader.
69 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
70 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
71 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
72 (get_cases_for_edge): New function.
73 (start_recording_case_labels, end_recording_case_labels): Similarly.
74 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
75 chain equivalent CASE_LABEL_EXPRs together.
76 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
77 (make_switch_expr_edges): Do not record edge/cases here.
78 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
79 (split_critical_edges): Record cases around the edge splitting code.
80 (cleanup_dead_labels): Use CASE_LABEL again.
81 (tree_redirect_edge_and_branch): If we have a mapping from edge
82 to cases, use it to handle redirections. Else do it the slow way.
83 * tree.h (CASE_LEADER_OR_LABEL): Kill.
84 (CASE_LABEL): Revert to just looking at the tree's second operand.
85 * tree.c (get_case_label): Kill.
86
87 2004-11-17 Diego Novillo <dnovillo@redhat.com>
88
89 PR tree-optimization/18307
90 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
91 'orig' are the same node.
92 (collect_points_to_info_r): Do not call merge_pointed_to_info
93 when the PHI argument is identical to the LHS.
94
95 2004-11-17 Steven Bosscher <stevenb@suse.de>
96
97 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
98 to insert the exit or entry block.
99 (ssa_prop_init): Use add_control_edge to seed the algorithm.
100
101 2004-11-16 Zack Weinberg <zack@codesourcery.com>
102
103 * mkmap-flat.awk, mkmap-symver.awk: If the last version
104 assigned to a symbol was '%exclude', do not emit it anywhere.
105 If leading_underscore is true, prefix all symbols from the
106 version scripts with a leading underscore before comparing
107 them with nm output or emitting them. Remove support for dot
108 symbols.
109 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
110 (SHLIB_MAPFILES): Use libgcc-std.ver.
111 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
112 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
113 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
114 libgcc-excl.ver and libgcc-glibc.ver.
115
116 * config/sh/libgcc-excl.ver: New file.
117 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
118
119 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
120
121 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
122 the test when the edge has the opposite meaning, not when
123 the first argument is invariant.
124
125 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
126
127 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
128 doubles.
129 (rs6000_complex_function_value): Handle e500 v2 variant.
130
131 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
132
133 Fix PR tree-optimization/18519
134
135 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
136 * tree-pass.h: Add TODO_cleanup_cfg.
137 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
138 (ccp_finalize): Remove call to cleanup_cfg.
139 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
140 (pass_cd_dce): Ditto.
141 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
142 dump_function_to_file.
143 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
144 to cleanup_cfg.
145 (pass_ch): Add TODO_cleanup_cfg.
146 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
147 cleanup_cfg.
148 (pass_loop_done): Add TODO_cleanup_cfg.
149 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
150 (tree_ssa_phiopt): Remove call to cleanup_cfg.
151
152 2004-11-16 Devang Patel <dpatel@apple.com>
153
154 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
155
156 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
157
158 * expmed.c, ra-colorize.c: Fix comment typos.
159
160 * doc/tm.texi: Fix typos.
161
162 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
163 Mark Mitchell <mark@codesourcery.com>
164
165 PR target/6123
166 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
167 __pic__ if PIC.
168
169 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
170
171 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
172 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
173
174 2004-11-16 Devang Patel <dpatel@apple.com>
175
176 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
177
178 2004-11-16 Eric Christopher <echristo@redhat.com>
179
180 * config/mips/mips.c: Use rtl _P predicates.
181 * config/mips/mips.h: Ditto.
182 * config/mips/mips.md: Ditto.
183
184 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
185
186 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
187 the pattern.
188
189 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
190
191 * config/s390/s390.c (s390_cc_modes_compatible): New function.
192 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
193
194 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
195
196 PR target/18447
197 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
198 before and after the insns for getting GOT address in non-PIC
199 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
200 is enabled.
201
202 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
203
204 * gcc/cse.c (struct change_cc_mode_args): New structure.
205 (cse_change_cc_mode_insn): New function.
206 (cse_change_cc_mode): Use validate_change to perfom changes.
207 (cse_change_cc_mode_insns, cse_condition_code_reg):
208 Call cse_change_cc_mode_insn.
209
210 2004-11-16 Steven Bosscher <stevenb@suse.de>
211
212 * stack.h: Remove.
213
214 2004-11-16 Steven Bosscher <stevenb@suse.de>
215
216 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
217
218 2004-11-15 Dale Johannesen <dalej@apple.com>
219
220 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
221
222 2004-11-15 Dale Johannesen <dalej@apple.com>
223
224 * profile.c (compute_branch_probabilities): Prevent
225 crash with EH in RTL-based profiling.
226
227 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
228
229 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
230 COND_EXPR_COND.
231 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
232 * tree-ssa-dom.c (thread_across_edge): Likewise.
233 * tree-vectorizer.c (vect_transform_loop_bound): Replace
234 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
235 COND_EXPR_ELSE.
236
237 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
238 (tree_flow_call_edges_add): Update the call to
239 bsi_commit_edge_inserts.
240 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
241 * profile.c (branch_prob): Likewise.
242 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
243 * tree-sra.c (scalarize_function): Likewise.
244 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
245 * tree-ssa-pre.c (fini_pre): Likewise.
246 * tree-flow.h: Update the prototype for
247 bsi_commit_edge_inserts.
248
249 2004-11-15 Eric Christopher <echristo@redhat.com>
250
251 * sched-deps.c (set_sched_group_p): Delete.
252 (delete_all_dependencies): New function.
253 (fixup_sched_groups): Use. New function.
254 (sched_analyze_insn): Use.
255
256 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
257
258 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
259 RROTATE_EXPR or unknown code.
260 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
261 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
262 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
263 or unknown code.
264
265 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
266
267 PR c/18498
268 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
269 after processing the declarator.
270
271 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
272
273 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
274 vec_duplicate.
275 (altivec_vspltb): Same.
276 (altivec_vspltw): Same.
277 (altivec_vspltisb): Same.
278 (altivec_vspltish): Same.
279 (altivec_vspltisw): Same.
280 (altivec_vspltisw_v4sf): Same.
281 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
282 UNSPEC_VSPLTISH.
283 Move "End of vector xor's" comment to the right place.
284
285 2004-11-15 Steve Ellcey <sje@cup.hp.com>
286
287 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
288 instead of nonimmediate_operand.
289
290 2004-11-15 Mark Mitchell <mark@codesourcery.com>
291
292 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
293 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
294 * config/sol2.c (solaris_output_init_fini): Update calls to
295 ASM_OUTPUT_CALL. Include "rtl.h".
296
297 2004-11-15 Mark Mitchell <mark@codesourcery.com>
298
299 * config/sol2-c.c (cmn_err_char_table): Add "p".
300
301 2004-11-15 Mark Mitchell <mark@codesourcery.com>
302
303 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
304 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
305
306 2004-11-15 Mark Mitchell <mark@codesourcery.com>
307
308 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
309 within the multilib directory.
310
311 2004-11-15 Nick Clifton <nickc@redhat.com>
312
313 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
314 builtin assert of cpu=xstormy16.
315
316 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
317
318 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
319 variable.
320
321 2004-11-14 Richard Henderson <rth@redhat.com>
322
323 PR 18480
324 * calls.c (struct arg_data): Add parallel_value.
325 (precompute_register_parameters): Set it.
326 (load_register_parameters): Use it.
327 (store_one_arg): Also set it here.
328
329 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
330
331 PR tree-optimization/18431
332 * fold-const.c (associate_trees): Do not produce x + 0.
333 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
334 (fold): Use them.
335 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
336 Moved ...
337 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
338 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
339
340 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
341
342 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
343
344 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
345
346 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
347 value-prof.c: Fix comment typos.
348
349 2004-11-14 Stan Shebs <shebs@apple.com>
350
351 Basic ABI changes for passing structs by value in 64-bit Darwin.
352 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
353 (rs6000_override_options): Set it for 64-bit Darwin.
354 (rs6000_parse_abi_options): Add testing options to change it.
355 (rs6000_return_in_memory): Test whether the type is one
356 that can be passed in registers.
357 (darwin64_function_arg_advance): New.
358 (function_arg_advance): Call it, plus add recursion depth
359 argument and test when counting off arguments.
360 (rs6000_darwin64_function_arg): New.
361 (function_arg): Call it.
362 (setup_incoming_varargs): Add argument to function_arg_advance.
363 (rs6000_darwin64_function_value): New.
364 (rs6000_function_value): Call it.
365 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
366 * config/rs6000/rs6000-protos.h: Update decl of
367 function_arg_advance.
368
369 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
370
371 PR c/17279
372 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
373 support TImode before adding __int128_t and __uint128_t types.
374
375 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
376
377 PR tree-opt/18400
378 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
379 (vect_transform_loop_bound): Set loop->nb_iterations.
380
381 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
382 Andrew Pinski <pinskia@physics.uc.edu>
383
384 PR tree-opt/18425
385 * tree-vectorize.c (vect_build_loop_niters): Do not insert
386 NULL into the instruction stream. Initialize new_bb to NULL.
387 (vect_update_ivs_after_vectorizer): Likewise.
388 (vect_gen_niters_for_prolog_loop): Likewise.
389
390 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
391
392 PR tree-optimization/18431
393 * tree-flow.h (stmt_references_memory_p): Declare.
394 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
395 * tree-ssa.c (stmt_references_memory_p): New function.
396
397 2004-11-14 Andreas Schwab <schwab@suse.de>
398
399 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
400 $(EXPR_H).
401
402 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
403
404 * c-common.c (walk_stmt_tree): Remove.
405 * c-common.h: Remove the corresponding prototype.
406
407 * emit-rtl.c (push_to_full_sequence): Remove.
408 * rtl.h: Remove the corresponding prototype.
409
410 * cselib.c, expr.c: Fix comment typos.
411
412 2004-11-13 Richard Henderson <rth@redhat.com>
413
414 * calls.c (precompute_register_parameters): Force all PARALLELs
415 into pseudo registers.
416 (load_register_parameters): Copy PARALLELs into hard registers.
417 * function.c (assign_parm_setup_block): Copy PARALLELS into
418 pseudo registers. Do emit_group_store in conversion_insns.
419 * expr.c (emit_group_load_1): Rename from emit_group_load, take
420 tmps as an argument. Move final copy loop ...
421 (emit_group_load): ... here. New function.
422 (emit_group_load_into_temps, emit_group_move_into_temps): New.
423 * expr.h: Declare them.
424
425 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
426
427 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
428 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
429 with PHI_CHAIN where appropriate.
430
431 2004-11-13 Dale Johannesen <dalej@apple.com>
432
433 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
434 (tree_block_label): Ditto.
435 (flush_pending_stmts): Ditto.
436 (insert_edge_copies): Ditto.
437 (expr_invariant_in_loop_p): Ditto.
438 (TDF_USE_OPS): Parenthesize definition.
439 (TDF_USE_VOPS): Ditto.
440
441 2004-11-13 David Edelsohn <edelsohn@gnu.org>
442
443 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
444 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
445 (atoll): Declare.
446 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
447
448 2004-11-14 Joseph Myers <joseph@codesourcery.com>
449
450 * config/i386/i386.c (override_options): Move loop to set default
451 tuning to correct place.
452
453 2004-11-13 Zak Kipling <zak@transversal.com>
454
455 PR target/18300
456 * config/i386/i386.c (classify_argument): Fix infinite loop when
457 passing object with 3 or more base classes by value.
458
459 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
460
461 * doc/md.texi (constraints) <% modifier>: Mention that it is
462 useless when the two alternatives are strictly identical.
463
464 2004-11-13 Richard Henderson <rth@redhat.com>
465
466 * expmed.c (extract_split_bit_field): Temporarily disable call to
467 extract_force_align_mem_bit_field.
468
469 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
470
471 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
472 formatting.
473
474 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
475 lambda-code.c, postreload.c, predict.c, tree-sra.c,
476 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
477
478 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
479
480 * doc/install.texi (automake): Correctly document that everything now
481 will use automake 1.9.3.
482
483 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
484
485 PR target/18347
486 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
487 TImode. Sorry for other non-complex larger-than-64-bit modes.
488 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
489
490 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
491
492 * doc/install.texi (automake): Document that everything now uses 1.9.
493
494 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
495
496 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
497 previous loads.
498
499 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
500
501 * tree.h: Fix comment typos.
502
503 2004-11-13 Steven Bosscher <stevenb@suse.de>
504
505 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
506 HARD_REGISTER_NUM_P.
507
508 * cselib.c (new_cselib_val): Make comment correct and more detailed.
509 * flow.c (mark_set_1): Likewise.
510
511 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
512 duplicate_eh_regions): Remove.
513 * except.h (duplicate_eh_regions): Remove prototype.
514 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
515 global_const_equiv_varray): Remove.
516 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
517 global_const_equiv_varray, set_label_in_map): Remove prototypes,
518 extern declaration, and #define.
519 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
520 (struct inline_remap): Remove.
521 * varray.c (struct element): Remove entry for const_equiv_data.
522 * varray.h (struct const_equiv_data): Remove.
523 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
524 (union varray_data_tag) <const_equiv>: Remove.
525 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
526 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
527
528 * regstack.c (record_label_references): Remove unused function.
529
530 * rtl.def (VALUE): Update comment.
531 (LABEL_REF): Remove unused operand 2.
532 * rtl.h (struct rtx_def): Update for removed accessor macros.
533 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
534 REG_LOOP_TEST_P): Remove.
535 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
536 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
537 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
538
539 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
540 Eric Botcazou <ebotcazou@libertysurf.fr>
541
542 PR target/18230
543 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
544 patterns.
545 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
546 (V32I): New macro for 32-bit modes.
547 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
548 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
549 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
550 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
551 one_cmpldi_sp64): Use V64I instead of DI.
552 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
553 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
554 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
555 (nandv64i_vis, nandv32i_vis): New patterns.
556
557 2004-11-12 Mike Stump <mrs@apple.com>
558
559 * Makefile.in: Add html support.
560 * java/Make-lang.in: Likewise.
561 * fortran/Make-lang.in: Likewise.
562 * treelang/Make-lang.in: Likewise.
563 * doc/install.texi: Likewise.
564 * doc/makefile.texi: Likewise.
565 * doc/sourcebuild.texi: Likewise.
566
567 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
568
569 * tree-ssa-loop-manip.c: Fix a comment typo.
570
571 2004-11-12 Mike Stump <mrs@apple.com>
572
573 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
574 renaming this node to Concept Index.
575 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
576 to more closely match gcc.texi.
577
578 2004-11-12 Jeff Law <law@redhat.com>
579
580 * tree-cfg.c (hashtab.h): Include.
581 (struct edge_to_case_leader_elt): New structure.
582 (edge_to_case_leader): New.
583 (edge_to_case_leader_hash): New hashtable hasing function.
584 (edge_to_case_leader_eq): New hashtable equality function.
585 (record_switch_edge): New function.
586 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
587 (make_switch_expr_edges): Build the edge-to-case-leader
588 hash table. Tear down the hash table when we're done.
589 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
590 CASE_LABEL.
591 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
592 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
593 to use new concept of case leaders to reduce overhead of
594 redirecting outgoing edges from switch statements.
595 * tree.c (get_case_label): New function.
596 * tree.h (CASE_LABEL): Define in terms of get_case_label.
597 (CASE_LEADER_OR_LABEL): Define.
598
599 2004-11-12 Ziemowit Laski <zlaski@apple.com>
600
601 * varasm.c (output_addressed_constants): For CONST_DECLs,
602 output the initializer if present.
603
604 2004-11-12 Ziemowit Laski <zlaski@apple.com>
605
606 * config/rs6000/darwin.h: Fix confusing typo in comment.
607
608 2004-11-12 Devang Patel <dpatel@apple.com>
609
610 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
611
612 2004-11-12 Devang Patel <dpatel@apple.com>
613
614 * tree-if-conv.c (clean_predicate_lists): Use loop header
615 and latch directly.
616
617 2004-11-12 Richard Henderson <rth@redhat.com>
618
619 PR 17778
620 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
621 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
622 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
623 * config/i386/i386-modes.def (XF): Use it.
624
625 2004-11-11 Geoffrey Keating <geoffk@apple.com>
626
627 * Makefile.in (macro_list): Use move-if-change to avoid spurious
628 rebuilds.
629
630 2004-11-12 Mark Mitchell <mark@codesourcery.com>
631
632 PR c++/18416
633 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
634 when deciding whether to pass a variable to
635 cgraph_varpool_finalize_decl or assemble_variable.
636 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
637
638 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
639
640 * tree-vectorizer.c: Fix a comment typo.
641
642 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
643
644 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
645
646 2004-11-12 Diego Novillo <dnovillo@redhat.com>
647
648 * tree-scalar-evolution.c (analyzable_condition): Remove
649 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
650
651 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
652
653 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
654 Remove m505/roe multilib variant.
655
656 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
657
658 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
659 to load from the stack.
660
661 2004-11-12 Richard Henderson <rth@redhat.com>
662
663 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
664 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
665 * toplev.h (FL2T__): Remove.
666 (CLZ_HWI): Rename from FL2T_CLZ__.
667 (CTZ_HWI): New.
668 (floor_log2): Simplify.
669 (exact_log2): New.
670
671 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
672
673 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
674 compute the first overlapping iterations.
675
676 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
677
678 PR middle-end/18005
679 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
680 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
681
682 2004-11-12 Steven Bosscher <stevenb@suse.de>
683
684 PR tree-optimization/18419
685 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
686 pointer set instead of a bitmap.
687 (walk_use_def_chains): Create, pass and clean up that pointer_set.
688
689 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
690 field an sbitmap.
691 (init_alias_info): Allocate and zero it here.
692 (delete_alias_info): Delete it here.
693 (collect_points_to_info_for): Use it.
694
695 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
696
697 * alias.c (record_alias_subset, addr_side_effect_eval):
698 Make them static.
699 * alias.h: Remove the prototype for record_alias_subset.
700 * expr.h: Remove the commented-out prototype for
701 record_alias_subset.
702 * rtl.h: Remove the prototype for addr_side_effect_eval.
703
704 * cfglayout.c (choose_inner_scope): Make it static.
705 * rtl.h: Remove the corresponding prototype.
706
707 * cfgloopmanip.c (update_single_exits_after_duplication,
708 unloop): Make them static.
709 * cfgloop.h: Remove the corresponding prototypes.
710
711 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
712 Make them static.
713 * c-tree.h: Remove the corresponding prototypes.
714
715 * explow.c (round_push): Make it static.
716 * expr.h: Remove the corresponding prototype.
717
718 * varasm.c (get_named_section_flags, decl_tls_model): Make
719 them static.
720 * output.h: Remove the prototype for get_named_section_flags.
721 * tree.h: Remove the prototype for decl_tls_model.
722
723 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
724
725 * function.c (expand_function_end): Remove an "if" statement
726 that always triggers.
727 * stmt.c (expand_null_return_1): Likewise.
728
729 2004-11-11 James E. Wilson <wilson@specifixinc.com>
730
731 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
732 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
733 CLASS_MAX_NREGS): Likewise.
734
735 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
736
737 PR tree-optimization/17742
738 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
739 MINUS_EXPR correctly.
740
741 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
742
743 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
744 Give up as soon as the evolution is known not computable.
745
746 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
747
748 PR target/16457
749 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
750 mask64_1or2_operand.
751 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
752 to spot rlwinm opportunities.
753 (and64_2_operand): Use mask_1or2_operand.
754 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
755
756 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
757
758 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
759 (vect_update_ivs_after_vectorizer): Update function documentation.
760 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
761
762 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
763
764 * config/arm/arm.c: Fix a comment typo.
765
766 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
767
768 * bitmap.h (nBITMAP_WORD_BITS): Remove.
769 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
770 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
771 unnecessary casts.
772 (bitmap_first_set_bit): Return unsigned, use ctzl.
773 (bitmap_last_set_bit): Remove.
774 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
775 unsigned.
776 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
777 remove special case code for two word elements.
778 (bitmap_last_set_bit): Remove.
779 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
780 bitmap_first_set_bit with bitmap_empty_p.
781 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
782 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
783 bitmap_last_bit_set.
784
785 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
786
787 PR target/16796
788 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
789
790 PR target/16458
791 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
792 unsigned equality compare when we know the operands are unsigned.
793
794 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
795
796 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
797 __PIC__ and __pic__ only if TARGET_ABICALLS.
798 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
799 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
800 -KPIC only if not -mno-abicalls.
801
802 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
803 * config/sparc/linux.h, config/sparc/linux64.h
804 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
805
806 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
807 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
808 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
809 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
810
811 2004-11-11 Paul Brook <paul@codesourcery.com>
812
813 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
814 register if current_function_uses_pic_offset_table is set.
815
816 2004-11-10 David Edelsohn <edelsohn@gnu.org>
817
818 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
819 Change multi-instruction sequences to new attribute.
820 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
821 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
822 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
823
824 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
825
826 * tree-data-ref.c (build_classic_dist_vector): If either loop
827 is outside of the nest we asked about, the dependence can't
828 matter.
829 (build_classic_dir_vector): Ditto.
830
831 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
832
833 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
834 right order.
835 (force_var_cost): Determine cost of addition and multiplication more
836 precisely.
837 (get_computation_cost_at): Add cost for computing address elements to
838 the final cost.
839
840 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
841 one of the arguments of MINUS_EXPR is an address.
842 (split_address_to_core_and_offset): New function.
843 (ptr_difference_const): Handle case when one of the operands is a
844 pointer.
845 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
846 (ptr_difference_cost): Pass addresses instead of objects to
847 ptr_difference_const.
848
849 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
850
851 * tree.c (tree_check_failed): Emit general error if the list of
852 node types is empty.
853
854 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
855
856 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
857 argument. When the union is passed in the 6th slot, build a
858 PARALLEL with only one element.
859 (function_arg): Adjust call to function_arg_union_value.
860 (function_value): Likewise.
861
862 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
863
864 PR tree-optimization/17892
865 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
866 MINUS_EXPR operator.
867
868 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
869
870 PR target/18230
871 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
872 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
873
874 2004-11-10 Steven Bosscher <stevenb@suse.de>
875
876 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
877 (struct basic_block_def): Remove local_set and cond_local_set
878 fields. Update comment for global_live_at_start.
879 * flow.c (calculate_global_regs_live): Allocate local_sets and
880 cond_local_sets here as arrays of bitmaps previously stored in
881 bb->local_set and bb->cond_local_set. Use xmalloc instead of
882 obstack allocated bitmaps.
883
884 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
885
886 PR target/18380
887 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
888 hidden.
889
890 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
891
892 2004-11-09 Jeff Law <law@redhat.com>
893
894 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
895 argument holding last unvisited block. Start search for
896 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
897 (connect_infinite_loops_to_exit): Supply last unvisited block
898 to flow_dfs_compute_reverse_execute.
899
900 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
901
902 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
903 doubles.
904 (floatunssidf2): Same.
905 (floatsidf2): Same.
906 ("extendsfdf2"): New expander.
907 (*extendsfdf2_fpr): Rename.
908 (*truncdfsf2_fpr): Same.
909 (*negdf2_fpr): Same.
910 (*absdf2_fpr): Same.
911 (*nabsdf2_fpr): Same.
912 (*adddf3_fpr): Same.
913 (*subdf3_fpr): Same.
914 (*muldf3_fpr): Same.
915 (*divdf3_fpr): Same.
916
917 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
918 ("spe_fix_truncdfsi2"): Same.
919 (spe_floatunssidf2): Same.
920 (spe_floatsidf2): Same.
921
922 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
923
924 PR c/18322
925 * c-common.c (fname_decl): Don't use line number of decl in
926 diagnostic.
927
928 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
929
930 * config/s390/s390-protos.h (s390_pool_operand): Remove.
931 * config/s390/s390.c (s390_pool_operand): Likewise.
932 (s390_extra_constraint_str): Handle 'B' constraints.
933 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
934 * config/s390/s390.md: Document 'B' constraints.
935 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
936 s390_pool_operand to prevent insns with two literal pool
937 references. Make pattern commutative.
938 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
939 'B' constraint instead of s390_pool_operand.
940
941 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
942
943 * tree-cfg.c (create_bb): Remove unnecessary memset.
944
945 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
946
947 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
948 (thread_block): Call flush_pending_stmt instead of
949 copy_phis_to_block.
950
951 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
952
953 * loop-iv.c (iv_number_of_iterations): Make it static.
954 * cfgloop.h: Remove the corresponding prototype.
955
956 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
957
958 * function.c (combine_temp_slots, assign_parms,
959 expand_pending_sizes): Make them static.
960 * tree.h: Remove the corresponding prototypes.
961
962 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
963
964 * emit-rtl.c (copy_most_rtx): Remove.
965 * rtl.h: Remove the corresponding prototype.
966
967 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
968
969 * cfgloop.c (flow_loops_update): Remove.
970 * cfgloop.h: Remove the corresponding prototype.
971
972 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
973
974 * conflict.c (mark_reg, conflict_graph_compute): Remove.
975 * basic-block.h: Remove the prototype for
976 conflict_graph_compute.
977
978 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
979
980 * tree-if-conv.c (add_to_dst_predicate_list): Change the
981 second argument to basic_block.
982 (tree_if_convert_cond_expr): Update call sites.
983
984 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
985
986 * fold-const.c (pedantic_non_lvalue): Make it static.
987 * tree.h: Remove the corresponding prototype.
988
989 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
990
991 * optabs.c (prepare_operand): Make it static.
992 * optabs.h: Remove the corresponding prototype.
993
994 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
995
996 * reload1.c (reloads_conflict, gen_reload): Make them static.
997 * reload.h: Remove the corresponding prototypes.
998
999 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1000
1001 * reload.c (refers_to_mem_for_reload_p,
1002 refers_to_regno_for_reload_p): Make them static.
1003 * reload.h: Remove the corresponding prototypes.
1004
1005 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
1006 Eric Botcazou <ebotcazou@libertysurf.fr>
1007
1008 PR target/18230
1009 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
1010 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
1011 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
1012 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
1013 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
1014 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
1015 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
1016 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
1017 MODE_VECTOR_INT modes.
1018 (sparc_extra_constraint_check): Add new constraint 'Y'.
1019 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
1020 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
1021 (V64): New mode macro for 64-bit modes.
1022 (movsf): Use V32 for mode instead of SF.
1023 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
1024 alongside 'G' constraint.
1025 (movdf): Use V64 for mode instead of DF.
1026 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
1027 of DF. Add 'Y' constraint alongside 'G' constraint.
1028 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
1029 instead of DF.
1030
1031 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
1032
1033 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
1034 integer NEG and ABS.
1035 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
1036 ("*negdi2_31"): Reimplement using a splitter.
1037 ("*negdi2_cc", "*negdi2_cconly"): New insns.
1038 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
1039 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
1040 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
1041 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
1042 ("*absdi2_cc", "*absdi2_cconly"): New insns.
1043 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
1044 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
1045 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
1046 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
1047 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
1048 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
1049 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
1050 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
1051 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
1052
1053 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
1054
1055 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
1056 when eliminating an UNSPEC_CMPINT.
1057 (s390_secondary_input_reload_class): Fix test for CC register reload.
1058 (s390_secondary_output_reload_class): Likewise.
1059 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
1060 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
1061 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
1062 insn patterns with splitters.
1063
1064 2004-11-09 David Edelsohn <edelsohn@gnu.org>
1065
1066 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
1067 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
1068
1069 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1070
1071 * tree-phinodes.c (phi_reverse): New.
1072 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
1073 Use it.
1074 * tree-flow.h: Add a prototype for phi_reverse.
1075
1076 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1077
1078 * tree-ssa-loop-ivopts.c: Fix a comment typo.
1079
1080 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
1081
1082 PR pch/14940
1083 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
1084 definitions.
1085
1086 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1087
1088 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
1089 instead of "arg" in diagnostics.
1090
1091 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1092
1093 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
1094 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
1095 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
1096 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
1097 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
1098 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
1099 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
1100 config/iq2000/iq2000.c, config/m32r/m32r.c,
1101 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
1102 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
1103 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
1104 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
1105 config/sh/symbian.c, config/stormy16/stormy16.c,
1106 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
1107 and %> as appropriate. Use %' as apostrophe in diagnostics where
1108 applicable. Use %< and %> in place of '' quotes where applicable.
1109 Use %qs in place of %<%s%>. Consistently quote __builtin function
1110 names.
1111
1112 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
1113
1114 * gdbinit.in (pbb, pbm): New macros.
1115
1116 2004-11-08 Jeff Law <law@redhat.com>
1117
1118 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
1119 implementing it inline.
1120
1121 * cfganal.c (find_edge): Search pred->succs or succ->preds,
1122 whichever is shorter.
1123
1124 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1125
1126 * passes.c (rest_of_handle_jump): Remove dead code.
1127
1128 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1129
1130 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
1131 the last used element in the worklist.
1132
1133 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1134
1135 * tree-inline.c (remap_save_expr): Make it static.
1136 * tree-inline.h: Remove the corresponding prototype.
1137
1138 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1139
1140 * tree-ssa-loop-niter.c (upper_bound_in_type,
1141 lower_bound_in_type): Make them static.
1142 * tree.h: Remove the corresponding prototypes.
1143
1144 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1145
1146 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
1147 static.
1148 * tree-ssa-live.h: Remove the corresponding prototypes.
1149
1150 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1151
1152 * tree-if-conv.c (tree_if_conversion): Make it static.
1153 * tree-flow.h: Remove the corresponding prototype.
1154
1155 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1156
1157 * tree-ssa-operands.c (build_ssa_operands): Make it static.
1158 * tree-flow.h: Remove the corresponding prototype.
1159
1160 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
1161
1162 PR tree-opt/18299
1163 * tree-inline.c (copy_body_r): Change "t = t" to empty
1164 statement instead of "t".
1165
1166 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1167
1168 * modulo-sched.c (create_partial_schedule,
1169 free_partial_schedule, reset_partial_schedule,
1170 ps_add_node_check_conflicts, rotate_partial_schedule): Make
1171 them static.
1172
1173 2004-11-08 Richard Henderson <rth@redhat.com>
1174
1175 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
1176 the end of a page.
1177
1178 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1179
1180 * sched-deps.c (add_insn_mem_dependence): Make it static.
1181 * sched-int.h: Remove the corresponding prototypes.
1182
1183 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1184
1185 * flow.c (allocate_bb_life_data): Make it static.
1186 * basic-block.h: Remove the corresponding prototype.
1187
1188 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1189
1190 * calls.c (split_complex_values, split_complex_types): Make
1191 them static.
1192 * expr.h: Remove the corresponding prototypes.
1193
1194 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
1195
1196 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
1197 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
1198
1199 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1200
1201 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
1202 statements that always trigger.
1203
1204 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1205
1206 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
1207 tree-scalar-evolution.c, tree-ssa-loop-im.c,
1208 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
1209 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
1210 appropriate.
1211
1212 2004-11-08 Ben Elliston <bje@au.ibm.com>
1213
1214 * cgraph.h (cgraph_calls_p): Remove.
1215 * cgraph.c (cgraph_calls_p): Likewise.
1216
1217 * varray.h (varray_copy): Remove.
1218 * varray.c (varray_copy): Likewise.
1219
1220 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
1221
1222 PR target/18269
1223 * config/darwin.c (machopic_indirect_data_reference):
1224 Call gen_macho_high and gen_macho_low instead of
1225 checking the mode and calling gen_macho_high_di directly.
1226 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1227 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
1228 to darwin.md.
1229 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
1230 load_macho_picbase, macho_low, macho_high): Removed.
1231 (builtin_setjmp_receiver): Call gen_macho_high and
1232 gen_macho_low instead of checking the mode and calling
1233 gen_macho_high_di directly.
1234 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
1235 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
1236 Moved from rs6000.md.
1237 (macho_high): New expander.
1238 (macho_high_si): Renamed version of macho_high from rs6000.md.
1239 (macho_low): New expander.
1240 (macho_low_si): Renamed version of macho_low from rs6000.md.
1241 (load_macho_picbase): New expander.
1242 (load_macho_picbase_si): Renamed version of load_macho_picbase
1243 from rs6000.md.
1244 (macho_correct_pic): New expander.
1245 (macho_correct_pic_si): Renamed version of macho_correct_pic
1246 from rs6000.md.
1247
1248 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
1249
1250 * c-decl.c (finish_struct): Use complete sentences for diagnostic
1251 for structures or unions with no members or named members.
1252
1253 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
1254
1255 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
1256 taking address of bit-field by assertion.
1257
1258 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1259
1260 * config/s390/s390.md (attribute "op_type"): Default to "NN".
1261 (attribute "atype"): Default to "agen".
1262 (attribute "length"): Default to 6.
1263 (define_asm_attibutes): Remove.
1264 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
1265 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
1266 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
1267 Do not set type attribute to "cs" where already default.
1268 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
1269 "*negdi2_31"):
1270 Do not set type attribute to "other" where already default.
1271 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
1272 "*strlendi", "*strlensi",
1273 "*movmem_long_64", "*movmem_long_31",
1274 "*clrmem_long_64", "*clrmem_long_31",
1275 "*cmpmem_long_64", "*cmpmem_long_31",
1276 "*cmpint_si", "*cmpint_di",
1277 "addti3", "*adddi3_31z", "*adddi3_31",
1278 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
1279 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
1280 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
1281 "*pool_entry", "pool_align", "pool_section_start",
1282 "pool_section_end", "main_pool", "reload_base_31", "pool"):
1283 Do not set op_type attribute to "NN" where already default.
1284 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
1285 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
1286 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
1287 Do not set atype attribute to "agen" where already default.
1288 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
1289
1290 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
1291
1292 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
1293
1294 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
1295
1296 PR target/16830
1297 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
1298 R3000 and R4000 macros on IRIX.
1299
1300 2004-11-06 Andreas Schwab <schwab@suse.de>
1301
1302 PR target/16286
1303 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
1304 __pixel.
1305
1306 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1307
1308 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
1309
1310 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1311
1312 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
1313 matches no insns already matched by other reservations.
1314 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
1315 matches no insns already matched by other reservations.
1316 ("x_ss"): Remove, replace by ...
1317 ("x_cs"): ... this new reservation. Check type instead of op_type.
1318 Update bypasses to use x_cs instead of x_ss.
1319 ("x_nn"): Remove, replace by ...
1320 ("x_other"): ... this new reservation. Check type instead of op_type.
1321 Add x_other and x_branch to bypasses.
1322 ("x_vs"): New reservation.
1323 * config/s390/s390.md (attribute "type"): Default according to op_type.
1324 ("*execute"): Set type to "cs".
1325
1326 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1327
1328 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
1329 if we are in GIMPLE.
1330
1331 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
1332
1333 PR rtl-optimization/17933
1334 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
1335 (covers_regno_p): New function. Handle SETs of PARALLEL,
1336 and defer the rest to...
1337 (covers_regno_no_parallel_p): New function.
1338
1339 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1340
1341 * config/sparc/sparc.c (function_arg_record_value_1): Skip
1342 fields with zero length.
1343 (function_arg_record_value_2): Likewise.
1344 (function_arg_record_value_3): Use smallest_mode_for_size
1345 instead of mode_for_size.
1346 (function_arg_union_value): Return naked register for unions
1347 with zero length.
1348
1349 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1350
1351 * config/sparc/sparc.c (scan_record_type): Handle vector types.
1352 (function_arg_slotno): Handle vector types specially.
1353 (function_arg_record_value_1): Split fields with vector type and
1354 BLKmode into their subparts.
1355 (function_arg_record_value_2): Likewise. Be prepared to handle
1356 more than 2 registers per field.
1357 (function_arg_union_value): Increment regno inside the loop.
1358 (function_arg_vector_value): New function.
1359 (function_arg): Use it to split fields with vector type and
1360 BLKmode into their subparts and build a PARALLEL. Treat
1361 other vector types like floats.
1362 (function_value): Likewise.
1363 (sparc_pass_by_reference): Handle vector types.
1364 (sparc_return_in_memory): Likewise.
1365
1366 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1367
1368 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
1369 statement that never triggers.
1370
1371 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1372
1373 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
1374 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
1375 ("x_fdivd"): Use also for fsqrtd type.
1376 ("x_fdivs"): Use also for fsqrts type.
1377 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
1378 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
1379 ("fix_truncdfsi2_ibm"): Set type to "other".
1380 ("floatdidf2", "floatdisf2"): Do not clobber CC.
1381 ("floatsidf2", "floatsidf2_ieee"): Likewise.
1382 ("floatsisf2", "floatsisf2_ieee"): Likewise.
1383 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
1384 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
1385 instead of LRER.
1386 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
1387 ("sqrtdf2"): Set type to "fsqrtd".
1388 ("sqrtsf2"): Set type to "fsqrts".
1389
1390 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1391
1392 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
1393 pointer to the last PHI node in the new PHI chain.
1394
1395 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
1396
1397 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
1398 for non-PIC TLS_MODEL_INITIAL_EXEC case.
1399
1400 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1401
1402 * expmed.c: Fix a comment typo.
1403
1404 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1405
1406 PR target/18106
1407 * config/i386/cygming.h
1408 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
1409
1410 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1411
1412 * config/sh/sh4a.md: Fix copyright.
1413
1414 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1415
1416 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
1417 with GCC.
1418
1419 2004-11-05 David Edelsohn <edelsohn@gnu.org>
1420
1421 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
1422 when carry not used. Suggested by Torbjorn Granlund.
1423
1424 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
1425 operand[1] unnecessarily. Suggested by Eric Christopher.
1426 (rs6000_adjust_cost): Increase latency of store to wider load.
1427 (rs6000_rtx_costs): mulli only allows 16-bit constants.
1428
1429 2004-11-05 Stan Shebs <shebs@apple.com>
1430
1431 * config/rs6000/rs6000.c (machopic_output_stub): Output
1432 ldu instead of lwzu for 64-bit stubs.
1433
1434 2004-11-05 Richard Henderson <rth@redhat.com>
1435
1436 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
1437 size 2 with BWX.
1438 (alpha_expand_unaligned_store): Likewise.
1439
1440 2004-11-05 Richard Henderson <rth@redhat.com>
1441
1442 * expmed.c (extract_force_align_mem_bit_field): New.
1443 (extract_split_bit_field): Call it.
1444
1445 2004-11-05 Richard Henderson <rth@redhat.com>
1446
1447 * ia64.md (UNSPEC_SHRP): New.
1448 (dshift_count_operand): New.
1449 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
1450 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
1451
1452 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
1453
1454 * c-typeck.c (output_init_element): Return early if value is
1455 error_mark_node.
1456
1457 2004-11-05 James E Wilson <wilson@specifixinc.com>
1458
1459 * invoke.texi (-fno-guess-branch-probability): Rewrite.
1460
1461 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
1462 1 to UNSPEC_GR_SPILL.
1463
1464 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
1465
1466 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
1467 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
1468
1469 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
1470
1471 * bitmap.h (enum bitmap_bits): Remove.
1472 (bitmap_operation): Remove.
1473 (bitmap_and, bitmap_and_into, bitmap_and_compl,
1474 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
1475 bitmap_xor_into): Prototype.
1476 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
1477 (bitmap_operation): Remove.
1478 (bitmap_and, bitmap_and_into, bitmap_and_compl,
1479 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
1480 bitmap_xor_into): New.
1481 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
1482
1483 PR tree-optimization/18307
1484 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
1485 and ORIG being the same node.
1486
1487 2004-11-04 Geoffrey Keating <geoffk@apple.com>
1488
1489 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
1490 (install-mkheaders): Install the version built for the
1491 host, not for the build machine.
1492 * configure.ac: Always run fixincludes.
1493 (all_outputs): Remove mkheaders.
1494 * configure: Regenerate.
1495 * fixinc.in: Move to fixincludes/.
1496 * mkfixinc.sh: Likewise.
1497 * mkheaders.in: Likewise.
1498 * README-fixinc: Likewise.
1499
1500 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1501
1502 PR target/18263
1503 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
1504 equivalent on the A4.
1505
1506 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
1507
1508 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
1509 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
1510 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
1511 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
1512 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
1513 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
1514 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
1515 doc/trouble.texi: Correct end-of-sentence markup and markup of
1516 "etc.", "e.g." and "i.e.". Use @code in various places where
1517 appropriate.
1518
1519 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
1520
1521 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
1522 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
1523 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
1524 whitespace.
1525
1526 2004-11-04 Mark Mitchell <mark@codesourcery.com>
1527
1528 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
1529 * doc/extend.texi: Document "notshared" attribute.
1530
1531 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1532
1533 * tree-phinodes.c (make_phi_node): Make it static.
1534 * tree.h: Remove the prototypes for make_phi_node.
1535
1536 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1537
1538 * stmt.c (expand_asm, expand_asm_operands): Make them static.
1539 * tree.h: Remove the prototypes for expand_asm and
1540 expand_asm_operands.
1541
1542 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1543
1544 * passes.c (rest_of_compilation): Make it static.
1545 * toplev.h: Remove the prototype for rest_of_compilation.
1546
1547 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1548
1549 * jump.c (cleanup_barriers): Use delete_insn instead of
1550 delete_barrier.
1551 (delete_barrier): Remove.
1552 * rtl.h: Remove the corresponding prototype.
1553
1554 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1555
1556 * expr.c (mostly_zero_p): Make it static.
1557 * tree.h: Remove the prototype for mostly_zeros_p.
1558
1559 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1560
1561 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
1562
1563 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1564
1565 * builtins.c (expand_builtin_return_addr,
1566 expand_builtin_longjmp, expand_builtin_trap): Make them static.
1567 * expr.h: Remove the prototypes for expand_builtin_longjmp and
1568 expand_builtin_trap.
1569 * tree.h: Remove the prototype for expand_builtin_return_addr.
1570
1571 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1572
1573 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
1574 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
1575 with VAL being NULL.
1576
1577 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1578
1579 * cfghooks.c (delete_basic_block): Remove code to truncate
1580 edge vectors.
1581
1582 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
1583
1584 * flow.c (init_propagate_block_info): Change the type of i to
1585 unsigned.
1586
1587 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
1588
1589 PR tree-optimization/18184
1590 * c-typeck.c (comptypes): Do not treat pointers of different
1591 modes or alias-all flags as equivalent.
1592 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
1593
1594 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
1595
1596 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
1597 reference specific C parser files in examples.
1598
1599 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
1600
1601 PR target/15342
1602 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
1603 as OP_INOUT if the instruction is predicated.
1604
1605 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1606
1607 * bitmap.h: Fix a comment typo. Follow spelling conventions.
1608 * tree-vectorizer.c: Fix a comment typo.
1609
1610 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1611
1612 * sdbout.c (SDB_GENERATE_FAKE): Remove.
1613 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
1614 * system.h: Poison SDB_GENERATE_FAKE.
1615 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
1616
1617 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
1618
1619 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
1620
1621 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1622
1623 PR other/18277
1624 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
1625 2004-10-29 patch
1626
1627 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
1628
1629 * predict.c (propagate_freq): Make bitno unsigned. Move
1630 npredecessors update out of loop.
1631
1632 * bitmap.h (bitmap_iterator): Remove word_bit and bit
1633 fields. Rename others.
1634 (bmp_iter_common_next_1, bmp_iter_single_next_1,
1635 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
1636 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
1637 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
1638 bmp_iter_and_next): Remove.
1639 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
1640 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
1641 New.
1642 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
1643 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
1644
1645 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
1646 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
1647 bitmap_and_into, bitmap_ior_into as appropriate.
1648 * except.c (remove_eh_handler): Likewise.
1649 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
1650 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
1651 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
1652 * tree-ssa-live.h (live_merge_and_clear): Likewise.
1653 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
1654 Likewise.
1655
1656 * bitmap.c (bitmap_print): Make bitno unsigned.
1657 * bt-load.c (clear_btr_from_live_range,
1658 btr_def_live_range): Likewise.
1659 * caller-save.c (save_call_clobbered_regs): Likewise.
1660 * cfganal.c (compute_dominance_frontiers_1): Likewise.
1661 * cfgcleanup.c (thread_jump): Likewise.
1662 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
1663 * conflict.c (conflict_graph_compute): Likewise.
1664 * ddg.c (add_deps_for_use): Likewise.
1665 * df.c (df_refs_update): Likewise.
1666 * except.c (remove_eh_handler): Likewise.
1667 * flow.c (verify_local_live_at_start, update_life_info,
1668 initialize_uninitialized_subregs, propagate_one_insn,
1669 free_propagate_block_info, propagate_block, find_use_as_address,
1670 reg_set_to_hard_reg_set): Likewise.
1671 * gcse.c (clear_modify_mem_tables): Likewise.
1672 * global.c (global_conflicts, build_insn_chain): Likewise.
1673 * ifcvt.c (dead_or_predicable): Likewise.
1674 * local-alloc.c (update_equiv_regs): Likewise.
1675 * loop.c (load_mems): Likewise.
1676 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
1677 Likewise.
1678 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
1679 Likewise.
1680 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
1681 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
1682 * sched-rgn.c (propagate_deps
1683 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
1684 * tree-dfa.c (dump_dfa_stats
1685 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
1686 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
1687 Likewise.
1688 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
1689 free_temp_expr_table, find_replaceable_exprs): Likewise.
1690 * tree-sra.c (scan_function, scalarize_parms): Likewise.
1691 * tree-ssa-alias.c (init_alias_info,
1692 compute_points_to_and_addr_escape,
1693 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
1694 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
1695 * tree-ssa-live.c (new_tree_live_info, live_worklist,
1696 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
1697 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
1698 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
1699 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
1700 add_call_read_ops): Likewise.
1701 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
1702 * tree-ssa-live.h (num_var_partitions): Return unsigned.
1703
1704 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
1705
1706 PR tree-optimization/18009
1707 * tree-vectorizer.h (enum dr_alignment_support): New type.
1708 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
1709 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
1710 single data_reference (instead of a varray of references).
1711 * tree-vectorizer.c (new_loop_vec_info): Likewise.
1712 (vect_gen_niters_for_prolog_loop): Likewise.
1713 (vect_update_inits_of_drs): Likewise.
1714
1715 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
1716 vect_enhance_data_refs_alignment.
1717 (vect_do_peeling_for_alignment): Likewise.
1718 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
1719 this functionality used to be in vect_analyze_data_refs_alignment.
1720 Also update DR_MISALIGNMENT due to peeling; this functionality used to
1721 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
1722 (vect_analyze_data_refs_alignment): Decision on whether and by how much
1723 to peel moved to vect_enhance_data_refs_alignment. Call
1724 vect_supportable_dr_alignment.
1725
1726 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
1727 (vect_compute_data_refs_alignment): Return bool. Consider return value
1728 of vect_compute_data_ref_alignment and return true/false accordingly.
1729 (vect_enhance_data_refs_alignment): Consider return value of
1730 vect_compute_data_refs_alignment and return true/false accordingly.
1731
1732 (vect_supportable_dr_alignment): New function.
1733 (vectorizable_store): Call vect_supportable_dr_alignment.
1734 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
1735 support checks moved from here to vect_supportable_dr_alignment.
1736
1737 (vect_transform_loop): Avoid 80 columns overflow.
1738
1739 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
1740
1741 * timevar.c (timevar_enable): Change from
1742 static.
1743 (timevar_push): Rename to ...
1744 (timevar_push_1): this and remove the
1745 enabled check.
1746 (timevar_pop): Rename to ...
1747 (timevar_pop_1): this and remove the
1748 enabled check.
1749 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
1750 (timevar_pop): New macro.
1751 (timevar_push): New macro.
1752 (timevar_enable): Declare.
1753
1754 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
1755
1756 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
1757 libgcc for shared libraries.
1758
1759 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
1760
1761 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
1762 * config/s390/s390.c (s390_split_access_reg): New function.
1763 (regclass_map): Add access registers.
1764 (get_thread_pointer): Use access register instead of UNSPEC_TP.
1765 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
1766 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
1767 (TP_REGNUM): New define.
1768 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1769 REG_ALLOC_ORDER): Add access registers.
1770 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
1771 CANNOT_CHANGE_MODE_CLASS): Support access registers.
1772 (enum reg_class): Add ACCESS_REGS.
1773 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
1774 (REG_CLASS_FROM_LETTER): Add 't' constraint.
1775 (REGISTER_NAMES): Add access registers.
1776 * config/s390/s390.md (UNSPEC_TP): Remove.
1777 ("*movdi_64"): Add access register alternatives. Provide splitters
1778 to split DImode access register <-> GPR moves into SImode moves.
1779 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
1780 ("movstrictsi"): Likewise.
1781 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
1782 ("set_tp_64", "set_tp_31"): Likewise.
1783 ("*set_tp"): New insn.
1784
1785 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
1786
1787 * tree-phinodes.c (resize_phi_node): Copy only a portion of
1788 the PHI node currently in use.
1789
1790 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
1791
1792 PR tree-opt/18231
1793 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
1794 also.
1795
1796 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
1797
1798 PR tree-optimization/18270
1799 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
1800 abnormal edges, commit all pending stmts on incoming edges.
1801
1802 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
1803
1804 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
1805 cause extra costs. Generate canonical RTL.
1806
1807 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
1808
1809 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
1810 (lambda_compute_target_space). Ditto.
1811 * lambda.h (lambda_trans_matrix): Ditto.
1812 (lambda_linear_expression): Ditto.
1813 (lambda_body_vector): Ditto.
1814 (lambda_loopnest): Ditto.
1815 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
1816 update comments, and remove pointless addition of 0.
1817 (linear_transform_loops): Update comments.
1818
1819 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
1820
1821 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
1822 CEIL_MOD_EXPR.
1823
1824 2004-11-03 Jeff Law <law@redhat.com>
1825
1826 * predict.c (struct block_info_def): Kill "tovisit" field.
1827 (propagate_freq): Accept new "tovisit" parameter. Change
1828 read/write access methods for "tovisit" to check the "tovisit"
1829 bitmap instead of a bit in block_info_def.
1830 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
1831 it to propagate_freq.
1832
1833 * stmt.c (expand_case): Speed up code to detect duplicate case
1834 label targets and count unique case label targets.
1835
1836 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
1837
1838 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
1839
1840 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
1841
1842 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
1843
1844 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
1845
1846 * tree-cfg.c (find_taken_edge): Abort if we are given a
1847 statement that is neither COND_EXPR nor SWITCH_EXPR.
1848
1849 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
1850
1851 * fold-const.c (fold): Reassociate also (x - mult) + mult and
1852 (mult - x) + mult. Cast operands of expression after applying
1853 distributive law to the correct types. Apply distributive law
1854 to a * c - b * c for all non-float types.
1855
1856 2004-11-02 Geoffrey Keating <geoffk@apple.com>
1857
1858 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
1859 because we don't want to run them now; instead, set them to
1860 stmp-install-fixproto or stmp-install-fixinc.
1861 * Makefile.in (stmp-install-fixproto): New.
1862 (stmp-install-fixinc): New.
1863 * configure: Regenerate.
1864
1865 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
1866
1867 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
1868 of bitmap_xor.
1869
1870 2004-11-02 Ziemowit Laski <zlaski@apple.com>
1871
1872 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
1873 (c_types_compatible_p): Move function definition...
1874 * c-objc-common.c (c_types_compatible_p): ...here.
1875 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
1876 c-lang.c.
1877
1878 2004-11-02 Steven Bosscher <stevenb@suse.de>
1879
1880 * cfgloop.h (struct loop): Update comment.
1881 * cse.c (cse_main): Remove obsolete comment.
1882
1883 * expr.h (gen_cond_trap): Move prototype under functions provided
1884 by optabs.c.
1885 (canonicalize_condition, get_condition): Move to...
1886 * rtl.h (canonicalize_condition, get_condition): ...here.
1887 (branch_target_load_optimize): Add comment that this function is
1888 in bt-load.c.
1889 * loop.c (canonicalize_condition, get_condition): Move to...
1890 * rtlanal.c (canonicalize_condition, get_condition): ...here.
1891 * sched-deps.c (get_condition): Rename to sched_get_condition.
1892 (add_dependence): Update this caller.
1893
1894 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
1895
1896 PR tree-opt/16808
1897 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
1898 that the vops get marked for renaming.
1899
1900 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
1901
1902 * config/s390/s390.md ("movcc"): Set type attribute.
1903
1904 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
1905
1906 * tree-phinodes.c (add_phi_arg): Add an assertion that the
1907 edge already exists.
1908
1909 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
1910
1911 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
1912 element that's being removed.
1913
1914 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
1915
1916 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
1917 arguments using PENDING_STMT.
1918 (thread_block): Call copy_phis_to_block after redirecting an
1919 edge.
1920
1921 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
1922
1923 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
1924 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
1925 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
1926 (bitmap_ior_and_compl_into): Produce bool.
1927 (bitmap_union_of_diff): Rename to ...
1928 (bitmap_ior_and_compl): ... here. Produce bool.
1929 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
1930 bitmap_operation directly.
1931 (bitmap_union_of_diff): Rename to ...
1932 (bitmap_ior_and_compl): ... here. Return bool, use
1933 bitmap_operation directly.
1934 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
1935 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
1936 * global.c (modify_bb_reg_pav): Likewise.
1937
1938 * bitmap.h (bitmap_equal_p): Return bool.
1939 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
1940 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
1941 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
1942 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
1943 bitmap_intersect_compl_p.
1944 * ifcvt (dead_or_predicable): Likewise.
1945
1946 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
1947
1948 PR rtl-optimization/17104
1949 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
1950 loads in zero_extend.
1951
1952 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
1953
1954 PR debug/18242
1955 * toplev.c (debug_type_names): Remove "dwarf-1".
1956
1957 2004-11-02 Ben Elliston <bje@au.ibm.com>
1958
1959 * timevar.h (timevar_get): Remove.
1960 * timevar.c (timevar_get): Remove unused function.
1961
1962 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
1963
1964 * doc/include/texinfo.tex: Update from Texinfo CVS.
1965
1966 2004-11-02 Ben Elliston <bje@au.ibm.com>
1967
1968 * cppdefault.h (cpp_SYSROOT): Remove.
1969 * cppdefault.c (cpp_SYSROOT): Likewise.
1970
1971 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
1972
1973 PR tree-optimization/16447
1974 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
1975 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
1976 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
1977 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
1978 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
1979 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
1980 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
1981 (identical_copies_p): New. Return true is two copies are the same.
1982 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
1983 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
1984 for a basic block.
1985 (perform_edge_inserts): New. Determine what to do with all stmts that
1986 have been inserted on edges.
1987 (remove_ssa_form): Analyze and commit edges from here.
1988
1989 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
1990
1991 PR bootstrap/18232
1992 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
1993 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
1994 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
1995 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
1996
1997 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1998
1999 PR c/18239
2000 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
2001 parameter declarations.
2002
2003 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
2004
2005 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
2006 (s390_secondary_input_reload_class)
2007 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
2008 register.
2009 (s390_expand_cmpmem): Enable cmpmem implementation.
2010 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
2011 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
2012 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
2013 * config/s390/s390.md ("movcc"): New insn pattern.
2014 * doc/md.texi: Document 'c' constraint for s390.
2015
2016 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
2017
2018 PR c++/18064
2019 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
2020 extension.
2021
2022 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
2023
2024 Fix PR tree-optimization/17672
2025 Fix PR tree-optimization/18168
2026
2027 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
2028 assert test.
2029 (gcc_tree_to_linear_expression): Add extra to existing constant.
2030 (depth_of_nest): Factor out function used in various places.
2031 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
2032 functional changes.
2033 (find_induction_var_from_exit_cond): Stop guessing, and just
2034 get the right answer :).
2035 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
2036 Print out message about result of attempt to create perfect nest.
2037 (lbv_to_gcc_expression): Add type argument, use it to do math
2038 and induction variable creation.
2039 (lle_to_gcc_expression): Ditto.
2040 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
2041 oldiv. Pass type argument to lle_to_gcc_expression and
2042 lbv_to_gcc_expression.
2043 Reset number of iterations after transformation.
2044 (perfect_nestify): Remove useless pre-allocation, and cleanup
2045 a small amount.
2046
2047 * tree-data-ref.c (build_classic_dist_vector): Return false for
2048 dependences completely outside of the loop nest we asked about.
2049 (build_classic_dir_vector): Ditto.
2050 (compute_data_dependences_for_loop): Only add dependence relations
2051 inside the loop we asked about.
2052
2053 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
2054 Compute immediate uses.
2055
2056 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
2057
2058 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
2059
2060 * tree-cfg.c (thread_jumps): Fix a comment typo.
2061
2062 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
2063
2064 * tree-cfg.c (thread_jumps): Fix a comment typo.
2065
2066 2004-10-31 Nicolas Pitre <nico@cam.org>
2067
2068 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
2069 values smaller than 2^32.
2070
2071 2004-10-31 Jeff Law <law@redhat.com>
2072
2073 * cfgloop.h (struct loop): Remove unused "nodes" field.
2074 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
2075 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
2076 instead of calling flow_bb_inside_loop_p for every basic block
2077 in the function.
2078 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
2079
2080 2004-10-31 Graham Stott <graham.stott@btinternet.com>
2081
2082 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
2083 INT_5_BITS instead of VAL_5_BITS_P.
2084
2085 2004-10-31 Roger Sayle <roger@eyesopen.com>
2086
2087 PR middle-end/14521
2088 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
2089 for consistent quoting in diagnostic messages.
2090 (expand_call_inline): Likewise.
2091 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2092 * tree-ssa.c (warn_uninitialized_var): Likewise.
2093 (warn_uninitialized_phi): Likewise.
2094
2095 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
2096
2097 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
2098 mode check.
2099
2100 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
2101
2102 * c-common.c: Fix a comment typo.
2103
2104 2004-10-31 Jason Merrill <jason@redhat.com>
2105
2106 PR middle-end/17526
2107 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
2108 aggregate types that are not BLKmode.
2109
2110 2004-10-30 Ziemowit Laski <zlaski@apple.com>
2111
2112 * c-common.h (objc_lookup_ivar): Add second parameter to
2113 prototype.
2114 * c-typeck.c (build_external_ref): After looking up symbol,
2115 pass it to objc_lookup_ivar() to decide whether it or the
2116 ivar should be used, rather than deciding the issue locally.
2117 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
2118 which is simply returned in the non-ObjC case.
2119
2120 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
2121
2122 * sdbout.c (sdbout_symbol): Do not output type .def statements
2123 for builtin types.
2124
2125 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2126
2127 * c-common.c (catenate_strings): New.
2128 (c_parse_error): Use it. Don't over-escape.
2129
2130 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
2131
2132 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
2133 modify the for loop expressions for it. Remove unnecessary casts.
2134 (sh_expand_prologue): Declare reg as unsigned.
2135 (sh_gimplify_va_arg_expr): Initinalize lab_over.
2136 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
2137
2138 2004-10-30 Geoffrey Keating <geoffk@apple.com>
2139
2140 * doc/invoke.texi (Darwin Options): Improve description of
2141 how the subtype is chosen.
2142
2143 2004-10-30 Roger Sayle <roger@eyesopen.com>
2144
2145 PR middle-end/18096
2146 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
2147 the stack adjustment, "size", is valid for Pmode. If the stack
2148 frame is too large, generate a trap insn and issue a warning.
2149
2150 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
2151
2152 * tree-ssa-dom.c: Fix comment typos.
2153
2154 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
2155
2156 * config/sh/sh.c (prepare_move_operands): Use operands[0]
2157 for the output rtl if no_new_pseudos is set. Remove redundant
2158 line.
2159
2160 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
2161
2162 PR c/16666
2163 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
2164 determining whether to copy parameter types from a previous
2165 prototype declaration.
2166
2167 2004-10-29 Roger Sayle <roger@eyesopen.com>
2168
2169 PR rtl-optimization/17581
2170 * cselib.c (cselib_process_insn): The last instruction of a libcall
2171 block, with the REG_RETVAL note, should be considered in the libcall.
2172 * gcse.c (do_local_cprop): Allow constants to be propagated outside
2173 of libcall blocks.
2174 (adjust_libcall_notes): Use simplify_replace_rtx instead of
2175 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
2176
2177 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
2178
2179 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
2180
2181 2004-10-29 Jeff Law <law@redhat.com>
2182
2183 * tree-ssa-dom.c (struct edge_info): New structure holding
2184 edge equivalences and edge redirection information.
2185 (get_eq_expr_value, record_dominating_conditions): Kill.
2186 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
2187 Call record_edge_info.
2188 (allocate_edge_info, free_edge_info): New.
2189 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
2190 rather than cprop_into_phis. Free all edge infos before threading
2191 jumps.
2192 (thread_across_edge): Allocate new edge info structures as needed
2193 and store the redirection target into the edge info structure
2194 instead of the edge's AUX field.
2195 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
2196 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
2197 Revamp code which finds and records equivalences associated with
2198 edges to use saved data in the edge_info structure.
2199 (record_equivalencs_from_phis): Similarly.
2200 (dom_opt_finalize_block): Revamp code which finds and records
2201 equivalences associated with edges to use saved data in the
2202 edge_info structure.
2203 (build_and_record_new_cond): New function.
2204 (record_conditions): Use build_and_record_new_cond to record
2205 dominating conditions.
2206 (record_edge_info): New function.
2207 (record_range): Tighten test for conditions which create
2208 useful range records.
2209
2210 2004-10-29 Geoffrey Keating <geoffk@apple.com>
2211
2212 * config/i386/darwin.h (ASM_SPEC): Simplify.
2213 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2214 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
2215 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2216 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
2217 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
2218 in all cases. Pass the right -arch or -arch_only based on -mcpu.
2219 (ASM_SPEC): Handle -force_cpusubtype_ALL.
2220 * doc/invoke.texi (Darwin Options): Improve documentation for
2221 Darwin linker (and libtool) switches.
2222
2223 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
2224
2225 2004-10-29 Stan Shebs <shebs@apple.com>
2226
2227 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
2228
2229 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2230
2231 * tree-phinodes.c (allocate_phi_node): New.
2232 (make_phi_node, resize_phi_node): Use it.
2233
2234 2004-10-29 David Edelsohn <edelsohn@gnu.org>
2235
2236 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
2237 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
2238
2239 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2240
2241 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
2242 the whole PHI node.
2243 * tree.h (tree_phi_node): Tell the garbage collector to chase
2244 num_args arguments.
2245
2246 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
2247
2248 * opts.c (decode_options): Lower the crossjump threshold for -Os.
2249
2250 2004-10-29 Diego Novillo <dnovillo@redhat.com>
2251
2252 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
2253
2254 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
2255
2256 * bitmap.h (bitmap_empty_p): New.
2257 (bitmap_and, bitmap_and_into, bitmap_and_compl,
2258 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
2259 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
2260 operation macros.
2261 (bitmap_ior_and_compl): Rename to ...
2262 (bitmap_ior_and_compl_into): ... here.
2263 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
2264 (bitmap_ior_and_compl): Rename to ...
2265 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
2266 flag.
2267 (bitmap_union_of_diff): Use renamed bitmap functions.
2268 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
2269 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
2270 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2271 * df.c (df_bb_rd_local_compute)
2272 * flow.c (calculate_global_regs_live,
2273 init_propagate_block_info): Likewise.
2274 * ifcvt.c (find_if_case_1, find_if_case_2,
2275 dead_or_predicable): Likewise.
2276 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
2277 reset_conflicts, conflicts_between_webs): Likewise.
2278 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
2279 detect_web_parts_to_rebuild): Likewise.
2280 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
2281 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
2282 * tree-sra.c (decide_instantiations): Likewise.
2283 * tree-ssa-alias.c (create_name_tags,
2284 merge_pointed_to_info): Likewise.
2285 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2286 * tree-ssa-loop-im.c (move_computations): Likewise.
2287 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
2288 * tree-ssa-pre.c (fini_pre): Likewise.
2289 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
2290 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
2291 * tree-vectorizer.c (vectorize_loops): Likewise.
2292
2293 2004-10-29 Nick Clifton <nickc@redhat.com>
2294
2295 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
2296 adding the PIC register to the fixed_regs array, also add it
2297 to the call_used_regs array.
2298
2299 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
2300
2301 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
2302 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
2303
2304 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
2305
2306 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
2307 (rewrite_blocks): Modify argument, and use it to decide which
2308 function to call.
2309 (rewrite_def_def_chains): Call rewrite_blocks with true here.
2310 (rewrite_into_ssa): and call it with false here.
2311
2312 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2313
2314 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
2315 triggers into gcc_assert.
2316
2317 2004-10-28 Diego Novillo <dnovillo@redhat.com>
2318
2319 PR tree-optimization/16728
2320 * tree-flow.h (get_ptr_info): Declare.
2321 * tree-ssa-alias.c (get_ptr_info): Make extern.
2322 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
2323 alias information.
2324
2325 2004-10-28 Stan Shebs <shebs@apple.com>
2326
2327 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
2328 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
2329 case.
2330
2331 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
2332
2333 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
2334 prevent their later unnecessary registration.
2335 (mf_build_check_statement_for): Remove "addr" argument, and
2336 related "__mf_value" generated code. Update callers.
2337 (mf_decl_eligible_p): New function, factored from mx_register_decls.
2338 (mx_register_decls): Call it.
2339 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
2340 to restore support for complex nested expressions.
2341 (mudflap_enqueue_decl): Simplify. Move registration call emission
2342 out ...
2343 (mudflap_finish_file): ... to here.
2344 (mudflap_enqueue_constant): Remove dump code.
2345
2346 2004-10-28 Zack Weinberg <zack@codesourcery.com>
2347
2348 PR 18199
2349 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
2350 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
2351 (dbxout_finish_complex_stabs): Update to match.
2352 (dbxout_symbol_location): Call emit_pending_bincls_if_required
2353 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
2354 dbxout_begin_complex_stabs_noforcetext.
2355 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
2356 N_GSYM, using new SYM parameter. Correct logic for special
2357 cases for N_FUN.
2358
2359 * varasm.c (function_section): If DECL is NULL_TREE, don't try
2360 to do anything else. Do not call get_insns if cfun or
2361 cfun->emit are NULL.
2362
2363 2004-10-28 Adam Nemet <anemet@lnxw.com>
2364
2365 PR middle-end/18160
2366 * c-typeck.c (c_mark_addressable): Issue error if address of a
2367 register variable is taken. Use "%qD" to print DECL_NAME.
2368
2369 2004-10-28 Diego Novillo <dnovillo@redhat.com>
2370
2371 * opts.c (decode_options): Don't run PRE at -Os.
2372
2373 2004-10-28 Richard Henderson <rth@redhat.com>
2374
2375 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
2376 zero in the conditional.
2377 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
2378
2379 2004-10-28 Richard Henderson <rth@redhat.com>
2380
2381 * cse.c (memory_extend_rtx): Remove.
2382 (cse_main): Don't set it.
2383 (cse_insn): Use a local buffer instead.
2384
2385 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
2386
2387 * profile.c (branch_prob): Call to init_edge_profiler added.
2388 * rtl-profile.c (rtl_init_edge_profiler): New function.
2389 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
2390 call to safe_insert_insn_on_edge.
2391 (rtl_profile_hooks): rtl_init_edge_profiler added.
2392 * tree-profile.c (tree_init_edge_profiler): New function.
2393 (tree_profile_hooks): tree_init_edge_profiler added.
2394 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
2395
2396 2004-10-28 Nick Clifton <nickc@redhat.com>
2397
2398 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
2399 emit_jump_insn() to generate the return instruction.
2400
2401 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2402
2403 * tree-phinodes.c: Remove trailing whitespace.
2404
2405 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2406
2407 * tree-ssa-loop-ivopts.c: Fix a comment typo.
2408 * doc/invoke.texi: Fix a typo.
2409
2410 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2411
2412 * Makefile.in (OBJS-common): Remove duplicates.
2413
2414 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2415
2416 * lambda-code.c (nestify_update_pending_stmts): Remove.
2417 (perfect_nestify): Use flush_pending_stmts instead of
2418 nestify_update_pending_stmts.
2419 * tree-cfg.c (tree_make_forwarder_block): Use
2420 flush_pending_stmts.
2421 * tree-flow.h: Add a prototype for flush_pending_stmts.
2422 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
2423 Use flush_pending_stmts.
2424 (lv_update_pending_stmts): Remove.
2425 (tree_ssa_loop_version): Use flush_pending_stmts instead of
2426 lv_update_pending_stmts.
2427 * tree-ssa.c (flush_pending_stmts): New.
2428
2429 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
2430
2431 PR target/15286
2432 * final.c (alter_subreg): Compute correct offset to use with
2433 paradoxical SUBREGs of memory operands.
2434 * recog.c (general_operand): Allow paradoxical SUBREGs of
2435 memory operands after reload.
2436 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
2437 has failed when passed a hard register.
2438
2439 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
2440
2441 * function.c (assign_parm_setup_block): Handle parallels correctly.
2442
2443 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
2444
2445 * final.c (shorten_branches): Initialize flags structure.
2446
2447 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
2448
2449 * tree.c (int_cst_node, int_cst_hash_table): New variables.
2450 (init_ttree): Initialize them.
2451 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
2452 (build_int_cst_wide): Use hash table for oversized integers.
2453
2454 2004-10-28 Nick Clifton <nickc@redhat.com>
2455
2456 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
2457 begin_label.
2458
2459 2004-10-27 Richard Henderson <rth@redhat.com>
2460
2461 PR middle-end/18163
2462 * expr.c (emit_group_load): Don't go force temporary for memory
2463 or concat source.
2464 (emit_group_store): Similarly.
2465
2466 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
2467
2468 PR other/18186
2469 * common.opt (--param): Fix spelling of parameter.
2470
2471 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
2472
2473 PR tree-opt/17529
2474 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
2475 Don't fold statement.
2476 <case ASM_EXPR>: Fold the statement.
2477
2478 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2479
2480 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
2481 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
2482
2483 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
2484
2485 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
2486 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
2487 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
2488 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
2489
2490 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
2491
2492 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
2493 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
2494 punctuation outside quotes.
2495
2496 2004-10-27 David Mosberger <davidm@hpl.hp.com>
2497 James E Wilson <wilson@specifixinc.com>
2498
2499 PR target/13158
2500 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
2501 sibcall alloc instruction.
2502 (process_set): Handle sibcall alloc instruction.
2503
2504 2004-10-27 Geoffrey Keating <geoffk@apple.com>
2505
2506 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
2507 SUBTARGET_ATTRIBUTE_TABLE.
2508 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
2509 (SUBTARGET_ATTRIBUTE_TABLE): Define.
2510 * config/darwin.c (darwin_handle_weak_import_attribute): New.
2511 (HAVE_DEAD_STRIP): Delete.
2512 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
2513 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
2514 Prototype.
2515
2516 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
2517
2518 * config/darwin.h (GTHREAD_USE_WEAK): Define.
2519
2520 2004-10-28 Ben Elliston <bje@au.ibm.com>
2521
2522 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
2523 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
2524 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
2525 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
2526 * tree-sra.c: Include "params.h".
2527 (decide_block_copy): Use new parameters.
2528 * doc/invoke.texi (Optimize Options): Document new SRA pass
2529 parameters sra-max-structure-size and sra-field-structure-ratio.
2530
2531 2004-10-27 Nicolas Pitre <nico@cam.org>
2532
2533 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
2534
2535 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
2536
2537 PR tree-optimization/18048
2538 * fold-const.c (try_move_mult_to_index): New function.
2539 (fold): Use try_move_mult_to_index.
2540 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
2541 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
2542 an all-ones unsigned constant without extra bits.
2543 * tree.c (build_low_bits_mask): New function.
2544 * tree.h (build_low_bits_mask): Declare.
2545
2546 2004-10-27 David Edelsohn <edelsohn@gnu.org>
2547
2548 PR target/17956
2549 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
2550 final condition.
2551 (minsf3): Same.
2552 (maxdf3): Same.
2553 (mindf3): Same.
2554
2555 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
2556
2557 * tree-cfg.c (thread_jumps): Speed up by reordering the two
2558 conditions for entering basic blocks into worklist.
2559
2560 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
2561
2562 * tree-cfg.c (thread_jumps): Speed up by pretending to have
2563 ENTRY_BLOCK_PTR in worklist.
2564
2565 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
2566
2567 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
2568 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
2569
2570 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
2571
2572 Fix PR tree-optimization/17133
2573
2574 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
2575 def kill operand.
2576
2577 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
2578 (get_v_must_def_result_ptr): Modify for new structure of
2579 v_must_defs array.
2580 (get_v_must_def_kill_ptr): New.
2581 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
2582 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
2583 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
2584 (op_iter_init): Initialize new mustu members.
2585 (op_iter_next_mustdef): New function.
2586 (op_iter_init_mustdef): Ditto.
2587
2588 * tree-flow.h (rewrite_def_def_chains): New function.
2589
2590 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
2591 (ssa_mark_def_sites): Ditto.
2592 (rewrite_stmt): Ditto.
2593 (ssa_rewrite_stmt): Ditto.
2594 (rewrite_blocks): Factor out from rewrite_into_ssa.
2595 (mark_def_block_sites): Ditto.
2596 (rewrite_def_def_chains): New function, just rewrites def-def
2597 chains without phi node insertion.
2598
2599 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
2600
2601 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
2602
2603 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
2604 they include the rhs now.
2605
2606 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
2607 V_MUST_DEF_RESULT.
2608
2609 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
2610 Update callers.
2611 (mark_really_necessary_kill_operand_phis): New function.
2612 (perform_tree_ssa_dce): Call it.
2613 (pass_dce): Add TODO_fix_def_def_chains.
2614 (pass_cd_dce): Ditto.
2615
2616 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
2617 well.
2618 (rewrite_mem_refs): Ditto.
2619
2620 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
2621 as well.
2622
2623 * tree-ssa-operands.c (allocate_v_may_def_optype):
2624 v_may_def_operand_type_t became v_def_use_operand_type_t.
2625 (allocate_v_must_def_optype) Ditto.
2626 (finalize_ssa_v_must_defs): Update for new operand type, as well
2627 as setting the use portion as well.
2628 (copy_virtual_operands): Copy the kill operand as well.
2629 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
2630 V_MUST_DEF_RESULT.
2631
2632 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
2633 v_def_use_operand_type.
2634 (v_must_def_optype_d): Use v_def_use_operand_type.
2635 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
2636 (V_MUST_DEF_KILL_*): New macros.
2637 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
2638 members.
2639 Rename existing must_i and num_v_must members to mustd_i and
2640 num_v_mustd.
2641 (SSA_OP_VMUSTDEFKILL): New flag.
2642 (SSA_OP_VIRTUAL_KILLS): New flag.
2643 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
2644 (SSA_OP_ALL_KILLS): New flag.
2645 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
2646
2647 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
2648
2649 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
2650 became V_MUST_DEF_RESULT.
2651 (rename_variables_in_bb): Rename kill pointer as well.
2652
2653 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
2654 immediate uses.
2655
2656 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
2657
2658 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
2659 the block that needs it.
2660
2661 2004-10-27 Zack Weinberg <zack@codesourcery.com>
2662
2663 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
2664 ATTRIBUTE_UNUSED.
2665
2666 2004-10-27 Zack Weinberg <zack@codesourcery.com>
2667
2668 * c-lex.c (cb_def_pragma): Clean up code for making location
2669 palatable to diagnostic.c.
2670
2671 2004-10-27 Steven Bosscher <stevenb@suse.de>
2672
2673 PR tree-optimization/17757
2674 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
2675 without any PHI arguments left. Make sure the argument that
2676 we're supposed to remove exists at all.
2677
2678 2004-10-27 Paul Brook <paul@codesourcery.com>
2679
2680 * configure.ac: Don't test for [build] __cxa_atexit when building a
2681 cross compiler.
2682 * configure: Regenerate.
2683
2684 2004-10-27 Paul Brook <paul@codeosurcery.com>
2685
2686 * configure.ac: Use build_exeext not host_exeext when lookin for
2687 target tools.
2688 * configure: Regenerate.
2689
2690 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
2691
2692 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
2693
2694 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
2695 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
2696
2697 PR middle-end/14684
2698 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
2699 to match -fprofile-use.
2700
2701 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
2702
2703 * config/rs6000/rs6000.c: Fix a comment typo.
2704
2705 2004-10-27 Zack Weinberg <zack@codesourcery.com>
2706
2707 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
2708 counter.
2709
2710 2004-10-27 Andreas Schwab <schwab@suse.de>
2711
2712 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
2713 unused.
2714 (default_stabs_asm_out_constructor): Likewise.
2715
2716 2004-10-26 Geoffrey Keating <geoffk@apple.com>
2717
2718 * builtins.c (fold_builtin_unordered_cmp): Always bring both
2719 operands to the same type.
2720
2721 2004-10-26 James E Wilson <wilson@specifixinc.com>
2722
2723 PR target/18010
2724 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
2725
2726 2004-10-26 Zack Weinberg <zack@codesourcery.com>
2727
2728 * dbxout.c: Include obstack.h.
2729 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
2730 default definition.
2731 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
2732 Default-define here.
2733 (DBX_CONTIN_LENGTH): Move definition with others.
2734 (DBX_FINISH_STABS): New target macro.
2735 (current_sym_code, current_sym_value, current_sym_addr)
2736 (current_sym_nchars, CHARS, dbxout_continue)
2737 (print_int_cst_octal, print_octal, print_wide_int)
2738 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
2739 (stabstr_ob, stabstr_last_contin_point): New variables.
2740 (NUMBER_FMT_LOOP): New improper macro.
2741 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
2742 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
2743 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
2744 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
2745 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
2746 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
2747 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
2748 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
2749 New functions and/or proper function-like macros.
2750 (CONTIN): Use stabstr_continue, unconditionally.
2751 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
2752 (dbxout_init): Initialize stabstr_ob. Check
2753 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
2754 if it was used. Use the new interfaces.
2755 (dbxout_source_file): Remove file argument; always write to
2756 asm_out_file. Use the new interfaces.
2757 (dbxout_type_method_1): Remove second argument which is always
2758 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
2759 (dbxout_type_methods): Remove write-only variables. Use the
2760 new interfaces.
2761 (dbxout_parms): Refactor to remove code duplicated in each of
2762 several successive if-else-if blocks. Use the new interfaces.
2763 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
2764 (dbxout_source_line, dbxout_finish, dbxout_type_index)
2765 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
2766 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
2767 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
2768 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
2769 Use the new interfaces.
2770 * Makefile.in (dbxout.o): Update dependencies.
2771
2772 * defaults.h: Don't define ASM_STABD_OP.
2773 * output.h: Prototype new dbxout_* interfaces.
2774 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
2775 * varasm.c: Don't define ASM_STABS_OP.
2776 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
2777 Use the new dbxout.c interfaces. Call sorry if neither
2778 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
2779
2780 * xcoffout.h: Don't define ASM_STABS_OP.
2781 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
2782 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
2783 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
2784 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
2785 do { ... } while (0) idiom.
2786
2787 * config/alpha/alpha.c (num_source_filenames): Export.
2788 * config/alpha/alpha.h (num_source_filenames): Declare.
2789 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
2790 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
2791 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
2792 Always use .debugsym. Update commentary.
2793 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
2794 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
2795 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
2796 Use new interfaces.
2797 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
2798 (macho_branch_islands): Use new interfaces.
2799
2800 * doc/tm.texi: Update.
2801
2802 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
2803
2804 * expr.c (emit_group_store): Do not treat floats as BLKmode.
2805 (emit_group_load): Same.
2806
2807 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
2808
2809 * c-parse.in (datadef): Use pedwarn rather than error and warning
2810 for diagnostic in case of no declaration specifiers.
2811
2812 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
2813
2814 PR bootstrap/15747
2815 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
2816 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
2817 can be used to work around this.
2818
2819 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
2820
2821 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
2822 doubles.
2823
2824 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
2825
2826 * stmt.c (expand_case): Update a comment.
2827
2828 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
2829
2830 * stmt.c (expand_case): Put an assertion that index_expr is
2831 never INTEGER_CST. Don't special case for constant
2832 index_expr.
2833
2834 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
2835
2836 PR 18162
2837 * c-parse.in (designator): Finish with a semi-colon.
2838
2839 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
2840
2841 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
2842 into rotlsi3.
2843
2844 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
2845
2846 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
2847 a default case only.
2848
2849 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
2850
2851 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
2852 e500 doubles.
2853 (spe_build_register_parallel): New.
2854 (rs6000_spe_function_arg): Handle e500 doubles.
2855 (function_arg): Same.
2856 (spe_func_has_64bit_regs_p): Same.
2857 (rs6000_function_value): Same.
2858 (rs6000_libcall_value): Same.
2859 (legitimate_lo_sum_address_p): Return false for e500 doubles.
2860
2861 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
2862 doubles.
2863 (DATA_ALIGNMENT): Same.
2864 (CANNOT_CHANGE_MODE_CLASS): Same.
2865
2866 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
2867
2868 * expr.c (emit_group_load): Handle floats.
2869 (emit_group_store): Same.
2870
2871 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
2872
2873 * c-lex.c (get_nonpadding_token): Remove.
2874 (c_lex_with_flags): Push timevar and eat padding here. Improve
2875 stray token diagnostic.
2876 (lex_string): Replace logic with switch statement, eat padding
2877 token here.
2878
2879 2004-10-26 Geoffrey Keating <geoffk@apple.com>
2880
2881 PR 18149
2882 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
2883
2884 2004-10-25 Geoffrey Keating <geoffk@apple.com>
2885
2886 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
2887 to 'non-weak'.
2888 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
2889 (ASM_MAKE_LABEL_LINKONCE): Delete.
2890 (ASM_WEAKEN_DECL): New.
2891 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
2892 (ASM_DECLARE_FUNCTION_NAME): Likewise.
2893 (TEXT_SECTION_ASM_OP): Add a tab.
2894 (DATA_SECTION_ASM_OP): Likewise.
2895 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
2896 data_section on every section change.
2897 (EXTRA_SECTIONS): Add a bunch of new extra sections.
2898 (EXTRA_SECTION_FUNCTIONS): Likewise.
2899 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
2900 (JCR_SECTION_NAME): Define.
2901 (TARGET_SECTION_TYPE_FLAGS): Don't define.
2902 * config/darwin.c (darwin_encode_section_info): A symbol is defined
2903 in this file if it is not weak.
2904 (textcoal_section): Delete.
2905 (datacoal_section): Delete.
2906 (darwin_make_decl_one_only): Delete.
2907 (machopic_select_section): Handle functions.
2908 (darwin_asm_named_section): Add a tab.
2909 (darwin_section_type_flags): Delete.
2910 (darwin_unique_section): Delete contents.
2911 (darwin_emit_unwind_label): Add a tab. Make decls weak if
2912 DECL_WEAK is set.
2913 * config/darwin-protos.h (darwin_section_type_flags): Delete.
2914 (darwin_make_decl_one_only): Delete.
2915 (text_coal_section): New.
2916 (text_unlikely_section): New.
2917 (text_unlikely_coal_section): New.
2918 (const_coal_section): New.
2919 (data_coal_section): New.
2920 (const_data_coal_section): New.
2921 * varasm.c (function_section): Honour
2922 USE_SELECT_SECTION_FOR_FUNCTIONS.
2923 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
2924 TARGET_USES_WEAK_UNWIND_INFO is in effect.
2925 * dbxout.c (dbxout_source_file): Don't change sections while
2926 a function is being output.
2927
2928 2004-10-25 David Ayers <d.ayers@inode.at>
2929
2930 * c-common.h: Remove RID_ID.
2931 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
2932 (typespec_reserved_attr): Add rule for TYPENAME
2933 non_empty_protocolrefs.
2934 (yylexname): Remove special handling of RID_ID.
2935
2936 2004-10-25 James E Wilson <wilson@specifixinc.com>
2937
2938 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
2939
2940 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
2941
2942 PR c/16667
2943 * c-parse.in (array_designator): New.
2944 (designator): Use it.
2945 (initelt): Only permit array_designator without '=', not ".foo".
2946
2947 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
2948 * gcc/Makefile.in: removed ggc for cgraphunit.
2949 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
2950 * gcc/cgraph.h: removed static var analysis data structures and calls.
2951 * gcc/cgraphunit.c:
2952 cgraph_mark_local_and_external_functions:changed name to
2953 cgraph_mark_local_functions
2954 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
2955 cgraph_reset_static_var_maps,get_global_static_vars_info,
2956 get_global_statics_not_read,get_global_statics_not_written,searchc,
2957 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
2958 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
2959 scan_for_static_refs,cgraph_characterize_statics_local,
2960 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
2961 removed.
2962 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
2963 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
2964 analysis
2965 * gcc/tree-flow.h static_vars_info: removed
2966 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
2967 removed calls to static vars analysis.
2968 get_call_expr_operands: removed callee variable.
2969
2970 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
2971
2972 * cfg.c (unchecked_make_edge, redirect_edge_succ,
2973 redirect_edge_pred): Use VEC_safe_push instead of
2974 VEC_safe_insert.
2975 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2976
2977 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
2978
2979 * cfgloopmanip.c (loopify): Take two more arguments true_edge
2980 and false_edge.
2981 * cfgloop.h: Adjust the corresponding prototype.
2982 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
2983 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
2984
2985 2004-10-25 Jakub Jelinek <jakub@redhat.com>
2986
2987 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
2988 DECL_INCOMING_RTL is NULL.
2989
2990 2004-10-25 Steven Bosscher <stevenb@suse.de>
2991
2992 * timevar.def (TV_FIND_REFERENCED_VARS): New.
2993 * tree-dfa.c (pass_referenced_var): Use it.
2994
2995 2004-10-25 Roger Sayle <roger@eyesopen.com>
2996 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2997
2998 * cse.c: Change encoding of quantity numbers to avoid undefined
2999 pointer arithmetic on qty_table.
3000 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
3001 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
3002 (new_basic_block): Assign "real" quantity numbers from zero.
3003 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
3004 REG_QTY to its unique negative value.
3005 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
3006 (cse_main): Don't include max_reg when determining max_qty.
3007 (cse_basic_block): Avoid subtracting a large offset from qty_table,
3008 which causes undefined C99 behaviour. Only allocate needed memory.
3009
3010 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
3011
3012 * stmt.c (expand_case): Remove an obsolete comment.
3013
3014 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
3015
3016 PR middle-end/17407
3017 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
3018 layout_type as it is already done by build_array_type.
3019 * tree.c (build_array_type): Layout the type even
3020
3021 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
3022
3023 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
3024
3025 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
3026
3027 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
3028 with wider-than-32-bit HOST_WIDE_INTs.
3029
3030 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
3031
3032 * config/mips/mips.c(mips_output_filename): Remove unused
3033 array ltext_label_name
3034
3035 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
3036
3037 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
3038
3039 2004-10-25 Ben Elliston <bje@au.ibm.com>
3040
3041 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
3042
3043 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
3044
3045 * predict.c (predict_loops): Call scev_finalize instead of
3046 scev_reset.
3047
3048 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
3049
3050 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
3051 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
3052 config/sh/ushmedia.h, config/sparc/elf.h,
3053 config/sparc/sp64-elf.h: Update copyright.
3054
3055 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
3056
3057 * stmt.c (expand_case): Handle the default label outside of
3058 the for loop. Remove code to handle a missing default label.
3059
3060 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
3061
3062 * dbxout.c (dbxout_function_decl): Don't use
3063 DBX_OUTPUT_FUNCTION_END.
3064 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
3065 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
3066
3067 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
3068
3069 PR middle-end/17967
3070 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
3071
3072 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
3073
3074 * tree-ssa-dom.c (record_equality): Use loop depth to determine
3075 which way to record the equality as well.
3076 (loop_depth_of_name): New function.
3077
3078 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3079
3080 PR middle-end/17793
3081 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
3082 through the operand if it is a useless type conversion.
3083
3084 2004-10-23 Ben Elliston <bje@au.ibm.com>
3085
3086 * cfg.c (remove_edge): Use VEC_unordered_remove.
3087 (redirect_edge_succ): Likewise.
3088 (redirect_edge_pred): Likewise.
3089 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3090
3091 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3092
3093 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
3094 beyond its end.
3095
3096 2004-10-22 Eric Christopher <echristo@redhat.com>
3097
3098 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
3099 saves.
3100
3101 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
3102
3103 * config/rs6000/spe.md (spe_extendsfdf2): New.
3104 (movdf_e500_double): New.
3105 (spe_truncdfsf2): New.
3106 (spe_absdf2): New.
3107 (spe_nabsdf2): New.
3108 (spe_negdf2): New.
3109 (sub_adddf3): New.
3110 (spe_subdf3): New.
3111 (spe_muldf3): New.
3112 (spe_floatsidf2): New.
3113 (spe_floatunssidf2): New.
3114 (fix_truncdfsi2): New.
3115 (spe_fixuns_truncdfsi2): New.
3116
3117 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
3118 (fpr_truncdfsf2): New.
3119 (negdf2): Change to expander.
3120 (fpr_negdf2): New.
3121 (fpr_nabsdf2): Name pattern.
3122 (adddf3): Change to expander.
3123 (fpr_adddf3): Nem.
3124 (subdf3): Change to expander.
3125 (fpr_subdf3): New.
3126 (muldf3): Change to expander.
3127 (fpr_muldf3): New.
3128 (divdf3): Change to expander.
3129 (fpr_divdf3): New.
3130 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
3131 (cmpdf): Allow for TARGET_E500_DOUBLE.
3132
3133 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3134
3135 * c-semantics.c (re_push_stmt_list): Remove.
3136 * c-common.h: Remove the corresponding prototype.
3137
3138 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3139
3140 * stmt.c (asm_op_is_mem_input): Remove.
3141 * tree.h: Remove the corresponding prototype.
3142
3143 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3144
3145 * tree-gimple.c (is_gimple_constructor_elt): Remove.
3146 * tree-gimple.h: Remove the corresponding prototype.
3147
3148 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3149
3150 * varasm.c (get_pool_mode_for_function, get_pool_offset):
3151 Remove.
3152 * rtl.h: Remove the corresponding prototypes.
3153
3154 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3155
3156 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
3157 edge information when we commit ourselves to threading a
3158 particular jump.
3159
3160 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3161
3162 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
3163 into worklist instead of their indexes.
3164
3165 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3166
3167 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
3168 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
3169 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
3170 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
3171 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
3172 tree-scalar-evolution.c, tree-ssa-dom.c,
3173 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3174 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
3175 tree-vectorizer.c, vec.h: Fix comment formatting.
3176
3177 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3178
3179 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
3180 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
3181
3182 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3183
3184 * config/ptx4.h, config/mcore/mcore-pe.h,
3185 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
3186
3187 2004-10-22 Peter Barada <peter@the-baradas.com>
3188
3189 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
3190 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
3191 renaming of non-live registers in interrupt functions.
3192 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
3193
3194 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
3195
3196 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
3197 Use integer for loop counter.
3198 (num_ending_zeros): New function.
3199 (number_of_iterations_cond): Use num_ending_zeros.
3200
3201 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
3202
3203 * config.gcc: Add support for --enable-e500_double.
3204
3205 * config/rs6000/e500-double.h: New file.
3206
3207 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
3208 TARGET_E500_DOUBLE.
3209
3210 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
3211 TARGET_E500_DOUBLE.
3212
3213 * config/rs6000/linuxspe.h: Same.
3214
3215 * doc/invoke.texi (Option Summary): Document new options for
3216 mfloat-gprs.
3217 (RS/6000 and PowerPC Options): Same.
3218
3219 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
3220 function.
3221 (rs6000_override_options): Use it. Use
3222 SUB3TARGET_OVERRIDE_OPTIONS.
3223 Add 8548 to processor_target_table.
3224 (rs6000_legitimate_address): Handle e500 doubles.
3225 (rs6000_legitimize_address): Same.
3226 (rs6000_legitimize_reload_address): Same.
3227 (rs6000_hard_regno_nregs): Same.
3228 (spe_func_has_64bit_regs_p): Same.
3229 (emit_frame_save): Same.
3230 (gen_frame_mem_offset): Same.
3231 (rs6000_dwarf_register_span): Same.
3232 (rs6000_generate_compare): Same.
3233 (easy_fp_constant): Same.
3234 (legitimate_offset_address_p): Same.
3235
3236 * config/rs6000/spe.md: (cmdfeq_gpr): New.
3237 (tstdfeq_gpr): New.
3238 (cmpdfgt_gpr): New.
3239 (tstdfgt_gpr): New.
3240 (tstdfgt_gpr): New.
3241 (cmpdflt_gpr): New.
3242 (tstdflt_gpr): New.
3243 Add new constants.
3244
3245 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3246
3247 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
3248
3249 2004-10-21 Zack Weinberg <zack@codesourcery.com>
3250
3251 * dbxout.c: Remove unnecessary #undefs.
3252 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
3253 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
3254 definition into use sites.
3255 (cwd): Make local to dbxout_init.
3256 (dbxout_init): Restructure cwd-using logic for clarity. Use
3257 IS_DIR_SEPARATOR.
3258 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
3259 STABS_GCC_MARKER folded in here.
3260 * system.h: Poison now-unused macros.
3261 * doc/tm.texi: Remove documentation of now-unused macros.
3262
3263 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
3264
3265 PR c/17538
3266 * c-opts.c (push_command_line_include): Use the current file
3267 name instead of the main one.
3268
3269 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
3270
3271 PR objc/17923
3272 * tree.c (staticp): A CONST_DECL has static storage if either
3273 TREE_STATIC or DECL_EXTERNAL is set.
3274 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
3275 have null names.
3276
3277 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3278
3279 * expr.c (store_expr): Remove dont_store_target.
3280
3281 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3282
3283 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
3284
3285 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3286
3287 * tree-cfg.c (thread_jumps): Move a part of it to ...
3288 (thread_jumps_from_bb): ... here.
3289
3290 2004-10-21 David Edelsohn <edelsohn@gnu.org>
3291
3292 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
3293 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
3294
3295 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3296
3297 * expr.c (store_expr): Clean up by renaming want_value to
3298 call_param_p.
3299
3300 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
3301
3302 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
3303 fixup pc here.
3304
3305 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
3306
3307 PR 18004.
3308 * expmed.c (store_bit_field): Pass original 'value' before
3309 recursing.
3310
3311 2004-10-21 Nicolas Pitre <nico@cam.org>
3312
3313 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
3314 * config/arm/ieee754-df.S: Ditto.
3315
3316 2004-10-20 Zack Weinberg <zack@codesourcery.com>
3317
3318 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
3319 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
3320 Default to 0.
3321 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
3322 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
3323 an internal label and an N_SLINE .stabn whose value is the
3324 difference between that label and the function entry label.
3325 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
3326 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
3327 label and an N_SO stab with an empty string referring to it.
3328 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
3329 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
3330 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
3331 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
3332 macro is never defined.
3333 * sdbout.c (sdbout_source_line_counter): Delete.
3334 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
3335 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
3336 only two arguments.
3337 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
3338
3339 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
3340 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
3341 definitions (identical to default).
3342 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
3343 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
3344 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
3345 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
3346 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
3347 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
3348 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
3349 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
3350 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
3351 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
3352 (sym_lineno): Delete.
3353 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
3354 now-unused variable.
3355 (alpha_output_lineno): Delete.
3356 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
3357 * config/mips/mips.c (mips_output_filename): Don't use
3358 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
3359 (mips_output_lineno): Delete.
3360 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
3361 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
3362 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
3363 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
3364 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
3365 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
3366 * config/mmix/mmix.h: Likewise.
3367 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
3368 * config/mmix/mmix-protos.h: Don't prototype it.
3369 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
3370 no need to #undef ASM_OUTPUT_SOURCE_LINE.
3371 * config/arm/aout.h: Remove RISCiX-specific definition of
3372 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
3373 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
3374 ASM_OUTPUT_SOURCE_LINE.
3375 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
3376 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
3377 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
3378
3379 * doc/tm.texi: Update.
3380
3381 2004-10-20 Richard Henderson <rth@redhat.com>
3382
3383 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
3384
3385 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
3386
3387 * configure.ac: Revert my previous patch.
3388 * configure: Regenerate.
3389
3390 2004-10-20 Ben Elliston <bje@au.ibm.com>
3391
3392 * config/rs6000/rs6000.c
3393 (rs6000_va_start): Use build_va_arg_indirect_ref.
3394 (rs6000_gimplify_va_arg): Likewise.
3395
3396 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
3397
3398 PR java/15575
3399 * configure.ac: Declare AM_LANGINFO_CODESET.
3400 * aclocal.m4: Define AM_LANGINFO_CODESET.
3401 * configure, config.in: Rebuilt.
3402
3403 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
3404
3405 * expr.c (store_expr): Remove code that is run when
3406 want_value & 1 is nonzero.
3407
3408 2004-10-20 Mark Mitchell <mark@codesourcery.com>
3409
3410 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
3411 from function pointer to void *.
3412
3413 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
3414
3415 PR target/18032
3416 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
3417 the frame pointer adjustment when exception handling is enabled.
3418
3419 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
3420
3421 * stor-layout.c: Fix a comment typo.
3422
3423 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
3424
3425 * expr.c (store_field): Remove two arguments value_mode and
3426 unsignedp.
3427 (expand_assignment, store_constructor_field,
3428 expand_expr_real_1): Adjust calls to store_field.
3429
3430 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3431
3432 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
3433
3434 PR target/17317
3435 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
3436 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
3437 base and index register for loads.
3438
3439 * config/arc/t-arc: Fix multilib handling.
3440
3441 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
3442
3443 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
3444 don't inspect BLOCK_FOR_INSN for barriers.
3445 * emit-rtl.c (emit_barrier_before): Revert last change.
3446 (emit_barrier_after, emit_barrier): Ditto.
3447
3448 * doc/extend.texi (Extended Asm): Warn and provide example
3449 solution for using a call-clobbered asm register.
3450 (Local Reg Vars): Similar. Cross-reference example.
3451
3452 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
3453
3454 * tree-cfg.c (group_case_labels): Look at the second to last
3455 case statement for combing with the default case.
3456
3457 2004-10-19 Richard Hendeson <rth@redhat.com>
3458
3459 PR 17962
3460 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
3461
3462 2004-10-19 Richard Hendeson <rth@redhat.com>
3463
3464 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
3465 succeeds, only expand the result.
3466
3467 2004-10-19 Richard Hendeson <rth@redhat.com>
3468
3469 PR middle-end/17885
3470 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
3471 of INDIRECT_REF.
3472
3473 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
3474
3475 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
3476 loop with goto.
3477
3478 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
3479
3480 * expr.c (expand_assignment): Remove the last argument.
3481 Change the return type to void.
3482 * expr.h: Update the prototype of expand_assignment.
3483 * function.c (assign_parm_setup_reg): Update a call to
3484 expand_assignment.
3485 * stmt.c (expand_asm_expr): Likewise.
3486
3487 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
3488
3489 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
3490 unnecessary assignments to temp. Return const0_rtx.
3491
3492 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
3493
3494 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
3495
3496 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
3497
3498 * configure.ac (powerpc-*-darwin*): Require assembler to support
3499 .machine directive.
3500 * configure: Regenerate.
3501
3502 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3503
3504 * reload1.c (ior_hard_reg_set): Remove.
3505 (finish_spills): Use IOR_HARD_REG_SET instead of
3506 ior_hard_reg_set.
3507
3508 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3509
3510 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
3511 the currently visited word to right.
3512
3513 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3514
3515 PR middle-end/18045
3516 * expmed.c (expand_smod_pow2): Handle modes whose size
3517 is greater than that of HOST_WIDE_INT.
3518
3519 2004-10-18 Ziemowit Laski <zlaski@apple.com>
3520
3521 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
3522
3523 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3524 Roger Sayle <roger@eyesopen.com>
3525
3526 PR middle-end/17813
3527 * dojump.c (discard_pending_stack_adjust): New function.
3528 (clear_pending_stack_adjust): Call it.
3529 * expr.h (discard_pending_stack_adjust): Declare it.
3530 * explow.c (emit_stack_save): Emit pending stack adjustments
3531 before saving the stack pointer.
3532 (emit_stack_restore): Discard pending stack adjustments before
3533 restoring the stack pointer.
3534
3535 2004-10-18 Richard Henderson <rth@redhat.com>
3536
3537 * c-common.c (handle_mode_attribute): Allow scalar->vector
3538 type changes yet.
3539
3540 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3541
3542 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
3543 value to expand_assignment.
3544
3545 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3546
3547 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
3548 thread_jumps.
3549 (thread_jumps): Iterate until no new forwarder block arises.
3550
3551 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3552
3553 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
3554 (thread_jumps): Use forwardable as cache of
3555 tree_forwarder_block_p throughout the function.
3556
3557 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
3558
3559 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
3560
3561 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
3562
3563 PR middle-end/15014
3564 PR middle-end/16973
3565 * tree-cfg.c (remove_bb): If we have a label expression in the
3566 basic block and the label we have taken the address, move the
3567 label expression to the basic block which is previous in the
3568 linked list.
3569 (tree_verify_flow_info): Fix printing out the label name of the
3570 problematic label expression.
3571
3572 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
3573
3574 PR rtl-optimization/18002
3575 * simplify-rtx.c (mode_signbit_p): Externalize function...
3576 * rtl.h (mode_signbit_p): ... to here.
3577 * combine.c (simplify_shift_const): Recognize PLUS signbit as
3578 canonical form of XOR signbit and move to outer op.
3579
3580 2004-10-18 Diego Novillo <dnovillo@redhat.com>
3581
3582 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
3583 Update all callers.
3584 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
3585 Don't call fold_stmt more than once, use bsi_replace.
3586
3587 2004-10-18 Diego Novillo <dnovillo@redhat.com>
3588
3589 PR tree-optimization/17656
3590 * tree-ssa.c (replace_immediate_uses): When replacing a
3591 constant, if the call to fold_stmt produced a different
3592 statement, get an appropriate statement pointer by scanning
3593 STMT's basic block.
3594
3595 2004-10-18 Richard Henderson <rth@redhat.com>
3596
3597 * pointer-set.c (hash1): Don't use libm functions in fallback case.
3598
3599 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
3600
3601 PR bootstrap/17684
3602 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
3603 (stage1-start): Remove and copy libunwind.a and
3604 libunwind*$(SHLIB_EXT) instead of libunwind*.
3605 (stage2-start): Likewise.
3606 (stage3-start): Likewise.
3607 (stage4-start): Likewise.
3608 (stageprofile-start): Likewise.
3609 (stagefeedback-start): Likewise.
3610
3611 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
3612 the shared library to be created and don't remove the existing
3613 shared library.
3614 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
3615 * config/i386/t-nwld (SHLIB_LINK): Likewise.
3616 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
3617 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
3618 * config/sh/t-linux (SHLIB_LINK): Likewise.
3619 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
3620 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
3621 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
3622 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3623
3624 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
3625 files.
3626
3627 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3628
3629 * basic-block.h (reg_set_iterator): New.
3630 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
3631 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
3632 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
3633 * caller-save.c (save_call_clobbered_regs): Adjust to the new
3634 style.
3635 * cfgcleanup.c (thread_jump): Likewise.
3636 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
3637 * conflict.c (conflict_graph_compute): Likewise.
3638 * flow.c (verify_local_live_at_start, update_life_info,
3639 initialize_uninitialized_subregs, propagate_one_insn,
3640 init_propagate_block_info, free_propagate_block_info,
3641 propagate_block, dump_regset): Likewise.
3642 * global.c (global_conflicts): Likewise.
3643 * graph.c (start_bb): Likewise.
3644 * local-alloc.c (update_equiv_regs): Likewise.
3645 * loop.c (load_mems): Likewise.
3646 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
3647 find_reg, finish_spills): Likewise.
3648 * resource.c (mark_target_live_regs): Likewise.
3649 * sched-deps.c (sched_analyze_insn): Likewise.
3650 * sched-rgn.c (sched-rgn.c): Likewise.
3651 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3652
3653 2004-10-18 Jakub Jelinek <jakub@redhat.com>
3654
3655 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
3656 operand 1 instead of 2
3657
3658 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3659
3660 * loop-unroll.c: Fix comment typos.
3661
3662 2004-10-18 Revital Eres <eres@il.ibm.com>
3663
3664 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
3665 * loop-unroll.c: Include varray.h.
3666 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
3667 opt_info and expand it to support variable expansion.
3668 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
3669 expand it to support variable expansion.
3670 (pt_info_start_duplication): Rename si_info_start_duplication.
3671 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
3672 to the variable expansion optimization.
3673 (free_opt_info): Rename free_si_info.
3674 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
3675 expand_var_during_unrolling, insert_var_expansion_initialization,
3676 combine_var_copies_in_loop_exit, release_var_copies,
3677 get_expansion): New functions.
3678 (peel_loop_completely, unroll_loop_constant_iterations,
3679 unroll_loop_runtime_iterations, peel_loop_simple,
3680 unroll_loop_stupid): Change uses of struct si_info
3681 to struct opt_info
3682 and add uses of fvariable-expansion-in-unroller flag.
3683 * params.def: Add parameter to restrict the number of expansions.
3684 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
3685 the number of expansions.
3686 * common.opt: (fvariable-expansion-in-unroller): New flag.
3687 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
3688
3689 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
3690
3691 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
3692 __GXX_MERGED_TYPEINFO_NAMES to 0.
3693
3694 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
3695
3696 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
3697 handle barriers in a bb by checking that it points to a NULL bb.
3698 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
3699 (emit_barrier_after, emit_barrier): Ditto.
3700
3701 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
3702
3703 * doc/extend.texi (Attribute Syntax): Clarify details of
3704 attributes on parameters.
3705
3706 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
3707
3708 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
3709 loop.
3710
3711 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
3712
3713 Revert:
3714 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
3715
3716 * c-typeck.c (default_function_array_conversion): Always create
3717 &a[0] for array types.
3718 (build_unary_op): Do not fold &a[x] into a + x.
3719
3720 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
3721
3722 PR middle-end/17925
3723 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
3724 block if there is a goto with a locus.
3725
3726 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
3727
3728 * config/elfos.h, config/gofast.h, config/interix.h,
3729 config/netbsd.h, config/svr3.h, config/vxworks.h,
3730 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
3731 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
3732 config/alpha/netbsd.h, config/arm/arm-modes.def,
3733 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
3734 config/cris/aout.h, config/frv/frv-modes.def,
3735 config/i386/beos-elf.h, config/i386/gas.h,
3736 config/i386/i386-coff.h, config/i386/i386-modes.def,
3737 config/i386/linux.h, config/i386/linux64.h,
3738 config/i386/mingw32.h, config/i386/netbsd-elf.h,
3739 config/i386/netbsd64.h, config/i386/sco5.h,
3740 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
3741 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
3742 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
3743 config/mips/mips-modes.def, config/mips/sdb.h,
3744 config/mips/vr.h, config/mips/vxworks.h,
3745 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
3746 config/pa/pa32-linux.h, config/rs6000/40x.md,
3747 config/rs6000/7450.md, config/rs6000/8540.md,
3748 config/rs6000/linuxspe.h, config/rs6000/power4.md,
3749 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
3750 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
3751 config/s390/s390-modes.def, config/sh/elf.h,
3752 config/sh/sh-modes.def, config/sh/sh64.h,
3753 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
3754 config/stormy16/stormy16.md, config/v850/v850-protos.h,
3755 config/vax/vax.md: Update copyright.
3756
3757 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
3758
3759 * expr.c (expand_expr_real_1): Remove an obsolete comment.
3760
3761 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
3762
3763 * c-typeck.c (default_function_array_conversion): Always create
3764 &a[0] for array types.
3765 (build_unary_op): Do not fold &a[x] into a + x.
3766
3767 2004-10-17 Jakub Jelinek <jakub@redhat.com>
3768
3769 * pointer-set.c (hash1): Use integer part of 2^64 / phi
3770 instead 2^32 / phi if long is 64-bit.
3771
3772 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
3773
3774 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
3775 RID_PTRVALUE.
3776 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
3777 declarations.
3778 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
3779 __ptrextent__, __ptrvalue and __ptrvalue__.
3780 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
3781 entries.
3782
3783 2004-10-16 Dale Johannesen <dalej@apple.com>
3784
3785 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
3786
3787 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
3788
3789 PR tree-optimization/17766
3790 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
3791 (dom_info_available_p): Declare.
3792 * cfghooks.c (split_block, make_forwarder_block): Use
3793 dom_info_available_p.
3794 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
3795 free_dominance_info, verify_dominators): Ditto.
3796 (dom_info_available_p): New function.
3797 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
3798 (thread_jumps): Use dom_info_available_p.
3799 * tree-complex.c (expand_complex_div_wide): Ditto.
3800 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
3801
3802 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
3803
3804 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
3805 (find_best_candidate): Take also important candidates into account.
3806 (find_optimal_iv_set): Initialize important_candidates bitmap.
3807
3808 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
3809
3810 PR tree-optimization/17560
3811 * predict.c (tree_estimate_probability): Mark irreducible
3812 loops.
3813
3814 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
3815
3816 PR rtl-optimization/17723
3817 * cfgcleanup.c (merge_memattrs): Handle case when
3818 MEM_SIZE == NULL_RTX.
3819
3820 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
3821
3822 * toplev.c (dump_file_name): Change type to be const.
3823
3824 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
3825
3826 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
3827 non_lvalue to stop something being a null pointer constant.
3828
3829 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
3830
3831 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
3832 available for TARGET_FPRS.
3833 (FUNCTION_VALUE_REGNO_P): Same.
3834
3835 2004-10-15 Geoffrey Keating <geoffk@apple.com>
3836
3837 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3838 -maltivec in same style as other ISA options.
3839
3840 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
3841
3842 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
3843 definition.
3844
3845 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
3846
3847 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
3848 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
3849 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
3850 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
3851 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
3852 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
3853 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
3854 predict.def, predict.h, protoize.c, reload.h, resource.h,
3855 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
3856 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
3857 unwind-sjlj.c, value-prof.h: Update copyright.
3858
3859 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
3860
3861 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
3862
3863 2004-10-15 Diego Novillo <dnovillo@redhat.com>
3864
3865 * tree-optimize.c (execute_one_pass): Stop timer right after
3866 executing the pass.
3867
3868 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
3869
3870 Revert:
3871 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
3872 PR middle-end/17967
3873 Revert:
3874 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
3875 (remove_useless_stmts_1): Fold trees we know how to fold.
3876
3877 2004-10-14 David Edelsohn <edelsohn@gnu.org>
3878
3879 * configure.ac: Add .machine power4 directive when testing for
3880 mfcr field.
3881 * configure: Regenerate.
3882
3883 2004-10-14 Geoffrey Keating <geoffk@apple.com>
3884
3885 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
3886
3887 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
3888
3889 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
3890 always.
3891
3892 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
3893
3894 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
3895 for 'f' if !TARGET_FPRS.
3896
3897 2004-10-14 Richard Henderson <rth@redhat.com>
3898
3899 PR debug/14492
3900 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
3901
3902 2004-10-14 Richard Henderson <rth@redhat.com>
3903
3904 PR c/17023
3905 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
3906 as error_mark_node.
3907 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
3908 instaed of current_function_decl non-null.
3909
3910 2004-10-14 Matt Austern <austern@apple.com>
3911
3912 * pointer-set.c: New file, special-purpose hash table.
3913 * pointer-set.h: New file.
3914 * tree.h (struct pointer_set_t): Declare as opaque type.
3915 (tree_walk): Last argument is pointer_set_t* now.
3916 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
3917 (walk_type_fields):
3918 (walk_tree): Convert from htab_t to pointer_set_t for keeping
3919 track of which nodes have already been visited.
3920 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
3921 * cgraphunit.c (cgraph_create_edges): Likewise.
3922 (cgraph_characterize_statics_local): Likewise.
3923 * tree-dfa.c (collect_dfa_stats): Likewise.
3924 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
3925 pointer_set_t* now.
3926 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
3927 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
3928 of walk_subtrees is pointer_set_t* now.
3929 * Makefile.in (OBJS-common): add pointer-set.o
3930 (tree-inline.o): Depends on pointer-set.h
3931 (tree-dfa.o): Likewise
3932 (cgraphunit.o): Likewise
3933
3934 2004-10-14 Geoffrey Keating <geoffk@apple.com>
3935
3936 * config/rs6000/darwin.h (ASM_SPEC): Delete.
3937 (TARGET_ASM_FILE_START): Define.
3938 * config/darwin.h (ASM_SPEC): Define.
3939 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
3940 -mlong-double-128, it's the default. Update comment about reason
3941 for force_cpusubtype_ALL.
3942 * config/rs6000/darwin-vecsave.asm: Supply .machine.
3943 * config/rs6000/darwin-world.asm: Likewise.
3944 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
3945 (symbolic_operand): Delete #if 0ed code.
3946
3947 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
3948
3949 * stmt.c (add_case_node): Make sure that we have integer
3950 constant before calling tree_int_cst_compare.
3951
3952 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
3953
3954 PR middle-end/17967
3955 Revert:
3956 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
3957 (remove_useless_stmts_1): Fold trees we know how to fold.
3958
3959 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
3960
3961 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
3962 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
3963 -m64.
3964
3965 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
3966
3967 * reload.c (find_reloads): When reloading a PLUS with constant
3968 operand, make sure the constant is pushed to the constant pool
3969 if required.
3970 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
3971 reload bug workaround.
3972 (s390_expand_plus_operand): Likewise.
3973
3974 2004-10-14 David Edelsohn <edelsohn@gnu.org>
3975
3976 * opts.c (common_handle_option): Do not enable
3977 flag_speculative_prefetching for -fprofile-generate/use.
3978
3979 2004-10-14 Devang Patel <dpatel@apple.com>
3980
3981 PR 17635
3982 * tree-if-conv.c (process_phi_nodes): Process latch block.
3983 (combine_blocks): Process latch block and update loop structure.
3984
3985 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
3986
3987 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
3988 (vect_update_ivs_after_vectorizer):
3989 (vect_transform_for_unknown_loop_bound):
3990 (tree_duplicate_loop_to_edge):
3991 (allocate_new_names):
3992 (rename_use_op):
3993 (rename_def_op):
3994 (rename_variables_in_bb):
3995 (free_new_names):
3996 (rename_variables_in_loop):
3997 (copy_phi_nodes):
3998 (update_phis_for_duplicate_loop):
3999 (update_phi_nodes_for_guard):
4000 (make_loop_iterate_ntimes):
4001 (tree_duplicate_loop_to_edge_cfg):
4002 (add_loop_guard):
4003 (vect_analyze_loop_with_symbolic_num_of_iters):
4004 (verify_loop_for_duplication):
4005 (vect_gen_niters_for_prolog_loop):
4006 (vect_update_niters_after_peeling):
4007 (vect_update_inits_of_dr):
4008 (vect_update_inits_of_drs):
4009 (vect_build_loop_niters):
4010 (vect_do_peeling_for_alignment): New functions.
4011 (vect_transform_loop): Add unknown and known but indivisible loop
4012 bound support; add peeling for unalignment support.
4013 (vect_analyze_loop_form): Support symbolic number of iterations.
4014 (vect_transform_loop_bound): New input parameter.
4015 (vect_get_loop_niters): Change input parameter type.
4016 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
4017 (vectorizable_store): Allow unaligned access.
4018 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
4019 (vect_analyze_data_refs_alignment): Allowed one unaligned
4020 store.
4021 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
4022 to use tree.
4023 (LOOP_VINFO_INT_NITERS): New macro.
4024 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
4025 (do_peeling_for_alignment):
4026 (unaligned_drs): New members of _loop_vec_info.
4027 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
4028
4029 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
4030
4031 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
4032 (struct tree_string): Remove "const" qualifier for "str".
4033
4034 2004-10-14 Ira Rosen <irar@il.ibm.com>
4035
4036 * tree-vectorizer.c (vect_analyze_data_refs): Call
4037 vect_get_base_and_bit_offset to get memory tag for array ref.
4038 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
4039
4040 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
4041
4042 * configure.ac: Use $LN_S for creating symlinks (not $LN).
4043 * configure: Regenerate.
4044
4045 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4046
4047 * doc/install.texi (*-*-solaris2*): Update with info about kernel
4048 patches to solve spurious testsuite failures.
4049
4050 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
4051
4052 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
4053 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
4054 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
4055 gcc_assert under ENABLE_CHECKING.
4056 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
4057 get_vectype_for_scalar_type).
4058
4059 (vect_get_vec_def_for_operand): Remove redundant variables.
4060 (vect_transform_loop): Likewise.
4061
4062 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
4063
4064 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
4065 global for -mcaller-super-interworking.
4066 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
4067 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
4068 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
4069 not need a frame pointer.
4070 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
4071 the soft frame pointer offset.
4072 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
4073 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
4074 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
4075 the stack. Use frame_pointer_needed to choose between them.
4076 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
4077 (interwork_with_frame): New macro.
4078 (interwork): Add _interwork_{r7,r11}_call_via_rN().
4079
4080 2004-10-14 Ben Elliston <bje@au.ibm.com>
4081
4082 PR other/17900
4083 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
4084 up the filename looking for a previous directory separator.
4085
4086 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
4087
4088 * c-tree.h (enum c_typespec_kind, struct c_typespec,
4089 parser_xref_tag): New.
4090 (struct c_declspecs): Add tag_defined_p. Adjust definition of
4091 typedef_p.
4092 (declspecs_add_type): Adjust prototypes.
4093 * c-parse.in (%union): Add tstype.
4094 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
4095 typespec_reserved_attr, typespec_nonreserved_nonattr,
4096 structsp_attr, structsp_nonattr): Change to tstype. Update
4097 actions.
4098 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
4099 (declspecs_add_type): Update to take struct c_typespec argument.
4100 Set tag_defined_p and typedef_p as appropriate.
4101 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
4102 Update to return struct c_typespec.
4103 (shadow_tag_warned): Don't let empty declarations with qualifiers
4104 or storage class specifiers redeclare a tag if a previous
4105 declaration is visible.
4106
4107 2004-10-13 Richard Henderson <rth@redhat.com>
4108
4109 PR debug/15860
4110 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
4111 for DECL_INCOMING_RTL.
4112
4113 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
4114
4115 PR target/17984
4116 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
4117 trunc_int_for_mode for constants used in shortened mode.
4118
4119 2004-10-13 Richard Henderson <rth@redhat.com>
4120
4121 PR c/17384
4122 * c-common.c (handle_mode_attribute): Disallow mode changes that
4123 alter the CODE of the top-level type.
4124
4125 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
4126 integer from internal limits macros.
4127 * config/i386/mm3dnow.h (__v2sf): Fix base type.
4128
4129 2004-10-13 Richard Henderson <rth@redhat.com>
4130
4131 PR debug/13841
4132 * function.c (instantiate_decl): Recurse for CONCAT.
4133
4134 2004-10-13 David Edelsohn <edelsohn@gnu.org>
4135
4136 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
4137 andi./andis.
4138 (anddi3): Same.
4139 (extzvdi_internal1): Add attribute "compare".
4140 (extzvdi_internal2): Same.
4141
4142 2004-10-12 Tom Tromey <tromey@redhat.com>
4143
4144 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
4145
4146 2004-10-13 Dale Johannesen <dalej@apple.com>
4147
4148 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
4149
4150 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
4151
4152 * toplev.c (compile_file): Call mudflap_finish_file from here ...
4153 * c-decl.c (c_write_global_declarations): ... instead of here ...
4154 * cp/decl.c (cp_finish_file): ... and here.
4155 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
4156
4157 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
4158
4159 * tree-ssa-dom.c (record_range): Free the element if we are not
4160 going to use it.
4161
4162 2004-10-13 Tom Tromey <tromey@redhat.com>
4163
4164 PR java/15578:
4165 * gcc.c (option_map): Added --extdirs and --encoding.
4166
4167 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4168
4169 PR target/14454
4170 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
4171 sparc_can_output_mi_thunk.
4172 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
4173 handling of vcall offset.
4174 (sparc_can_output_mi_thunk): New predicate.
4175 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
4176 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
4177 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
4178
4179 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
4180
4181 * config/sparc/sparc.md (movdi): Remove redundant test.
4182
4183 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
4184
4185 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
4186 TDF_IPA from -fdump-tree-*-all.
4187
4188 2004-10-13 Paul Brook <paul@codesourcery.com>
4189
4190 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
4191 * config/arm/arm.c (thumb_find_work_register): Update comments.
4192 (arm_load_pic_register): Add argument for scratch register.
4193 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
4194 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
4195
4196 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
4197
4198 * tree-data-ref.c: Fix comment typos.
4199
4200 2004-10-13 Jakub Jelinek <jakub@redhat.com>
4201 Zdenek Dvorak <dvorakz@suse.cz>
4202
4203 PR tree-optimization/17724
4204 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
4205
4206 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
4207
4208 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
4209 (altivec_builtin_mask_for_store): Likewise.
4210 (altivec_init_builtins): Use lang_hooks.builtin_function to
4211 create the decls for builtin_altivec_mask_for_load/store.
4212
4213 2004-10-13 Nick Clifton <nickc@redhat.com>
4214
4215 * config/c4x/c4x.c: Remove inclusion of loop.h.
4216
4217 2004-10-12 Ben Elliston <bje@au.ibm.com>
4218
4219 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
4220 (ei_container): New; renamed.
4221 (ei_start, ei_last): New macros.
4222 (ei_start_1, ei_last_1): Renamed from ei_start.
4223 (ei_last_1, ei_end_p): Use ei_container() where applicable.
4224 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
4225 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
4226
4227 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
4228
4229 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
4230 * cfgloop.c (initialize_loops_parallel_p): New.
4231 (flow_loops_find): Initialize the parallel_p field to true for all
4232 the loops.
4233 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
4234 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
4235 the size of the data accessed in the loop.
4236 (struct nb_iter_bound): Moved...
4237 * cfgloop.h (struct nb_iter_bound): ... here.
4238 (estimated_nb_iterations, parallel_p): New fields in struct loop.
4239 (record_estimate): Declare extern here.
4240 * tree-chrec.c: Fix comments.
4241 (nb_vars_in_chrec): New function.
4242 * tree-chrec.h (nb_vars_in_chrec): Declared here.
4243 * tree-data-ref.c: Don't include lambda.h, that is already included
4244 in tree-data-ref.h.
4245 (tree_fold_divides_p): Don't check for integer_onep.
4246 (tree_fold_bezout): Removed.
4247 (gcd): New static duplicated function.
4248 (int_divides_p, dump_subscript): New.
4249 (dump_data_dependence_relation): Use dump_subscript.
4250 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
4251 estimate_niter_from_size_of_data): New.
4252 (analyze_array_indexes, analyze_array): Call
4253 estimate_niter_from_size_of_data during the detection of array
4254 references. Pass in a pointer to the statement that contains the
4255 array reference.
4256 (all_chrecs_equal_p): New.
4257 (compute_distance_vector): Renamed compute_subscript_distance.
4258 Deal with multivariate conflict functions.
4259 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
4260 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
4261 (non_affine_dependence_relation): New.
4262 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
4263 analyze_siv_subscript, analyze_miv_subscript,
4264 analyze_overlapping_iterations, subscript_dependence_tester):
4265 Initialize and return last_conflicts function.
4266 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
4267 compute_overlap_steps_for_affine_1_2): New.
4268 (analyze_siv_subscript_affine_cst): Removed.
4269 (analyze_subscript_affine_affine): Disprove dependences based on the
4270 iteration domains. Solve the univariate dependence case as before,
4271 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
4272 Implement the multivariate case of 2 versus 1 variables.
4273 (build_classic_dist_vector, build_classic_dir_vector): Implement some
4274 unhandled cases.
4275 (find_data_references_in_loop): Compute and initialize
4276 loop->estimated_nb_iterations and loop->parallel_p.
4277 (analyze_all_data_dependences): Modify the debug dump order.
4278 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
4279 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
4280 (SUB_LAST_CONFLICT, subscript->last_conflict,
4281 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
4282 DDR_AFFINE_P, DDR_SIZE_VECT): New.
4283 (find_data_references_in_loop, initialize_data_dependence_relation,
4284 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
4285
4286 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
4287
4288 * configure: Regenerate.
4289
4290 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
4291
4292 PR 17892
4293 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
4294 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
4295 and constant folding of floating point MULT_EXPR/PLUS_EXPR
4296 expressions.
4297
4298 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
4299
4300 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
4301 (s390_gimplify_va_arg): Likewise.
4302
4303 2004-10-12 Daniel Jacobowitz <dan@debian.org>
4304
4305 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
4306 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
4307 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
4308 * regclass.c (record_address_regs): Remove ifdef. Use
4309 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
4310 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
4311 definition.
4312 (scan_rtx_address, replace_oldest_value_addr): Use
4313 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
4314 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
4315 unnecessary definitions.
4316 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
4317 and MODE_BASE_REG_REG_CLASS.
4318 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
4319 (MODE_BASE_REG_REG_CLASS): Define.
4320 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
4321 (REG_MODE_OK_FOR_REG_BASE_P): Define.
4322 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
4323 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
4324
4325 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
4326
4327 * tree-ssa-alias.c (verify_name_tags): New function.
4328 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
4329 (verify_alias_info): Call verify_name_tags.
4330
4331 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
4332
4333 PR rtl-optimization/17931
4334 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
4335 ZERO_EXTRACT in it.
4336
4337 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
4338
4339 * arm.c (arm_print_operand): Use output_operand_lossage where possible
4340 rather than aborting.
4341
4342 2004-10-12 Paul Brook <paul@coudesourcery.com>
4343
4344 * config.gcc: Add armv6{k,z,zk}
4345 * config/arm/arm-cores.def: Add arm1176 and mpcore.
4346 * config/arm/tune.md: Regenerate.
4347 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
4348 Define.
4349 (all_architectures): Add armv6k, armv6z, armv6zk.
4350 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
4351 * doc/invoke.texi: Document new arch and cpu values.
4352
4353 2004-10-12 Paul Brook <paul@coodesourcery.com>
4354
4355 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
4356 meabi=4.
4357
4358 2004-10-12 Paul Brook <paul@codesourcery.com>
4359
4360 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
4361 Handle negative constants.
4362
4363 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
4364
4365 PR c/17301
4366 * c-typeck.c (convert_arguments): Return error_mark_node if there
4367 are too few arguments.
4368 (build_function_call): Handle error_mark_node return from
4369 convert_arguments.
4370
4371 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
4372
4373 * configure.ac (symbolic_link): Replace with $LN_S.
4374 (Assembler/Linker): Hard link from gas and binutils trees.
4375 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
4376 * configure: Regenerate.
4377
4378 2004-10-12 Paul Brook <paul@codesourcery.com>
4379
4380 * configure.ac: Don't look for host assembler when building a canadian
4381 cross.
4382 * configure: Regenerate.
4383
4384 2004-10-11 Roger Sayle <roger@eyesopen.com>
4385
4386 PR other/17361
4387 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
4388 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
4389 line options for "-lang-asm" and if found allow any of the C-family
4390 front-end options.
4391 (c_common_handle_option): Remove last use of permit_fortran_options.
4392
4393 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
4394
4395 * config/s390/s390.c (print_operand): Support 'S' format flag.
4396 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
4397 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
4398 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
4399 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
4400 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
4401 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
4402 ("*movstricthi"): Likewise.
4403 ("*load_multiple_di", "*load_multiple_si"): Likewise.
4404 ("*store_multiple_di", "*store_multiple_si"): Likewise.
4405 ("*sethiqisi", "*sethihisi"): Likewise.
4406 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
4407 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
4408 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
4409 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
4410 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
4411
4412 ("*tmhi_full"): Fix incorrect op_type attribute.
4413
4414 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
4415 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
4416 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
4417 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
4418
4419 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
4420
4421 PR middle-end/16266
4422 * function.c (temp_slots_at_level): Fix typo which creates too
4423 many temp stack slots levels.
4424
4425 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
4426
4427 * config/s390/s390.c (s390_trampoline_template): Generate shorter
4428 trampoline code.
4429 (s390_trampoline_instantiate): Adapt.
4430 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
4431
4432 2004-10-11 Roger Sayle <roger@eyesopen.com>
4433
4434 PR middle-end/17657
4435 * stmt.c (add_case_node): Add additional type argument. Declare
4436 as static to match prototype. Convert the upper and lower bounds
4437 to the specified index type. Optimize away case ranges/values
4438 that are outside the index type's bounds. Truncate case ranges
4439 that span the index type's bounds.
4440 (expand_case): Avoid unnessary computation and memory allocation
4441 when index type is error_mark_node. Pass index_type as required
4442 by change to add_case_node API. No need to convert case range
4443 bounds to index_type, this is now done by add_case_node.
4444
4445 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
4446
4447 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
4448 * config/s390/s390.c (s390_offset_p): New function.
4449 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
4450 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
4451 transform Q->Q alternatives to *clc pattern.
4452 ("*clc"): Move.
4453 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
4454 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
4455 to transform Q->Q alternatives to *mvc pattern.
4456 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
4457 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
4458 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
4459 transform Q->Q alternatives to *nc pattern.
4460 ("*nc"): New insn. New peephole to merge adjacent NCs.
4461 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
4462 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
4463 transform Q->Q alternatives to *oc pattern.
4464 ("*oc"): New insn. New peephole to merge adjacent OCs.
4465 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
4466 transform Q->Q alternatives to *xc pattern.
4467 ("*xc"): New insn. New peephole to merge adjacent XCs.
4468 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
4469
4470 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
4471
4472 * gimplify.c (gimple_push_condition): Make sure that we don't
4473 have any saved condition cleanup if we were at the top level.
4474
4475 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
4476
4477 * config/frv/frv.md (*adddi3_internal): Change name to...
4478 (adddi3): ...replacing the exisiting define_expand. Combine
4479 alternatives. Fix the range of the constant constraints ('J' instead
4480 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
4481 to extract the lower and upper halves of the DImode operands.
4482 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
4483 (adddi3_lower): Fix the range of the constant constraints and
4484 remove the bogus operands[2] check.
4485 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
4486 operand 2. Use addxi to handle constant operands.
4487 (subdi3_lower, subdi3_upper): Don't handle constant operands.
4488
4489 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
4490
4491 * gengtype-lex.l: Add commented } & ) characters to unconfuse
4492 editor's paren matching. Allow #define inside a struct.
4493
4494 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
4495
4496 PR middle-end/17703
4497 part of PR c++/17657
4498 * fold-const.c (fold_build_cleanup_point_expr): New function.
4499 * tree.h (fold_build_cleanup_point_expr): Prototype.
4500
4501 2004-10-10 Eric Christopher <echristo@redhat.com>
4502
4503 * dwarf2out.c: Move attribute to subprogram declaration
4504 instead of subroutine type.
4505
4506 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
4507
4508 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
4509 hoist_insn_after, and hoist_insn_to_edge.
4510 * rtl.h: Remove the prototypes for reg_referenced_between_p,
4511 no_jumps_between_p, and insn_dependent_p.
4512 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
4513 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
4514 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
4515 hoist_insn_to_edge): Remove.
4516
4517 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
4518
4519 PR c/17881
4520 * c-decl.c (grokparms): Don't warn for parameters of incomplete
4521 type in declarations that are not definitions except for the case
4522 of parameters of void type.
4523
4524 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
4525
4526 * tree-cfg.c: Fix comment typos.
4527
4528 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
4529
4530 PR c/17301
4531 * builtins.c (expand_builtin_va_start): Check for too few
4532 arguments to va_start.
4533
4534 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
4535
4536 PR c/17189
4537 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
4538 fields a pedwarn. Pedwarn here for unnamed structs/unions if
4539 pedantic.
4540 * c-parse.in (component_decl): Don't pedwarn here for unnamed
4541 fields.
4542
4543 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
4544
4545 PR tree-optimization/17906
4546 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
4547 copy non-gimple reg arguments.
4548
4549 2004-10-09 Roger Sayle <roger@eyesopen.com>
4550
4551 PR rtl-optimization/17853
4552 * simplify-rtx.c (simplify_relational_operation): Correct comment.
4553 Reorganize handling of comparison operations with floating point
4554 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
4555 Likewise, introduce support for comparison operations with vector
4556 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
4557
4558 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
4559 * doc/tm.texi: Likewise.
4560
4561 2004-10-09 Steven Bosscher <stevenb@suse.de>
4562
4563 * regs.h (struct reg_info_def): Remove the last_node_uid and
4564 changes_mode fields.
4565 (REGNO_LAST_NOTE_UID): Don't define.
4566 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
4567 * regmove.c (copy_src_to_dest): Likewise.
4568
4569 2004-10-09 Roger Sayle <roger@eyesopen.com>
4570
4571 PR middle-end/17894
4572 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
4573 relational comparison operator op needs to be swapped/reversed when
4574 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
4575
4576 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
4577
4578 PR tree-opt/17902
4579 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
4580 instead of bsi_start.
4581 (value_replacement): Likewise.
4582 (abs_replacement): Likewise
4583
4584 2004-10-09 Steven Bosscher <stevenb@suse.de>
4585
4586 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
4587 (expand_gimple_cond_expr, expand_gimple_tailcall,
4588 expand_gimple_basic_block): Use it to dump RTL for each stmt.
4589 (tree_expand_cfg): Announce full RTL function dump.
4590 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
4591 not the graph version.
4592 * tree-pretty-print.c (dump_generic_node): Allow empty statements
4593 in the arms of a COND_EXPR for lowered nodes.
4594
4595 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
4596
4597 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
4598 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
4599 strtoufix16, strtoufix32, strtoufix64): Declare.
4600
4601 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
4602
4603 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
4604 for an out-of-range floating point constant.
4605 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
4606 warning if the target format does not support infinities.
4607
4608 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
4609
4610 * emit-rtl.c (last_label_num, base_label_num): Remove.
4611 (max_label_num): Always return label_num.
4612 (set_new_last_label_num, restore_emit_status): Remove.
4613 (init_emit): Don't initialize last_label_num.
4614 * function.c (pop_function_context_from): Don't call
4615 restore_emit_status.
4616 * function.h: Remove the prototype for restore_emit_status.
4617 * rtl.h: Remove the prototype for set_new_last_label_num.
4618
4619 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
4620
4621 * stmt.c (expand_decl_init): Remove.
4622 * tree.h: Remove the corresponding prototype.
4623
4624 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
4625
4626 * integrate.c (try_constants, subst_constants, mark_stores):
4627 Remove.
4628 * integrate.h: Remove the prototype for try_constants.
4629
4630 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
4631
4632 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
4633 (convert_for_assignment): Handle ic_argpass_nonproto. Add
4634 comments about its relevance to errors.
4635 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
4636
4637 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
4638
4639 PR c/16999
4640 * c-ppoutput.c (cb_ident): Don't quote string as it is already
4641 quoted.
4642
4643 2004-10-08 Diego Novillo <dnovillo@redhat.com>
4644
4645 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
4646 reference_node_pool.
4647
4648 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
4649
4650 * tree-cfg.c: Fix a comment typo.
4651
4652 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
4653
4654 * config/s390/s390.c (s390_register_info): Don't save fprs for
4655 -msoft-float.
4656 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
4657
4658 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
4659
4660 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
4661 (TARGET_DEFAULT): Use symbolic values.
4662 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
4663 (TARGET_DEFAULT): Use symbolic values.
4664 * config/s390/s390.c (s390_backchain_string): Initialize to
4665 TARGET_DEFAULT_BACKCHAIN.
4666
4667 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4668
4669 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
4670 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
4671 code.
4672 (expand_builtin_strcat): Accept a type parameter.
4673 (fold_builtin_mempcpy): Accept a type and endp parameter.
4674
4675 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
4676 Accept an `exp' instead of an `arglist'.
4677
4678 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
4679
4680 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
4681 reverting my 2004-09-07 patch to use build_int_cst.
4682
4683 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
4684
4685 PR target/17245
4686 * config/sparc/sparc.c (input_operand): Remove redundant code
4687 for handling LO_SUM.
4688 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
4689 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
4690 Otherwise only accept it for TFmode if quad move insns are available.
4691
4692 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
4693
4694 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
4695 common cases will be caught earlier than others.
4696
4697 2004-10-08 Michael Matz <matz@suse.de>
4698
4699 * loop-doloop.c (doloop_optimize): Extend count.
4700
4701 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
4702
4703 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
4704 (prefetch): Convert to expander.
4705
4706 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
4707
4708 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
4709 first argument of CALL.
4710 (tls_local_dynamic): Likewise.
4711
4712 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
4713
4714 * c-typeck.c (enum impl_conv): New.
4715 (convert_for_assignment): Use it. Take tree for function called
4716 instead of its name. Handle ObjC selectors for diagnostics at
4717 start of function. Select diagnostic text within the function
4718 using full sentences for diagnsotics. Use %qE to name functions
4719 in diagnostics.
4720 (convert_arguments, build_modify_expr,
4721 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
4722 callers to convert_for_assignment.
4723 (warn_for_assignment): Remove.
4724
4725 2004-10-08 Nick Clifton <nickc@redhat.com>
4726
4727 * config/sh/symbian.c (symbian_possibly_export_base_class):
4728 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
4729 TYPE_CONTAINS_VPTR_P.
4730
4731 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4732
4733 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
4734 fixed registers form all_used_regs. Update call_really_used_regs.
4735 (CALL_REALLY_USED_REGISTERS): Define.
4736 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
4737 with call_really_used_regs.
4738
4739 2004-10-08 Alan Modra <amodra@bigpond.net.au>
4740
4741 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
4742 for -profile as well as -p and -pg.
4743
4744 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
4745
4746 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
4747
4748 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
4749
4750 * tree-cfg.c (tree_block_forwards_to): Remove.
4751 * tree-flow.h: Remove the corresponding prototype.
4752
4753 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
4754
4755 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
4756 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
4757
4758 2004-10-07 Geoffrey Keating <geoffk@apple.com>
4759
4760 Radar 3813796
4761 * config/rs6000/rs6000.c (rs6000_generate_compare): When
4762 flag_trapping_math is in effect, don't generate subtract
4763 instructions.
4764
4765 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
4766
4767 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
4768 * config/s390/s390.c (s390_narrow_logical_operator): New function.
4769 (s390_extra_constraint_str): Add 'A' constraints.
4770 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
4771 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
4772 (CONSTRAINT_LEN): Likewise.
4773 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
4774 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
4775 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
4776 ("*iordi3"): Add OI alternative and splitter.
4777 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
4778 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
4779 ("*xordi3"): Add XI alternative and splitter.
4780 ("*xorsi3", "*xorhi3"): Likewise.
4781
4782 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
4783
4784 * config/mips/mips.c (mips_function_rodata_section): New function.
4785 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
4786
4787 2004-10-07 Devang Patel <dpatel@apple.com>
4788
4789 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
4790 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
4791 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
4792 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
4793 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
4794 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
4795 UNSPEC_VCONDU_V16QI): New constant defines.
4796 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
4797 vconduv16qi): New patterns.
4798 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
4799 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
4800 (get_vec_cmp_insn): Same.
4801 (get_vsel_insn): Same.
4802 (rs6000_emit_vector_compare): Same.
4803 (rs6000_emit_vector_select): Same.
4804 (INSN_NOT_AVAILABLE): New.
4805
4806 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
4807
4808 PR tree-optimization/17749
4809 * tree-tailcall.c (find_tail_calls): Check that parameter is
4810 a gimple_reg.
4811
4812 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
4813
4814 * config/ia64/ia64.c: Fix a comment typo.
4815
4816 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4817
4818 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
4819
4820 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4821
4822 PR c++/17115
4823 * tree-inline.c (expand_call_inline): Do not warn for functions
4824 marked with attribute noinline.
4825
4826 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4827
4828 PR target/17862
4829 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
4830 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
4831
4832 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
4833 of 0 as 4th argument to pass_by_reference.
4834 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
4835
4836 2004-10-06 Eric Christopher <echristo@redhat.com>
4837
4838 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
4839 attribute.
4840
4841 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
4842
4843 PR target/17770
4844 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
4845
4846 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
4847
4848 PR rtl-optimization/17791
4849 * loop-doloop.c (doloop_modify): Take number of iterations as
4850 argument.
4851 (doloop_optimize): Extend or shorten the number of iterations
4852 when changing mode of counter register.
4853 * loop-iv.c (lowpart_subreg): Export.
4854 * rtl.h (lowpart_subreg): Declare.
4855
4856 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
4857
4858 PR tree-optimization/17806
4859 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
4860 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
4861 flags moved to split_edge.
4862
4863 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4864
4865 PR middle-end/17835
4866 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
4867 before tentatively building the conditional move sequence.
4868
4869 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
4870
4871 PR target/16815
4872 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
4873 check.
4874 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
4875 function_arg_padding.
4876
4877 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
4878
4879 PR bootstrap/17857
4880 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
4881
4882 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
4883
4884 * hooks.c (hook_int_void_1, hook_void_int): Remove.
4885 * hooks.h: Remove the corresponding prototypes.
4886
4887 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
4888
4889 PR middle-end/17849
4890 * tree-nested.c (walk_stmt_info): Add changed field.
4891 (convert_nonlocal_reference): Set changed to when we
4892 change a decl to unnested decl.
4893 <case ADDR_EXPR>: Instead of checking if the immediate part
4894 of the ADDR_EXPR changed, check the field changed.
4895 Use recompute_tree_invarant_for_addr_expr instead of unsetting
4896 TREE_INVARIANT.
4897 (convert_local_reference): Set changed to when we
4898 change a decl to unnested decl.
4899 <case ADDR_EXPR>: Instead of checking if the immediate part
4900 of the ADDR_EXPR changed, check the field changed.
4901 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
4902
4903 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
4904
4905 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
4906 * dwarf2out.c (dwarf2out_init): Remove references to
4907 DWARF2_GENERATE_TEXT_SECTION_LABEL.
4908 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
4909 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
4910
4911 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
4912
4913 * c-typeck.c (convert_arguments): Take expression for called
4914 function rather than its name. Handle ObjC selectors directly
4915 rather than relying on warn_for_assignment to do so. Call warning
4916 directly rather than warn_for_assignment. Use %qE in diagnostics.
4917 Say "argument" rather than "arg" in diagnostics.
4918 (build_function_call): Update call to convert_arguments.
4919
4920 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
4921
4922 PR debug/17787
4923 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
4924 ENUMs specially instead of just saying we do.
4925
4926 2004-10-06 Eric Christopher <echristo@redhat.com>
4927
4928 * dwarf2.h: Sync with include/elf/dwarf2.h
4929
4930 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
4931
4932 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
4933 and TREE_VEC nodes.
4934
4935 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
4936
4937 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
4938 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
4939
4940 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
4941
4942 * lambda-code.c (compute_nest_using_fourier_motzkin): New
4943 function.
4944 (lambda_compute_auxillary_space): Split from here.
4945
4946 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
4947
4948 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
4949 * tree-flow.h: Add prototype.
4950 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
4951 expr_invariant_in_loop.
4952
4953 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
4954
4955 * tree-cfg.c (thread_jumps): Remove a duplicate check for
4956 EXIT_BLOCK_PTR.
4957
4958 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
4959
4960 * config/s390/s390-protos.h (s_imm_operand): Remove.
4961 (s390_pool_operand): Add prototype.
4962 * config/s390/s390.c (general_s_operand): Remove.
4963 (s_imm_operand): Remove.
4964 (s_operand): Merge contents of general_s_operand.
4965 (s390_pool_operand): New function.
4966 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
4967 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
4968 ("*cmpdi_ccu"): Merge Q->Q alternative.
4969 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
4970 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
4971 ("*cli"): Remove.
4972 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
4973 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
4974 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
4975
4976 2004-10-06 Steve Ellcey <sje@cup.hp.com>
4977
4978 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
4979 call ia64_function_arg_boundary.
4980 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
4981 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
4982 (ia64_function_arg_advance): Do not put 128 bit floats into
4983 FP registers.
4984
4985 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4986
4987 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
4988 Accept an expression instead of an arglist.
4989 (expand_builtin_stpcpy): Accept an expression instead of an
4990 arglist.
4991
4992 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4993
4994 PR target/16007
4995 * doc/install.texi (*-*-solaris2*): Mention potential problem
4996 with Sun assembler + GNU linker and C++ programs.
4997 Document status of binutils 2.15 release.
4998
4999 2004-10-06 Jan Hubicka <jh@suse.cz>
5000
5001 * cse.c (cse_main): Kill push/pop context.
5002
5003 2004-10-05 Zack Weinberg <zack@codesourcery.com>
5004
5005 * pretty-print.c: Include tree.h.
5006 (pp_base_prepare_to_format): New function, logic from
5007 text_specifies_location.
5008 (pp_base_format_text): Use gcc_assert.
5009 * pretty-print.h (pp_prepare_to_format): New macro.
5010 (pp_base_prepare_to_format): Prototype.
5011 * diagnostic.c (text_specifies_location): Delete.
5012 (bug_report_request): Delete.
5013 (diagnostic_set_info): Don't call text_specifies_location.
5014 (diagnostic_action_after_output): Put text from
5015 bug_report_request inline here. Use gcc_unreachable.
5016 (diagnostic_report_current_function): Fix comment.
5017 (diagnostic_report_diagnostic): Clarify logic for error recursion.
5018 Call pp_prepare_to_format before diagnostic_starter.
5019 (trim_filename): Use IS_DIR_SEPARATOR.
5020 (fatal_error, internal_error): Use gcc_unreachable.
5021 (error_recursion): Call diagnostic_action_after_output to
5022 issue the bug_report_request message and exit.
5023 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
5024
5025 * c-parse.in: Add list of diagnostic messages to insulate
5026 translation template from version of yacc/bison used to
5027 compile the grammar.
5028
5029 2004-10-06 Alan Modra <amodra@bigpond.net.au>
5030
5031 PR 16406
5032 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
5033
5034 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5035
5036 * basic-block.h: Remove the prototype for
5037 flow_preorder_transversal_compute.
5038 * cfganal.c (dfst_node): Remove.
5039 (flow_preorder_transversal_compute): Likewise.
5040 * rtl.h: Remove the prototype for get_jump_table_offset.
5041 * rtlanal.c (get_jump_table_offset): Remove.
5042
5043 2004-10-05 Richard Henderson <rth@redhat.com>
5044
5045 PR 17756
5046 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
5047
5048 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
5049
5050 PR bootstrap/17817
5051 * Makefile.in: Stage the build directory too.
5052
5053 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
5054
5055 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
5056
5057 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
5058 (frv_emit_move): Same.
5059
5060 * config/frv/frv.c (frv_emit_move): New.
5061 (frv_legitimize_address): New.
5062
5063 * config/frv/frv.md ("movsi"): Call frv_emit_move.
5064 ("movqi"): Same.
5065 ("movhi"): Same.
5066 ("movdi"): Same.
5067 ("movsf"): Same.
5068 ("movdf"): Same.
5069
5070 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
5071
5072 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
5073 system headers.
5074
5075 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
5076
5077 * c-decl.c (pushdecl): When an extern declaration at block scope
5078 refers to a visible entity with internal linkage, use the old DECL
5079 rather than the new one.
5080
5081 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5082
5083 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
5084 comments.
5085
5086 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5087
5088 * tree-cfg.c (thread_jumps): Remove a duplicate check for
5089 an infinite loop.
5090
5091 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5092
5093 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
5094 of FOR_BB_BETWEEN. Remove a useless check for unreachable
5095 blocks.
5096
5097 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5098
5099 * tree-cfg.c (cleanup_tree_cfg): Don't call
5100 delete_unreachable_blosk() after thread_jumps().
5101 (thread_jumps): Always remove basic blocks as they become
5102 unreachable.
5103
5104 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5105
5106 * tree-cfg.c (cleanup_tree_cfg): Remove variable
5107 something_changed. Simplify the while loop.
5108
5109 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5110
5111 * builtins.c (expand_builtin_memmove): Delete duplicate code
5112 and accept a tree type for the result.
5113 (expand_builtin_bcopy): Accept a tree type for the result.
5114 (fold_builtin_memmove): Accept an arglist and tree type for
5115 the result.
5116
5117 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5118
5119 * config/s390/s390.c (s390_dump_pool): Remove return value.
5120 Use gen_pool_align, gen_pool_section_start/end instead of
5121 gen_pool_start/end_31/64.
5122 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
5123 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
5124 ("pool_start_31", "pool_end_31"): Remove.
5125 ("pool_start_64", "pool_end_64"): Likewise.
5126 ("pool_align", "pool_section_start", "pool_section_end": New insns.
5127
5128 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
5129 (TARGET_CANNOT_COPY_INSN_P): Define.
5130 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
5131 (struct constant_pool): New member 'execute'.
5132 (s390_add_execute, s390_find_execute): New functions.
5133 (s390_execute_label, s390_execute_target): Likewise.
5134 (s390_dump_pool): Output in-pool execute target templates.
5135 (s390_dump_execute): New function.
5136 (s390_alloc_pool, s390_free_pool): Handle execute templates.
5137 (s390_mainpool_start, s390_mainpool_finish): Likewise.
5138 (s390_chunkify_start, s390_chunkify_finish): Likewise.
5139 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
5140 ("*execute"): New insn pattern.
5141 ("movmem_short", "*movmem_short"): Use splitters to generate
5142 explicit execute pattern, remove embedded execute.
5143 ("clrmem_short", "*clrmem_short"): Likewise.
5144 ("cmpmem_short", "*cmpmem_short"): Likewise.
5145
5146 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
5147
5148 * tree-ssa.c (verify_ssa): Verify phi arguments only
5149 contain renamed names.
5150
5151 2004-10-05 Alan Modra <amodra@bigpond.net.au>
5152
5153 * config/rs6000/linux.h: Formatting, whitespace.
5154 * config/rs6000/linux64.h: Likewise.
5155 * config/rs6000/rs6000-protos.h: Likewise.
5156 * config/rs6000/rs6000.c: Likewise.
5157 (easy_vector_splat_const): Add fall thru comments.
5158 (output_vec_const_move): Likewise.
5159
5160 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
5161
5162 * Makefile.in: Update -Wno-error exceptions for move to build dir.
5163
5164 2004-10-05 Chao-Ying Fu <fu@mips.com>
5165 Richard Sandiford <rsandifo@redhat.com>
5166
5167 * doc/invoke.texi (-mpaired-single): Link to the new description of the
5168 built-in functions. Document dependencies.
5169 (-mips3d): Add link here too.
5170 * doc/extend.texi (MIPS Paired-Single Support): New section.
5171
5172 2004-10-04 Chao-ying Fu <fu@mips.com>
5173
5174 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
5175
5176 2004-10-04 Diego Novillo <dnovillo@redhat.com>
5177
5178 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
5179 Initialize OPT_STATS to 0.
5180
5181 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
5182
5183 * tree-data-ref.c: Fix comment typos.
5184
5185 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
5186
5187 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
5188 the predicate cannot be computed, don't initialize the result to
5189 false.
5190
5191 2004-10-01 Eric Christopher <echristo@redhat.com>
5192
5193 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
5194 locally defined enum.
5195 * dwarf2out.c (add_calling_convention_attribute): Don't
5196 emit DW_CC_normal.
5197
5198 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
5199
5200 PR c/17178, PR c/17820
5201 * c-decl.c (pop_scope): Do not warn about unused static
5202 variables as they warned in the middle-end.
5203
5204 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5205
5206 * builtins.c (expand_builtin_memcpy): Delete duplicate code
5207 and make the first parameter the expression not the arglist.
5208
5209 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
5210
5211 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
5212 as valid modes to expand address expressions.
5213
5214 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
5215
5216 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
5217 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
5218 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
5219 code formatting conventions.
5220
5221 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
5222
5223 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
5224
5225 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
5226
5227 PR tree-optimization/16632
5228 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
5229 fold (A & C) == D into 0, fold ~C. Similarly, for the case
5230 where | is used instead of &.
5231
5232 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
5233
5234 * ginclude/stddef.h: Fix a comment typo.
5235
5236 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5237
5238 PR target/17443
5239 * config.gcc (i?86-*-solaris2*): Restore correct logic
5240 for --enable-threads option.
5241 (sparc64-*-solaris2*): Likewise.
5242 (sparc-*-solaris2*): Likewise.
5243
5244 2004-10-03 Alan Modra <amodra@bigpond.net.au>
5245
5246 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
5247 (OS_MISSING_POWERPC64): Move, and comment.
5248 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
5249 (OS_MISSING_POWERPC64): Move, and comment.
5250
5251 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
5252
5253 * arm.c (output_call_mem): Add missing \t.
5254
5255 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5256
5257 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
5258 expand_builtin_strncmp): Delete duplicate code.
5259
5260 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
5261
5262 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
5263 take check-base and -limit arguments.
5264 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
5265 check ranges for ARRAY_REF and COMPONENT_REF.
5266 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
5267 instrumentation.
5268
5269 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
5270
5271 * c-objc-common.c (c_tree_printer): Correct description of %E.
5272 Don't fall through after printing an expression.
5273
5274 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
5275
5276 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
5277
5278 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
5279
5280 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
5281 delete_unrechable_blocks() only when necessary.
5282
5283 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
5284
5285 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
5286 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
5287 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
5288 __gthread_recursive_mutex_unlock): New functions.
5289
5290 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
5291
5292 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
5293 * config/s390/tpf-eh.c: Remove file.
5294 * config/s390/tpf-unwind.h: New file.
5295 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
5296 (MD_UNWIND_SUPPORT): Define.
5297
5298 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
5299
5300 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
5301
5302 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
5303
5304 * config/s390/s390-protos.h (s390_comparison): Add prototype.
5305 * config/s390/s390.c (s390_comparison): New function.
5306 (s390_branch_condition_mask): Return -1 for invalid comparisons.
5307 (s390_branch_condition_mnemonic): Assert valid comparison.
5308 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
5309 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
5310 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
5311 s390_comparison instead of comparison_operator.
5312
5313 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
5314 ("cmpmemdi"): Remove.
5315 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
5316 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
5317 ("cmpint_si"): Rename to ...
5318 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
5319 ("cmpint_di", "*cmpint_di"): Likewise.
5320 * config/s390/s390.c (s390_canonicalize_comparison): Remove
5321 redundant UNSPEC_CMPINT conversions.
5322 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
5323
5324 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
5325
5326 * collect2.c (COLLECT_PARSE_FLAG): Remove.
5327 (main): Remove a reference to COLLECT_PARSE_FLAG
5328 * system.h: Poison COLLECT_PARSE_FLAG.
5329 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
5330
5331 2004-10-01 Paul Brook <paul@codesourcery.com>
5332
5333 * config/arm/crti.asm: Give _init and _fini function type.
5334
5335 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
5336
5337 * common.opt (ftree-loop-ivcanon): Enable by default.
5338 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5339 Enable complete loop unrolling.
5340 (canonicalize_induction_variables, tree_unroll_loops_completely):
5341 Reset scev info.
5342
5343 2004-10-01 Paul Brook <paul@codesourcery.com>
5344
5345 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
5346 not register number.
5347 (thumb_find_work_register): Search full register range.
5348
5349 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
5350
5351 PR tree-opt/17343
5352 * tree-cfg.c (group_case_labels): Get the label and not
5353 the case expr for the default case.
5354 When the label we looking at is the default, decrement the
5355 new_size.
5356
5357 2004-10-01 Jan Hubicka <jh@suse.cz>
5358
5359 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
5360 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5361 * toplev.h (tree_rest_of_compilation): Update prototype.
5362 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
5363
5364 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
5365
5366 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
5367 cleanup_control_flow() out of the while loop.
5368
5369 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
5370
5371 * tree-vectorizer.c (vectorizable_operation): Fail unless
5372 the mode for the vector type is indeed a vector mode.
5373
5374 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
5375
5376 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
5377 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
5378 of convert.
5379 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
5380 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
5381 follow_ssa_edge_in_rhs): Ditto.
5382 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
5383 (dump_iv): Dump base_object.
5384 (dump_use, dump_cand): Use dump_iv.
5385 (determine_base_object): New function.
5386 (alloc_iv): Initialize base_object field.
5387 (record_use): Clear the ssa_name field of iv.
5388 (get_computation_cost_at): Do not use difference of addresses of
5389 two different objects.
5390 (may_eliminate_iv): Do not require the loop to have just single exit.
5391 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
5392 (nonzero_p): New function.
5393 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
5394 tree_simplify_using_condition, simplify_using_initial_conditions,
5395 loop_niter_by_eval, find_loop_niter_by_eval,
5396 estimate_numbers_of_iterations_loop, compare_trees,
5397 upper_bound_in_type, lower_bound_in_type,
5398 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
5399 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
5400 instead of integer_(non)zerop.
5401
5402 2004-10-01 Jakub Jelinek <jakub@redhat.com>
5403
5404 Revert
5405 2004-09-29 Jakub Jelinek <jakub@redhat.com>
5406
5407 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
5408 and TI_VA_LIST_FPR_COUNTER_FIELD.
5409 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
5410 * tree-pass.h (pass_stdarg): Add.
5411 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
5412 * tree-stdarg.c: New file.
5413 * Makefile.in (OBJS-common): Add tree-stdarg.o.
5414 (tree-stdarg.o): Add dependencies.
5415 * function.h (struct function): Add va_list_gpr_size and
5416 va_list_fpr_size fields.
5417 * function.c (allocate_struct_function): Initialize them.
5418
5419 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
5420 va_list_{g,f}pr_counter_field.
5421 (ix86_setup_incoming_varargs): Don't do anything if reg_save
5422 area will not be used. Only save registers that tree-stdarg.c
5423 detected they need saving.
5424 (ix86_va_start): Don't set up fields that won't be used.
5425
5426 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
5427 va_list_{g,f}pr_counter_field.
5428 (setup_incoming_varargs): Don't do anything if reg_save
5429 area will not be used. Only save registers that tree-stdarg.c
5430 detected they need saving.
5431 (rs6000_va_start): Don't set up fields that won't be used.
5432
5433 2004-09-30 Eric Christopher <echristo@redhat.com>
5434
5435 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
5436 sh abi.
5437 * dwarf2out.c (add_calling_convention_attribute): New function.
5438 (gen_subroutine_type_die): Use.
5439 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
5440 * target.h (gcc_target): Add dwarf_calling_convention.
5441 * hooks.c (hook_int_tree_0): New function.
5442 * hooks.h: Prototype.
5443 * config/sh/sh.c: Include dwarf2.h.
5444 (sh_dwarf_calling_convention): New function.
5445 (TARGET_DWARF_CALLING_CONVENTION): Use.
5446 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
5447
5448 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5449
5450 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
5451 expand_builtin_strrchr, expand_builtin_strpbrk,
5452 expand_builtin_strncat, expand_builtin_strspn,
5453 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
5454 code.
5455
5456 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5457
5458 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
5459 prototype.
5460 (s390_logical_operator_ok_p): Likewise.
5461 * config/s390/s390.c (s390_expand_logical_operator): New function.
5462 (s390_logical_operator_ok_p): Likewise.
5463 * config/s390/s390.md ("anddi3"): New expander.
5464 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
5465 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
5466 ("andsi3"): Use s390_expand_logical_operator.
5467 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
5468 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
5469 ("andhi3"): New expander.
5470 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
5471 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
5472 ("andqi3"): New expander.
5473 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
5474 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
5475 ("iordi3"): New expander.
5476 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
5477 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
5478 ("iorsi3"): Use s390_expand_logical_operator.
5479 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
5480 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
5481 ("iorhi3"): New expiorer.
5482 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
5483 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
5484 ("iorqi3"): New expiorer.
5485 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
5486 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
5487 ("xordi3"): New expander.
5488 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
5489 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
5490 ("xorsi3"): New expander.
5491 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
5492 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
5493 ("xorhi3"): New expander.
5494 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
5495 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
5496 ("xorqi3"): New expander.
5497 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
5498 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
5499
5500 2004-09-30 Roger Sayle <roger@eyesopen.com>
5501
5502 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
5503 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
5504 machine mode as the result.
5505
5506 2004-09-30 Ben Elliston <bje@au.ibm.com>
5507
5508 PR bootstrap/17761
5509 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
5510 FOR_EACH_EDGE macros.
5511
5512 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
5513
5514 * c-tree.h (readonly_error): Remove.
5515 * c-typeck (enum lvalue_use): New.
5516 (lvalue_or_else, readonly_error): Use it. All callers changed.
5517 (readonly_error): Make static.
5518
5519 2004-09-30 Jan Hubicka <jh@suse.cz>
5520
5521 PR debug/13974
5522 * cfgrtl.c (try_redirect_by_replacing_jump,
5523 force_nonfallthru_and_redirect, commit_one_edge_insertion,
5524 cfg_layout_merge_blocks): Do not attach any line number information
5525 to newly inserted instructions.
5526 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
5527 emit_insn_*_noloc.
5528 (emit_*insn_before, emit_insn*_after): New.
5529 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
5530 existing locators.
5531 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
5532 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
5533
5534 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5535
5536 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
5537 (s390_return_address_offset): Remove.
5538 (s390_can_eliminate): Add prototype.
5539 (s390_initial_elimination_offset): Add prototype.
5540 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
5541 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
5542 * config/s390/s390.c (s390_arg_frame_offset): Remove.
5543 (s390_return_address_offset): Remove.
5544 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
5545 (struct machine_function): New member split_branches_pending_p.
5546 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
5547 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
5548 (s390_optimize_prologue): Remove base_used argument. Call
5549 s390_update_frame_layout instead of s390_register_info. Handle
5550 prologue/epilogue insns that touch only RETURN_REGNUM.
5551 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
5552 (s390_register_info): Remove base_used and return_addr_used
5553 arguments, compute special register usage inline. Return live
5554 register data to caller.
5555 (s390_frame_info): Remove arguments, do not call s390_register_info.
5556 (s390_init_frame_layout): New function.
5557 (s390_update_frame_layout): Likewise.
5558 (s390_emit_prologue): Call s390_update_frame_layout; some code
5559 move to there. Do not emit pool placeholder insn if unnecessary.
5560
5561 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5562
5563 * config/s390/s390.c (legitimate_reload_constant_p): Remove
5564 floating point constant workaround.
5565 (s390_secondary_input_reload_class): Handle PLUS reloads
5566 with too-large constant.
5567 (s390_expand_plus_operand): Likewise.
5568 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
5569 ("movsi"): Likewise. Also, remove workaround for non-general
5570 operands.
5571 ("movdf"): Do not call force_const_mem.
5572 ("movsf"): Likewise. Merge expander with *movsf insn.
5573 ("*movsf"): Remove, merge with movsf expander.
5574
5575 2004-09-30 Paul Brook <paul@codesourcery.com>
5576
5577 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
5578 (ENDFILE_SPEC): Define.
5579 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
5580
5581 2004-09-30 Richard Henderson <rth@redhat.com>
5582
5583 * config/alpha/qrnnd.asm: Mark for noexecstack.
5584
5585 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
5586
5587 * protoize.c, tree-cfg.c: Fix comment typos.
5588
5589 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
5590
5591 PR c/17730
5592 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
5593
5594 2004-09-30 Diego Novillo <dnovillo@redhat.com>
5595
5596 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
5597 expressions...
5598 (add_pointed_to_expr): ... here.
5599 Call add_pointed_to_expr for variables with DECL_INITIAL set.
5600 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
5601 pointer variable, if set.
5602
5603 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
5604
5605 * config/sh/sh.c: Follow spelling conventions.
5606
5607 2004-09-29 Richard Henderson <rth@redhat.com>
5608
5609 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
5610 * doc/tm.texi (DWARF_ZERO_REG): New.
5611
5612 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
5613 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
5614 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
5615
5616 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
5617
5618 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
5619 with a PLUS as source operand.
5620 (expand_movstr): Likewise.
5621 (expand_builtin_stpcpy): Likewise.
5622
5623 2004-09-29 Richard Henderson <rth@redhat.com>
5624
5625 PR 17739
5626 * tree-gimple.c (is_gimple_reg): Reject hard registers.
5627 (is_gimple_asm_val): New.
5628 * tree-gimple.h (is_gimple_asm_val): Declare.
5629 * gimplify.c (gimplify_asm_expr): Use it.
5630 * tree-pretty-print.c (print_declaration): Dump hard regs.
5631 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
5632 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
5633 * tree-ssa-pre.c (is_undefined_value): Likewise.
5634 * tree-ssa-copy.c (may_propagate_copy): Likewise.
5635 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
5636 * tree-ssa.c (warn_uninit): Likewise.
5637 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
5638
5639 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
5640
5641 * c-decl.c (merge_decls): Use comptype when comparing
5642 types to decide on DECL_SIZE save of olddecl.
5643
5644 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
5645
5646 * tree.h (INDIRECT_REF_P): New macro.
5647 * alias.c (get_alias_set): Use it
5648 (nonoverlapping_memrefs_p): Ditto.
5649 * emit-rtl.c (mem_expr_equal_p): Ditto.
5650 (set_mem_attributes_minus_bitpos): Ditto.
5651 (is_gimple_addressable): Ditto.
5652 (get_base_address): Ditto.
5653 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
5654 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
5655 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
5656 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
5657 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
5658 (add_address_candidates): Ditto.
5659 (rewrite_address_base): Ditto.
5660
5661 2004-09-30 Ben Elliston <bje@au.ibm.com>
5662
5663 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
5664 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
5665 (rewrite_ssa_into_ssa): Likewise.
5666 * tree-phinodes.c (create_phi_node): Access the number of
5667 predecessor edges using EDGE_COUNT() and not num_preds.
5668
5669 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
5670
5671 PR c/7425
5672 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
5673
5674 2004-09-29 Eric Christopher <echristo@redhat.com>
5675
5676 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
5677
5678 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
5679
5680 * config/cris/cris.md (moverside, movemside): With MEM, make sure
5681 the address is (plus reg mem).
5682
5683 2004-09-29 David Edelsohn <edelsohn@gnu.org>
5684
5685 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
5686
5687 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
5688
5689 * tree.c (make_node_stat): Fix uninitialized warning. Replace
5690 cascaded if ... else if with a switch.
5691
5692 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5693
5694 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
5695
5696 2004-09-29 Jakub Jelinek <jakub@redhat.com>
5697
5698 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
5699 and TI_VA_LIST_FPR_COUNTER_FIELD.
5700 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
5701 * tree-pass.h (pass_stdarg): Add.
5702 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
5703 * tree-stdarg.c: New file.
5704 * Makefile.in (OBJS-common): Add tree-stdarg.o.
5705 (tree-stdarg.o): Add dependencies.
5706 * function.h (struct function): Add va_list_gpr_size and
5707 va_list_fpr_size fields.
5708 * function.c (allocate_struct_function): Initialize them.
5709
5710 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
5711 va_list_{g,f}pr_counter_field.
5712 (ix86_setup_incoming_varargs): Don't do anything if reg_save
5713 area will not be used. Only save registers that tree-stdarg.c
5714 detected they need saving.
5715 (ix86_va_start): Don't set up fields that won't be used.
5716
5717 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
5718 va_list_{g,f}pr_counter_field.
5719 (setup_incoming_varargs): Don't do anything if reg_save
5720 area will not be used. Only save registers that tree-stdarg.c
5721 detected they need saving.
5722 (rs6000_va_start): Don't set up fields that won't be used.
5723
5724 2004-09-29 Jakub Jelinek <jakub@redhat.com>
5725
5726 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
5727 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
5728 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
5729 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
5730 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
5731 ATTR_NONNULL_1_4): New.
5732
5733 2004-09-29 Jakub Jelinek <jakub@redhat.com>
5734
5735 PR tree-optimization/17697
5736 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
5737 cfg if needed.
5738
5739 2004-09-28 Per Bothner <per@bothner.com>
5740
5741 * profile.c (branch_prob): Pass correct value to output_location,
5742 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
5743
5744 2004-09-28 Richard Henderson <rth@redhat.com>
5745
5746 PR 15089
5747 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
5748 * tree-flow.h (may_propagate_copy_into_asm): Declare.
5749 * tree-ssa-ccp.c (replace_uses_in): Use it.
5750 * tree-ssa-dom.c (cprop_operand): Likewise.
5751
5752 2004-09-28 Jeff Law <law@redhat.com>
5753
5754 * tree-ssa-threadupdate.c (create_block_for_threading): Request
5755 that no outgoing edges be left in the duplicate block. Do no
5756 update information on outgoing edges or PHI nodes in target
5757 blocks here.
5758 (remove_ctrl_stmt_and_useless_edges): Renamed from
5759 remove_last_stmt_and_useless_edges. Handle case where the
5760 block is empty or has no control statements. Do not update edge
5761 flags here.
5762 (thread_block): Create a template block rather than copying the
5763 original block every time. Create outgoing edges from the
5764 duplicate blocks and update PHIs at the target of the outgoing
5765 edges here. Fix edge flags for the original block if necessary.
5766 * cfghooks (duplicate_block): No longer assert that the original
5767 block has incoming edges.
5768
5769 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
5770
5771 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
5772 Reg Vars to enforce register allocation with general constraints.
5773 (Explicit Reg Vars): Clarify relation to asm statements.
5774 (Local Reg Vars): Similar.
5775
5776 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
5777
5778 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
5779 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
5780 build_control_flow, new_edge): Remove.
5781 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
5782 (bitlst, bitlst_table_last, bitlst_table): Remove.
5783 (bblst): Store basic_block pointer instead of block index.
5784 (bblst_table): Likewise.
5785 (edgelst): Store edge pointer instead of edge index.
5786 (edgelst_table, edgelst_last): New variables.
5787 (extract_bitlst): Rename to ...
5788 (extract_edgelst): ... this. Return edge pointers, not indices.
5789 (split_edges): Update call.
5790 (rgn_edges): Store edge pointers instead of indices.
5791 (edge_to_bit): Remove.
5792 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
5793 (SET_EDGE_TO_BIT): New macro.
5794 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
5795 (find_rgns): Remove edge_list parameter. Traverse standard CFG
5796 data structures instead of haifa_edge et al. Use edge pointers
5797 instead of edge indices everywhere.
5798 (compute_dom_prob_ps): Use standard CFG data structures. Account
5799 for exit edges.
5800 (compute_trg_info): Likewise.
5801 (propagate_deps): Likewise.
5802 (debug_candidate): Account for bblst data structure change.
5803 (check_live_1, update_live_1, is_pfree): Likewise.
5804 (IS_REACHABLE): Use standard CFG data structures.
5805 (init_ready_list): Update bblst_table/edgelst_table allocation.
5806 (schedule_region): Update alloc/cleanup code to data structure
5807 changes. Use edge->aux to store per-region edge index.
5808 (init_regions): No longer call build_control_flow. Do not
5809 create edge list any more.
5810
5811 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
5812
5813 * cse.c (cse_insn): Avoid creating direct non-local jumps.
5814 * combine.c (can_combine_p): Likewise.
5815 * local-alloc. (update_equiv_regs): Likewise.
5816
5817 2004-09-28 Richard Henderson <rth@redhat.com>
5818
5819 PR 17531
5820 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
5821 Don't check VOIDmode here. Force PLUS operands to common type.
5822 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
5823 Pmode if given a non pointer type.
5824
5825 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5826
5827 PR 17531
5828 * optabs.c (expand_binop): Force constants to the correct mode.
5829
5830 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
5831
5832 * config/s390/s390.c (s390_adjust_cost): Remove.
5833 (TARGET_SCHED_ADJUST_COST): Do not redefine.
5834 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
5835 * config/s390/s390.md ("main_pool"): Use "larl" type
5836 attribute if TARGET_CPU_ZARCH.
5837
5838 2004-09-28 Jakub Jelinek <jakub@redhat.com>
5839
5840 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
5841 variable.
5842
5843 2004-09-28 Diego Novillo <dnovillo@redhat.com>
5844
5845 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
5846 name to the pass.
5847
5848 2004-09-28 Steven Bosscher <stevenb@suse.de>
5849
5850 * common.opt (flag_gcse_sm): Disable by default.
5851 (flag_gcse_las): Likewise.
5852 (flag_web): Likewise. Create from this file.
5853 * flags.h: Remove flag_web declaration.
5854 * toplev.c (flag_web): Likewise.
5855 (process_options): Never set flag_web.
5856
5857 2004-09-28 Steven Bosscher <stevenb@suse.de>
5858
5859 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
5860 * tree-ssa-propagate.c: Include vec.h.
5861 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
5862 instead of varrays.
5863 (cfg_blocks_add): Assert the block is not already in the worklist.
5864 Update uses of interesting_ssa_edges and varying_ssa_edges.
5865 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
5866 ssa_propagate): Likewise.
5867
5868 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
5869
5870 PR c/16409
5871 * c-decl.c (start_decl): Check for initializing incomplete array
5872 of VLAs.
5873 (build_compound_literal): Check for TYPE being error_mark_node.
5874 * c-parse.in (primary): Check for VLA compound literals.
5875
5876 2004-09-28 Diego Novillo <dnovillo@redhat.com>
5877
5878 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
5879 with --disable-checking.
5880
5881 2004-09-28 Devang Patel <dpatel@apple.com>
5882
5883 * tree-pretty-print.c (dump_generic_node): Print vector types.
5884
5885 2004-09-28 Nick Clifton <nickc@redhat.com>
5886
5887 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
5888 invocation of the function sh_init_cumulative_args.
5889 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
5890 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
5891 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
5892 * config/sh/sh.c (sh_init_cumulative_args): New function based
5893 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
5894 heuristic added to determine the setting of force_mem when a
5895 library function is being called.
5896
5897 2004-09-28 Diego Novillo <dnovillo@redhat.com>
5898
5899 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
5900 Skip constant arguments.
5901
5902 2004-09-28 Diego Novillo <dnovillo@redhat.com>
5903
5904 * tree-ssa-alias.c (create_name_tags): If PTR points to a
5905 volatile type, mark the tag volatile.
5906 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
5907 volatile.
5908
5909 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
5910
5911 * tree.def (vec_cond_expr): Fix. Change 'e'
5912 to tcc_expression.
5913
5914 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
5915
5916 * basic-block.h: Fix a comment typo.
5917
5918 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
5919
5920 * optabs.c, optabs.h: Fix comment typos.
5921
5922 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
5923
5924 * config/sparc/sparc.md (call_address_struct_value_sp32):
5925 Properly mask the immediate field of the 'unimp' instruction.
5926 (call_symbolic_struct_value_sp32): Likewise.
5927
5928 2004-09-28 Ben Elliston <bje@au.ibm.com>
5929 Steven Bosscher <stevenb@suse.de>
5930 Andrew Pinski <pinskia@physics.uc.edu>
5931
5932 Merge from edge-vector-branch:
5933 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
5934 (struct edge_def): Remove pred_next, succ_next members.
5935 (struct basic_block_def): Remove pred, succ members. Add preds
5936 and succs members of type VEC(edge).
5937 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
5938 (BRANCH_EDGE): Likewise.
5939 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
5940 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
5941 (edge_iterator): New.
5942 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
5943 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
5944 (FOR_EACH_EDGE): New.
5945 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
5946 where applicable.
5947 (rotate_loop): Likewise.
5948 (find_traces_1_route): Likewise.
5949 (bb_to_key): Likewise.
5950 (connect_traces): Likewise.
5951 (copy_bb_p): Likewise.
5952 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
5953 (add_labels_and_missing_jumps): Likewise.
5954 (fix_up_fall_thru_edges): Likewise.
5955 (find_jump_block): Likewise.
5956 (fix_crossing_conditional_branches): Likewise.
5957 (fix_crossing_unconditional_branches): Likewise.
5958 (add_reg_crossing_jump_notes): Likewise.
5959 * bt-load.c (augment_live_range): Likewise.
5960 * cfg.c (clear_edges): Likewise.
5961 (unchecked_make_edge): Likewise.
5962 (cached_make_edge): Likewise.
5963 (make_single_succ_edge): Likewise.
5964 (remove_edge): Likewise.
5965 (redirect_edge_succ_nodup): Likewise.
5966 (check_bb_profile): Likewise.
5967 (dump_flow_info): Likewise.
5968 (alloc_aux_for_edges): Likewise.
5969 (clear_aux_for_edges): Likewise.
5970 (dump_cfg_bb_info): Likewise.
5971 * cfganal.c (forwarder_block_p): Likewise.
5972 (can_fallthru): Likewise.
5973 (could_fall_through): Likewise.
5974 (mark_dfs_back_edges): Likewise.
5975 (set_edge_can_fallthru_flag): Likewise.
5976 (find_unreachable_blocks): Likewise.
5977 (create_edge_list): Likewise.
5978 (verify_edge_list): Likewise.
5979 (add_noreturn_fake_exit_edges): Likewise.
5980 (connect_infinite_loops_to_exit): Likewise.
5981 (flow_reverse_top_sort_order_compute): Likewise.
5982 (flow_depth_first_order_compute): Likewise.
5983 (flow_preorder_transversal_compute): Likewise.
5984 (flow_dfs_compute_reverse_execute): Likewise.
5985 (dfs_enumerate_from): Likewise.
5986 (compute_dominance_frontiers_1): Likewise.
5987 * cfgbuild.c (make_edges): Likewise.
5988 (compute_outgoing_frequencies): Likewise.
5989 (find_many_sub_basic_blocks): Likewise.
5990 (find_sub_basic_blocks): Likewise.
5991 * cfgcleanup.c (try_simplify_condjump): Likewise.
5992 (thread_jump): Likewise.
5993 (try_forward_edges): Likewise.
5994 (merge_blocks_move): Likewise.
5995 (outgoing_edges_match): Likewise.
5996 (try_crossjump_to_edge): Likewise.
5997 (try_crossjump_bb): Likewise.
5998 (try_optimize_cfg): Likewise.
5999 (merge_seq_blocks): Likewise.
6000 * cfgexpand.c (expand_gimple_tailcall): Likewise.
6001 (expand_gimple_basic_block): Likewise.
6002 (construct_init_block): Likewise.
6003 (construct_exit_block): Likewise.
6004 * cfghooks.c (verify_flow_info): Likewise.
6005 (dump_bb): Likewise.
6006 (delete_basic_block): Likewise.
6007 (split_edge): Likewise.
6008 (merge_blocks): Likewise.
6009 (make_forwarder_block): Likewise.
6010 (tidy_fallthru_edges): Likewise.
6011 (can_duplicate_block_p): Likewise.
6012 (duplicate_block): Likewise.
6013 * cfglayout.c (fixup_reorder_chain): Likewise.
6014 (fixup_fallthru_exit_predecessor): Likewise.
6015 (can_copy_bbs_p): Likewise.
6016 (copy_bbs): Likewise.
6017 * cfgloop.c (flow_loops_cfg_dump): Likewise.
6018 (flow_loop_entry_edges_find): Likewise.
6019 (flow_loop_exit_edges_find): Likewise.
6020 (flow_loop_nodes_find): Likewise.
6021 (mark_single_exit_loops): Likewise.
6022 (flow_loop_pre_header_scan): Likewise.
6023 (flow_loop_pre_header_find): Likewise.
6024 (update_latch_info): Likewise.
6025 (canonicalize_loop_headers): Likewise.
6026 (flow_loops_find): Likewise.
6027 (get_loop_body_in_bfs_order): Likewise.
6028 (get_loop_exit_edges): Likewise.
6029 (num_loop_branches): Likewise.
6030 (verify_loop_structure): Likewise.
6031 (loop_latch_edge): Likewise.
6032 (loop_preheader_edge): Likewise.
6033 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6034 (expected_loop_iterations): Likewise.
6035 * cfgloopmanip.c (remove_bbs): Likewise.
6036 (fix_bb_placement): Likewise.
6037 (fix_irreducible_loops): Likewise.
6038 (remove_path): Likewise.
6039 (scale_bbs_frequencies): Likewise.
6040 (loopify): Likewise.
6041 (unloop): Likewise.
6042 (fix_loop_placement): Likewise.
6043 (loop_delete_branch_edge): Likewise.
6044 (duplicate_loop_to_header_edge): Likewise.
6045 (mfb_keep_just): Likewise.
6046 (create_preheader): Likewise.
6047 (force_single_succ_latches): Likewise.
6048 (loop_split_edge_with): Likewise.
6049 (create_loop_notes): Likewise.
6050 * cfgrtl.c (rtl_split_block): Likewise.
6051 (rtl_merge_blocks): Likewise.
6052 (rtl_can_merge_blocks): Likewise.
6053 (try_redirect_by_replacing_jump): Likewise.
6054 (force_nonfallthru_and_redirect): Likewise.
6055 (rtl_tidy_fallthru_edge): Likewise.
6056 (commit_one_edge_insertion): Likewise.
6057 (commit_edge_insertions): Likewise.
6058 (commit_edge_insertions_watch_calls): Likewise.
6059 (rtl_verify_flow_info_1): Likewise.
6060 (rtl_verify_flow_info): Likewise.
6061 (purge_dead_edges): Likewise.
6062 (cfg_layout_redirect_edge_and_branch): Likewise.
6063 (cfg_layout_can_merge_blocks_p): Likewise.
6064 (rtl_flow_call_edges_add): Likewise.
6065 * cse.c (cse_cc_succs): Likewise.
6066 * df.c (hybrid_search): Likewise.
6067 * dominance.c (calc_dfs_tree_nonrec): Likewise.
6068 (calc_dfs_tree): Likewise.
6069 (calc_idoms): Likewise.
6070 (recount_dominator): Likewise.
6071 * domwalk.c (walk_dominator_tree): Likewise.
6072 * except.c (emit_to_new_bb_before): Likewise.
6073 (connect_post_landing_pads): Likewise.
6074 (sjlj_emit_function_enter): Likewise.
6075 (sjlj_emit_function_exit): Likewise.
6076 (finish_eh_generation): Likewise.
6077 * final.c (compute_alignments): Likewise.
6078 * flow.c (calculate_global_regs_live): Likewise.
6079 (initialize_uninitialized_subregs): Likewise.
6080 (init_propagate_block_info): Likewise.
6081 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6082 * gcse.c (find_implicit_sets): Likewise.
6083 (bypass_block): Likewise.
6084 (bypass_conditional_jumps): Likewise.
6085 (compute_pre_data): Likewise.
6086 (insert_insn_end_bb): Likewise.
6087 (insert_store): Likewise.
6088 (remove_reachable_equiv_notes): Likewise.
6089 * global.c (global_conflicts): Likewise.
6090 (calculate_reg_pav): Likewise.
6091 * graph.c (print_rtl_graph_with_bb): Likewise.
6092 * ifcvt.c (mark_loop_exit_edges): Likewise.
6093 (merge_if_block): Likewise.
6094 (find_if_header): Likewise.
6095 (block_jumps_and_fallthru_p): Likewise.
6096 (find_if_block): Likewise.
6097 (find_cond_trap): Likewise.
6098 (block_has_only_trap): Likewise.
6099 (find_if_case1): Likewise.
6100 (find_if_case_2): Likewise.
6101 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
6102 (perfect_nestify): Likewise.
6103 * lcm.c (compute_antinout_edge): Likewise.
6104 (compute_laterin): Likewise.
6105 (compute_available): Likewise.
6106 (compute_nearerout): Likewise.
6107 * loop-doloop.c (doloop_modify): Likewise.
6108 * loop-init.c (loop_optimizer_init): Likewise.
6109 * loop-invariant.c (find_exits): Likewise.
6110 * loop-iv.c (simplify_using_initial_values): Likewise.
6111 (check_simple_exit): Likewise.
6112 (find_simple_exit): Likewise.
6113 * loop-unroll.c (peel_loop_completely): Likewise.
6114 (unroll_loop_constant_iterations): Likewise.
6115 (unroll_loop_runtime_iterations): Likewise.
6116 * loop-unswitch.c (may_unswitch_on): Likewise.
6117 (unswitch_loop): Likewise.
6118 * modulo-sched.c (generate_prolog_epilog): Likewise.
6119 (sms_schedule): Likewise.
6120 * postreload-gcse.c (eliminate_partially_redundant_load):
6121 Likewise.
6122 * predict.c (can_predict_insn_p): Likewise.
6123 (set_even_probabilities): Likewise.
6124 (combine_predictions_for_bb): Likewise.
6125 (predict_loops): Likewise.
6126 (estimate_probability): Likewise.
6127 (tree_predict_by_opcode): Likewise.
6128 (tree_estimate_probability): Likewise.
6129 (last_basic_block_p): Likewise.
6130 (propagate_freq): Likewise.
6131 (estimate_loops_at_level): Likewise.
6132 (estimate_bb_frequencies): Likewise.
6133 * profile.c (instrument_edges): Likewise.
6134 (get_exec_counts): Likewise.
6135 (compute_branch_probabilities): Likewise.
6136 (branch_prob): Likewise.
6137 * ra-build.c (live_in): Likewise.
6138 * ra-rewrite.c (rewrite_program2): Likewise.
6139 * ra.c (reg_alloc): Likewise.
6140 * reg-stack.c (reg_to_stack): Likewise.
6141 (convert_regs_entry): Likewise.
6142 (compensate_edge): Likewise.
6143 (convert_regs_1): Likewise,
6144 (convert_regs_2): Likewise.
6145 (convert_regs): Likewise.
6146 * regrename.c (copyprop_hardreg_forward): Likewise.
6147 * reload1.c (fixup_abnormal_edges): Likewise.
6148 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
6149 (sbitmap_insersection_of_preds): Likewise.
6150 (sbitmap_union_of_succs): Likewise.
6151 (sbitmap_union_of_preds): Likewise.
6152 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
6153 (fix_basic_block_boundaries): Likewise.
6154 (sched_ebbs): Likewise.
6155 * sched-rgn.c (build_control_flow): Likewise.
6156 (find_rgns): Likewise.
6157 * tracer.c (find_best_successor): Likewise.
6158 (find_best_predecessor): Likewise.
6159 (tail_duplicate): Likewise.
6160 * tree-cfg.c (make_edges): Likewise.
6161 (make_ctrl_stmt_edges): Likewise.
6162 (make_goto_expr_edges): Likewise.
6163 (tree_can_merge_blocks_p): Likewise.
6164 (tree_merge_blocks): Likewise.
6165 (cfg_remove_useless_stmts_bb): Likewise.
6166 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
6167 (tree_block_forwards_to): Likewise.
6168 (cleanup_control_expr_graph): Likewise.
6169 (find_taken_edge): Likewise.
6170 (dump_cfg_stats): Likewise.
6171 (tree_cfg2vcg): Likewise.
6172 (disband_implicit_edges): Likewise.
6173 (tree_find_edge_insert_loc): Likewise.
6174 (bsi_commit_edge_inserts): Likewise.
6175 (tree_split_edge): Likewise.
6176 (tree_verify_flow_info): Likewise.
6177 (tree_make_forwarder_block): Likewise.
6178 (tree_forwarder_block_p): Likewise.
6179 (thread_jumps): Likewise.
6180 (tree_try_redirect_by_replacing_jump): Likewise.
6181 (tree_split_block): Likewise.
6182 (add_phi_args_after_copy_bb): Likewise.
6183 (rewrite_to_new_ssa_names_bb): Likewise.
6184 (dump_function_to_file): Likewise.
6185 (print_pred_bbs): Likewise.
6186 (print_loop): Likewise.
6187 (tree_flow_call_edges_add): Likewise.
6188 (split_critical_edges): Likewise.
6189 (execute_warn_function_return): Likewise.
6190 (extract_true_false_edges_from_block): Likewise.
6191 * tree-if-conv.c (tree_if_conversion): Likewise.
6192 (if_convertable_bb_p): Likewise.
6193 (find_phi_replacement_condition): Likewise.
6194 (combine_blocks): Likewise.
6195 * tree-into-ssa.c (compute_global_livein): Likewise.
6196 (ssa_mark_phi_uses): Likewise.
6197 (ssa_rewrite_initialize_block): Likewise.
6198 (rewrite_add_phi_arguments): Likewise.
6199 (ssa_rewrite_phi_arguments): Likewise.
6200 (insert_phi_nodes_for): Likewise.
6201 (rewrite_into_ssa): Likewise.
6202 (rewrite_ssa_into_ssa): Likewise.
6203 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
6204 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
6205 (rewrite_trees): Likewise.
6206 * tree-pretty-print.c (dump_bb_header): Likewise.
6207 (dump_implicit_edges): Likewise.
6208 * tree-sra.c (insert_edge_copies): Likewise.
6209 (find_obviously_necessary_stmts): Likewise.
6210 (remove_data_stmt): Likewise.
6211 * tree-ssa-dom.c (thread_across_edge): Likewise.
6212 (dom_opt_finalize_block): Likewise.
6213 (single_incoming_edge_ignoring_loop_edges): Likewise.
6214 (record_equivalences_from_incoming_edges): Likewise.
6215 (cprop_into_successor_phis): Likewise.
6216 * tree-ssa-live.c (live_worklist): Likewise.
6217 (calculate_live_on_entry): Likewise.
6218 (calculate_live_on_exit): Likewise.
6219 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6220 (copy_loop_headers): Likewise.
6221 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
6222 (fill_always_executed_in): Likewise.
6223 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
6224 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
6225 (compute_phi_arg_on_exit): Likewise.
6226 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
6227 (get_loops_exit): Likewise.
6228 (split_loop_exit_edge): Likewise.
6229 (ip_normal_pos): Likewise.
6230 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
6231 Likewise.
6232 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
6233 (replace_phi_with_stmt): Likewise.
6234 (value_replacement): Likewise.
6235 * tree-ssa-pre.c (compute_antic_aux): Likewise.
6236 (insert_aux): Likewise.
6237 (init_pre): Likewise.
6238 * tree-ssa-propagate.c (simulate_stmt): Likewise.
6239 (simulate_block): Likewise.
6240 (ssa_prop_init): Likewise.
6241 * tree-ssa-threadupdate.c (thread_block): Likewise.
6242 (create_block_for_threading): Likewise.
6243 (remove_last_stmt_and_useless_edges): Likewise.
6244 * tree-ssa.c (verify_phi_args): Likewise.
6245 (verify_ssa): Likewise.
6246 * tree_tailcall.c (independent_of_stmt_p): Likewise.
6247 (find_tail_calls): Likewise.
6248 (eliminate_tail_call): Likewise.
6249 (tree_optimize_tail_calls_1): Likewise.
6250 * tree-vectorizer.c (vect_transform_loop): Likewise.
6251 * var-tracking.c (prologue_stack_adjust): Likewise.
6252 (vt_stack_adjustments): Likewise.
6253 (vt_find_locations): Likewise.
6254 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6255 * config/i386/i386.c (ix86_pad_returns): Likewise.
6256 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6257 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6258
6259 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
6260
6261 PR target/16532
6262 * config/sparc/sparc.c (struct machine_function): New field
6263 'leaf_function_p' and 'prologue_data_valid_p'.
6264 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
6265 to conveniently access the above fields.
6266 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
6267 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
6268 of the generic flavor 'current_function_uses_only_leaf_regs'.
6269 (eligible_for_sibcall_delay): Likewise.
6270 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
6271 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
6272 (sparc_asm_function_prologue): Add sanity check for the assumption
6273 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
6274 (sparc_can_use_return_insn_p): New function.
6275 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
6276 (output_restore): Likewise.
6277 (output_sibcall): Likewise.
6278 (sparc_output_mi_thunk): Likewise.
6279 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
6280 * config/sparc/sparc.md (return): New expander.
6281
6282 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
6283
6284 2004-09-27 Mark Mitchell <mark@codesourcery.com>
6285
6286 PR c++/17642
6287 * stor-layout.c (layout_decl): Use fold_convert, not convert.
6288 (bit_from_pos): Likewise.
6289 (byte_from_pos): Likewise.
6290 (pos_from_bit): Likewise.
6291 (normalize_offset): Likewise.
6292 (place_field): Likewise.
6293 (finalize_type_size): Likewise.
6294 (layout_type): Likewise.
6295 * tree.c (build_index_type): Likewise.
6296
6297 2004-09-27 Devang Patel <dpatel@apple.com>
6298
6299 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
6300 * genopinit.c (optabs): New entry for vcond_gen_code and
6301 vcondu_gen_code.
6302 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
6303 (get_rtx_code): New function.
6304 (vector_compare_rtx): New function.
6305 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
6306 (expand_vec_cond_expr_p): New function.
6307 (expand_vec_cond_expr): New function.
6308 (get_vcond_icode): New function.
6309 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
6310 (vcond_gen_code, vcondu_gen_code): Same.
6311
6312 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
6313
6314 * Makefile.in (STAGESTUFF): Split into ...
6315 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
6316 (mostlyclean): Update.
6317 (stage1-start, stage2-start, stage3-start, stage4-start,
6318 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
6319 Move the STAGEMOVESTUFF.
6320
6321 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
6322
6323 * system.h (getpagesize): Return 'int' instead of 'long'.
6324
6325 2004-09-27 Michael Matz <matz@suse.de>
6326
6327 PR bootstrap/17698
6328 PR bootstrap/17702
6329 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
6330 bmp_iter_and_init): Shift by bit_in_word.
6331
6332 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
6333
6334 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
6335 * configure.ac: Don't sinclude it here.
6336 * configure: Regenerate.
6337
6338 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
6339
6340 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
6341 Handle AND pattern
6342
6343 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
6344
6345 PR c/13804
6346 * c-typeck.c (build_component_ref): Name type involved in
6347 diagnostic for structure or union without a member of the given
6348 name.
6349
6350 2004-09-27 DJ Delorie <dj@redhat.com>
6351
6352 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
6353 .comm alignment is bytes, not bits.
6354
6355 2004-09-27 Devang Patel <dpatel@apple.com>
6356
6357 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
6358 (print_call_name): Do not print VEC_COND_EXPR.
6359
6360 2004-09-27 Devang Patel <dpatel@apple.com>
6361
6362 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
6363
6364 2004-09-27 Jan Hubicka <jh@suse.cz>
6365
6366 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
6367
6368 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
6369
6370 * bitmap.h: Fix a comment typo.
6371
6372 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
6373
6374 * libgcc2.c (getpagesize): Change type of return value to int.
6375
6376 2004-09-26 Matt Austern <austern@apple.com>
6377
6378 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
6379 using mmap.
6380
6381 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6382
6383 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
6384 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
6385 (bitmap_iterator): New type.
6386 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
6387 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
6388 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
6389 bmp_iter_and_init, bmp_iter_and_next): New functions.
6390 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
6391 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
6392 use iterator-style EXECUTE_IF_IN_BITMAP macros.
6393 * bitmap.c (bitmap_print): Ditto.
6394 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
6395 btr_def_live_range): Ditto.
6396 * cfganal.c (compute_dominance_frontiers_1) Ditto.
6397 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
6398 Ditto.
6399 * ddg.c (build_inter_loop_deps): Ditto.
6400 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
6401 Ditto.
6402 * except.c (remove_eh_handler): Ditto.
6403 * flow.c (reg_set_to_hard_reg_set): Ditto.
6404 * gcse.c (clear_modify_mem_tables): Ditto.
6405 * global.c (build_insn_chain): Ditto.
6406 * ifcvt.c (dead_or_predicable): Ditto.
6407 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
6408 Ditto.
6409 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
6410 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
6411 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
6412 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
6413 tree_purge_all_dead_eh_edges): Ditto.
6414 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
6415 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
6416 rewrite_ssa_into_ssa): Ditto.
6417 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
6418 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
6419 Ditto.
6420 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
6421 compute_flow_sensitive_aliasing, maybe_create_global_var,
6422 dump_points_to_info_for): Ditto.
6423 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
6424 * tree-ssa-dse.c (dse_finalize_block): Ditto.
6425 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
6426 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
6427 Ditto.
6428 * tree-ssa-loop-ivopts.c (find_induction_variables,
6429 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
6430 determine_use_iv_costs, determine_set_costs, find_best_candidate,
6431 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
6432 Ditto.
6433 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
6434 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
6435 add_call_read_ops): Ditto.
6436 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
6437
6438 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6439
6440 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
6441 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
6442
6443 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
6444
6445 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
6446 reflect size of memory regions being compared.
6447
6448 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
6449
6450 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
6451 expressions. Always clear MEM_SIZE and alias set.
6452
6453 2004-09-26 Roger Sayle <roger@eyesopen.com>
6454 Giovanni Bajo <giovannibajo@gcc.gnu.org>
6455
6456 PR middle-end/17112
6457 * stor-layout.c (compute_record_mode): For records with a single
6458 field, only use the field's mode if its size matches what we'd
6459 have choosen for the record ourselves. This forces the use of
6460 BLKmode for packed records that don't completely fill a mode.
6461
6462 2004-09-26 Roger Sayle <roger@eyesopen.com>
6463
6464 PR middle-end/17151
6465 * combine.c (force_to_mode): Remove dubious early return test that
6466 inhibits further optimization.
6467
6468 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
6469
6470 * profile.c: Fix a comment typo.
6471
6472 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6473
6474 PR bootstrap/17591
6475 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
6476 with varying offset.
6477 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
6478 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
6479 ARRAY_REFS.
6480 (expr_invariant_in_loop_p): New function.
6481 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
6482 component_ref_field_offset for COMPONENT_REFs. Do not allow
6483 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
6484 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
6485 MISALIGNED_INDIRECT_REFs.
6486 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
6487 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
6488 MISALIGNED_INDIRECT_REFs.
6489
6490 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
6491
6492 PR c/11459
6493 * gcc.c (cpp_options, cc1_options): Preserve relative order of
6494 -std and -ansi options.
6495
6496 2004-09-26 Jan Hubicka <jh@suse.cz>
6497
6498 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
6499 for nested functions whose proper parent has not been output.
6500
6501 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
6502 when re-constructing profile previously invalidated by loop.
6503
6504 2004-09-25 Dale Johannesen <dalej@apple.com>
6505
6506 * tree-gimple.c: Move GIMPLE definition...
6507 * doc/tree-ssa.texi: here.
6508
6509 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
6510
6511 * tree-vectorizer.c: Fix a comment typo.
6512
6513 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
6514
6515 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
6516 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
6517 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
6518 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
6519
6520 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
6521
6522 * tree-ssa-loop-unswitch.c: Fix a comment typo.
6523
6524 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
6525
6526 * doc/passes.texi: Fix a typo.
6527
6528 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6529
6530 * tree-optimize.c (init_tree_optimization_passes): Add
6531 pass_record_bounds.
6532 * tree-pass.h (pass_record_bounds): Declare.
6533 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
6534 New pass.
6535
6536 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6537
6538 PR tree-optimization/17474
6539 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
6540 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
6541
6542 2004-09-25 Jan Hubicka <jh@suse.cz>
6543
6544 * predict.c (counts_to_freqs): Make global.
6545 * predict.h (counts_to_freqa): Declare.
6546 * profile.c (compute_branch_probabilities): Compute frequencies
6547 * tree-profile.c (do_tree_profiling): Refine conditional on when
6548 tree profiling pass is needed.
6549
6550 * passes.c (rest_of_handle_cfg): Disable const/pure function
6551 detection when doing tree based profiling.
6552
6553 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
6554 conditional.
6555
6556 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
6557
6558 * config/mips/mips.h (struct mips_args): Clarify comments.
6559 * config/mips/mips.c (struct mips_arg_info): Likewise.
6560 (mips_arg_info): Don't allow fpr_p to affect the register or
6561 stack alignment. Remove o64 silliness.
6562 (function_arg): Deal with the o32 float,float case specially.
6563
6564 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
6565
6566 * config/mips/mips.md (loadx, storex): Define for V2SF.
6567
6568 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
6569
6570 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
6571 * config/s390/s390.c (s390_back_chain_rtx): New function.
6572 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
6573 Call anti_adjust_stack.
6574 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
6575 only if compiling with back chain.
6576 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
6577 back chain only if back chain enabled. Use s390_back_chain_rtx.
6578
6579 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
6580
6581 * doc/trouble.texi: Remove obsolete information. Update
6582 information on how to regenerate fixincluded headers.
6583
6584 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
6585
6586 PR c/12951
6587 * doc/invoke.texi: Document that
6588 -Wno-error-implicit-function-declaration is not accepted.
6589
6590 2004-09-24 Richard Henderson <rth@redhat.com>
6591
6592 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
6593 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
6594 on TARGET_MAX.
6595 (alpha_expand_mov): Allow unaligned vectors.
6596 (alpha_expand_unaligned_store): Use CONST0_RTX.
6597 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
6598
6599 2004-09-24 Jeff Law <law@redhat.com>
6600
6601 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
6602 aliasing rules.
6603 (simplify_cond_and_lookup_avail_expr): Likewise.
6604
6605 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
6606
6607 PR c/12802
6608 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
6609 title. Document interaction with -fms-extensions.
6610 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
6611 section.
6612
6613 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
6614
6615 PR c/12713
6616 * doc/extend.texi: Document interaction of attribute noreturn and
6617 longjmp.
6618
6619 2004-09-24 Richard Henderson <rth@redhat.com>
6620
6621 PR rtl-opt/17503
6622 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
6623 (som_hash, som_eq): New.
6624 (init_subregs_of_mode, record_subregs_of_mode): New.
6625 (cannot_change_mode_set_regs): Rewrite for htab implementation.
6626 (invalid_mode_change_p): Likewise.
6627 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
6628 * flow.c (mark_used_regs): Likewise.
6629 (life_analysis): Use init_subregs_of_mode.
6630 * regs.h (subregs_of_mode): Remove.
6631 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
6632
6633 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
6634
6635 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
6636 type with the copy of the conditional.
6637
6638 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
6639
6640 PR tree-opt/16954
6641 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6642 Prevent renaming if the aliasing sets of the type which the
6643 pointer points to are different.
6644
6645 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
6646
6647 PR c/17188
6648 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
6649 declarations of enumerators.
6650 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
6651 for redefinition. Check for nested redefinition.
6652 (finish_struct): Don't check for nested redefinition.
6653 (start_enum): Check for nested redefinition.
6654
6655 2004-09-24 Devang Patel <dpatel@apple.com>
6656
6657 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
6658 only when necesssary.
6659 (combine_blocks): Combine loop header and exit block.
6660
6661 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
6662
6663 * hooks.c (hook_tree_tree_bool_null): New.
6664 * hooks.h (hook_tree_tree_bool_null): Declare it.
6665 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
6666 * targhooks.c (default_fold_builtin): Remove.
6667 * targhooks.h (default_fold_builtin): Remove.
6668
6669 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6670
6671 PR rtl-optimization/17625
6672 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
6673
6674 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
6675
6676 PR tree-opt/17624
6677 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
6678 Reject if any of the operands occur in an abnormal PHI.
6679
6680 2004-09-24 Andreas Schwab <schwab@suse.de>
6681
6682 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
6683 rules.
6684
6685 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
6686
6687 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
6688 if the GNU assembler is used.
6689 (sparc-*-solaris2*): Likewise.
6690 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
6691 (dbxout_function_end): Protect N_ENSYM with it.
6692 (dbxout_begin_prologue): Protect N_BNSYM with it.
6693 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
6694 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
6695 * config/sparc/sol2-gas.h: New file.
6696
6697 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
6698
6699 PR bootstrap/17369
6700 * Makefile.in (@set_gcc_lib_path@): Added.
6701
6702 * configure.ac: Include ../config/gcc-lib-path.m4. Use
6703 TL_AC_GNU_MAKE_GCC_LIB_PATH.
6704 * configure: Regenerated.
6705
6706 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
6707
6708 PR c/6980
6709 * c-typeck.c (build_c_cast): Improve wording of
6710 -Wbad-function-cast diagnostic.
6711
6712 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
6713
6714 PR target/17626
6715 * config/cris/cris.md (moverside, movemside): Rename variable
6716 "reg" to "otherop". To generate canonical RTX, check that otherop
6717 isn't constant instead of checking that operand 1 is a register.
6718
6719 2004-09-23 Jakub Jelinek <jakub@redhat.com>
6720
6721 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
6722
6723 2004-09-23 Diego Novillo <dnovillo@redhat.com>
6724 Jakub Jelinek <jakub@redhat.com>
6725
6726 * tree-flow.h (find_new_referenced_vars): Add prototype.
6727 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
6728 Move to...
6729 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
6730 ... here.
6731 (mark_new_vars_to_rename): Walk through all operands.
6732 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
6733 (execute_fold_all_builtins): Use it.
6734 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
6735
6736 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
6737
6738 * gthr-tpf.h: New file.
6739 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
6740 * gthr.h: Use gthr-tpf.h on TPF OS.
6741
6742 2004-09-23 Jeff Law <law@redhat.com>
6743
6744 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
6745 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
6746 (substitute_and_fold): Likewise.
6747 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
6748 except invariants from SSA_NAME_VALUE.
6749 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
6750 and SET_SSA_NAME_EQUIV.
6751 (restore_vars_to_original_value, record_const_or_copy): Likewise.
6752 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
6753 (record_equality, cprop_into_successor_phis): Likewise.
6754 (record_equivalences_from_stmt, cprop_operand): Likewise.
6755 (lookup_avail_expr): Likewise.
6756 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
6757 from SSA_NAME_VALUE.
6758 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
6759 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
6760 annotation from the VALUE_HANDLE field.
6761
6762 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
6763
6764 PR c++/13989
6765 PR c++/9844
6766 * tree.c (reconstruct_complex_type): Remove extra "this".
6767 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
6768 Add V4SFmode to case statement.
6769
6770 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
6771
6772 PR c/16833
6773 * doc/extend.texi, doc/invoke.texi: Document interaction of
6774 -fno-builtin with format checks. Note that built-in functions
6775 have effects beyond generating code that avoids calls to those
6776 functions.
6777
6778 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
6779
6780 PR tree-optimization/17533
6781 * dominance.c (verify_dominators): Tolerate even more incorrect
6782 dominance data during error message printing.
6783 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
6784 and edges more correctly.
6785
6786 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
6787
6788 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
6789 New tree-codes.
6790 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
6791 MISALIGNED_INDIRECT_REF.
6792 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
6793 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
6794 Likewise.
6795 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
6796 (find_interesting_uses_address): Likewise.
6797 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
6798 (build_fold_addr_expr_with_type): Likewise.
6799 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
6800 * print-rtl.c (print_mem_expr): Likewise.
6801 * tree-dump.c (dequeue_and_dump): Likewise.
6802 * tree-eh.c (tree_could_trap_p): Likewise.
6803 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
6804 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
6805 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
6806 Likewise.
6807 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6808 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
6809 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
6810 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
6811 (add_address_candidates, rewrite_address_base): Likewise.
6812 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
6813 Likewise.
6814 * tree.c (staticp, build1_stat): Likewise.
6815
6816 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
6817 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
6818 * tree-ssa-operands.c (get_expr_operands): Likewise.
6819 * expr.c (expand_expr_real_1): Likewise.
6820
6821 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
6822 optabs.
6823 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
6824 for the new optabs.
6825 (expand_ternary_op): New function.
6826 * genopinit.c (optabs): Handle the new optabs.
6827 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
6828 (init_optabs): Initialize vec_realign_load_optab.
6829 (expand_ternary_op): New functions.
6830
6831 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
6832 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
6833 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
6834 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
6835 * target.h (struct vectorize): New member for struct gcc_target.
6836 (misaligned_mem_ok): New member for targetm.vectorize.
6837 (builtin_mask_for_load): Likewise.
6838 (builtin_mask_for_store): Likewise.
6839 * targethooks.c (default_vect_misaligned_mem_ok): New function.
6840 * targethooks.h (default_vect_misaligned_mem_ok): New function.
6841
6842 * config/rs6000/altivec.md (build_vector_mask_for_load): New
6843 define_expand.
6844 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
6845 (vec_realign_load_v16qi): New define_insn.
6846 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
6847 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
6848 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
6849 (altivec_builtin_mask_for_store): New variables.
6850 (rs6000_builtin_mask_for_load): New function. Implements
6851 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
6852 (rs6000_builtin_mask_for_store): New function. Implements
6853 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
6854 (rs6000_expand_builtin): Expand the target builtins
6855 builtin_mask_for_load and builtin_mask_for_store.
6856 (altivec_init_builtins): Initialize the new target builtins.
6857 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
6858 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
6859
6860 * tree-vectorizer.c (vect_create_data_ref): Renamed to
6861 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
6862 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
6863 (vectorizable_store): Call vect_create_data_ref_ptr with additional
6864 arguments, and create an indirect_ref with its return value data_ref.
6865 Check aligned_access_p.
6866 (vectorizable_load): Handle misaligned loads, using software-pipelined
6867 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
6868 vec_realign_load_optab is supported, or using a scheme without
6869 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
6870 misaligned_mem_ok is supported.
6871
6872 (vect_finish_stmt_generation): Typo.
6873 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
6874 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
6875 presence of misaligned loads.
6876 (vect_analyze_data_ref_access): Add check for constant init.
6877 (vect_get_symbl_and_dr): Remove duplicate line.
6878 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
6879
6880 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
6881
6882 * builtins.c: Fix a comment typo.
6883
6884 2004-09-23 Jan Hubicka <jh@suse.cz>
6885
6886 * profile.c (branch_prob): Do not verify flow info in the middle of the
6887 pass.
6888
6889 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6890
6891 * cfgloop.h (update_single_exits_after_duplication): Declare.
6892 (loopify, split_loop_bb): Declaration changed.
6893 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
6894 of rtx.
6895 (loopify): Added redirect_all_edges argument.
6896 (update_single_exits_after_duplication): Export.
6897 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
6898 * tree-flow.h (tree_duplicate_loop_to_header_edge,
6899 tree_ssa_loop_version): Declare.
6900 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
6901 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
6902 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
6903 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
6904
6905 * tree-ssa-loop-unswitch.c: New file.
6906 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
6907 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
6908 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
6909 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
6910 * tree-pass.h (pass_unswitch): Declare.
6911 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
6912 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
6913 * doc/passes.texi: Documen tree level loop unswitching.
6914
6915 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
6916
6917 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
6918
6919 2004-09-22 Eric Christopher <echristo@redhat.com>
6920
6921 * builtins.c (simplify_builtin_va_start): Remove.
6922 (simplify_builtin): Ditto.
6923 (fold_builtin_strchr): Ditto.
6924 (simplify_builtin_*): Rename remainders to fold_builtin_*.
6925 (expand_builtin): Fix up for above changes.
6926 (fold_builtin_1): Add new folders. Change for above.
6927 (expand_builtin_va_start): Call fold_builtin_next_arg.
6928 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
6929 * tree.h: Remove prototype for simplify_builtin.
6930
6931 2004-09-23 Jan Hubicka <jh@suse.cz>
6932
6933 PR debug/17389
6934 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
6935 of fully inlined functions.
6936 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
6937 inlined.
6938
6939 * cfgexpand.c (add_reg_br_prob_note): New function.
6940 (expand_gimple_cond_expr): Use it.
6941 (tree_expand_cfg): No longer kill the profile.
6942 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
6943 only if it is present.
6944 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
6945 * predict.c (combine_predictions_for_insn): Set the probabilities
6946 based on REG_BR_PROB note if present.
6947 * predict.c (branch_prob): Profile is read only with
6948 flag_branch_probabilities.
6949
6950 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
6951
6952 * aclocal.m4: Add in gettext's m4 includes.
6953 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
6954 * configure.ac: Add in check for iconv.h
6955 * configure: Regenerate.
6956
6957 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
6958
6959 * aclocal.m4: Update for rename of gettext-sister.m4.
6960
6961 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
6962
6963 Fix PR tree-optimization/17587
6964 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
6965 (insert_aux): Instead of here.
6966
6967 2004-09-22 Diego Novillo <dnovillo@redhat.com>
6968
6969 PR tree-optimization/16721
6970 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
6971 * tree-ssa-alias.c (create_memory_tag): Move setting of
6972 TREE_THIS_VOLATILE ...
6973 (get_tmt_for): ... here.
6974
6975 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6976
6977 * config/sparc/sparc.md (cmove splitter): Fix formatting.
6978 (conditional_trap expander): Reject inappropriate CCmodes.
6979 (conditional trap insn): Use V9 syntax if possible.
6980
6981 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
6982
6983 PR c/16566
6984 * c-typeck.c (build_component_ref): Don't special-case
6985 COMPOUND_EXPR.
6986
6987 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
6988
6989 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
6990 returns NULL.
6991
6992 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
6993
6994 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
6995 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
6996 TRUTH_XOR_EXPR): Mention the restriction on types.
6997
6998 2004-09-22 Matt Austern <austern@apple.com>
6999
7000 * config/darwin.c (darwin_make_decl_one_only):
7001 Allow coalesced symbol to appear in static archive's table of contents
7002
7003 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
7004
7005 PR tree-optimization/17512
7006 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
7007 special cases.
7008
7009 2004-09-22 David Edelsohn <edelsohn@gnu.org>
7010
7011 * dbxout.c (get_lang_number): Do not define if
7012 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
7013
7014 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7015
7016 PR target/15583
7017 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
7018 builtin_define ("__USE_INIT_FINI__").
7019
7020 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
7021
7022 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
7023 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
7024 * config/s390/s390.h (TARGET_TPF): New macro.
7025 * config/s390/s390.md ("eh_return"): New expander.
7026 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
7027 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
7028 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
7029 * config/s390/tpf.h (TARGET_TPF): Define to 1.
7030 (STACK_POINTER_OFFSET): Increase to 448.
7031 (TARGET_DEFAULT): Set -mtpf-trace on as default.
7032 (TPF_LOC_DIFF_OFFSET): New macro.
7033 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
7034 encoding.
7035 (__isPATrange): Add prototype.
7036 (MD_FALLBACK_FRAME_STATE_FOR): Define.
7037 * config/s390/tpf-eh.c: New file.
7038
7039 2004-09-22 Diego Novillo <dnovillo@redhat.com>
7040
7041 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
7042 operands in an integer comparison.
7043 * tree-cfg.c (find_taken_edge): Call fold() to determine
7044 whether the predicate is known.
7045
7046 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
7047
7048 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
7049 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
7050 Create build and doc directories along with the language directories.
7051 Don't create doc directory separately.
7052 * configure: Regenerate.
7053 * Makefile.in: Create all object and executables files built
7054 with the build compiler in a build/ directory.
7055 (genobjnames): Add missing build objects.
7056 (STAGESTUFF): Don't stage the gen* programs.
7057 (ggc-none.o): Define dependencies for the target compiler.
7058 (build-print-rtl.o): Rename to build/print-rtl.o.
7059 (build-errors.o): Rename to build/errors.o.
7060 (build-varray.o): Rename to build/varray.o.
7061 (maintainerclean): Delete the contents of the build directory.
7062 ($(genobjs): %.o): Explicitly use -o.
7063 (build/insn-conditions.o): Delete specfic rule to use generic rule.
7064 (build/gengtype-lex.o): Likewise.
7065 (build/gengtype-yacc.o): Likewise.
7066 (build/gcov-iov.o): Likewise.
7067
7068 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
7069
7070 * vec.h (VEC_space): Return true if there _is_ space.
7071 (VEC_reserve): Adjust.
7072
7073 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
7074
7075 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
7076 use FPRs for scalar, complex and vector types only.
7077
7078 2004-09-21 Jeff Law <law@redhat.com>
7079
7080 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
7081 the opt_stats_d structure.
7082 (vrp_data): Change from a varray into a hash table.
7083 (vrp_hash_elt): New structure for elements in the vrp hash table.
7084 (vrp_hash, vrp_eq):New functions for hashing and testing equality
7085 in the vrp hash table.
7086 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
7087 initialization slightly to make it easier to read. No longer need
7088 to grow/clear the varray. Instead empty and delete the hash table.
7089 (dom_opt_finalize_block): Update due to change of VRP_DATA from
7090 a varray to a hash table.
7091 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
7092
7093 * tree-ssa-ccp.c (get_default_value): If we have a constant
7094 value recorded for an SSA_NAME, then use that constant as
7095 the initial lattice value.
7096 (substitute_and_fold): Transfer equivalences discovered into
7097 SSA_NAME_EQUIV.
7098
7099 * tree.h (SSA_NAME_EQUIV): Add comments.
7100 (SET_SSA_NAME_EQUIV): Similarly.
7101
7102 2004-09-21 David Edelsohn <edelsohn@gnu.org>
7103
7104 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
7105
7106 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
7107
7108 2004-09-21 Mark Mitchell <mark@codesourcery.com>
7109
7110 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
7111 (finish_decl): Likewise.
7112
7113 2004-09-21 Devang Patel <dpatel@apple.com>
7114
7115 * tree.def (VEC_COND_EXPR): New tree node.
7116 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
7117
7118 2004-09-21 Stan Shebs <shebs@apple.com>
7119
7120 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
7121 * config/rs6000/darwin-world.asm: Likewise.
7122
7123 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
7124
7125 * tree-ssa.c (verify_def): Use print_generic_stmt,
7126 not debug_generic_stmt.
7127 (verify_use): Ditto.
7128 (verify_phi_args): Ditto.
7129 (verify_ssa): Ditto.
7130
7131 2004-09-21 Paul Brook <paul@codesourcery.com>
7132
7133 * varasm.c (default_assemble_integer): Return false for values wider
7134 than the target word size. Works around GAS bug.
7135
7136 2004-09-21 Zack Weinberg <zack@codesourcery.com>
7137
7138 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
7139 gets value 0.
7140 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
7141 if it has value 0.
7142
7143 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
7144
7145 * c-typeck.c (build_function_call): Give name of object
7146 we are attempting to call in error message.
7147 * c-objc-common.c (c_tree_printer): Call pp_expression,
7148 not return false, for 'E' case.
7149
7150 2004-09-21 Steven Bosscher <stevenb@suse.de>
7151
7152 PR rtl-optimization/17482
7153 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
7154 load_killed_in_block_p): Clarify comments.
7155 (record_last_reg_set_info): Make static inline.
7156 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
7157 (record_opr_changes): New function to replace the above.
7158 (compute_hash_table): Clarify comments. Use record_opr_changes.
7159 (reg_set_between_after_reload_p): Clean up.
7160 (reg_used_between_after_reload_p): Likewise.
7161 (eliminate_partially_redundant_load): Clarify comments.
7162
7163 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
7164
7165 PR rtl-optimization/17266
7166 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
7167
7168 2004-09-21 Uros Bizjak <uros@kss-loka.si>
7169
7170 PR rtl-optimization/14851
7171 * rtlanal.c (commutative_operand_precedence): Calculate
7172 precedence of stripped constant.
7173
7174 2004-09-20 Jeff Law <law@redhat.com>
7175 Jan Hubicka <jh@suse.cz>
7176
7177 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
7178 initialize key elements here.
7179 (release_ssa_name): Zero the released SSA_NAME here.
7180 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
7181 (struct tree_ssa_name): Add new "equiv" field.
7182 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
7183 (tree_ssa_dominator_optimize): No longer allocate, resize or
7184 clear CONST_AND_COPIES.
7185 (get_value_for, set_value_for): Kill.
7186 (thread_across_edge): Get/set the equivalency using
7187 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
7188 (restore_vars_to_original_value): Likewise.
7189 (record_equivalences_from_phis): Likewise.
7190 (record_dominating_conditions): Likewise.
7191 (record_const_or_copy, record_equality): Likewise.
7192 (lookup_avail_expr): Likewise.
7193 (record_equivalences_from_stmt, cprop_operand): Likewise.
7194 (cprop_into_successor_phis): No longer need to pass around
7195 CONST_AND_COPIES. Callers updated. Get equivalences via
7196 SSA_NAME_EQUIV.
7197 (cprop_into_phis): Likewise.
7198
7199 2004-09-20 Matt Austern <austern@apple.com>
7200 Zack Weinberg <zack@codesourcery.com>
7201
7202 * c-common.c (fix_string_type): Build the unqualified array
7203 type unconditionally, then use c_build_qualified_type to get
7204 the proper const-qualified variant, and set its
7205 TYPE_MAIN_VARIANT to refer to the unqualified type.
7206 * c-lex.c (c_lex_return_raw_string): New global.
7207 (c_lex_with_flags): Honor it.
7208 * c-pragma.h: Declare it.
7209
7210 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
7211
7212 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
7213
7214 2004-09-21 Jan Hubicka <jh@suse.cz>
7215
7216 PR middle-end/17126
7217 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
7218 (tree_rest_of_compilation): Cleanup.
7219
7220 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
7221
7222 * config/s390/s390.c (s390_select_rtx_section): Remove.
7223 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
7224
7225 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
7226
7227 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
7228 note to pretend a direct save from the original register when an
7229 intermediate register is used for the save.
7230
7231 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7232
7233 * tsystem.h (alloca): Provide a default definition.
7234
7235 Revert:
7236 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7237 * unwind-dw2.c: Call __builtin_alloca, not alloca.
7238
7239 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
7240
7241 PR tree-opt/17558
7242 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
7243 aliasing sets are the same rather than just conflicting.
7244
7245 2004-09-20 Jan Hubicka <jh@suse.cz>
7246
7247 PR middle-end/16460
7248
7249 * cgraph.c (cgraph_unnest_node): New function.
7250 (c_finalize): Rename to ....
7251 (c_warn_unused_result_recursivly): ... this one; do only the warning
7252 (finish_function): Finalize the toplevel function; do not lower nested tree.
7253 * cgraph.h (cgraph_unnest_node): Declare.
7254 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
7255 nestedness datastructure.
7256 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
7257 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
7258 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
7259
7260 2004-09-20 Richard Henderson <rth@redhat.com>
7261
7262 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
7263 from some_small_symbolic_operand_1; export.
7264 (some_small_symbolic_operand): Remove.
7265 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
7266 extra C check.
7267 * config/alpha/predicates.md (some_small_symbolic_operand): New.
7268
7269 2004-09-20 Jan Hubicka <jh@suse.cz>
7270
7271 * predict.c (return_prediction): New function.
7272 (apply_return_prediction): Likewise.
7273 (tree_bb_level_predictions): Likewise.
7274 (tree_estimate_probability): Add noreturn exit edges; call
7275 bb_level_predictions; fix logic of return heuristics.
7276 (predict_paths_leading_to): Rescuesce from old CVS version of
7277 process_note_prediction function.
7278 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
7279
7280 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
7281
7282 * config/s390/s390.c (s390_frame_info): Added alignment statement for
7283 floating point register area on stack.
7284
7285 2004-09-20 Jakub Jelinek <jakub@redhat.com>
7286
7287 * predict.c (expr_expected_value): Use *_CLASS_P macros.
7288
7289 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
7290
7291 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
7292 generating useless garbage.
7293
7294 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
7295
7296 * builtins.c (fold_builtin): Call the new omonymous
7297 target hook for machine-dependent built-ins.
7298 * target-def.h (TARGET_FOLD_BUILTIN): New.
7299 * target.h (struct gcc_target): Add the fold_builtin hook.
7300 * targhooks.c (default_fold_builtin): New.
7301 * targhooks.h (default_fold_builtin): Declare it.
7302
7303 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
7304
7305 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
7306 comment typos.
7307
7308 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
7309
7310 PR target/17565
7311 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
7312
7313 2004-09-20 Jan Hubicka <jh@suse.cz>
7314
7315 * predict.c (estimate_probability): Remove unnecesary code.
7316
7317 2004-09-19 Ira Rosen <irar@il.ibm.com>
7318
7319 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
7320 (STMT_VINFO_VECT_DR_BASE): Declare.
7321 (VECT_SMODULO): Declare.
7322 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
7323 (vect_compute_array_base_alignment): New function.
7324 (vect_analyze_data_ref_access): Check array indices. Remove one
7325 dimensional arrays restriction.
7326 (vect_get_ptr_offset): New function.
7327 (vect_get_symbl_and_dr): New function.
7328 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
7329 (former name vect_get_base_decl_and_bit_offset).
7330 (vect_create_index_for_array_ref): Removed.
7331 (vect_create_index_for_vector_ref): New function.
7332 (vect_create_addr_base_for_vector_ref): New function.
7333 (vect_create_data_ref): Handle additional data refs. Call
7334 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
7335 (vect_compute_data_ref_alignment): Support the changes. Call
7336 vect_get_base_and_bit_offset.
7337 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
7338 data refs. Store vect_dr_base.
7339 (vect_analyze_data_ref_accesses): Support nonconstant init.
7340 (new_stmt_vec_info): Initialize vect_dr_base field.
7341 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
7342 (get_vectype_for_scalar_type): Check for BLKmode.
7343 * tree-chrec.h (initial_condition_in_loop_num): Declare.
7344 * tree-chrec.c (initial_condition_in_loop_num): New function.
7345 (chrec_component_in_loop_num): New function.
7346 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
7347 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
7348 to be pointer to varray_type.
7349
7350 2004-09-19 Jan Hubicka <jh@suse.cz>
7351
7352 * basic-block.h (update_bb_profile_after_threading): Declare.
7353 * cfg.c (update_bb_profile_after_threading): Break out from ...
7354 * cfgcleanup.c (try_forward_edges): ... here; use it.
7355 * tree-ssa-dom.c (thread_across_edge): Use it.
7356 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
7357 profile of the new BB.
7358
7359 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
7360
7361 * tree-ssa-pre.c (insert_into_set): Don't put
7362 is_gimple_min_invariant values into the set.
7363
7364 2004-09-19 Andreas Jaeger <aj@suse.de>
7365
7366 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
7367 prototype.
7368
7369 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
7370
7371 * config/cris/cris.h: Preserve the original spelling in a
7372 quote.
7373
7374 2004-09-18 Jeff Law <law@redhat.com>
7375
7376 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
7377 global varrays to replace the block local varrays.
7378 (struct dom_walk_block_data): Remove, no longer used.
7379 (get_eq_expr_value): No longer need to pass around pointers to local
7380 varrays. Callers updated. Unused markers added to unused parameters.
7381 (record_range, record_equivalences_from_stmt): Likewise.
7382 (record_equivalences_from_incoming_edge): Likewise.
7383 (record_var_is_nonzero): Likewise. Update now that we have a
7384 single global varray of SSA_NAMEs that need restoring.
7385 (dom_opt_initialize_block_local_data): Kill, no longer used.
7386 (tree_ssa_dominator_optimize): Initialize new global varrays.
7387 Update callbacks in dominator walker structure.
7388 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
7389 VRP_VARIABLES_STACK.
7390 (restore_nonzero_vars_to_original_value): Update now that we have
7391 a single global varray of SSA_NAMEs that need restoring.
7392 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
7393 Remove unused variables.
7394 (optimize_stmt): Remove unused variable.
7395
7396 2004-09-18 Jan Hubicka <jh@suse.cz>
7397
7398 * tree-cfg.c (thread_jumps): Fix updating of the profile.
7399
7400 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
7401 verify_cgraph call.
7402
7403 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
7404
7405 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
7406 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
7407 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
7408 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
7409 tree-ssa-operands.c, tree-ssa-phiopt.c,
7410 tree-ssa-threadupdate.c: Fix comment typos.
7411
7412 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
7413
7414 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
7415 config/arm/README-interworking, config/arm/arm-cores.def,
7416 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
7417 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
7418 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
7419 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
7420 config/frv/frv.md, config/i386/winnt.c,
7421 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
7422 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
7423 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
7424 config/mcore/mcore.c, config/mips/mips.h,
7425 config/mn10300/mn10300.md, config/pa/pa.c,
7426 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
7427 config/rs6000/rs6000.c, config/sh/symbian.c,
7428 config/sparc/sparc.h: Fix comment typos. Follow spelling
7429 conventions.
7430
7431 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
7432
7433 PR c/17424
7434 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
7435
7436 2004-09-18 Diego Novillo <dnovillo@redhat.com>
7437
7438 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
7439 remove TREE_ADDRESSABLE from RESULT_DECL.
7440
7441 2004-09-18 Diego Novillo <dnovillo@redhat.com>
7442
7443 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
7444
7445 2004-09-18 Jan Hubicka <jh@suse.cz>
7446
7447 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
7448 NULL.
7449 * tree-ssa-alias.c (init_alias_info): Likewise.
7450 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
7451 (verify_ssa): Likewise.
7452 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
7453
7454 2004-09-18 Jan Hubicka <jh@suse.cz>
7455
7456 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
7457 huge offset.
7458
7459 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
7460
7461 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
7462 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7463 DW_EH_PE_sdata* for data.
7464 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
7465
7466 2004-09-17 Geoffrey Keating <geoffk@apple.com>
7467
7468 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
7469 shared anyway.
7470
7471 PR pch/13361
7472 * c-typeck.c (constructor_asmspec): Delete.
7473 (struct initializer_stack): Delete field 'asmspec'.
7474 (start_init): Delete saving of asmspec.
7475 (finish_init): Don't update constructor_asmspec.
7476 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
7477 * stmt.c (expand_asm): Duplicate strings from tree.
7478 (expand_asm_operands): Likewise.
7479 * tree.c (tree_size): Update computation of size of STRING_CST.
7480 (make_node): Don't make STRING_CST nodes.
7481 (build_string): Allocate string with tree node.
7482 (tree_code_size): Clean up assertions, don't allow requests
7483 for "the size of a STRING_CST".
7484 * tree.def (STRING_CST): Update comment.
7485 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
7486 (tree_string): Place contents of string in tree node.
7487 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
7488 from tree.
7489
7490 2004-09-17 Zack Weinberg <zack@codesourcery.com>
7491
7492 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
7493 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
7494
7495 2004-09-17 Jones Desougi <jones@ingate.com>
7496
7497 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
7498 * configure, config.in: Regenerate.
7499
7500 2004-09-17 Zack Weinberg <zack@codesourcery.com>
7501
7502 * tree.c, tree.h (tree_class_strings): Make array const.
7503 Reindent per coding convention. Move asterisk to proper place
7504 per coding convention.
7505
7506 2004-09-18 Andreas Schwab <schwab@suse.de>
7507
7508 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
7509 (tree-vectorizer.o): Likewise.
7510 (targhooks.o): Likewise.
7511
7512 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
7513 Zack Weinberg <zack@codesourcery.com>
7514
7515 * alias.c (find_base_decl): Remove unreachable case '3' block.
7516 * expr.c (safe_from_p): Abort if passed a type.
7517 * tree-gimple.c (recalculate_side_effects): Abort if passed
7518 anything other than an expression.
7519 * tree-ssa-pre.c (phi_translate): Return expr immediately if
7520 is_gimple_min_invariant is true for it. Reorder cases for clarity.
7521 Abort on un-handled tree classes.
7522 (valid_in_set): Likewise.
7523 * tree.c (tree_code_class_strings): New static data.
7524
7525 * tree.h (enum tree_code_class): New.
7526 (tree_code_class_strings): Declare.
7527 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
7528 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
7529 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
7530 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
7531 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
7532
7533 * tree.def, c-common.def, objc/objc-tree.def: Use
7534 tree_code_class enumeration constants instead of code letters.
7535
7536 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
7537 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
7538 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
7539 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
7540 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
7541 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
7542 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
7543 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
7544 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
7545 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
7546 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
7547 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
7548 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
7549 Update to match.
7550
7551 * LANGUAGES: Add note about change.
7552
7553 2004-09-17 Diego Novillo <dnovillo@redhat.com>
7554
7555 PR tree-optimization/17319
7556 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
7557 examine pointers on the LHS of an assignment.
7558 (collect_points_to_info_r): Handle RETURN_EXPR.
7559
7560 2004-09-17 Jeff Law <law@redhat.com>
7561
7562 * tree-ssa-dom.c (const_and_copies_stack): New.
7563 (dom_walk_block_data): Remove const_and_copies field.
7564 (record_const_or_copy): No longer need to pass in varray_type *.
7565 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
7566 Callers updated.
7567 (record_equality): Similarly.
7568 (restore_vars_to_original_value): Similarly. Revamp to use new
7569 single global stack rather than per-block stacks.
7570 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
7571 (thread_across_edge): Remove now unused parameters.
7572 (dom_opt_initialize_block_local_data): No longer test the block
7573 local CONST_AND_COPIES.
7574 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
7575
7576 2004-09-17 Jan Hubicka <jh@suse.cz>
7577
7578 PR tree-optimization/17509
7579 * tree-optimize.c (update_inlined_to_pointers): New function.
7580 (tree_rest_of_compilation): Use it.
7581
7582 2004-09-17 Devang Patel <dpatel@apple.com>
7583
7584 * dbxout.c (get_lang_number): New.
7585 (dbxout_init): Include lang number in N_SO stab.
7586 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
7587 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
7588
7589 2004-09-17 Diego Novillo <dnovillo@redhat.com>
7590
7591 PR tree-optimization/17273
7592 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
7593 replacement is a constant.
7594
7595 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
7596
7597 * c-tree.h (enum c_typespec_keyword): New.
7598 (struct c_declspecs): Adjust description of "type". Remove
7599 specbits, explicit_int_p and explicit_char_p. Rename
7600 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
7601 short_p, signed_p, unsigned_p and complex_p.
7602 (finish_declspecs): New.
7603 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
7604 typename): Call finish_declspecs.
7605 * c-decl.c (finish_declspecs): New.
7606 (declspecs_add_type): Check for combinations which cannot occur in
7607 valid specifier lists. Update comments.
7608 (shadow_tag_warned): Remove checks done in finish_declspecs.
7609 Don't report useless type name if type defaulted to int.
7610 (grokdeclarator): Remove checks and actions done in
7611 finish_declspecs. Don't allow for type being NULL. Update for
7612 datastructures changes. Initialize decl_attr.
7613 (build_null_declspecs, quals_from_declspecs): Update for
7614 datastructures changes.
7615
7616 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
7617
7618 * doc/extend.texi: Fix duplicated word.
7619
7620 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
7621
7622 * doc/invoke.texi: Remove stray explanation on
7623 -freduce-all-givs and -fmove-all-movables.
7624
7625 2004-09-17 James Morrison <phython@gcc.gnu.org>
7626
7627 * doc/cfg.texi: Use @smallexample.
7628 * doc/md.texi: Likewise.
7629 * doc/tree-ssa.texi: Likewise.
7630 * doc/extend.texi: Likewise. Use @r{} in comments.
7631 * doc/trouble.texi: Use @r{} in comments.
7632
7633 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
7634
7635 * configure.ac (gcc_cv_gld_version): Handle whitespace before
7636 "VERSION=".
7637 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
7638 * configure: Regenerate.
7639
7640 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
7641
7642 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
7643 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
7644 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
7645 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
7646 slashes in substitutions.
7647 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
7648
7649 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
7650
7651 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
7652 gimplify.c, lambda-code.c, optabs.c, predict.c,
7653 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
7654 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
7655 conventions.
7656
7657 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
7658
7659 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
7660 doc/extend.texi, doc/install.texi, doc/invoke.texi,
7661 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
7662 doc/trouble.texi: Use @option around options.
7663
7664 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
7665
7666 * Makefile.in (gen-protos.o): Depend on errors.h.
7667
7668 2004-09-17 Steven Bosscher <stevenb@suse.de>
7669
7670 PR tree-optimization/17513
7671 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
7672 for successors of the entry block.
7673
7674 2004-09-17 Uros Bizjak <uros@kss-loka.si>
7675
7676 PR rtl-optimization/15187
7677 * ifcvt.c (noce_try_cmove_arith): Exit early if total
7678 insn_rtx_cost of both branches > BRANCH_COST
7679
7680 2004-09-16 Diego Novillo <dnovillo@redhat.com>
7681
7682 PR tree-optimization/17528
7683 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
7684 erase the may-alias set for a tag when merging it with
7685 another.
7686
7687 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
7688
7689 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
7690 for 32-bit TARGET_SHMEDIA.
7691 (call_value): Likewise.
7692
7693 2004-09-16 Diego Novillo <dnovillo@redhat.com>
7694
7695 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
7696 test apply only to TREE_STATIC and DECL_EXTERNAL.
7697
7698 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7699
7700 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
7701 * basic-block.h (get_dominated_by_region): Declare.
7702 * dominance.c (get_dominated_by_region): New function.
7703 * tree-cfg.c: Include cfglayout.h.
7704 (tree_duplicate_bb): Duplicate also phi nodes.
7705 (struct ssa_name_map_entry): New type.
7706 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
7707 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
7708 allocate_ssa_names, rewrite_to_new_ssa_names_def,
7709 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
7710 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
7711 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
7712 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
7713 rewrite_to_new_ssa_names, allocate_ssa_names,
7714 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
7715 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
7716 (copy_loop_headers): Use tree_duplicate_sese_region.
7717
7718 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
7719
7720 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
7721
7722 2004-09-16 Jeff Law <law@redhat.com>
7723
7724 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
7725 (rewrite_block_data): Remove, no longer used.
7726 (rewrite_initialize_block_local_data): Remove, no longer used.
7727 (rewrite_initialize_block): Mark parameters as unused as needed.
7728 Change references to the block local block_defs to be block_defs_stack.
7729 Push a marker onto the block_defs_stack.
7730 (ssa_rewrite_initialize_block): Similarly.
7731 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
7732 (ssa_register_new_def): No longer needs varray argument. Use
7733 block_defs_stack instead. No longer handle possibly null block_defs
7734 varray. Reverse order of items we push on the stack to make it
7735 easier to identify our marker.
7736 (register_new_def): No longer handle possibly null block_defs
7737 varray.
7738 (rewrite_finalize_block): Revamp to look for markers in the global
7739 block_defs_stack varray rather than wiping a block local varray.
7740 Mark arguments as unused as needed.
7741 (ssa_rewrite_finalize_block): Similarly.
7742 (rewrite_into_ssa): Update initialization of dom walker structure
7743 to reflect that we don't need block local data anymore. Initialize
7744 the block_defs_stack varray.
7745 (rewrite_ssa_into_ssa): Similarly.
7746 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
7747 (struct dom_walk_data): Kill block_defs field.
7748 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
7749 (thread_across_edge): Use the global block_defs_stack instead of
7750 the old block_defs varray.
7751 (dom_opt_initialize_block_local_data): Update now that we don't have
7752 block_defs field to check anymore.
7753 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
7754 (restore_currdefs_to_original_value): Use the new block_defs_stack
7755 instead of a block local varray.
7756 (dom_opt_finalize_block): Similarly.
7757 (record_equivalencs_from_phis): Similarly.
7758 (optimize_stmt, register_definitions_for_stmt): Similarly.
7759
7760 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
7761
7762 PR tree-optimization/17517
7763 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7764 coalesce same-root variables without checking for abnormal PHI usage.
7765
7766 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
7767
7768 * cfgloop.h (duplicate_loop): Add prototype.
7769 * cfgloopmanip.c (duplicate_loop): Make non-static.
7770 * lambda-code.c (perfect_nestify): Factor out test whether
7771 we can handle this loop into separate function.
7772 Call it.
7773 (can_convert_to_perfect_nest): New function.
7774 (replace_uses_of_x_with_y): Add modify_stmt call.
7775 * tree-loop-linear.c (linear_transform_loops): Call
7776 rewrite_into_loop_closed_ssa and free_df.
7777
7778 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
7779
7780 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
7781 loop invariant as well.
7782 (perfect_nestify): new function.
7783 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
7784 upper bounds, and steps.
7785 Set outerinductionvar properly.
7786 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
7787 parameters.
7788 Return NULL if we need a perfect loop and can't make one.
7789 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
7790 (not_interesting_stmt): New function.
7791 (phi_loop_edge_uses_def): Ditto.
7792 (stmt_uses_phi_result): Ditto.
7793 (stmt_is_bumper_for_loop): Ditto.
7794 (perfect_nest_p): Ditto.
7795 (nestify_update_pending_stmts): Ditto.
7796 (replace_uses_of_x_with_y): Ditto.
7797 (stmt_uses_op): Ditto.
7798 (perfect_nestify): Ditto.
7799 * lambda-mat.c (lambda_matrix_id_p): New function.
7800 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
7801 * lambda.h: Update prototypes.
7802 * tree-loop-linear (linear_transform_loop): Use new
7803 perfect_nest_p. Detect and ignore identity transform.
7804 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
7805
7806 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
7807
7808 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
7809 Gather also strides of accessed data. Pass in the data references
7810 array.
7811 (try_interchange_loops): Add a new heuristic for handling the temporal
7812 locality. Pass in the data references array.
7813 (linear_transform_loops): Pass the data references array to
7814 try_interchange_loops.
7815
7816 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
7817
7818 * doc/invoke.texi: Fix typos. Follow spelling conventions.
7819
7820 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
7821
7822 * doc/c-tree.texi (Classes): Remove index entries for
7823 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
7824
7825 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7826
7827 * fold-const.c (fold): Fold difference of addresses.
7828 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
7829 get_inner_reference.
7830 * tree-ssa-loop-ivopts.c (peel_address): Removed.
7831 (ptr_difference_const): Moved to fold-const.c.
7832 (split_address_cost): Use get_inner_reference instead of peel_address.
7833 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
7834 * tree.h (ptr_difference_const): Export.
7835
7836 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
7837 variable type to the dump. Fix indentation.
7838 (idx_find_step): Handle nonconstant array_ref_element_size and
7839 array_ref_low_bound.
7840 (idx_record_use): Handle array_ref_element_size and
7841 array_ref_low_bound.
7842 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
7843 statements correctly.
7844 (get_computation_at, iv_value): Do not unshare expressions here.
7845 (rewrite_use_outer): Unshare the expression before it is emitted
7846 to code.
7847 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
7848 Moved to tree.c.
7849 * tree.c (unsigned_type_for, signed_type_for): Moved from
7850 tree-ssa-loop-niter.c. Use langhooks.
7851 * tree.h (signed_type_for): Export.
7852
7853 2004-09-16 David Edelsohn <edelsohn@gnu.org>
7854
7855 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
7856 prototype.
7857
7858 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
7859
7860 PR target/11572
7861 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
7862 Add two parameters to extra_includes.
7863 (C_INCPATH_INIT): Remove.
7864 * c-incpath.c (register_include_chains): Call extra_pre_includes
7865 before adding the standard include directory.
7866 Update call to extra_includes.
7867 (!defined TARGET_EXTRA_INCLUDES): Update
7868 hook_void_charptr_charptr_int and add !define
7869 TARGET_EXTRA_PRE_INCLUDES.
7870 (!define TARGET_EXTRA_INCLUDES): Define as
7871 hook_void_charptr_charptr_int.
7872 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
7873 (target_c_incpath): Always declare.
7874 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
7875 empty function.
7876 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
7877 * config/darwin.h: (darwin_register_frameworks): Update for
7878 the two new parameters.
7879 (darwin_register_objc_includes): Add prototype.
7880 (TARGET_EXTRA_PRE_INCLUDES): Define.
7881 * config/darwin-c.c (darwin_register_objc_includes): New function.
7882 (darwin_register_frameworks): Update for the two new parameters.
7883 (target_c_incpath): Remove.
7884 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
7885 the compile line.
7886 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
7887 parameters.
7888 (TARGET_EXTRA_PRE_INCLUDES): Document.
7889
7890 * gcc.c (spec_function): Add replace-outfile.
7891 (replace_outfile_spec_function): New function.
7892 * config/darwin.h (LINK_SPEC): Add replace
7893 -lobjc with -lobjc-gnu if -fgnu-runtime is
7894 supplied.
7895 * invoke.texi (replace-outfile): Document.
7896
7897 2004-09-13 Jan Hubicka <jh@suse.cz>
7898
7899 * predict.c (expr_expected_value, strip_builtin_expect): New function.
7900 (tree_predict_by_opcode): Use it.
7901 (tree_estimate_probability): Add, for now disabled,
7902 strip_builtin_expect call.
7903
7904 2004-09-15 James E Wilson <wilson@specifixinc.com>
7905
7906 PR target/17455
7907 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
7908 if current_function_decl is a sibcall.
7909
7910 2004-09-15 Mark Mitchell <mark@codesourcery.com>
7911
7912 * varasm.c (default_function_rdodata_section): Make sure to pass
7913 along a decl for a link-once section.
7914
7915 2004-09-15 Richard Henderson <rth@redhat.com>
7916
7917 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
7918 warning with code disable. Fix formatting.
7919
7920 2004-09-15 Steven Bosscher <stevenb@suse.de>
7921
7922 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
7923 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
7924 after propagating into an ADDR_EXPR.
7925
7926 2004-09-15 Andrew Pinski <apinski@apple.com>
7927
7928 PR rtl-opt/17427
7929 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
7930 Move it out of gcc_assert.
7931
7932 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
7933
7934 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
7935 except.c, fold-const.c, function.c, langhooks.c, params.c,
7936 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
7937 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
7938 for quoting in diagnostics going through pretty-print.c. Use ''
7939 for quoting in other diagnostic text.
7940 * langhooks.c: Include intl.h. Mark text locating diagnostics for
7941 translation.
7942 * Makefile.in (langhooks.o): Update dependencies.
7943 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
7944 formats.
7945
7946 2004-09-15 Mark Mitchell <mark@codesourcery.com>
7947
7948 * configure.ac: Check for COMDAT support. Robustify check for
7949 SHF_MERGE support.
7950 * configure: Regenerated.
7951 * config.in: Likewise.
7952 * langhooks-def.h (lhd_comdat_group): New function.
7953 (LANG_HOOKS_COMDAT_GROUP): New macro.
7954 (LANG_HOOKS_DECLS): Use it.
7955 * langhooks.c (lhd_comdat_group): Define.
7956 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
7957 * output.h (named_section_flags): Make it a macro.
7958 (named_section_real): New function.
7959 (default_no_named_section): Add decl parameter.
7960 (default_elf_asm_named_section): Likewise.
7961 (default_coff_asm_named_section): Likewise.
7962 (default_pe_asm_named_section): Likewise.
7963 * target.h (gcc_target): Adjust type of named_section.
7964 * varasm.c (named_section_flags): Rename to named_section_real.
7965 Add decl parameter.
7966 (default_no_named_section): Add decl parameter.
7967 (default_elf_asm_named_section): Use COMDAT, if available. Deal
7968 with the case that ASM_COMMENT_START is "@".
7969 (default_coff_asm_named_section): Add decl parameter.
7970 (default_pe_asm_named_section): Likewise.
7971 * config/alpha/alpha.c (vms_asm_named_section): Add decl
7972 parameter.
7973 (unicosmk_asm_named_section): Likewise.
7974 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
7975 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
7976 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
7977 * config/cris/cris-protos.h (cris_target_asm_named_section):
7978 Likewise.
7979 * config/cris/cris.c (cris_target_asm_named_section):
7980 Likewise.
7981 * config/darwin/darwin-protos.h (darwin_asm_named_section):
7982 Likewise.
7983 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
7984 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
7985 * config/i386/i386-protos.h (i386_pe_asm_named_section):
7986 Likewise.
7987 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
7988 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
7989 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
7990 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
7991 Likewise.
7992 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
7993 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
7994 * cp/cp-tree.h (cxx_comdat_group): Declare.
7995 * cp/decl.c (cxx_comdat_group): New function.
7996
7997 2004-09-15 Jan Hubicka <jh@suse.cz>
7998
7999 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
8000 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
8001
8002 * tree-cfg.c (remove_bb): Release SSA defs.
8003
8004 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
8005
8006 * doc/tm.texi: Follow spelling conventions.
8007
8008 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
8009
8010 * tree-ssa-dom.c: Fix comment typos.
8011
8012 2004-09-15 Alan Modra <amodra@bigpond.net.au>
8013
8014 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
8015 include ccr.
8016 (ppc_fallback_frame_state): Save location of CR.
8017
8018 2004-09-15 Jakub Jelinek <jakub@redhat.com>
8019
8020 * expr.c (string_constant): Handle also read-only variables
8021 initialized to string literals.
8022
8023 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
8024 into memcpy (x, y, 1) if memcpy can be expanded inline.
8025
8026 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8027
8028 PR tree-optimization/17468
8029 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
8030 definition inside a block precede uses.
8031 * tree-tailcall.c (adjust_return_value): Emit statements in the
8032 correct order.
8033
8034 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
8035
8036 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
8037
8038 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
8039
8040 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
8041
8042 2004-09-14 Jeff Law <law@redhat.com>
8043
8044 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
8045 (struct dom_walk_block_data): Remove avail_exprs member.
8046 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
8047 (lookup_avail_expr): No longer need to pass in address of
8048 the block local available exprs stack. All callers changed.
8049 (simplify_cond_and_lookup_avail_expr): Similarly.
8050 (simplify_switch_and_lookup_avail_expr): Similarly.
8051 (get_eq_expr_value, record_cond): Likewise.
8052 (record_dominating_conditions): Likewise.
8053 (update_rhs_and_lookup_avail_expr): Likewise.
8054 (record_equivalences_from_stmt): Likewise.
8055 (dom_opt_initialize_block_local_data): No longer test state of
8056 block local avail_exprs.
8057 (dom_opt_initialize_block): Mark unwind point in the global
8058 avail_expr stack.
8059 (remove_expressions_from_table): Update to unwind to the
8060 most recent unwind marker in the global avail_expr stack.
8061 All callers changed.
8062 (dom_opt_finalize_block): Mark unwind point in the global
8063 avail_expr stack as needed.
8064 (record_cond): Push elements into the global avail_exprs stack.
8065
8066 * tree-dfa.c (free_df_for_stmt): No longer static.
8067 (free_df): Update comments.
8068 * tree-flow.h (free_df_for_stmt): Prototype.
8069 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
8070 call release_defs.
8071
8072 2004-09-14 Diego Novillo <dnovillo@redhat.com>
8073
8074 PR tree-optimization/17252
8075 * tree-ssa-alias.c (may_alias_p): Don't assume that a
8076 pointer may not point to itself when using relaxed
8077 aliasing rules.
8078
8079 2004-09-14 Richard Henderson <rth@redhat.com>
8080
8081 PR middle-end/17397
8082 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
8083 while folding <ADDR_EXPR <INDIRECT_REF X>>.
8084
8085 2004-09-14 Andrew Pinski <apinski@apple.com>
8086
8087 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
8088 sets of the pointers but the aliasing sets of what they point to.
8089
8090 2004-09-14 Roger Sayle <roger@eyesopen.com>
8091
8092 PR rtl-optimization/9771
8093 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
8094 conditional compilation in init_reg_sets_1.
8095 (init_reg_sets_1): Let global_regs[i] take priority over the frame
8096 (but not stack) pointer exceptions to regs_invalidated_by_call.
8097 (globalize_reg): Globalizing a fixed register may need to update
8098 regs_invalidated_by_call.
8099
8100 2004-09-14 Diego Novillo <dnovillo@redhat.com>
8101
8102 PR tree-optimization/15262
8103 * tree-dfa.c (dump_variable): Also print the type of the
8104 variable.
8105 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
8106 memory tags are of conflicting alias sets but have no aliased
8107 symbols in common, add one tag to the alias set of the other.
8108 (setup_pointers_and_addressables): Remove hack to deal with
8109 programs with no aliased symbols.
8110 (may_alias_p): Don't special case aggregate types.
8111
8112 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
8113
8114 PR c/15498
8115 * doc/invoke.texi (Environment Variables): Correct example locale.
8116
8117 2004-09-14 Jan Hubicka <jh@suse.cz>
8118
8119 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
8120
8121 2004-09-14 Mark Mitchell <mark@codesourcery.com>
8122
8123 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
8124
8125 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
8126
8127 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
8128 restrict_p.
8129 (struct c_declarator): Change u.array.quals and pointer_quals to
8130 int. Add u.array.attrs.
8131 (quals_from_declspecs): New.
8132 * c-decl.c (quals_from_declspecs): New.
8133 (shadow_tag_warned): Give more specific message for useless type
8134 qualifiers.
8135 (build_array_declarator, set_array_declarator_inner,
8136 grokdeclarator, make_pointer_declarator, build_null_declspecs,
8137 declspecs_add_qual): Update for changed structures.
8138
8139 2004-09-14 Jeff Law <law@redhat.com>
8140
8141 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
8142 to a global varray.
8143 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
8144 (dom_opt_initialize_block_local_data): No longer test state
8145 of stmts_to_rescan.
8146 (dom_opt_finalize_block): Update due to change in scope of
8147 stmts_to_rescan.
8148 (optimize_stmt): Similarly.
8149
8150 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8151
8152 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
8153 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
8154 comment typos. Follow spelling conventions.
8155
8156 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8157
8158 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
8159 config/i386/predicates.md, config/sparc/sparc.c: Follow
8160 spelling conventions.
8161
8162 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8163 Steven Bosscher <stevenb@suse.de>
8164
8165 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
8166 * basic-block.h (struct reorder_block_def): Add copy_number field.
8167 * cfgloop.h (biv_p): Declare.
8168 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
8169 * common.opt (fsplit-ivs-in-unroller): New flag.
8170 * loop-iv.c (biv_p): New function.
8171 * loop-unroll.c: Include hashtab.h and recog.h.
8172 (struct iv_to_split, struct split_ivs_info): New types.
8173 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
8174 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
8175 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
8176 insert_base_initialization, split_iv): New functions.
8177 (peel_loop_completely, unroll_loop_constant_iterations,
8178 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
8179 Use them.
8180 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
8181
8182 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8183
8184 * tree-cfg.c (thread_jumps): Update dominators correctly in
8185 case destination of threaded edge dominates its source.
8186
8187 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8188
8189 * unroll.c: Removed.
8190 * loop.h: Removed.
8191 * Makefile.in (LOOP_H, unroll.o): Removed.
8192 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
8193 dependency.
8194 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
8195 reference.
8196 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
8197 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
8198 * loop.c: Do not include loop.h.
8199 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
8200 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
8201 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
8202 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
8203 struct loop_regs, struct loop_movables, struct loop_info): Moved
8204 from loop.h.
8205 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
8206 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
8207 find_common_reg_term, loop_iterations, final_giv_value): Moved
8208 from unroll.c.
8209 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
8210 loop_dump_stream, for_each_insn_in_loop, express_from,
8211 extend_value_for_giv, loop_iv_add_mult_emit_before,
8212 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
8213 loop_insn_first_p, get_condition_for_loop,
8214 loop_insn_emit_before, loop_insn_hoist,
8215 loop_insn_sink): Made static.
8216 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
8217 reference.
8218 (strength_reduce): Do not call unroller.
8219 (record_giv): Do not initialize unrolled field.
8220 (prescan_loop): Do not set loop_info->preconditioned.
8221 * passes.c: Do not include loop.h.
8222 (rest_of_handle_loop_optimize): Do not call unroller.
8223 * predict.c: Do not include loop.h.
8224 * rtl.h (NOTE_PRECONDITIONED): Removed.
8225 * stmt.c: Do not include loop.h.
8226 * toplev.c: Do not include loop.h.
8227 (process_options): Do not handle flag_old_unroll_loops.
8228
8229 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
8230 Documentation removed.
8231 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
8232
8233 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
8234
8235 * Makefile.in (STAGE1_CHECKING): New variable.
8236 (stage1_build): Use it.
8237 * tree-ssa.c (verify_ssa): Preserve state of dominance
8238 information.
8239
8240 2004-09-14 Uros Bizjak <uros@kss-loka.si>
8241
8242 * config/i386/i386.c (output_fp_compare): Add generation
8243 of ftst instruction.
8244 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
8245 Use output_fp_compare () function.
8246 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
8247 (fix_truncdi_memory): Remove operands[5] copy.
8248
8249 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8250
8251 * config/m32r/m32r.md, config/m68k/m68kelf.h,
8252 config/mcore/mcore.md, config/rs6000/linux64.h,
8253 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
8254 typos.
8255
8256 2004-09-13 James E Wilson <wilson@specifixinc.com>
8257
8258 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
8259 * gen-protos.c: Include errors.h.
8260 (progname): Delete.
8261
8262 2004-09-14 Jan Hubicka <jh@suse.cz>
8263
8264 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
8265 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
8266 (predict_loops): Use number_of_iterations_exit to predict
8267 number of iterations on trees.
8268
8269 2004-09-13 Dale Johannesen <dalej@apple.com>
8270
8271 PR 17408
8272 PR 17409
8273 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
8274 objects declared extern.
8275
8276 2004-09-14 Paul Brook <paul@codesourcery.com>
8277
8278 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
8279 HOST_WIDE_INT.
8280
8281 2004-09-13 Daniel Jacobowitz <dan@debian.org>
8282
8283 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
8284 Only use TYPE_BINFO for aggregates.
8285
8286 2004-09-13 Daniel Jacobowitz <dan@debian.org>
8287
8288 * expmed.c (synth_mult): Initialize latency. Check cost before
8289 checking ops count.
8290
8291 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
8292
8293 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
8294 add_call_clobber_ops and add_call_read_ops.
8295 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
8296 the number of vdefs and vuses inserted based on analysis of global
8297 variables across calls. * tree-dfa.c (find_referenced_vars):
8298 Needed to reset static var maps before each function is compiled.
8299 * cgraphunit.c:
8300 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
8301 static_vars_info,functions_to_static_vars_info,module_statics_escape,
8302 all_module_statics,searchc_env,dfs_info): New fields to support
8303 analysis of static global variables.
8304 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
8305 cgraph_reset_static_var_maps, get_global_static_vars_info,
8306 get_global_statics_not_read, get_global_statics_not_written,
8307 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
8308 check_rhs_var, check_lhs_var, get_asm_expr_operands,
8309 process_call_for_static_vars, scan_for_static_refs,
8310 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
8311 clear_static_vars_maps, cgraph_propagate_bits,
8312 cgraph_characterize_statics): New. Functions to support analysis
8313 of static global variables.
8314 (cgraph_mark_local_and_external_functions): Renamed from:
8315 (cgraph_mark_local_functions)
8316 (cgraph_expand_all_functions): Remove call to
8317 cgraph_mark_local_and_external_functions.
8318 (cgraph_optimize): Added driver to analyze static variables whose
8319 scope is within the compilation unit. * cgraph.h (struct
8320 cgraph_local_info, GTY): Added statics_read, statics_written,
8321 local, calls_read_all, calls_write_all, for_functions_valid.
8322 (struct cgraph_node): Added next_cycle. * cgraph.c
8323 (dump_cgraph_node): Added print routines for new fields. *
8324 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
8325 list.
8326
8327 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
8328
8329 * c-decl.c (grokdeclarator): Correct comments about where storage
8330 class specifiers are rejected by grammar and add corresponding
8331 asserts. Diagnose typedefs and parameters declared inline.
8332 Change warning for inline main to a pedwarn. Only diagnose inline
8333 main if hosted.
8334 (declspecs_add_scspec): Allow duplicate "inline".
8335
8336 2004-09-13 Steve Ellcey <sje@cup.hp.com>
8337
8338 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
8339 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
8340
8341 2004-09-13 Richard Henderson <rth@redhat.com>
8342
8343 PR 17436
8344 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
8345 (tree_type): Replace spare with contains_placeholder_bits.
8346 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
8347 make static. Remove seen_types list.
8348 (type_contains_placeholder_p): New.
8349
8350 2004-09-13 James E Wilson <wilson@specifixinc.com>
8351
8352 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
8353 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
8354 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
8355 bdesc_arrays instead of mips_bdesc.
8356 (mips_init_builtins): Likewise.
8357 * config/mips/mips.h (TARGET_SB1): New.
8358 (HAVE_SQRT_P): Delete.
8359 * config/mips/mips.md (divide_condition): Support V2SF.
8360 (sqrt_condition, recip_condition): New.
8361 (div<mode>3): Use ANYF instead of SCALARF.
8362 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
8363 MODE.
8364 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
8365 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
8366 instead of MODE.
8367 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
8368 instead of SCALARF. Use UNITMODE instead of MODE.
8369
8370 2004-09-13 Zack Weinberg <zack@codesourcery.com>
8371
8372 * config.in: Regenerate after removal of libbanshee.
8373
8374 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
8375
8376 PR tree-optimization/17400
8377 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8378 coalesce partitions when one occurs in an abnormal PHI.
8379
8380 2004-09-13 Andrew Pinski <apinski@apple.com>
8381
8382 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
8383 name to _new_size.
8384
8385 2004-09-13 Richard Henderson <rth@redhat.com>
8386
8387 PR inline-asm/6806
8388 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
8389 (cselib_invalidate_rtx_note_stores): New.
8390 (cselib_record_sets, cselib_process_insn): Update to match.
8391 * cselib.h (cselib_invalidate_rtx): Declare.
8392 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
8393
8394 2004-09-13 Richard Henderson <rth@redhat.com>
8395
8396 PR tree-opt/10528
8397 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
8398 after copying its argument.
8399
8400 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
8401
8402 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
8403 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
8404 in diagnostics. Use %' for English apostrophes.
8405 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
8406 (pedwarn_c90, pedwarn_c99): Use it.
8407 * c-decl.c (lookup_label): Quote label name in diagnostic.
8408 * c-parse.in (yyprint): Use ' instead of ` for left quote.
8409 * c-typeck.c (warn_for_assignment): Likewise.
8410
8411 2004-09-13 Jan Hubicka <jh@suse.cz>
8412
8413 * i386.c (x86_schedule): New global variable.
8414 (override_options): Disable scheduling when not supported.
8415 * i386.h (x86_schedule): Declare.
8416 (TARGET_SCHEDULE): New macro.
8417
8418 2004-09-12 Richard Henderson <rth@redhat.com>
8419
8420 PR c++/16254
8421 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
8422 * tree.c, tree.h (has_cleanups): Remove.
8423
8424 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8425
8426 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
8427 arguments of the phi nodes correctly.
8428
8429 2004-09-12 Jan Hubicka <jh@suse.cz>
8430
8431 * ggc-common.c (cmp_statistics): Fix sorting.
8432
8433 2004-09-12 David Edelsohn <edelsohn@gnu.org>
8434
8435 PR target/16795
8436 * expmed.c (expand_divmod): If cheap power of 2 divide is
8437 available, use it for negative constant as well.
8438
8439 2004-09-12 Andrew Pinski <apinski@apple.com>
8440
8441 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
8442 size of 0.
8443
8444 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
8445
8446 2004-09-12 Richard Henderson <rth@redhat.com>
8447
8448 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
8449 or minus one.
8450 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
8451 post-reload, and scratch NULL.
8452 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
8453 (x86_shift_adj_2): Use ix86_expand_clear.
8454 (ashldi3): Remove CMOVE expansion difference.
8455 (ashldi3_1): Remove.
8456 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
8457 add constraints for immediates. New peephole for split-with-temp.
8458 Run splitter after peep2 pass.
8459 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
8460 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
8461 (setcc_2): Rename with *.
8462 * config/i386/predicates.md (reg_or_pm1_operand): New.
8463 (ashldi_input_operand): New.
8464
8465 2004-09-12 Richard Henderson <rth@redhat.com
8466
8467 * print-rtl.c (print_decl_name): New.
8468 (print_mem_expr): Use it.
8469
8470 2004-09-12 Richard Henderson <rth@redhat.com
8471
8472 PR 17186, part deux
8473 * except.c (sjlj_emit_function_exit): Fix logic locating
8474 sjlj_exit_after in final block.
8475
8476 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
8477
8478 * common.opt: Remove flags -fmove-all-movables and
8479 -freduce-all-givs.
8480 * loop-invariant.c (find_invariants_to_move):
8481 Remove all uses of flag_move_all_movables.
8482 * loop.c (move_movables): Remove all uses of
8483 flag_move_all_movables.
8484 (strength_reduce): Remove all uses of
8485 flag_reduce_all_givs.
8486 * doc/invoke.texi: Remove documentation of flags
8487 -fremove-all-movables and -freduce-all-givs.
8488
8489 2004-09-11 Roger Sayle <roger@eyesopen.com>
8490
8491 PR middle-end/17411
8492 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
8493 change. elt->type may be a floating point type, so use fold_convert.
8494
8495 2004-09-11 Geoffrey Keating <geoffk@apple.com>
8496
8497 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
8498 the thing referenced as used, not the stub itself.
8499
8500 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
8501
8502 * c-tree.h (enum c_storage_class): New.
8503 (struct c_declspecs): Add storage_class, inline_p and thread_p.
8504 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
8505 declarations and "auto" or "register" in file scope empty
8506 declarations. Give more specific warnings for other cases of
8507 storage class specifiers in empty declarations.
8508 (grokdeclarator): Update for new structures. Don't check for
8509 multiple storage classes. Diagnose file-scope "register" if
8510 pedantic.
8511 (build_null_declspecs): Update.
8512 (declspecs_add_scspec): Update. Diagnose multiple storage class
8513 specifiers and invalid uses of "__thread".
8514
8515 2004-09-11 Zack Weinberg <zack@codesourcery.com>
8516
8517 * tree.c (tree_code_size): New function, bulk of code from tree_size.
8518 (tree_size, make_node): Use it.
8519 * tree-ssa-pre.c (init_pre): Use it.
8520 * tree.h: Prototype it.
8521
8522 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8523
8524 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
8525 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
8526 redirect_immediate_use): Use PHI_DF.
8527 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
8528 (bb_for_stmt): Use PHI_BB.
8529 (get_immediate_uses): Use PHI_DF.
8530 * tree-ssa-dse.c (max_stmt_uid): New variable.
8531 (get_stmt_uid): New function.
8532 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
8533 node annotations.
8534 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
8535 (max_uid): Renamed to max_stmt_uid.
8536 (get_stmt_uid): New function.
8537 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
8538 phi node annotations.
8539 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
8540 * tree.h (PHI_BB, PHI_DF): New accessor functions.
8541 (struct tree_phi_node): Add bb and df fields.
8542
8543 2004-09-11 Richard Henderson <rth@redhat.com>
8544
8545 PR middle-end/17416
8546 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
8547 in conflict loop.
8548
8549 2004-09-11 Jan Hubicka <jh@suse.cz>
8550
8551 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
8552 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
8553 * i386.md (i387_cw): Add 'uninitialized' mode.
8554
8555 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
8556 (output_location): Break out from ....
8557 (branch_prob): ... here; handle gcov output on trees.
8558 * toplev.c (process_options): No longer be sorry about coverage for
8559 trees.
8560
8561 2004-09-11 Steven Bosscher <stevenb@suse.de>
8562
8563 PR c++/17412
8564 * fold-const.c (fold): Do not try to fold the operand of a
8565 CLEANUP_POINT_EXPR if that operand does itself not have any
8566 operands.
8567
8568 PR middle-end/17417
8569 * langhooks.c (lhd_decl_printable_name): Make sure that this
8570 function is called with is a decl node that has an identifier.
8571 * tree-pretty-print.c (dump_function_name): New function to
8572 wrap PRINT_FUNCTION_NAME and dump_decl_name.
8573 (print_call_name): Use it.
8574
8575 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
8576
8577 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
8578 "config.h" if not.
8579
8580 2004-09-11 Jakub Jelinek <jakub@redhat.com>
8581
8582 * tree-ssa-alias.c (collect_points_to_info_r): Handle
8583 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
8584 to OFFSET.
8585
8586 2004-09-11 Richard Henderson <rth@redhat.com>
8587
8588 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
8589 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
8590 operand of the ADDR_EXPR.
8591 (expand_expr_real_1): Update to match.
8592
8593 2004-09-11 David Edelsohn <edelsohn@gnu.org>
8594
8595 PR target/17277
8596 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
8597 choose 64-bit version.
8598
8599 2004-09-11 Richard Henderson <rth@redhat.com>
8600
8601 PR c/17396
8602 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
8603
8604 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
8605
8606 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
8607 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
8608 Insert @: after i.e. or e.g.
8609
8610 2004-09-10 Geoffrey Keating <geoffk@apple.com>
8611
8612 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
8613 D.xxx rather than <Dxxx>.
8614
8615 2004-09-10 Adam Nemet <anemet@lnxw.com>
8616
8617 * configure.ac (AC_MSG_CHECKING(what linker to use)):
8618 in_tree_ld_is_elf should be true for LynxOS.
8619 * configure: Regenerate.
8620
8621 2004-09-10 Adam Nemet <anemet@lnxw.com>
8622
8623 * Makefile.in (all.cross): Add srcextra.
8624
8625 2004-09-10 Roger Sayle <roger@eyesopen.com>
8626
8627 PR middle-end/17024
8628 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
8629 floating point comparison operators. Change aborts to gcc_asserts.
8630
8631 2004-09-10 Geoffrey Keating <geoffk@apple.com>
8632
8633 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
8634
8635 2004-09-10 James E Wilson <wilson@specifixinc.com>
8636
8637 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
8638 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
8639
8640 * convert.c (convert_to_vector): Replace recursive call with
8641 error_mark_node.
8642
8643 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
8644 Add integer argument named constant. Use const_tiny_rtx instead of
8645 CONST0_RTX.
8646 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
8647 and CONST1_RTX.
8648 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
8649 vector types.
8650 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
8651 of gen_rtx_raw_CONST_VECTOR.
8652
8653 2004-09-10 Eric Christopher <echristo@redhat.com>
8654
8655 PR c/16046
8656 * c-parse.in (attribute): Add NULL_TREE for error case
8657 for error recovery.
8658
8659 2004-09-10 Zack Weinberg <zack@codesourcery.com>
8660
8661 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
8662 (extract_interface_info): Delete prototype.
8663 * c-decl.c (extract_interface_info): Delete stub.
8664 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
8665 it's not already been done ...
8666 (init_c_lex): ... not here.
8667 (fe_file_change): Don't call extract_interface_info.
8668
8669 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
8670
8671 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
8672 typedef_p and typedef_signed_p.
8673 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
8674 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
8675 Check typedef_p and typedef_signed_p, not typedef_decl.
8676 (grokfield): Check typedef_p, not typedef_decl.
8677 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
8678 not typedef_decl.
8679 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
8680 typedef_decl.
8681
8682 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8683
8684 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
8685
8686 2004-09-10 Geoffrey Keating <geoffk@apple.com>
8687
8688 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
8689 temporary variables.
8690
8691 * dbxout.c (dbxout_block): Update for
8692 current_function_func_begin_label a string.
8693 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
8694 * except.c (dw2_output_call_site_table): Likewise.
8695 * toplev.c (current_function_func_begin_label): Likewise.
8696 * tree.h (current_function_func_begin_label): Likewise.
8697 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
8698
8699 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
8700 loop.
8701
8702 * config/darwin.c: Include target.h.
8703 (struct machopic_indirection): Make ptr_name a string.
8704 (machopic_indirection_hash): Update for ptr_name a string.
8705 (machopic_indirection_eq): Likewise.
8706 (machopic_indirection_name): Likewise.
8707 (machopic_output_indirection): Likewise.
8708 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
8709 string. Don't expect stub names to be in the identifier hash table.
8710 Do call strip_name_encoding before looking up entry in ID hash table.
8711 * config/t-darwin (darwin.o): Add target.h to dependencies.
8712
8713 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
8714 of fprintf for register names.
8715
8716 * output.h (unlikely_section_label): Delete declaration.
8717 (unlikely_text_section_name): Likewise.
8718 * varasm.c (unlikely_section_label_printed): Make static.
8719 (unlikely_section_label): Likewise.
8720 (unlikely_text_section_name): Likewise.
8721 (assemble_start_function): Use reconcat.
8722
8723 * rtl.def (REG): Add comment to describe third field.
8724
8725 2004-09-10 Andrew Pinski <apinski@apple.com>
8726
8727 * config/darwin.c (machopic_mcount_stub_name): Call
8728 machopic_indirection_name instead of making the string
8729 ourselves.
8730
8731 2004-09-10 Diego Novillo <dnovillo@redhat.com>
8732
8733 Revert
8734
8735 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
8736
8737 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
8738 memory tag is call clobbered, so are its aliases.
8739 (group_aliases): When two memory tags being grouped, if one is
8740 call clobbered, so are the other and its aliases.
8741 (add_may_alias): Remove call-clobbering stuff.
8742 (replace_may_alias): Likewise.
8743 (merge_pointed_to_info): Merge pt_global_mem
8744
8745 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8746
8747 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
8748 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
8749 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
8750 tree-scalar-evolution.c, tree-ssa-copyrename.c,
8751 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
8752
8753 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
8754
8755 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
8756 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
8757 pair. Remove match_dup from inputs. Remove masaccs handling.
8758 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
8759 (masaccs, mdasaccs): Turn into define_insns.
8760
8761 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
8762
8763 * tree-tailcall.c (process_assignment): Only do accumulator transforms
8764 for floating-point types if flag_unsafe_math_optimizations.
8765
8766 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8767
8768 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
8769 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
8770 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
8771 config/h8300/h8300.md, config/i386/gmm_malloc.h,
8772 config/ia64/ia64.md, config/ip2k/libgcc.S,
8773 config/mips/mips-ps-3d.md, config/mips/mips.c,
8774 config/rs6000/rs6000.c, config/s390/s390.c,
8775 config/sh/symbian.c: Fix comment typos.
8776
8777 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
8778
8779 * config/s390/s390.c (s390_emit_prologue): Added missing
8780 "{}" brackets.
8781
8782 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8783
8784 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
8785 typos. Follow spelling conventions.
8786
8787 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
8788
8789 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
8790 in diagnostic. Don't dereference NULL TYPE_NAME.
8791
8792 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8793
8794 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
8795 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
8796 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
8797 value-prof.c: Fix comment typos. Follow spelling conventions.
8798
8799 2004-09-10 Jan Hubicka <jh@suse.cz>
8800
8801 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
8802 * tree-split_edge.c (tree_split_edge): Likewise.
8803 (thread_jumps): Likewise.
8804
8805 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8806
8807 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
8808 typos.
8809
8810 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
8811
8812 * cgraph.h (cgraph_dump_file): Do not declare.
8813 * cgraphunit.c (cgraph_dump_file): Declare as static.
8814 (init_cgraph): New.
8815 * toplev.c (cgraph_dump_file): Do not declare.
8816 (compile_file): Call init_cgraph.
8817 * tree-dump.c (dump_files): Add IPA dump file, remove
8818 XML dump of call graph.
8819 (get_dump_file_name): Support IPA dump file naming scheme.
8820 * tree.h (enum tree_dump_index): Add IPA dump file, remove
8821 XML dump of call graph.
8822 * doc/invoke.texi (Debugging Options): Document the new options.
8823
8824 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
8825
8826 * doc/extend.texi: Document the FR-V built-in functions.
8827
8828 2004-09-09 James E Wilson <wilson@specifixinc.com>
8829
8830 * doc/sourcebuild.texi: Delete libbanshee reference.
8831
8832 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
8833
8834 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
8835
8836 2004-09-09 James E Wilson <wilson@specifixinc.com>
8837
8838 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
8839 before calling vector_types_convertible_p.
8840 (digest_init): Check that inside_init has VECTOR_TYPE before calling
8841 vector_types_convertible_p. Don't give another error if
8842 convert_for_assignment returns error_mark_node.
8843
8844 2004-09-09 Roger Sayle <roger@eyesopen.com>
8845
8846 PR middle-end/17055
8847 * fold-const.c (build_zero_vector): New function to construct a
8848 vector (either floating point or integer) of zeros.
8849 (fold_convert): Internally, enable conversions of integer zero
8850 to arbitrary vector types, using the new build_zero_vector.
8851
8852 2004-09-09 Roger Sayle <roger@eyesopen.com>
8853
8854 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
8855 expand a left shift by an immediate constant as either an ashl or
8856 a sequence of additions.
8857 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
8858 instead of calling gen_ashlsi3 with a constant directly.
8859
8860 2004-09-09 Roger Sayle <roger@eyesopen.com>
8861
8862 * config/i386/i386.c (ix86_split_long_move): When optimizing for
8863 size, and the low and high parts of a DImode constant are equal,
8864 copy one register to another instead of loading the same immediate
8865 value twice.
8866
8867 2004-09-09 Richard Henderson <rth@redhat.com>
8868
8869 PR middle-end/17367
8870 * function.c (assign_parm_setup_block): Only put PARALLELs into
8871 a register if use_register_for_decl.
8872
8873 2004-09-09 Eric Christopher <echristo@redhat.com>
8874
8875 * ra-colorize.c (reset_lists): Move variable declaration inside
8876 ENABLE_CHECKING to avoid unused variable warnings when
8877 not --enable-checking.
8878 (check_colors): Ditto.
8879
8880 2004-09-09 Mike Stump <mrs@apple.com>
8881
8882 * version.c (version_string): Bump to 4.0.0.
8883 * doc/include/gcc-common.texi (version-GCC): Likewise.
8884
8885 2004-09-10 Jakub Jelinek <jakub@redhat.com>
8886
8887 * doc/extend.texi (nothrow attribute): The attribute is not
8888 implemented in 3.2 and earlier.
8889
8890 2004-09-09 Steve Ellcey <sje@cup.hp.com>
8891
8892 * genrecog.c (compute_predicate_codes): Use op0_codes
8893 instead of codes.
8894
8895 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
8896
8897 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
8898 implementation changes.
8899
8900 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
8901
8902 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
8903 a PARALLEL instead of a SET due to added clobbers.
8904
8905 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
8906
8907 * reload.c (find_reloads_address): Pass correct operand to
8908 maybe_memory_address_p.
8909
8910 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
8911
8912 * Makefile.in: Remove libbanshee, tree-alias-*.
8913 Remove tree-alias-common.h dependencies.
8914 * common.opt: Remove -ftree-points-to.
8915 * configure.ac: Remove libbanshee.
8916 * flags.h: Remove pta_type, flag_tree_points_to.
8917 * gengtype.c (open_base_files): Remove tree-alias-type.h.
8918 * opts.c (OPT_ftree_points_to): Remove.
8919 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
8920 * tree-dfa.c: Remove tree-alias-common.h
8921 * tree-into-ssa.c: Ditto.
8922 * tree-outof-ssa.c: Ditto.
8923 * tree-ssa-copyrename.c: Ditto.
8924 * tree-ssa-live.c: Ditto.
8925 * tree-optimize.c: Ditto.
8926 * tree-ssa.c: Ditto.
8927 Remove pass_build_pta, pass_del_pta.
8928 * tree-pass.h: Ditto.
8929 * tree-ssa-alias.c: Remove tree-alias-common.h.
8930 (struct alias_stats_d): Remove pta_queries, pta_resolved.
8931 (pass_may_alias): Remove PROP_pta requirement.
8932 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
8933 (get_tmt_for): Ditto.
8934 (dump_alias_stats): Ditto.
8935 * doc/passes.texi: Remove blurb about points-to analysis.
8936 * fortran/Make-lang.in: Remove tree-alias-*.o.
8937
8938 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
8939
8940 * genattrtab.c (write_insn_cases): New function, split out from
8941 write_attr_case. Correctly handle define_peepholes when printing
8942 the instruction name.
8943 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
8944
8945 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
8946
8947 PR target/17377
8948 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
8949 * config/cris/cris.c (cris_return_address_on_stack): New function.
8950 * config/cris/cris.md ("return"): For location of return address,
8951 also check cris_return_address_on_stack.
8952
8953 2004-09-09 Diego Novillo <dnovillo@redhat.com>
8954
8955 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
8956 calling phi_ssa_name_p.
8957
8958 2004-09-09 Richard Henderson <rth@redhat.com>
8959
8960 PR c/17322
8961 * c-typeck.c (valid_compound_expr_initializer): Use only
8962 initializer_constant_valid_p, and not TREE_CONSTANT.
8963 (digest_init): Likewise.
8964 (output_init_element): Likewise.
8965
8966 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8967
8968 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
8969 live_out_1, prune_hardregs_for_mode, init_one_web_common,
8970 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
8971 record_conflict, compare_and_free_webs, init_webs_defs_uses,
8972 parts_to_webs_1, parts_to_webs, reset_conflicts,
8973 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
8974 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
8975 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
8976 put_move, remove_move, combine, select_spill, colorize_one_web,
8977 try_recolor_web, insert_coalesced_conflicts, check_colors,
8978 break_precolored_alias, restore_conflicts_from_coalesce,
8979 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
8980 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
8981 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
8982 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
8983 check_df): Likewise.
8984 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
8985 real_arithmetic, real_compare, real_exponent, real_ldexp,
8986 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
8987 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
8988 real_digit, real_nan, real_maxval, round_for_format, real_convert,
8989 real_to_target, real_from_target, real_hash, encode_ieee_single,
8990 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
8991 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
8992 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
8993 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
8994 extract_insn, peep2_next_insn, peep2_reg_dead_p,
8995 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
8996 if_test_bypass_p): Likewise.
8997 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
8998 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
8999 emit_swap_insn, swap_to_top, move_for_stack_reg,
9000 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
9001 compensate_edge, convert_regs_1): Likewise.
9002 * regclass.c (init_reg_sets, init_reg_sets_1,
9003 memory_move_secondary_cost): Likewise.
9004 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
9005 Likewise.
9006 * reload.c (push_secondary_reload, find_valid_class, push_reload,
9007 operands_match_p, decompose, immune_p, find_reloads,
9008 find_reloads_toplev, find_reloads_address_1, subst_reloads,
9009 copy_replacements, refers_to_regno_for_reload_p,
9010 reg_overlap_mentioned_for_reload_p): Likewise.
9011 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
9012 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
9013 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
9014 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
9015 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
9016 do_output_reload, fixup_abnormal_edges): Likewise.
9017 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
9018 fill_slots_from_thread, relax_delay_slots): Likewise.
9019 * resource.c (mark_referenced_resources, mark_set_resources):
9020 Likewise.
9021 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
9022 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
9023 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
9024 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
9025 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
9026 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
9027 * rtlhooks.c (gen_lowpart_general): Likewise.
9028 * sbitmap.c (sbitmap_difference): Likewise.
9029 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
9030 sched_analyze, add_forward_dependence): Likewise.
9031 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
9032 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
9033 schedule_insns): Likewise.
9034 * sched-vis.c (print_pattern): Likewise.
9035 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
9036 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
9037 simplify_const_relational_operation, simplify_ternary_operation,
9038 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
9039 Likewise.
9040 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
9041 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
9042 resolve_operand_name_1, expand_return, expand_decl,
9043 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
9044 * stor-layout.c (put_pending_size, smallest_mode_for_size,
9045 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
9046 set_sizetype, get_mode_bounds): Likewise.
9047
9048 2004-09-09 Zack Weinberg <zack@codesourcery.com>
9049
9050 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
9051 * config/arm/pecoff.h, config/i386/beos-elf.h
9052 * config/i386/cygming.h, config/i386/i386-interix.h:
9053 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
9054 comment cloned from manual.
9055 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
9056
9057 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
9058
9059 * builtins.c (build_va_arg_indirect_ref): New function.
9060 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
9061 build_fold_indirect_ref.
9062 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
9063 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
9064 * tree.h: Declare new function.
9065
9066 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9067
9068 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
9069 dumping for development builds.
9070 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
9071 development builds only.
9072 * genattrtab.c (write_eligible_delay): Fix typo in previous
9073 commit.
9074 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
9075 gcc_assert.
9076
9077 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9078
9079 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
9080 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
9081 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
9082 hoist_code, extract_mentioned_regs_helper, compute_store_table,
9083 insert_store): Use gcc_assert and gcc_unreachable.
9084 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
9085 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
9086 ggc_record_overhead): Likewise.
9087 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
9088 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
9089 ggc_pop_context, clear_marks, validate_free_objects,
9090 ggc_pch_read): Likewise.
9091 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
9092 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
9093 ggc_push_context, check_cookies, ggc_collect,
9094 ggc_print_statistics): Likewise.
9095 * gimple-low.c (lower_function_body, lower_stmt,
9096 lower_bind_expr): Likewise.
9097 * gimplify.c (gimple_tree_eq, push_gimplify_context,
9098 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
9099 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
9100 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
9101 gimplify_case_label_expr, gimplify_exit_block_expr,
9102 canonicalize_component_ref, gimplify_compound_lval,
9103 gimplify_self_mod_expr, gimplify_call_expr,
9104 gimplify_init_ctor_eval, gimplify_init_constructor,
9105 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
9106 gimplify_expr, check_pointer_types_r,
9107 force_gimple_operand): Likewise.
9108 * global.c (global_alloc, build_insn_chain): Likewise.
9109 * graph.c (clean_graph_dump_file,
9110 finish_graph_dump_file): Likewise.
9111 gcov-io.c (gcov_open): Use GCOV_CHECK.
9112
9113 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
9114
9115 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
9116
9117 2004-09-09 Jan Hubicka <jh@suse.cz>
9118
9119 middle-end/17128
9120 * tree-inline.c (expand_call_inline): Make overactive sanity check
9121 happy.
9122
9123 2004-09-09 Jan Hubicka <jh@suse.cz>
9124
9125 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
9126 VIEW_CONVERT_EXPR.
9127
9128 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9129
9130 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
9131 (gengtype.o): Depend on errors.h.
9132 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
9133 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
9134 attr_alt_subset_p, attr_alt_subset_of_compl_p,
9135 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
9136 write_test_expr, write_attr_value, write_eligible_delay,
9137 make_internal_attr, make_numeric_value): Likewise.
9138 * genautomata.c (regexp_name, get_str_vect,
9139 gen_presence_absence_set, automaton_decl_hash,
9140 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
9141 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
9142 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
9143 test_unit_reserv, it_is_empty_reserv_sets,
9144 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
9145 reserv_sets_and, output_cycle_reservs, get_free_state,
9146 intersected_state_reservs_p, states_union, remove_arc,
9147 copy_insn_regexp, transform_1, transform_2, transform_3,
9148 regexp_transform_func, store_alt_unit_usage,
9149 check_regexp_units_distribution, process_seq_for_forming_states,
9150 process_alts_for_forming_states, make_automaton,
9151 form_arcs_marked_by_insn, create_composed_state,
9152 set_out_arc_insns_equiv_num, partition_equiv_class,
9153 process_insn_equiv_class, set_insn_equiv_classes,
9154 units_to_automata_heuristic_distr, form_regexp,
9155 longest_path_length, output_dfa_max_issue_rate, add_vect,
9156 out_state_arcs_num, add_vect_el, output_trans_table,
9157 output_state_alts_table, output_dead_lock_vect,
9158 output_max_insn_queue_index_def,
9159 output_min_insn_conflict_delay_func,
9160 output_internal_insn_latency_func, output_print_reservation_func,
9161 output_cpu_unit_reservation_p, output_state_arcs,
9162 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
9163 make_default_insn_latency_attr,
9164 form_important_insn_automata_lists): Likewise.
9165 * genemit.c (gen_exp, output_add_clobbers,
9166 output_added_clobbers_hard_reg_p): Likewise.
9167 * genextract.c (print_path, main): Likewise.
9168 * genflags.c (gen_macro): Likewise.
9169 * gengenrtl.c: Include errors.h
9170 (type_from_format, accessor_from_format): Likewise.
9171 * gengtype.c (get_file_basename, output_mangled_typename,
9172 walk_type, write_types_process_field,
9173 write_types_local_process_field): Likewise.
9174 * genmodes.c (complete_mode): Likewise.
9175 * genopinit.c (gen_insn): Likewise.
9176 * genoutput.c (output_insn_data, check_constraint_len,
9177 constraint_len): Likewise.
9178 * genpreds.c (add_mode_tests):Likewise.
9179 * gen-protos.c (add_hash): Likewise.
9180 * genrecog.c (find_operand, find_matching_operand,
9181 validate_pattern, add_to_sequence, maybe_both_true,
9182 nodes_identical_1, merge_trees, write_switch, write_cond,
9183 write_action, is_unconditional, make_insn_sequence,
9184 debug_decision_2): Likewise.
9185 * gensupport.c (is_predicable, collect_insn_data,
9186 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
9187
9188 2004-09-09 Jan Hubicka <jh@suse.cz>
9189
9190 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
9191 * cfgbuild.c (compute_outgoing_frequencies): When probability is
9192 missing, guess it.
9193 (find_many_sub_basic_blocks): Do update profile only when it is
9194 present.
9195 * predict.c (set_even_probabilities): Break out from ...
9196 (combine_predictions_for_insn): ... here; deal with
9197 !can_predict_insn_p insns.
9198 (combine_predictions_for_bb): Use set_even_probabilities.
9199 (bb_estimate_probability_locally): Break out from ....
9200 (estimate_probability): ... here.
9201 (guess_outgoing_edge_probabilities): New entry point.
9202
9203 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9204
9205 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
9206 handle_braces, process_brace_body, main, used_arg,
9207 set_multilib_dir, print_multilib_info): Use fatal, not abort.
9208
9209 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
9210
9211 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
9212 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
9213 Morgan's theorem in last checkin.
9214
9215 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
9216 Nathan Sidwell <nathan@codesourcery.com>
9217
9218 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
9219 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
9220 * timevar.c (timevar_push, timevar_pop, timevar_start,
9221 timevar_stop): Likewise.
9222 * toplev.c (default_pch_valid_p): Likewise.
9223 * tracer.c (tail_duplicate): Likewise.
9224 * tree-alias-common.c (get_alias_var_decl,
9225 get_values_from_constructor, create_alias_var, delete_alias_vars,
9226 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
9227 Likewise.
9228 * tree.c (tree_size, make_node_stat, copy_node_stat,
9229 build_int_cst_wide, integer_all_onesp, list_length, chainon,
9230 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
9231 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
9232 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
9233 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
9234 build_method_type_directly, decl_type_context, get_callee_fndecl,
9235 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
9236 tree_fold_gcd): Likewise.
9237 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
9238 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
9239 cleanup_control_expr_graph, find_taken_edge,
9240 find_taken_edge_switch_expr, phi_alternatives_equal,
9241 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
9242 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
9243 tree_split_edge, tree_verify_flow_info, thread_jumps,
9244 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
9245 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
9246 chrec_fold_multiply_poly_poly): Likewise.
9247 * tree-complex.c (extract_component, expand_complex_division,
9248 expand_complex_comparison, expand_complex_operations_1,
9249 build_replicated_const, expand_vector_operations_1): Likewise.
9250 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
9251 build_classic_dir_vector): Likewise.
9252 * tree-dfa.c (compute_immediate_uses_for_phi,
9253 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
9254 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
9255 * tree-dump.c (dequeue_and_dump): Likewise.
9256 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
9257 record_in_finally_tree, replace_goto_queue_1,
9258 maybe_record_in_goto_queue, verify_norecord_switch_expr,
9259 do_return_redirection): Likewise.
9260 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
9261 add_to_dst_predicate_list, find_phi_replacement_condition,
9262 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
9263 Likewise.
9264 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
9265 initialize_inlined_parameters, declare_return_variable,
9266 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
9267 optimize_inline_calls, copy_tree_r): Likewise.
9268 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
9269 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
9270 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
9271 tsi_split_statement_list_after, tsi_split_statement_list_before):
9272 Likewise.
9273 * tree-mudflap.c (mf_varname_tree): Likewise.
9274 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
9275 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
9276 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9277 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
9278 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
9279 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
9280 Likewise.
9281 * tree-phinodes.c (resize_phi_node, add_phi_arg,
9282 remove_all_phi_nodes_for): Likewise.
9283 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
9284 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
9285 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
9286 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
9287 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
9288 generate_one_element_ref, generate_element_copy,
9289 generate_element_zero, scalarize_copy, scalarize_init,
9290 scalarize_ldst): Likewise.
9291 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
9292 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
9293 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
9294 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
9295 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
9296 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
9297 widen_bitfield, ccp_fold_builtin): Likewise.
9298 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
9299 replace_exp_1, propagate_tree_value): Likewise.
9300 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9301 * tree-ssa-dce.c (set_control_dependence_map_bit,
9302 find_control_dependence, find_pdom, mark_operand_necessary,
9303 mark_stmt_if_obviously_necessary,
9304 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
9305 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
9306 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
9307 eliminate_redundant_computations, avail_expr_eq): Likewise.
9308 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
9309 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
9310 duplicate_blocks): Likewise.
9311 * tree-ssa-loop-im.c (for_each_index, set_level,
9312 is_call_clobbered_ref): Likewise.
9313 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
9314 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
9315 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
9316 peel_address, ptr_difference_cost, may_replace_final_value,
9317 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
9318 rewrite_use, rewrite_uses): Likewise.
9319 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
9320 check_loop_closed_ssa_use): Likewise.
9321 * tree-ssanames.c (make_ssa_name): Likewise.
9322 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
9323 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
9324 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
9325 get_indirect_ref_operands, add_stmt_operand): Likewise.
9326 * tree-ssa-pre.c (value_exists_in_set_bitmap,
9327 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
9328 phi_translate, valid_in_set, compute_antic,
9329 find_or_generate_expression, create_expression_by_pieces, insert_aux,
9330 create_value_expr_from, eliminate): Likewise.
9331 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
9332 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
9333 Likewise.
9334 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
9335 eliminate_tail_call): Likewise.
9336 * tree-vectorizer.c (vect_create_index_for_array_ref,
9337 vect_align_data_ref, vect_create_data_ref,
9338 vect_create_destination_var, vect_get_vec_def_for_operand,
9339 vect_finish_stmt_generation, vect_transform_stmt,
9340 vect_transform_loop_bound, vect_transform_loop,
9341 vect_analyze_operations): Likewise.
9342 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
9343 Likewise.
9344 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
9345 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
9346 bsi_after_labels, bsi_last): Likewise.
9347 * tree-ssa-live.c (var_union, change_partition_var,
9348 create_ssa_var_map, calculate_live_on_entry, root_var_init,
9349 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
9350 Likewise.
9351 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
9352 tpa_find_tree): Likewise.
9353 (register_ssa_partition_check): Declare.
9354 (register_ssa_partition): use it.
9355 * tree-ssa-live.c: Include errors.h.
9356 (register_ssa_partition_check): New.
9357 * tree-ssa-operands.c: Include errors.h.
9358 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
9359
9360 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
9361 Catherine Moore <clm@redhat.com>
9362
9363 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
9364 (FRV_CPU_FR405): New processor enums.
9365 (frv_issue_rate, frv_acc_group): Declare.
9366 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
9367 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
9368 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
9369 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
9370 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
9371 handled by CPP_SPEC.
9372 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
9373 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
9374 (ACC_MASK): New macro.
9375 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
9376 (TARGET_MEDIA_FR450): New macro.
9377 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
9378 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
9379 (LABEL_ALIGN_AFTER_BARRIER): Define.
9380 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
9381 (IACC_FIRST, IACC_LAST): New pair of SPRs.
9382 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
9383 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
9384 (REGISTER_NAMES): Add entries for new registers.
9385 (REG_CLASS_CONTENTS): Update for new register ranges.
9386 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
9387 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
9388 (PACKING_FLAG_USED_P): Delete.
9389 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
9390 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
9391 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
9392 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
9393 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
9394 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
9395 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
9396 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
9397 (CPU_UNITS_QUERY): Define to 1.
9398 * config/frv/frv.c: Include gt-frv.h
9399 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
9400 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
9401 (frv_insn_group): New enumeration.
9402 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
9403 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
9404 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
9405 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
9406 gap left by REGSTATE_LIVE.
9407 (regstate_t): New typedef.
9408 (TARGET_MACHINE_DEPENDENT_REORG): Define.
9409 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
9410 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
9411 Initialize frv_unit_codes[] and frv_type_to_unit[].
9412 (frv_conditional_register_usage): Remove redundant fixing of
9413 accumulator registers.
9414 (frv_insn_packing_flag): Update specification.
9415 (frv_function_prologue): Don't set frv_insn_packing_flag here.
9416 Zero out frv_nops[].
9417 (frv_expand_epilogue): Remove comments about the no-longer-present
9418 SIBCALL_P argument.
9419 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
9420 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
9421 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
9422 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
9423 packing is disabled and if INSN can only issue to M1.
9424 (call_operand): Check TARGET_LONG_CALLS.
9425 (acc_operand, even_acc_operand, quad_acc_operand)
9426 (accg_operand): Simplify. Don't accept pseudo registers.
9427 (output_move_single): Handle SPR<-zero moves.
9428 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
9429 (frv_registers_update, frv_registers_used_p): Delete.
9430 (frv_registers_set_p): Delete.
9431 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
9432 (frv_issues_to_branch_unit_p): New function.
9433 (frv_packet): New structure.
9434 (frv_cond_flags, frv_regstate_conflict_p): New functions.
9435 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
9436 (frv_registers_update_1, frv_registers_update): New functions.
9437 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
9438 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
9439 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
9440 (frv_sort_insn_group, frv_reorder_packet): New functions.
9441 (frv_pack_insns): Use frv_reorder_packet.
9442 (frv_packet_address): New variable.
9443 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
9444 (frv_register_nop, frv_reorg): New functions.
9445 (bdesc_1arg): Add __SCUTSS.
9446 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
9447 __SUBSS, __SLASS and __SCAN.
9448 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
9449 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
9450 (frv_init_builtins): Register the above builtins.
9451 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
9452 registers. Turn the referenced accumulators into global registers.
9453 (frv_read_iacc_argument): New function.
9454 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
9455 (frv_split_iacc_move): New function.
9456 (frv_expand_builtin): Handle the new builtins.
9457 * config/frv/frv.md: Replace old schedulers with new order-independent
9458 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
9459 packing algorithm.
9460 (cpu): Add fr550, fr450 and fr405.
9461 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
9462 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
9463 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
9464 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
9465 (fnop, mnop): New patterns.
9466 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
9467 New constants.
9468 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
9469 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
9470 registers.
9471 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
9472 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
9473 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
9474 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
9475 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
9476 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
9477 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
9478 (frv_prefetch0, frv_prefetch): New patterns.
9479 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
9480 -mcpu=simple. Add -mcpu=fr550.
9481 (MULTILIB_DIRNAMES): Update accordingly.
9482 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
9483 -mcpu=fr450.
9484 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
9485 -mlong-calls and -malign-labels options for FR-V.
9486
9487 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
9488
9489 PR c/8420
9490 * c-tree.h (struct c_declspecs): New.
9491 (struct c_declarator, struct c_type_name, struct c_parm): Update
9492 element types.
9493 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
9494 start_function, start_decl, build_c_parm,
9495 make_pointer_declarator): Update prototypes.
9496 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
9497 declspecs_add_scspec, declspecs_add_attrs): New.
9498 (split_specs_attrs): Remove.
9499 * c-parse.in (%union): Add dsptype.
9500 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
9501 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
9502 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
9503 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
9504 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
9505 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
9506 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
9507 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
9508 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
9509 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
9510 maybe_type_quals_attrs): Change to dsptype.
9511 (struct c_declspec_stack): New.
9512 (current_declspecs, declspec_stack): Change type.
9513 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
9514 structures.
9515 (extdefs): Likewise.
9516 (setspecs): Likewise.
9517 (fndef): Use current_declspecs for empty declspecs list.
9518 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
9519 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
9520 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
9521 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
9522 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
9523 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
9524 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
9525 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
9526 structures and helper functions. Update comments.
9527 (typespec_nonattr): Correct comment.
9528 (maybe_type_quals_attrs, typename): Update to new structures.
9529 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
9530 shadow_tag, shadow_tag_warned, start_function, start_decl,
9531 build_c_parm, make_pointer_declarator,
9532 set_array_declarator_inner, groktypename): Update to new
9533 structures.
9534 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
9535 declspecs_add_scspec, declspecs_add_attrs): New.
9536 (split_specs_attrs): Remove.
9537 (shadow_tag_warned): Make warning for useless type names a
9538 pedwarn. Give hard error for long, short, signed, unsigned or
9539 _Complex used with struct, union or enum in empty declaration.
9540 Make found_tag a bool.
9541 (grokdeclarator): Remove checks now done at parse time.
9542
9543 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
9544
9545 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
9546 c_declarator, struct c_type_name, struct c_parm): New.
9547 (build_array_declarator, set_array_declarator_inner,
9548 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
9549 start_function, start_decl, build_c_parm, build_attrs_declarator,
9550 build_function_declarator, make_pointer_declarator, c_cast_expr,
9551 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
9552 (build_id_declarator): New.
9553 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
9554 structures.
9555 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
9556 ARG_INFO_OTHERS): Remove.
9557 (build_id_declarator): New.
9558 (build_array_declarator, set_array_declarator_inner, groktypename,
9559 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
9560 grokfield, start_function, store_parm_decls_newstyle,
9561 store_parm_decls_oldstyle, store_parm_decls,
9562 build_c_parm, build_attrs_declarator, build_function_declarator,
9563 make_pointer_declarator, grokdeclarator): Update to new
9564 structures.
9565 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
9566 parmtype.
9567 (declarator, notype_declarator, after_type_declarator,
9568 parm_declarator, parm_declarator_starttypename,
9569 parm_declarator_nostarttypename, array_declarator, typename,
9570 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
9571 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
9572 parmlist_1, parmlist_2, parmlist_or_identifiers,
9573 parmlist_or_identifiers_1): Use these types.
9574 (primary, after_type_declarator, parm_declarator_starttypename,
9575 notype_declarator, component_decl, component_declarator,
9576 component_notype_declarator, typename, absdcl,
9577 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
9578 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
9579
9580 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
9581
9582 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
9583 in_typeof, record_maybe_used_decl, pop_maybe_used,
9584 c_expr_sizeof_expr, c_expr_sizeof_type): New.
9585 * c-decl.c (parser_obstack): New.
9586 (c_init_decl_processing): Initialize parser_obstack.
9587 (c_write_global_declarations_1): Check for used but undefined
9588 static functions.
9589 * c-parse.in (%union): Add otype.
9590 (save_obstack_position): New.
9591 (extdefs): Use it.
9592 (unary_expr): Update in_sizeof and in_alignof. Use
9593 c_expr_sizeof_expr and c_expr_sizeof_type.
9594 (sizeof): Update in_sizeof.
9595 (alignof): Update in_alignof.
9596 (typeof): Update in_typeof.
9597 (typespec_nonreserved_nonattr): Call pop_maybe_used.
9598 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
9599 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
9600 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
9601 (build_external_ref): Set C_DECL_USED or call
9602 record_maybe_used_decl if appropriate.
9603 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
9604
9605 2004-09-08 Eric Christopher <echristo@redhat.com>
9606
9607 * builtins.c: Fix prototype for fold_builtin_atan.
9608
9609 2004-09-08 Eric Christopher <echristo@redhat.com>
9610
9611 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
9612 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
9613 fold_builtin_atan): New functions. Migrate function bodies...
9614 (fold_builtin_1): ... from here.
9615
9616 2004-09-09 Alan Modra <amodra@bigpond.net.au>
9617
9618 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
9619 save_size.
9620
9621 2004-09-08 David Edelsohn <edelsohn@gnu.org>
9622
9623 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
9624 * config/rs6000/power5.md (power5-lmul): Same.
9625
9626 2004-09-08 Richard Henderson <rth@redhat.com>
9627
9628 PR rtl-opt/17186
9629 * function.c (expand_function_end): Have fall-off-the-end
9630 return path jump around return register setup.
9631
9632 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
9633
9634 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
9635 (output_return): Do not test for the presence of the 'unimp' insn.
9636 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
9637 as predicates instead of custom ones. Return raw strings when
9638 possible.
9639 (output_sibcall): Likewise. Concatenate strings.
9640 (output_ubranch): Remove kludge for TurboSPARC.
9641 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
9642 (output_v9branch): Likewise.
9643 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
9644 <#>: Set sparc_indent_opcode if the delay slot is filled.
9645 <(>: Likewise.
9646 <)>: New operand to emit the displacement from the saved PC on return.
9647 <@>: Remove.
9648 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
9649 (ASM_OUTPUT_OPCODE): New macro.
9650 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
9651 * config/sparc/sparc.md (normal_branch, inverted_branch,
9652 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9653 inverted_fpe_branch): Adjust call to output_cbranch.
9654 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
9655 call to output_v9branch.
9656 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
9657 (output_v9branch): Likewise.
9658
9659 2004-09-08 Devang Patel <dpatel@apple.com>
9660
9661 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
9662 -segs_read_only_addr and -segs_read_write_addr.
9663 (WORD_SWITCH_TAKES_ARG): Same.
9664 (LINK_SPEC): Same.
9665 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
9666 -segs_read_write_addr.
9667
9668 2004-09-08 Richard Henderson <rth@redhat.com>
9669
9670 * function.c (reference_callee_copied): New.
9671 (assign_parm_setup_reg): Use it.
9672 * calls.c (initialize_argument_information): Likewise.
9673 (emit_library_call_value_1): Likewise.
9674 * function.h (reference_callee_copied): Declare.
9675
9676 * target.h (struct gcc_target): Add callee_copies.
9677 * target-def.h (TARGET_CALLEE_COPIES): New.
9678 (TARGET_PASS_BY_REFERENCE): Update default.
9679 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9680 * targhooks.c (hook_callee_copies_named): New.
9681 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
9682 hook_pass_by_reference_false.
9683 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
9684 * targhooks.h: Update decls.
9685 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
9686 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9687 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
9688 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
9689 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9690 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
9691 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9692 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
9693 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9694 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
9695 (mips_callee_copies): New.
9696 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9697 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
9698 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9699 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
9700 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9701 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
9702 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9703 * config/sh/sh.c (sh_callee_copies): New.
9704 (TARGET_CALLEE_COPIES): New.
9705 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9706 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
9707 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9708 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
9709 for FUNCTION_ARG_CALLEE_COPIES.
9710 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
9711
9712 2004-09-08 Devang Patel <dpatel@apple.com>
9713
9714 * tree-if-conv.c (find_phi_replacement_condition): Return true
9715 edge block.
9716 (replace_phi_with_cond_modify_expr): Select conditional expr args
9717 based on true edge basic block.
9718
9719 2004-09-08 Jan Hubicka <jh@suse.cz>
9720
9721 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
9722 variables being alias set.
9723
9724 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
9725
9726 * final.c (shorten_branches, final, get_insn_template,
9727 output_alternate_entry_point, final_scan_insn, alter_subreg,
9728 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
9729 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
9730 * fix-header.c (lookup_std_proto): Likewise.
9731 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
9732 verify_local_live_at_start, update_life_info, mark_reg,
9733 calculate_global_regs_live, allocate_reg_life_data,
9734 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
9735 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
9736 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
9737 * fold-const.c (force_fit_type, div_and_round_double,
9738 may_negate_without_overflow_p, int_const_binop, const_binop,
9739 size_binop, size_diffop, fold_convert_const, fold_convert,
9740 invert_tree_comparison, swap_tree_comparison,
9741 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
9742 range_binop, make_range, fold_cond_expr_with_comparison,
9743 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
9744 fold_abs_const, fold_not_const, fold_relational_const, round_up,
9745 round_down): Likewise.
9746 * function.c (find_function_data, assign_stack_temp_for_type,
9747 instantiate_virtual_regs_lossage, aggregate_value_p,
9748 assign_parm_find_entry_rtl, assign_parm_setup_block,
9749 expand_function_start, expand_function_end, keep_stack_depressed,
9750 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
9751
9752 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
9753
9754 * Makefile.in (tree-loop-linear.o): Added.
9755 (OBJS-common): Add tree-loop-linear.o
9756 * common.opt: New flag, ftree-loop-linear.
9757 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
9758 * tree-flow.h: Add prototype for linear_transform_loops.
9759 * tree-optimize.c: Add linear transform after vectorization.
9760 * tree-pass.h: Add struct pass_linear_transform.
9761 * tree-ssa-loop.c: Add pass_linear_transform.
9762 * tree-loop-linear.c: New file.
9763 * lambda-code.c: gcc_assertify.
9764 (gcc_loop_to_lambda_loop): Handle all exit tests.
9765 Handle case where we have (invariant >= induction var).
9766 (find_induction_var_from_exit_cond): Ditto.
9767
9768 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
9769
9770 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
9771 memory tag is call clobbered, so are its aliases.
9772 (group_aliases): When two memory tags being grouped, if one is
9773 call clobbered, so are the other and its aliases.
9774 (add_may_alias): Remove call-clobbering stuff.
9775 (replace_may_alias): Likewise.
9776 (merge_pointed_to_info): Merge pt_global_mem
9777
9778 2004-09-08 Jan Hubicka <jh@suse.cz>
9779
9780 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
9781 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
9782 (cgraph_expand_function): Remove stale cgraph edges of currently
9783 compiled function; fix non-unit-at-a-time code copying function
9784 node for later reuse.
9785
9786 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
9787
9788 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
9789 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
9790 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
9791 (vec_gc_free, vec_heap_free): New.
9792 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
9793 (DEF_VEC_P): Add allocator argument. Adjust.
9794 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
9795 (DEF_VEC_O): Add allocator argument. Adjust.
9796 (VEC(free)): New.
9797
9798 * tree.h (tree): Define a GC'd vector.
9799 * lamba-code.c (lambda_loop): Likewise.
9800 * value-prof.h (histogram_value): Likewise.
9801
9802 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
9803
9804 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
9805 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
9806 gen_lowpart_common, gen_highpart, gen_highpart_mode,
9807 subreg_highpart_offset, operand_subword, operand_subword_force,
9808 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
9809 set_mem_alias_set, change_address_1, verify_rtx_sharing,
9810 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
9811 try_split, add_insn_after, add_insn_before, remove_insn,
9812 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
9813 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
9814 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
9815 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
9816 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
9817 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
9818 record_path_before_1, check_path_after_1, check_path_after): Likewise.
9819 * except.c (gen_eh_region, resolve_one_fixup_region,
9820 remove_unreachable_regions, convert_from_eh_region_ranges_1,
9821 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
9822 connect_post_landing_pads, sjlj_emit_function_exit,
9823 remove_exception_handler_label, remove_eh_handler,
9824 reachable_next_level, collect_one_action_chain,
9825 output_function_exception_table): Likewise.
9826 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
9827 optimize_save_area_alloca, allocate_dynamic_stack_space,
9828 probe_stack_range, hard_function_value): Likewise.
9829 * expmed.c (mode_for_extraction, store_bit_field,
9830 store_fixed_bit_field, extract_bit_field, expand_shift,
9831 expand_mult_const, expand_mult, choose_multiplier,
9832 expand_mult_highpart, expand_divmod, emit_store_flag,
9833 do_cmp_and_jump): Likewise.
9834 * expr.c (convert_move, convert_modes, move_by_pieces,
9835 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
9836 move_block_from_reg, gen_group_rtx, emit_group_load,
9837 emit_group_move, emit_group_store, use_reg, use_regs,
9838 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
9839 emit_move_insn, emit_move_insn_1, emit_push_insn,
9840 expand_assignment, store_expr, count_type_elements,
9841 store_constructor, store_field, safe_from_p, expand_var,
9842 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
9843
9844 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
9845
9846 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
9847 gcc_assert and gcc_unreachable.
9848 * ddg.c (create_ddg_dependence, add_deps_for_def,
9849 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
9850 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
9851 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
9852 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
9853 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
9854 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
9855 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
9856 dataflow_set_copy, hybrid_search, diagnostic.c,
9857 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
9858 * dojump.c (do_jump): Likewise.
9859 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
9860 compute_dom_fast_query, calculate_dominance_info,
9861 free_dominance_info, get_immediate_dominator,
9862 set_immediate_dominator, get_dominated_by,
9863 redirect_immediate_dominators, nearest_common_dominator,
9864 dominated_by_p, verify_dominators, recount_dominator,
9865 iterate_fix_dominators, add_to_dominance_info,
9866 delete_from_dominance_info): Likewise.
9867 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
9868 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
9869 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
9870 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
9871 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
9872 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
9873 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
9874 output_call_frame_info, output_loc_operands, build_cfa_loc,
9875 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
9876 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
9877 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
9878 splice_child_die, attr_checksum, same_dw_val_p,
9879 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
9880 unmark_dies, value_format, output_loc_list, output_die,
9881 output_pubnames, output_aranges, base_type_die, is_base_type,
9882 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
9883 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
9884 field_byte_offset, add_data_member_location_attribute,
9885 add_const_value_attribute, rtl_for_decl_location,
9886 add_location_or_const_value_attribute, add_byte_size_attribute,
9887 add_bit_offset_attribute, add_bit_size_attribute,
9888 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
9889 decl_start_label, gen_formal_parameter_die,
9890 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
9891 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
9892 force_decl_die, force_type_die, gen_decl_die,
9893 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
9894 dwarf2out_finish): Likewise.
9895
9896 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
9897
9898 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
9899 * builtins.c: Include tree-mudflap.h.
9900
9901 2004-09-08 Uros Bizjak <uros@kss-loka.si>
9902
9903 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
9904 force operand 0.0 into register in XFmode. Also do not force
9905 operand 0.0 into register if !TARGET_CMOVE.
9906 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
9907 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
9908 implement ftst x87 instruction.
9909 (*fp_jcc_7): New insn pattern. Change corresponding split
9910 pattern to handle "general_operand" instead of
9911 "nonimmediate_operand".
9912
9913 2004-09-08 Ben Elliston <bje@au.ibm.com>
9914
9915 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
9916
9917 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
9918
9919 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
9920 generated from standard va_arg expansion.
9921 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
9922 marked nodes.
9923 (mf_varname_tree, mf_file_function_line_tree): Add some support
9924 for column numbers if compiled with USE_MAPPED_LOCATION.
9925
9926 2004-09-07 Ziemowit Laski <zlaski@apple.com>
9927
9928 * c-decl.c (groktypename_in_parm_context): Remove function.
9929 * c-tree.h (groktypename_in_parm_context): Remove prototype.
9930
9931 2004-09-07 Ziemowit Laski <zlaski@apple.com>
9932
9933 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
9934 * c-parse.in: Include c-common.h instead of objc-act.h.
9935 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
9936 myparms, myparm): Remove %type declarations.
9937 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
9938 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
9939 declarations.
9940 (objc_inherit_code, objc_public_flag): Remove.
9941 (typespec_nonreserved_nonattr): Call
9942 objc_get_protocol_qualified_type() instead of get_static_reference()
9943 and get_protocol_reference().
9944 (stmt_nocomp): Call grokparm() on @catch parameter.
9945 (objcdef): Move semantic action to objc_finish_implementation().
9946 (classdef): Move semantic action to objc_start_class_interface(),
9947 objc_continue_interface(), objc_finish_interface(),
9948 objc_start_class_implementation(), objc_continue_implementation(),
9949 objc_start_category_interface() and
9950 objc_start_category_implementation().
9951 (protocoldef): Move semantic actions to objc_start_protocol() and
9952 objc_finish_interface().
9953 (ivar_decl_list): Remove nonterminal.
9954 (visibility_spec): Move semantic actions to objc_set_visibility().
9955 (ivar_decls): Remove assignment to $$.
9956 (ivar_decl): Rephrase in terms of component_decl; call
9957 objc_add_instance_variable().
9958 (ivars, ivar_declarator): Remove nonterminals.
9959 (opt_semi): New nonterminal.
9960 (methodtype): Remove semantic actions.
9961 (methoddef): Move semantic actions to objc_set_method_type(),
9962 objc_start_method_definition() and objc_finish_method_definition().
9963 (methodproto): Move semantic actions to objc_set_method_type() and
9964 objc_add_method_declaration().
9965 (methoddecl): Use objc_typename instead of typename; move semantic
9966 actions to objc_build_method_signature().
9967 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
9968 (optparmlist): Express in terms of optparms and optellipsis.
9969 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
9970 nonterminals.
9971 (keyworddecl): Use objc_typename instead of typename.
9972 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
9973 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
9974
9975 2004-09-08 Alan Modra <amodra@bigpond.net.au>
9976
9977 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
9978 (MD_FALLBACK_FRAME_STATE_FOR): Update.
9979 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
9980 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
9981 (MD_FROB_UPDATE_CONTEXT): Remove default.
9982 (uw_update_context_1): Instead #ifdef invocation.
9983 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
9984 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
9985 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
9986 (MD_UNWIND_SUPPORT): Undefine this instead.
9987 * config/i386/gnu.h: Likewise.
9988 * config/alpha/linux-unwind.h: New file, macro converted to
9989 function, extracted from..
9990 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
9991 (MD_UNWIND_SUPPORT): Define.
9992 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
9993 * config/i386/linux-unwind.h, config/i386/linux.h,
9994 config/i386/linux64.h: Likewise.
9995 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
9996 MD_HANDLE_UNWABI too.
9997 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
9998 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
9999 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
10000 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
10001 * config/sparc/linux-unwind.h, config/sparc/linux.h,
10002 config/sparc/linux64.h: Likewise.
10003 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
10004 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
10005 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
10006 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
10007 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
10008
10009 2004-09-07 Jan Hubicka <jh@suse.cz>
10010
10011 * cse.c (fold_rtx): Avoid building of
10012 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
10013
10014 * tree-ssa-pre.c (grand_bitmap_obstack): New.
10015 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
10016 (init_pre): Initialize obstack.
10017 (fini_pre): Free obstack.
10018
10019 2004-09-07 David Daney <ddaney@avtrex.com>
10020
10021 * config.gcc: Added support for --with-divide=[breaks|traps] for
10022 mips targets.
10023 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
10024 (TARGET_DIVIDE_TRAPS): New macro.
10025 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
10026 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
10027 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
10028 GENERATE_DIVIDE_TRAPS.
10029 (mips_output_division): Emit conditional trap if
10030 GENERATE_DIVIDE_TRAPS is set.
10031 * doc/install.texi: Document --with-divide.
10032 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
10033
10034 2004-09-07 Caroline Tice <ctice@apple.com>
10035
10036 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
10037 EDGE_CROSSING, to flags test case.
10038
10039 2004-09-07 Jan Hubicka <jh@suse.cz>
10040
10041 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
10042 class too.
10043
10044 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10045
10046 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
10047 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
10048 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
10049 or gcc_unreachable.
10050 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
10051 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
10052 alloc_aux_for_edges, free_aux_for_edges): Likewise.
10053 * cfgcleanup.c (try_forward_edges,
10054 merge_blocks_move_predecessor_nojumps,
10055 merge_blocks_move_successor_nojumps): Likewise.
10056 * cfgexpand.c (expand_gimple_cond_expr,
10057 expand_gimple_tailcall): Likewise.
10058 * cfghooks.c (duplicate_block): Likewise.
10059 * cfglayout.c (record_effective_endpoints,
10060 insn_locators_initialize, change_scope, fixup_reorder_chain,
10061 verify_insn_chain, fixup_fallthru_exit_predecessor,
10062 duplicate_insn_chain, cfg_layout_finalize): Likewise.
10063 * cfgloopanal.c (check_irred): Likewise.
10064 * cfgloop.c (superloop_at_depth, flow_loops_free,
10065 flow_loop_entry_edges_find, flow_loops_find,
10066 flow_loop_outside_edge_p, get_loop_body,
10067 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
10068 get_loop_exit_edges, num_loop_branches, cancel_loop,
10069 verify_loop_structure): Likewise.
10070 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
10071 duplicate_loop_to_header_edge, create_preheader,
10072 create_loop_notes): Likewise.
10073 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
10074 edirect_branch_edge, force_nonfallthru_and_redirect,
10075 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
10076 commit_edge_insertions, commit_edge_insertions_watch_calls,
10077 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
10078 cfg_layout_redirect_edge_and_branch_force,
10079 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
10080 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
10081 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
10082 cgraph_varpool_node): Likewise.
10083 * cgraphunit.c (cgraph_finalize_function,
10084 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
10085 cgraph_expand_function, cgraph_remove_unreachable_nodes,
10086 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10087 cgraph_mark_inline, cgraph_expand_all_functions,
10088 cgraph_build_static_cdtor): Likewise.
10089 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
10090 simplify_logical, distribute_notes, insn_cuid): Likewise.
10091 * conflict.c (conflict_graph_add, print_conflict): Likewise.
10092 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
10093 coverage_checksum_string): Likewise.
10094 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
10095 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
10096 cse_cc_succs, cse_condition_code_reg): Likewise.
10097 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
10098 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
10099 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
10100 cselib_record_set): Likewise.
10101
10102 2004-09-07 Jan Hubicka <jh@suse.cz>
10103
10104 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
10105
10106 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10107
10108 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
10109 fold_convert.
10110 (fold_builtin_strpbrk): Likewise.
10111 * expr.c (array_ref_low_bound): Likewise.
10112 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
10113 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
10114 * tree-sra.c (generate_element_zero): Likewise.
10115 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
10116 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
10117 add_old_iv_candidates, add_iv_candidates): Likewise.
10118 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
10119
10120 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10121
10122 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
10123 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
10124 c_expand_expr, boolean_increment, nonnull_check_p,
10125 check_function_arguments_recurse, fold_offsetof_1): Likewise.
10126 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
10127 builtin_define_type_max): Likewise.
10128 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
10129 implicit_decl_warning, builtin_function, build_compound_literal,
10130 complete_array_type, grokdeclarator, get_parm_info,
10131 start_function, store_parm_decls_oldstyle,
10132 c_write_global_declarations): Likewise.
10133 * c-format.c (get_constant, decode_format_attr,
10134 maybe_read_dollar_number, get_flag_spec, check_format_arg,
10135 check_format_types, format_type_warning,
10136 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
10137 init_dynamic_diag_info, handle_format_attribute): Likewise.
10138 * c-gimplify.c (push_context, pop_context, finish_bc_block):
10139 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
10140 * c-objc-common.c (c_tree_printer): Likewise.
10141 * c-pch.c (pch_init): Likewise.
10142 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
10143 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
10144 * c-typeck.c (c_incomplete_type_error, composite_type,
10145 common_pointer_type, common_type, same_translation_unit_p,
10146 tagged_types_tu_compatible_p, finish_init, pop_init_level,
10147 set_designator, set_nonincremental_init_from_string,
10148 process_init_element, c_finish_if_stmt): Likewise.
10149 * caller-save.c (init_caller_save, save_call_clobbered_regs,
10150 insert_restore, insert_save, insert_one_insn): Likewise.
10151 * calls.c (emit_call_1, compute_argument_block_size,
10152 precompute_arguments, expand_call, emit_library_call_value_1,
10153 store_one_arg): Likewise.
10154
10155 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10156
10157 * configure.ac (enable-checking): Add release option. Reorganize
10158 to avoid repetition.
10159 * configure: Rebuilt.
10160 * doc/install.texi (enable-checking): Amend documentation.
10161
10162 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
10163
10164 PR bootstrap/17313
10165 * Makefile.in (specs.ready): Depend on cc1$(exeext).
10166
10167 2004-09-06 James E Wilson <wilson@specifixinc.com>
10168
10169 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
10170 movdf_hardfloat_32bit): Split fG into two alternatives.
10171 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
10172
10173 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
10174
10175 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
10176
10177 * final.c (output_in_slot): Delete.
10178 (final_scan_insn): Revert 2004-09-03 change.
10179 (output_asm_insn): Likewise.
10180 * config/sparc/sparc.c (output_return): Likewise.
10181 (output_sibcall): Likewise.
10182
10183 2004-09-06 Jan Hubicka <jh@suse.cz>
10184
10185 * loop.c (loop_dump_aux): Do not print RTL when not available.
10186 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
10187 frontend specific type nodes.
10188 (produce_memory_decl_rtl): Break out from ...
10189 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
10190 (get_computation_at): Avoid random tree sharing.
10191 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
10192
10193 2004-09-06 Zack Weinberg <zack@codesourcery.com>
10194
10195 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
10196 unnecessary commands.
10197
10198 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
10199
10200 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
10201 (bitmap.o): Likewise.
10202
10203 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
10204
10205 Unify the management of RTL and tree-level dump files.
10206
10207 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
10208 Don't print function name to the dump file, the pass manager
10209 would do this for us. Add code from the top of
10210 rest_of_compilation, up to the initial RTL dump.
10211 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
10212 close the DFI_sibling dump file.
10213 (rest_of_compilation): Don't do that here. Remove code up to the
10214 initial RTL dump.
10215 (init_optimization_passes): Remove.
10216 (pass_rest_of_compilation): Change pass name to NULL.
10217 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
10218 Do not call init_optimization_passes.
10219 * toplev.h (init_optimization_passes): Remove.
10220
10221 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
10222 finish_graph_dump_file): Remove SUFFIX parameter.
10223 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
10224 finish_graph_dump_file): Likewise.
10225
10226 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
10227 * cfgexpand.c (pass_expand): Adjust.
10228 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
10229 * passes.c (pass_rest_of_compilation): Adjust.
10230 * predict.c (pass_profile): Adjust.
10231 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
10232 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
10233 pass_split_crit_edges, pass_warn_function_return): Adjust.
10234 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
10235 * tree-dfa.c (pass_referenced_vars): Adjust.
10236 * tree-eh.c (pass_lower_eh): Adjust.
10237 * tree-if-conv.c (pass_build_ssa): Adjust.
10238 * tree-into-ssa.c (pass_build_ssa): Adjust.
10239 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
10240 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
10241 * tree-nrv.c (pass_nrv): Adjust.
10242 * tree-optimize.c (pass_gimple, pass_all_optimizations,
10243 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
10244 pass_init_datastructures): Adjust.
10245 * tree-outof-ssa.c (pass_del_ssa): Adjust.
10246 * tree-profile.c (pass_tree_profile): Adjust.
10247 * tree-sra.c (pass_sra): Adjust.
10248 * tree-ssa-alias.c (pass_may_alias): Adjust.
10249 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
10250 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
10251 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
10252 * tree-ssa-dom.c (pass_dominator): Adjust.
10253 * tree-ssa-dse.c (pass_dse): Adjust.
10254 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
10255 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
10256 * tree-ssa-loop-ch.c (pass_ch): Adjust.
10257 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
10258 pass_loop_done, pass_complete_unroll, pass_iv_canon,
10259 pass_iv_optimize, pass_vectorize): Adjust.
10260 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
10261 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
10262 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
10263 pass_late_warn_uninnitialized): Adjust.
10264 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
10265
10266 * Makefile.in (tree-dump.o): Add new dependencies.
10267 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
10268 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
10269 Likewise.
10270 * toplev.c (dump_file_name): New.
10271 * tree-dump.c (dump_enable_all): Add LETTER parameter.
10272 (struct dump_file_info): Add NUM and LETTER fields.
10273 (dump_files): Adjust and add RTL dump files.
10274 (dump_register): Add NUM and LETTER fields.
10275 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
10276 (dump_begin): Use get_dump_file_name.
10277 (dump_switch_p_1): Adjust call to dump_enable_all.
10278 * tree-dump.h (dump_register): Adjust prototype.
10279 * tree-optimize.c (register_one_dump_file): Take dump file index.
10280 Support flags for RTL dumps.
10281 (register_dump_files): Fill in NUM field of struct dump_file_info.
10282 Track properties both when the gate is executed and when it is not.
10283 (execute_todo): Dump RTL. Add PROPERTIES parameter.
10284 (execute_one_pass): Pass properties to execute_todo. Handle VCG
10285 dumps of RTL.
10286 * tree-pass.h (dump_file_name): New.
10287 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
10288 New.
10289
10290 * Makefile.in (passes.o): Add new dependencies.
10291 * passes.c (struct dump_file_info, enum dump_file_index,
10292 dump_file_tbl, init_optimization_passes): Remove.
10293 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
10294 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
10295 dump_enabled_p.
10296 (finish_optimization_passes): Update finish_graph_dump_file loop.
10297 (enable_rtl_dump_file): Remove.
10298 * tree-dump.c (dump_files): Adjust and add RTL dump files.
10299 (enable_rtl_dump_file): Add here.
10300 * tree.h (enum tree_dump_index): Add RTL dump file indices.
10301 * doc/invoke.texi (Debugging options): Document new RTL debugging
10302 options. Update.
10303
10304 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
10305
10306 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
10307 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
10308 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
10309 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
10310 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
10311 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
10312 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
10313 vec.h: Fix comment formatting.
10314
10315 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
10316
10317 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
10318 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
10319 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
10320 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
10321 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
10322 tree-ssa-loop-niter.c, tree-ssa-operands.c,
10323 tree-ssa-operands.h, tree-ssa-propagate.c,
10324 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
10325 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
10326
10327 2004-09-05 Diego Novillo <dnovillo@redhat.com>
10328
10329 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
10330 vectorizer is enabled.
10331
10332 2004-09-05 Andreas Jaeger <aj@suse.de>
10333
10334 * tree-if-conv.c: Spell check comments and clean up whitespace.
10335
10336 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10337
10338 * tree-ssa-loop-ivopts.c: New file.
10339 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
10340 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
10341 target_pres_cost, target_spill_cost): Declare.
10342 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
10343 spill_cost): Renamed to ...
10344 (target_avail_regs, target_res_regs, target_small_cost,
10345 target_pres_cost, target_spill_cost): ... and exported.
10346 (init_set_costs, global_cost_for_size): Work with renamed variables.
10347 * common.opt (flag_ivopts): New flag.
10348 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
10349 REF_ORIGINAL.
10350 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
10351 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
10352 generating SSA form.
10353 (force_gimple_operand): New function.
10354 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
10355 * tree-cfg.c (stmt_bsi): New function.
10356 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
10357 PARAM_IV_MAX_CONSIDERED_USES): New.
10358 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
10359 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
10360 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
10361 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
10362 * tree-nested.c (build_addr): Export.
10363 * tree-optimize.c (init_tree_optimization_passes): Add
10364 pass_iv_optimize.
10365 * tree-pass.h (pass_iv_optimize): Declare.
10366 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
10367 IMAGPART_EXPR.
10368 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
10369 as a phi node argument.
10370 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
10371 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
10372 functions.
10373 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
10374 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
10375 pass_iv_optimize): New pass.
10376 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
10377 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
10378 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
10379 * tree.h (REF_ORIGINAL): New macro.
10380 (build_int_cst_type, unsigned_type_for, zero_p,
10381 cst_and_fits_in_hwi, build_addr): Declare.
10382 * doc/invoke.texi (-fivopts): Document.
10383 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
10384 PARAM_IV_MAX_CONSIDERED_USES): Document.
10385 * doc/passes.texi: Document induction variable optimizations pass.
10386
10387 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10388
10389 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
10390 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
10391 * c-common.c (c_common_attribute_table): Accept parameters to
10392 sentinel attribute.
10393 (check_function_sentinel, handle_sentinel_attribute): Likewise.
10394 * doc/extend.texi: Update accordingly.
10395
10396 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10397
10398 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
10399 New.
10400 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
10401 attribute.
10402 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
10403 New functions.
10404 (c_common_attribute_table): Add `sentinel' attribute.
10405 (check_function_arguments): Handle `sentinel' attribute.
10406 * doc/extend.texi: Document `sentinel' attribute.
10407
10408 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
10409
10410 * configure: Regenerated.
10411
10412 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10413
10414 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
10415
10416 * tree.c (save_expr): No longer TREE_READONLY.
10417
10418 2004-09-04 Jan Hubicka <jh@suse.cz>
10419
10420 * passes.c (rest_of_clean_state): Fix merge conflict made during
10421 commiting the patch.
10422
10423 2004-09-04 Jan Hubicka <jh@suse.cz>
10424
10425 * passes.c (rest_of_clean_state): Decompose the instruction stream.
10426
10427 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
10428
10429 * doc/md.texi (shift patterns): New anchor. Add reference to
10430 TARGET_SHIFT_TRUNCATION_MASK.
10431 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
10432 * target.h (shift_truncation_mask): New target hook.
10433 * targhook.h (default_shift_truncation_mask): Declare.
10434 * targhook.c (default_shift_truncation_mask): Define.
10435 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
10436 (TARGET_INITIALIZER): Include it.
10437 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
10438 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
10439 reject all out-of-range values. Fix sign-extension code for modes
10440 whose width is smaller than HOST_BITS_PER_WIDE_INT.
10441 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
10442 (expand_superword_shift, expand_subword_shift): Likewise.
10443 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
10444 (expand_binop): Use them to implement double-word shifts.
10445 * config/arm/arm.c (arm_shift_truncation_mask): New function.
10446 (TARGET_SHIFT_TRUNCATION_MASK): Define.
10447
10448 2004-09-04 Jan Hubicka <jh@suse.cz>
10449
10450 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
10451 (mix): New macro copied from hashtab.c
10452 (iterative_hash_hashval_t, iterative_hash_pointer,
10453 iterative_hash_host_wide_int): New functions based on hashtab.c
10454 implementation.
10455
10456 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
10457
10458 * config/mips/mips.md (mask): New mode attribute.
10459 (zero_extendsidi2): Add memory alternative.
10460 (*zero_extendsidi2_mem): Delete.
10461 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
10462 memory_operand in the TARGET_MIPS16 check.
10463 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
10464 Redefine using :GPR and :SHORT.
10465 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
10466
10467 2004-09-04 Uros Bizjak <uros@kss-loka.si>
10468
10469 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
10470 using rint_optab.
10471 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
10472 expand_builtin_mathfn.
10473 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
10474 btrunc?f patterns for btrunc_optab. Implement rint_optab using
10475 rint?f patterns.
10476 * optabs.c (init_optabs): Initialize rint_optab.
10477 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
10478 Add new OTI_rint.
10479 (btrunc_optab): Rename macro from trunc_optab.
10480 (rint_optab): Define corresponding macro.
10481
10482 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
10483 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
10484
10485 * config/i386/i386-protos.h (emit_i387_cw_initialization):
10486 Change prototype. Add new int parameter.
10487 * config/i386/i386.c (emit_i387_cw_initialization):
10488 Handle new rounding modes.
10489
10490 * config/i386/i386.h (enum fp_cw_mode): Delete.
10491 (MODE_NEEDED): Handle new rounding modes.
10492 (EMIT_MODE_SET): Change condition to handle new rounding modes.
10493
10494 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
10495 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
10496 represent different rounding modes of frndint insn.
10497 (type): Add frndint type.
10498 (i387, length, memory): Handle this type.
10499 (i387_cw): New attribute definition.
10500 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
10501 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
10502 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
10503 Add "i387_cw" attribute defined to "trunc".
10504 (x86_fnstcw_1): Remove comment.
10505 (*frndintxf2): Rename insn definition to frndintxf2. Move
10506 insn definition near rint?f2 expanders.
10507 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
10508 rintf and rintl built-ins as inline x87 intrinsics.
10509 (frndintxf2_floor): New pattern to implement floor rounding
10510 mode with frndint x87 instruction.
10511 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
10512 floorf and floorl built-ins as inline x87 intrinsics.
10513 (frndintxf2_ceil): New pattern to implement ceil rounding
10514 mode with frndint x87 instruction.
10515 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
10516 ceilf and ceill built-ins as inline x87 intrinsics.
10517 (frndintxf2_trunc): New pattern to implement trunc rounding
10518 mode with frndint x87 instruction.
10519 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
10520 truncf and truncl built-ins as inline x87 intrinsics.
10521 (frndintxf2_mask_pm): New pattern to implement rounding
10522 mode with exceptions with frndint x87 instruction.
10523 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
10524 implement nearbyint, nearbyintf and nearbyintl built-ins as
10525 inline x87 intrinsics.
10526
10527 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
10528
10529 * config/mips/mips.md (SHORT): New mode macro.
10530 (size): New mode attribute.
10531 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
10532 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
10533 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
10534 !ISA_HAS_SEB_SEH.
10535 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
10536 *extend[qh]isi2_hw patterns and extending them to di.
10537 (extendqihi2): Implement as define_insn_and_split that produces
10538 extendqisi2 after reload.
10539
10540 2004-09-03 Devang Patel <dpatel@apple.com>
10541
10542 * Makefile.in (OBJS-common): Add tree-if-conv.o
10543 (tree-if-conv.o): New rule.
10544 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
10545 (get_loop_body_in_bfs_order): New.
10546 * cfgloop.h (get_loop_body_in_bfs_order): New.
10547 * tree-flow.h (enum move_pos): Move here from ..
10548 * tree-ssa-loop-im.c (enum move_pos): here.
10549 (movement_possibility): Make externally visible.
10550 * tree-optimize.c (init_tree_optimization_passes): New entry for
10551 if conversion pass.
10552 * tree-pass.h (pass_if_conversion): New.
10553 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
10554 * tree-if-conv.c: New file.
10555 * doc/passes.texi: Document tree if-conversion pass.
10556 * doc/tree-ssa.texi: Same.
10557
10558 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
10559
10560 PR target/14925:
10561 Makefile.in (LIB2ADDEHSTATIC): New.
10562 (LIB2ADDEHSHARED): New.
10563 (LIBUNWIND): New.
10564 (LIBUNWINDDEP): New.
10565 (SHLIBUNWIND_LINK): New.
10566 (SHLIBUNWIND_INSTALL): New.
10567 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
10568 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
10569 (clean): Remove libunwind*
10570 (stage1-start): Remove and copy stage1/libunwind*.
10571 (stage2-start): Remove and copy stage2/libunwind*.
10572 (stage3-start): Remove and copy stage3/libunwind*.
10573 (stage4-start): Remove and copy stage4/libunwind*.
10574 (stageprofile-start): Remove and copy stageprofile/libunwind*.
10575 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
10576
10577 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
10578 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
10579 tmake_file if --with-system-libunwind isn't used.
10580
10581 * config/ia64/t-glibc-libunwind: New file.
10582 * config/t-libunwind-elf: Likewise.
10583 * unwind-compat.c: Likewise.
10584 * unwind-compat.h: Likewise.
10585 * unwind-dw2-fde-compat.c: Likewise.
10586
10587 * config/ia64/t-glibc (LIB2ADDEH): Updated.
10588 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
10589
10590 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
10591 aliases if needed.
10592 * unwind-dw2-fde-glibc.c: Likewise.
10593 * unwind-dw2.c: Likewise.
10594
10595 * config/t-libunwind (LIB2ADDEH): Updated.
10596 (LIB2ADDEHSTATIC): New.
10597 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
10598 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
10599
10600 * configure.ac: Change --enable-libunwind-exceptions to
10601 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
10602 * configure: Regenerated.
10603 * config.in: Updated.
10604
10605 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
10606 above and mention --with-system-libunwind.
10607 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
10608 removed in gcc 3.4.3 and later.
10609
10610 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
10611 USE_LIBUNWIND_EXCEPTIONS is defined.
10612
10613 * mklibgcc.in: Support libunwind.
10614
10615 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
10616
10617 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
10618 m_NOCONA.
10619
10620 2004-09-03 Richard Henderson <rth@redhat.com>
10621
10622 PR middle-end/9997
10623 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
10624 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
10625 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
10626 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
10627 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
10628 resize_stack_vars_conflict, add_stack_var_conflict,
10629 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
10630 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
10631 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
10632 expand_one_static_var, expand_one_hard_reg_var,
10633 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
10634 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
10635 (expand_used_vars): Rewrite.
10636 * Makefile.in (cfgexpand.o): Update dependencies.
10637
10638 2004-09-04 Jan Hubicka <jh@suse.cz>
10639
10640 * cfg.c (free_edge): Use ggc_free.
10641 (expunge_block): Use ggc_free.
10642 * passes.c (rest_of_clean_state): Free after compilation.
10643 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
10644 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
10645
10646 2004-09-03 James E Wilson <wilson@specifixinc.com>
10647
10648 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
10649 DECL_EXTERNAL check.
10650
10651 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10652
10653 * final.c (output_in_slot): New global variable.
10654 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
10655 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
10656 'output_in_slot' before invoking output_asm_insn.
10657 (output_asm_insn): Add a space after the tab if 'output_in_slot'
10658 is set.
10659 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
10660 final_scan_insn.
10661 (output_sibcall): Likewise.
10662
10663 2004-09-03 Jan Hubicka <jh@suse.cz>
10664
10665 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
10666 * tree-ssanames (init_ssanames): Likewise.
10667
10668 2004-09-03 Ziemowit Laski <zlaski@apple.com>
10669
10670 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
10671 objc_declare_protocols, objc_start_protocol,
10672 objc_start_class_interface, objc_start_category_interface,
10673 objc_continue_interface, objc_finish_interface,
10674 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
10675 objc_start_class_implementation, objc_start_category_implementation,
10676 objc_continue_implementation, objc_finish_implementation,
10677 objc_add_method_declaration, objc_start_method_definition,
10678 objc_finish_method_definition, objc_build_keyword_decl,
10679 objc_build_method_signature, objc_build_encode_expr,
10680 objc_build_protocol_expr, objc_build_selector_expr,
10681 objc_build_message_expr, objc_build_string_object,
10682 objc_get_class_reference, objc_get_protocol_qualified_type,
10683 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
10684
10685 2004-09-03 James E Wilson <wilson@specifixinc.com>
10686
10687 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
10688
10689 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
10690 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
10691 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
10692 (mips_recip1_<fmt>): Use frdiv1 type.
10693 (mips_recip2_<fmt>): Use frdiv2 type.
10694 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
10695 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
10696 and frsqrt1.
10697 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
10698
10699 2004-09-03 Daniel Jacobowitz <dan@debian.org>
10700
10701 * reload.c (find_reloads): Swap operand_loc pointers for
10702 find_dummy_reload if we have swapped two operands.
10703
10704 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
10705
10706 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
10707 to get the tablejump-insn before the jump-table label.
10708
10709 2004-09-03 Ziemowit Laski <zlaski@apple.com>
10710
10711 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
10712 objc_declare_protocols, objc_build_message_expr,
10713 objc_finish_message_expr, objc_build_selector_expr,
10714 objc_build_protocol_expr, objc_build_encode_expr,
10715 objc_build_string_object, objc_get_protocol_qualified_type,
10716 objc_get_class_reference, objc_get_class_ivars,
10717 objc_start_class_interface, objc_start_category_interface,
10718 objc_start_protocol, objc_continue_interface, objc_finish_interface,
10719 objc_start_class_implementation, objc_start_category_implementation,
10720 objc_continue_implementation, objc_finish_implementation,
10721 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
10722 objc_add_method_declaration, objc_start_method_definition,
10723 objc_finish_method_definition, objc_add_instance_variable,
10724 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
10725 objc_finish_try_stmt, objc_begin_catch_clause,
10726 objc_finish_catch_clause, objc_build_finally_clause,
10727 objc_build_synchronized, objc_static_init_needed_p,
10728 objc_generate_static_init_call): New prototypes.
10729
10730 2004-09-03 Steve Ellcey <sje@cup.hp.com>
10731
10732 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
10733 is only one reg.
10734 (ia64_function_value): Ditto.
10735
10736 2004-09-03 Jan Beulich <jbeulich@novell.com>
10737
10738 * config.gcc: Resurrect NetWare as a target. Handle special case of
10739 Novell linker to be used (specified through --with-ld=) and threading
10740 model of either Posix (default) or NKS.
10741 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
10742 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
10743 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
10744 * config/i386/netware.c, config/i386/netware.h: New.
10745 * config/i386/nwld.c, config/i386/nwld.h: New.
10746 * config/i386/netware-crt0.c: New.
10747 * config/i386/netware-libgcc.c: New.
10748 * config/i386/netware-libgcc.def: New.
10749 * config/i386/netware-libgcc.exp: New.
10750 * config/i386/t-netware, config/i386/t-nwld: New.
10751 * gthr-nks.h: New.
10752 * doc/install.texi: Document NKS threading model.
10753
10754 2004-09-03 Jan Beulich <jbeulich@novell.com>
10755
10756 PR c/7054
10757 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
10758 * tree.h (initial_max_fld_align): Declare
10759 * stor-layout.c (initial_max_fld_align): Define and initialize.
10760 (maximum_field_alignment): Initialize to the same value.
10761 * common.opt: Add -fpack-struct= variant of switch.
10762 * opts.c: Handle -fpack-struct= variant of switch.
10763 * c-pragma.c: Change #pragma pack() handling so that it becomes
10764 compatible to other compilers: accept individual 'push' argument,
10765 make final pop restore (command line) default, correct interaction
10766 of push/pop and sole specification of a new alignment (so that the
10767 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
10768 to #pragma pack(push, <n>).
10769 * doc/extend.texi: New node "Structure-Packing Pragmas" under
10770 "Pragmas", describing #pragma pack.
10771 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
10772 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
10773 Document new TARGET_DEFAULT_PACK_STRUCT.
10774
10775 2004-09-03 Devang Patel <dpatel@apple.com>
10776
10777 * dwarf2out.c (gen_field_die). Equate decl number to die.
10778
10779 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
10780
10781 PR target/15832
10782 * global.c (modify_reg_pav): New function.
10783 (make_accurate_live_analysis): Call the new function. Move pavin
10784 modification by earlyclobber set into the new function.
10785
10786 2004-09-03 Andreas Schwab <schwab@suse.de>
10787
10788 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
10789 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
10790 extended.
10791
10792 2004-09-02 Jan Beulich <jbeulich@novell.com>
10793
10794 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
10795 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
10796 not unwind code specific ones.
10797 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
10798 Remove unwind code specific dependencies.
10799 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
10800 Remove gbl-ctors.h.
10801 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
10802 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
10803 * tsystem.h: Declare memcpy and memset when inhibit_libc.
10804
10805 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
10806
10807 * combine.c (try_combine): Delay modifying of insns which cannot
10808 be easily undone.
10809
10810 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
10811
10812 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
10813 tree-loop-im.
10814 * gcc/tree-ssa-loop.c: Ditto
10815 * gcc/tree-ssa-loop-ivcanon.c: Ditto
10816 * gcc/doc/invoke.texi: Ditto.
10817
10818 2004-09-02 Ziemowit Laski <zlaski@apple.com>
10819
10820 * c-decl.c (store_parm_decls_newstyle): Make static.
10821 (store_parm_decls_from): New function.
10822 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
10823 (store_parm_decls_from): New prototype.
10824
10825 2004-09-02 David Edelsohn <edelsohn@gnu.org>
10826
10827 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
10828 HImode with STRICT_ALIGNMENT.
10829
10830 2004-09-02 Mark Mitchell <mark@codesourcery.com>
10831
10832 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
10833 (TARGET_OS_CPP_BUILTINS): Likewise.
10834 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
10835 TARGET_BPABI_CPP_BUILTINS.
10836
10837 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
10838
10839 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
10840
10841 2004-09-02 Eric Christopher <echristo@redhat.com>
10842
10843 * builtins.c (expand_builtin_cabs): Delete.
10844 (expand_builtin): If unable to fold the values do a normal
10845 library call for builtin_cab*.
10846 (fold_builtin_cabs): Depend on optimize and optimize_size.
10847 * optabs.c (expand_cmplxdiv_straight): Delete.
10848 (expand_cmplxdiv_wide): Ditto.
10849 (expand_vector_binop): Ditto.
10850 (expand_vector_unop): Ditto.
10851 (expand_complex_abs): Delete.
10852 (expand_binop): Remove calls to above functions.
10853 Remove open coding of complex arithmetic.
10854 (expand_unop): Ditto.
10855 * optabs.h: Remove prototypes.
10856
10857 2004-09-02 Ziemowit Laski <zlaski@apple.com>
10858
10859 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
10860 * c-tree.h (store_parm_decls_newstyle): New prototype.
10861
10862 2004-09-02 Geoffrey Keating <geoffk@apple.com>
10863
10864 * config/rs6000/rs6000.c (expand_block_clear): Use vector
10865 instructions if available.
10866 (expand_block_move): Likewise.
10867
10868 2004-09-03 Jan Hubicka <jh@suse.cz>
10869
10870 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
10871
10872 2004-09-02 Mark Mitchell <mark@codesourcery.com>
10873
10874 * config/arm/symbian.h (LIB_SPEC): Define to empty.
10875 * config/arm/t-symbian (SHLIB_LC): Likewise.
10876
10877 2004-09-02 Paul Brook <paul@codesourcery.com>
10878
10879 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
10880
10881 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
10882
10883 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
10884 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
10885 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
10886 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
10887 (mips_issue_rate): Remove unreachable abort.
10888 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
10889 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
10890 (mips_block_move_straight, print_operand_address, mips_file_start)
10891 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
10892 (mips_output_conditional_branch, mips_expand_builtin_direct)
10893 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
10894 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
10895 with gcc_assert.
10896
10897 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
10898
10899 * config/mips/mips.md (*lea_high64): Change split condition to
10900 flow2_completed. Add a peephole2 to generate a more parallel version.
10901
10902 2004-09-02 Jan Hubicka <jh@suse.cz>
10903
10904 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
10905 GGC.
10906
10907 * ggc-page.c: include tree-flow.h.
10908 (extra_order_size_table): Add stmt_ann_d.
10909 (STAT_LABEL): Rename from ....
10910 (LABEL): ... this one.
10911 * Makefile.in (ggc-page.o): Add dependency.
10912
10913 * ggc-common.c (ggc_force_collect): New global variable.
10914 (loc_description): Add fields "freed", "collected"
10915 (ptr_hash): New static hash
10916 (ptr_hash_entry): New structure.
10917 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
10918 (ggc_record_overhead): Take ptr argument, record it
10919 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
10920 (cmp_statistics): Imrove sorting.
10921 (dump_ggc_loc_statistics): Output newly collected statistics
10922 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
10923 (ggc_free): Call ggc_free_overhead.
10924 (ggc_collect): Force collection when asked to be forced.
10925 (ggc_collect): Call ggc_prune_overhead_list.
10926 * ggc.h (ggc_force_collect): Declare
10927 (ggc_record_overhead): Update prototype.
10928 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
10929
10930 2004-09-02 James E Wilson <wilson@specifixinc.com>
10931
10932 * common.opt (ftrapping-math): Default to on.
10933
10934 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
10935
10936 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
10937
10938 2004-09-02 Denis Chertykov <denisc@overta.ru>
10939
10940 PR target/16884
10941 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
10942 match_scratch.
10943 (*movmemqi_insn): Likewise.
10944 (*movmemhi): Likewise.
10945 (clrmemhi): Likewise.
10946 (*clrmemqi): Likewise.
10947 (*clrmemhi): Likewise.
10948
10949 2004-09-02 Paul Brook <paul@codesourcery.com>
10950
10951 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
10952 default_use_cxa_atexit=yes.
10953
10954 2004-09-02 Alan Modra <amodra@bigpond.net.au>
10955
10956 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
10957 (struct kernel_old_ucontext): Delete.
10958 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
10959 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
10960 when IN_LIGGCC2.
10961
10962 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
10963
10964 * toplev.c (process_options): Fix typo.
10965
10966 2004-09-01 Richard Henderson <rth@redhat.com>
10967
10968 PR middle-end/17258
10969 * calls.c (initialize_argument_information): Tighten pass-through
10970 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
10971 Use build_fold_addr_expr.
10972 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
10973 that assumes ADDR_EXPR allocates stack space.
10974 * fold-const.c (build_fold_addr_expr_with_type): Look through
10975 WITH_SIZE_EXPR.
10976
10977 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
10978
10979 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
10980 * ggc.h (ggc_alloc_rtx): Delete.
10981
10982 2004-09-01 Roger Sayle <roger@eyesopen.com>
10983
10984 * expmed.c (enum alg_code): Remove long unused enumeration values.
10985 (struct mult_cost): New structure to hold the "score" of a synthetic
10986 multiply sequence, including both a rtx_cost and a latency field.
10987 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
10988 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
10989 (struct algorithm): Change type of cost field to be mult_cost.
10990 (synth_mult): Change type of cost_limit argument to be a
10991 pointer to a mult_cost. Update all cost comparisons to use the
10992 new mult_cost infrastructure. For alg_add_factor and
10993 alg_sub_factor operations, latency is lower than the rtx_cost.
10994 (choose_mult_variant): Update calls to synth_mult. Perform
10995 cost comparisons using the new mult_cost infrastructure.
10996 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
10997 to optain the total rtx_cost of a synth_mult "algorithm".
10998
10999 2004-09-01 David Edelsohn <edelsohn@gnu.org>
11000
11001 * config/rs6000/power4.md: Increase store latency to 12.
11002 * config/rs6000/power5.md: Same.
11003
11004 2004-09-01 James E Wilson <wilson@specifixinc.com>
11005
11006 PR target/14064
11007 * config/avr/avr.c (avr_unique_section): Delete prototype and
11008 definition.
11009 (TARGET_ASM_UNIQUE_SECTION): Delete.
11010
11011 2004-09-01 Ziemowit Laski <zlaski@apple.com>
11012
11013 * c-parse.in (primary): Call objc_build_message_expr(),
11014 objc_build_selector_expr(), objc_build_protocol_expr(),
11015 objc_build_encode_expr() and objc_build_string_object() instead of
11016 build_message_expr(), build_selector_expr(), build_protocol_expr(),
11017 build_encode_expr() and build_objc_string_object(), respectively.
11018 (component_decl_list2): Call objc_get_class_ivars() instead of
11019 get_class_ivars_from_name().
11020 (keyworddecl): Call objc_build_keyword_decl() instead of
11021 build_keyword_decl().
11022 (receiver): Call objc_get_class_reference() instead of
11023 get_class_reference().
11024 (reswords): Add blank line before @@ifobjc section, for clarity.
11025
11026 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
11027
11028 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
11029 to Altivec vetors.
11030
11031 2004-09-01 Wu Yongwei <adah@sh163.net>
11032 Danny Smith <dannysmith@users.sourceforge.net>
11033
11034 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
11035 not Windows 'DWORD'.
11036 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
11037 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
11038 (__gthr_win32_recursive_mutex_init_function): Add prototype for
11039 __GTHREAD_HIDE_WIN32API case..
11040 (__gthr_win32_recursive_mutex_lock): Likewise.
11041 (__gthr_win32_recursive_mutex_trylock): Likewise.
11042 (__gthr_win32_recursive_mutex_unlock): Likewise.
11043 (__gthread_recursive_mutex_init_function); Add definition for
11044 __GTHREAD_HIDE_WIN32API case.
11045 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
11046 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
11047 call to InterlockedDecrement.
11048
11049 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11050
11051 * tree-tailcall.c (find_tail_calls): Also fail is statement has
11052 volatile operands.
11053
11054 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
11055
11056 * doc/c-tree.texi: Document new operands for ARRAY_REF and
11057 COMPONENT_REF.
11058
11059 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11060
11061 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
11062 * common.opt (fspeculative-prefetching): New.
11063 * flags.h (flag_speculative_prefetching_set): Declare.
11064 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
11065 values.
11066 * opts.c (flag_sepculative_prefetching_set): New variable.
11067 (common_handle_option): Handle -fspeculative-prefetching.
11068 * passes.c (rest_of_compilation): Ditto.
11069 * profile.c (instrument_values, compute_value_histograms, branch_prob):
11070 Use vectors instead of arrays.
11071 * toplev.c (process_options): Handle -fspeculative-prefetching.
11072 * rtl-profile.c: Include ggc.h.
11073 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
11074 rtl_gen_one_value_profiler_no_edge_manipulation,
11075 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
11076 argument changed.
11077 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
11078 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
11079 argument changed.
11080 * value-prof.c: Include ggc.h.
11081 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
11082 macros.
11083 (insn_prefetch_values_to_profile, find_mem_reference_1,
11084 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
11085 speculative_prefetching_transform): New.
11086 (value_profile_transformations): Call speculative_prefetching_transform.
11087 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
11088 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
11089 tree_find_values_to_profile, find_values to profile): Use vectors
11090 instead of arrays.
11091 (free_profiled_values): Removed.
11092 * value-prof.h (struct histogram_value): Renamed to
11093 struct histogram_value_t.
11094 (histogram_value, histogram_values): New types.
11095 (find_values_to_profile): Declaration changed.
11096 (free_profiled_values): Removed.
11097 (struct profile_hooks): Type of argument of the hooks changed to
11098 histogram_value.
11099 * doc/invoke.texi (-fspeculative-prefetching): Document.
11100
11101 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11102
11103 PR rtl-optimization/16408
11104 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
11105
11106 2004-09-01 Richard Henderson <rth@redhat.com>
11107
11108 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
11109 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
11110
11111 2004-09-01 Jakub Jelinek <jakub@redhat.com>
11112
11113 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
11114
11115 2004-09-01 Mike Stump <mrs@apple.com>
11116
11117 * config/darwin.c (machopic_symbol_defined_p): In addition to
11118 being SYMBOL_REF_LOCAL_P, a symbol must also be
11119 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
11120 defined in this output file, or translation unit in the case
11121 of IMA not being used.
11122 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
11123 never need .indirect_symbol when indirecting.
11124
11125 2004-09-01 Jakub Jelinek <jakub@redhat.com>
11126
11127 * Makefile.in (bb-reorder.o): Add several dependencies.
11128
11129 2004-09-01 Jakub Jelinek <jakub@redhat.com>
11130
11131 * fold-const.c (operand_equal_p): Require equal sign also for
11132 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
11133
11134 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
11135
11136 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
11137 for use in configargs.h. Put the cname in a separate variable. Use
11138 that to set target_cpu_default2.
11139
11140 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
11141 Nick Clifton <nickc@redhat.com>
11142
11143 * config/sh/sh.md ("length"): Increase branch length when
11144 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
11145 constant, 2 byte for aligning the constant.
11146
11147 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
11148
11149 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
11150 CPU.
11151 (arm7tdmi-s): New CPU name.
11152 * arm/arm.c (ARM_CORE): Update for new format.
11153 * arm/arm.h (ARM_CORE): Likewise.
11154 * arm/gentune.sh: Update for extra field.
11155 * config.gcc: Likewise.
11156 * arm/arm-tune.md: Regenerate.
11157 * doc/invoke.texi: Document the real processor names for ARM cpus.
11158
11159 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
11160
11161 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
11162 (floatdidf): New functions.
11163 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
11164 (floatdisf): New functions.
11165 * t-arm-elf: Use them.
11166
11167 2004-09-01 Ziemowit Laski <zlaski@apple.com>
11168
11169 * c-common.h (lookup_interface): Remove prototype.
11170 (is_class_name): Rename to objc_is_class_name.
11171 (lookup_objc_ivar): Rename to objc_lookup_ivar.
11172 (get_current_scope): Rename to objc_get_current_scope.
11173 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
11174 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
11175 (yylexname): Call objc_is_class_name() instead of is_class_name().
11176 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
11177 instead of lookup_objc_ivar().
11178 * stub-objc.c (lookup_interface): Remove stub.
11179 (is_class_name): Rename to objc_is_class_name.
11180 (lookup_objc_ivar): Rename to objc_lookup_ivar.
11181
11182 2004-08-31 Mark Mitchell <mark@codesourcery.com>
11183
11184 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
11185 * config/arm/lib1funcs.asm: Do not include supplemental .S files
11186 when compiling for Symbian.
11187 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
11188 (TARGET_OS_CPP_BUILTINS): Likewise.
11189 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
11190
11191 2004-08-31 Stan Shebs <shebs@apple.com>
11192
11193 * toplev.c (process_options): Ensure debug_hooks is initialized.
11194
11195 2004-08-31 Mark Mitchell <mark@codesourcery.com>
11196
11197 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
11198 * target.h (cxx): Add export_class_data.
11199 * config/arm/arm.c (arm_cxx_export_class_data): New function.
11200 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
11201 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
11202
11203 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
11204
11205 * config/sh/sh.c (output_branch): Check the insn length possibly
11206 in the delayed slot.
11207
11208 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11209
11210 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
11211 blank after ')'.
11212 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
11213
11214 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
11215 (c_sizeof_of_alignof_type): Likewise.
11216 * expr.c (array_ref_element_size): Likewise.
11217 (highest_pow2_factor_for_target): Likewise.
11218 * gimplify.c (canonicalize_addr_expr): Likewise.
11219 (gimplify_compound_lval): Likewise.
11220 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
11221 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
11222 * varasm.c (assemble_variable): Likewise.
11223 (output_constant_def_contents): Alignments are unsigned.
11224
11225 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11226 Jeff Law <law@redhat.com>
11227
11228 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
11229 gets modified.
11230
11231 2004-08-31 Mark Mitchell <mark@codesourcery.com>
11232
11233 * hooks.c (hook_bool_void_true): New function.
11234 * hooks.h (hook_bool_void_true): Declare.
11235 * target-def.h (TARGET_CXX): Add
11236 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
11237 * target.h (struct cxx): Add key_method_may_be_inline.
11238 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
11239 function.
11240 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
11241 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
11242 __THUMB_INTERWORK.
11243
11244 2004-08-31 Denis Chertykov <denisc@overta.ru>
11245
11246 PR target/15417
11247 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
11248 frame pointer register only in Pmode while reload in progress.
11249
11250 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
11251
11252 PR target/15334
11253 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
11254 because it breaks the 32-bit shift patterns that rely on a match_dup.
11255
11256 2004-08-31 Matt Austern <austern@apple.com>
11257
11258 * config/darwin.c (darwin_make_decl_one_only): Allocate section
11259 names once per compilation, instead of once per symbol.
11260
11261 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
11262
11263 * Makefile.in (build_subdir): New substitution.
11264 (fixinc.sh): Simplify heavily since fixincludes is already built.
11265 (stmp-fixinc): Depend on specs.ready.
11266 (install-mkheaders): Use new location of fixincludes.
11267 (clean): Do not descend into fixinc.
11268 (FORBUILD): Replace with ../$(build_subdir).
11269 * configure.ac (build_subdir): Substitute.
11270 (FORBUILD): Do not set.
11271 (all_outputs): Remove fixinc/Makefile.
11272 (default commands): Do not create links in fixinc.
11273 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
11274 the fixincludes configuration steps and substituting
11275 @FIXINCL@ in fixinc.in.
11276 * fixinc.in: New, from fixinc/fixincl.sh.
11277
11278 * fixinc/*: Removed.
11279
11280 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
11281
11282 * attribs.c (strip_attrs): Remove.
11283 (split_specs_attrs): Move ...
11284 * c-decl.c: ... to here.
11285 * tree.h (split_specs_attrs, strip_attrs): Remove.
11286 * c-tree.h (split_specs_attrs): Declare.
11287
11288 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
11289
11290 * read-rtl.c: Disable RTL checking.
11291 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
11292
11293 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
11294
11295 * config/mips/mips.md (fcond): New code macro and attribute.
11296 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
11297 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
11298 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
11299
11300 2004-08-30 Mark Mitchell <mark@codesourcery.com>
11301
11302 Revert:
11303 2004-08-29 Mark Mitchell <mark@codesourcery.com>
11304 PR rtl-optimization/16590
11305 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
11306
11307 2004-08-30 Andrew Pinski <apinski@apple.com>
11308
11309 * hard-reg-set.h:
11310 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
11311 * ChangeLog: Fix previous ChangeLog entry.
11312
11313 PR rtl-opt/13987
11314 * config.host (use_long_long_for_widest_fast_int): New, default is
11315 off.
11316 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
11317 * configure.ac: If use_long_long_for_widest_fast_int, then
11318 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
11319 * configure: Regenerate.
11320 * config.in: Regenerate.
11321 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
11322 New: widest integer type supported efficiently in hardware for the
11323 host.
11324 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
11325 HOST_BITS_PER_WIDEST_FAST_INT.
11326 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
11327 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
11328 HOST_WIDEST_FAST_INT
11329 instead of HOST_WIDE_INT.
11330 (HARD_REG_SET_LONGS): Likewise.
11331 (UHOST_BITS_PER_WIDE_INT): Likewise.
11332 Change the checks for the fast cases to be based on
11333 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
11334
11335 2004-08-30 Steven Bosscher <stevenb@suse.de>
11336
11337 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
11338 not the pointers.
11339
11340 2004-08-30 Geoffrey Keating <geoffk@apple.com>
11341
11342 PR 12738
11343 PR 17205
11344 Radar 3460526
11345 Radar 3775729
11346 * c-decl.c (grokdeclarator): Produce error for 'static' on local
11347 function declaration.
11348
11349 2004-08-30 Richard Henderson <rth@redhat.com>
11350
11351 * expr.c (array_ref_element_size): Force aligned_size back to
11352 sizetype.
11353 (component_ref_field_offset): Similarly for aligned_offset.
11354 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
11355 low-bound, element-size, field-offset fields rather than
11356 computed values.
11357
11358 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
11359
11360 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
11361 redundant code.
11362
11363 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
11364
11365 * c-tree.h (struct language_function): Add arg_info element.
11366 * c-decl.c (current_function_arg_info): New.
11367 (grokdeclarator, store_parm_decls): Use it instead of
11368 DECL_ARGUMENTS.
11369 (c_push_function_context, c_pop_function_context): Save and
11370 restore it.
11371
11372 2004-08-30 Richard Henderson <rth@redhat.com>
11373
11374 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
11375 COMPONENT_REF to pointer arithmetic.
11376 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
11377 constant "c" as a valid constant initializer. Allow narrowing of
11378 differences against the same base object, for any base object.
11379
11380 2004-08-30 Richard Henderson <rth@redhat.com>
11381
11382 * expr.c (expand_expr_addr_expr): New.
11383 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
11384
11385 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
11386
11387 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
11388 (mips_fp_condition): New enum.
11389 (mips_fp_conditions): New array.
11390 (print_fcc_operand): Delete.
11391 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
11392 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
11393 (builtin_description): Add "cond" field.
11394 (DIRECT_BUILTIN): Initialize it.
11395 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
11396 into INSN and CODE. Initialize the "cond" field.
11397 (CMP_BUILTINS): Update accordingly.
11398 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
11399 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
11400 mips_fp_condition as argument. Make it the final operand of the
11401 comparison instruction.
11402 (mips_expand_builtin): Update accordingly.
11403 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
11404 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
11405 the gaps.
11406 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
11407 Don't use the 'Q' operand prefix; just print the operand normally.
11408 (mips_cabs_*, mips_c_*): Delete, replacing with...
11409 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
11410 patterns. Split the 4s versions into 2 ps patterns after reload.
11411
11412 2004-08-30 Richard Henderson <rth@redhat.com>
11413
11414 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
11415 assuming an ADDR_EXPR is non-null.
11416
11417 2004-08-30 Jason Merrill <jason@redhat.com>
11418
11419 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
11420
11421 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
11422
11423 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
11424 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
11425 gcc_assert and gcc_unreachable instead of abort.
11426 * alloc-pool.c (abort, fancy_abort): Remove.
11427 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
11428 gcc_assert or gcc_unreachable.
11429 * attribs.c (init_attributes, decl_attributes): Likewise.
11430 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
11431 mark_bb_for_unlikely_executed_section,
11432 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
11433 fix_crossing_unconditional_branches): Likewise.
11434 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
11435 bitmap_operation): Likewise.
11436 * bt-load.c (insn_sets_btr_p, augment_live_range,
11437 move_btr_def): Likewise.
11438 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
11439 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
11440 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
11441 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
11442 expand_builtin_memcmp, expand_builtin_args_info,
11443 std_gimplify_va_arg_expr, expand_builtin_unop,
11444 expand_builtin_fputs, expand_builtin_profile_func,
11445 expand_builtin_fork_or_exec, fold_builtin_bitop,
11446 fold_builtin_classify, fold_builtin_fputs): Likewise.
11447
11448 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
11449
11450 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
11451 * gcov.c (abort): Remove undef.
11452
11453 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
11454 (struct tree_binfo): Remove primary field.
11455
11456 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
11457
11458 * fixinc/Makefile.in (machname.h): Remove.
11459 (fixincl.x): Do not pass $@ to genfixes.
11460 * fixinc/genfixes: Remove code to produce machname.h.
11461 * fixinc/fixincl.sh: Move it here instead.
11462 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
11463 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
11464 return a bool indicating whether pz_mn_name_pat is NULL.
11465 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
11466 Declare extern C variables for the ENV_TABLE.
11467 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
11468 instead use the result of mn_get_regexps.
11469 * fixinc/fixtests.c: Likewise.
11470
11471 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
11472
11473 * configure.ac: Do not run fixincludes after stage1 during
11474 toplevel bootstrap.
11475 * configure: Regenerate.
11476
11477 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
11478
11479 * sched-deps.c (get_condition): Partially revert previous, by never
11480 trying to extract the condition from a condjump.
11481
11482 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
11483
11484 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
11485 (handle_visibility_attribute, c_determine_visibility): Likewise.
11486 * c-common.h (my_friendly_assert): Remove.
11487
11488 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
11489
11490 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
11491 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
11492 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
11493 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
11494 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
11495
11496 2004-08-30 Diego Novillo <dnovillo@redhat.com>
11497
11498 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
11499 in COMPONENT_REF nodes.
11500
11501 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
11502
11503 PR c++/15378
11504 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
11505 global_dc->warning_as_error_requested.
11506 * diagnostic.c (diagnostic_initialize): Tidy.
11507 * diagnostic.h (diagnostic_context::x_data): Remove
11508 (diagnostic_context::issue_warnings_are_errors_message): Rename
11509 from warnings_are_errors_message.
11510 (diagnostic_context::warning_as_error_requested): New.
11511
11512 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
11513
11514 * sched-deps.c (get_condition): Fix breakage in previous patch.
11515
11516 2004-08-30 Paul Brook <paul@codesourcery.com>
11517
11518 * doc/install.texi: Fix broken mpfr link.
11519
11520 2004-08-29 David O'Brien <obrien@FreeBSD.org>
11521
11522 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
11523 other FreeBSD platforms.
11524
11525 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
11526
11527 * arm.h (REVERSE_CONDITION): Define.
11528 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
11529
11530 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
11531
11532 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
11533 just the codes, call reversed_comparison_code ().
11534 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
11535 (not_reg_cond): Use reversed_comparison_code.
11536 (and_reg_cond): Likewise.
11537 * ifcvt.c (cond_exec_process_if_block): Likewise.
11538 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
11539
11540 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
11541
11542 * sched-deps.c (get_condition): Rewrite using jump support functions.
11543 Use reversed_comparison_code.
11544 (conditions_mutex_p): Use reversed_comparison_code.
11545
11546 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11547
11548 * config/mips/mips.c (override_options): Disable hot/cold partitioning
11549 for MIPS16.
11550
11551 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11552
11553 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
11554 (mips_function_type): Move to mips.c.
11555 * config/mips/mips.c (mips_builtin_type): New enum.
11556 (builtin_description): Replace code and ftype with builtin_type
11557 and function_type.
11558 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
11559 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
11560 (CODE_FOR_mips_abs_ps): Define.
11561 (mips_bdesc): Use new macros.
11562 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
11563 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
11564 (mips_expand_builtin_direct): New function.
11565 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
11566 builtin. Replace boolean parameter with builtin_type.
11567 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
11568 (mips_expand_4s_compare_builtin): Delete, replacing with...
11569 (mips_expand_builtin_compare): ...this new function.
11570
11571 2004-08-29 Mark Mitchell <mark@codesourcery.com>
11572
11573 PR rtl-optimization/16590
11574 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
11575
11576 2004-08-29 Diego Novillo <dnovillo@redhat.com>
11577
11578 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
11579 * tree-ssa-propagate.c: Fix documentation.
11580
11581 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11582
11583 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
11584 (mov[sd]fcc): Likewise.
11585
11586 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11587
11588 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
11589
11590 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11591
11592 * config/mips/mips.md (divide_condition): New mode attribute.
11593 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
11594 (sqrt[sd]f3): Redefine using SCALARF.
11595 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
11596 patterns.
11597
11598 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11599
11600 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
11601 (loadx, storex, fmt, UNITMODE): New mode attributes.
11602 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
11603 (mul[sd]f3): Redefine using :SCALARF.
11604 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
11605 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
11606 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
11607 Check TARGET_FUSED_MADD for V2SF too.
11608 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
11609 were already named.
11610 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
11611 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
11612
11613 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11614
11615 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
11616 V2SF_type_node if it will be needed.
11617
11618 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11619
11620 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
11621 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
11622 (mips_prepare_builtin_target): New function.
11623 (mips_expand_builtin): Use them. Update calls to subroutines.
11624 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
11625 cmp_choice with a boolean argument to select between movt and movf.
11626 Take the comparison's icode as an argument, not the function's fcode.
11627 (mips_expand_compare_builtin): New function. Rename existing function
11628 to mips_expand_scalar_compare_builtin.
11629 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
11630 (mips_expand_ps_compare_builtin): Use the new functions. Take the
11631 comparison's icode as an argument, not the builtin's fcode.
11632
11633 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11634
11635 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
11636 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
11637 registers are false and -1 if all registers are true.
11638 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
11639 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
11640 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
11641 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
11642 (bc1any2t, bc1any2f): Likewise CCV2.
11643 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
11644
11645 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11646
11647 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
11648 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
11649 UNSPEC rather than an IF_THEN_ELSE.
11650 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
11651 mips_cond_move_tf_ps by name.
11652
11653 2004-08-29 Chao-ying Fu <fu@mips.com>
11654 James E Wilson <wilson@specifixinc.com>
11655
11656 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
11657 8 byte size and alignment. Give CCV4 16 byte size and alignment.
11658 * config/mips/mips-ps-3d.md: New file.
11659 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
11660 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
11661 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
11662 (mips_output_move): Emit "mov.ps" for V2SFmode.
11663 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
11664 MODE_VECTOR_FLOAT.
11665 (override_options): Check if TARGET_MIPS3D and there was an explicit
11666 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
11667 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
11668 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
11669 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
11670 and allow CCV2 and CCV4 to occupy two and four CC registers.
11671 (print_fcc_operand): New function.
11672 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
11673 %Z to call print_fcc_operand.
11674 (mips_function_value): Handle MODE_VECTOR_FLOAT.
11675 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
11676 (mips_vector_mode_supported_p): New function.
11677 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
11678 (builtin_description): New struct.
11679 (mips_bdesc): New array of struct builtin_description.
11680 (mips_expand_builtin, mips_init_builtins,
11681 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
11682 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
11683 functions.
11684 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
11685 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
11686 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
11687 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
11688 "-mips3d", and "-mno-mips3d".
11689 (ASM_SPEC): Map -mips3d to -mips3d in gas.
11690 (EXTRA_CONSTRAINT_Y): New macro.
11691 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
11692 multi-letter constraint 'Y'.
11693 (CONSTRAINT_LEN): New macro.
11694 (enum mips_builtins): New for MIPS builtin functions.
11695 (enum mips_function_type): New for the types of MIPS builtin functions.
11696 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
11697 * config/mips/mips.md: New constants for paired single and MIPS-3D
11698 instructions. Include the new mips-ps-3d.md file.
11699 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
11700 movv2sf_hardfloat_64bit): New named patterns.
11701 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
11702 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
11703 sdxc1_v2sf_di): New unnamed patterns.
11704 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
11705 const_vector support.
11706 (const_0_or_1_operand): New predicate.
11707 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
11708
11709 2004-08-29 Diego Novillo <dnovillo@redhat.com>
11710
11711 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
11712 (tree-ssa-propagate.o): New rule.
11713 (GTFILES): Add tree-ssa-propagate.c.
11714 * tree-flow.h (struct stmt_ann_d): Remove field
11715 in_ccp_worklist.
11716 * tree-ssa-propagate.c: New file.
11717 * tree-ssa-propagate.h: New file.
11718 * tree-ssa-ccp.c: Re-write to use the routines from
11719 tree-ssa-propagate.c.
11720
11721 2004-08-28 Andrew Pinski <apinski@apple.com>
11722
11723 * tree-ssa-loop.c: Remove extra include of basic-block.h.
11724
11725 2004-08-28 Ziemowit Laski <zlaski@apple.com>
11726
11727 * c-common.h: Update comments about ObjC/ObjC++ entry points.
11728 (objc_is_reserved_word): New prototype.
11729 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
11730 separate section; these are call-backs.
11731 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
11732 ObjC/ObjC++ "@" keywords.
11733 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
11734 prototypes; they already live in c-common.h.
11735 * stub-objc.c: Update copyright notice.
11736 (objc_is_reserved_word): New stub.
11737
11738 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
11739
11740 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
11741 even when not checking.
11742
11743 2004-08-27 Jason Merrill <jason@redhat.com>
11744
11745 PR c++/13684
11746 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
11747 (gimple_push_cleanup): Add eh_only parm.
11748 (gimplify_target_expr): Pass it.
11749 * c.opt (-fno-threadsafe-statics): New option.
11750 * c-opts.c (c_common_handle_option): Handle it.
11751 * c-common.h (flag_threadsafe_statics): Declare it.
11752 * c-common.c (flag_threadsafe_statics): Record it.
11753 * doc/invoke.texi: Document it.
11754 * tsystem.h (_GNU_SOURCE): Define.
11755 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
11756 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
11757 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
11758 (__gthread_recursive_mutex_init_function): New fn.
11759 (__gthread_recursive_mutex_lock): New fn.
11760 (__gthread_recursive_mutex_trylock): New fn.
11761 (__gthread_recursive_mutex_unlock): New fn.
11762 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
11763 * gthr-win32.h, gthr-vxworks.h: Likewise.
11764 * gthr.h: Document.
11765
11766 2004-08-27 David Edelsohn <edelsohn@gnu.org>
11767
11768 * config/rs6000/rs6000.c (rs6000_override_options): Increase
11769 maximum skip to 15. Set function alignment, jump alignment, and
11770 loop alignment to 16 for processors that form dispatch groups.
11771 (rs6000_rtx_costs): outer_code is used.
11772
11773 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
11774
11775 * stor-layout.c (sizetype_set): Remove.
11776 (set_sizetype): Don't test or set it.
11777
11778 * tree.h (size_int_type): Remove.
11779 * fold-const.c: Do not #include gt-fold-const.h.
11780 (size_htab_hash, size_htab_eq): Remove.
11781 (size_int_kind): Use build_int_cst.
11782 (new_const, size_htab): Remove.
11783 (size_int_type): Remove.
11784 (round_up): Use build_int_cst.
11785 (round_down): Likewise. Remove spurious constant build.
11786
11787 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
11788
11789 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
11790 Add is_release variable, use it for --enable-werror and
11791 --enable-checking defaults.
11792 * system.h (gcc_assert, gcc_unreachable): New.
11793 * doc/install.texi (--enable-checking): Update.
11794 * configure, config.in: Rebuilt.
11795
11796 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
11797
11798 * rtl.h (read_rtx): Change prototype.
11799 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
11800 line number. Return true on success.
11801 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
11802 callers accordingly.
11803
11804 2004-08-26 Richard Henderson <rth@redhat.com>
11805
11806 * c-typeck.c (build_offsetof): Remove.
11807 * c-tree.h (build_offsetof): Remove.
11808 * c-common.c (fold_offsetof_1, fold_offsetof): New.
11809 * c-common.h (fold_offsetof): Declare.
11810 * c-parse.in (offsetof_base): New.
11811 (offsetof_member_designator): Use it. Build references, not just
11812 a tree list.
11813 (primary): Use fold_offsetof, not build_offsetof.
11814
11815 2004-08-26 Richard Henderson <rth@redhat.com>
11816
11817 * tree.c (staticp): Return the static object.
11818 * tree.h (staticp): Update decl.
11819 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
11820 * langhooks.c (lhd_staticp): Return NULL_TREE.
11821 * langhooks-def.h (lhd_staticp): Update decl.
11822 * c-common.c (c_staticp): Return the static object.
11823 * c-common.h (c_staticp): Update decl.
11824
11825 2004-08-26 Richard Henderson <rth@redhat.com>
11826
11827 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
11828 modes.
11829
11830 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
11831
11832 PR c/13801
11833 * c-decl.c (struct c_binding): Add type and inner_comp fields.
11834 (bind): Set type and inner_comp fields.
11835 (pop_scope): Restore type of decl to the correct type from an
11836 outer scope. Give error when popping file scope for incomplete
11837 arrays completed incompatibly with default initialization in an
11838 inner scope.
11839 (diagnose_mismatched_decls): Handle externs with initializers at
11840 block scope.
11841 (pushdecl): Set type of external declaration at block scope based
11842 only on the visible declarations. Save type when changing the
11843 type of a declaration. Merge an external declaration at block
11844 scope with a visible static declaration at file scope.
11845 (implicitly_declare): Give recycled old declaration the new type
11846 except for incompatible declarations of built-in functions, saving
11847 the old type.
11848
11849 2004-08-26 Ziemowit Laski <zlaski@apple.com>
11850
11851 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
11852
11853 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
11854
11855 * tree-alias-common.c (gate_pta): New function.
11856 (pass_build_pta): Use it.
11857 (pass_del_pta): Use it.
11858 (delete_alias_vars): Don't check flag_tree_points_to.
11859
11860 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
11861
11862 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
11863 TFmode as additional register mode cloberred by call.
11864
11865 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
11866
11867 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
11868 parallel pattern for library call returning DImode in
11869 mixed mode.
11870
11871 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
11872
11873 * config/rs6000/rs6000.c (function_arg): Generate parallel
11874 pattern for more split args.
11875
11876 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
11877
11878 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
11879 either gen_movdi_di_update or gen_movdi_si_update depending on
11880 target mode.
11881 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
11882 to generate two versions.
11883
11884 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
11885
11886 * Makefile.in (lambda-code.o): New.
11887 (lambda-trans.o): Ditto.
11888 (TREE_DATA_REF_H): Ditto.
11889 (LAMBDA_H): Ditto.
11890 (lambda-mat.o): Use LAMBDA_H.
11891 (tree-data-ref.o): Ditto.
11892 * lambda-code.c: New file. Lambda code generation algorithm.
11893 * lambda-trans.c: Ditto. Lambda transformation matrix support.
11894 * lambda.h: Add lambda loop structures.
11895 Add lambda loopnest structures.
11896 Add lambda body vector structure.
11897 Add lambda linear expression structures.
11898 Add prototypes for functions in new files.
11899 * lambda-mat.c: Include tree.h
11900
11901 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
11902 Sebastian Pop <pop@cri.ensmp.fr>
11903
11904 * tree-data-ref.h: Include lambda.h
11905 (free_dependence_relation): Declared here.
11906 (free_dependence_relations): Ditto.
11907 (free_data_refs): Ditto.
11908 * tree-data-ref.c (free_dependence_relation): New function.
11909 (free_dependence_relations): Ditto.
11910 (free_data_refs): Ditot.
11911 (analyze_all_data_dependences): Free datarefs and dependence_relations.
11912 (build_classic_dist_vector): Store in the dependence_relations the
11913 information. Each arc in the dependence_relations graph is labelled
11914 with the distance and direction vectors.
11915 (build_classic_dir_vector): Ditto.
11916 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
11917 Now computes again the whole dependence graph including read-read
11918 relations.
11919 (compute_data_dependences_for_loop): Now dependence_relations contains
11920 all the data, and thus it doesn't need to initialize the classic_dir
11921 and classic_dist vectors.
11922 (analyze_all_data_dependences): Adjusted for using the new interface of
11923 compute_data_dependences_for_loop. Remove the statistics dump.
11924
11925 2004-08-26 Bob Wilson <bob.wilson@acm.org>
11926
11927 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
11928 (xtensa_expand_block_move): Update comment.
11929 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
11930
11931 2004-08026 Richard Earnshaw <rearnsha@arm.com>
11932
11933 PR target/13506
11934 * toplev.c (crash_signal): If we crashed while emitting
11935 a user asm, then die more gracefully.
11936
11937 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11938
11939 PR target/17119.
11940 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
11941 checking for a valid constant, regardless of sign.
11942
11943 2004-08-25 Richard Henderson <rth@redhat.com>
11944
11945 PR target/16974
11946 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
11947 if the constant satisfies add_operand.
11948
11949 2004-08-25 Richard Henderson <rth@redhat.com>
11950
11951 PR debug/10695
11952 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
11953 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
11954 unwind info for >16-bit frames.
11955
11956 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
11957
11958 PR target/17171
11959 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
11960
11961 2004-08-25 Richard Henderson <rth@redhat.com>
11962
11963 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
11964 (TARGET_CANNOT_FORCE_CONST_MEM): New.
11965
11966 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
11967
11968 * doc/tree-ssa.texi: Document new operand iterator.
11969
11970 2004-08-26 Alan Modra <amodra@bigpond.net.au>
11971
11972 PR target/16480
11973 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
11974 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
11975 as PLUS base regs.
11976
11977 2005-08-28 Paul Brook <paul@codesourcery.com>
11978
11979 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
11980 -mfpu=vfp -march=armv5t
11981 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
11982
11983 2004-08-25 Richard Henderson <rth@redhat.com>
11984
11985 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11986 * target.h (struct gcc_target): Add scalar_mode_supported_p.
11987 * targhooks.c (default_scalar_mode_supported_p): New.
11988 * targhooks.h (default_scalar_mode_supported_p): Declare.
11989 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
11990
11991 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
11992 before attempting to create types. Tidy.
11993 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
11994
11995 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
11996 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11997
11998 2004-08-25 Richard Henderson <rth@redhat.com>
11999
12000 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
12001 set REAL_MODE_FORMAT for TFmode.
12002
12003 2004-08-25 Ziemowit Laski <zlaski@apple.com>
12004
12005 * c-decl.c (grokparm): New function.
12006 * c-tree.h (grokparm): New prototype.
12007
12008 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
12009
12010 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
12011 iterator controlling structure.
12012 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
12013 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
12014 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
12015 iterator flags.
12016 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
12017 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
12018 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
12019 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
12020 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
12021 Empty operand pointers.
12022 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
12023 (op_iter_next_use): New. Return next use_operand_p.
12024 (op_iter_next_def): New. Return next def_operand_p.
12025 (op_iter_next_tree): New. Return next operands as a tree.
12026 (op_iter_init): New. Initialize an iterator structure.
12027 (op_iter_init_use): New. Initialize structure and get the first use.
12028 (op_iter_init_def): New. Initialize structure and get the first def.
12029 (op_iter_init_tree): New. Initialize structure and get the first tree.
12030 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
12031 (op_iter_init_maydef): New. Initialize structure and get the first
12032 V_MAY_DEF operands.
12033 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
12034 * tree-dfa.c (compute_immediate_uses_for_stmt,
12035 redirect_immediate_uses): Use new operand iterator.
12036 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
12037 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
12038 operands instead of using *_disappeared_p routines.
12039 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
12040 ssa_rewrite_stmt): Use new operand iterator.
12041 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
12042 rewrite_trees): Use new operand iterator.
12043 * tree-pretty-print.c (dump_vops): Use new operand iterator.
12044 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
12045 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
12046 dump_points_to_info): Use new operand iterator.
12047 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
12048 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
12049 operand iterator.
12050 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
12051 propagate_necessity): Use new operand iterator.
12052 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
12053 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
12054 a parameter instead of a stmt_ann_t.
12055 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
12056 build_tree_conflict_graph): Use new operand iterator.
12057 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
12058 rewrite_mem_refs): Use new operand iterator.
12059 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
12060 check_loop_closed_ssa_use): Use new operand iterator.
12061 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
12062 * tree-ssanames.c (release_defs): Use new operand iterator.
12063 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
12064
12065 2004-08-25 Adam Nemet <anemet@lnxw.com>
12066
12067 * tlink.c (initial_cwd): New variable.
12068 (tlink_init): Initialize it.
12069 (recompile_files): Use tlink_execute() instead of system(). Don't
12070 duplicate verbose output of collect_execute. Restore initial_cwd.
12071 Update comment before the function.
12072
12073 2004-08-25 Ziemowit Laski <zlaski@apple.com>
12074
12075 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
12076 accept) a cast from one Objective-C pointer type to another.
12077
12078 2004-08-25 Paolo Carlini <pcarlini@suse.de>
12079
12080 * doc/install.texi: Document that libstdc++-v3 requires
12081 now automake 1.9.1.
12082
12083 2004-08-25 Caroline Tice <ctice@apple.com>
12084
12085 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
12086 to comments at start of function.
12087 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
12088 comment.
12089 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12090 merge_blocks_move_predecessor_nojumps,
12091 merge_blocks_move_successor_nojumps, merge_blocks_move,
12092 try_crossjump_to_edge, try_crossjump_bb): Likewise.
12093 * cfglayout.c (fixup_reorder_chain): Likewise.
12094 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
12095 cfg_layout_can_merge_blocks_p): Likewise.
12096 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
12097 * passes.c (rest_of_compilation): Update comments for calling
12098 optimization that partitions hot/cold basic blocks.
12099 * doc/invoke.texi: Update documentation of
12100 freorder-blocks-and-partition flag.
12101
12102 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
12103
12104 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
12105 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
12106
12107 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
12108
12109 * config/mips/mips.md (any_shift): New code macro.
12110 (optab, insn): New code attributes.
12111 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
12112 Use the standard rather than internal patterns for the MIPS16
12113 double-shift optimization.
12114 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
12115 Redefine using :GPR and any_shift.
12116 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
12117 to cover all three shifts.
12118 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
12119 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
12120 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
12121
12122 2004-08-24 Geoffrey Keating <geoffk@apple.com>
12123
12124 * gimplify.c (lookup_tmp_var): Separate temporaries when not
12125 optimizing.
12126
12127 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12128
12129 PR libstdc++/17005 (fix for HP-UX 11.11)
12130 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
12131 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
12132 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
12133 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
12134 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
12135 (LINK_SPEC): Handle march=1.0 option.
12136 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
12137 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
12138 (SUBTARGET_OPTIONS): New define.
12139 (LINK_SPEC): Handle march=1.0 option.
12140 (STARTFILE_SPEC): New define.
12141 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
12142 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
12143 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
12144 (SUBTARGET_OPTIONS): New define.
12145 (LINK_SPEC): Handle march=1.0 option.
12146 (STARTFILE_SPEC): New define.
12147 * config/pa/pa.c (override_options): Add code to process -munix= option.
12148 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
12149 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
12150 defines.
12151 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
12152 (SUBTARGET_OPTIONS): Provide default define.
12153 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
12154 STANDARD_STARTFILE_PREFIX_2): New defines.
12155 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
12156 (ENDFILE_SPEC): Use %O.
12157 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
12158 Mention issue caused by changing namespace and runtime to UNIX 95/98.
12159 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
12160 Document -munix=std option.
12161
12162 2004-08-25 Steven Bosscher <stevenb@suse.de>
12163
12164 * cse.c (cse_around_loop, cse_check_loop_start,
12165 cse_set_around_loop): Remove.
12166 (cse_basic_block): Remove the around_loop argument.
12167 (cse_end_of_basic_block): Remove the after_loop argument.
12168 (cse_main): Likewise.
12169 * rtl.h (cse_main): Update prototype.
12170 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
12171 rest_of_handle_gcse): Update cse_main calls.
12172
12173 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
12174
12175 * tree.h (build_int_cst): New, sign extended constant.
12176 (build_int_cstu): New, zero extended constant.
12177 (build_int_cst_wide): Renamed from build_int_cst.
12178 * tree.c (build_int_cst, build_int_cstu): New.
12179 (build_int_cst_wide): Renamed from build_int_cst.
12180 (make_vector_type, build_common_tree_nodes,
12181 build_common_tree_nodes_2): Adjust build_int_cst calls.
12182 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
12183 expand_builtin_strpbrk, expand_builtin_fputs,
12184 build_string_literal, expand_builtin_printf,
12185 expand_builtin_sprintf, fold_builtin_classify_type,
12186 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
12187 fold_builtin_toascii, fold_builtin_isdigit,
12188 simplify_builtin_strstr, simplify_builtin_strpbrk,
12189 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
12190 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
12191 DEF_ATTR_INT): Likewise.
12192 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
12193 Likewise.
12194 * c-lex.c (interpret_integer, lex_charconst): Likewise.
12195 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
12196 * c-pretty-print.c (pp_c_integer_constant): Likewise.
12197 * c-typeck.c (really_start_incremental_init, push_init_level,
12198 set_nonincremental_init_from_string): Likewise.
12199 * calls.c (load_register_parameters): Likewise.
12200 convert.c (convert_to_pointer): Likewise.
12201 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
12202 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
12203 build_gcov_info): Likewise.
12204 * except.c (init_eh, assign_filter_values): Likewise.
12205 * expmed.c (store_fixed_bit_field, extract_bit_field,
12206 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
12207 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
12208 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
12209 * expr.c (convert_move, emit_group_load, emit_group_store,
12210 expand_assignment, store_constructor, store_field,
12211 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
12212 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
12213 invert_truthvalue, optimize_bit_field_compare,
12214 decode_field_reference, all_ones_mask_p, constant_boolean_node,
12215 fold_div_compare, fold, fold_read_from_constant_string,
12216 fold_negate_const, fold_abs_const, fold_not_const, round_up,
12217 round_down): Likewise.
12218 * function.c (assign_parm_setup_block): Likewise.
12219 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
12220 Likewise.
12221 * stor-layout.c (layout_type, initialize_sizetypes,
12222 set_min_and_max_values_for_integral_type): Likewise.
12223 * tree-chrec.c (chrec_fold_multiply_poly_poly,
12224 reset_evolution_in_loop): Likewise.
12225 * tree-chrec.h (build_polynomial_chrec): Likewise.
12226 * tree-complex.c (build_replicated_const): Likewise.
12227 * tree-eh.c (honor_protect_cleanup_actions,
12228 lower_try_finally_onedest, lower_try_finally_copy,
12229 lower_try_finally_switch): Likewise.
12230 * tree-mudflap.c (mf_build_string, mx_register_decls,
12231 mudflap_register_call, mudflap_enqueue_constant): Likewise.
12232 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
12233 * tree-pretty-print.c (dump_generic_node): Likewise.
12234 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
12235 Likewise.
12236 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
12237 * tree-ssa-loop-niter.c (number_of_iterations_cond,
12238 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
12239 Likewise.
12240 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
12241 canonicalize_loop_induction_variables): Likewise.
12242 * tree-vectorizer.c (vect_create_index_for_array_ref,
12243 vect_transform_loop_bound, vect_compute_data_ref_alignment):
12244 Likewise.
12245
12246 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
12247 alpha_gimplify_va_arg_1): Likewise.
12248 * config/arm/arm.c (arm_get_cookie_size): Likewise.
12249 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
12250 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
12251 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12252 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
12253 mips_gimplify_va_arg_expr): Likewise.
12254 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12255 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
12256 add_compiler_branch_island): Likewise.
12257 * config/s390/s390.c (s390_va_start): Likewise.
12258 * config/sh/sh.c (sh_va_start): Likewise.
12259 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
12260 Likewise.
12261 * config/xtensa/xtensa.c (xtensa_va_start,
12262 xtensa_gimplify_va_arg_expr): Likewise.
12263
12264 * objc/objc-act.c (build_objc_string_object,
12265 build_objc_symtab_template, init_def_list, init_objc_symtab,
12266 init_module_descriptor, generate_static_references,
12267 build_selector_translation_table, get_proto_encoding,
12268 build_typed_selector_reference, build_selector_reference,
12269 build_next_objc_exception_stuff,
12270 build_method_prototype_list_template, generate_descriptor_table,
12271 generate_protocols, build_protocol_initializer,
12272 build_ivar_list_template, build_method_list_template,
12273 build_ivar_list_initializer, generate_ivars_list,
12274 generate_dispatch_table, generate_protocol_list,
12275 build_category_initializer, build_shared_structure_initializer,
12276 generate_shared_structures, handle_impent,
12277 generate_objc_image_info): Likewise.
12278
12279 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
12280
12281 * cfglayout.c (duplicate_insn_chain): Remove references to
12282 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
12283 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
12284 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
12285 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
12286 and NOTE_INSN_LOOP_CONT.
12287 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
12288 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
12289 and NOTE_INSN_LOOP_CONT.
12290 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
12291 check_dbra_loop, loop_dump_aux): Remove references to removed notes
12292 and fields.
12293 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
12294 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
12295 references to removed notes and fields.
12296 (subtract_reg_term, ujump_to_loop_cont): Remove.
12297
12298 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
12299
12300 * doc/install.texi: Document that libcpp does not require
12301 Automake any longer. Document that Automake 1.9.1 should
12302 work everywhere.
12303
12304 2004-08-25 Zack Weinberg <zack@codesourcery.com>
12305
12306 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
12307 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
12308 DWARF_DEBUGGING_INFO from choice-of-definition chain;
12309 restructure using C89 features (#elif, #error).
12310 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
12311 * config/sh/sh.h: Remove references to DWARF_DEBUG.
12312 * doc/invoke.texi: Remove references to DWARF version 1;
12313 clarify why -gdwarf-2<n> doesn't work.
12314
12315 2004-08-25 Zack Weinberg <zack@codesourcery.com>
12316
12317 * basic-block.h (BB_SET_PARTITION): Clear old value first.
12318 * cfg.c (clear_bb_flags): Don't clear partition setting.
12319 * ifcvt.c (find_if_case_1): Remove ??? comment.
12320
12321 2004-08-25 Alan Modra <amodra@bigpond.net.au>
12322
12323 PR target/17052
12324 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
12325 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
12326 current_function_stdarg in place of sysv_varargs_p.
12327 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
12328 sysv_varargs_p.
12329
12330 2004-08-24 Richard Henderson <rth@redhat.com>
12331
12332 PR target/16298
12333 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
12334 random codes within CONST.
12335
12336 2004-08-24 James E Wilson <wilson@specifixinc.com>
12337
12338 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
12339 -freorder-blocks-and-partition.
12340
12341 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12342
12343 PR middle-end/17044
12344 * tree-ssa-threadupdate.c (redirection_data): Make static.
12345 (thread_block): Use ggc_alloc_cleared to allocate struct
12346 redirection_data. Don't free elements in redirection_data.
12347
12348 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12349
12350 * config/mips/predicates.md (small_data_pattern): Match prefetches.
12351
12352 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12353
12354 PR tree-optimization/17016
12355 * tree-ssa-loop-niter.c (number_of_iterations_cond,
12356 number_of_iterations_exit): Use POINTER_TYPE_P instead
12357 of testing for POINTER_TYPE.
12358
12359 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12360
12361 * tree-ssa-loop-ivcanon.c: New file.
12362 * tree-ssa-loop-manip.c (create_iv): New function.
12363 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
12364 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
12365 * cfgloop.c (mark_single_exit_loops): New function.
12366 (verify_loop_structure): Verify single-exit loops.
12367 * cfgloop.h (struct loop): Add single_exit field.
12368 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
12369 (mark_single_exit_loops): Declare.
12370 (tree_num_loop_insns): Declare.
12371 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
12372 (duplicate_loop_to_header_edge): Use it.
12373 * common.opt (fivcanon): New flag.
12374 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
12375 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
12376 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
12377 (bsi_insert_on_edge_immediate): New function.
12378 * tree-flow.h (bsi_insert_on_edge_immediate,
12379 canonicalize_induction_variables, tree_unroll_loops_completely,
12380 create_iv): Declare.
12381 * tree-optimize.c (init_tree_optimization_passes): Add
12382 pass_iv_canon and pass_complete_unroll.
12383 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
12384 * tree-scalar-evolution.c (get_loop_exit_condition,
12385 get_exit_conditions_rec, number_of_iterations_in_loop,
12386 scev_initialize): Use single_exit information.
12387 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
12388 missing assumptions.
12389 (loop_niter_by_eval): Return number of iterations as unsigned
12390 int.
12391 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
12392 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
12393 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
12394 New passes.
12395 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
12396 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
12397 the defining statement is ready.
12398 * tree-vectorizer.c (vect_create_iv_simple): Removed.
12399 (vect_create_index_for_array_ref, vect_transform_loop_bound):
12400 Use create_iv.
12401 (vect_transform_loop_bound): Use single_exit information.
12402 (vect_analyze_loop_form): Cleanup bogus tests.
12403 (vectorize_loops): Do not call flow_loop_scan.
12404 * tree.h (may_negate_without_overflow_p): Declare.
12405 * fold-const.c (may_negate_without_overflow_p): Split out from ...
12406 (negate_expr_p): ... this function.
12407 (tree_expr_nonzero_p): Handle overflowed constants correctly.
12408 * doc/invoke.texi (-fivcanon): Document.
12409 * doc/passes.texi: Document canonical induction variable creation.
12410
12411 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12412
12413 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
12414 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
12415 using the mode of the operand to decide between them.
12416 * config/mips/mips.md (MOVECC): New mode macro.
12417 (ccreg): New mode attribute.
12418 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
12419 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
12420 (mov[sd]icc): Redefine using :GPR.
12421
12422 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12423
12424 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
12425 (mips_prefetch_cookie): New function.
12426 * config/mips/mips.c (print_operand_address): Fix handling of
12427 ADDRESS_CONST_INT.
12428 (mips_emit_prefetch): Delete.
12429 (mips_prefetch_cookie): New function.
12430 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
12431 mode of QImode for the address_operand. Use mips_prefetch_cookie
12432 to calculate the first "pref" operand.
12433 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
12434 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
12435
12436 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
12437
12438 * arm.md: Include predicates.md.
12439 * predicates.md: New file.
12440 * arm.c (s_register_operand, arm_hard_register_operand)
12441 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
12442 (arm_immediate_operand, arm_neg_immediate_operand)
12443 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
12444 (arm_add_operand, arm_addimm_operand, arm_not_operand)
12445 (offsettable_memory_operand, alignable_memory_operand)
12446 (arm_reload_memory_operand, arm_float_rhs_operand)
12447 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
12448 (index_operand, shiftable_operator, logical_binary_operator)
12449 (shift_operator, equality_operator, arm_comparison_operator)
12450 (minmax_operator, cc_register, dominant_cc_register)
12451 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
12452 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
12453 (const_shift_operand, load_multiple_operation)
12454 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
12455 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
12456 (cirrus_register_operand, cirrus_fp_register)
12457 (cirrus_shift_const): Delete, replaced with equivalents in
12458 predicates.md.
12459 (shift_op): Handle ROTATE.
12460 * arm-protos.h: Delete declarations for above.
12461 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
12462 * t-arm (MD_INCLUDES): Add predicates.md.
12463 (s-preds): Depends on MD_INCLUDES.
12464
12465 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12466
12467 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
12468 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
12469 patterns. Redefine using :GPR. Give the match_operator a mode.
12470 Use '%2' rather than '%z2' for operand 2.
12471
12472 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12473
12474 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
12475 attribute.
12476
12477 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12478
12479 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
12480 of internal patterns.
12481 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
12482 Redefine using :P.
12483 (tablejump): Use expand_binop to calculate address. Adjust names
12484 of internal patterns.
12485 (tablejump[sd]i): Renamed from tablejump_internal[12].
12486 Redefine using :P.
12487 (tablejump_mips16[12]): Delete.
12488
12489 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12490
12491 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
12492 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
12493 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
12494 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
12495 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
12496
12497 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12498
12499 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
12500 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
12501 using :GPR.
12502 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
12503 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
12504 (*branch_equality[sd]i_inverted): Likewise
12505 branch_equality{,_di}_inverted.
12506 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
12507 Redefine using :GPR.
12508
12509 2004-08-24 Zack Weinberg <zack@codesourcery.com>
12510
12511 * rtl.def: Reorganize, placing all codes used only in machine
12512 descriptions at the end.
12513
12514 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
12515 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
12516 rtx_name, rtx_format arrays by direct reference to rtl.def,
12517 first undefining GENERATOR_FILE. Define enum insn_note and
12518 note_insn_name array by direct reference to insn-notes.def.
12519 (adjust_field_rtx_def): Remove local definition of rtx_name.
12520 Use symbolic names for insn notes.
12521 * Makefile.in (gengtype.o): Update dependencies.
12522
12523 2004-08-24 Zack Weinberg <zack@codesourcery.com>
12524
12525 * basic-block.h (struct basic_block_def): Reorder fields to
12526 eliminate interior padding. Remove 'partition' field.
12527 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
12528 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
12529 (BB_COPY_PARTITION): New macros.
12530 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
12531 Replace all references to the 'partition' field of a basic
12532 block with new macros.
12533
12534 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
12535 * final.c (final_scan_insn): Don't handle it.
12536 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
12537 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
12538 * sched-rgn.c (sched_is_disabled_for_current_region_p):
12539 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
12540
12541 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
12542
12543 * c-decl.c (c_init_decl_processing): Adjust
12544 build_common_tree_nodes call.
12545 * expmed.c (const_mult_add_overflow_p): Use
12546 build_distinct_type_copy.
12547 * stor-layout.c (early_type_list): Remove.
12548 (layout_type): Don't append to early_type_list.
12549 (initialize_sizetypes): Add signed_p argument.
12550 (set_sizetype): Overwrite the stub type nodes directly.
12551 * tree.c (copy_node_stat): Clear a type's value cache here ...
12552 (build_distinct_type): ... not here.
12553 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
12554 * tree.h (initialize_sizetypes): Add signed_p argument.
12555 (build_common_tree_nodes): Likewise.
12556
12557 * objc/objc-act.c (get_static_reference): Use
12558 build_variant_type_copy.
12559 (get_protocol_reference): Likewise.
12560 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
12561
12562 2004-08-24 Richard Henderson <rth@redhat.com>
12563 Andrew Pinski <apinski@apple.com>
12564
12565 * gimplify.c (gimplify_array_ref_to_plus): Delete.
12566 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
12567 for ARRAY_REF.
12568
12569 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
12570 ARRAY_REF also to get to the STRING_CST.
12571
12572 2004-08-24 Paul Brook <paul@codesourcery.com>
12573
12574 * config/arm/arm.c (arm_override_options): Update error message.
12575 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
12576 TARGET_HARD_FLOAT_ABI.
12577 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
12578 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
12579
12580 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12581
12582 PR target/17093
12583 * config/m32r.md (movsi_sda): Add SI mode specification to
12584 UNSPEC.
12585
12586 2004-08-24 Nick Clifton <nickc@redhat.com>
12587
12588 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
12589 of seth_add3_operand.
12590
12591 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
12592
12593 * Makefile.in (PROTO_OBJS): Add errors.o.
12594 * protoize.c (fancy_abort): Remove.
12595 * mips-tfile.c (fancy_abort): Add parameters.
12596
12597 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
12598
12599 * doc/trouble.texi (C++ misunderstandings): Fix example code.
12600
12601 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
12602
12603 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
12604 (host-default.o): Add dependency on HOOKS_H.
12605 * config/x-linux: Likewise.
12606 * config/x-solaris: Likewise.
12607 * config/i386/x-mingw32: Likewise.
12608 * config/rs6000/x-darwin: Likewise.
12609
12610 2004-08-23 James E Wilson <wilson@specifixinc.com>
12611
12612 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
12613 DEF_REG_NOTE.
12614
12615 2004-08-23 Mark Mitchell <mark@codesourcery.com>
12616
12617 PR c/14492
12618 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
12619
12620 2004-08-23 Diego Novillo <dnovillo@redhat.com>
12621
12622 * cfg.c (check_bb_profile): Fix typos.
12623 * function.c (assign_parm_is_stack_parm): Likewise.
12624 * tree-nested.c: Likewise.
12625
12626 2004-08-23 Daniel Jacobowitz <dan@debian.org>
12627
12628 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
12629 Remove TYPECODE.
12630 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
12631
12632 2004-08-23 Eric Christopher <echristo@redhat.com>
12633
12634 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
12635 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
12636 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
12637 * target.h: Ditto.
12638 * hooks.h: Include machmode.h.
12639 (hook_bool_mode_false): Declare.
12640 * hooks.c (hook_bool_mode_false): Define.
12641 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
12642 * stor-layout.c (layout_type): Ditto.
12643 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
12644 Define to target macro.
12645 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
12646 * config/arm/arm.c: Ditto. Use.
12647 * config/arm/arm.h: Ditto.
12648 * config/arm/arm-protos.h: Ditto.
12649 * config/i386/i386.c: Ditto.
12650 * config/i386/i386.h: Ditto.
12651 * config/rs6000/rs6000.c: Ditto.
12652 * config/rs6000/rs6000.h: Ditto.
12653 * config/sh/sh.c: Ditto.
12654 * config/sh/sh.h: Ditto.
12655 * config/sh/sh-protos.h: Ditto.
12656 * config/sh/sh.md: Use.
12657 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
12658 to TARGET_VECTOR_MODE_SUPPORTED_P.
12659
12660 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
12661
12662 * Makefile.in (BUILD_ERRORS): Set to build-errors.
12663 (errors.o): New target for host.
12664 (build-errors.o): New target for build.
12665 (genobjs): Replace errors.o with build-errors.
12666 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
12667 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
12668 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
12669 (fix-header.o): Add errors.h
12670 * collect2.c (fancy_abort): Add parameters.
12671 * collect2.h (fancy_abort): Don't declare.
12672 * errors.h (fancy_abort): Don't declare.
12673 * errors.c: Include either bconfig.h or config.h.
12674 (fancy_abort): Trim filename.
12675 * fix-header.c (v_fatal, fatal): Remove.
12676 (progname): Remove definition.
12677 (main): Set progname here.
12678 * gcc.c (fancy_abort): Add parameters.
12679 * gcc.h (fancy_abort): Remove declaration.
12680 * gcov.c (fancy_abort): Remove.
12681 * rtl.h (fancy_abort): Don't declare.
12682 (abort): Don't define.
12683 * tree.h (fancy_abort): Don't declare.
12684 (abort): Don't define.
12685 * system.h (fancy_abort): Declare.
12686 (abort): Define to fancy_abort.
12687 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
12688
12689 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
12690 (usize_type, ubitsizetype): Remove.
12691 * stor-layout.c (set_sizetype): Don't initialize usizetype,
12692 ubitsizetype.
12693 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
12694
12695 * tree.h (build_distinct_type_copy): New.
12696 (build_type_copy): ... here. Rename to ...
12697 (build_variant_type_copy): ... here.
12698 * tree.c (build_qualified_type): Rename build_type_copy call.
12699 (build_distinct_type_copy): New, broken out of ...
12700 (build_type_copy): ... here. Rename to ...
12701 (build_variant_type_copy): ... here. Use
12702 build_distinct_type_copy.
12703 (build_common_tree_nodes_2): Rename build_type_copy call.
12704 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
12705 call.
12706 (handle_packed_attribute, handle_unused_attribute,
12707 handle_transparanet_union_attribute, handle_aligned_attribute,
12708 handle_deprecated_attribute): Likewise.
12709 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
12710 Likewise.
12711 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
12712 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
12713 build_distinct_type_copy.
12714
12715 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12716
12717 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
12718 attribute.
12719
12720 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12721
12722 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
12723 loads and stores.
12724 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
12725 formerly unnamed patterns. Redefine using :P for the address. Remove
12726 explicit length attributes.
12727
12728 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12729
12730 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
12731 New functions.
12732 (single_reachable_address): Use them.
12733 (schedule_sm): Add dump.
12734 (is_call_clobbered_ref): New function.
12735 (determine_lsm_reg): Check whether the reference is call clobbered.
12736 Only work for gimple_reg_type values.
12737
12738 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12739
12740 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
12741 $31 store insns. Redefine using :GPR.
12742
12743 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12744
12745 * config/mips/mips.md (P): New mode macro.
12746 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
12747 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
12748 Add mode attributes.
12749
12750 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12751
12752 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
12753 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
12754 later constants to cover the gap.
12755 (load, store): New mode attributes.
12756 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
12757 Use new unspec constants.
12758
12759 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12760
12761 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
12762 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
12763 to use register_operand rather than uns_arith_operand as the predicate
12764 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
12765 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
12766 Redefine using :GPR. Make same predicate change here. Extend the
12767 commutativity of operands 1 and 2 from the SImode version to the
12768 DImode one.
12769 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
12770 but with no predicate changes.
12771 (*nor[sd]i3): Redefine using :GPR.
12772
12773 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12774
12775 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
12776 noreturn functions.
12777
12778 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12779
12780 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
12781 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
12782 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
12783 rather than "%z2" (with a fake const0_rtx for operand 2).
12784 (ffs[sd]i2): Redefine using :GPR.
12785 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
12786
12787 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12788
12789 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
12790
12791 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12792
12793 * config/mips/mips.md (any_extend): New code macro.
12794 (u, su): New code attributes.
12795 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
12796 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
12797 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
12798 (*{s,u}mul_acc_di): Redefine using any_extend.
12799 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
12800 to reflect real insn names.
12801 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
12802 with an any_extend template.
12803 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
12804 Add '*' to name.
12805
12806 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12807
12808 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
12809 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
12810 (mul[sd]i3_r4000): Redefine using :GPR.
12811 (mulsi3_mult3): Don't check TARGET_MAD separately.
12812 (muldi3_mult3): Moved after mulsi_mult3.
12813
12814 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12815
12816 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
12817 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
12818 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
12819 (TARGET_GAS, TARGET_MIPS_AS): Delete.
12820 (TARGET_GPWORD): Define to true for n32 on IRIX.
12821 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
12822 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
12823 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
12824 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
12825 (MDEBUG_ASM_SPEC): Delete, folding into...
12826 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
12827 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
12828 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
12829 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
12830 to define asm_abi_default_spec.
12831 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
12832 (TARGET_ASM_SELECT_SECTION): Delete.
12833 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
12834 for non-mips16 code, removing previous workaround for SGI assemblers.
12835 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
12836 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
12837 (override_options): Remove !TARGET_GAS and !have_named_sections code.
12838 (print_operand): Fold TARGET_GAS conditionals into asm strings.
12839 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
12840 ASM_STABS_OP and ASM_STABN_OP.
12841 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
12842 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
12843 (mips_output_function_prologue): Remove !TARGET_GAS code.
12844 (mips_select_rtx_section): Remove !have_named_sections code.
12845 (mips_select_section): Delete.
12846 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
12847 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
12848 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
12849 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
12850 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
12851 * config/mips/windiss.h (ASM_SPEC): Likewise.
12852
12853 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12854
12855 * read-rtl.c (map_value, mapping, macro_group): New structures.
12856 (BELLWETHER_CODE): New macro.
12857 (modes, codes, bellwether_codes): New variables.
12858 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
12859 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
12860 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
12861 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
12862 (add_map_value, initialize_macros): New functions.
12863 (def_hash, def_hash_eq_p): Generalize to anything that points to,
12864 or starts with, a char * field.
12865 (find_macro, read_mapping, check_code_macro): New functions.
12866 (read_rtx_1): New, split out from read_rtx. Handle the new
12867 define_{mode,code}_{macro,attr} constructs. Use find_macro
12868 to parse the name of a code or mode. Use BELLWETHER_CODE to
12869 extract the format and to choose a suitable code for rtx_alloc.
12870 Modify recursive invocations to use read_rtx_1.
12871 (read_rtx): Call initialize_macros. Apply code and mode macros
12872 to the rtx returned by read_rtx_1. Cache everything after the
12873 first macro expansion for subsequent read_rtx calls.
12874 * doc/md.texi: Document new .md constructs.
12875 * config/mips/mips.md (GPR): New mode macro.
12876 (d, si8_di5): New mode attributes.
12877 (any_cond): New code macro.
12878 (add[sd]i3): Redefine using :GPR.
12879 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
12880 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
12881 previously unnamed MIPS16 patterns.
12882 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
12883 lines. Don't match (plus (const_int 0) ...).
12884 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
12885 Use a define_split to generate the addition.
12886 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
12887 (subsi3_internal): Delete.
12888 (*subsi3_extended): Renamed from subsi3_internal_2.
12889 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
12890 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
12891 using an any_cond template.
12892
12893 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12894
12895 * read-rtl.c (read_rtx): Tidy use of format_ptr.
12896
12897 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12898
12899 * read-rtl.c (string_obstack): New file-scope variable.
12900 (read_string, read_quoted_string, read_braced_string)
12901 (read_escape): Remove obstack parameter and use string_obstack instead.
12902 (read_rtx): Remove function-local rtl_obstack and initialize
12903 string_obstack instead. Update call to read_string.
12904
12905 2004-08-22 Andrew Pinski <apinski@apple.com>
12906
12907 PR c/15262
12908 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
12909 expression is not constant.
12910 (c_finish_return): Do not go through INDIRECT_REF when looking
12911 for the inner expression of an ADDR_EXPR for warning about.
12912
12913 2004-08-22 Richard Henderson <rth@redhat.com>
12914
12915 PR 17075
12916 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
12917 create new blocks and fall through.
12918 (expand_gimple_basic_block): Update to match.
12919
12920 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
12921
12922 * reload.c (find_reloads_address): Make return value tri-state.
12923 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
12924 (find_reloads): Assume that reloaded addresses match 'o' or
12925 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
12926 returned 1 (not -1). Omit optional reloads for address operands
12927 only if find_reloads_address returned 1 (not -1).
12928
12929 * config/s390/s390.c (legitimize_reload_address): New function.
12930 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
12931 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
12932 legitimize_reload_address.
12933
12934 2004-08-22 Richard Hendersion <rth@redhat.com>
12935
12936 * tree.h (SAVE_EXPR_RESOLVED_P): New.
12937 * gimplify.c (gimplify_save_expr): Use it.
12938 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
12939 on the temporary variable.
12940
12941 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
12942
12943 * fold-const.c (rtl_expr_nonnegative_p): Delete.
12944 * tree.h (rtl_expr_nonnegative_p): Remove.
12945
12946 2004-08-22 Steven Bosscher <stevenb@suse.de>
12947
12948 * config/i386/ppro.md (ppro_complex_insn): Add missing check
12949 for cpu==pentiumpro.
12950
12951 * combine.c (struct reg_stat): Fix comment typo.
12952
12953 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
12954
12955 * c-tree.h (c_sizeof_nowarn): Remove.
12956
12957 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
12958
12959 * c-decl.c (set_array_declarator_type): Rename to
12960 set_array_declarator_inner.
12961 (build_c_parm, build_attrs_declarator, build_function_declarator):
12962 New functions.
12963 (make_pointer_declarator): Call build_attrs_declarator.
12964 * c-tree.h (set_array_declarator_type): Rename to
12965 set_array_declarator_inner.
12966 (build_c_parm, build_attrs_declarator, build_function_declarator):
12967 New prototypes.
12968 * c-parse.in (after_type_declarator,
12969 parm_declarator_starttypename, parm_declarator_nostarttypename,
12970 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
12971 firstparm): Use these functions
12972
12973 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
12974
12975 * c-decl.c (build_array_declarator, set_array_declarator_type,
12976 start_decl, grokdeclarator, grokparms): Change boolean parameters
12977 to type bool.
12978 * c-tree.h (build_array_declarator, set_array_declarator_type,
12979 start_decl): Update prototypes.
12980 * c-decl.c, c-parse.in: All callers changed.
12981
12982 2004-08-21 Mike Stump <mrs@apple.com>
12983
12984 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
12985 (darwin_fix_and_continue): Likewise.
12986 (darwin_fix_and_continue_switch): Likewise.
12987 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
12988 (darwin_fix_and_continue): Likewise.
12989 (darwin_fix_and_continue_switch): Likewise.
12990
12991 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
12992
12993 PR c++/16030
12994 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
12995 Remove, merging into ...
12996 (gen_stdcall_or_fastcall_suffix): New function, returning tree
12997 rather than const char*, and accepting additional parameter.
12998 Don't add suffix to '*'-prefixed symbols or variadic functions.
12999 (i386_pe_encode_section_info): Adjust for call to new function.
13000 Call change_decl_assembler_name.
13001
13002 2004-08-20 Mike Stump <mrs@apple.com>
13003
13004 * config/darwin.c (machopic_indirect_data_reference): Mark
13005 stubs as defined.
13006 * config/386/386.c (darwin_local_data_pic): Add.
13007 (legitimate_constant_p): Reorder so that PLUS handling runs
13008 before darwin_local_data_pic to match the ordering in
13009 legitimate_pic_address_disp_p and so that MINUS runs after
13010 darwin_local_data_pic as otherwise the darwin_local_data_pic
13011 logic can be skipped, which would be very bad.
13012 (legitimate_pic_address_disp_p): Move from from here to
13013 darwin_local_data_pic so it can be reused.
13014
13015 2004-08-21 Alan Modra <amodra@bigpond.net.au>
13016
13017 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
13018 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
13019 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
13020 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
13021 (RS6000_ABI_NAME): Define as "linux".
13022 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
13023 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
13024 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
13025 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
13026 * config/rs6000/rs6000.c (dot_symbols): New global var.
13027 (rs6000_output_function_entry): New function, modified for
13028 !DOT_SYMBOLS..
13029 (print_operand <case 'z'>): ..extracted from here.
13030 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
13031 (rs6000_output_function_epilogue): Likewise.
13032 (rs6000_elf_declare_function_name): Likewise.
13033 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
13034 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
13035 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
13036 * configure: Regenerate.
13037 * config.in: Regenerate.
13038
13039 2004-08-20 Mark Mitchell <mark@codesourcery.com>
13040
13041 * reload.c (find_reloads_address): Fix thinko in previous change.
13042
13043 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
13044 a CONST_INT.
13045
13046 2004-08-20 Jakub Jelinek <jakub@redhat.com>
13047
13048 PR rtl-optimization/17099
13049 * combine.c (force_to_mode): Check if inner_mask has any bits set
13050 outside of GET_MODE (x) instead of op_mode.
13051
13052 2004-08-20 Mark Mitchell <mark@codesourcery.com>
13053
13054 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
13055 fragment.
13056 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
13057 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
13058 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
13059 architecture.
13060 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
13061 configurations.
13062 * config/arm/t-symbian: New file.
13063
13064 2004-08-20 Andrew Pinski <apinski@apple.com>
13065
13066 * regrename.c (kill_value_regno): ANSIfy.
13067
13068 2004-08-20 Dale Johannesen <dalej@apple.com>
13069
13070 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
13071
13072 2004-08-20 Daniel Jacobowitz <dan@debian.org>
13073
13074 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
13075 (kill_value_regno): New function, derived from kill_value.
13076 (kill_value): Update.
13077 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
13078
13079 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
13080
13081 Fix PR tree-optimization/17111
13082 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
13083 of non-value_handles.
13084 (bitmap_set_contains): All constants are in every set.
13085
13086 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
13087
13088 * fold-const.c (round_up, round_down): Use build_int_cst.
13089 Optimize common case.
13090
13091 2004-08-20 Zack Weinberg <zack@codesourcery.com>
13092 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13093
13094 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
13095 one_only_data_section): Rename to som_readonly_data_section,
13096 som_one_only_readonly_data_section and som_one_only_data_section.
13097 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
13098 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
13099 conditional defines.
13100 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
13101 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
13102 string values.
13103 (pa_select_section): Use renamed section functions.
13104 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
13105 SOM_READONLY_DATA_SECTION_FUNCTION,
13106 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
13107 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
13108 Define here ...
13109 * config/pa/som.h: ... not here.
13110 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
13111 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
13112 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
13113 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
13114 (READONLY_DATA_SECTION): Use som_readonly_data_section.
13115
13116 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
13117
13118 * fold-const.c (int_const_binop): Don't generate non-overflowing
13119 size-types specially.
13120 (fold_convert_const): Likewise.
13121
13122 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
13123 clear cache on copied sizetype.
13124
13125 2004-08-20 Ben Elliston <bje@au.ibm.com>
13126
13127 * configure.ac: Don't escape apostrophe in --enable-coverage help.
13128 * configure: Regenerate.
13129
13130 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
13131
13132 PR 5620
13133 * gcc.c (struct stat input_stat): Don't define if
13134 HOST_LACKS_INODE_NUMBERS
13135 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
13136 than stat to determine if temp file is same as input file.
13137 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
13138 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
13139
13140 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
13141
13142 * configure.ac (mips*-*-*): Print an error if not using GAS.
13143 * configure: Regenerated.
13144 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
13145 comments about buggy MIPSpro assemblers.
13146 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
13147 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
13148 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
13149 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
13150 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
13151 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
13152 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
13153 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
13154 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
13155 of more general IRIX 6 definitions.
13156 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
13157 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
13158 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
13159 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
13160 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
13161 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
13162 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
13163 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
13164 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
13165 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
13166 (LINK_SPEC): Move most of definition to iris.h.
13167 (SUBTARGET_LINK_SPEC): New macro.
13168 (IRIX_STARTFILE_SPEC): Fold into...
13169 (STARTFILE_SPEC): ...here.
13170 (IRIX_ENDFILE_SPEC): Fold into...
13171 (ENDFILE_SPEC): ...here.
13172 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
13173 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
13174 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
13175 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
13176 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
13177 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
13178 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
13179 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
13180 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
13181 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
13182 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
13183 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
13184 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
13185 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
13186 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
13187 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
13188 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
13189 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
13190 (TARGET_IRIX6): Define to 1.
13191 (DRIVER_SELF_SPECS): Define.
13192 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
13193 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
13194 (SUBTARGET_LINK_SPEC): New macro.
13195 (IRIX_STARTFILE_SPEC): Fold into...
13196 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
13197 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
13198 (LIB_SPEC, LIBGCC_SPEC): Use them.
13199 (LIB_SPEC): Remove !mabi=* case.
13200 (IRIX_ENDFILE_SPEC): Fold into...
13201 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
13202 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
13203 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
13204 (TARGET_IRIX6): New macro.
13205 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
13206 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
13207 (LABEL_AFTER_LOC): Delete.
13208 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
13209 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
13210 (mips_build_builtin_va_list): Check TARGET_IRIX6.
13211 (override_options): Remove TARGET_SGI_O32_AS-related code.
13212 (irix_output_external_libcall): Make static.
13213 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
13214 LABEL_AFTER_LOC.
13215 (mips_file_start): Tidy guard for ABI sections. Remove use of
13216 ABICALLS_ASM_OP; use .abicalls instead.
13217 (mips_output_aligned_decl_common, mips_declare_object_name)
13218 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
13219 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
13220 .globl foo .text directives.
13221 (irix_asm_named_section_1, irix_asm_named_section)
13222 (irix_section_align_entry, irix_section_align_htab)
13223 (irix_orig_asm_out_file, irix_section_align_entry_eq)
13224 (irix_section_align_entry_hash, irix_asm_output_align)
13225 (irix_file_start, irix_section_align_1, copy_file_data)
13226 (irix_file_end, irix_section_type_flags): Delete.
13227 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
13228 Use standard section syntax. Remove protective "jr $31".
13229 (__gcc_fini): Likewise .gcc_fini.
13230 * config/mips/irix-crtn.asm: Adjust sections accordingly.
13231 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
13232 iris5gas.h.
13233 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
13234 from t-irix-gld.
13235 (EXTRA_MULTILIB_PARTS): Define.
13236 * config/mips/t-iris6: Remove bogus comment.
13237 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
13238 * config/mips/iris5gas.h, config/mips/iris5gld.h,
13239 config/mips/iris6gas.h, config/mips/iris6gld.h,
13240 config/mips/t-iris5-as, config/mips/t-iris5-gas
13241 config/mips/t-irix-gld: Delete.
13242 * config/mips/iris.h: New file.
13243 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
13244
13245 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
13246
13247 * postreload.c (reload_cse_move2add): Allow any condjump, but check
13248 that the implicit set isn't clobbered in the jump insn.
13249
13250 2004-08-19 Mark Mitchell <mark@codesourcery.com>
13251
13252 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
13253 * optabs.c (init_optabs): Don't check it.
13254 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
13255 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
13256
13257 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
13258
13259 * config/s390/s390.md (s390_warn_framesize_string)
13260 (s390_warn_dynamic_string, s390_stack_size_string)
13261 (s390_stack_guard_string): New global string variables.
13262 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
13263 (s390_stack_guard): New global variables.
13264 (override_options): Added checks for the new options.
13265 (s390_emit_prologue): Emit stack check and trap code and perform
13266 compile time stack size checking.
13267
13268 * config/s390/s390.h (TARGET_OPTIONS): Added new options
13269 "warn-framesize", "warn-dynamicstack", "stack-size" and
13270 "stack-guard".
13271
13272 * doc/invoke.texi: Added documentation for the new options.
13273
13274 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
13275
13276 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
13277 to eliminate warning.
13278 (linear_search_fdes): Declare p as unsigned.
13279 (binary_search_mixed_encoding_fdes): Likewise.
13280 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
13281 to eliminate warning.
13282 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
13283 type cast.
13284
13285 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
13286
13287 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
13288 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
13289 instead of one. Check for strictly legitimate address.
13290 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
13291 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
13292
13293 2004-08-19 Eric Christopher <echristo@redhat.com>
13294
13295 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
13296 * langhooks.h (unsave_expr_now): Ditto.
13297 * tree.h (unsave_expr_1): Remove prototype.
13298 (lhd_unsave_expr_now): Rename to unsave_expr_now.
13299 * tree-inline.c (unsave_expr_1): Move here
13300 from tree.c. Make static.
13301 (unsave_expr_now): Rename from lhd_unsave_expr_now.
13302 * tree-sra.c: Fix up for rename.
13303 * tree-ssa-copy.c: Ditto.
13304 * tree-eh.c: Ditto.
13305 * tree.c (unsave_expr_1): Move to tree-inline.c.
13306
13307 2004-08-19 Caroline Tice <ctice@apple.com>
13308
13309 * config/i386/cygming.h (switch_to_section): Fix typo (change
13310 in_unlikely_text_section to in_unlikely_executed_text).
13311
13312 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
13313
13314 * vec.h (VEC_lower_bound): New macro.
13315
13316 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
13317
13318 PR target/16446
13319 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
13320 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
13321 treat each ABI separately. Deal with n32/n64 complex float arguments.
13322 (function_arg): Add associated complex handling here.
13323
13324 2004-08-19 Richard Henderson <rth@redhat.com>
13325
13326 * config/arm/arm.c (arm_gen_load_multiple): Use
13327 adjust_automodify_address. Take base memory and offset instead
13328 of unchanging/struct/scalar bits.
13329 (arm_gen_store_multiple): Likewise.
13330 (arm_gen_movmemqi): Use adjust_automodify_address.
13331 * config/arm/arm-protos.h: Update decls.
13332 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
13333 (store_multiple): Similarly.
13334
13335 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
13336
13337 * regclass.c (globalize_reg): Update call_really_used_regs.
13338
13339 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
13340
13341 * doc/invoke.texi (integer-share-limit): Document.
13342
13343 * tree.h (TYPE_CACHED_VALUES_P): New.
13344 (TYPE_CACHED_VALUES): New.
13345 (TYPE_ORIG_SIZE_TYPE): Adjust.
13346 * tree.def (INTEGER_CST): Update documentation.
13347 * tree.c: Inlcude params.h.
13348 (build_int_cst): Cache small values.
13349 (build_type_copy): Do not copy the value cache.
13350 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
13351 unneeded zeroing.
13352 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
13353 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
13354 cache.
13355 * fold-const.c (force_fit_type): Copy value when setting
13356 overflows.
13357 (int_const_binop): Likewise.
13358 * stor-layout.c: Include params.h
13359 (set_sizetype): Create values cache.
13360 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
13361 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
13362 * params.h (INTEGER_SHARE_LIMIT): New.
13363 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
13364
13365 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
13366
13367 * gimplify.c (gimplify_minimax_expr): Remove.
13368 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
13369
13370 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
13371
13372 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
13373 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
13374
13375 2004-08-19 Mark Mitchell <mark@codesourcery.com>
13376
13377 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
13378
13379 2004-08-18 Andrew Pinski <apinski@apple.com>
13380
13381 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
13382
13383 2004-08-18 Mark Mitchell <mark@codesourcery.com>
13384
13385 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
13386 (__aeabi_ul2f): Likewise.
13387
13388 2004-08-18 Richard Henderson <rth@redhat.com>
13389
13390 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
13391 move to rtl completely.
13392 (struct meminsnbuf, xtensa_emit_block_move): Remove.
13393 (xtensa_find_mode_for_size): Remove.
13394 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
13395 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
13396
13397 2004-08-18 Richard Henderson <rth@redhat.com>
13398
13399 * config/mcore/mcore.c (mode_from_align): Remove DImode.
13400 (block_move_sequence): Rewrite to use adjust_address.
13401 (mcore_expand_block_move): Cleanup logic. Accept only operands.
13402 Return boolean indicating success/failure.
13403 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
13404 * config/mcore/mcore.md (movmemsi): Update to match.
13405
13406 2004-08-18 Mike Stump <mrs@apple.com>
13407
13408 * doc/invoke.texi (-mfix-and-continue): Add support for
13409 fast turn around debugging.
13410 (-ffix-and-continue): Likewise.
13411 (-mindirect-data): Likewise.
13412 (-findirect-data): Likewise.
13413 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
13414 (indirect_data): Likewise.
13415 (machopic_data_defined_p): Likewise.
13416 (machopic_output_indirection): Likewise.
13417 (darwin_encode_section_info): Likewise.
13418 (darwin_fix_and_continue): Likewise.
13419 (darwin_fix_and_continue_switch): Likewise.
13420 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
13421 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
13422 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
13423 (SUBTARGET_OPTIONS): Likewise.
13424 (darwin_fix_and_continue): Likewise.
13425 (darwin_fix_and_continue_switch): Likewise.
13426 (TARGET_FIX_AND_CONTINUE): Likewise.
13427 * config/rs6000.c (rs6000_emit_prologue): Likewise.
13428
13429 2004-08-19 Steven Bosscher <stevenb@suse.de>
13430
13431 * basic-block.h (struct edge_def): Remove crossing_edge.
13432 (EDGE_CROSSING): New define.
13433 (EDGE_ALL_FLAGS): Update.
13434 * bb-reorder.c (find_traces_1_round, better_edge_p,
13435 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
13436 find_jump_block, fix_crossing_conditional_branches,
13437 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
13438 Replace all occurences of crossing_edge with an edge flag check
13439 or set/reset.
13440 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
13441 try_crossjump_bb): Likewise.
13442 * cfglayout.c (fixup_reorder_chain): Likewise.
13443 * cfgrtl.c (force_nonfallthru_and_redirect,
13444 commit_one_edge_insertion): Likewise.
13445
13446 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
13447 * tree-flow.h (compute_dominance_frontiers): Move prototype...
13448 * basic-block.h: ...here.
13449 * tree-cfg.c (compute_dominance_frontiers_1,
13450 compute_dominance_frontiers): Move from here...
13451 * cfganal.c: ...to here. Include timevar.h.
13452
13453 2004-08-18 James E Wilson <wilson@specifixinc.com>
13454
13455 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
13456 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
13457
13458 * config/mips/mips.md (type): Add frdiv.
13459 (divsf3+1, divsf3+2): Change type to frdiv.
13460 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
13461 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
13462
13463 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
13464 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
13465 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
13466 * config/mips/5000.md (r5k_fdiv_single): Likewise.
13467 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
13468 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
13469 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
13470 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
13471 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
13472 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
13473 Likewise.
13474 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
13475
13476 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
13477
13478 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
13479 get regression tester working again.
13480
13481 2004-08-18 Zack Weinberg <zack@codesourcery.com>
13482
13483 * insn-notes.def, reg-notes.def: New files.
13484 * rtl.h: Use them to define enum insn_note and enum reg_note.
13485 * rtl.c: Use them to define note_insn_name and reg_note_name.
13486 * Makefile.in (RTL_BASE_H): Update.
13487
13488 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
13489 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
13490
13491 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
13492
13493 * arm.c (arm_size_rtx_costs): New function.
13494 (arm_override_options): Use it if optimizing for space.
13495
13496 2004-08-18 Richard Henderson <rth@redhat.com>
13497
13498 * emit-rtl.c (gen_const_mem): New.
13499 * rtl.h (gen_const_mem): Declare.
13500 * expr.c (do_tablejump): Use it.
13501 * varasm.c (force_const_mem): Likewise.
13502 * config/darwin.c (machopic_indirect_data_reference): Likewise.
13503 (machopic_legitimize_pic_address): Likewise.
13504 * config/arm/arm.c (legitimize_pic_address): Likewise.
13505 * config/i386/i386.c (legitimize_pic_address): Likewise.
13506 (legitimize_tls_address): Likewise.
13507 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
13508 * config/ia64/ia64.md (load_fptr): Likewise.
13509 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
13510 * config/pa/pa.c (legitimize_pic_address): Likewise.
13511 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
13512 (rs6000_emit_move): Likewise.
13513 * config/s390/s390.c (legitimize_pic_address): Likewise.
13514 (legitimize_tls_address): Likewise.
13515 * config/s390/s390.md (casesi): Likewise.
13516 * config/sh/sh.c (sh_reorg): Likewise.
13517 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
13518 * config/v850/v850.md (casesi): Likewise.
13519
13520 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
13521 * config/sh/sh.c (prepare_move_operands): Remove incorrect
13522 use of MEM_READONLY_P.
13523
13524 2004-08-18 Steven Bosscher <stevenb@suse.de>
13525
13526 * Makefile.in (OBJS-common): Add postreload-gcse.c.
13527 Add new postreload-gcse.o.
13528 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
13529 (lookup_as_function, insert, rehash_using_reg, use_related_value,
13530 equiv_constant): Use SAFE_HASH instead of safe_hash.
13531 (exp_equiv_p): Export. Add for_gcse argument when comparing
13532 for GCSE.
13533 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
13534 find_comparison_args, fold_rtx, cse_insn): Update callers.
13535 (hash_rtx): New function derived from old canon_hash and bits
13536 from gcse.c hash_expr_1.
13537 (canon_hash_string): Rename to hash_rtx_string.
13538 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
13539 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
13540 (cselib_lookup): Update this caller.
13541 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
13542 Make static.
13543 (hash_expr): Call hash_rtx.
13544 (ldst_entry): Likewise.
13545 (expr_equiv_p): Call exp_equiv_p.
13546 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
13547 reg_used_on_edge, reg_set_between_after_reload_p,
13548 reg_used_between_after_reload_p, get_avail_load_store_reg,
13549 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
13550 get_bb_avail_insn, hash_scan_set_after_reload,
13551 compute_hash_table_after_reload,
13552 eliminate_partially_redundant_loads, gcse_after_reload,
13553 get_bb_avail_insn, gcse_after_reload_main): Remove.
13554 * postreload-gcse.c: New file, reincarnating most of the above.
13555 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
13556 (gcse_after_reload_main): Update prototype.
13557 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
13558 * passes.c (rest_of_handle_gcse2): Use it.
13559
13560 2004-08-18 Diego Novillo <dnovillo@redhat.com>
13561
13562 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
13563 (pass_loop_done): Likewise.
13564
13565 2004-08-18 Andrew Pinski <apinski@apple.com>
13566
13567 * config/rs6000/darwin.md: Delete the altivec patterns which are
13568 handled differently now.
13569 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
13570 (macho_correct_pic_di): Likewise.
13571 (call_indirect_nonlocal_darwin64): Likewise.
13572 Delete the save world/saveFP/saveVec patterns.
13573
13574 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
13575 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
13576 * config/rs6000/rs6000.md: Include darwin.md.
13577 (builtin_setjmp_receiver): Add DImode case.
13578 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
13579 Darwin bits.
13580
13581 2004-08-18 Matt Austern <austern@apple.com>
13582
13583 Dead code stripping
13584 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
13585 * darwin.c (darwin_file_end): Mark file as potentially strippable.
13586
13587 2004-08-18 Richard Henderson <rth@redhat.com>
13588
13589 * alias.c (readonly_fields_p): Remove.
13590 (objects_must_conflict_p): Don't call it.
13591 * tree.h (readonly_fields_p): Remove.
13592 * langhooks.h (struct lang_hooks): Remove honor_readonly.
13593 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
13594
13595 2004-08-18 Diego Novillo <dnovillo@redhat.com>
13596
13597 * tree-dfa.c (add_referenced_var): Only global variables are
13598 call-clobbered.
13599 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
13600 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
13601 all pointers dereferenced if the statement dereferences them.
13602 (create_name_tags): Do not create memory tags for pointers
13603 that have PT_ANYTHING set.
13604 Also check if PT_VARS is not empty before creating a name tag.
13605 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
13606 variables that share the same alias set with a pointer that
13607 may point anywhere.
13608 (add_may_alias): Add FIXME comment to remove clobbering
13609 aliased variables and tags.
13610 (replace_may_alias): Likewise.
13611 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
13612 (merge_pointed_to_info): If the original variable has not
13613 points-to information, call set_pt_anything.
13614 (add_pointed_to_var): Do not prevent adding a pointed-to
13615 variable if the pointers is PT_ANYTHING.
13616 If the variable is a global, set PT_GLOBAL_MEM.
13617 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
13618 pointer type only come in PTR+OFFSET flavours.
13619 Always call merge_pointed_to_info on PHI arguments that are
13620 SSA_NAMEs.
13621 (get_nmt_for): Mark call-clobbered tags whose pointer points
13622 to global memory.
13623 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
13624 values.
13625 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
13626 FLAGS.
13627 (add_stmt_operand): Abort if the caller tried to add a killing
13628 definition for a memory tag.
13629 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
13630 unnecessary checks.
13631
13632 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
13633
13634 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
13635 from call_used_regs. Update call_really_used_regs.
13636 (CALL_REALLY_USED_REGISTERS): Define.
13637 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
13638 Replace call_used_regs with call_really_used_regs.
13639 (calc_live_regs, sh_media_register_for_return): Likewise.
13640 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
13641 * sh.md (return_media): Likewise.
13642
13643 2004-08-18 Andrew Pinski <apinski@apple.com>
13644
13645 * config/darwin.c (machopic_legitimize_pic_address): Only set
13646 MEM_READONLY_P in the non TARGET_TOC case.
13647
13648 2004-08-18 Zack Weinberg <zack@codesourcery.com>
13649
13650 * rtl.def (NIL): Delete.
13651 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
13652 Tighten the syntax a little.
13653
13654 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
13655 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
13656 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
13657 * config/i386/predicates.md, config/m32r/m32r.h
13658 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
13659 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
13660 * config/sparc/sparc.h, doc/tm.texi:
13661 Replace all occurrences of NIL with UNKNOWN.
13662
13663 2004-08-18 Zack Weinberg <zack@codesourcery.com>
13664
13665 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
13666 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
13667 sequence inline. Move drop_through_label code into this
13668 block, being the only place it is used. Adjust comments.
13669
13670 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
13671
13672 * config/rs6000/altivec.md: Add new patterns for calls to
13673 save_world/rest_world functions.
13674
13675 * config/rs6000/rs6000-protos.h: (save_world_operation,
13676 restore_world_operation) new declarations.
13677
13678 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
13679 field added.
13680 (rs6000_stack_info): Set world_save_p field.
13681 (save_world_operation): New function.
13682 (restore_world_operation): New function.
13683 (compute_save_world_info): New function.
13684 (rs6000_stack_info): Call compute_save_world_info.
13685 (rs6000_emit_prologue): Check for world_save_p and generate
13686 pattern to call save_world for saving all non-volatile and
13687 special registers.
13688 (rs6000_emit_epilogue): Check for world_save_p and generate
13689 pattern to call rest_world to restore saved registers.
13690
13691 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
13692 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
13693 (rs6000_reg_names): New entries added for save_world_operation and
13694 restore_world_operation.
13695
13696 2004-08-18 Caroline Tice <ctice@apple.com>
13697
13698 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
13699 "-freorder-blocks-and-partition" to the flags used in second
13700 stage of profiledbootstrap.
13701 * bb-reorder.c (push_to_next_round_p): Add new variable,
13702 next_round_is_last; set and use variable to make sure, when
13703 partitioning, that the last trace construction round consists
13704 of all (and only) cold basic blocks.
13705 (rotate_loop): Don't copy blocks that end in a section
13706 crossing jump.
13707 (copy_bb): Correctly initialize "partition" of duplicated bb.
13708 (add_unlikely_executed_notes): Add a comment.
13709 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
13710 to make sure, if function contains hot blocks, that the
13711 successors of ENTRY_BLOCK_PTR are hot; also, only look for
13712 crossing edges if the architecture supports named sections.
13713 (mark_bb_for_unlikely_executed_section): Modify to always
13714 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
13715 the basic block note insn.
13716 (fix_crossing_unconditional_branches): Remove extra space.
13717 (fix_edges_for_rarely_executed_code): Modify to only do
13718 partitioning work if the architecture supports named sections.
13719 (reorder_basic_blocks): Modify to only add
13720 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
13721 supports named sections.
13722 * c-common.c (handle_section_attribute): Initialize new global
13723 variable, user_defined_section_attribute, to true if user has
13724 specified one.
13725 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
13726 forward edges that cross section boundaries.
13727 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
13728 partitioning information if the architecture supports named
13729 sections.
13730 * cfgrtl.c (target.h): Add statement to include this.
13731 (rtl_split_block): Make sure newly created bb gets correct
13732 partition.
13733 (try_redirect_by_replacing_jump): Make sure redirection isn't
13734 attempting to cross section boundaries.
13735 (force_nonfallthru_and_redirect): Only do partition fix up if
13736 architecture supports named sections.
13737 (rtl_split_edge): Make sure newly created bb ends up in
13738 correct partition.
13739 (commit_one_edge_insertion): Remove code that incorrectly
13740 updated basic block partition; Make sure partition fix up only
13741 happens if architecture supports named sections and it's not
13742 already done.
13743 (rtl_verify_flow_info_1): Fix if-condition on test/error
13744 condition that fallthru edges are not allowed to cross section
13745 boundaries.
13746 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
13747 * final.c (final_scan_insn): Remove redundant test from if-statement;
13748 change calls to text_section into calls to function_section; add code
13749 to only to partitioning fix up if architecture supports named
13750 sections.
13751 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
13752 partition.
13753 (if_convert): Add targetm.have_named_sections to test.
13754 * output.h (unlikely_section_label): Extern declaration for new global
13755 variable.
13756 (unlikely_text_section_name): Likewise.
13757 * opts.c (decode_options): If both partitioning and DWARF debugging
13758 are turned on, issue a warning that this doesn't work, and change
13759 partitiong to basic block reordering (without hot/cold partitions).
13760 * passes.c (rest_of_handle_final): Re-set new global variable,
13761 user_defined_section_attribute, to false.
13762 (rest_of_compilation): Change options for calling partitioning
13763 function: Don't call if the user defined the section attribute, and
13764 don't call if DECL_ONE_ONLY is true for the current function.
13765 * predict.c (choose_function_section): Return immediately if we
13766 are doing hot/cold partitioning (i.e. let the basic block partitioning
13767 determine where the function belongs).
13768 * reg-stack.c (emit_swap_insn): Add condition to step over
13769 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
13770 * toplev.c (user_defined_section_attribute): New global variable.
13771 * toplev.h (user_defined_section_attribute): Extern declaration
13772 for new global variable.
13773 * varasm.c (unlikely_section_label): New global variable.
13774 (unlikely_text_section_name): New global variable.
13775 (unlikely_text_section): Add code to initialize
13776 unlikely_text_section_name if necessary; modify to use
13777 unlikely_text_section_name and unlikely_section_label; also to use
13778 named_section properly.
13779 (in_unlikely_text_section): Modify to work correctly with
13780 named_section and to use unlikely_text_section_name.
13781 (named_section): Add code to work properly with cold section.
13782 (function_section): Clean up if-statement.
13783 * config/darwin.c (darwin_asm_named_section): Return to original
13784 code, removing use of SECTION_FORMAT_STRING.
13785 * config/arm/pe.h (switch_to_section): Add case for
13786 in_unlikely_executed_text to switch statement.
13787 * config/i386/cygming.h (switch_to_section): Likewise.
13788 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
13789 (SECTION_FORMAT_STRING): Likewise.
13790 * config/mcore/mcore.h (switch_to_section): Likewise.
13791 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
13792 (SECTION_FORMAT_STRING): Remove.
13793
13794 2004-08-18 Roger Sayle <roger@eyesopen.com>
13795
13796 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
13797 -ffixed-reg safe, by preserving the meanings of zero and one.
13798 (CALL_USED_REGISTERS): Likewise.
13799 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
13800
13801 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
13802
13803 * config/sh/sh.c (split_branches): Check the result of
13804 next_active_insn.
13805 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
13806 Call rtl_register_cfg_hooks.
13807
13808 2004-08-18 Richard Henderson <rth@redhat.com>
13809
13810 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
13811 * alias.c (true_dependence): Update to match new semantics.
13812 (canon_true_dependence, write_dependence_p): Likewise.
13813 (anti_dependence, output_dependence): Update write_dependence_p args.
13814 (unchanging_anti_dependence): Remove.
13815 * calls.c (purge_mem_unchanging_flag): Remove.
13816 (fixup_tail_calls): Don't call it.
13817 (expand_call): Don't add unchanging memory to function usage.
13818 * expr.c (emit_block_move_via_libcall): Likewise.
13819 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
13820 (get_subtarget): Don't use RTX_UNCHANGING_P.
13821 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
13822 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
13823 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
13824 * cse.c (insert): Don't use RTX_UNCHANGING_P.
13825 (cse_insn, canon_hash): Use MEM_READONLY_P.
13826 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
13827 instead of RTX_UNCHANGING_P.
13828 * explow.c (maybe_set_unchanging): Remove.
13829 * expr.h (maybe_set_unchanging): Remove.
13830 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
13831 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
13832 (assign_parm_setup_reg, expand_function_start): Likewise.
13833 * integrate.c (copy_rtx_and_substitute): Likewise.
13834 * ra-rewrite.c (emit_colors): Likewise.
13835 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
13836 (fixup_match_1): Likewise.
13837 * reload1.c (reload, alter_reg): Likewise.
13838 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
13839 not RTX_UNCHANGING_P.
13840 (equiv_init_varies_p): Likewise.
13841 * loop-invariant.c (check_maybe_invariant): Likewise.
13842 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
13843 * loop.c (note_addr_stored): Likewise.
13844 (prescan_loop): Likewise. Don't check function usage for clobbered
13845 unchanging memory.
13846 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
13847 not RTX_UNCHANGING_P.
13848 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
13849 * varasm.c (force_const_mem): Likewise.
13850 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
13851 * web.c (entry_register): Likewise.
13852 * tree-gimple.h (get_base_address): Move decl ...
13853 * tree.h: ... here.
13854 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
13855
13856 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
13857 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
13858 (alpha_set_memflags): Update to match.
13859
13860 * config/darwin.c (machopic_indirect_data_reference): Set
13861 MEM_READONLY_P instead of RTX_UNCHANGING_P.
13862 (machopic_indirect_call_target): Likewise.
13863 (machopic_legitimize_pic_address): Likewise.
13864 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
13865 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
13866 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
13867 * config/frv/frv.md (symGOT2reg): Likewise.
13868 * config/i386/i386.c (legitimize_pic_address,
13869 legitimize_tls_address, ix86_split_to_parts): Likewise.
13870 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
13871 * config/ia64/ia64.md (load_fptr): Likewise.
13872 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
13873 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
13874 * config/mcore/mcore.c (block_move_sequence): Likewise.
13875 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
13876 * config/pa/pa.c (legitimize_pic_address): Likewise.
13877 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
13878 (rs6000_emit_move): Likewise.
13879 * config/s390/s390.c (legitimize_pic_address): Likewise.
13880 (legitimize_tls_address): Likewise.
13881 * config/s390/s390.md (casesi): Likewise.
13882 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
13883 * config/sh/sh.md (symGOT2reg): Likewise.
13884 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
13885 * config/v850/v850.md (casesi): Likewise.
13886
13887 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
13888 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
13889 * config/mips/mips.c (mips_restore_gp): Likewise.
13890 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
13891 * config/sh/sh.c (sh_reorg): Likewise.
13892
13893 2004-08-18 Richard Henderson <rth@redhat.com>
13894
13895 * tree.h (struct tree_decl): Add gimple_formal_temp.
13896 (DECL_GIMPLE_FORMAL_TEMP_P): New.
13897 * gimplify.c (pop_gimplify_context): Clear it.
13898 (lookup_tmp_var): Set it, if is_formal.
13899 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
13900 Use is_gimple_val for VECTOR. Simplify return value.
13901 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
13902 (gimplify_expr): Likewise.
13903 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
13904 is_gimple_tmp_rhs for clarity. Update all callers.
13905 (is_gimple_reg_rhs): Simplify logic.
13906 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
13907 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
13908 (is_gimple_formal_tmp_reg): Similarly.
13909 * tree-gimple.h: Update decls.
13910 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
13911 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
13912 * tree-ssa-live.c (var_union, type_var_init): Likewise.
13913
13914 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
13915
13916 * c4x.c (legitimize_operands): Remove calls to
13917 preserve_subexpressions_p.
13918
13919 2004-08-18 David Edelsohn <edelsohn@gnu.org>
13920
13921 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
13922 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
13923
13924 2004-08-18 Ziemowit Laski <zlaski@apple.com>
13925
13926 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
13927 Objective-C++ extensions.
13928 * gengtype.c (get_file_basename): Match entire subdirectory name
13929 ('cp', 'objc', 'objcp') rather than just its suffix.
13930 (get_base_file_bitmap): Allow for files to belong to more than one
13931 language.
13932 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
13933 used by more than one front-end.
13934
13935 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
13936
13937 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
13938 avoid use of preserve_subexpressions_p.
13939
13940 2004-08-17 Richard Henderson <rth@redhat.com>
13941
13942 PR 17051
13943 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
13944
13945 2004-08-17 DJ Delorie <dj@redhat.com>
13946
13947 * doc/extend.texi: Document new xstormy16 attribute.
13948
13949 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
13950 (xstormy16_splittable_below100_or_register): New.
13951 (combine_bnp): New.
13952 (xstormy16_reorg): New.
13953 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13954
13955 * config/stormy16/stormy16.md (movqi_internal): Make name public.
13956 (movhi_internal): Likewise.
13957 (cbhranchhi): Likewise.
13958 (cbhranchhi_neg): Likewise.
13959 (andhi3): Only allow splittable below100 operands.
13960 (iorhi3): Likewise.
13961 (peephole2): New and/zero_extend->and peephole.
13962 (peephole2): New load/ior/save->set1 peephole.
13963 (peephole2): New load/and/save->clr1 peephole.
13964 (bclrx, bclrx2, bclr7, bclr15): New.
13965 (bsetx, bsetx2, bset7, bset15): New.
13966
13967 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
13968 liberal about acceptable 'B' masks.
13969
13970 * config/stormy16/stormy16-protos.h
13971 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
13972 xstormy16_below100_operand, xstormy16_below100_or_register,
13973 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
13974 (PREDICATE_CODES): Add new predicates.
13975
13976 * config/stormy16/stormy16.c
13977 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
13978 xstormy16_below100_operand, xstormy16_below100_or_register,
13979 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
13980 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
13981 (xstormy16_legitimate_address_p): Allow below100 symbols.
13982 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
13983 (xstormy16_expand_move): Leave below100 operands as-is.
13984 (xstormy16_encode_section_info): Encode below100 symbols.
13985 (xstormy16_strip_name_encoding): New.
13986 (xstormy16_print_operand): Print 'b' as shift mask.
13987 (xstormy16_attribute_table): Add below100 attributes.
13988 (xstormy16_handle_below100_attribute): New.
13989
13990 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
13991 (XSTORMY16_SECTION_FUNCTION): New.
13992 (EXTRA_SECTION_FUNCTIONS): Define using the above.
13993 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13994 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
13995 (ASM_OUTPUT_LABELREF): Define.
13996
13997 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
13998 (movhi_internal): Add below100 support.
13999 (andhi3): Add below100 support.
14000 (iorhi3): Add below100 support.
14001 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
14002
14003 2004-08-17 James E Wilson <wilson@specifixinc.com>
14004
14005 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
14006 of VOIDmode for comparison code mode.
14007 * config/mips/mips.md: For conditional move patterns, use mode of
14008 first compare operand for comparison mode, instead of VOIDmode.
14009
14010 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
14011 normal and -ffast-math code.
14012
14013 2004-08-17 Mark Mitchell <mark@codesourcery.com>
14014
14015 PR c++/15871
14016 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
14017
14018 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
14019
14020 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
14021
14022 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
14023
14024 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
14025 for non Darwin targets.
14026 (*call_value_nonlocal_darwin64): Likewise.
14027
14028 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
14029
14030 * config/rs6000/rs6000.c (rs6000_function_value): Check for
14031 altivec mode for altivec return register.
14032
14033 2004-08-17 David Edelsohn <edelsohn@gnu.org>
14034
14035 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
14036 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14037 * config/rs6000/rs6000.md: Include darwin.md.
14038 (builtin_setjmp_receiver): Add DImode case.
14039 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
14040 Darwin bits.
14041
14042 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
14043
14044 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
14045 trees.
14046 * tree-vectorizer.h: New File: Same.
14047 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
14048 * common.opt (ftree-vectorize): New flag to enable vectorization.
14049 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
14050 vectorization pass.
14051 * tree-data-ref.h (init_data_ref): Additional argument.
14052 (array_base_name_differ_p): Moved to tree-data-ref.c.
14053 * tree-data-ref.c (array_base_name_differ_p): Revised.
14054 (initialize_data_dependence_relation): Call array_base_name_differ_p
14055 with an extra argument.
14056 (analyze_all_data_dependences): Same.
14057 (init_data_ref): Additional argument is_read to set DR_IS_READ.
14058 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
14059 file.
14060 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
14061 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
14062 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
14063 vectorization pass.
14064 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
14065 (tree_ssa_loop_done): Call scev_finalize.
14066 (tree_vectorize): Define the new vectorization pass.
14067 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
14068 size of the vector they support (until support for multiple vector
14069 sizes is added to the vectorizer).
14070 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
14071 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
14072 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
14073 documentation.
14074
14075 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
14076
14077 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
14078 usage.
14079 (generate_protocol_list, handle_impent): Likewise.
14080
14081 2004-08-17 Roger Sayle <roger@eyesopen.com>
14082
14083 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
14084 ensure that call_used_regs is a superset of both fixed_regs and
14085 call_really_used_regs.
14086
14087 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
14088
14089 PR target/17019
14090 * arm.md (addsi3_cbranch_scratch): Correct case labels.
14091
14092 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
14093
14094 PR middle-end/17036
14095 * fold-const.c (fold): Check for integer operand when
14096 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
14097 Pinski <pinskia@physics.uc.edu>.
14098
14099 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
14100
14101 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
14102 No need to check if in a cross configuration.
14103 * configure: Regenerate.
14104
14105 * calls.c (precompute_register_parameters):
14106 Inline preserve_subexpressions_p ().
14107 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
14108 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
14109 Likewise.
14110 * expr.c (get_subtarget): Likewise.
14111 * rtl.h (preserve_subexpressions_p): Remove.
14112 * stmt.c (preserve_subexpressions_p): Remove.
14113
14114 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
14115 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
14116 Abort on gimplified cases.
14117
14118 2004-08-16 James E Wilson <wilson@specifixinc.com>
14119
14120 * tree.h (VECTOR_FLOAT_TYPE_P): New.
14121 (FLOAT_TYPE_P): Use it.
14122 * c-typeck.c (build_binary_op): After convert calls, check for
14123 check for ERROR_MARK operands.
14124
14125 2004-08-16 Zack Weinberg <zack@codesourcery.com>
14126
14127 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
14128 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
14129 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
14130 (genobjs static pattern rule): Remove %.c dependency.
14131 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
14132 Rename rules; delete commands; fix dependencies.
14133 (mostlyclean): Do not delete temporary source copies.
14134 * configure.ac: Delete all references to BUILD_PREFIX and
14135 BUILD_PREFIX_1.
14136 * configure: Regenerate.
14137
14138 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
14139 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
14140 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
14141 with #ifndef GENERATOR_FILE so that nothing from those headers
14142 is used.
14143
14144 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
14145
14146 2004-08-16 Adam Nemet <anemet@lnxw.com>
14147
14148 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
14149
14150 2004-08-16 Andrew Pinski <apinski@apple.com>
14151
14152 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
14153 extraneous semicolon.
14154
14155 2004-08-16 Devang Patel <dpatel@apple.com>
14156
14157 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
14158 * print-tree.c (print_node): Print DECL_PRESERVE_P.
14159 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
14160 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
14161 * target.h (struct gcc_target): New member, mark_decl_preserved.
14162 * hooks.c (hook_void_charptr): Rename to ...
14163 (hook_void_constcharptr): ... new name.
14164 * hooks.h (hook_void_charptr): Rename to ..
14165 (hook_void_constcharptr): ... new name.
14166 * tree.h (DECL_PRESERVE_P): New #define.
14167 (struct tree_decl): New member, preserve_flag.
14168 * varasm.c (assemble_start_function): Mark decl preserved.
14169 (assemble_variable): Same.
14170 * darwin.c (darwin_mark_decl_preserved): New function.
14171 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
14172 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
14173 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
14174
14175 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
14176
14177 * c-decl.c (grokdeclarator): Allow for function definition where
14178 innermost declarator has attributes.
14179
14180 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
14181
14182 * except.c (get_exception_filter, build_post_landing_pads,
14183 dw2_build_landing_pads): Use target-specific mode for 'filter'.
14184 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
14185 * target.h (eh_return_filter_mode): New field added.
14186 * targhooks.c (default_eh_return_filter_mode): Defined.
14187 * targhooks.h (default_eh_return_filter_mode): Declared.
14188 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
14189
14190 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
14191
14192 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
14193 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
14194 * configure: Regenerate.
14195
14196 2004-08-16 Stan Shebs <shebs@apple.com>
14197
14198 Basic support for 64-bit Darwin.
14199 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14200 (machopic_legitimize_pic_address): Similarly, plus use Pmode
14201 instead of SImode.
14202 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
14203 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
14204 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
14205 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
14206 (PROCESSOR_DEFAULT64): Define.
14207 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
14208 Darwin.
14209 * config/rs6000/rs6000.md: Include darwin.md.
14210 (builtin_setjmp_receiver): Add DImode case.
14211 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
14212 Darwin.
14213 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
14214 (rs6000_emit_move): Add DImode case to Darwin bits.
14215 (machopic_output_stub): Use .quad if 64-bit.
14216 * invoke.texi: Document -m32 and -m64.
14217
14218 2004-08-16 Janis Johnson <janis187@us.ibm.com>
14219
14220 * doc/extend.texi (AltiVec builtins): Document additional differences
14221 from the Motorola AltiVec PIM.
14222
14223 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14224
14225 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
14226 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
14227 (struct tree_common): Update public_flag documentation.
14228
14229 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
14230
14231 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14232 Check for artificial variables, not is_gimple_tmp_var.
14233 * tree-ssa-live.c (var_union): Likewise.
14234
14235 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14236
14237 * calls.c (load_register_parameters): Remove spurious FIXME token.
14238
14239 2004-08-15 Ziemowit Laski <zlaski@apple.com>
14240
14241 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
14242 (c-lang.o): Depend on c-objc-common.h.
14243 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
14244 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
14245 * c-lang.c: Include c-objc-common.h.
14246 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
14247 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
14248 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
14249 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
14250 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
14251 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
14252 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
14253 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
14254 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
14255 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
14256 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
14257 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
14258 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
14259 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
14260 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
14261 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
14262 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
14263 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
14264 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
14265 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
14266 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
14267 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
14268 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
14269 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
14270 Move to c-objc-common.h.
14271 * c-objc-common.c: Include c-objc-common.h.
14272 * c-objc-common.h: New file.
14273
14274 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
14275 Andrew Pinski <pinskia@physics.uc.edu>
14276
14277 PR target/14931
14278 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
14279 style.
14280
14281 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
14282
14283 * tree.h (build_int_cst): New.
14284 (build_int_2): Remove.
14285 * tree.c (build_int_2): Remove.
14286 (build_int_cst): New.
14287 (make_vector_type, build_common_tree_nodes,
14288 build_common_tree_nodes_2): Use build_int_cst.
14289 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
14290 expand_builtin_strpbrk, expand_builtin_fputs,
14291 build_string_literal, expand_builtin_printf,
14292 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
14293 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
14294 fold_builtin_isdigit, simplify_builtin_strstr,
14295 simplify_builtin_strpbrk, fold_builtin_fputs,
14296 simplify_builtin_sprintf): Use build_int_cst.
14297 * c-common.c (start_fname_decls, fix_string_type,
14298 c_common_nodes_and_builtins, c_init_attributes,
14299 shorten_compare): Likewise.
14300 * c-decl.c (complete_array_type,
14301 check_bitfield_type_and_width): Likewise.
14302 * c-lex.c (interpret_integer, lex_charconst): Likewise.
14303 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
14304 * c-pretty-print.c (pp_c_integer_constant): Likewise.
14305 * c-typeck.c (really_start_incremental_init, push_init_level,
14306 set_nonincremental_init_from_string): Likewise.
14307 * calls.c (load_register_parameters): Likewise.
14308 * convert.c (convert_to_pointer): Likewise.
14309 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
14310 build_fn_info_type, build_ctr_info_value, build_gcov_info):
14311 Likewise.
14312 * except.c (init_eh, assign_filter_values, assign_filter_values):
14313 Likewise.
14314 * expmed.c (store_fixed_bit_field, extract_bit_field,
14315 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
14316 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
14317 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
14318 * expr.c (convert_move, emit_group_load, emit_group_store,
14319 expand_assignment, store_constructor, store_field,
14320 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
14321 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
14322 invert_truthvalue, optimize_bit_field_compare,
14323 decode_field_reference, all_ones_mask_p, constant_boolean_node,
14324 fold_div_compare, fold, fold_read_from_constant_string,
14325 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
14326 * function.c (assign_parm_setup_block): Likewise.
14327 * stmt.c (shift_return_value, expand_end_case_type,
14328 estimate_case_costs): Likewise.
14329 * stor-layout.c (layout_type, initialize_sizetypes,
14330 set_min_and_max_values_for_integral_type): Likewise.
14331 * tree-chrec.c (chrec_fold_multiply_poly_poly,
14332 reset_evolution_in_loop): Likewise.
14333 * tree-chrec.h (build_polynomial_chrec): Likewise.
14334 * tree-complex.c (build_replicated_const): Likewise.
14335 * tree-eh.c (honor_protect_cleanup_actions,
14336 lower_try_finally_onedest, lower_try_finally_copy,
14337 lower_try_finally_switch): Likewise.
14338 * tree-mudflap.c (mf_build_string, mx_register_decls,
14339 mudflap_register_call, mudflap_enqueue_constant): Likewise.
14340 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
14341 * tree-pretty-print.c (dump_generic_node): Likewise.
14342 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
14343 Likewise.
14344 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
14345 * tree-ssa-loop-niter.c (number_of_iterations_cond,
14346 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
14347 Likewise.
14348
14349 * config/alpha/alpha.c (alpha_initialize_trampoline,
14350 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
14351 * config/arm/arm.c (arm_get_cookie_size): Likewise.
14352 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
14353 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
14354 * config/i860/i860.c (i860_va_start): Likewise.
14355 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14356 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
14357 mips_gimplify_va_arg_expr): Likewise.
14358 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14359 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
14360 add_compiler_branch_island): Likewise.
14361 * config/s390/s390.c (s390_va_start): Likewise.
14362 * config/sh/sh.c (sh_va_start): Likewise.
14363 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
14364 Likewise.
14365 * config/xtensa/xtensa.c (xtensa_va_start,
14366 xtensa_gimplify_va_arg_expr): Likewise.
14367
14368 * objc/objc-act.c (build_objc_string_object,
14369 build_objc_symtab_template, init_def_list, init_objc_symtab,
14370 init_module_descriptor, generate_static_references,
14371 build_selector_translation_table, get_proto_encoding,
14372 build_typed_selector_reference, build_selector_reference,
14373 build_next_objc_exception_stuff,
14374 build_method_prototype_list_template, generate_descriptor_table,
14375 generate_protocols, build_protocol_initializer,
14376 build_ivar_list_template, build_method_list_template,
14377 build_ivar_list_initializer, generate_ivars_list,
14378 generate_dispatch_table, generate_protocol_list,
14379 build_category_initializer, build_shared_structure_initializer,
14380 generate_shared_structures, handle_impent,
14381 generate_objc_image_info): Use build_int_cst.
14382
14383 2004-08-15 Ben Elliston <bje@au.ibm.com>
14384
14385 * vec.h: Comment improvements.
14386
14387 2004-08-14 Roger Sayle <roger@eyesopen.com>
14388
14389 * c-common.c (shorten_compare, pointer_int_sum,
14390 c_common_truthvalue_conversion, boolean_increment): Replace calls
14391 to build with calls to buildN.
14392 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
14393 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
14394 gimplify_switch_stmt): Likewise.
14395 * c-typeck.c (default_function_array_conversion,
14396 build_component_ref, build_array_ref, build_function_call,
14397 pointer_diff, build_unary_op, build_conditional_expr,
14398 build_compound_expr, build_modify_expr, c_finish_goto_label,
14399 c_finish_goto_ptr, c_finish_return, c_finish_loop,
14400 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
14401 build_binary_op): Likewise.
14402
14403 2004-08-15 Steven Bosscher <stevenb@suse.de>
14404
14405 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
14406
14407 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14408
14409 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
14410 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
14411 * fixinc/fixincl.x: Rebuilt.
14412
14413 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
14414
14415 * config/mips/mips-protos.h (mips_symbolic_constant_p)
14416 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
14417 (mips_small_data_pattern_p): Declare.
14418 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
14419 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
14420 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
14421 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
14422 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
14423 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
14424 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
14425 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
14426 (pc_or_label_operand, call_insn_operand, move_operand)
14427 (consttable_operand, symbolic_operand, general_symbolic_operand)
14428 (global_got_operand, local_got_operand, stack_operand)
14429 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
14430 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
14431 (mips_small_data_pattern_p): Replace previous small_data_pattern
14432 predicate. Turn into a bool () (rtx) function.
14433 * config/mips/predicates.md: New file.
14434 * config/mips/mips.md: Include it. Use the target-independent
14435 comparison_operator instead of cmp_op. Rename trap_cmp_op to
14436 trap_comparison_operator and equality_op to equality_operator.
14437 Replace uses of small_int with the equivalent const_arith_operand.
14438 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
14439 const_float_1_operand to const_1_operand. Rename fcc_register_operand
14440 to fcc_reload_operand.
14441 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
14442
14443 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14444
14445 PR libstdc++/17005 partial fix.
14446 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
14447 except when generating ANSI/C89 code.
14448
14449 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
14450
14451 * c-common.c (shorten_compare): Use force_fit_type directly.
14452
14453 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
14454 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
14455 Dave Korn <dk@artimi.com>
14456
14457 * doc/install.texi (Building): Avoid duplicate reference to GNU
14458 make requirement.
14459 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
14460
14461 2004-08-14 Richard Henderson <rth@redhat.com>
14462
14463 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
14464 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
14465
14466 2004-08-13 Richard Henderson <rth@redhat.com>
14467
14468 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
14469 for constant_call_address_operand.
14470 (call_value_pop_1, call_value_1): Likewise.
14471 (sibcall_value_1, call_value_1_rex64): Likewise.
14472
14473 2004-08-13 James E Wilson <wilson@specifixinc.com>
14474
14475 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
14476 Correct mode from SFmode to DFmode.
14477
14478 2004-08-13 Ziemowit Laski <zlaski@apple.com>
14479
14480 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
14481 __cstring_object and __image_info sections with the no_dead_strip
14482 attribute.
14483
14484 2004-08-13 Roger Sayle <roger@eyesopen.com>
14485 David Billinghurst <David.Billinghurst@riotinto.com>
14486
14487 PR libgfortran/15930
14488 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
14489 * fixinc/fixincl.x: Regenerate.
14490 * fixinc/tests/base/internal/math_core.h: New file.
14491
14492 2004-08-13 Richard Henderson <rth@redhat.com>
14493
14494 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
14495 (dbxout_function_end): Remove ifdefs for it.
14496 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
14497
14498 2004-08-13 Richard Henderson <rth@redhat.com>
14499
14500 * Makefile.in (insn-preds.o): Depend on TREE_H.
14501 * genpreds.c (write_insn_preds_c): Include tree.h.
14502 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
14503 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
14504 const48_operand, and_operand, or_operand, mode_width_operand,
14505 mode_mask_operand, mul8_operand, const0_operand,
14506 hard_fp_register_operand, hard_int_register_operand,
14507 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
14508 samegp_function_operand, direct_call_operand, small_symbolic_operand,
14509 global_symbolic_operand, call_operand, symbolic_operand,
14510 dtp16_symbolic_operand, dtp32_symbolic_operand,
14511 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
14512 gottp_symbolic_operand, alpha_comparison_operator,
14513 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
14514 signed_comparison_operator, alpha_fp_comparison_operator,
14515 divmod_operator, fix_operator, aligned_memory_operand,
14516 unaligned_memory_operand, reg_or_unaligned_mem_operand,
14517 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
14518 reg_no_subreg_operand, addition_operation): Move to predicates.md.
14519 (reg_or_const_int_operand): Remove. Replace all users with
14520 reg_or_cint_operand.
14521 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
14522 (resolve_reload_operand): Split out of aligned_memory_operand.
14523 * config/alpha/alpha-protos.h: Update for exports.
14524 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
14525 * config/alpha/alpha.md: Include predicates.md.
14526 * config/alpha/predicates.md: New file.
14527
14528 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
14529
14530 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
14531 fields with a pointer to the instruction definition.
14532 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
14533 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
14534 (write_attr_case, write_const_num_delay_slots): Update accordingly.
14535 (write_attr_case, write_const_num_delay_slots): Write the name of
14536 an insn next to its case statement.
14537 * genoutput.c (data): Add a filename field.
14538 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
14539 (output_insn_data): Print the location of each insn definition.
14540 * genrecog.c (write_action): Print the name of an insn above
14541 the statement that returns its code.
14542
14543 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
14544
14545 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
14546 * config/libgloss.h: Likewise.
14547 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
14548 * c4x/c4x-modes.def: Likewise.
14549 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
14550 (c4x_rptb_nop_p): Likewise.
14551 (c4x_rptb_valid_p): Likewise.
14552 (c4x_rptb_insert): Likewise.
14553 (c4x_address_conflict): Likewise.
14554 * config/c4x/c4x.md: Likewise.
14555 * config/frv/frv.md: Likewise.
14556 * config/i386/athlon.md: Likewise.
14557 * config/i386/i386.md: Likewise.
14558 * config/i386/predicates.md: Likewise.
14559 * config/ia64/ia64.c: Likewise.
14560 * config/ia64/itanium1.md: Likewise.
14561 * config/ia64/itanium2.md: Likewise.
14562 * config/iq2000/iq2000.md: Likewise.
14563 * config/mcore/mcore.c: Likewise.
14564 * config/mips/mips.c: Likewise.
14565 * config/mips/r3900.h: Likewise.
14566 * config/mips/sb1.md: Likewise.
14567 * config/pa/milli64.S: Likewise.
14568 * config/pa/pa.c: Likewise.
14569 * config/pa/pa.h: Likewise.
14570 * config/rs6000/8540.md: Likewise.
14571
14572 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
14573
14574 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
14575
14576 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
14577
14578 * sh.md (cbranch define_delay) Use cond_delay_slot for
14579 non-anulled condition too.
14580
14581 2004-08-12 David Edelsohn <edelsohn@gnu.org>
14582
14583 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
14584 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14585 any_parallel_operand, lmw_operation, stmw_operation,
14586 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
14587 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
14588 any_parallel_operand.
14589 (return_and_restore_fpregs_{si,di}): Same.
14590
14591 2004-08-12 Zack Weinberg <zack@codesourcery.com>
14592
14593 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
14594 if pred->singleton != PARALLEL, issue a warning and pretend it was.
14595 Also issue a warning for any predicate we don't know about.
14596
14597 2004-08-12 Richard Henderson <rth@redhat.com>
14598
14599 * config/i386/i386.c (internal_label_prefix): Export.
14600 (internal_label_prefix_len, struct ix86_address,
14601 ix86_decompose_address, maybe_get_pool_constant,
14602 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
14603 memory_address_length): Export.
14604 (any_fp_register_operand, fp_register_operand,
14605 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
14606 x86_64_general_operand, x86_64_szext_general_operand,
14607 x86_64_nonmemory_operand, x86_64_movabs_operand,
14608 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
14609 x86_64_zext_immediate_operand, const_int_1_31_operand,
14610 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
14611 tls_symbolic_operand, global_dynamic_symbolic_operand,
14612 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
14613 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
14614 constant_call_address_operand, const0_operand, const1_operand,
14615 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
14616 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
14617 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
14618 general_no_elim_operand, nonmemory_no_elim_operand,
14619 index_register_operand, q_regs_operand, flags_reg_operand,
14620 non_q_regs_operand, zero_extended_scalar_load_operand,
14621 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
14622 ix86_comparison_operator, ix86_carry_flag_operator,
14623 fcmov_comparison_operator, promotable_binary_operator,
14624 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
14625 mult_operator, div_operator, arith_or_logical_operator,
14626 memory_displacement_operand, cmpsi_operand, long_memory_operand,
14627 aligned_operand): Move to predicates.md as define_predicates.
14628 (tls_symbolic_operand_1): Remove.
14629 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
14630 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
14631 (legitimize_address): Merge tls_symbolic_operand contents.
14632 (ix86_expand_move): Likewise.
14633 * config/i386/i386-protos.h: Update for exports.
14634 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
14635 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
14636 * config/i386/i386.md: Include predicates.md.
14637 * config/i386/predicates.md: New file.
14638
14639 2004-08-13 Mark Mitchell <mark@codesourcery.com>
14640
14641 PR c++/16924
14642 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
14643 SYMBOL_REF_DECL.
14644 (i386_pe_mark_dllimport): Likewise.
14645 (i386_pe_encode_section_info): Likewise, when overriding
14646 dllimport attribute.
14647
14648 2004-08-12 Geoffrey Keating <geoffk@apple.com>
14649
14650 * configure.ac: When testing for flex, nm, ar, and bison, check
14651 that they will actually be built.
14652 * configure: Regenerate.
14653
14654 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
14655
14656 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
14657 (MOVE_MAX_PIECES): Define.
14658
14659 2004-08-12 Devang patel <dpatel@apple.com>
14660
14661 * dbxout.c (dbxout_begin_prologue): New function.
14662 (dbx_debug_hooks): Use new begin prologue hook.
14663 (dbxout_function_end): Emit N_ENSYM.
14664 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
14665
14666 2004-08-12 Janis Johnson <janis187@us.ibm.com>
14667
14668 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
14669 argument is float*.
14670
14671 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
14672 for vec_dss.
14673
14674 * doc/extend.texi (AltiVec builtins): Fix description for recent
14675 changes. Update operation list to match current support.
14676
14677 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
14678
14679 * config/s390/s390.c (struct s390_frame_layout): New struct as element
14680 of struct machine_function.
14681 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
14682 changed all uses.
14683 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
14684 changed all uses.
14685 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
14686 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
14687 (s390_frame_area, s390_register_info): New functions.
14688 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
14689 for base register.
14690 (s390_return_addr_rtx, s390_return_address_offset)
14691 (s390_va_start, s390_gimplify_va_arg)
14692 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
14693 layouts.
14694 (s390_frame_info): Functionality partly moved to s390_register_info.
14695 Made adaptions for new stack layout.
14696 (save_gprs, restore_gprs): Changed meaning of second parameter and
14697 adapted all callers.
14698
14699 * config/s390/s390.h (s390_backchain_string): New global variable.
14700 (MASK_BACKCHAIN): Removed definition.
14701 (TARGET_BACKCHAIN): Changed check.
14702 (TARGET_KERNEL_BACKCHAIN): New macro.
14703 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
14704 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
14705 "kernel-backchain".
14706 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
14707
14708 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
14709 as condition. Adjusted for new stack layout.
14710
14711 * doc/invoke.texi: Added documentation for new option
14712 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
14713 "-mno-backchain".
14714
14715 2004-08-12 Paul Brook <paul@codesourcery.com>
14716
14717 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
14718 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
14719
14720 2004-08-12 David Daney <ddaney@avtrex.com>
14721
14722 * java/gcj.texi: Add subsection on signal usage.
14723
14724 2004-08-12 David Edelsohn <edelsohn@gnu.org>
14725
14726 * expr.c (move_by_pieces): Set alignment for move to minimum of
14727 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
14728 alignment, but not less than the original alignment.
14729 (move_by_pieces_ninsns): Same.
14730 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
14731 (store_by_pieces_1): Same.
14732
14733 2004-08-12 Diego Novillo <dnovillo@redhat.com>
14734
14735 PR tree-optimization/16867
14736 * tree.c (is_global_var): New function.
14737 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
14738 Call is_global_var.
14739 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
14740 Update all users.
14741 (is_global_var): Declare.
14742 * tree-dfa.c (dump_variable): Display global and addressable
14743 attributes.
14744 (add_referenced_var): Clarify documentation when marking
14745 variables call-clobbered.
14746 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
14747 instead of needs_to_live_in_memory.
14748 (mark_call_clobbered): If the variable is a tag, mark it
14749 DECL_EXTERNAL.
14750 * tree-gimple.c (is_gimple_reg): Don't check for
14751 TREE_ADDRESSABLE.
14752 (is_gimple_non_addressable): Likewise.
14753 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
14754 needs to be marked call-clobbered.
14755 (setup_pointers_and_addressables): Call is_global_var instead
14756 of needs_to_live_in_memory.
14757 * tree-ssa-dce.c (need_to_preserve_store): Remove.
14758 Update all users with is_global_var.
14759 (mark_stmt_if_obviously_necessary): Fix processing of aliased
14760 stores. Don't check the virtual definitions. Rather, check
14761 whether the store is going into global memory.
14762 (find_obviously_necessary_stmts): Get the symbol from the PHI
14763 result.
14764 * tree-ssa-operands.c (get_call_expr_operands): Do not add
14765 clobbering may-defs if the call does not have side effects.
14766
14767 2004-08-12 Jakub Jelinek <jakub@redhat.com>
14768
14769 PR c++/16276
14770 * output.h (default_function_rodata_section,
14771 default_no_function_rodata_section): New prototypes.
14772 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
14773 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
14774 (TARGET_ASM_OUT): Add it.
14775 * varasm.c (default_function_rodata_section,
14776 default_no_function_rodata_section): New functions.
14777 * final.c (final_scan_insn): Call
14778 targetm.asm_out.function_rodata_section instead of
14779 readonly_data_section.
14780 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
14781 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
14782 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
14783 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
14784 Likewise.
14785 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
14786 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
14787 Likewise.
14788 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
14789 Likewise.
14790 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
14791 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
14792 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
14793
14794 2004-08-12 Paul Brook <paul@codesourcery.com>
14795
14796 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
14797 frame info.
14798 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
14799 DWARF2_UNWIND_INFO.
14800
14801 2004-08-12 Ben Elliston <bje@au.ibm.com>
14802
14803 PR target/16286
14804 * config/rs6000/altivec.h: Change vector to __vector throughout.
14805 (Except for the `vector' macro itself).
14806
14807 2004-08-12 Zack Weinberg <zack@codesourcery.com>
14808
14809 * genpreds.c: Add capability to generate predicate bodies as
14810 well as function prototypes. Write function prototypes for
14811 the generic predicates too.
14812 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
14813 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
14814 (write_match_code, write_predicate_expr, write_one_predicate_function)
14815 (parse_option): New functions.
14816 (output_predicate_decls): Delete.
14817 (main): Read the machine description, process DEFINE_PREDICATE or
14818 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
14819 as appropriate.
14820
14821 * genrecog.c (struct decision_test): Replace index with
14822 struct pred_data pointer.
14823 (next_index): Remove, unused.
14824 (pred_table, preds, special_mode_pred_table): Delete.
14825 (compute_predicate_codes, process_define_predicate): New functions.
14826 (validate_pattern, add_to_sequence, write_switch): Update for
14827 new data structures.
14828 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
14829 Check both error_count and have_error.
14830
14831 * gensupport.c (in_fname, first_predicate): New globals.
14832 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
14833 (predicate_table, last_predicate, old_pred_table)
14834 (old_special_pred_table): New statics.
14835 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
14836 (add_predicate, init_predicate_table): New functions.
14837 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
14838 (init_md_reader_args_cb): Use the global in_fname. No need to zero
14839 it or max_include_len. Call init_predicate_table.
14840 (read_rtx): Run the predicate queue after the attribute queue
14841 but before all the others.
14842 * gensupport.h (in_fname, struct pred_data, first_predicate)
14843 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
14844 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
14845 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
14846 * dummy-conditions.c: Don't include bconfig.h, system.h,
14847 coretypes.h, tm.h, or system.h. Do include stddef.h.
14848 Duplicate declaration of struct c_test from gensupport.h.
14849
14850 * Makefile.in (OBJS-common): Add insn-preds.o.
14851 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
14852 (insn-preds.c, insn-preds.o): New rules.
14853 (s-preds): Also generate insn-preds.c.
14854 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
14855 Update dependencies.
14856 (print-rtl.o, print-rtl1.o): Correct dependencies.
14857
14858 * recog.h: Delete prototypes of predicate functions.
14859
14860 * doc/md.texi (Predicates): New section with complete
14861 documentation of operand/operator predicates. Remove some
14862 incomplete documentation of predicates from other places.
14863 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
14864 PREDICATE_CODES; indicate that both are deprecated in favor
14865 of define_predicate/define_special_predicate.
14866
14867 * config/ia64/ia64.c: All predicate function definitions moved
14868 to ia64.md, except
14869 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
14870 (ia64_expand_load_address, ia64_expand_move):
14871 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
14872
14873 * config/ia64/ia64.md: All predicates now defined here.
14874 (symbolic_operand): Is now a special predicate.
14875
14876 * config/ia64/ia64.h: Declare ia64_section_threshold.
14877 (PREDICATE_CODES): Delete.
14878
14879 2004-08-12 Richard Henderson <rth@redhat.com>
14880
14881 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
14882 * c-semantics.c (add_stmt): Set it.
14883 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
14884 before instantiating a variable sized type.
14885
14886 2004-08-12 Richard Henderson <rth@redhat.com>
14887
14888 * stor-layout.c (round_up, round_down): Move ...
14889 * fold-const.c (round_up, round_down): ... here. Use
14890 multiple_of_p to avoid any arithmetic at all.
14891
14892 2004-08-12 Richard Henderson <rth@redhat.com>
14893
14894 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
14895 (gimplify_init_ctor_preeval_1): New.
14896 (gimplify_init_ctor_preeval): New.
14897 (gimplify_init_ctor_eval): New.
14898 (gimplify_init_constructor): Use them. Always gimplify the LHS
14899 object first.
14900
14901 2004-08-12 Ziemowit Laski <zlaski@apple.com>
14902
14903 (This patch is part of merge of objc-improvements-branch
14904 into mainline.)
14905
14906 * doc/frontends.texi: Mention Objective-C++ in addition to
14907 Objective-C.
14908 * doc/install.texi: Add 'obj-c++' to list of configurable
14909 languages.
14910 * doc/invoke.texi: Rename Objective-C option headings to
14911 indicate they also apply to Objective-C++. List file
14912 extensions for Objective-C++ sources. Mention that
14913 ObjC and ObjC++ compilations may also use C and C++ options,
14914 respectively. Point users to doc/standards.texi for
14915 further info on ObjC and ObjC++.
14916 * doc/sourcebuild.texi: Mention the objcp/ directory and
14917 the Objective-C++ sources it contains.
14918 * doc/standards.texi: Update link to Apple ObjC site;
14919 add link to gcc readings.html WWW doc.
14920
14921 2004-08-12 Alan Modra <amodra@bigpond.net.au>
14922
14923 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
14924 and 2004-07-14 changes.
14925
14926 2004-08-12 Paul Brook <paul@codesourcery.com>
14927
14928 * doc/invoke.texi: Fix typo.
14929
14930 2004-08-11 Devang Patel <dpatel@apple.com>
14931
14932 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
14933 and -no_dead_strip_inits_and_terms.
14934 (LINK_SPEC): Same.
14935 * doc/invoke.texi (Darwin Options): Document -dead_strip and
14936 -no_dead_strip_inits_and_terms.
14937
14938 2004-08-11 Paul Brook <paul@codesourcery.com>
14939
14940 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
14941 (arm_load_pic_register): ... to this.
14942 * config/arm/arm.c (arm_finalize_pic): Rename ...
14943 (arm_load_pic_register): ... to this. Always output insns at the
14944 current location. Load via low reg in thumb mode.
14945 (arm_expand_prologue): Call arm_load_pic_register.
14946 (thumb_expand_prologue): Ditto.
14947 * config/arm/arm.h (FINALIZE_PIC): Remove.
14948 * config/arm/arm.md (builtin_setjmp_receiver): Call
14949 arm_load_pic_register.
14950
14951 2004-08-11 Paul Brook <paul@codesourcery.com>
14952
14953 * arm.c (thumb_force_lr_save): Add prototype.
14954 (thumb_compute_save_reg_mask): New function.
14955 (thumb_find_work_register): New function.
14956 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
14957 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
14958 Don't clobber r3 when removing pretend args.
14959 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
14960 (thumb_output_function_prologue): Use new functions.
14961 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
14962 * arm.h (THUMB_REG_PUSHED_P): Remove.
14963
14964 2004-08-11 James E Wilson <wilson@specifixinc.com>
14965
14966 PR rtl-optimization/16490
14967 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
14968 global_live_at_end for new basic block if already set for other blocks.
14969
14970 2004-08-11 David Edelsohn <edelsohn@gnu.org>
14971
14972 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
14973
14974 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
14975 (mfcr rlwinm rlwinm patterns): Set length to 12.
14976
14977 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
14978
14979 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
14980 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
14981 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
14982 (start_ssa_stmt_operands): Delete.
14983 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
14984 struct stmt_operands_d.
14985 (build_ssa_operands): New extern entry point.
14986 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
14987 building code, replace with create_ssa_artficial_load_stmt().
14988 * tree-ssa-operands.c (struct voperands_d): Delete.
14989 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
14990 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
14991 (free_uses, free_defs, free_vuses, free_v_may_defs,
14992 free_v_must_defs): Remove dealloc parameter.
14993 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
14994 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
14995 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
14996 vector comparisons, ssa_name reuse, and allocations here.
14997 (verify_start_operands): Delete.
14998 (finalize_ssa_stmt_operands): Set new operands by calling finalize
14999 routines.
15000 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
15001 (append_def, append_usei): Simplify to simple accumulation.
15002 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
15003 duplicates and simple accumulation.
15004 (free_ssa_operands): Free vectors in a stmt_operand structure.
15005 (build_ssa_operands): New. Create a new stmt_operand structure from
15006 a stmt and an old set of stmt_operands.
15007 (get_stmt_operands): Simplify and call build_ssa_operands.
15008 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
15009 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
15010 add_call_read_ops): Don't pass prev_vops around anymore.
15011 (note_addressable): Return if no stmt annotation.
15012 (copy_virtual_operands): Access v_may_def operands through a struct.
15013 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
15014 hash tables without treating the stmt as a real stmt.
15015 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
15016 v_may_def def and use through a struct instead of 2 array elements.
15017 (struct v_may_def_optype_d): Use v_may_def_operand_type.
15018 (struct stmt_operands_d): New. Struct for storing all operand vectors.
15019
15020 2004-08-11 Nick Clifton <nickc@redhat.com>
15021
15022 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
15023 this funciton's behaviour. Return true when the current function
15024 has a section attribute and -mlong-calls is in effect.
15025 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
15026 short-call marker when -mlong-calls is in effect and the function
15027 has a section attribute.
15028
15029 2004-08-10 Zack Weinberg <zack@codesourcery.com>
15030
15031 * stmt.c (expand_return): If asked to return the RESULT_DECL,
15032 just call expand_value_return on result_rtl.
15033
15034 2004-08-10 Richard Henderson <rth@redhat.com>
15035
15036 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
15037 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
15038 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
15039 (add_location_or_const_value_attribute): ... not here. Use
15040 loc_descriptor_from_tree if possible.
15041 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
15042 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
15043 values specially.
15044 (loc_descriptor_from_tree): New. Update callers.
15045 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
15046 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
15047 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
15048 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
15049 and BUILT_IN_STACK_RESTORE.
15050 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
15051 * stmt.c (expand_stack_alloc): Remove.
15052 * tree-mudflap.c (mx_register_decls): Don't look for
15053 BUILT_IN_STACK_ALLOC.
15054 * tree-nested.c (convert_local_reference): Likewise.
15055 * tree.h (DECL_VALUE_EXPR): New.
15056
15057 2004-08-10 Richard Henderson <rth@redhat.com>
15058
15059 * stor-layout.c (round_up): Check for 0/1 before dividing.
15060 (round_down): Likewise.
15061
15062 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
15063
15064 2004-08-09 Mark Mitchell <mark@codesourcery.com>
15065
15066 * config.gcc (arm*-*-eabi*): New target.
15067 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
15068 (TARGET_LIB_INT_CMP_BIASED): Likewise.
15069 * expmed.c (expand_divmod): Try a two-valued divmod function as a
15070 last resort.
15071 * gthr.h: Remove bogus tokens at end of #pragma.
15072 * optabs.c (expand_twoval_binop_libfunc): New function.
15073 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
15074 (prepare_float_lib_cmp): Try reversing the condition.
15075 (debug_optab_libfuncs): New function.
15076 * optabs.h (expand_twoval_binop_libfunc): Declare.
15077 * config/arm/arm.c (arm_init_libfuncs): New function.
15078 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
15079 (TARGET_INIT_LIBFUNCS): Define it.
15080 * config/arm/arm.h (TARGET_BPABI): New macro.
15081 * config/arm/arm-protos.h
15082 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
15083 * config/arm/bpabi.S: New file.
15084 * config/arm/bpabi.c: Likewise.
15085 * config/arm/bpabi.h: Likewise.
15086 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
15087 (__aeabi_drsub): Likewise.
15088 (__aeabi_dsub): Likewise.
15089 (__aeabi_dadd): Likewise.
15090 (__aeabi_ui2d): Likewise.
15091 (__aeabi_i2d): Likewise.
15092 (__aeabi_f2d): Likewise.
15093 (__aeabi_dmul): Likewise.
15094 (__aeabi_ddiv): Likewise.
15095 (__aeabi_cdrcmple): Likewise.
15096 (__aeabi_cdcmpeq): Likewise.
15097 (__aeabi_cdcmple): Likewise.
15098 (__aeabi_dcmpeq): Likewise.
15099 (__aeabi_dcmplt): Likewise.
15100 (__aeabi_dcmple): Likewise.
15101 (__aeabi_dcmpge): Likewise.
15102 (__aeabi_dcmpgt): Likewise.
15103 (__aeabi_dcmpun): Likewise.
15104 (__aeabi_d2iz): Likewise.
15105 (__aeabi_d2uiz): Likewise.
15106 (__aeabi_d2f): Likewise.
15107 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
15108 (__aeabi_frsub): Likewise.
15109 (__aeabi_fsub): Likewise.
15110 (__aeabi_fadd): Likewise.
15111 (__aeabi_ui2f): Likewise.
15112 (__aeabi_i2f): Likewise.
15113 (__aeabi_fmul): Likewise.
15114 (__aeabi_fdiv): Likewise.
15115 (__aeabi_cfrcmple): Likewise.
15116 (__aeabi_cfcmpeq): Likewise.
15117 (__aeabi_cfcmple): Likewise.
15118 (__aeabi_fcmpeq): Likewise.
15119 (__aeabi_fcmplt): Likewise.
15120 (__aeabi_fcmple): Likewise.
15121 (__aeabi_fcmpge): Likewise.
15122 (__aeabi_fcmpgt): Likewise.
15123 (__aeabi_fcmpun): Likewise.
15124 (__aeabi_f2iz): Likewise.
15125 (__aeabi_f2uiz): Likewise.
15126 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
15127 (__aeabi_uidivmod): New function or alias.
15128 (__aeabi_idivmod): Likewise.
15129 (__aeabi_idiv0): Likewise.
15130 (__aeabi_ldiv0): Likewise.
15131 (__aeabi_llsr): Likewise.
15132 (__aeabi_lasr): Likewise.
15133 (__aeabi_llsl): Likewise.
15134 (bpabi.S): Include it.
15135 * config/arm/libgcc-bpabi.ver: New file.
15136 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
15137 (LINK_SPEC): Remove.
15138 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
15139 __aeabi_ulcmp.
15140 * config/arm/t-bpabi: New file.
15141 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
15142 (TARGET_LIB_INT_CMP_BIASED): Likewise.
15143
15144 2004-08-10 David Edelsohn <edelsohn@gnu.org>
15145
15146 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
15147 * config/rs6000/rs6000.md (clrmemsi): New pattern.
15148 * config/rs6000/rs6000.c (expand_block_clear): New function.
15149 (expand_block_move): Convert alignment to bits. Use SImode and
15150 HImode for unaligned addresses if not STRICT_ALIGNMENT.
15151
15152 2004-08-10 Caroline Tice <ctice@apple.com>
15153
15154 * varasm.c (unlikely_section_label): New global variable.
15155 (unlikely_text_section_name): New global variable.
15156 (text_section): Remove alignment statement.
15157 (unlikely_text_section): Remove alignment statement; use
15158 unlikely_section_label rather than hard-coded string.
15159 (assemble_start_function): Initialize unlikely_section_label and
15160 unlikely_text_section_name; make sure cold section is properly
15161 aligned at start of function; output unlikely_section_label if
15162 appropriate.
15163
15164 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
15165
15166 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
15167 * config/s390/s390.c (s390_canonicalize_comparison): New function.
15168 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
15169 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
15170 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
15171 ("*tmqi_mem"): Remove SUBREG from pattern.
15172 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
15173 ("*andsi3_cconly"): Likewise.
15174
15175 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
15176
15177 PR target/16909
15178 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
15179
15180 2004-08-10 Janis Johnson <janis187@us.ibm.com>
15181
15182 * doc/sourcebuild.texi (compat testing): Document available test
15183 framework commands. Use the preferred spelling of DejaGnu.
15184
15185 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
15186
15187 * lambda.h: Add matrix type, and prototypes for remainder of
15188 matrix and vector functions.
15189 (lambda_vector_mult_const): New function.
15190 (lambda_vector_negate): Ditto.
15191 (lambda_vector_add): Ditto.
15192 (lambda_vector_add_mc): Ditto.
15193 (lambda_vector_copy): Ditto.
15194 (lambda_vector_zerop): Ditto.
15195 (lambda_vector_equal): Ditto.
15196 (lambda_vector_min_nz): Ditto.
15197 (lambda_vector_first_nz): Ditto.
15198 (lambda_vector_matrix_mult): Ditto.
15199 * lambda-mat.c: New file.
15200 * Makefile.in (lambda-mat.o): New.
15201
15202 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
15203
15204 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
15205 after linking stmt into the program.
15206 (bsi_remove): Don't call modify_stmt.
15207 * tree-complex.c (update_complex_assignment,
15208 expand_complex_comparison): Call modify_stmt after changing the stmt.
15209 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
15210 removing the stmt.
15211 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
15212 the stmt, and only if needed.
15213 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
15214 expression.
15215 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
15216 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
15217 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
15218 (eliminate_redundant_computations): Don't pass an annotation. Call
15219 modify_stmt rather than setting the annotation directly.
15220 (record_equivalences_from_stmt): Remove unused local 'j'.
15221 (cprop_operand): Take a stmt rather than an annotation as a parameter.
15222 Call modify_stmt.
15223 (cprop_into_stmt): Pass stmt rather than annotation.
15224 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
15225 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
15226 modify_stmt.
15227 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
15228
15229 2004-08-10 Jason Merrill <jason@redhat.com>
15230
15231 PR middle-end/16948
15232 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
15233 the RESULT_DECL.
15234
15235 2004-08-10 Geoffrey Keating <geoffk@apple.com>
15236
15237 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
15238 hash function.
15239
15240 2004-08-10 Roger Sayle <roger@eyesopen.com>
15241
15242 * config/mips/mips.md: New reciprocal square root patterns that
15243 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
15244
15245 2004-08-10 Paul Brook <paul@codesourcery.com>
15246
15247 * config/arm/arm-protos.h (arm_set_return_address,
15248 thumb_set_return_address): Add prototypes.
15249 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
15250 * config/arm/arm.c (arm_compute_func_type,
15251 use_return_insn, arm_compute_save_reg0_reg12_mask,
15252 arm_compute_save_reg_mask, arm_output_function_prologue,
15253 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
15254 current_function_calls_eh_return.
15255 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
15256 old eh code.
15257 (arm_set_return_address, thumb_set_return_address): New functions.
15258 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
15259 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
15260 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
15261 (epilogue): Use the stackadj register.
15262 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
15263
15264 2004-08-10 Jakub Jelinek <jakub@redhat.com>
15265
15266 PR target/3144
15267 * expr.c (move_by_pieces_ninsns): Add max_size argument.
15268 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
15269 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
15270 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
15271 but using MOVE_RATIO.
15272 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
15273 (can_store_by_pieces): Change max_size type to unsigned int.
15274 (store_by_pieces_1): Likewise. Pass max_size to
15275 move_by_pieces_ninsns.
15276 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
15277 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
15278 to move_by_pieces_ninsns.
15279 (STORE_BY_PIECES_P): Define.
15280 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
15281 to move_by_pieces_ninsns.
15282 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
15283
15284 * config/i386/i386.h (CLEAR_RATIO): Define.
15285
15286 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15287
15288 * expr.c (expand_expr_real_1): Add back code that was not dead.
15289
15290 2004-08-09 Andrew Pinski <apinski@apple.com>
15291
15292 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
15293 which is found to be compatible before returning the aliasing set.
15294
15295 2004-08-09 Daniel Jacobowitz <dan@debian.org>
15296
15297 * ggc-zone.c (struct alloc_zone): Add statistics counters.
15298 (always_collect): New flag.
15299 (ggc_alloc_zone_1): Update statistics support. Don't include
15300 overhead in allocated counter.
15301 (sweep_pages): Update allocated counter for large pages. Don'y
15302 include overhead.
15303 (ggc_collect_1): Always collect.
15304 (ggc_collect): Honor always_collect flag. Sum all zones to decide
15305 whether to collect.
15306 (SCALE, LABEL): New macros.
15307 (ggc_print_statistics): Add statistics support.
15308
15309 2004-08-09 Roger Sayle <roger@eyesopen.com>
15310
15311 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
15312 (init_expmed): Fix potential overrun problem with "all.reg".
15313 (expand_sdiv2_pow2): Add an alternate implementation for signed
15314 division, if the target provides a suitable conditional move insn.
15315
15316 2004-08-09 Paul Brook <paul@codesourcery.com>
15317 Richard Henderson <rth@redhat.com>
15318
15319 * unwind-dw2.c (uw_install_context_1): Update target saved stack
15320 pointer.
15321
15322 2004-08-09 Geoffrey Keating <geoffk@apple.com>
15323
15324 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
15325 Check DATA limit only if there's no AS limit. Ignore insanely
15326 low DATA limits.
15327 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
15328 but take care that the AS limit isn't overrun.
15329 * doc/invoke.texi: Update documentation of min-heapsize parameter.
15330
15331 2004-08-09 Jeff Law <law@redhat.com>
15332
15333 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
15334 (tree-ssa-threadupdate.o): Add dependencies.
15335 * tree-ssa-threadupdate.c: New file.
15336 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
15337 (rewrite_vars_out_of_ssa): Remove prototype.
15338 (cleanup_tree_cfg): Returns a bool.
15339 * tree.h (thread_through_all_blocks): Prototype.
15340 * tree-outof-ssa.c (SSANORM_*): Move into here.
15341 (remove_ssa_form): Now static.
15342 (rewrite_vars_out_of_ssa): Kill.
15343 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
15344 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
15345 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
15346 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
15347 anything was changed.
15348 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
15349 from the PHI's annotation rather than the edge associated with
15350 the new argument.
15351 * tree-ssa-dom.c (redirection_edges): Kill.
15352 (redirect_edges_and_update_ssa_graph): Kill.
15353 (tree_ssa_dominator_optimize): Do not reset forwardable flag
15354 for blocks anymore. Do not initialize redirection_edges.
15355 Call thread_through_all_blocks. Simplify code for cleanup
15356 of the CFG and iterating. No longer call cleanup_tree_cfg
15357 outside the iteration loop.
15358 (thread_across_edge): No longer mess with forwardable blocks.
15359
15360 2004-08-09 Zack Weinberg <zack@codesourcery.com>
15361
15362 * explow.c (memory_address): Use memory_address_p.
15363 * recog.c (general_operand): Likewise.
15364 * regrename.c: No need to define REG_OK_STRICT.
15365
15366 2004-08-09 Steven Bosscher <stevenb@suse.de>
15367
15368 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
15369 New timers.
15370 * gcse.c: Include timevar.h.
15371 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
15372 and global_copy_prop_count.
15373 (local_const_prop_count, local_copy_prop_count): New static globals.
15374 (gcse_main): Set the right timevar for each pass.
15375 (cprop_jump): Increment global_const_prop_count when a constant is
15376 propagated. Add "GLOBAL" to dump output.
15377 (cprop_insn): Increment global_const_prop_count when a constant is
15378 propagated, or global_copy_prop_count when a copy is propagated.
15379 (do_local_cprop): Likewise for local_const_prop_count and
15380 local_copy_prop_count.
15381 (one_cprop_pass): Initialize const/cprop counters to zero.
15382 Print out results of local and global const/cprop separately.
15383 (bypass_block): Break over-length line.
15384 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
15385 for bb-reorder.o and tracer.o.
15386
15387 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15388
15389 * Makefile.in (GTFILES): Remove stmt.c
15390 (stmt.o): Do not depend on gt-stmt.h.
15391 * emit-rtl.c (emit_line_note): Do not call
15392 set_file_and_line_for_stmt.
15393 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
15394 do everything.
15395 * function.c (free_after_parsing): Do not free STMT field.
15396 (allocate_struct_function): Do not call init_stmt_for_function.
15397 (assign_stack_temp_for_type): Do not accept values of keep
15398 other than 0 or 1.
15399 (init_temp_slots): Do not initialize removed variables.
15400 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
15401 and X_VAR_TEMP_SLOT_LEVEL fields.
15402 * rtl.h (set_file_and_line_for_stmt): Remove.
15403 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
15404 struct stmt_status, cond_stack, case_stack, nesting_stack,
15405 nesting_depth, emit_locus, set_file_and_line_for_stmt,
15406 same_case_target_p, init_stmt_for_function, emit_nop,
15407 expand_start_cond, expand_start_elseif, expand_start_else,
15408 expand_elseif, expand_end_cond): Remove.
15409 (preserve_subexpressions_p): Remove references to CFUN->STMT.
15410 (expand_start_case, expand_end_case_type): Remove, merge into...
15411 (expand_case): ... this one, including other bits from
15412 expand_expr_real_1. Inline same_case_target_p. Turn members
15413 of CASE_STACK into local variables.
15414 (emit_case_bit_tests): Inline same_case_target_p.
15415 (add_case_node): Add HEAD argument, return new head of the list,
15416 do not handle default label here.
15417 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
15418 expand_start_elseif, current_nesting_level, expand_start_case,
15419 expand_end_case_type, expand_end_case, add_case_node,
15420 init_stmt_for_function, expand_elseif): Remove prototypes.
15421 (expand_case): Add prototype.
15422
15423 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15424
15425 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
15426
15427 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15428
15429 * expr.c (var_rtx): Remove.
15430 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
15431 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
15432 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
15433 Abort.
15434 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
15435 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
15436 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
15437
15438 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
15439 Ayal Zaks <zaks@il.ibm.com>
15440
15441 * common.opt (freschedule-modulo-scheduled-loops): New flag.
15442 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
15443 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
15444 when -freschedule-modulo-scheduled-loops flag is not specified.
15445 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
15446 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
15447 More accurate placing of insn in row of partial schedule.
15448 (ps_insn_find_column): New function.
15449 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
15450 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
15451 (schedule_region): Use sched_is_disabled_for_current_region_p.
15452 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
15453
15454 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
15455
15456 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
15457 change.
15458
15459 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
15460
15461 * config/i386/i386.c (ix86_expand_clrmem): Properly call
15462 gen_strset for 64bit target.
15463
15464 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
15465
15466 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
15467
15468 2004-08-07 Jason Merrill <jason@redhat.com>
15469
15470 Make return in memory explicit.
15471 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
15472 (assign_parm_find_data_types): Remove code for old front end
15473 invisible reference handling.
15474 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
15475 (expand_function_end): Likewise.
15476 * gimplify.c (gimplify_return_expr): Handle a dereferenced
15477 RESULT_DECL.
15478 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
15479 (declare_return_variable): Handle DECL_BY_REFERENCE.
15480 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
15481 (cp_genericize_r): Use convert_from_reference.
15482 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
15483 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
15484
15485 * c-common.c (c_warn_unused_result): Check TREE_USED before
15486 warning about a CALL_EXPR with an unused value.
15487
15488 2004-08-06 Mark Mitchell <mark@codesourcery.com>
15489
15490 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
15491 to the compiler. Use -fshort-wchar by default.
15492
15493 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
15494
15495 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
15496 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
15497 threshhold.
15498 * doc/invoke.texi (param): Document min-crossjump-insns.
15499
15500 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
15501
15502 PR c/13282
15503 * c.opt (Wmissing-field-initializers): New option.
15504 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
15505 * c-typeck.c (pop_init_level): Guard the missing field warning with
15506 warn_missing_field_initializers rather than extra_warnings.
15507 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
15508 some of the explanation from...
15509 (-Wextra): ...here. Say that the missing field warning can be
15510 seperately controlled by -Wmissing-field-initializers.
15511
15512 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
15513
15514 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
15515 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
15516 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
15517 * tree.def (ENTRY_VALUE_EXPR): Remove.
15518
15519 2004-08-06 Jakub Jelinek <jakub@redhat.com>
15520
15521 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
15522 the places where it is actually needed. Don't use repz; stosb
15523 for -Os with sufficiently small constant sizes.
15524 For sufficiently small repz; stos{l,q} repeat counts use a sequence
15525 of stos{l,q} instructions instead.
15526
15527 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15528
15529 PR tree-optimization/16807
15530 * loop-iv.c (dump_iv_info): Dump invariants correctly.
15531 (iv_subreg, iv_extend): Express value of invariant purely in
15532 base field.
15533
15534 2004-08-06 Mark Mitchell <mark@codesourcery.com>
15535
15536 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
15537 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
15538
15539 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
15540
15541 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
15542 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
15543 pre_dec_operand.
15544 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
15545 pattern until reload is finished to allow better code generation
15546 and split them completely into separate instrunctions.
15547 (*andsi3_split): New pattern.
15548
15549 2004-08-05 Mark Mitchell <mark@codesourcery.com>
15550
15551 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
15552 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
15553 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
15554 * tree.h (handle_dll_attribute): Declare. Test
15555 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
15556 * c-common.h (c_determine_visibility): Declare.
15557 * c-common.c (c_determine_visibility): New function.
15558 * c-decl.c (finish_decl): Use it.
15559 (finish_function): Likewise.
15560 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
15561 zero, by default. Use #if, not #ifdef, to test it.
15562 * config/arm/arm.c (arm_attribute_table): Use
15563 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
15564 #if.
15565 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
15566 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
15567 to 1.
15568 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
15569 * config/i386/i386.c (ix86_attribute_table): Use
15570 handle_dll_attribute for dllimport/dllexport. Test
15571 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
15572 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
15573 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
15574 it to 1.
15575 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
15576 with #if.
15577 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
15578 it to 1.
15579 * doc/extend.texi (dllexport): Clarify and correct documentation.
15580 (dllimport): Likewise.
15581 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
15582 handle_dll_attribute.
15583
15584 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15585
15586 * tree-ssa-loop-manip.c: New file.
15587 * Makefile.in (tree-ssa-loop-manip.o): Add.
15588 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
15589 Declare.
15590 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
15591 form.
15592 (tree_ssa_loop_done): Verify loop closed ssa form.
15593 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
15594
15595 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15596
15597 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
15598 pa_asm_output_aligned_local): New functions.
15599 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
15600 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
15601 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
15602 pa_asm_output_aligned_common.
15603 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
15604 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
15605 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
15606 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
15607 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
15608 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
15609 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
15610 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
15611 common data.
15612
15613 2004-08-05 Andrew Pinski <apinski@apple.com>
15614
15615 * objc/objc-act.c (build_objc_string_object): Mark the address
15616 expression as constant.
15617
15618 2004-08-05 David Edelsohn <edelsohn@gnu.org>
15619
15620 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
15621 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
15622 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
15623
15624 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
15625
15626 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
15627 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
15628 out, and associated obsolete comments.
15629
15630 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
15631
15632 * tree.h (force_fit_type): Return a tree, take three flags.
15633 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
15634 TREE_CONSTANT_OVERFLOW here.
15635 (int_const_binop, const_binop): Adjust.
15636 (size_int_type): Do sign extension here.
15637 (fold_convert_const, optimize_bit_field_compare,
15638 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
15639 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
15640 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
15641
15642 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15643
15644 PR tree-optimization/16864
15645 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
15646 for ssa names without default_def.
15647
15648 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
15649
15650 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
15651 frame pointer, restore eax with an ebp-relative address.
15652
15653 2004-08-04 Geoffrey Keating <geoffk@apple.com>
15654
15655 PR 14516
15656 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
15657 * c-common.h (make_rtl_for_local_static): Delete.
15658 * c-decl.c (shadow_tag_warned): Clean up comment.
15659 (finish_decl): Clean up spacing. Use set_user_assembler_name when
15660 appropriate. Don't pass asmspec to rest_of_decl_compilation.
15661 * c-semantics.c (make_rtl_for_local_static): Delete.
15662 * expr.c (init_block_move_fn): Use set_user_assembler_name.
15663 (init_block_clear_fn): Likewise.
15664 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
15665 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
15666 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
15667 * tree.h (make_decl_rtl): Remove second parameter.
15668 (set_user_assembler_name): New.
15669 * varasm.c (set_user_assembler_name): New.
15670 (make_decl_rtl): Remove second parameter. Update callers in many
15671 files.
15672
15673 2004-08-05 Adam Nemet <anemet@lnxw.com>
15674
15675 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
15676 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
15677 to LynxOS 4.0.
15678 * gthr-lynx.h: New file.
15679 * config/lynx-ng.h: Remove file.
15680 * config/lynx.h: Update to LynxOS 4.0.
15681 * config/t-lynx: New file.
15682 * config/i386/lynx-ng.h: Remove file.
15683 * config/i386/lynx.h: Update to LynxOS 4.0.
15684 * config/rs6000/lynxbase.h: Remove file.
15685 * config/rs6000/lynx.h: Update to LynxOS 4.0.
15686 * config/rs6000/t-lynx: New file.
15687 * doc/install.texi (Options specification): Remove reference to
15688 LynxOS from systems where --with-gnu-as makes a difference.
15689
15690 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
15691
15692 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
15693 __UINTMAX_TYPE__.
15694 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
15695 __INTMAX_MAX__.
15696 (c_cpp_builtins): Call it.
15697 * doc/cpp.texi: Update.
15698
15699 2004-08-04 David Edelsohn <edelsohn@gnu.org>
15700
15701 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
15702 cost.
15703
15704 2004-08-04 Jan Hubicka <jh@suse.cz>
15705
15706 * basic-block.h (profile_staus): New global variable.
15707 * cfg.c (profile_status): Declare.
15708 (check_bb_profile): Break out from ....; use profile_status
15709 (dump_flow_info): ... here.
15710 * cfgbuild.c (find_basic_blocks): Set profile_status.
15711 * cfgexpand.c (tree_expand_cfg): Likewise.
15712 * predict.c (estimate_probability): Likewise.
15713 * profile.c (branch_prob): Likewise.
15714 * tree-cfg.c (build_tree_cfg): Likewise.
15715 (dump_function_to_file): Use check_bb_profile.
15716 * tree-pretty-print (dump_bb_header): Likewise.
15717 * tree-profile.c (do_tree_profiling): Cleanup.
15718
15719 2004-08-04 Zack Weinberg <zack@codesourcery.com>
15720
15721 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
15722 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
15723 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
15724 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
15725 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
15726 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
15727 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
15728 (ggc-none.o, errors.o): Move rule to generators section;
15729 correct dependencies.
15730 (min-insn-modes.o): Move rule to generators section; remove
15731 unnecessary explicit command; correct dependencies.
15732 (print-rtl.o, print-rtl1.o): Correct dependencies.
15733 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
15734 (mostlyclean): Update.
15735
15736 * errors.c: Include bconfig.h not config.h. Correct comment.
15737 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
15738 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
15739 * print-rtl.c: Don't include tm_p.h.
15740
15741 * rtl.h: Move forward-decl of struct function down where it's
15742 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
15743 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
15744
15745 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15746 Jeff Law <law@redhat.com>
15747
15748 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
15749 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
15750 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
15751 manipulate the duplicated ssa names.
15752 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
15753 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
15754 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
15755 New functions.
15756 (release_ssa_name): Do not release ssa names that may have multiple
15757 definitions.
15758 * tree.h (release_ssa_name_force, mark_for_rewrite,
15759 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
15760 marked_ssa_names): Declare.
15761 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
15762 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
15763 Update call to rewrite_ssa_into_ssa.
15764
15765 2004-08-04 Mark Mitchell <mark@codesourcery.com>
15766
15767 * defaults.h (TARGET_DECLSPEC): New macro.
15768 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
15769 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
15770 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
15771 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
15772 __declspec support.
15773 (TARGET_DECLSPEC): Define.
15774 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
15775 __declspec support.
15776 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
15777 __declspec support.
15778 (TARGET_DECLSPEC): Define.
15779 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
15780 __declspec support.
15781 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
15782 support.
15783 * doc/tm.texi (TARGET_DECLSPEC): Document.
15784
15785 * doc/extend.texi: Fix typo in comment.
15786
15787 2004-08-04 Paul Brook <paul@codesourcery.com>
15788
15789 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
15790 (TARGET_CXX): Use it.
15791 * target.h (struct gcc_target): Add cdtor_returns_this.
15792 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
15793 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
15794 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
15795
15796 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
15797
15798 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
15799 low/high pair. Do range checking directly.
15800 (interpret_integer): Adjust.
15801
15802 2004-08-04 Nick Clifton <nickc@redhat.com>
15803
15804 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
15805 GCC ABI.
15806 * doc/invoke.texi: Document this new switch and also the -mrenesas
15807 switch.
15808
15809 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
15810
15811 * cfglayout.c (insn_locators_initialize): Update the current
15812 location before initializing a location.
15813
15814 2004-08-03 Zack Weinberg <zack@codesourcery.com>
15815
15816 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
15817 (dbxout_function_end): Return after emitting the "Lscope" symbol
15818 under the same conditions that this function formerly wasn't called.
15819 Add explanatory comments.
15820
15821 PR 14860
15822 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
15823 on the new decl.
15824
15825 PR 13956
15826 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
15827 functions, broken out of dbxout_block.
15828 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
15829 stabs too, if it contains symbols. Use the begin_label and
15830 the Lscope label (emitted by dbxout_function_end) for the
15831 range of this block.
15832
15833 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
15834
15835 * doc/install.texi: Update autoconf version requirements.
15836
15837 2004-08-03 Zack Weinberg <zack@codesourcery.com>
15838
15839 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
15840 * recog.c (general_operand, immediate_operand, nonmemory_operand)
15841 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
15842 * regclass.c (record_reg_classes): Likewise.
15843 * reload.c (find_reloads): Likewise.
15844 * reload1.c (reload): Likewise.
15845
15846 2004-08-03 Zack Weinberg <zack@codesourcery.com>
15847
15848 * gensupport.c (init_md_reader_args_cb): Renamed from
15849 init_md_reader_args. Add third option, callback function for
15850 parsing program-specific options. Add diagnosis of incorrect
15851 number of input files.
15852 (init_md_reader): Fold into init_md_reader_args_cb.
15853 (init_md_reader_args): Now a thin wrapper around
15854 init_md_reader_args_cb.
15855 * gensupport.h: Update prototypes.
15856
15857 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
15858 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
15859 * genrecog.c: No need to diagnose lack of an input file;
15860 init_md_reader_args will handle it.
15861 * genconditions.c: Likewise, and use init_md_reader_args.
15862 * genconstants.c: Likewise, and no need to call read_md_rtx.
15863
15864 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
15865
15866 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
15867 declarations.
15868
15869 2004-08-03 Mike Stump <mrs@apple.com>
15870
15871 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
15872 for frameworks.
15873 * doc/invoke.texi (Darwin Options): Update to reflect above.
15874
15875 2004-08-03 Roger Sayle <roger@eyesopen.com>
15876
15877 PR middle-end/16790
15878 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
15879 truncations, not just global truncations.
15880
15881 2004-08-03 Andrew Pinski <apinski@apple.com>
15882
15883 PR bootstrap/16865
15884 * loop-iv.c (simplify_using_assignment): Initialize lhs.
15885
15886 2004-08-03 Paul Brook <paul@codesourcery.com>
15887
15888 * gcc/doc/install.texi: Document MPFR requirement.
15889
15890 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
15891
15892 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
15893 and mmap() explicitly instead of relying on preset autoconf cache
15894 variables.
15895 * configure: Regenerate.
15896
15897 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
15898
15899 PR target/16570
15900 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
15901 to tmake_file.
15902 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
15903 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
15904 to tmake_file.
15905
15906 * config/i386/t-gmm_malloc: New file.
15907 * config/i386/t-pmm_malloc: Likewise.
15908
15909 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
15910
15911 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
15912 Tanguy Fautrà <tfautre@pandora.be>
15913
15914 * config/i386/pmm_malloc.h: New file.
15915
15916 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
15917
15918 * config/i386/gmm_malloc.h: New file.
15919
15920 2004-08-03 Dale Johannesen <dalej@apple.com>
15921
15922 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
15923 * c-common.c: Include opts.h.
15924 (c_common_get_alias_set): Fix check for a single input file.
15925 * toplev.c: Remove current_file_decl.
15926 * tree.h: Ditto.
15927
15928 2004-08-03 Mark Mitchell <mark@codesourcery.com>
15929
15930 * config.gcc (arm*-*-symbianelf*): New target.
15931 * config/arm/symbian.h: New file.
15932
15933 * gthr-gnat.c: Add visibility #pragmas.
15934 * gthr-gnat.h : Likewise.
15935 * gthr.h: Likewise.
15936 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
15937 (__ffsDI2): Likewise.
15938 (__clzSI2): Likewise.
15939 (__ctzSI2): Likewise.
15940 (__ctzDI2): Likewise.
15941 (__popcountSI2): Likewise.
15942 (__popcountDI2): Likewise.
15943 (__paritySI2): Likewise.
15944 (__parityDI2): Likewise.
15945 * libgcc2.h: Add visibility #pragmas.
15946 (__clzDI2): Add prototype.
15947 (__clzSI2): Likewise.
15948 (__ctzSI2): Likewise.
15949 (__ffsDI2): Likewise.
15950 (__ffsSI2): Likewise.
15951 (__ctzDI2): Likewise.
15952 (__popcountSI2): Likewise.
15953 (__popcountDI2): Likewise.
15954 (__paritySI2): Likewise.
15955 (__parityDI2): Likewise.
15956 * unwind-dw2-fde.h: Add visibility #pragmas.
15957 * unwind.h: Likewise.
15958
15959 2004-08-03 David Edelsohn <edelsohn@gnu.org>
15960 Dale Johannesen <dalej@apple.com>
15961 Roger Sayle <roger@eyesopen.com>
15962
15963 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
15964 constants more accurately. Adjust costs for FMA instructions.
15965 Add cases for most logical and float operations. Recurse into
15966 most operands.
15967
15968 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
15969
15970 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
15971
15972 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
15973
15974 * ra-build.c (conflicts_between_webs): For webs that cross a call add
15975 conflicts to regs_invalidated_by_call.
15976
15977 2004-08-03 Paul Brook <paul@codesourcery.com>
15978
15979 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
15980
15981 2004-08-03 Jan Hubicka <jh@suse.cz>
15982
15983 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
15984 ARRAY_REF argument.
15985
15986 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
15987
15988 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
15989 arm968es, arm10e, arm1020e, arm1022e.
15990 * invoke.texi: Update list of ARM cores.
15991 * arm-tune.md: Regenerate.
15992
15993 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
15994
15995 * arm/gentune.sh: New file.
15996 * arm/t-arm: New file.
15997 * arm/arm-tune.md: New file (autogenerated).
15998 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
15999 * arm.md (attribute tune): Delete. Include arm-tune.md.
16000
16001 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
16002
16003 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
16004 penultimate parameter. All callers adjusted.
16005 (struct prefix_list): Remove used_flag_ptr.
16006 (find_a_file): Do not set *pl->used_flag_ptr.
16007 (warn_B, warn_std_ptr): Remove.
16008
16009 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
16010 Mostafa Hagog <mustafa@il.ibm.com>
16011
16012 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
16013
16014 2004-08-02 Geoffrey Keating <geoffk@apple.com>
16015
16016 * dwarf2out.c (output_call_frame_info): Don't change data format
16017 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
16018 label. Use 'true' not '1'.
16019 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
16020 required.
16021
16022 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
16023
16024 * gdbinit.in: Reflect previous changes to rtunion_def.
16025
16026 2004-08-02 Roger Sayle <roger@eyesopen.com>
16027
16028 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
16029 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
16030
16031 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
16032
16033 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
16034 vec_p_reserve.
16035 * langhooks.h (lang_hooks::builtin_function): Rename parameter
16036 from "class" to "bt_class".
16037
16038 2004-08-02 Paul Brook <paul@codesourcery.com>
16039
16040 PR rtl-optimization/15068
16041 * flow.c (init_propagate_block_info): Check condition is reversible.
16042
16043 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
16044
16045 * gengtype.h (options::info): Change type to const char *.
16046 (enum gc_used_enum): Move out of struct type scope.
16047 * gengtype.c (create_option): Convert initializer for option::info to
16048 appropiate type.
16049 (adjust_field_type, walk_type, write_func_for_structure,
16050 write_root, write_roots): Remove pointless cast.
16051
16052 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
16053
16054 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
16055
16056 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
16057
16058 * rtl.h (union rtunion_def): Have all members start with the
16059 prefix "rt_".
16060 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
16061 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
16062 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
16063 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
16064 access.
16065 * gengtype.c (adjust_field_rtx_def): Likewise.
16066 * rtlanal.c (loc_mentioned_in_p): Likewise.
16067
16068 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
16069
16070 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
16071 Replace uses of mips/elf64.h with mips/elf.h
16072 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
16073 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
16074 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
16075 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
16076 (HANDLE_SYSV_PRAGMA): Delete.
16077 (ASM_OUTPUT_DEF): Fix formatting.
16078 * config/mips/elf64.h: Delete.
16079
16080 2004-08-01 Zack Weinberg <zack@codesourcery.com>
16081
16082 * config/ia64/ia64.c (got_symbolic_operand): Do require a
16083 symbol+offset operand to have its offset be zero mod 0x3fff
16084 when GOT entries are in use. Clarify logic in SYMBOL_REF
16085 case. Clarify comments.
16086 (ia64_expand_load_address): Split a symbol+offset load when
16087 the offset is nonzero mod 0x3fff, not 0x1fff.
16088
16089 2004-08-01 Geoffrey Keating <geoffk@apple.com>
16090
16091 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
16092 if trying to *store* to a non-offsettable address.
16093 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
16094 a nonoffsettable address.
16095 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
16096 Clean up.
16097 (movti_string): Don't move GPRs to a nonoffsettable address.
16098 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
16099
16100 2004-08-02 Ben Elliston <bje@au.ibm.com>
16101
16102 PR target/16155
16103 * config/rs6000/altivec.h: Replace typeof with __typeof__.
16104
16105 2004-08-01 Richard Henderson <rth@redhat.com>
16106
16107 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
16108 variable sized types.
16109
16110 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
16111
16112 * doc/invoke.texi: In the MIPS options section, remove the passage
16113 saying that -mexplicit-relocs is usually disabled for -mabicalls
16114 -fno-unit-at-a-time.
16115 * config/mips/mips.c (override_options): Remove the code that enforced
16116 this rule.
16117
16118 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
16119
16120 * config/mips/mips.md (cprestore): Provide two alternatives, one for
16121 an in-range offset and one for an out-of-range offset. Wrap the latter
16122 in .set macro/.set nomacro if it's inside a .set nomacro block.
16123
16124 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
16125
16126 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
16127 (mips_restore_gp): Declare.
16128 * config/mips/mips.c (mips_add_offset): Add a scratch register
16129 argument. Reimplement in rtl only, reusing MIPS16 logic from
16130 mips_output_mi_thunk.
16131 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
16132 to mips_add_offset.
16133 (mips_gp_save_slot): Delete.
16134 (mips_restore_gp): New function.
16135 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
16136 * config/mips/mips.md (exception_receiver): Turn into a
16137 define_insn_and_split. Use mips_restore_gp to do the split.
16138 (call_internal, call_value_internal, call_value_multiple_internal): Use
16139 mips_restore_gp to restore $gp.
16140
16141 2004-07-31 Andrew Pinski <apinski@apple.com>
16142
16143 PR other/16842
16144 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
16145
16146 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
16147
16148 * c-decl.c (diagnose_mismatched_decls): Give error for external
16149 redeclaration of identifier declared with no linkage, not just
16150 warning with -Wtraditional. Do not check DECL_CONTEXT to give
16151 error for redeclaration with no linkage.
16152
16153 2004-07-30 Geoffrey Keating <geoffk@apple.com>
16154 Fariborz Jahanian <fjahanian@apple.com>
16155
16156 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
16157 non-offsettable addresses even for DImode.
16158 (rs6000_split_multireg_move): Cope with non-offsettable addresses
16159 being moved into multiple GPRs.
16160
16161 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
16162 to 64.
16163 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
16164 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
16165 to 128.
16166 * config/rs6000/darwin-ldouble.c (isless): New macro.
16167 (inf): New macro.
16168 (nonfinite): New macro.
16169 (FPKINF): Delete.
16170 (_xlqadd): Completely rewrite.
16171 (_xlqmul): Correct overflow handling.
16172 (_xlqdiv): Correct overflow handling.
16173 * config/rs6000/darwin-ldouble-format: New file.
16174
16175 2004-07-30 Roger Sayle <roger@eyesopen.com>
16176 Richard Henderson <rth@redhat.com>
16177
16178 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
16179 9 into the equivalent lea instruction.
16180
16181 2004-07-30 Richard Henderson <rth@redhat.com>
16182
16183 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
16184 with DECL_INITIAL if fb_lvalue.
16185 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
16186 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
16187 with <Cxxx>.
16188 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
16189
16190 2004-07-30 Diego Novillo <dnovillo@redhat.com>
16191
16192 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
16193 pointer escapes through a function call, assume that the
16194 callee will dereference it.
16195 (add_pointed_to_var): Assume that VALUE is always an
16196 ADDR_EXPR.
16197 (collect_points_to_info_r): Only call add_pointed_to_var if
16198 the value is an ADDR_EXPR.
16199
16200 2004-07-30 Diego Novillo <dnovillo@redhat.com>
16201
16202 * tree-ssa-alias.c (create_alias_map_for): Do not get the
16203 alias set of the inner type of ARRAY_TYPEs.
16204
16205 2004-07-29 Diego Novillo <dnovillo@redhat.com>
16206
16207 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
16208 setting a non-register to UNDEFINED right before the call to
16209 set_lattice_value.
16210
16211 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
16212
16213 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
16214
16215 2004-07-29 Diego Novillo <dnovillo@redhat.com>
16216
16217 * tree-ssa.c (verify_flow_sensitive_alias_info): When
16218 comparing points-to sets of different pointers, make sure the
16219 second pointer is actually referenced in the code.
16220
16221 2004-07-29 Zack Weinberg <zack@codesourcery.com>
16222
16223 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
16224 (got_symbolic_operand): Remove unreachable code.
16225 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
16226 setjmp_operand; add entry for tls_symbolic_operand.
16227 * config/ia64/ia64-protos.h: Remove all prototypes of
16228 predicate functions.
16229
16230 2004-07-29 Mark Mitchell <mark@codesourcery.com>
16231
16232 * c-common.h (lang_post_pch_load): New variable.
16233 * c-pch.c (lang_post_pch_load): Define it.
16234 (c_common_read_pch): Use it.
16235 * cgraphunit.c (record_call_1): Give the front end a chance to
16236 record additional needed entities when a variable is marked as
16237 needed.
16238 * tlink.c (recompile_files): Robustify.
16239 (scan_linker_output): If a symbol is assigned to a file,
16240 but after recompilation is not present there, issue an error
16241 message.
16242
16243 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16244
16245 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
16246 Take orig_loop argument and pass it to set_level.
16247 (schedule_sm): Pass the correct orig_loop to force_move_till.
16248
16249 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16250
16251 * cfgloop.c (update_latch_info): Update dominator of the new block.
16252 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
16253 info.
16254 * dominance.c (verify_dominators): Check that the dominance tree is
16255 connected.
16256 (recount_dominator): Ignore unreachable blocks.
16257 (iterate_fix_dominators): Cleanup old dominance information before
16258 recomputing it.
16259
16260 2004-07-29 Diego Novillo <dnovillo@redhat.com>
16261
16262 * tree-ssa-operands.c (get_expr_operands): Revert changes
16263 to ADDR_EXPR processing introduced by:
16264 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16265 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
16266
16267 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
16268
16269 * doc/implement-c.texi: Add C90 subclause references. Point to
16270 preprocessor documentation instead of duplicating it. Add points
16271 only present in C90. Fill in documentation for all points.
16272
16273 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16274
16275 * pa.c (output_movb): Correct typo.
16276
16277 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
16278
16279 * ra.h (single_reg_in_regclass): Declare.
16280 * ra.c (single_reg_in_regclass): Define.
16281 (first_hard_reg): New.
16282 (init_ra): Initialize single_reg_in_regclass.
16283 * ra-colorize.c (ok_class): New.
16284 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
16285
16286 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
16287
16288 * gcov-io.h: Allow zero tag as EOF indicator.
16289 (gcov_is_eof): Remove.
16290 (gcov_truncate): Remove.
16291 * gcov-io.c (gcov_seek): Always SEEK_SET.
16292 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
16293 EOF tag.
16294 * coverage.c (read_counts_file): Don't use gcov_is_eof.
16295 * gcov-dump.c (dump_file): Likewise.
16296 * gcov.c (read_graph_file, read_count_file): Likewise.
16297
16298 * c-decl.c (complete_array_type): Don't gratuitously copy
16299 maxindex. Check it always has a type.
16300
16301 2004-07-29 Steven Bosscher <stevenb@suse.de>
16302
16303 * rtl.c (currently_expanding_to_rtl): New.
16304 * rtl.h (currently_expanding_to_rtl): Export it.
16305 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
16306
16307 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
16308 inliner hack.
16309 * config/sh/sh.c: Replace rtx_equal_function_value_matters
16310 with currently_expanding_to_rtl.
16311 * config/sh/sh.md: Likewise.
16312 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
16313
16314 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
16315
16316 Introduce sh2a support.
16317 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
16318 * config.gcc: Build multilibs for sh2a and sh2a-single by
16319 default.
16320 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
16321 default. Split their tests out of the corresponding SH4
16322 multilibs.
16323 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
16324 multilibs for SH2a.
16325 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
16326 * config.gcc: Handle sh2a multilibs and cpu selection.
16327 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
16328 * config/sh/t-mlib-sh2a: New.
16329 * config/sh/t-mlib-sh2a-nofpu: New.
16330 * config/sh/t-mlib-sh2a-single: New.
16331 * config/sh/t-mlib-sh2a-single-only: New.
16332 2004-07-09 Nick Clifton <nickc@redhat.com>
16333 Issue 43400
16334 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
16335 -ml and -m2a are used together.
16336 2004-03-23 DJ Delorie <dj@redhat.com>
16337 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
16338 when we have a double-sized FPU.
16339 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
16340 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
16341 is set.
16342 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
16343 -msh2a-single and -msh2a-single-only
16344 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
16345 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
16346 is set.
16347 2004-02-20 DJ Delorie <dj@delorie.com>
16348 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
16349 2004-02-20 Fred Fish <fnf@redhat.com>,
16350 Corinna Vinschen <vinschen@redhat.com>
16351 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
16352 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
16353 2004-02-18 DJ Delorie <dj@redhat.com>
16354 * config/sh/sh.c (broken_move): Add support for movi20.
16355 * config/sh/sh.h: Likewise.
16356 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
16357 * config/sh/sh.md (udivsi3_sh2a): New.
16358 (udivsi3): Call it.
16359 (divsi3_sh2a): New.
16360 (divsi3): Call it.
16361 (mul_r): New.
16362 (ashlsi3_sh2a): New.
16363 (ashrsi3_sh2a): New.
16364 (lshrsi3_sh2a): New.
16365 (movsi_i): Disable for sh2a.
16366 (movsi_ie): Add movi20.
16367 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
16368 sh2a, for -m2a-nofpu mode.
16369 2004-02-13 DJ Delorie <dj@redhat.com>
16370 * config/sh/lib1funcs.asm: Handle double vs single better.
16371 * config/sh/sh.h: Likewise.
16372 2004-02-09 DJ Delorie <dj@redhat.com>
16373 * config/sh/crt1.asm: Add support for sh2a.
16374 * config/sh/elf.h: Likewise.
16375 * config/sh/lib1funcs.asm: Likewise.
16376 * config/sh/sh.c: Likewise.
16377 * config/sh/sh.md: Likewise.
16378 * config/sh/sh.h: Likewise.
16379 * config/sh/t-sh: Likewise.
16380
16381 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
16382
16383 * config/frv/frv.md (movqi_internal, movhi_internal,
16384 movsi_internal): Add backup alternatives for memory inputs.
16385
16386 2004-07-28 Matt Austern <austern@apple.com>
16387
16388 * config/darwin.c (darwin_one_byte_bool): New global variable.
16389 * config/darwin.h (darwin_one_byte_bool): Declare.
16390 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
16391 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
16392 value of darwin_one_byte_bool.
16393 * doc/invoke.texi: Document -mone-byte-bool flag.
16394
16395 2004-07-28 Eric Christopher <echristo@redhat.com>
16396
16397 * c-common.c (c_common_unsafe_for_reeval): Delete.
16398 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
16399 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
16400 * calls.c (fix_unsafe_tree): Delete.
16401 (expand_call): Delete code which used above.
16402 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
16403 * expr.c (expand_expr_real_1): Ditto.
16404 * fold-const.c (non_lvalue): Ditto.
16405 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
16406 (lhd_unsafe_for_reeval): Ditto.
16407 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
16408 * langhooks.h (unsafe_for_reeval): Ditto.
16409 (unsave_expr_now): Adjust comment.
16410 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
16411 (estimate_num_insns_1): Ditto.
16412 * tree-pretty-print.c (dump_generic_node): Ditto.
16413 * tree.c (expr_align): Ditto.
16414 (unsave_expr): Delete.
16415 (unsafe_for_reeval): Ditto.
16416 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
16417 * tree.def (UNSAVE_EXPR): Delete.
16418 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
16419
16420 2004-07-28 Zack Weinberg <zack@codesourcery.com>
16421
16422 * tree.h (enum tls_model): Move ...
16423 * coretypes.h: ... here.
16424
16425 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
16426
16427 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
16428
16429 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
16430
16431 * cse.c (validate_canon_reg): New function, split out from...
16432 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
16433
16434 2004-07-28 Diego Novillo <dnovillo@redhat.com>
16435
16436 * tree-ssa-alias.c (maybe_create_global_var): Don't just
16437 return if .GLOBAL_VAR has been created.
16438
16439 2004-07-28 Diego Novillo <dnovillo@redhat.com>
16440
16441 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
16442 every variable that may have aliases, not just tags.
16443
16444 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
16445
16446 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
16447 move_from_CR_eq_bit.
16448 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
16449
16450
16451 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
16452 e500_flip_eq_bit.
16453
16454 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
16455 output_e500_flip_eq_bit.
16456
16457 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
16458 output_e500_flip_eq_bit.
16459 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
16460 output_e500_flip_eq_bit.
16461 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
16462 (print_operand): case D. Get to EQ bit.
16463
16464 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
16465
16466 * gcov.c (function_summary): Add missing \n.
16467
16468 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
16469
16470 Introduce sh4a support.
16471 * config.gcc: Handle sh4a multilibs and cpu selection.
16472 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
16473 * config/sh/t-mlib-sh4a: New.
16474 * config/sh/t-mlib-sh4al: New.
16475 * config/sh/t-mlib-sh4a-nofpu: New.
16476 * config/sh/t-mlib-sh4a-single: New.
16477 * config/sh/t-mlib-sh4a-single-only: New.
16478 2004-02-20 DJ Delorie <dj@redhat.com>
16479 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
16480 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
16481 2003-08-22 Eric Christopher <echristo@redhat.com>
16482 * config/sh/sh4a.md: Update for chip errata.
16483 2003-08-07 Eric Christopher <echristo@redhat.com>
16484 * config/sh/sh4a.md: New file. sh4a processor description.
16485 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
16486 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
16487 of -m4a-nofpu.
16488 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
16489 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
16490 * doc/invoke.texi (SH Options): Document -m4al.
16491 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
16492 * config/sh/sh.c (expand_block_move): Remove commented-out code
16493 checked in by mistake.
16494 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
16495 single elements from SFmode vectors.
16496 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
16497 register.
16498 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
16499 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
16500 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
16501 sh_fsca_int2sf): Remove variable declarations.
16502 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
16503 sh_fsca_int2sf): New functions.
16504 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
16505 sh_fsca_int2sf_rtx): New static variables.
16506 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
16507 sh_fsca_int2sf): Declare.
16508 * config/sh/sh.md: Adjust.
16509 * doc/invoke.texi (SH Options): Document new options.
16510 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
16511 compatibility from SH4 code.
16512 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
16513 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
16514 early.
16515 (memory_movsrc_operand): Renamed to...
16516 (unaligned_load_operand): ... this. Simplified.
16517 * config/sh/sh.h (PREDICATE_CODES): Adjust.
16518 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
16519 input operand to SImode, and adjust the others. Introduce
16520 post-increment by peephole.
16521 * config/sh/sh.c (expand_block_move): Give the target address the
16522 same mode as the temp reg.
16523 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
16524 copying.
16525 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
16526 Introduce support for SH4a.
16527 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
16528 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
16529 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
16530 sh_fsca_int2sf): New.
16531 (sh_init_builtins): Initialize them.
16532 (print_operand): Support `d'.
16533 (expand_block_move): Use movua if src is misaligned.
16534 (memory_movsrc_operand): New.
16535 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
16536 and one of the SH4 macros.
16537 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
16538 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
16539 SELECT_SH4A_SINGLE): New.
16540 (TARGET_NONE): Add SH4A_BIT.
16541 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
16542 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
16543 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
16544 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
16545 (enum processor_type): Added PROCESSOR_SH4A.
16546 (PREDICATE_CODES): Add memory_movsrc_operand.
16547 * config/sh/sh.md: Removed unused variables.
16548 (attr cpu): Add sh4a.
16549 (attr type): Add movua, fsrra and fsca.
16550 (prefetch): New, for SH4.
16551 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
16552 (toggle_sz): Set type to fp.
16553 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
16554 (movua, extv, extzv): New.
16555 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
16556 and 4a-single-only.
16557
16558 2004-07-28 Diego Novillo <dnovillo@redhat.com>
16559
16560 * tree-optimize.c (init_tree_optimization_passes): Schedule
16561 pass_may_alias right after the program is renamed into SSA.
16562 * tree-pass.h (PROP_alias): Define.
16563 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
16564 * tree-sra.c (pass_sra): Likewise.
16565 * tree-ssa-ccp.c (pass_ccp): Likewise.
16566 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
16567 * tree-ssa-dce.c (pass_dce): Likewise.
16568 * tree-ssa-dom.c (pass_dominator): Likewise.
16569 * tree-ssa-dse.c (pass_dse): Likewise.
16570 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
16571 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16572 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
16573 * tree-ssa-pre.c (pass_pre): Likewise.
16574 * tree-tailcall.c (pass_tail_recursion): Likewise.
16575 * tree-ssa.c (pass_redundant_phi): Likewise.
16576 * tree-ssa-alias.c (aliases_computed_p): Remove.
16577 Update all users.
16578 (init_alias_info): Do not mark all type tags for renaming
16579 unconditionally.
16580 Clear may_aliases from every symbol.
16581 (setup_pointers_and_addressables): If a pointer has not been
16582 dereferenced and it had a type tag, clear it and mark the old
16583 tag for renaming.
16584
16585 2004-07-28 Diego Novillo <dnovillo@redhat.com>
16586
16587 PR tree-optimization/16705
16588 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
16589 .GLOBAL_VAR.
16590
16591 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16592
16593 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
16594 check.
16595
16596 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
16597 don't make another one.
16598
16599 PR optimization/15077
16600 * function.h (struct function): Add field saved_static_chain_decl.
16601 Fix comment for static_chain_decl.
16602 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
16603 * tree-inline.h (save_body): Add new arg.
16604 * tree-optimize.c (tree_rest_of_compilation): Handle saving
16605 static_chain_decl.
16606
16607 2004-07-27 Richard Henderson <rth@redhat.com>
16608
16609 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
16610 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
16611 is_gimple_addressable.
16612 * tree-gimple.c (is_gimple_addressable): Rename from
16613 is_gimple_addr_expr_arg; accept INDIRECT_REF.
16614 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
16615 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
16616 rename to is_gimple_addressable.
16617
16618 2004-07-28 Alan Modra <amodra@bigpond.net.au>
16619
16620 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
16621
16622 2004-07-27 Richard Henderson <rth@redhat.com>
16623
16624 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
16625 before rounding.
16626
16627 2004-07-27 Zack Weinberg <zack@codesourcery.com>
16628
16629 * libgcc2.c: Change all conditionals testing
16630 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
16631 * libgcc2.h: Likewise.
16632 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
16633 TYPE_PRECISION of float80_type to 80.
16634 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
16635 of fpreg_type and float80_type to 80.
16636 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
16637 * config/m68k/netbsd-elf.h:
16638 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
16639 to evaluate to 80 whenever they would formerly have evaluated to 96.
16640 * config/i386/sco5.h: Remove unnecessary redefinition of
16641 LONG_DOUBLE_TYPE_SIZE.
16642 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
16643 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
16644 XFmode, with a bitsize of 80. Update commentary.
16645 * config/ia64/ia64-modes.def: Likewise.
16646 * config/m68k/m68k-modes.def: Likewise.
16647
16648 2004-07-27 Steven Bosscher <stevenb@suse.de>
16649
16650 * cfgexpand.c (tree_expand_cfg): Fix comment.
16651
16652 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
16653 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
16654 Remove.
16655 (prepare_function_start): Don't set rtx_equal_function_value_matters.
16656 * integrate.c (copy_rtx_and_substitute): Don't test for it.
16657 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
16658 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
16659 here again. Update leading comment.
16660 * rtl.c (rtx_equal_function_value_matters): Remove.
16661 (rtx_equal_p): Don't test for it.
16662 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
16663 Likewise.
16664
16665 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
16666 * rtl.c (note_insn_name): Likewise.
16667 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
16668 * final.c (final_scan_insn): Likewise.
16669
16670 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
16671 * passes.c (rest_of_handle_eh): Do it here.
16672
16673 * stmt.c (struct nesting): Remove struct nesting block member.
16674 (struct stmt_status): Remove x_block_start_count field.
16675 (current_block_start_count): Remove.
16676
16677 2004-07-27 Brian Booth <bbooth@redhat.com>
16678
16679 * tree-optimize.c (register_one_dump_file): Update condition that uses
16680 static_pass_number.
16681 (dup_pass_1): Replace with...
16682 (next_pass_1): This.
16683 (NEXT_PASS): Call next_pass_1.
16684 (DUP_PASS): Remove.
16685 (init_tree_optimization_passes): Remove uses of DUP_PASS.
16686 (execute_one_pass): Update condition that uses
16687 static_pass_number.
16688 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
16689 integer.
16690
16691 2004-07-27 Nick Clifton <nickc@redhat.com>
16692
16693 * config/m32r/m32r.c: Include integrate.h in order to get the
16694 prototype for get_hard_reg_initial_val().
16695
16696 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
16697 and tidy up indentation.
16698 (final_presence_set): Use absence_set instead, so that if there is
16699 nothing in the "o" pipe the "s" pipe can be scheduled.
16700
16701 2004-07-27 Diego Novillo <dnovillo@redhat.com>
16702
16703 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
16704 don't have PT_VARS nor PT_MALLOC set.
16705 Clear name tag from pointers that have not been dereferenced.
16706 (set_pt_anything, set_pt_malloc): Forward declare.
16707 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
16708 not type compatibility when determining if a pointer can be
16709 copy propagated.
16710
16711 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
16712
16713 * expr.h (canonicalize_condition, get_condition): Add an int argument.
16714 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
16715 it to check whether the condition is still valid at the jump insn.
16716 * ifcvt.c (noce_get_condition): Likewise.
16717 (noce_get_alt_condition): Update call to canonicalize_condition.
16718 * loop-iv.c (simplify_using_initial_values): Update call to
16719 get_condition. Remove FIXME.
16720 (check_simple_exit): Update call to get_condition.
16721 * loop-unswitch.c (may_unswitch_on): Likewise.
16722 * loop.c (check_dbra_loop): Likewise.
16723 (canonicalize_condition, get_condition): Add an argument to say whether
16724 the condition must still be valid at INSN.
16725 (get_condition_for_loop): Update call to get_condition. Require that
16726 the condition be valid at INSN.
16727 * predict.c (estimate_probability): Update call to get_condition.
16728 Remove unused earliest parameter.
16729 (expected_value_to_br_prob): Update call to canonicalize_condition.
16730
16731 2004-07-26 Eric Christopher <echristo@redhat.com>
16732
16733 * tree-dfa.c (add_referenced_var): Register initializers of global
16734 variables.
16735
16736 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
16737
16738 * config/i386/i386.c (function_arg): Always treat 8-
16739 and 16-byte wide vectors the same, even if MMX/SSE
16740 are disabled.
16741 (contains_128bit_aligned_vector_p): Add comment.
16742
16743 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
16744
16745 * ra.h (enum node_type): Rename to:
16746 (enum ra_node_type).
16747 * ra-colorize.c: Likewise.
16748
16749 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
16750
16751 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
16752 after simplifying the jump.
16753
16754 2004-06-26 Richard Henderson <rth@redhat.com>
16755
16756 * calls.c (combine_pending_stack_adjustment_and_call): Make
16757 preferred_unit_stack_boundary argument unsigned. Make
16758 unadjusted_alignment unsigned.
16759 (expand_call): Make preferred_stack_boundary and
16760 preferred_unit_stack_boundary variables unsigned.
16761 * function.c (assign_stack_local_1): Make alignment unsigned.
16762 * function.h (struct function): Make stack_alignment_needed,
16763 preferred_stack_boundary unsigned.
16764 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
16765 (ix86_compute_frame_layout): Make stack_alignment_needed,
16766 preferred_alignment variables unsigned.
16767 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
16768
16769 2004-07-26 Tom Tromey <tromey@redhat.com>
16770
16771 * tree.h: Fix typo in comment.
16772
16773 2004-07-26 Daniel Jacobowitz <dan@debian.org>
16774
16775 PR bootstrap/12804
16776 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
16777 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
16778 (ggc_free): Remove incorrect freeing.
16779 (sweep_pages): Advance PP for large pages. Fix indentation.
16780
16781 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
16782
16783 PR rtl-optimization/16643
16784 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
16785 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
16786 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
16787 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
16788 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
16789 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16790 * rtl.h (tracer): Add a flags parameter.
16791 * tracer.c (tracer): Pass it to cfg_layout_initialise.
16792 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
16793 (rest_of_handle_reorder_blocks): Update calls to tracer and
16794 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
16795 (rest_of_handle_tracer): Pass 0 to tracer.
16796 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
16797
16798 2004-07-25 David Edelsohn <edelsohn@gnu.org>
16799
16800 PR target/16239
16801 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
16802 f->f.
16803
16804 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
16805
16806 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
16807 (BINFO_BASE_ACCESS): Adjust.
16808 (BINFO_BASE_ACCESS_APPEND): New.
16809 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
16810 * dbxout.c (dbxout_type): Adjust binfo access accessing.
16811 * dwarf2out.c (gen_member_die): Likewise.
16812 * tree-dump.c (deque_and_dump): Likewise.
16813
16814 2004-07-26 Falk Hueffner <falk@debian.org>
16815
16816 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
16817 costs.
16818
16819 2004-07-25 Roger Sayle <roger@eyesopen.com>
16820
16821 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
16822 value off of the stack if TARGET_USE_FFREEP.
16823
16824 2004-07-26 Bernardo Innocenti <bernie@develer.com>
16825
16826 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
16827 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
16828 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
16829 check on invocation of XRESIZEVEC ().
16830
16831 2004-07-26 Bernardo Innocenti <bernie@develer.com>
16832
16833 * c-common.c (disable_builtin_function): Rename variable n to
16834 new_disabled_builtin.
16835 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
16836 Rename local variable old to old_decl.
16837 * gensupport.c (shift_output_template): Rename parameter old to src.
16838 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
16839 old_rtx and newx to new_rtx.
16840
16841 2004-07-26 Bernardo Innocenti <bernie@develer.com>
16842
16843 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
16844 of c-pragma.h.
16845 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
16846 enum cpp_ttype.
16847 * c-lex.c: Likewise.
16848
16849 2004-07-25 Roger Sayle <roger@eyesopen.com>
16850
16851 * fold-const.c (constant_boolean_node): Make extern.
16852 (make_range): Wrap long lines.
16853 (fold_cond_expr_with_comparison): Remove unnecessary call to
16854 pedantic_non_lvalue. Add missing calls to fold_convert.
16855 (fold_truthop): Add missing calls to fold_convert.
16856 (fold): Likewise.
16857 * tree.h (constant_boolean_node): Add prototype here.
16858 * builtins.c (expand_builtin_strncmp): Add missing calls to
16859 fold_convert.
16860 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
16861 Call fold_convert and constant_boolean_node to correct types.
16862 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
16863 missing call to fold_convert to correct types.
16864
16865 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
16866 Brian Ryner <bryner@brianryner.com>
16867
16868 PR c++/9283
16869 PR c++/15000
16870 * c-common.c (c_common_attribute_table): Allow
16871 handle_visibility_attribute to be called for types.
16872 (handle_visibility_attribute) When given a type, set the visibility
16873 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
16874 so that we can check later whether the attribute was present. Added
16875 warning if attribute applied to non class type.
16876 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
16877 decls and checking that they are consistent.
16878 * common.opt: Added -fvisibility.
16879 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
16880 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
16881 * flags.h, tree.h: Added assorted support defines for overall patch
16882 * opts.c: Added parsing support for -fvisibility.
16883 * tree.c (build_decl): Set visibility for all decls to be whatever
16884 is in force at that time.
16885 * varasm.c (default_binds_local_p_1): Reworked logic determining
16886 when to make a symbol locally bound.
16887 * doc/invoke.texi: Added documentation for -fvisibility and
16888 -fvisibility-inlines-hidden.
16889
16890 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16891
16892 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
16893 * c-common.c: Add missing casts from void * to other types.
16894 * c-decl.c: Likewise.
16895 * c-format.c: Likewise.
16896 * c-lex.c: Likewise.
16897 * c-pragma.c: Likewise.
16898 * c-typeck.c: Likewise.
16899 * defaults.h: Likewise.
16900 * genconstants.c: Likewise.
16901 * gengtype-lex.l: Likewise.
16902 * genmodes.c: Likewise.
16903 * read-rtl.c: Likewise.
16904 * rtl.c: Likewise.
16905
16906 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16907
16908 * bitmap.c: Use type-safe memory allocation macros from libiberty.
16909 * c-common.c: Likewise.
16910 * c-decl.c: Likewise.
16911 * c-lang.c: Likewise.
16912 * c-lex.c: Likewise.
16913 * c-opts.c: Likewise.
16914 * c-parse.in: Likewise.
16915 * c-typeck.c: Likewise.
16916 * genconditions.c: Likewise.
16917 * gengtype-lex.l: Likewise.
16918 * gengtype-yacc.y: Likewise.
16919 * gengtype.c: Likewise.
16920 * genmodes.c: Likewise.
16921 * gensupport.c: Likewise.
16922 * read-rtl.c: Likewise.
16923 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
16924 htab_find_slot().
16925
16926 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16927
16928 * c-decl.c (groktypename, groktypename_in_param_context): Rename
16929 variable typename to type_name.
16930 * c-lex.c (interpret_float): Likewise.
16931
16932 2004-07-25 Roger Sayle <roger@eyesopen.com>
16933
16934 * convert.c (convert_to_real, convert_to_integer,
16935 convert_to_complex): Replace calls to build with calls to buildN.
16936 * coverage.c (tree_coverage_counter_ref): Likewise.
16937 * dojump.c (do_jump): Likewise.
16938 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
16939 * emit-rtl.c (component_ref_for_mem_expr,
16940 set_mem_attributes_minus_bitpos): Likewise.
16941 * explow.c (update_nonlocal_goto_save_area): Likewise.
16942 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
16943 expand_mult_add): Likewise.
16944 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
16945 store_constructor, get_inner_reference, expand_expr_real_1,
16946 try_casesi, try_tablejump): Likewise.
16947 * function.c (expand_function_start): Likewise.
16948 * stmt.c (emit_case_bit_tests, expand_end_case_type,
16949 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
16950 * stor-layout.c (place_union_field, layout_type): Likewise.
16951 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
16952 * varasm.c (copy_constant): Likewise.
16953
16954 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16955
16956 * c-common.c: Rename all identifiers named `new'.
16957 * c-decl.c: Likewise.
16958 * gensupport.c: Likewise.
16959 * simplify-rtx.c: Likewise.
16960 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
16961 with XNEW().
16962 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
16963 with XNEWVEC().
16964
16965 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
16966
16967 PR c/15360
16968 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
16969 declarations until after calling pushdecl.
16970 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
16971 "extern" and not on whether the declaration is initialized.
16972
16973 2004-07-25 Daniel Jacobowitz <dan@debian.org>
16974
16975 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
16976 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
16977 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
16978 "cpplib.h", "c-pragma.h", "c-common.h".
16979 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
16980 (solaris_register_pragmas): New functions.
16981 * config/sol2-protos.h: New file.
16982 * config/sol2.c: New file.
16983 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
16984 (REGISTER_TARGET_PRAGMAS): New macros.
16985 (solaris_pending_aligns, solaris_pending_inits)
16986 (solaris_pending_finis): New variables.
16987 * config/t-sol2 (sol2-c.o): Update dependencies.
16988 (sol2.o): New rule.
16989 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
16990 SUBTARGET_INSERT_ATTRIBUTES.
16991 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
16992 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
16993 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
16994 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
16995 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
16996 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
16997 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
16998 * config/sparc/sparc.c (sparc_attribute_table): New.
16999 (TARGET_INSERT_ATTRIBUTES): Define in terms of
17000 SUBTARGET_INSERT_ATTRIBUTES.
17001 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
17002 is defined.
17003 * doc/extend.texi (Solaris Pragmas): New section.
17004
17005 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17006
17007 * c-common.c: Rename all identifiers named `class' to `cl'.
17008 * c-common.h: Likewise.
17009 * c-parse.in: Likewise.
17010 * c-typeck.c: Likewise.
17011 * genmodes.c: Likewise.
17012 * real.c: Likewise.
17013 * real.h: Likewise.
17014 * recog.c: Likewise.
17015 * recog.h: Likewise.
17016 * regrename.c: Likewise.
17017 * tree.h: Likewise.
17018 * c-common.c (builtin_function_2): Change type of 5th parameter from
17019 int to enum built_in_function. Change type of 8th parameter from int
17020 to bool.
17021 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
17022 with GGC_CNEW().
17023 * c-typeck.c (convert_arguments): Change type of formal_prec from
17024 int to unsigned int.
17025 * genmodes.c (blank_mode): Make a few negative constants unsigned.
17026 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
17027 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
17028 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
17029 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
17030 iterator to for_all_modes () instead of an enum because enums can't
17031 be incremented in C++.
17032
17033
17034 2004-07-25 Daniel Jacobowitz <dan@debian.org>
17035
17036 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
17037 hard registers.
17038
17039 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17040
17041 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
17042 Handle ARRAY_RANGE_REF like ARRAY_REF.
17043
17044 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
17045
17046 * c-typeck.c (digest_init): Don't allow arrays of signed or
17047 unsigned variants of wchar_t to be initialized by wide string
17048 constants. Do allow arrays of enumerated types compatible with
17049 wchar_t to be initialized by wide string constants. Refine tests
17050 distinguishing wide and narrow strings and arrays. Give specific
17051 error for arrays of other integer types initialized by string
17052 constants.
17053 (output_init_element, process_init_element): Check for
17054 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
17055 initializing with string constants.
17056
17057 2004-07-25 Richard Henderson <rth@redhat.com>
17058
17059 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
17060 on the RESULT_DECL.
17061 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
17062 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
17063 DECL_IGNORED_P to new decl.
17064
17065 2004-07-24 Zack Weinberg <zack@codesourcery.com>
17066
17067 * config/ia64/ia64.c (general_xfmode_operand)
17068 (destination_xfmode_operand): Delete.
17069 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
17070 * config/ia64/ia64.md (*movxf_internal): Use general_operand
17071 and destination_operand.
17072
17073 2004-07-24 Alexander Kabaev <kan@freebsd.org>
17074
17075 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
17076 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
17077
17078 2004-07-24 Alexander Kabaev <kan@freebsd.org>
17079 Zack Weinberg <zack@codesourcery.com
17080
17081 PR 16684
17082 * c-decl.c (diagnose_mismatched_decls): Don't issue a
17083 redundant-declaration warning the first time a builtin is
17084 declared explicitly.
17085
17086 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17087
17088 * tree.h (staticp): Change return type to bool.
17089
17090 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17091
17092 * c-common.c (c_staticp): Last episode of the staticp saga.
17093
17094 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17095
17096 * c-common.h (c_staticp): Change return type from int to bool.
17097 * tree.c (staticp): Likewise.
17098 * langhooks.h (staticp): Likewise.
17099
17100 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17101
17102 * langhooks-def.h (lhd_staticp): Change return type from int to
17103 bool in prototype to match definition.
17104
17105 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17106
17107 * system.h (bool, true, false): Don't redefine as preprocessor macros
17108 in C++.
17109
17110 2004-07-24 Roger Sayle <roger@eyesopen.com>
17111
17112 * expmed.c (init_expmed): A signed modulus by a power of two is
17113 considered cheap if its less than or equal to four instructions.
17114
17115 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17116
17117 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
17118 GGC_CNEWVAR): New macros.
17119
17120 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17121
17122 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
17123 lists.
17124 * c-decl.c: Likewise.
17125 * c-format.c: Likewise.
17126 * c-lex.c: Likewise.
17127 * c-opts.c: Likewise.
17128 * c-pragma.c: Likewise.
17129 * c-typeck.c: Likewise.
17130 * gencheck.c: Likewise.
17131 * genconditions.c: Likewise.
17132 * genconfig.c: Likewise.
17133 * genflags.c: Likewise.
17134 * gengtype.c: Likewise.
17135 * gensupport.c: Likewise.
17136 * ggc-none.c: Likewise.
17137 * langhooks.c: Likewise.
17138 * statistics.h: Likewise.
17139 * stub-objc.c: Likewise.
17140 * java/decl.c: Likewise.
17141
17142 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
17143
17144 * config/m68k/m68k.c (output_scc_di): Fix coding style.
17145 (symbolic_operand): Fix prototype.
17146 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
17147 * config/m68k/m68k.md: Add constants for registers a0 and sp and
17148 use them, change from the "{...}" syntax to the simpler {...}
17149 syntax.
17150 (*cfv4_extendqisi2): Fix destination predicate.
17151 * config/m68k/m68k-protos.h: Remove various declarations also
17152 generated via PREDICATE_CODES.
17153
17154 2004-07-23 Mike Stump <mrs@apple.com>
17155
17156 * c-typeck.c (convert_for_assignment): Tightened up pointer
17157 converstions that differ in signedness.
17158
17159 2004-07-23 Zack Weinberg <zack@codesourcery.com>
17160
17161 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
17162
17163 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17164
17165 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
17166 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
17167
17168 * gimplify.c (gimplify_compound_lval): Check for no handled
17169 operations, rather than checking for explicit list of nodes.
17170 (is_gimple_addr_expr_arg_or_indirect): New function.
17171 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
17172 redundant setting of TREE_INVARIANT.
17173 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
17174 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
17175
17176 2004-07-23 Diego Novillo <dnovillo@redhat.com>
17177
17178 PR tree-optimization/16688
17179 PR tree-optimization/16689
17180 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
17181 unnecessary initialization of 'tag'.
17182 (get_tmt_for): Check that the new type tag has the same alias
17183 set as the pointed-to type.
17184 (group_aliases): Only regular variables need to be removed
17185 from the alias set of a name tag.
17186 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
17187 propagation if the two types are not compatible.
17188 (merge_alias_info): Rename from replace_ssa_names_ann.
17189 Add more checking.
17190 (replace_exp_1): If both arguments are SSA_NAMEs, check that
17191 the propagation can be done.
17192 Only call merge_alias_info on pointers.
17193 (propagate_value): Likewise.
17194 * tree-ssa-copyrename.c: Include langhooks.h.
17195 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
17196 to do the merging.
17197 Do not coalesce variables with incompatible types.
17198 (rename_ssa_copies): Call replace_ssa_name_symbol.
17199 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
17200 the same type as the underlying _DECL.
17201 * tree-ssanames.c (replace_ssa_name_symbol): New function.
17202 * tree.h (replace_ssa_name_symbol): Declare.
17203
17204 2004-07-23 Richard Henderson <rth@redhat.com>
17205
17206 PR c++/16277
17207 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
17208 unshare it properly.
17209 (gimplify_modify_expr_rhs): Push assignment from a conditional into
17210 the conditional for all non-register types.
17211
17212 2004-07-23 Richard Henderson <rth@redhat.com>
17213
17214 * expr.c (expand_expr_real_1): Don't handle non-local variables.
17215 * expr.h (fix_lexical_addr): Remove.
17216 * function.c (NEED_SEPARATE_AP): Remove.
17217 (fix_lexical_addr): Remove.
17218 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
17219 not null decl_function_context.
17220 (create_alias_vars): Likewise.
17221 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
17222 (simple_goto_p): Likewise.
17223 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
17224 * tree-ssa-ccp.c (get_default_value): Likewise.
17225 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
17226 * tree.c (needs_to_live_in_memory): Likewise.
17227 * tree-flow-inline.h (may_be_aliased): Move...
17228 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
17229 when TREE_STATIC variables may be addressable.
17230
17231 2004-07-24 Jakub Jelinek <jakub@redhat.com>
17232
17233 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
17234
17235 2004-07-23 Zack Weinberg <zack@codesourcery.com>
17236
17237 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
17238 bitmap contents if GENERATOR_FILE is defined.
17239 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
17240 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
17241
17242 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
17243
17244 * c-decl.c (start_function): Form composite type of function types
17245 rather than copying type from previous prototype declaration.
17246
17247 2004-07-23 Janis Johnson <janis187@us.ibm.com>
17248
17249 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
17250 the const qualifier for the second argument in the C++ functions.
17251
17252 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
17253 specific pointer types.
17254
17255 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
17256 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
17257 for vector bool and/or vector pixel, add C++ and C missing support.
17258 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
17259 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
17260 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
17261 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
17262 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
17263 missing C++ and C support for vector bool and/or vector pixel.
17264 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
17265 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
17266 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
17267 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
17268 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
17269 C++ and C types used for vector bool and/or vector pixel.
17270 (vec_st, vec_stl): Add C++ support for vector pixel.
17271 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
17272 (vec_all_ne): Add C++ support for vector pixel.
17273
17274 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
17275 (vec_vmulesb): Add missing C++ function.
17276 (vec_perm): Fix type of third argument in C++ function.
17277 (vec_vsum4shs): Fix C++ function name.
17278 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
17279 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
17280 argument passed to the error handler in C macro.
17281 (vec_nmsub): Remove extra parens around argument names in C macro.
17282 (vec_packpx): Add missing parens in C macro.
17283
17284 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
17285
17286 * machmode.def: Remove vector modes.
17287 * config/alpha/alpha-modes.def: Add supported vector modes.
17288 * config/arm/arm-modes.def: Likewise.
17289 * config/frv/frv-modes.def: Likewise.
17290 * config/i386/i386-modes.def: Likewise.
17291 * config/rs6000/rs6000-modes.def: Likewise.
17292 * config/sh/sh-modes.def: Likewise.
17293
17294 2004-07-23 Matthias Klose <doko@debian.org>
17295
17296 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
17297 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
17298 * config.h: Regenerate.
17299 * configure: Likewise.
17300
17301 2004-07-22 Mark Mitchell <mark@codesourcery.com>
17302
17303 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
17304 generated SYMBOL_REFs for labels.
17305 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
17306 Change prototype.
17307 (machopic_stub_name): Remove.
17308 (machopic_indirection_name): New function.
17309 (machopic_mcount_stub_name): Likewise.
17310 (machopic_classify_name): Remove.
17311 (machopic_function_base_sym): New function.
17312 (machpoic_classify_symbol): Likewise.
17313 (machopic_classify_ident): Remove.
17314 (machopic_define_ident): Likewise.
17315 (machopic_define_name): Likewise.
17316 (machopic_name_defined_p): Likewise.
17317 (machopic_ident_defined_p): Likewise.
17318 (darwin_strip_name_encoding): Likewise.
17319 (machopic_define_symbol): New function.
17320 * config/darwin.c (hashtab.h): Include.
17321 (machopic_defined_list): Remove.
17322 (machopic_classify_ident): Likewise.
17323 (machopic_classify_name): Likewise.
17324 (machopic_ident_defined_p): Likewise.
17325 (machopic_define_ident): Likewise.
17326 (machopic_define_name): Likewise.
17327 (machopic_symbol_defined_p): New function.
17328 (machopic_classify_symbol): Likewise.
17329 (machopic_data_defined_p): Use machopic_classify_symbol.
17330 (machopic_define_symbol): New function.
17331 (machopic_function_base_sym): New function.
17332 (machopic_non_lazy_pointers): Remove.
17333 (machopic_non_lazy_ptr_name): Likewise.
17334 (machopic_stubs): Likewise.
17335 (machopic_stub_name): Likewise.
17336 (NON_LAZY_POINTER_SUFFIX): New macro.
17337 (STUB_SUFFIX): Likewise.
17338 (machopic_indirection): New structure.
17339 (machopic_indirections): New variable.
17340 (machopic_indirection_hash): New function.
17341 (machopic_indirection_eq): Likewise.
17342 (machopic_indirection_name): Likewise.
17343 (machopic_mcount_stub_name): New function.
17344 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
17345 hash table.
17346 (machopic_indirect_data_reference): Rework to use new functions.
17347 (machopic_indirect_call_target): Likewise.
17348 (machopic_legitimize_pic_address): Likewise.
17349 (machopic_output_indirection): New function.
17350 (machopic_finish): Use it.
17351 (machopic_operand_p): Rework to use new functions.
17352 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
17353 (darwin_strip_name_encoding): Remove.
17354 (update_non_lazy_ptrs): Remove.
17355 (update_stubs): Likewise.
17356 (darwin_non_lazy_pcrel): Use new functions.
17357 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
17358 (ASM_OUTPUT_LABELREF): Likewise.
17359 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
17360 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
17361 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
17362 (TARGET_STRIP_NAME_ENCODING): Do not use
17363 darwin_strip_name_encoding.
17364 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
17365 darwin_strip_name_encoding.
17366 * config/i386/darwin.h (FUNCTION_PROFILER): Use
17367 machopic_mcount_stub_name.
17368 * config/i386/i386.c (x86_output_mi_thunk): Use
17369 machopic_indirection_name, not machopic_stub_name.
17370 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
17371 machopic_function_base_sym.
17372 (print_operand): Use machopic_classify_symbol.
17373 (rs6000_emit_prologue): Use machopic_function_base_sym.
17374 (output_profile_hook): Do not use machopic_stub_name.
17375 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
17376
17377 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17378
17379 PR c/7284
17380 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
17381 as multiplication.
17382
17383 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17384
17385 * doc/implement-c.texi: New file.
17386 * doc/extend.texi (C Implementation): Move to there.
17387 * doc/gcc.texi: Include implement-c.texi.
17388 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
17389
17390 2004-07-22 Jason Merrill <jason@redhat.com>
17391
17392 * integrate.c (copy_decl_for_inlining): Remove invisible reference
17393 handling.
17394 * tree-inline.c (setup_one_parameter): Likewise.
17395
17396 2004-07-22 Brian Booth <bbooth@redhat.com>
17397
17398 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
17399 (substitute_and_fold): Propigate into VUSE operands when possible.
17400 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
17401 (cp_lattice_meet): Handle merging of latticevalues when
17402 UNKNOWN_VAL is present.
17403 (visit_stmt): Visit assignments with V_MUST_DEFs.
17404 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
17405 (ccp_fold): Deal with RHS' that are constant and virtual.
17406 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
17407 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
17408 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
17409 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
17410 computing immediate uses.
17411 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
17412 transition.
17413 (replace_vuse_in): New function.
17414 (likely_value): Add check of vuse operands.
17415 (get_default_value): Set the default value of virtually defined
17416 variables to UKNOWN_VAL instead of VARYING.
17417
17418 2004-07-22 Richard Henderson <rth@redhat.com>
17419
17420 * expr.c (emit_push_insn): Don't use set_mem_attributes.
17421
17422 2004-07-22 Richard Henderson <rth@redhat.com>
17423
17424 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
17425 variables due to conditional compilation.
17426
17427 2004-07-22 Diego Novillo <dnovillo@redhat.com>
17428
17429 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
17430 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
17431 Release SSA names that have been re-renamed.
17432 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
17433 variable.
17434 * tree-ssa-alias.c (init_alias_info): If aliases have been
17435 computed before, clear existing alias information.
17436 (create_name_tags): Do no fixup PT_ANYTHING pointers.
17437 If the new name tag for a pointer is different than the one it
17438 had before, mark the old tag for renaming.
17439 (replace_may_alias): New function.
17440 (group_aliases): Call it.
17441 (setup_pointers_and_addressables): Always call get_tmt_for.
17442 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
17443 once.
17444 (set_pt_anything): New local function.
17445 (set_pt_malloc): New local function.
17446 (merge_pointed_to_info): Don't merge pointed-to variables from
17447 the original pointer if the destination is pointing to an
17448 unknown location.
17449 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
17450 (add_pointed_to_var): Do not add a variable to the points-to
17451 set if the pointer is already pointing to anywhere.
17452 (collect_points_to_info_r): If the defining statement is a PHI
17453 node, only merge pointed-to information if the argument has
17454 already been visited.
17455 (get_tmt_for): Only create a new tag if the pointer didn't
17456 have one already.
17457 (dump_alias_info): Emit more information.
17458 (dump_points_to_info_for): Likewise.
17459 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
17460 try to get the annotation of an SSA_NAME.
17461 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
17462 alias sets when checking is enabled.
17463 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
17464 (eliminate): Mark basic blocks that will need
17465 EH information cleaned up.
17466 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
17467 predecessor.
17468 Initialize need_eh_cleanup.
17469 (fini_pre): Call tree_purge_all_dead_eh_edges and
17470 cleanup_tree_cfg if needed.
17471 Free need_eh_cleanup.
17472 * tree-ssa.c (verify_ssa_name): New function.
17473 (verify_def): Call it.
17474 Re-arrange to avoid printing too many error messages.
17475 (verify_use): Likewise.
17476 (verify_phi_args): Likewise.
17477 (verify_flow_insensitive_alias_info): New function.
17478 (verify_flow_sensitive_alias_info): New function.
17479 (verify_alias_info): New function.
17480 (verify_ssa): Call verify_alias_info.
17481 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
17482 program.
17483 Re-arrange to avoid printing too many error messages.
17484 * tree-ssanames.c (make_ssa_name): Clear
17485 SSA_NAME_IN_FREE_LIST.
17486 (release_ssa_name): Never release a default definition.
17487 (release_defs): New function.
17488 * tree.h: Declare it.
17489 * tree-ssa-dce.c (remove_dead_stmt): Call it.
17490
17491 2004-07-22 Diego Novillo <dnovillo@redhat.com>
17492
17493 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
17494 If true, do a depth-first search. Do a breadht-first search,
17495 otherwise.
17496 (walk_use_def_chains): Add new argument IS_DFS.
17497 Update all users.
17498 * tree-flow.h (walk_use_def_chains): Update prototype.
17499
17500 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
17501
17502 * config/cris/cris.md: Tweak formatting.
17503 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
17504 (mover2side, moverside, movemside, movei, op3, andu): Replace
17505 live define_peephole:s with define_peephole2 near-equivalents.
17506 Delete the rest.
17507 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
17508 word-size modes.
17509 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
17510 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
17511 "*mov_sidesi_mem" respectively.
17512
17513 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
17514
17515 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
17516 (gimplify_build1): Move from tree-complex.c do_unop.
17517 (gimplify_build2): Move from tree-complex.c do_binop.
17518 (gimplify_build3): New.
17519 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
17520 Adjust throughout to call the functions above.
17521 * tree-flow.h: Declare the functions above.
17522 * tree-nested.c (gimplify_val): Rename to...
17523 (tsi_gimplify_val): ... this.
17524
17525 * Makefile.in (tree_complex.o): Update dependencies.
17526 (stor-layout.o): Depend on regs.h.
17527 * c-common.c (handle_vector_size_attribute): Update for
17528 vector types without corresponding vector modes.
17529 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
17530 a corresponding vector mode is not available.
17531 * print-tree.c (print_node): Print nunits for vector types
17532 * regclass.c (have_regs_of_mode): New.
17533 (init_reg_sets_1): Initialize it and use it instead
17534 of allocatable_regs_of_mode.
17535 * regs.h (have_regs_of_mode): Declare it.
17536 * stor-layout.c (layout_type): Pick a mode for vector types.
17537 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
17538 build_replicated_const, do_unop, do_binop, do_plus_minus,
17539 do_negate, expand_vector_piecewise, expand_vector_parallel,
17540 expand_vector_addition, expand_vector_operations_1,
17541 expand_vector_operations, tree_lower_operations,
17542 pass_lower_vector_ssa, pass_pre_expand): New.
17543 (expand_complex_operations, pass_lower_complex): Remove.
17544 * tree-optimize.c (init_tree_optimization_passes): Adjust
17545 pass ordering for changes in tree-complex.c.
17546 * tree-pass.h: Declare new passes.
17547 * tree.c (finish_vector_type): Remove.
17548 (make_vector_type): New.
17549 (build_vector_type_for_mode, build_vector_type): Rewritten.
17550 * tree.def (VECTOR_TYPE): Document where the number of
17551 subparts is stored.
17552 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
17553 (make_vector): Remove declaration.
17554
17555 2004-07-21 Richard Henderson <rth@redhat.com>
17556
17557 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
17558 TREE_THIS_VOLATILE, may_aliases, or optimization level.
17559 (remove_useless_vars): Dump debugging info.
17560 (expand_used_vars): Move ...
17561 * cfgexpand.c (expand_used_vars): ... here. Make static.
17562 * tree-flow-inline.h (set_is_used): New.
17563 (set_default_def): Use get_var_ann.
17564 * tree-flow.h: Update decls.
17565 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
17566 (create_ssa_var_map): Use it.
17567 * tree-ssa.c (set_is_used): Remove.
17568
17569 2004-07-22 Ben Elliston <bje@au.ibm.com>
17570
17571 * gdbinit.in: Set a breakpoint on internal_error.
17572
17573 2004-07-21 Richard Henderson <rth@redhat.com>
17574
17575 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
17576 to create a new basic block.
17577
17578 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17579
17580 PR c/15052
17581 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
17582 return type on function definitions. Move other warnings for
17583 qualified return type to -Wreturn-type. Do not condition any such
17584 warnings on -pedantic. Update comments.
17585 (start_function): Only copy function type from previous prototype
17586 declaration if return types are compatible.
17587 * c-typeck.c (function_types_compatible_p): Don't condition
17588 warning for incompatibility of volatile qualifiers on the return
17589 type on -pedantic. Update comment.
17590 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
17591
17592 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17593
17594 * c-typeck.c (set_init_index): Require designator to be of integer
17595 type.
17596
17597 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17598
17599 PR c/11250
17600 * c-parse.in (init): Change to exprtype.
17601 (primary): Set original_code for STRING to STRING_CST.
17602 Call maybe_warn_string_init for compound literals.
17603 (initdcl, notype_initdcl): Call maybe_warn_string_init.
17604 (initval): Update.
17605 * c-tree.h (maybe_warn_string_init): New.
17606 (pop_init_level, process_init_element): Use struct c_expr.
17607 (struct c_expr): Update comment.
17608 * c-typeck.c (maybe_warn_string_init): New function.
17609 (digest_init): Call it. Additional parameter strict_string. All
17610 callers changed.
17611 (output_init_element): Likewise.
17612 (struct constructor_stack): Use struct c_expr for
17613 replacement_value.
17614 (really_start_incremental_init, push_init_level): Update.
17615 (pop_init_level): Update. Return struct c_expr.
17616 (process_init_level): Update. Take struct c_expr argument.
17617
17618 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
17619
17620 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
17621 commit.
17622
17623 2004-07-21 Eric Christopher <echristo@redhat.com>
17624
17625 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
17626 removal.
17627 * c-decl.c (pop_scope): Ditto.
17628 * calls.c (expand_call): Remove call to current_nesting_level,
17629 update comment accordingly. Remove calls to expand_start_target_temps
17630 and expand_end_target_temps.
17631 * cfgexpand.c (construct_init_block): Remove call to
17632 expand_start_bindings_and_block.
17633 (construct_exit_block): Remove call to expand_end_bindings.
17634 * expr.c (safe_from_p): Remove BIND_EXPR handling.
17635 (expand_expr_real_1): Ditto. Fix formatting.
17636 (expand_vars): Delete.
17637 * stmt.c (POPSTACK): Remove block_stack.
17638 (stmt_status): Remove x_block_stack.
17639 (block_stack): Delete.
17640 (expand_start_bindings_and_block): Ditto.
17641 (expand_start_target_temps): Ditto.
17642 (expand_end_target_temps): Ditto.
17643 (current_nesting_level): Ditto.
17644 (warn_about_unused_variables): Ditto.
17645 (expand_end_bindings): Ditto.
17646 * tree.h: Remove declarations for above.
17647
17648 2004-07-21 Steven Bosscher <stevenb@suse.de>
17649
17650 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
17651 * rtl.c (note_insn_name): Likewise.
17652 * print-rtl.c (print_rtx): Don't print it.
17653 * cfgrtl.h (can_delete_note_p): Don't handle it.
17654 (rtl_delete_block): Likewise.
17655 * passes.c (rest_of_handle_guess_branch_prob): Remove.
17656 (rest_of_compilation): Don't call it.
17657 * predict.c (process_note_predictions, process_note_prediction,
17658 note_prediction_to_br_prob): Remove.
17659 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
17660 * stmt.c (return_prediction): Remove.
17661 (expand_value_return): Don't call it. Don't add prediction
17662 notes for return statements.
17663
17664 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
17665
17666 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
17667 once.
17668
17669 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
17670
17671 * c-common.c (vector_types_convertible_p): Use vector types'
17672 TYPE_SIZE and TREE_TYPE instead of their mode.
17673 * convert.c (convert_to_integer): Likewise.
17674 (convert_to_vector): Likewise.
17675 * fold-const.c (fold_convert): Likewise.
17676 * varasm.c (output_constant): Likewise.
17677 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
17678 Allow a VECTOR_TYPE initializer to be made of several vectors.
17679 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
17680 of cleared and need_to_clear, and use fold_convert.
17681 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
17682 integer vectors.
17683
17684 2004-07-20 Richard Henderson <rth@redhat.com>
17685
17686 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
17687 (expand_gimple_basic_block): out from here. Renamed from expand_block.
17688
17689 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
17690
17691 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
17692 enormous cost if not TARGET_HARD_MUL.
17693
17694 2004-07-20 Andrew Pinski <apinski@apple.com>
17695
17696 PR target/16557
17697 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
17698 (ASM_SPEC): here.
17699
17700 2004-07-21 Paul brook <paul@codesourcery.com>
17701
17702 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
17703
17704 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17705
17706 * fold-const.c (operand_equal_p): Temporarily support NULL args.
17707 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
17708 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
17709
17710 2004-07-20 Zack Weinberg <zack@codesourcery.com>
17711
17712 * rtl.h (plus_constant): Delete.
17713 (plus_constant_wide): Rename to plus_constant.
17714 (plus_constant_for_output_wide): Delete vestigial prototype.
17715 (GEN_INT): Remove unnecessary cast.
17716 * tree.h (build_int_2, size_int_type): Delete.
17717 (build_int_2_wide): Rename to build_int_2.
17718 (size_int_wide): Rename to size_int_kind.
17719 (size_int_type_wide): Rename to size_int_type.
17720 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
17721 Remove unnecessary cast.
17722 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
17723 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
17724 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
17725 (size_int_type_wide): Rename size_int_type.
17726 (int_const_binop): Use size_int_type.
17727 * c-lex.c (interpret_integer): Use build_int_2.
17728 * final.c (split_double): Remove unnecessary casts.
17729 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
17730
17731 2004-07-20 Richard Henderson <rth@redhat.com>
17732
17733 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
17734 (gimplify_compound_lval): Use is_gimple_tmp_reg.
17735 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
17736 (is_gimple_tmp_reg): New.
17737 * tree-gimple.h (is_gimple_tmp_reg): Declare.
17738
17739 2004-07-20 Richard Henderson <rth@redhat.com>
17740
17741 * tree-pretty-print.c (dump_generic_node): Dump
17742 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
17743
17744 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
17745
17746 * tree-mudflap.c (mf_set_options_fndecl): New tree.
17747 (mudflap_init): Set it.
17748 (mudflap_register_call): Remove __mf_init call.
17749 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
17750 to pass "-ignore-reads" option to libmudflap if needed.
17751
17752 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
17753
17754 PR c++/14607
17755 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
17756 (MAKE_DECL_ONE_ONLY): Undefine.
17757 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
17758 readonly_data, one_only_data_section, forget_section): New prototypes.
17759 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
17760 functions.
17761 (pa_select_section): Add one-only (COMDAT) support.
17762 * pa.h (struct machine_function): Define.
17763 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
17764 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
17765 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
17766 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
17767 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
17768 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
17769 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
17770 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
17771 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
17772 for EXTRA_SECTION_FUNCTIONS.
17773 * doc/install.texi: Update binutils requirements.
17774
17775 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
17776
17777 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
17778 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
17779 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
17780 size_t.
17781 (struct VEC): Use unsigned for num and alloc.
17782 * vec.c (struct vec_prefix): Likewise.
17783 (vec_o_reserve): Adjust.
17784
17785 * dbxout.c (dbxout_type): Fix printf format.
17786
17787 * tree.h (binfo_member): Remove.
17788 * tree.c (binfo_member): Remove.
17789
17790 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
17791
17792 * tree.h: Include vec.h
17793 (DEF_VEC_P(tree)): New type.
17794 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
17795 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
17796 (BINFO_LANG_SLOT): Remove.
17797 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
17798 (struct tree_binfo): Turn base_binfos into a trailing
17799 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
17800 (binfo_lang_slots): Remove.
17801 * tree.c (binfo_lang_slots): Remove.
17802 (make_tree_binfo_stat): Take a base binfo count, not a
17803 lang slot count. Adjust.
17804 * Makefile.in (TREE_H): Add vec.h
17805 * alias.c (record_component_aliases): Adjust BINFO access.
17806 * dbxout.c (dbxout_type): Likewise.
17807 * dwarf2out.c (gen_member_die): Likewise.
17808 * sdbout.c (sdbout_one_type): Likewise.
17809 * tree-dump.c (deque_and_dump): Likewise.
17810 * config/i386/i386.c (classify_argument,
17811 contains_128bit_aligned_vector_p): Likewise.
17812 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
17813 * doc/c-tree.texi (Classes): Update BINFO documentation.
17814
17815 2004-07-20 Steven Bosscher <stevenb@suse.de>
17816
17817 * c-common.h (check_case_value): Remove prototype.
17818 (c_add_case_label): Adjust prototype.
17819 * c-common.c (check_case_value): Make static.
17820 (check_case_bounds): New function.
17821 (c_add_case_label): Use it. Take new argument orig_type.
17822 * c-typeck.c (struct c_switch): New orig_type field.
17823 (c_start_case): Set it.
17824 (do_case): Pass it to c_add_case_label.
17825 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
17826 cases from here. Add the labels in reverse order.
17827 * stmt.c (struct case_node): Adjust comment. Remove balance field.
17828 (add_case_node): Return nothing, don't check for duplicate cases.
17829 Insert new case nodes in a list, not in an AVL tree.
17830 (expand_end_case_type): Don't turn a case tree into a case list.
17831 (case_tree2list): Remove.
17832 * tree.h (add_case_node): Adjust prototype.
17833
17834 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
17835
17836 * genattr.c (struct range, struct function_unit,
17837 write_units, extend_range, init_range): Remove them.
17838 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
17839 Output "#define INSN_SCHEDULING" here.
17840 * genattrtab.c (struct range, struct function_unit_op,
17841 struct function_unit, struct dimension, enum operator,
17842 operate_exp, expand_units, simplify_knowing,
17843 encode_units_mask, simplify_by_exploding,
17844 find_and_mark_used_attributes, unmark_used_attributes,
17845 add_values_to_cover, increment_current_value,
17846 test_for_current_value, simplify_with_current_value,
17847 simplify_with_current_value_aux, gen_unit,
17848 write_unit_name, write_function_unit_info,
17849 write_complex_function, write_toplevel_expr,
17850 find_single_value, extend_range): Remove.
17851 (write_attr_get): Do not handle common_av->value
17852 being an FFS.
17853 (struct attr_desc): Remove func_units_p and blockage_p.
17854 (write_attr_valueq): Do not handle them.
17855 (find_attr): Do not clear them.
17856 (make_internal_attr): Do not initialize them.
17857 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
17858 * sched-vis.c (init_target_units, insn_print_units,
17859 init_block_visualization, print_block_visualization,
17860 visualize_scheduled_insns, visualize_no_unit,
17861 visualize_stall_cycles, visualize_alloc,
17862 visualize_free, target_units, get_visual_tbl_length,
17863 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
17864 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
17865 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
17866 * haifa-sched.c (blockage_range, clear_units,
17867 schedule_unit, actual_hazard, potential_hazard,
17868 insn_unit, unit_last_insn, unit_tick,
17869 actual_hazard_this_instance, potential_hazard,
17870 schedule_unit, max_insn_queue_index_value): Remove.
17871 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
17872 max_insn_queue_index.
17873 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
17874 * doc/md.texi (Processor pipeline description): Remove
17875 references to old pipeline descriptions.
17876 (Automaton pipeline description): Merge with the above.
17877 (Old pipeline description, Comparison of the two descriptions):
17878 Remove.
17879
17880 * bt-load.c (migrate_btr_def): Remove references to
17881 use_pipeline_interface.
17882 * haifa-sched.c (insn_cost, schedule_insn,
17883 schedule_block, advance_one_cycle, sched_init,
17884 queue_to_ready, sched_finish): Likewise.
17885 * modulo-sched.c (sms_schedule, advance_one_cycle,
17886 ps_has_conflicts): Likewise.
17887 * sched-rgn.c (init_ready): Likewise.
17888 (debug_dependencies): Likewise, and remove an "if (1)".
17889 * target.h (use_dfa_pipeline_interface): Remove.
17890 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17891 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17892 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17893 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17894 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17895 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17896 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17897 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17898 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17899 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17900 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17901 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17902 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17903 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17904 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17905 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17906 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17907 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17908 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17909
17910 2004-07-19 Roger Sayle <roger@eyesopen.com>
17911
17912 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
17913
17914 2004-07-19 Jeff Law <law@redhat.com>
17915
17916 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
17917 (get_eq_expr_value): Use it. Simplify slightly.
17918
17919 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
17920
17921 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
17922 (umulsidi3_32bit_r4000): Likewise.
17923
17924 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
17925
17926 * vec.h: Propagate location information properly.
17927 (VEC_T_iterate): Add result pointer parameter.
17928 (VEC_T_space): New.
17929 (VEC_T_reserve): Use it.
17930
17931 2004-07-19 Daniel Jacobowitz <dan@debian.org>
17932
17933 * Makefile.in (c-format.o): Depend on c-format.h.
17934 * c-format.h: New file.
17935 (struct format_char_info): Add CHAIN member.
17936 * c-format.c: Move some types and constants to c-format.h.
17937 (format_type_error): Set to -1.
17938 (struct function_format_info): Use an int for format_type.
17939 (decode_format_type): Return an int. Return format_type_error
17940 on error.
17941 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
17942 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
17943 (scan_char_table, time_char_table, monetary_char_table): Initialize
17944 CHAIN to NULL.
17945 (n_format_types): New variable.
17946 (check_format_info_main): Handle CHAIN in format_char_info.
17947 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
17948 TARGET_N_FORMAT_TYPES.
17949 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
17950 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
17951 * config/sol2-c.c: New file.
17952 * config/t-sol2: New file.
17953 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
17954 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
17955 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
17956
17957 * doc/extend.texi (Target Format Checks): New section.
17958 (Function Attributes): Mention it.
17959 * doc/invoke.texi: Mention target format checks.
17960 * doc/sourcebuild.texi: Mention target format checks.
17961 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
17962 TARGET_FORMAT_TYPES.
17963
17964 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
17965
17966 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
17967 added.
17968 * config/s390/s390.c (regclass_map initializer): Register 35 added to
17969 ADDR_REGS.
17970 (load_multiple_operation, store_multiple_operation): Removed
17971 pointless sanity check.
17972 (s390_decompose_address): Added check for return_address_pointer_rtx.
17973 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
17974 (s390_return_address_offset): New function.
17975 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
17976 (FRAME_REGNO_P): Added check for register 35.
17977 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
17978 REG_ALLOC_ORDER): Appended entry for register 35.
17979 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
17980 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
17981 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
17982 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
17983 is eliminable using stack pointer or hard frame pointer.
17984 (REGISTER_NAMES): Added name for register 35.
17985 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
17986 pointless sanity check.
17987
17988 2004-07-19 Roger Sayle <roger@eyesopen.com>
17989
17990 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
17991 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
17992 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
17993 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
17994 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
17995 (fold_relational_const): Tidy up handling of floating point
17996 comparisons by calling real_compare. Remove tree_expr_nonzero_p
17997 transformation; fold_relational_const assumes constant operands.
17998
17999 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
18000
18001 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
18002 directory.
18003
18004 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
18005
18006 * c-tree.h (struct c_expr): Define.
18007 (C_SET_EXP_ORIGINAL_CODE): Remove.
18008 (parser_build_binary_op, build_compound_expr): Update prototypes.
18009 * c-parse.in (%union): Add exprtype.
18010 (FUNC_NAME): Mark as ttype.
18011 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
18012 exprtype.
18013 (expr): Update. Define directly in terms of expr_no_commas
18014 instead of using nonnull_exprlist.
18015 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
18016 offsetof_member_designator, typespec_nonreserved_nonattr, init,
18017 initval, designator, component_declarator,
18018 component_notype_declarator, enumerator, array_declarator,
18019 condition, exexpr, switch_statement, stmt_nocomp, stmt,
18020 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
18021 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
18022 where appropriate.
18023 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
18024 * c-common.c (c_common_truthvalue_conversion): Don't check
18025 C_EXP_ORIGINAL_CODE.
18026 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
18027 Don't use C_EXP_ORIGINAL_CODE.
18028 (default_conversion, default_function_array_conversion): Don't use
18029 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
18030 (internal_build_compound_expr): Merge into build_compound_expr.
18031 (build_compound_expr): Take two operands instead of a TREE_LIST.
18032 * objc/objc-act.c (get_super_receiver): Update calls to
18033 build_compound_expr.
18034
18035 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
18036
18037 * config/sh/sh.c (sh_use_dfa_interface): Remove.
18038 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
18039 hook_int_void_1.
18040 * config/sh/sh.md: Extract pipeline descriptions
18041 into separate files.
18042 * config/sh/sh1.md: New file, extracted from sh.md.
18043 * config/sh/sh4.md: New file, extracted from sh.md.
18044 * config/sh/shmedia.md: New file, extracted from sh.md
18045 and rewritten using new-style pipeline description.
18046
18047 2004-07-18 Zack Weinberg <zack@codesourcery.com>
18048
18049 * config/pa/pa.md: Delete the two remaining define_peephole
18050 patterns.
18051
18052 2004-07-18 Steven Bosscher <stevenb@suse.de>
18053 Joseph S. Myers <jsm@polyomino.org.uk>
18054
18055 * c-common.c (c_common_truthvalue_conversion): Don't warn if
18056 TREE_NO_WARNING is set.
18057
18058 2004-07-18 Roger Sayle <roger@eyesopen.com>
18059
18060 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
18061 simplify_builtin_strncmp): Delete.
18062 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
18063 Change argument to accept an arglist instead of an "exp". Assume
18064 that the return type is always integer_type_node. Copy missing
18065 transformations from their now obsolete simplify_builtin_*
18066 equivalents.
18067 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
18068 fold_builtin_strcmp and fold_builtin_strncmp.
18069 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
18070 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
18071 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
18072
18073 2004-07-18 Daniel Jacobowitz <dan@debian.org>
18074
18075 * Makefile.in (tree-alias-common.o): Update dependencies.
18076
18077 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
18078
18079 * cfgloop.c (flow_loop_nested_p): Fix comment.
18080
18081 2004-07-17 Jason Merrill <jason@redhat.com>
18082
18083 PR c++/16115
18084 * stor-layout.c (relayout_decl): New fn.
18085 * tree.h: Declare it.
18086 (DECL_BY_REFERENCE): New macro.
18087
18088 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
18089
18090 * libgcc2.c (__enable_execute_stack): New symbol.
18091 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
18092 and declare __enable_execute_stack.
18093 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
18094 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
18095 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18096 ENABLE_EXECUTE_STACK.
18097 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
18098 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18099 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18100 ENABLE_EXECUTE_STACK.
18101 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18102 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
18103 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18104 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18105 ENABLE_EXECUTE_STACK.
18106 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18107 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18108 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18109 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18110 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
18111 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18112 (sparc64_initialize_trampoline): Likewise.
18113 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
18114
18115 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
18116
18117 * langhooks.h (builtin_function): New langhook.
18118 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
18119 (LANG_HOOKS_INITIALIZER): Update.
18120 * tree.h (builtin_function): Remove.
18121 * doc/tm.texi: Update.
18122 * c-tree.h (builtin_function): Declare.
18123 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
18124 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
18125 config/ia64/ia64.c, config/iq2000/iq2000.c,
18126 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
18127 config/stormy16/stormy16.c: All callers of builtin_function
18128 changed.
18129
18130 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
18131
18132 PR target/16556
18133 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
18134 Remove white space after the backslash.
18135
18136 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
18137
18138 PR rtl-optimization/16294
18139 * resource.c (return_insn_p): New predicate.
18140 (mark_target_live_regs): Use it. Special-case return insns.
18141 (init_resource_info): Use it. Don't scan the epilogue past
18142 a return.
18143
18144 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18145
18146 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
18147 destroy dominance information.
18148 * passes.c (rest_of_handle_loop2): Free dominance information.
18149 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
18150 jump threading.
18151 (thread_jumps): Update dominance information and remove unreachable
18152 blocks.
18153 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
18154 information and remove the unreachable block.
18155
18156 2004-07-17 Graham Stott <graham.stott@btinternet.com>
18157
18158 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
18159
18160 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
18161
18162 * doc/sourcebuild.texi: Remove libf2c entry.
18163
18164 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
18165
18166 * config/i386/i386.md (movv16qi_internal): Fix typo.
18167
18168 2004-07-17 Steven Bosscher <stevenb@suse.de>
18169
18170 * final.c (final_scan_insn): Fix broken commit from previous
18171 patch.
18172
18173 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
18174
18175 * c-typeck.c (parser_build_binary_op): Condition warnings for
18176 X<=Y<=Z on -Wparentheses instead of -Wextra.
18177 * doc/invoke.texi: Update. Document that most of -Wparentheses is
18178 supported for C only.
18179
18180 2004-07-17 Steven Bosscher <stevenb@suse.de>
18181
18182 * cfgcleanup.c (try_simplify_condjump): Don't remove line
18183 notes to avoid unreachable code warnings.
18184 * toplev.c (backend_init): Don't emit line notes for
18185 unreachable code warnings.
18186
18187 * combine.c (distribute_notes): Don't distribute a
18188 REG_VTABLE_REF note.
18189 * final.c (final_scan_insn): Don't handle it.
18190 * rtl.c (reg_note_name): Remove it.
18191 * rtl.h (enum reg_node): Dito.
18192
18193 * emit-rtl.c (force_line_numbers, restore_line_number_status):
18194 Remove.
18195 * rtl.h (force_line_numbers, restore_line_number_status):
18196 Remove prototypes.
18197
18198 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
18199 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
18200 (using_eh_for_cleanups): Also moved here.
18201
18202 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
18203 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
18204 to expand_start_case and add_case_node.
18205 * stmt.c (struct nesting): Cleanup unused fields condition_code,
18206 last_unconditional_cleanup, nominal_type, printname, and
18207 line_number_status.
18208 (struct fixup_goto): Remove.
18209 (struct stmt_status): Remove x_goto_fixup_chain field.
18210 (goto_fixup_chain): Remove.
18211 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
18212 pushcase, pushcase_range): Remove.
18213 (expand_start_bindings_and_block): Don't set unused fields in
18214 the nesting stack.
18215 (expand_start_case, add_case_node): Cleanup unused formal arguments.
18216 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
18217 instead of emit_jump_if_reachable.
18218 (emit_case_nodes): Likewise.
18219 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
18220 static.
18221 (update_eh_label): Work around left-over exception handing regions.
18222 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
18223 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
18224 (pass_cleanup_cfg_post_optimizing): New pass.
18225 (init_tree_optimization_passes): Run the new pass after all
18226 optimizations.
18227 * tree.h (pushcase, pushcase_range): Remove prototypes.
18228 (expand_start_case, add_case_node): Update prototypes.
18229
18230 2004-07-16 Krister Walfridsson <cato@df.lth.se>
18231
18232 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
18233
18234 2004-07-16 Richard Henderson <rth@redhat.com>
18235
18236 * builtins.c (std_expand_builtin_va_arg): Remove.
18237 (expand_builtin_va_arg): Remove.
18238 * expr.h: Don't declare them.
18239 * gimplify.c (mark_decls_volatile_r): Remove.
18240 (copy_if_shared_r): Don't call it.
18241 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
18242 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
18243 * gimple-low.c (lower_stmt): Likewise.
18244 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
18245 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
18246 * tree-ssa-operands.c (get_expr_operands): Likewise.
18247 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
18248 EXPAND_BUILTIN_VA_ARG.
18249 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
18250 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
18251 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
18252 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
18253
18254 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
18255
18256 * tree-ssa-pre.c (insert_aux): Break out if we hit
18257 a critical edge.
18258
18259 2004-07-16 Richard Henderson <rth@redhat.com>
18260
18261 * basic-block.h (remove_fake_exit_edges): Declare.
18262 * cfganal.c (remove_fake_predecessors): Rename from
18263 remove_fake_successors; iterate over predecessors.
18264 (remove_fake_exit_edges): New.
18265 * cfgcleanup.c (try_optimize_cfg): Use it.
18266 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
18267 * predict.c (estimate_probability): Likewise.
18268 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
18269 * tree-cfg.c (make_edges): Likewise.
18270 * tree-ssa-pre.c (fini_pre): Likewise.
18271 * profile.c (instrument_edges): Don't remove_fake_edges.
18272 (branch_prob): Do it earlier here.
18273
18274 2004-07-16 Richard Henderson <rth@redhat.com>
18275
18276 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
18277 switchification wrt CONSTRUCTOR. Document the reason.
18278
18279 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
18280
18281 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
18282 that prevented descriptive __mf_check source location strings.
18283
18284 2004-07-16 Richard Henderson <rth@redhat.com>
18285
18286 * tree-def (WITH_SIZE_EXPR): New.
18287 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
18288 * expr.c (expand_expr_real_1): Likewise.
18289 * gimplify.c (maybe_with_size_expr): New.
18290 (gimplify_arg, gimplify_modify_expr): Use it.
18291 (gimplify_modify_expr_to_memcpy): Take size parameter.
18292 (gimplify_modify_expr_to_memset): Likewise.
18293 (gimplify_expr): Handle WITH_SIZE_EXPR.
18294 * tree-alias-common.c (find_func_aliases): Likewise.
18295 * tree-eh.c (tree_could_trap_p): Likewise.
18296 (tree_could_throw_p): Likewise.
18297 * tree-gimple.c (is_gimple_lvalue): Likewise.
18298 (get_call_expr_in): Likewise.
18299 * tree-inline.c (estimate_num_insns_1): Likewise.
18300 (expand_calls_inline): Likewise.
18301 * tree-nested.c (convert_call_expr): Likewise.
18302 * tree-pretty-print.c (dump_generic_node): Likewise.
18303 * tree-sra.c (sra_walk_expr): Likewise.
18304 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
18305 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
18306 * tree-ssa-operands.c (get_expr_operands): Likewise.
18307 * tree-tailcall.c (find_tail_calls): Likewise.
18308
18309 * calls.c (expand_call): Reset old_stack_allocated after
18310 calling emit_stack_restore.
18311
18312 2004-07-16 Richard Henderson <rth@redhat.com>
18313
18314 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
18315 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
18316 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
18317 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
18318 copy_res_decl_for_inlining.
18319
18320 * tree-inline.c (declare_return_variable): New modify_dest argument.
18321 Use it as the return value, when possible or manditory. Handle
18322 TREE_ADDRESSABLE types.
18323 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
18324 replacement of CALL_EXPR.
18325
18326 2004-07-16 Richard Henderson <rth@redhat.com>
18327
18328 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
18329 * gimple-low.c (expand_var_p): Don't check it.
18330 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
18331 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
18332 * tree-ssa-operands.c (add_stmt_operand): Likewise.
18333 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
18334 (find_referenced_vars): Don't call them.
18335 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
18336
18337 2004-07-16 Richard Henderson <rth@redhat.com>
18338
18339 * function.c (pass_by_reference): True for all variable sized types.
18340
18341 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
18342
18343 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
18344 * tree-pretty-print.c: Include tree-chrec.h.
18345 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
18346 and POLYNOMIAL_CHREC nodes.
18347
18348 2004-07-16 Steve Ellcey <sje@cup.hp.com>
18349
18350 * builtins.c (expand_builtin_stpcpy): Do not create temporary
18351 reg with VOIDmode.
18352
18353 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
18354
18355 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
18356
18357 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
18358
18359 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
18360 to BASE_REGNUM.
18361 * config/s390/s390.c: Likewise.
18362 * config/s390/s390.h: Likewise.
18363
18364 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18365
18366 * config/mips/mips.md (addsi3, adddi3): Remove special handling
18367 of $sp adds. Remove REGNO checks from mips16 patterns.
18368
18369 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18370
18371 * config/mips/mips.md: Delete outdated comment.
18372
18373 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18374
18375 * config/mips/mips.c (get_float_compare_codes): Delete.
18376 (mips_emit_compare): New function, mostly extracted from
18377 get_float_compare_codes and gen_conditional_branch.
18378 (gen_conditional_branch, gen_conditional_move): Use it.
18379
18380 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
18381
18382 * genautomata.c (add_vect): Speedup by using integers as
18383 bit-vectors for walking through the comb_vect and finding
18384 a match.
18385
18386 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18387
18388 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
18389 operand is an uns_arith_operand; use subtraction otherwise.
18390 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
18391 not just arith_operands.
18392
18393 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18394
18395 * config/mips/mips-protos.h (gen_int_relational): Delete.
18396 (mips_emit_scc): Declare.
18397 * config/mips/mips.c (internal_test): Delete.
18398 (sle_operand, sleu_operand): New functions.
18399 (map_test_to_internal_test, gen_int_relational): Delete.
18400 (mips_emit_binary, mips_relational_operand_ok_p)
18401 (mips_emit_int_relational, mips_zero_if_equal)
18402 (mips_emit_scc): New functions.
18403 (gen_conditional_branch): Rework to use mips_emit_int_relational.
18404 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
18405 sleu_operand.
18406 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
18407 (sltu, sleu): Use mips_emit_scc.
18408 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
18409 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
18410 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
18411
18412 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18413
18414 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
18415
18416 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18417
18418 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
18419 (*sne_[sd]i): Likewise sne_[sd]i_zero.
18420 (*sgt_[sd]i): ...and sgt_[sd]i.
18421 (*slt_[sd]i): ...and slt_[sd]i.
18422 (*sgtu_[sd]i): ...and sgtu_[sd]i.
18423 (*sltu_[sd]i): ...and sltu_[sd]i.
18424 (*sleu_[sd]i): ...and sleu_[sd]i_const.
18425 Name previously unnamed mips16 patterns. Formatting fixes.
18426
18427 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18428
18429 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
18430 (branch_type): Delete.
18431 (gen_conditional_branch, gen_conditional_move)
18432 (mips_gen_conditional_trap): Update after name change. Get the
18433 comparison mode from cmp_operands[0].
18434 * config/mips/mips.h (cmp_type, branch_type): Delete.
18435 (cmp_operands): Renamed from branch_cmp.
18436 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
18437 name change. Don't set branch_type.
18438 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
18439 mode class of cmp_operands[0] rather than branch_type. Update after
18440 name change.
18441
18442 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18443
18444 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
18445 of 0...255 to 0 when inside a SET.
18446
18447 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18448
18449 * config/mips/mips.md: Remove mips16 define_peepholes.
18450
18451 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
18452
18453 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
18454 (fini_pre): Remove fake edges.
18455
18456 2004-07-15 Richard Henderson <rth@redhat.com>
18457
18458 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
18459 (get_indirect_ref_operands, get_call_expr_operands): ... these.
18460
18461 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
18462
18463 * vec.h (VEC_address): New function.
18464
18465 2004-07-14 Jason Merrill <jason@redhat.com>
18466
18467 PR middle-end/15885
18468 * gimplify.c (gimplify_arg): New fn, split out from...
18469 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
18470
18471 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
18472
18473 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
18474 generate code which is generated by pushqi1 now
18475 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
18476
18477 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
18478
18479 * combine.c (simplify_set): match the mode of the constant 0 with
18480 the tested operand to match the compare behaviour and the
18481 simplify_relational_operation() expectation.
18482
18483 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
18484
18485 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
18486 ("bordered"): Same.
18487
18488 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
18489
18490 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
18491 unconditionally.
18492 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
18493
18494 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
18495
18496 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
18497 calls in mips16 code.
18498
18499 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
18500
18501 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
18502 the destination of the li as well as for the neg.
18503
18504 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
18505
18506 g++/15861
18507 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
18508 * cgraph.h: Update declaration.
18509 * c-decl.c (build_cdtor): Update call with default priority.
18510 * coverage.c (create_coverage): Ditto.
18511 * tree-mudflap.c (mf_init_fndecl): New tree.
18512 (mudflap_init): Set it.
18513 (mudflap_register_call): Arrange to call __mf_init before the first
18514 __mf_register call.
18515 (mudflap_finish_file): Mark the mudflap static initializer as extra
18516 high priority, to beat all C++ static constructors.
18517
18518 2004-07-15 Jeff Law <law@redhat.com>
18519
18520 * loop.c (check_insn_for_givs): Restore check for code labels that was
18521 accidentally deleted by a recent checkin.
18522
18523 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
18524
18525 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
18526 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
18527
18528 2004-07-14 Richard Henderson <rth@redhat.com>
18529
18530 * print-tree.c (print_node): Fix casts last change.
18531
18532 2004-07-15 Paul Brook <paul@codesourcery.com>
18533
18534 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
18535 to TARGET_UNWIND_INFO.
18536 * except.c (output_function_exception_table): Ditto.
18537 * except.h: Ditto.
18538 * opts.c (decode_options): Ditto.
18539 * passes.c (rest_of_handle_final): Ditto.
18540 * final.c (final_start_function): Ditto.
18541 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
18542 target hook.
18543 * targhooks.h (default_unwind_emit): Declare.
18544 * targhooks.c (default_unwind_emit): New function.
18545 * target-def.h: Define and use TARGET_UNWIND_EMIT.
18546 * target.h (struct gcc_target): Add unwind_emit.
18547 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
18548 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
18549 Remove IA64_UNWIND_EMIT.
18550 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
18551
18552 2004-07-14 Richard Henderson <rth@redhat.com>
18553
18554 * print-tree.c (print_node): Handle SSA_NAME.
18555
18556 2004-07-14 James E Wilson <wilson@specifixinc.com>
18557
18558 PR target/16325
18559 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
18560 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
18561
18562 2004-07-15 Jakub Jelinek <jakub@redhat.com>
18563
18564 * expr.c (expand_assignment): Reenable bitfield += optimizations.
18565 Use alias set 0 for memory, do proper mode calculations and adjust
18566 address for memories.
18567
18568 2004-07-14 Per Bothner <per@bothner.com>
18569
18570 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
18571 structure with extra column field.
18572 * tree.c (expand_location): Also fill in column field.
18573 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
18574 gets confused by the two conditionally-compiled definitions.
18575
18576 2004-07-14 Eric Christopher <echristo@redhat.com>
18577
18578 * calls.c (expand_call): Fix typo in comment.
18579
18580 2004-07-14 Steve Ellcey <sje@cup.hp.com>
18581
18582 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
18583 comparision of TFmode.
18584
18585 2004-07-14 Richard Henderson <rth@redhat.com>
18586
18587 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
18588 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
18589 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
18590 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
18591 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
18592 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
18593 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
18594 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
18595 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
18596
18597 2004-07-14 Mike Stump <mrs@apple.com>
18598
18599 * config/darwin.h (WINT_TYPE): Define to be int to match
18600 system header files.
18601
18602 2004-07-14 Bob Wilson <bob.wilson@acm.org>
18603
18604 * config/xtensa/xtensa.c (function_arg_advance): Check for args
18605 that must be passed in the stack.
18606 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
18607 arguments if the size is not a constant.
18608
18609 2004-07-14 Per Bothner <per@bothner.com>
18610
18611 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
18612 instead of EXPR_LOCUS in a boolean context, which is always true
18613 if --enable-mapped-location.
18614 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
18615
18616 2004-07-14 Richard Henderson <rth@redhat.com>
18617
18618 * dominance.c (struct dom_info): Add fake_exit_edge.
18619 (init_dom_info): Allocate it.
18620 (free_dom_info): Free it.
18621 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
18622 in two passes.
18623 (calc_idoms): Honor fake_exit_edge.
18624
18625 2004-07-13 Jason Merrill <jason@redhat.com>
18626
18627 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
18628 (rhs_test_for): New fn.
18629 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
18630 * tree-gimple.h: Declare them.
18631 * gimplify.c (gimplify_modify_expr): Use the new fns.
18632
18633 2004-07-14 Richard Henderson <rth@redhat.com>
18634
18635 * config/arm/arm-protos.h (arm_va_arg): Remove.
18636 * config/arm/arm.c (arm_va_arg): Remove.
18637 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
18638 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
18639
18640 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18641
18642 * pa.c (fix_range): New function to mark a range(s) of registers as
18643 fixed registers.
18644 (override_options): Call fix_range if the -mfixed-range option string
18645 is not empty.
18646 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
18647 * doc/invoke.texi (-mfixed-range): Document new option.
18648
18649 2004-07-14 David Edelsohn <edelsohn@gnu.org>
18650
18651 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
18652 for TARGET_64BIT.
18653 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
18654
18655 2004-07-14 Roger Sayle <roger@eyesopen.com>
18656
18657 * expmed.c (expand_sdiv_pow2): New function to expand signed division
18658 by a positive power of two, split out from expand_divmod. Provide
18659 an alternate implementation when shifts are expensive. Lower the
18660 threshold for using a branchless implementation to BRANCH_COST >= 2.
18661 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
18662
18663 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
18664
18665 * tree-dfa.c (make_rename_temp): *Really* work just
18666 like create_tmp_var if called while outside SSA form.
18667
18668 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
18669
18670 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
18671 for division by zero.
18672 ("umodsi3"): Likewise.
18673
18674 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
18675
18676 * config/mips/mips.c (mips_output_move): When generating mips16 code,
18677 force loads of negative constants to be split.
18678 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
18679 Generalize SImode li/neg splitter to cope with other modes.
18680
18681 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
18682
18683 * expmed.c: Remove more references to QUEUED in the comments.
18684 * expr.c: Likewise.
18685
18686 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
18687
18688 Revert:
18689 2004-07-13 Richard Henderson <rth@redhat.com>
18690 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
18691 correctly.
18692
18693 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
18694
18695 * tree-dfa.c (make_rename_temp): Work just like
18696 create_tmp_var if called while outside SSA form.
18697
18698 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
18699
18700 * expr.c (enqueue_insn, finish_expr_for_function,
18701 protect_from_queue, queued_subexp_p, mark_queue,
18702 emit_insns_enqueued_after_mark, emit_queue,
18703 expand_increment): Remove.
18704 (store_constructor): Expand increment as an assignment.
18705 (expand_expr_real_1 <case PREINCREMENT_EXPR,
18706 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
18707 case POSTDECREMENT_EXPR>): Abort.
18708 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
18709 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
18710 protect_from_queue, emit_queue, queued_subexp_p): Remove.
18711 * function.h (pending_chain, x_pending_chain): Remove.
18712 * rtl.def (QUEUED): Remove.
18713
18714 * emit-rtl.c (copy_insn_1, copy_most_rtx,
18715 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
18716 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
18717 encode_units_mask): Likewise.
18718 * local-alloc.c (equiv_init_varies_p): Likewise.
18719 * rtl.c (copy_rtx): Likewise.
18720 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
18721 * simplify-rtx.c (simplify_gen_subreg): Likewise.
18722 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
18723
18724 * builtins.c (expand_builtin, expand_builtin_apply,
18725 expand_builtin_mathfn, expand_builtin_mathfn_2,
18726 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
18727 Remove calls to emit_queue and protect_from_queue.
18728 * calls.c (expand_call, precompute_arguments,
18729 precompute_register_parameters, rtx_for_function_call,
18730 store_one_arg): Likewise.
18731 * dojump.c (do_compare_and_jump, do_jump): Likewise.
18732 * explow.c (memory_address): Likewise.
18733 * expmed.c (clear_by_pieces_1, clear_storage,
18734 clear_storage_via_libcall, emit_group_load,
18735 emit_group_store, emit_store_flag,
18736 expand_expr_real_1, store_by_pieces,
18737 store_constructor, store_expr, try_casesi,
18738 try_tablejump): Likewise.
18739 * function.c (expand_pending_sizes): Likewise.
18740 * optabs.c (emit_cmp_and_jump_insns,
18741 emit_conditional_add, emit_conditional_move,
18742 expand_fix, expand_float, prepare_cmp_insn): Likewise.
18743 * stmt.c (emit_case_bit_tests,
18744 expand_asm_expr, expand_computed_goto,
18745 expand_decl_init, expand_end_case_type,
18746 expand_end_stmt_expr, expand_expr_stmt_value,
18747 expand_return, expand_start_case,
18748 optimize_tail_recursion): Likewise.
18749 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
18750 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
18751
18752 2004-07-14 Ben Elliston <bje@au.ibm.com>
18753
18754 * vec.h: Comment fix.
18755
18756 2004-07-13 Richard Henderson <rth@redhat.com>
18757
18758 * target.h (struct gcc_target): Add calls.pass_by_reference.
18759 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
18760 * function.c (pass_by_reference): Use the hook.
18761 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
18762 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
18763 (hook_pass_by_reference_must_pass_in_stack): New.
18764 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
18765 (alpha_pass_by_reference): New.
18766 (TARGET_PASS_BY_REFERENCE): New.
18767 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18768 * config/arc/arc.c (arc_pass_by_reference): New.
18769 (TARGET_PASS_BY_REFERENCE): New.
18770 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18771 (FUNCTION_ARG_CALLEE_COPIES): True.
18772 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
18773 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
18774 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
18775 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18776 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18777 * config/cris/cris.c (cris_pass_by_reference): New.
18778 (TARGET_PASS_BY_REFERENCE): New.
18779 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
18780 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
18781 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18782 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
18783 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18784 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
18785 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
18786 (frv_function_arg_pass_by_reference): Remove.
18787 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18788 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
18789 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
18790 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
18791 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18792 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
18793 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
18794 (ia64_pass_by_reference): Rename from
18795 ia64_function_arg_pass_by_reference.
18796 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18797 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18798 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
18799 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
18800 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
18801 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18802 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
18803 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
18804 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
18805 (m32r_pass_by_reference): Adjust prototype. Make static.
18806 Handle mode sizes correctly.
18807 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18808 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
18809 (m68hc11_function_arg_pass_by_reference): Remove.
18810 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18811 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
18812 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
18813 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18814 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
18815 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
18816 (mips_va_arg): Use pass_by_reference.
18817 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
18818 Handle mode sizes correctly.
18819 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18820 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
18821 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
18822 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
18823 (mmix_pass_by_reference): Rename from
18824 mmix_function_arg_pass_by_reference.
18825 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18826 (FUNCTION_ARG_CALLEE_COPIES): True.
18827 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
18828 (mn10300_pass_by_reference): New.
18829 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18830 (FUNCTION_ARG_CALLEE_COPIES): True.
18831 * config/pa/pa.c (pa_pass_by_reference): New.
18832 (TARGET_PASS_BY_REFERENCE): New.
18833 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18834 (FUNCTION_ARG_CALLEE_COPIES): True.
18835 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
18836 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
18837 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
18838 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18839 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
18840 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
18841 (s390_pass_by_reference): Rename from
18842 s390_function_arg_pass_by_reference.
18843 (s390_function_arg_advance): Don't query pass-by-ref.
18844 (s390_function_arg): Likewise.
18845 (s390_gimplify_va_arg): Use pass_by_reference.
18846 (s390_call_saved_register_used): Likewise.
18847 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18848 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
18849 (shcompact_byref, sh_pass_by_reference): New.
18850 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18851 (SHCOMPACT_BYREF): Remove.
18852 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
18853 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
18854 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
18855 (sparc_gimplify_va_arg): Use pass_by_reference.
18856 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18857 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18858 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
18859 (v850_pass_by_reference): New.
18860 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18861 (FUNCTION_ARG_CALLEE_COPIES): True.
18862 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
18863 FUNCTION_ARG_PASS_BY_REFERENCE docs.
18864
18865 2004-07-14 Richard Henderson <rth@redhat.com>
18866 Richard Sandiford <rsandifo@redhat.com>
18867
18868 * config/mips/mips-protos.h (mips_va_arg): Delete.
18869 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
18870 * config/mips/mips.c: Include tree-gimple.h.
18871 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18872 (mips_arg_info): Remove special handling of must_pass_in_stck args.
18873 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
18874 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
18875
18876 2004-07-13 Bob Wilson <bob.wilson@acm.org>
18877
18878 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
18879 arguments for COND_EXPR in big-endian adjustment code.
18880
18881 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18882
18883 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
18884 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
18885 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
18886 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
18887
18888 2004-07-13 Diego Novillo <dnovillo@redhat.com>
18889
18890 PR tree-optimization/16443
18891 * tree-ssa-alias.c: Add more description for
18892 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
18893 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
18894 clobbering of call-clobbered and addressable variables. If
18895 there are any before aliases have been computed, add them.
18896
18897 2004-07-13 Diego Novillo <dnovillo@redhat.com>
18898
18899 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
18900 verification.
18901
18902 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
18903
18904 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
18905 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
18906 to the same type.
18907
18908 2004-07-13 Per Bothner <per@bothner.com>
18909
18910 * collect2.c (main): Handle --no-demangle and --demangle flags.
18911
18912 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
18913
18914 * Makefile.in (OBJS-common): Add tree-data-ref.o.
18915 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
18916 (tree-data-ref.o): New rule.
18917 * lambda.h: New file.
18918 * tree-data-ref.c: New file.
18919 * tree-data-ref.h: New file.
18920 * tree.c (int_cst_value, tree_fold_gcd): New functions.
18921 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
18922
18923 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
18924
18925 PR target/13926
18926 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
18927 * config/sparc/sparc.c (output_ubranch): New function.
18928 * config/sparc/sparc.md (jump pattern): Use it.
18929
18930 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
18931
18932 PR target/16494
18933 * config/sparc/sparc.c (output_cbranch): Properly guard
18934 the code handling far branches with TARGET_V9.
18935 * config/sparc/sparc.md (length attribute): Document the
18936 side-effect of having a length greater or equal to 3.
18937
18938 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
18939 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
18940
18941 PR target/15186
18942 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
18943 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
18944
18945 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
18946 Martin Sebor <sebor@roguewave.com>
18947
18948 PR target/12602
18949 * doc/invoke.texi (SPARC options): Document -threads
18950 and -pthreads on Solaris.
18951
18952 2004-07-13 Richard Henderson <rth@redhat.com>
18953
18954 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
18955 by reference.
18956 (ind_gimplify_va_arg_expr): Remove.
18957 * tree.h (ind_gimplify_va_arg_expr): Remove.
18958 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
18959 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
18960 argsp to be null.
18961
18962 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
18963 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
18964 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
18965 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
18966 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
18967
18968 2004-07-13 Richard Henderson <rth@redhat.com>
18969
18970 * function.c (pass_by_reference): New.
18971 (assign_parm_find_data_types): Use it.
18972 * calls.c (initialize_argument_information): Likewise.
18973 (emit_library_call_value_1): Likewise.
18974 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18975 * function.h (pass_by_reference): Declare.
18976
18977 2004-07-13 Richard Henderson <rth@redhat.com>
18978
18979 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
18980 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
18981 * expr.h (MUST_PASS_IN_STACK): Remove.
18982 * system.h (MUST_PASS_IN_STACK): Poison.
18983 * tree.h (must_pass_in_stack_var_size): Declare.
18984 (must_pass_in_stack_var_size_or_pad): Declare.
18985 * calls.c (must_pass_in_stack_var_size): New.
18986 (must_pass_in_stack_var_size_or_pad): Rename from
18987 default_must_pass_in_stack.
18988 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
18989 (TARGET_MUST_PASS_IN_STACK): New.
18990 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
18991 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
18992 (TARGET_MUST_PASS_IN_STACK): New.
18993 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
18994 * config/frv/frv.c (frv_must_pass_in_stack): New.
18995 (TARGET_MUST_PASS_IN_STACK): New.
18996 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
18997 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
18998 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
18999 (ix86_must_pass_in_stack): Make static.
19000 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
19001 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
19002 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
19003 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
19004 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
19005 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
19006 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
19007 (mcore_must_pass_on_stack): Remove.
19008 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
19009 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
19010 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
19011 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
19012 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
19013 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
19014 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
19015 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
19016 (TARGET_MUST_PASS_IN_STACK): New.
19017 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
19018 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
19019 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
19020 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
19021 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
19022 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
19023 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
19024 MUST_PASS_IN_STACK.
19025
19026 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
19027 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
19028 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
19029 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
19030 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
19031 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
19032 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
19033 config/xtensa/xtensa.c: Use target hook.
19034
19035 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
19036
19037 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
19038 * configure: Rebuilt.
19039
19040 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
19041
19042 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
19043 * config/mips/mips.h (mips_reg_names): Don't declare.
19044 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
19045 (TARGET_NAME_REGS): Delete.
19046 (TARGET_SWITCHES): Remove -mrnames.
19047 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
19048 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
19049 in REGISTER_NAMES.
19050 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
19051 (override_options): Remove handling of TARGET_NAME_REGS.
19052
19053 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
19054
19055 * config/mips/mips.h (TARGET_*): Boolify.
19056
19057 2004-07-12 Nick Clifton <nickc@redhat.com>
19058
19059 * config.gcc: Add sh-*-symbianelf target.
19060 * config/sh/sh.c: Add new target macros:
19061 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
19062 TARGET_CXX_IMPORT_EXPORT_CLASS.
19063 (sh_file_start): Create a definition of the .directive section.
19064 (sh_attribute): Add dllimport and dllexport attributes.
19065 * config/sh/symbian-pre.h: New file.
19066 * config/sh/symbian-post.h: New file.
19067 * config/sh/symbian.c: New file. Contains Symbian specific
19068 functions.
19069 * config/sh/sh-protos.h: Add prototypes for new functions
19070 provided by symbian.c.
19071 * config/sh/t-symbian: New file.
19072 * doc/extend.texi: Document support for dllimport and dllexport
19073 attributes by the sh-symbianelf target.
19074
19075 2004-07-12 James E Wilson <wilson@specifixinc.com>
19076
19077 * Makefile.in (AR): Use @AR@ not ar.
19078 (NM): New.
19079 (AR_FOR_TARGET): Use $(AR) not ar for native.
19080 (NM_FOR_TARGET): Use $(NM) not nm for native.
19081 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
19082 * configure: Regenerate.
19083
19084 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
19085
19086 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
19087 special case.
19088 (ashldi3_sp64): Likewise.
19089
19090 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19091
19092 PR target/16477
19093 * pa.c (function_arg): Update comment.
19094 * pa.h (BLOCK_REG_PADDING): Define.
19095
19096 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19097
19098 PR tree-optimization/16461
19099 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
19100 arguments of phi nodes.
19101
19102 2004-07-12 Devang Patel <dpatel@apple.com>
19103
19104 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
19105
19106 2004-07-12 Steve Ellcey <sje@cup.hp.com>
19107
19108 * function.c (expand_function_start): Ensure r_save is in Pmode.
19109 * calls.c (prepare_call_address): Ensure static_chain_value is
19110 in Pmode.
19111 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
19112 r_save_area are in Pmode.
19113 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
19114 fnaddr, and static_chain are in Pmode.
19115
19116 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
19117
19118 PR target/16445
19119 * config/ia64/ia64.c (bundling): Don't count ignored insns.
19120
19121 2004-07-12 Richard Henderson <rth@redhat.com>
19122
19123 * target.h (struct gcc_target): Move gimplify_va_arg_expr
19124 next to build_builtin_va_list.
19125 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
19126 * builtins.c (gimplify_va_arg_expr): Likewise.
19127 * gimplify.c (copy_if_shared_r): Likewise.
19128
19129 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
19130
19131 * passes.c (rest_of_decl_compilation): Don't defer call of
19132 assemble_variable if its DECL_RTL is already set.
19133
19134 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
19135
19136 * cfgloop.h (struct loop): Add nb_iterations field.
19137 (current_loops): Declare.
19138 * tree-chrec.c (chrec_not_analyzed_yet,
19139 chrec_dont_know, chrec_known, count_ev_in_wider_type,
19140 chrec_contains_symbols_defined_in_loop): Remove the temporary
19141 hooks.
19142 * tree-flow-inline.h (loop_containing_stmt): New function.
19143 * tree-scalar-evolution.c: Add implementation.
19144 * tree-scalar-evolution.h: Add declarations.
19145
19146 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
19147
19148 PR rtl-optimization/15921
19149 * Makefile.in (global.o): Add recog.h.
19150
19151 * global.c (recog.h): Add the include-clause.
19152 (bb_info): New member earlyclobber.
19153 (allocate_bb_info, free_bb_info): Initialize/finish the new
19154 member.
19155 (earlyclobber_regclass, earlyclobber_regclass_length): The new
19156 global variables.
19157 (check_earlyclobber, regclass_intersect,
19158 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
19159 New functions.
19160 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
19161 (make_accurate_live_analysis): Modify pavin.
19162
19163 2004-07-12 Diego Novillo <dnovillo@redhat.com>
19164
19165 * tree-cfg.c (find_taken_edge): Statically compute the truth
19166 value of a predicate comparing an SSA_NAME to itself.
19167
19168 2004-07-12 Roger Sayle <roger@eyesopen.com>
19169
19170 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
19171 rs6000 doesn't have shift-and-add or shift-and-sub instructions
19172 by returning the cost of a multiplication plus an addition.
19173
19174 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
19175
19176 PR tree-optimization/14107
19177 * gimplify.c (gimplify_return_expr): Accept a
19178 RETURN_EXPR with an error argument.
19179 * tree-optimize.c (init_tree_optimization_passes):
19180 Run pass_warn_function_return at -O0.
19181
19182 2004-07-12 Roger Sayle <roger@eyesopen.com>
19183
19184 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
19185 index entry.
19186
19187 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
19188
19189 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
19190 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
19191 * config/mips/3000.md: Add copyright notice. Remove automota and
19192 function units; use generic ones instead. Only define reservations
19193 for things that are different from generic.md. Extend each clause
19194 to include r3900.
19195 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
19196 * config/mips/mips.md: Include them. Remove define_function_units.
19197 (alu, imuldiv): New automata and units.
19198
19199 2004-07-12 Ben Elliston <bje@au.ibm.com>
19200
19201 * doc/invoke.texi (Optimize Options): Document -frename-registers
19202 not being enabled by default at -O3.
19203
19204 2004-07-11 Roger Sayle <roger@eyesopen.com>
19205
19206 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
19207 floating point additions, to keep real immediate constant positive.
19208 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
19209 into X + C, and leave positive real constants as X - C.
19210
19211 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19212
19213 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
19214
19215 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19216
19217 PR tree-optimization/15654
19218 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
19219
19220 2004-07-11 Roger Sayle <roger@eyesopen.com>
19221
19222 * builtins.c (fold_builtin_fputs): Don't bother converting the
19223 return type to integer_type_node, as we've already checked that
19224 the result will be ignored.
19225
19226 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
19227 that signed addition, subtraction, multiplication, division,
19228 remainder, negation and absolute value may potentially trap.
19229
19230 * fold-const.c (fold_ignored_result): New function to strip
19231 non-side-effecting tree nodes from an expression whose result
19232 is ignored.
19233 (fold_convert): Call fold_ignored_result when casting a value
19234 to VOID_TYPE.
19235 (omit_one_operand): Call fold_ignored_result on the "omitted"
19236 operand when building a COMPOUND_EXPR.
19237 (pedantic_omit_one_operand): Likewise.
19238 * tree.h (fold_ignored_result): Prototype here.
19239 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
19240 when we're going to ignore the result.
19241
19242 2004-07-11 Richard Henderson <rth@redhat.com>
19243
19244 PR tree-opt/16383
19245 * tree-ssa-ccp.c (fold_stmt_r): Split out...
19246 * tree.c (fields_compatible_p, find_compatible_field): ... new.
19247 * tree.h (fields_compatible_p, find_compatible_field): Declare.
19248 * tree-sra.c (sra_hash_tree): Hash fields by offset.
19249 (sra_elt_eq): Use fields_compatible_p.
19250 (generate_one_element_ref): Use find_compatible_field.
19251
19252 2004-07-11 Richard Henderson <rth@redhat.com>
19253
19254 PR tree-opt/16422
19255 * tree-sra.c (generate_one_element_init): New.
19256 (generate_element_init): Use it.
19257 (scalarize_init): Push/pop gimplify context around it.
19258 (find_new_referenced_vars_1, find_new_referenced_vars): New.
19259 * gimplify.c (gimplify_expr): Allow SSA_NAME.
19260
19261 2004-07-11 Roger Sayle <roger@eyesopen.com>
19262
19263 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
19264 combine.c's combine_insn_cost.
19265 * rtl.h (insn_rtx_cost): Prototype here.
19266 * combine.c (combine_insn_cost): Delete function.
19267 (combine_validate_cost): Update callers of combine_insn_cost to
19268 call insn_rtx_cost instead.
19269 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
19270 requesting the rtx_cost of call and/or jump instructions.
19271
19272 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
19273 rtx_cost directly. Don't request/use the cost of call or jump
19274 instructions. Return -1 if the cost of any instruction can't be
19275 determined (or the BB contains a function call).
19276 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
19277 -1 (i.e. can't determine the cost of any instruction or the basic
19278 block contains a subroutine call).
19279 (find_if_case_2): Likewise.
19280
19281 2004-07-11 Roger Sayle <roger@eyesopen.com>
19282
19283 * rs6000.c (struct processor_costs): Change semantics of fields to
19284 include the COST_N_INSNS scaling, and update all initializers.
19285 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
19286 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
19287 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
19288 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
19289
19290 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19291
19292 * LANGUAGES: Remove obsolete information.
19293
19294 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
19295
19296 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
19297 SIGBUS signal frames, the PSW address points *to* the faulting
19298 instruction, not after it.
19299
19300 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
19301
19302 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
19303 added to TLS symbol addresses.
19304
19305 2004-07-11 Richard Henderson <rth@redhat.com>
19306
19307 * expmed.c (init_expmed): Use stack-local structures for
19308 temporary rtl. Don't recognize shifts.
19309
19310 2004-07-11 Richard Henderson <rth@redhat.com>
19311
19312 * expr.c (store_expr): Don't fiddle subreg promotion for types
19313 with precision smaller than the mode.
19314
19315 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19316
19317 * tree.h (all_types_permanent): Remove.
19318
19319 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19320
19321 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
19322 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
19323 * langhooks.c (lhd_clear_binding_stack): Remove.
19324 * langhooks-def.h (lhd_clear_binding_stack,
19325 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
19326 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
19327 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
19328 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
19329 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
19330 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
19331 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
19332 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
19333 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
19334 * tree.h (poplevel): Don't declare.
19335 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
19336 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
19337 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
19338 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
19339 Remove.
19340
19341 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19342
19343 PR tree-optimization/16437
19344 * c-common.c (shorten_compare): Don't mark result of conversion to
19345 narrower signed type as overflowing.
19346 * fold-const.c (decode_field_reference): Determine whether
19347 signedness comes from outer type using precision rather than size.
19348
19349 2004-07-11 Phil Edwards <phil@codesourcery.com>
19350
19351 * configure.ac: Alphabetize --enable-checking list, add
19352 missing valgrind entry.
19353 * configure: Regenerate.
19354
19355 2004-07-11 Phil Edwards <phil@codesourcery.com>
19356
19357 * doc/install.texi (Testing): Fix syntax in "make check" example.
19358
19359 2004-07-10 James E Wilson <wilson@specifixinc.com>
19360
19361 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
19362
19363 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19364
19365 PR rtl-optimization/16001
19366 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
19367 niter_expr.
19368
19369 2004-07-10 Geoffrey Keating <geoffk@apple.com>
19370
19371 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
19372
19373 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
19374 James Morrison <phython@gcc.gnu.org>
19375
19376 * doc/contrib.texi (Contributors): Add gfortran contributors and
19377 fix a couple of typos.
19378
19379 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19380
19381 PR rtl-optimization/15387
19382 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
19383 to incoming args space correctly.
19384
19385 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19386
19387 * pa.c (output_indirect_call): Only use %r2 as the link register in
19388 indirect calls with the long PA 2.0 pc-relative branch.
19389
19390 2004-07-10 Daniel Jacobowitz <dan@debian.org>
19391
19392 * config/i386/i386.c (override_options): Pick a 64-bit CPU
19393 for the default tuning if TARGET_64BIT.
19394
19395 2004-07-10 Richard Henderson <rth@redhat.com>
19396
19397 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
19398 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
19399
19400 2004-07-10 Jakub Jelinek <jakub@redhat.com>
19401
19402 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
19403 * expmed.c (store_bit_field, extract_bit_field): Remove last
19404 argument.
19405 * builtins.c (expand_builtin_signbit): Adjust callers.
19406 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
19407 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
19408 * ifcvt.c (noce_emit_move_insn): Likewise.
19409 * stmt.c (expand_return): Likewise.
19410 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
19411 store_field, expand_expr_real_1): Likewise.
19412
19413 2004-07-10 Richard Henderson <rth@redhat.com>
19414
19415 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
19416
19417 2004-07-09 Mike Stump <mrs@apple.com>
19418
19419 * config/darwin.c (no_dead_strip): Add.
19420 (HAVE_DEAD_STRIP): Add.
19421 (darwin_emit_unwind_label): Ensure that we don't dead code strip
19422 the .eh label.
19423
19424 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19425
19426 * tree-ssa-loop-im.c: New file.
19427 * Makefile.in (tree-ssa-loop-im.o): Add.
19428 * cfgloop.c (superloop_at_depth): New function.
19429 * cfgloop.h (superloop_at_depth): Declare.
19430 * common.opt (ftree-lim): New flag.
19431 * expr.c (array_ref_up_bound): New function.
19432 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
19433 * timevar.def (TV_LIM): New timevar.
19434 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
19435 computing immediate uses of a phi node.
19436 * tree-flow.h (struct tree_ann_common_d): Add aux field.
19437 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
19438 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
19439 * tree-pass.h (pass_lim): Declare.
19440 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
19441 functions.
19442 (pass_lim): New pass structure.
19443 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
19444 * tree.c (in_array_bounds_p): New function.
19445 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
19446 (in_array_bounds_p, array_ref_up_bound): Declare.
19447 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
19448 * doc/passes.texi (tree-ssa-loop-im.c): Document.
19449
19450 2004-07-09 Richard Henderson <rth@redhat.com>
19451
19452 * builtins.c (expand_builtin_stpcpy): Don't modify len.
19453
19454 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
19455 with prejudice.
19456
19457 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
19458
19459 * flags.h: Delete redundant prototypes that are being generated
19460 in options.h from common.opt.
19461 * common.opt: Add in the expository comments formerly in flags.h.
19462
19463 2004-07-09 Jan Beulich <jbeulich@novell.com>
19464
19465 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
19466 available for use only when TARGET_MMX/_SSE is set, and check for
19467 variable argument function if any register count is non-zero.
19468 (function_arg): Correctly suppress repeated warnings for passing SSE
19469 vectors are arguments without SSE enabled.
19470 (ix86_function_arg_boundary): Without SSE enabled, the use of what
19471 would be SSE register modes does no longer influence the alignment.
19472
19473 2004-07-09 Richard Henderson <rth@redhat.com>
19474
19475 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
19476 Always align upward to arg boundary. Use size_in_bytes/round_up.
19477 Maintain type-correctness of constants.
19478 * stor-layout.c (round_up, round_down): Special-case powers of 2.
19479
19480 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
19481
19482 * config/sparc/sparc.c (*_costs): Scale instruction costs
19483 by COSTS_N_INSNS.
19484 (sparc_rtx_costs): Adjust as appropriate.
19485
19486 2004-07-09 Jan Beulich <jbeulich@novell.com>
19487
19488 * config/i386/mm3dnow.h: New.
19489 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
19490
19491 2004-07-09 Richard Henderson <rth@redhat.com>
19492
19493 * simplify-rtx.c (simplify_const_relational_operation): Only
19494 look at bounds of scalar integers.
19495
19496 2004-07-09 Jan Beulich <jbeulich@novell.com>
19497
19498 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
19499
19500 2004-07-09 Andrew Pinski <apinski@apple.com>
19501
19502 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
19503 always referenced.
19504 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
19505 UOBJC_METACLASS_decl.
19506
19507 2004-07-09 James E Wilson <wilson@specifixinc.com>
19508
19509 PR target/16364
19510 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
19511 do return a parallel if hfa_mode == XFmode and mode == TImode.
19512
19513 2004-07-09 Jan Beulich <jbeulich@novell.com>
19514
19515 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
19516 permissible for unary plus.
19517
19518 2004-07-09 Jan Beulich <jbeulich@novell.com>
19519
19520 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
19521 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
19522 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
19523 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
19524 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
19525 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
19526 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
19527 (BUILTIN_xxxIMAX): New.
19528 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
19529 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
19530 BUILT_IN_PARITYIMAX.
19531
19532 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
19533
19534 * config/sparc/sparc.h (processor_costs): Define.
19535 (sparc_costs): Declare.
19536 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
19537 hypersparc_costs, sparclet_costs, ultrasparc_costs,
19538 ultrasparc3_costs): New.
19539 (sparc_override_options): Set sparc_costs as appropriate.
19540 (sparc_rtx_costs): Use sparc_costs instead of messy
19541 conditionals.
19542
19543 2004-07-09 Steven Bosscher <stevenb@suse.de>
19544
19545 * doc/md.texi (Processor pipeline description): Mention that
19546 the old pipeline description is deprecated.
19547
19548 * config/rs6000/7450.md (automaton ppc7450): Split up, move
19549 mciu_7450 function unit to...
19550 (automaton ppc7450mciu): ...new automaton.
19551
19552 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
19553 (schedule_block): Don't consider inserting bubbles.
19554 (sched_init): Don't initialize DFA bubbles.
19555 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
19556 TARGET_SCHED_DFA_BUBBLE): Remove.
19557 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
19558 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
19559 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
19560
19561 * stmt.c (conditional_context): Remove prototype.
19562 * tree.h (conditional_context): Remove.
19563 * tree-cfg.c (pre_insert_on_edge): Remove.
19564
19565 * c-common.h (c_expand_asm_operands): Remove prototype.
19566 * c-typeck.c (c_expand_asm_operands): Remove.
19567
19568 2004-07-09 Jan Beulich <jbeulich@novell.com>
19569
19570 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
19571 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
19572 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
19573 and V8QI are class SSE. All sufficiently small remaining vector modes
19574 must be passed in one or two integer registers.
19575 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
19576 returned in memory.
19577 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
19578 __builtin_ia32_pmuludq128 have non-uniform argument and return types
19579 and must thus be handled explicitly.
19580 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
19581 MMX and XMM regs.
19582 (movv8qi_internal, movv4hi_internal, movv2si_internal,
19583 movv2sf_internal): Permit moving between MMX and XMM registers (since
19584 MMX areguments and return values are passed in XMM registers).
19585 (sse2_umulsidi3): Correct type and mode.
19586
19587 2004-07-09 Richard Henderson <rth@redhat.com>
19588
19589 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
19590
19591 2004-07-09 Eric Christopher <echristo@redhat.com>
19592
19593 * config/rs6000/40x.md: Split into two automatons.
19594
19595 2004-07-09 Zack Weinberg <zack@codesourcery.com>
19596 Andrew Pinski <apinski@apple.com>
19597
19598 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
19599 on when we have more than one input file.
19600 (c_common_parse_file): Restore loop over all input files.
19601 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
19602
19603 * c-decl.c (set_type_context): New function.
19604 (pop_scope): Use it to set context of types. When we
19605 encounter a TYPE_DECL, set the context of the attached type too.
19606 (pop_file_scope): Don't call cpp_undef_all here.
19607 (diagnose_mismatched_decls): Do not complain about a second
19608 definition of an 'extern inline' function if it's not in the
19609 same translation unit. Do not complain about inline
19610 declaration after use if the use was in a different
19611 translation unit.
19612 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
19613 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
19614 the external scope.
19615 (pushdecl_top_level): Likewise.
19616 (grokdeclarator): Clarify what is going on with setting
19617 DECL_EXTERNAL on function types, a little.
19618 (c_write_global_declarations): Don't do anything if
19619 -fsyntax-only or errors have been encountered.
19620
19621 2004-07-09 Zack Weinberg <zack@codesourcery.com>
19622
19623 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
19624
19625 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19626
19627 PR target/16459
19628 * pa.c (output_indirect_call): Use %r2 as the link register when
19629 calling $$dyncall with a pc-relative branch.
19630
19631 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
19632
19633 * doc/install.texi (Binaries): Mention OpenPKG.
19634
19635 2004-07-09 Diego Novillo <dnovillo@redhat.com>
19636
19637 Fix PR tree-optimization/15555
19638 * tree-dfa.c (dump_variable): If the variable is a pointer
19639 SSA_NAME, also dump its points-to information.
19640 * tree-flow.h (struct ptr_info_def): Add field
19641 is_dereferenced.
19642 (dump_points_to_info_for): Declare.
19643 (debug_points_to_info_for): Declare.
19644 * tree-optimize.c (init_tree_optimization_passes): Add a
19645 second alias analysis pass after DOM2.
19646 Move pass_del_pta to a later spot.
19647 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
19648 create a name tags when we find a dereferenced pointer. Just
19649 mark the pointer dereferenced.
19650 (collect_points_to_info_for): Move code to clear points-to
19651 information to create_name_tags.
19652 (create_name_tags): New function.
19653 (compute_flow_sensitive_aliasing): Call it.
19654 (setup_pointers_and_addressables): Mark type tags for renaming
19655 here instead of ...
19656 (create_memory_tag): ... here.
19657 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
19658 (dump_points_to_info_for): Declare extern.
19659 (debug_points_to_info_for): New function.
19660
19661 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
19662
19663 * config/arc/arc.md: Switch to DFA-based scheduler description.
19664 * config/arc/arc.c: Switch to DFA-based scheduler description.
19665
19666 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
19667
19668 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
19669 pointer.
19670
19671 2004-07-09 Richard Henderson <rth@redhat.com>
19672
19673 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
19674 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19675 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
19676 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
19677
19678 * config/v850/v850-protos.h (v850_va_arg): Remove.
19679 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19680 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
19681 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
19682 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
19683 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
19684
19685 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
19686
19687 PR target/12133
19688 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
19689 and DImode to use +/-4k offset.
19690
19691 2004-07-09 Richard Henderson <rth@redhat.com>
19692
19693 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
19694 Remove.
19695 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19696 (xstormy16_gimplify_va_arg_expr): Rewrite from
19697 xstormy16_expand_builtin_va_arg.
19698 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
19699
19700 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
19701 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
19702
19703 * config/sh/sh-protos.h (sh_va_arg): Remove.
19704 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19705 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
19706 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
19707
19708 * config/pa/pa-protos.h (hppa_va_arg): Remove.
19709 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19710 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
19711 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
19712
19713 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
19714 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19715 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
19716 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
19717
19718 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
19719
19720 * config/sparc/sparc.md (return): Rewrite length formula.
19721 * config/sparc/sparc.c (output_return): Pass 1 as 5th
19722 argument to final_scan_insn when in a delay slot.
19723 (output_sibcall): Likewise.
19724
19725 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
19726
19727 * arm.c (arm_cpp_interwork): New variable.
19728 (arm_override_options): Set it if TARGET_INTERWORK was on the command
19729 line.
19730 * arm.h (arm_cpp_interwork): Declare it.
19731 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
19732 __THUMB_INTERWORK__ in the preprocessor.
19733
19734 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
19735
19736 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
19737
19738 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
19739
19740 PR target/16416
19741 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
19742 Override default settings to account for -m32 and -m64.
19743
19744 2004-07-08 Randolph Chung <tausq@debian.org>
19745
19746 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
19747
19748 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
19749
19750 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
19751 before comparing it as such.
19752
19753 2004-07-08 Richard Henderson <rth@redhat.com>
19754
19755 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
19756 temporary. Use bit arithmetic to align.
19757
19758 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
19759
19760 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
19761 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
19762 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
19763 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
19764 add_labels_and_missing_jumps, find_jump_block,
19765 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
19766 Likewise.
19767 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
19768 link_btr_uses, move_btr_def): Likewise.
19769 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
19770 expand_builtin_expect_jump): Likewise.
19771 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
19772 * calls.c (expand_call, emit_library_call_value_1): Likewise.
19773 * cfganal.c (forwarder_block_p): Likewise.
19774 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
19775 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
19776 find_bb_boundaries): Likewise.
19777 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
19778 merge_blocks_move_predecessor_nojumps,
19779 merge_blocks_move_successor_nojumps, insns_match_p,
19780 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
19781 try_optimize_cfg): Likewise.
19782 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
19783 * cfglayout.c (skip_insns_after_block, label_for_bb,
19784 record_effective_endpoints, insn_locators_initialize,
19785 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
19786 * cfgmainloop.c (create_loop_notes): Likewise.
19787 * cfgrtl.c (delete_insn, delete_insn_chain,
19788 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
19789 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
19790 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
19791 redirect_branch_edge, force_nonfallthru_and_redirect,
19792 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
19793 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
19794 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
19795 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
19796 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
19797 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
19798 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
19799 * combine.c (combine_instructions, can_combine_p, try_combine,
19800 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
19801 distribute_notes, distribute_links, insn_cuid): Likewise.
19802 * cse.c (fold_rtx, cse_insn, cse_around_loop,
19803 invalidate_skipped_block, cse_set_around_loop,
19804 cse_end_of_basic_block, cse_main, cse_basic_block,
19805 cse_condition_code_reg): Likewise.
19806 * cselib.c (cselib_process_insn): Likewise.
19807 * ddg.c (create_ddg): Likewise.
19808 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
19809 Likewise.
19810 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
19811 gen_label_die, dwarf2out_var_location): Likewise.
19812 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
19813 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
19814 last_call_insn, active_insn_p, next_label, prev_label,
19815 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
19816 add_insn_before, remove_insn, add_function_usage_to,
19817 reorder_insns, find_line_note, remove_unnecessary_notes,
19818 emit_insn_after_1, classify_insn): Likewise.
19819 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
19820 connect_post_landing_pads, sjlj_mark_call_sites,
19821 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
19822 can_throw_internal, can_throw_external, set_nothrow_function_flags,
19823 convert_to_eh_region_ranges): Likewise.
19824 * explow.c (optimize_save_area_alloca): Likewise.
19825 * expr.c (expand_expr_real): Likewise.
19826 * final.c (insn_current_reference_address, compute_alignments,
19827 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
19828 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
19829 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
19830 propagate_block_delete_insn, propagate_one_insn,
19831 init_propagate_block_info, propagate_block, libcall_dead_p,
19832 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
19833 Likewise.
19834 * function.c (instantiate_virtual_regs, reorder_blocks_1,
19835 expand_function_start, expand_function_end, contains,
19836 thread_prologue_and_epilogue_insns,
19837 reposition_prologue_and_epilogue_notes): Likewise.
19838 * gcse.c (constprop_register, bypass_conditional_jumps,
19839 insert_insn_end_bb, gcse_after_reload): Likewise.
19840 * genemit.c (gen_expand, gen_split): Likewise.
19841 * genpeep.c (gen_peephole, main): Likewise.
19842 * global.c (build_insn_chain): Likewise.
19843 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
19844 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
19845 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
19846 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
19847 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
19848 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
19849 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
19850 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
19851 dead_or_predicable): Likewise.
19852 * integrate.c (try_constants): Likewise.
19853 * jump.c (rebuild_jump_labels, cleanup_barriers,
19854 purge_line_number_notes, init_label_info, mark_all_labels,
19855 squeeze_notes, get_label_before, get_label_after,
19856 reversed_comparison_code_parts, simplejump_p, pc_set,
19857 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
19858 delete_barrier, delete_prior_computation, delete_computation,
19859 delete_related_insns, delete_for_peephole, redirect_jump):
19860 Likewise.
19861 * lcm.c (optimize_mode_switching): Likewise.
19862 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
19863 Likewise.
19864 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
19865 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
19866 * loop-iv.c (simplify_using_assignment): Likewise.
19867 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
19868 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
19869 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
19870 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
19871 check_insn_for_givs, check_final_value, update_giv_derive,
19872 basic_induction_var, product_cheap_p, check_dbra_loop,
19873 loop_insn_first_p, last_use_this_basic_block,
19874 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
19875 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
19876 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
19877 sms_schedule_by_order): Likewise.
19878 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
19879 * postreload.c (reload_cse_simplify_operands, reload_combine,
19880 reload_cse_move2add): Likewise.
19881 * predict.c (can_predict_insn_p, estimate_probability,
19882 expected_value_to_br_prob, process_note_predictions): Likewise.
19883 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
19884 * profile.c (branch_prob): Likewise.
19885 * ra-build.c (live_out_1, livethrough_conflicts_bb,
19886 detect_webs_set_in_cond_jump): Likewise.
19887 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
19888 ra_print_rtl_with_bb): Likewise.
19889 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
19890 * recog.c (next_insn_tests_no_inequality, find_single_use,
19891 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
19892 * reg-stack.c (next_flags_user, record_label_references,
19893 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
19894 compensate_edge, convert_regs_1): Likewise.
19895 * regclass.c (scan_one_insn): Likewise.
19896 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
19897 regmove_optimize, fixup_match_1, single_set_for_csa,
19898 combine_stack_adjustments_for_block): Likewise.
19899 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
19900 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
19901 find_equiv_reg): Likewise.
19902 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
19903 reload_as_needed, emit_input_reload_insns, do_output_reload,
19904 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
19905 Likewise.
19906 * reorg.c (find_end_label, emit_delay_sequence,
19907 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
19908 get_jump_flags, rare_destination, mostly_true_jump,
19909 try_merge_delay_insns, redundant_insn, own_thread_p,
19910 fill_simple_delay_slots, fill_slots_from_thread,
19911 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
19912 dbr_schedule): Likewise.
19913 * resource.c (find_basic_block, next_insn_no_annul,
19914 find_dead_or_set_registers, mark_target_live_regs): Likewise.
19915 * rtl.h (RTX_PREV): Likewise.
19916 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
19917 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
19918 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
19919 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
19920 tablejump_p, computed_jump_p, insns_safe_to_move_p,
19921 find_first_parameter_load, can_hoist_insn_p): Likewise.
19922 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
19923 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
19924 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
19925 schedule_ebbs): Likewise.
19926 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
19927 is_conditionally_protected, can_schedule_ready_p,
19928 add_branch_dependences, debug_dependencies): Likewise.
19929 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
19930 Likewise.
19931 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
19932 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
19933 set_dominates_use, ujump_to_loop_cont): Likewise.
19934 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
19935 * varasm.c (output_constant_pool_1): Likewise.
19936
19937 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19938
19939 * tree-scalar-evolution.c: New file.
19940 * tree-scalar-evolution.h: New file.
19941 * tree-ssa-loop-niter.c: New file.
19942 * Makefile.in (SCEV_H): New.
19943 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
19944 * cfgloop.h (struct loop): Add bounds field.
19945 * tree-flow.h (struct tree_niter_desc): New type.
19946 (number_of_iterations_cond, number_of_iterations_exit,
19947 loop_niter_by_eval, find_loop_niter_by_eval,
19948 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
19949 free_numbers_of_iterations_estimates): Declare.
19950 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
19951 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
19952 * doc/invoke.texi (max-iterations-to-track): Document.
19953
19954 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
19955
19956 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
19957 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
19958 (MODE_AFTER): Add cast appropriately.
19959 * config/sh/sh.md (movdi splitter): Likewise.
19960 (casesi_worker_2): Add const qualifier appropriately.
19961 (eh_return): Remove unused variable.
19962 (insv): Initialize v;
19963
19964 2004-07-08 Richard Henderson <rth@redhat.com>
19965
19966 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
19967 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19968 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
19969 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
19970 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
19971
19972 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
19973 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19974 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
19975 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
19976
19977 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
19978 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19979 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
19980 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
19981
19982 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
19983 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19984 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
19985 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
19986
19987 * config/i860/i860-protos.h (i860_va_arg): Remove.
19988 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19989 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
19990 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
19991
19992 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
19993
19994 * system.h: Prototype getpagesize if missing.
19995 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
19996 * configure: Regenerate.
19997 * config.in: Regenerate.
19998
19999 2004-07-08 Richard Henderson <rth@redhat.com>
20000
20001 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
20002 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20003 (fr30_gimplify_va_arg_expr): New.
20004 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
20005 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
20006
20007 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
20008
20009 PR target/16414
20010 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
20011 of asm_noperands result.
20012
20013 2004-07-08 Richard Henderson <rth@redhat.com>
20014
20015 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
20016 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20017 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
20018 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
20019
20020 2004-07-08 Richard Henderson <rth@redhat.com>
20021
20022 * builtins.c (ind_gimplify_va_arg_expr): New.
20023 * tree.h (ind_gimplify_va_arg_expr): Declare.
20024 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
20025
20026 2004-07-08 Jan Beulich <jbeulich@novell.com>
20027
20028 * expmed.c (extract_bit_field): Correct condition to use vec_extract
20029 patterns also on vector elements other than the first one.
20030 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
20031 break statements.
20032
20033 2004-07-08 Geoffrey Keating <geoffk@apple.com>
20034
20035 * config/rs6000/darwin-ldouble.c: Correct reference
20036 to the Linnainmaa paper.
20037
20038 2004-07-08 Richard Henderson <rth@redhat.com>
20039
20040 * config/arc/arc-protos.h (arc_va_arg): Remove.
20041 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20042 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
20043 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
20044
20045 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
20046 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20047 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
20048 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
20049
20050 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20051
20052 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
20053
20054 2004-07-08 Zack Weinberg <zack@codesourcery.com>
20055
20056 * c-decl.c (static_ctors, static_dtors): Make static.
20057 (pop_file_scope): Call c_common_write_pch and
20058 cgraph_finalize_compilation_unit here.
20059 (build_cdtor): Moved here from c-objc-common.c; simplify.
20060 (c_write_global_declarations_1): Clarify comment.
20061 (c_write_global_declarations): Close the external scope before
20062 doing anything else. Call build_cdtor, cgraph_optimize, and
20063 mudflap_finish_file here.
20064 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
20065 Clarify comment.
20066 * c-objc-common.c: No need to include cgraph.h.
20067 (build_cdtor): Moved to c-decl.c.
20068 (c_objc_common_finish_file): Delete.
20069 * c-tree.h: Update to match.
20070 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
20071 (generate_static_references): Set TREE_USED before calling finish_decl.
20072 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
20073 on the static_instances_decl.
20074
20075 2004-07-08 Zack Weinberg <zack@codesourcery.com>
20076
20077 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
20078 decls when there is only one input translation unit.
20079 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
20080 change of 2004-07-05; do not treat declarations with
20081 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
20082 * opts.c (cur_in_fname): Delete.
20083 * opts.h: Likewise.
20084 * tree.c: Revert changes of 2004-07-05; no special treatment
20085 for TRANSLATION_UNIT_DECLs.
20086 * Makefile.in (tree.o): Update dependencies.
20087
20088 2004-07-08 Roger Sayle <roger@eyesopen.com>
20089
20090 * builtins.c (fold_builtin_strcpy): Merge functionality from
20091 simplify_builtin_strcpy. Add additional len argument. No longer
20092 static. Remove function prototype.
20093 (fold_builtin_strncpy): Likewise integrate functionality from
20094 simplify_builtin_strncpy. Add additional slen argument. No
20095 longer static. Remove function prototype.
20096 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
20097 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
20098 types of "ignore" and "unlocked" parameters to bool.
20099 (fold_builtin_1): Add additional ignore argument. Call renamed
20100 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
20101 builtins. Update arguments to fold_builtin_strncpy and
20102 fold_builtin_strcpy. Add function prototype.
20103 (fold_builtin): Add additional Boolean ignore argument to pass
20104 to fold_builtin_1.
20105 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
20106 and fold_builtin_strncpy instead of simplify_builtin_fputs,
20107 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
20108
20109 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
20110 simplify_builtin_strncpy): Delete function prototypes.
20111 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
20112 fold_builtin_strncpy): Add function prototypes here.
20113 (fold_builtin): Update function prototype with new "bool ignore".
20114
20115 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
20116 (ccp_fold_builtin): Update call to fold_builtin. Call
20117 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
20118 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
20119 simplify_builtin_strncpy respectively.
20120 * fold-const.c (fold): Update call to fold_builtin.
20121
20122 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
20123
20124 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
20125 to strcpy.
20126
20127 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
20128 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
20129 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
20130 * calls.c: Remove ifdefs of macros above.
20131 * functions.c: Likewise.
20132 * expr.c: Likewise.
20133
20134 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20135
20136 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
20137 (arch attribute): Delete.
20138 (current_function_calls_alloca attribute): Rename into calls_alloca.
20139 (calls_eh_return): New attribute.
20140 (leaf_function): Likewise.
20141 (length attribute): Fix formula for sibcalls.
20142 (return insn): Correctly compute the 'length' attribute.
20143 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
20144
20145 2004-07-08 Richard Henderson <rth@redhat.com>
20146
20147 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
20148 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
20149 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
20150 * tree-eh.c (lower_eh_constructs_1): Likewise.
20151 * tree-sra.c (sra_walk_modify_expr): Likewise.
20152 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20153 (eliminate_unnecessary_stmts): Likewise.
20154 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
20155 * tree-tailcall.c (optimize_tail_call): Likewise.
20156 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
20157
20158 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
20159 Jakub Jelinek <jakub@redhat.com>
20160
20161 * config/i386/i386.c (override_options): Enable
20162 SSE prefetches with -mtune, as long as we are
20163 compiling for i686 or higher. All i686 processors
20164 accept SSE prefetches as NOPS, some i586's don't.
20165
20166 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20167
20168 PR target/10567
20169 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
20170
20171 2004-07-08 Diego Novillo <dnovillo@redhat.com>
20172
20173 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
20174 the handling of clobbering ASM_EXPRs.
20175
20176 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20177
20178 PR target/16430
20179 * config/sparc/sparc.c (function_value): In 64-bit mode,
20180 return the aggregates larger than 16 bytes like unions.
20181
20182 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20183
20184 PR target/16199
20185 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
20186 'temp' is zero, generate new pseudos as needed and emit the
20187 sequence of insns in single-assignment form. Resync comments
20188 with code.
20189 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
20190 function before reload.
20191
20192 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
20193
20194 * vec.c (vec_assert_fail): Remove duplicate 'function'.
20195
20196 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
20197
20198 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
20199 Allocation is signed.
20200 (VEC_reserve): Return flag, allocation is signed.
20201
20202 2004-07-08 Richard Henderson <rth@redhat.com>
20203
20204 * tree-ssa-ccp.c (fold_stmt): Get type directly from
20205 OBJ_TYPE_REF_OBJECT.
20206
20207 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
20208 Neil Booth <neil@daikokuya.co.uk>
20209
20210 PR c/2511
20211 PR c/3325
20212 * c-decl.c (finish_struct): Ensure bit-fields are given the
20213 correct type.
20214 * c-common.c (c_common_signed_or_unsigned_type): For C, require
20215 the precision to match as well as the mode.
20216 * expr.c (reduce_to_bit_field_precision): New function.
20217 (expand_expr_real_1): Reduce expressions of bit-field type to
20218 proper precision.
20219 * langhooks.h (reduce_bit_field_operations): New hook.
20220 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
20221 Define.
20222 * c-lang.c, objc/objc-lang.c
20223 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
20224 * objc/objc-act.c (check_ivars): Convert types to bit-field types
20225 before checking.
20226 * tree.c (build_nonstandard_integer_type): New function.
20227 * tree.h (build_nonstandard_integer_type): New prototype.
20228 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
20229 conversions between integer and boolean types as useless.
20230
20231 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
20232
20233 * c-common.c (c_common_nodes_and_builtins): Do not
20234 create __builtin_ptrdiff_t and __builtin_size_t.
20235
20236 2004-07-08 Andrew Pinski <apinski@apple.com>
20237
20238 * Makefile.in (libbackend.o): Add -combine to the gcc
20239 command line.
20240
20241 2004-07-08 Nick Clifton <nickc@redhat.com>
20242
20243 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
20244 Set to -Os.
20245
20246 2004-07-08 Richard Henderson <rth@redhat.com>
20247
20248 * except.c (expand_eh_region_start, expand_eh_region_end,
20249 expand_eh_handler, expand_eh_region_end_cleanup,
20250 expand_start_all_catch, expand_start_catch, expand_end_catch,
20251 expand_end_all_catch, expand_eh_region_end_allowed,
20252 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
20253 expand_eh_region_end_fixup): Remove.
20254 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
20255 cleanups, outer_cleanups, label_chain, exception_region.
20256 (struct goto_fixup): Remove stack_level, cleanup_list_list.
20257 (struct label_chain): Remove.
20258 (struct stmt_status): Remove x_stack_block_stack.
20259 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
20260 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
20261 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
20262 end_cleanup_deferral, last_cleanup_this_contour,
20263 containing_blocks_have_cleanups_or_stack_level,
20264 any_pending_cleanups): Remove.
20265 (expand_null_return_1): Take no arguments.
20266 (expand_label, expand_naked_return, expand_return,
20267 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
20268 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
20269 expand_end_case_type): Don't use any of them.
20270 * calls.c (expand_call): Likewise.
20271 * dojump.c (do_jump): Likewise.
20272 * function.c (expand_function_end): Likewise.
20273 * expr.c (store_expr, expand_expr_real_1): Likewise.
20274 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
20275 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
20276 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
20277 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
20278 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
20279 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
20280 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
20281 for WITH_CLEANUP_EXPR.
20282 (gimple_push_cleanup): Likewise.
20283 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
20284 * print-tree.c (print_node): Likewise.
20285 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
20286 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
20287 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
20288 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
20289 (GOTO_SUBROUTINE_EXPR): Remove.
20290 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
20291 (DECL_TOO_LATE): Remove.
20292 * except.h, tree.h: Update decls.
20293
20294 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
20295
20296 * explow.c (optimize_save_area_alloca): Do not accept parameters.
20297 * passes.c (rest_of_handle_final): Handle symout.
20298 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
20299 Push timevar here.
20300 (rest_of_handle_sched): Break out SMS. Remove ifs for
20301 flag_schedule_insns and flag_modulo_sched.
20302 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
20303 collect at the end.
20304 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
20305 (rest_of_handle_partition_blocks, rest_of_handle_sms,
20306 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
20307 rest_of_handle_mode_switching, rest_of_handle_jump,
20308 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
20309 rest_of_handle_jump2, rest_of_handle_postreload,
20310 rest_of_handle_flow2, rest_of_clean_state,
20311 rest_of_handle_shorten_branches,
20312 rest_of_handle_prologue_epilogue,
20313 rest_of_handle_branch_target_load_optimize): New.
20314 (rest_of_compilation): Call the above. Remove ggc_collect
20315 calls moved to rest_of_handle_*.
20316 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
20317
20318 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
20319 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
20320 * except.h (set_nothrow_function_flags): Update comment.
20321 * function.c (current_function_nothrow): Remove.
20322 * output.h (current_function_nothrow): Remove.
20323 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
20324 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
20325
20326 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20327
20328 PR bootstrap/16326
20329 * reorg.c: Revert 2004-06-30 change.
20330 (find_end_label): If HAVE_epilogue and !HAVE_return,
20331 return 0 instead of creating a label at the end of the insn chain.
20332 (optimize_skip): Account for the failure mode of find_end_label.
20333 (fill_simple_delay_slots): Likewise.
20334 (fill_slots_from_thread): Likewise.
20335 (relax_delay_slots): Likewise.
20336
20337 2004-07-08 Diego Novillo <dnovillo@redhat.com>
20338
20339 * tree-flow.h (addressable_vars): Declare.
20340 * tree-ssa-alias.c (addressable_vars): Define.
20341 (setup_pointers_and_addressables): Add addressable variables
20342 to addressable_vars.
20343 * tree-ssa-operands.c (get_stmt_operands): Move
20344 handling of ASM_EXPRs ...
20345 (get_asm_expr_operands): ... here.
20346 When the ASM_EXPR clobbers memory, also clobber addressable
20347 variables.
20348 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
20349 (delete_tree_ssa): Reset addressable_vars.
20350
20351 2004-07-07 Jan Beulich <jbeulich@novell.com>
20352 Richard Henderson <rth@redhat.com>
20353
20354 * varasm.c (assemble_variable): Use assemble_zeros for
20355 zero-initialized variables.
20356 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
20357 for SECCAT_BSS and SECCAT_TBSS.
20358
20359 2004-07-07 Jan Beulich <jbeulich@novell.com>
20360
20361 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
20362
20363 * expmed.c (emit_store_flag): Also special-case double-word
20364 (in-)equality comparison against -1.
20365
20366 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
20367 passing arguments the containers for which are registers.
20368
20369 * calls.c (emit_library_call_value_1): Use mode of function parameter
20370 rather than that of argument since constants have none.
20371
20372 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
20373
20374 Introduce H8SX support.
20375 * expr.c (expand_strcpy): Renamed and moved to...
20376 * builtins.c (expand_movstr): ... here. Tweak.
20377 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
20378 computed or has side effects.
20379 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
20380 unused, or if mempcpy fails. Adjust the return value in the
20381 latter case. Use movstr if everything else fails.
20382 * doc/md.texi (movstr): Document.
20383 (movmemM, clrmemM): Fix explanation of memory block operands.
20384 * config/h8300/h8300.md (stpcpy): Renamed to...
20385 (movstr): ... this. Adjust.
20386 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
20387 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
20388 movmem* and clrstr* to clrmem*.
20389 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
20390 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
20391 GENERAL_REGS, always.
20392 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
20393 getting the stack pointer as addr.
20394 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
20395 from general_operand_dst.
20396 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
20397 variant of...
20398 (movmd_internal): ... this. Add modes to operands. Disparage `D'
20399 instead of requiring it to match only before reload.
20400 (stpcpy_internal_normal): New, normal-mode variant of...
20401 (stpcpy_internal): ... this. Add modes to operands. Disparage
20402 `D' instead of requiring it to match only before reload.
20403 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
20404 mode argument.
20405 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
20406 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
20407 h8300_get_index.
20408 * config/h8300/h8300.md (attr type): Add call.
20409 (attr can_delay): If type is call, set it no.
20410 (call, call_value): Set type to call.
20411 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
20412 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
20413 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
20414 * tree.c (get_narrower): Don't narrow integral types into
20415 non-integral types.
20416 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
20417 frame_size *before* the first use.
20418 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
20419 on input.
20420 (peephole2): Don't widen instructions that push SP. Move
20421 decrement of SP to the end of all stm-generating peepholes.
20422 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
20423 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
20424 and OR to set it to all ones.
20425 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
20426 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
20427 (call, call_value): Set can_delay to "no".
20428 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
20429 * config/h8300/h8300.md (extzv): Make subreg check more robust.
20430 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
20431 * config/h8300/h8300.md (*brabit): Remove.
20432 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
20433 zero_extract. Use bit_memory_operand as the predicate for
20434 operand 1 and 'WU' as the constraint. Check the difference
20435 between the base length and the final one when deciding which
20436 type of branch to use.
20437 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
20438 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
20439 Use convert_move to extend the result for TARGET_H8300SX. Check
20440 for QImode memory references. Optimize the case where the
20441 destination is a paradoxical subreg.
20442 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
20443 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
20444 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
20445 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
20446 * config/h8300/h8300.md: Include mova.md
20447 (length_table): Add mova and mova_zero.
20448 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
20449 after all constant addresses for '%R', '%X', '%T' and '%S'.
20450 (h8300_mova_length): New function.
20451 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
20452 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
20453 dependencies for s-config, etc.
20454 * config/h8300/gemova.sh: New file.
20455 * config/h8300/mova.md: Generated.
20456 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
20457 * config/h8300/h8300.c (h8300_bitfield_length): New.
20458 (nibble_operand): Adjust.
20459 (h8300_binary_length): Handle conditional binary op.
20460 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
20461 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
20462 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
20463 and P#<0, unused so far. W and Y are now prefixes to multi-letter
20464 constraints. WU is introduced as a variant of U that requires a
20465 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
20466 * config/h8300/h8300.md (attr type): Added bitbranch.
20467 (attr length_table): Added bitfield and bitbranch.
20468 (attr length): Compute bitbranch length.
20469 (andqi): Separate pattern for H8300SX. Use bfld for loading the
20470 least-significant bit of a byte.
20471 (brabit, brabc, brabs): New.
20472 (insv, extzv): Emit bfst and bfld on H8300SX.
20473 (bfld, bfst, seq, sne): New.
20474 (bstzhireg, cmpstz, bstz, bistz): New.
20475 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
20476 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
20477 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
20478 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
20479 (h8sx_unary_memory_operator): New function.
20480 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
20481 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
20482 * config/h8300/h8300.md: Add peepholes to combine reloads and
20483 arithmetic insns.
20484 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
20485 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
20486 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
20487 (and?i, ior?i, xor?i): Likewise.
20488 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
20489 * config/h8300/h8300.c: Move enums and prototypes to head of file.
20490 Various whitespace fixes.
20491 (h8300_constant_length): New function, split out from...
20492 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
20493 (h8300_classify_operand): Use IN_RANGE.
20494 (h8300_classify_operand): Use h8300_constant_length.
20495 (h8300_short_move_mem_p): Tighten size check.
20496 (h8sx_mergeable_memrefs_p): Tighten equality check.
20497 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
20498 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
20499 for -msx.
20500 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
20501 * config/h8300/crtn.asm: Likewise.
20502 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
20503 if __H8300SX__ is defined.
20504 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
20505 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
20506 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
20507 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
20508 addresses as mode-dependent.
20509 * config/h8300/h8300.c (print_operand_address): Update call to
20510 h8300_get_index.
20511 (h8300_get_index): Take a mode argument. Rework to fix an
20512 earlier misunderstanding.
20513 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
20514 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
20515 into a register if TARGET_H8300SX.
20516 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
20517 TARGET_H8300SX. Also disable related define_splits.
20518 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
20519 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
20520 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
20521 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
20522 * config/h8300/h8300.h (OK_FOR_Z): New macro.
20523 (EXTRA_CONSTRAINT_STR): Check it.
20524 * config/h8300/h8300.c (h8300_classify_operand): Accept null
20525 class arguments.
20526 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
20527 * config/h8300/h8300.md (length_table): Add mov_imm4.
20528 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
20529 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
20530 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
20531 be a label.
20532 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
20533 * config/h8300/h8300.c (h8300_reorg): New function.
20534 (TARGET_MACHINE_DEPENDENT_REORG): Define.
20535 * config/h8300/h8300.md (length): Subtract the length of the
20536 delay slot from (pc) when checking the range of forward branches.
20537 (delay_slot, can_delay): New attributes.
20538 (define_delay): Add bra/s handling.
20539 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
20540 (jump): Add delayed-branch handling.
20541 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
20542 * expr.c (expand_strcpy): New function.
20543 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
20544 (expand_builtin_stpcpy): Likewise.
20545 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
20546 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
20547 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
20548 handling to improve register allocation for -fno-omit-frame-pointer.
20549 (h8sx_split_movmd): Delete, moving er6 handling into...
20550 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
20551 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
20552 (movmd): Add calls to copy_rtx.
20553 (movmd_internal): In the second alternative, allow the initial and
20554 final destination registers to be different . Update the splitter
20555 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
20556 instead of h8sx_split_movmd.
20557 (stpcpy, movsd): New expanders.
20558 (movsd_internal): New define_insn.
20559 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
20560 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
20561 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
20562 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
20563 and DESTINATION_REGS.
20564 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
20565 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
20566 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
20567 (h8300_move_ratio): Declare.
20568 (MOVE_RATIO): Use it.
20569 * config/h8300/h8300.c (h8300_move_ratio): New variable.
20570 (h8300_init_once): Initialize it.
20571 (h8300_reg_class_from_letter): New function.
20572 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
20573 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
20574 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
20575 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
20576 (movstrsi, movmd): New expanders.
20577 (movmd_internal): New insn.
20578 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
20579 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
20580 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
20581 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
20582 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
20583 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
20584 * config/h8300/h8300.c (nibble_operand): Fix warning.
20585 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
20586 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
20587 (movsf_h8300h): Disable for TARGET_H8300SX.
20588 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
20589 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
20590 h8300_stm_parallel and h8300_return_parallel.
20591 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
20592 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
20593 h8300_stm_parallel, h8300_return_parallel): New functions.
20594 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
20595 if TARGET_H8300SX. Use h8300_push_pop.
20596 (h8300_expand_epilogue): Likewise. Try to merge the return insn
20597 and final pop when generating h8sx code. Always emit some form
20598 of return insn.
20599 * config/h8300/h8300.md: Don't enforce register alignment in
20600 stm peepholes if TARGET_H8300SX.
20601 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
20602 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
20603 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
20604 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
20605 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
20606 (MULTILIB_DIRNAMES): Add a directory for it.
20607 (MULTILIB_MATCHES): Delete.
20608 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
20609 * final.c (walk_alter_subreg): Handle addresses with subregs
20610 inside a ZERO_EXTEND or AND.
20611 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
20612 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
20613 if TARGET_H8300SX.
20614 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
20615 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
20616 @(dd,Rn.w) and @(dd,ERn.L).
20617 (h8300_displacement_size): Take the whole address as argument.
20618 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
20619 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
20620 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
20621 (h8sx_mergeable_memrefs_p): Declare.
20622 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
20623 (HAVE_PRE_INCREMENT): Likewise.
20624 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
20625 addresses for TARGET_H8300SX,
20626 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
20627 and POST_DEC.
20628 (movb_length_table, movl_length_table): New tables.
20629 (movw_length_table): Define to movb_length_table.
20630 (h8300_displacement_size): New, split out from...
20631 (h8300_classify_address): ...here. Handle pre/post inc/dec.
20632 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
20633 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
20634 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
20635 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
20636 (compute_plussi_length, compute_plussi_cc): Update accordingly.
20637 (h8sx_unary_shift_operator): Get the mode from the operator.
20638 (binary_shift_operator): Likewise.
20639 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
20640 a memory reference, check whether the reference is offsettable.
20641 (length_table): Add movb, movw and movl.
20642 (movqi): Add new h8sx pattern. Don't force one operand to be a
20643 register when generating h8sx code.
20644 (movhi, movsi, movsf): Likewise.
20645 (movstrictqi): Use the length_table attribute.
20646 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
20647 (addqi3): Split into a define_expand and define_insn. Don't accept
20648 memory operands in the expander. Use h8300_operands_match_p to
20649 check for matching operands in the define_insn.
20650 (subqi3, negqi2, one_cmplqi2): Likewise.
20651 (add[hs]i3): Don't accept memory operands in the expander. Likewise
20652 in any patterns that are unused in h8sx code. In the h8sx patterns,
20653 use h8300_operands_match_p to check whether operands match.
20654 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
20655 one_cmpl[hs]i3): Likewise.
20656 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
20657 in the expander.
20658 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
20659 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
20660 (h8300_insn_length_from_table): Add a second parameter.
20661 (output_h8sx_shift): Declare.
20662 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
20663 (EXTRA_CONSTRAINT): Replace with...
20664 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
20665 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
20666 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
20667 and h8sx_binary_shift_operator.
20668 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
20669 for TARGET_H8300SX.
20670 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
20671 (bit_memory_operand, fix_bit_operand): Likewise.
20672 (h8300_length_table_for_insn): Remove.
20673 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
20674 instructions.
20675 (h8300_short_immediate_length, h8300_binary_length): New functions.
20676 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
20677 (output_plussi): Use sub to add negative constants.
20678 (compute_plussi_length): Adjust accordingly.
20679 (h8sx_single_shift_type): New enum.
20680 (h8sx_single_shift, h8sx_unary_shift_operator,
20681 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
20682 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
20683 single h8sx instruction. Return false in this case.
20684 * config/h8300/h8300.md (length_table): Add short_immediate.
20685 (length): Pass the operand array to h8300_insn_length_from_table.
20686 (adjust_length): Assume "no" for insns with a length_table attribute.
20687 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
20688 (*addhi3_h8300hs): Don't use for h8sx.
20689 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
20690 and sub.w #xx:3.
20691 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
20692 1's predicate to nonimmediate_operand. Only skip default expansion
20693 if expand_a_shift or expand_a_rotate returns true. Add new patterns
20694 for single h8sx shift instructions.
20695 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
20696 * config/h8300/h8300.c (nibble_operand): Split out of...
20697 (reg_or_nibble_operand): ... this.
20698 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
20699 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
20700 umulhisi3): Introduce expand, and introduce separate insns for
20701 sign- or zero-extended REG and already-extended CONST_INT.
20702 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
20703 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
20704 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
20705 (subhi3): Likewise. Don't accept immediates for operand 1.
20706 Remove the early clobber from second alternative of the h8300s pattern.
20707 (subsi3): Generalize for h8sx. Force operand 2 into a register
20708 on plain h8300 targets.
20709 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
20710 (subsi3_h8300h): Generalize for h8sx.
20711 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
20712 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
20713 * config/h8300/h8300.c (reg_or_nibble_operand): New.
20714 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
20715 (TARGET_H8300SXMUL): New.
20716 (CONST_OK_FOR_P): New.
20717 (CONST_OK_FOR_LETTER_P): Adjust.
20718 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
20719 umulhisi3): Accept 4-bit immediate on H8SX.
20720 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
20721 (udivsi3, divhi3, udivsi3, divsi3): New.
20722 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
20723 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
20724 * config/h8300/h8300.h (OK_FOR_Q): New macro.
20725 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
20726 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
20727 Add ADDRESSOF to the bit_operand entry.
20728 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
20729 (h8300_src_operand): Likewise.
20730 (bit_operand): Check nonimmediate_operand rather than general_operand.
20731 Accept any nonimmediate_operand in h8sx code.
20732 (h8300_and_costs): Initialize operands[1].
20733 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
20734 (h8300_operand_class): New enum.
20735 (h8300_length_table): New typedef.
20736 (addb_length_table, addw_length_table, addl_length_table,
20737 logicl_length_table): New tables.
20738 (logicb_length_table, logicw_length_table): New macros.
20739 (h8300_classify_operand, h8300_length_from_table,
20740 h8300_length_table_for_insn, h8300_unary_length,
20741 h8300_insn_length_from_table): New functions.
20742 (output_plussi): Only use adds and subs for register destinations.
20743 Disable redundant clause.
20744 (compute_plussi_cc): Likewise.
20745 (compute_plussi_length): Likewise. Use h8300_length_from_table
20746 to work out the length of an insn.
20747 (output_logical_op): Only use narrower immediate instructions
20748 if the destination is a register.
20749 (compute_logical_op_cc): Likewise.
20750 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
20751 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
20752 * config/h8300/h8300.md (length_table): New attribute.
20753 (length): When an instruction has a length_table attribute, use
20754 h8300_insn_length_from_table to calculate its default length.
20755 (cmpqi): Use h8300_dst_operand for the first operand and
20756 h8300_src_operand for the second.
20757 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
20758 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
20759 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
20760 iorsi3, xorhi3, xorsi3): Likewise.
20761 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
20762 so that it allows any combination of operands for TARGET_H8300SX.
20763 (iorqi3, xorqi3): Likewise.
20764 (cmpqi): Use the length_table attribute.
20765 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
20766 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
20767 (cmpqi): Add 'Q' constraint.
20768 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
20769 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
20770 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
20771 * config/h8300/h8300.h (MASK_H8300SX): New macro.
20772 (TARGET_H8300S): True for both -ms and -msx.
20773 (TARGET_H8300SX): New macro.
20774 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
20775 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
20776 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
20777 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
20778 [Temporary change.]
20779 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
20780 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
20781 16-bit pointers and 32-bit ints.
20782 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
20783 CONST_DOUBLE with mode no wider than SImode.
20784 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
20785 output operand.
20786 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
20787 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
20788 or SUBREG thereof.
20789 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
20790 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
20791 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
20792
20793 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
20794
20795 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
20796
20797 2004-07-07 Per Bothner <per@bothner.com>
20798
20799 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
20800
20801 2004-07-07 Mike Stump <mrs@apple.com>
20802
20803 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
20804 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
20805 (machopic_finish): Likewise.
20806
20807 2004-07-07 Richard Henderson <rth@redhat.com>
20808
20809 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
20810 through any value-preserving cast.
20811
20812 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
20813
20814 * function.c (assign_parm_find_data_types): Call
20815 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
20816
20817 2004-07-07 Steven Bosscher <stevenb@suse.de>
20818
20819 * tree-cfg.c (group_case_labels): Remove case labels that have
20820 the same target as the default case.
20821
20822 2004-07-07 Steven Bosscher <stevenb@suse.de>
20823
20824 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
20825 regardless of DECL_LANG_SPECIFIC being present or not.
20826 * tree.h (DECL_NUM_STMTS): Purge.
20827
20828 2004-07-07 Andrew Pinski <apinski@apple.com>
20829
20830 * configure: Regenerate with the right autoconf.
20831
20832 2004-07-07 David Edelsohn <edelsohn@gnu.org>
20833
20834 * ifcvt.c (total_bb_rtx_cost): New function.
20835 (find_if_case_1): Compare rtx_cost of basic block to cost of
20836 BRANCH_COST insns.
20837 (find_if_case_2): Same.
20838
20839 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
20840
20841 PR target/10567
20842 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
20843 (output_return): Likewise.
20844 (output_sibcall): Abort if !flag_delayed_branch.
20845 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
20846 (emit_and_preserve): New function.
20847 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
20848 indirect jump to the thunked-to function if !flag_delayed_branch.
20849 * config/sparc/sparc.md (delayed_branch): New attribute.
20850 (load_pcrel_sym): Honor flag_delayed_branch. Use above
20851 attribute to compute the length of the insn.
20852 (goto_handler_and_restore): Likewise.
20853
20854 2004-07-07 Andrew Pinski <apinski@apple.com>
20855
20856 PR tree-optimization/15777
20857 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
20858
20859 * expr.c (expand_expr_real_1): Fix formating.
20860 BUFFER_REF and IN_EXPR are dead.
20861 * fold-const.c (non_lvalue): BUFFER_REF is dead.
20862 * tree-inline.c (estimate_num_insns_1): Likewise.
20863 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
20864 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
20865 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
20866
20867 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
20868
20869 * collect2.c (dump_file): Don't call cplus_demangle if
20870 HAVE_LD_DEMANGLE is defined.
20871 (main): Pass "--demangle" to ld if no_demangle is not 0 and
20872 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
20873 if HAVE_LD_DEMANGLE is defined.
20874
20875 * configure.ac (--with-demangler-in-ld): Added
20876 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
20877 --with-demangler-in-ld is used.
20878 * config.in: Regenerated.
20879 * configure: Likewise.
20880
20881 2004-07-07 Roger Sayle <roger@eyesopen.com>
20882
20883 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
20884 for simple floating point operations "fp", double precision
20885 multiplication "dmul", and single and double precision division
20886 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
20887 (ppc630_cost): New table split from ppc620_cost, to distinguish
20888 differences in floating point latencies.
20889 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
20890 (rs6000_rtx_costs): Add support for single and double precision
20891 floating point addition, subtraction, multiplication, division,
20892 fused-multiply-add, fused-multiply-sub, negation, absolute value
20893 and negative absolute value. Tweak MEM case to use prefered idiom.
20894
20895 2004-07-07 Richard Henderson <rth@redhat.com>
20896
20897 * tree-flow-inline.h (may_propagate_copy): Move...
20898 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
20899 attempt to copy between types requiring conversion.
20900 * tree-flow.h (may_propagate_copy): Update decl.
20901 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
20902
20903 2004-07-07 Jakub Jelinek <jakub@redhat.com>
20904
20905 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
20906 from -mtune= option.
20907
20908 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
20909
20910 * builtins.c: Rename movstr*, except for movstrict*, to
20911 movmem* and clrstr* to clrmem*.
20912 * expr.c: Likewise.
20913 * expr.h: Likewise.
20914 * genopinit.c: Likewise.
20915 * integrate.c: Likewise.
20916 * local-alloc.c: Likewise.
20917 * optabs.c: Likewise.
20918 * optabs.h: Likewise.
20919 * config/alpha/alpha.h: Likewise.
20920 * config/alpha/alpha.md: Likewise.
20921 * config/arm/arm-protos.h: Likewise.
20922 * config/arm/arm.c: Likewise.
20923 * config/arm/arm.md: Likewise.
20924 * config/avr/avr.md: Likewise.
20925 * config/c4x/c4x.c: Likewise.
20926 * config/c4x/c4x.md: Likewise.
20927 * config/frv/frv.md: Likewise.
20928 * config/i386/i386-protos.h: Likewise.
20929 * config/i386/i386.c: Likewise.
20930 * config/i386/i386.h: Likewise.
20931 * config/i386/i386.md: Likewise.
20932 * config/i860/i860.c: Likewise.
20933 * config/i860/i860.md: Likewise.
20934 * config/ip2k/ip2k.md: Likewise.
20935 * config/ip2k/libgcc.S: Likewise.
20936 * config/ip2k/t-ip2k: Likewise.
20937 * config/m32r/m32r.c: Likewise.
20938 * config/m32r/m32r.md: Likewise.
20939 * config/mcore/mcore.md: Likewise.
20940 * config/mips/mips.c: Likewise.
20941 * config/mips/mips.md: Likewise.
20942 * config/ns32k/ns32k.c: Likewise.
20943 * config/ns32k/ns32k.h: Likewise.
20944 * config/ns32k/ns32k.md: Likewise.
20945 * config/pa/pa.c: Likewise.
20946 * config/pa/pa.md: Likewise.
20947 * config/pdp11/pdp11.h: Likewise.
20948 * config/pdp11/pdp11.md: Likewise.
20949 * config/rs6000/rs6000.c: Likewise.
20950 * config/rs6000/rs6000.md: Likewise.
20951 * config/s390/s390-protos.h: Likewise.
20952 * config/s390/s390.c: Likewise.
20953 * config/s390/s390.md: Likewise.
20954 * config/sh/lib1funcs.asm: Likewise.
20955 * config/sh/sh.c: Likewise.
20956 * config/sh/sh.md: Likewise.
20957 * config/sh/t-sh: Likewise.
20958 * config/sparc/sparc.h: Likewise.
20959 * config/vax/vax.md: Likewise.
20960 * config/xtensa/xtensa.c: Likewise.
20961 * config/xtensa/xtensa.md: Likewise.
20962 * doc/invoke.texi: Likewise.
20963 * doc/md.texi: Likewise.
20964 * doc/rtl.texi: Likewise.
20965
20966 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
20967
20968 PR target/16407
20969 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
20970 * config/mips/mips.c (mips_declare_common_object): New function,
20971 mostly split out from...
20972 (mips_output_aligned_decl_common): ...here.
20973 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
20974 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
20975 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
20976 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
20977
20978 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20979
20980 PR c/16392
20981 * function.c (assign_parms): Fix typo from previous change.
20982
20983 2004-07-07 Jason Merrill <jason@redhat.com>
20984
20985 PR c++/15815
20986 * doc/extend.texi (C++ Interface): Correct information and
20987 discourage use.
20988
20989 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
20990
20991 PR target/16130
20992 PR target/16142
20993 PR target/16143
20994 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
20995 insn.
20996
20997 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
20998
20999 PR target/1679.
21000 * config/m32r/m32r.c (m32r_function_symbol): New function:
21001 Generate a symbol name RTX with the correct m32r specific flags
21002 set.
21003 (block_move_call): Use new function to generate correct symbol.
21004 * config/m32r/m32r-protos.h: Add prototype for new funcion.
21005 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
21006 function.
21007
21008 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
21009
21010 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
21011 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
21012 TYPE_BINFO_BASETYPE): Remove.
21013 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
21014 to ...
21015 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
21016 here.
21017 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
21018 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
21019 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
21020 (struct tree_binfo): Rename base_types to base_binfos.
21021 * alias.c (record_component_aliases): Adjust BINFO macros.
21022 * dbxout.c (dbxout_type): Likewise.
21023 * dwarf2out.c (gen_member_die): Likewise.
21024 * sdbout.c (sdbout_one_type): Likewise.
21025 * tree-dump.c (deque_and_dump): Likewise.
21026 * config/i386/i386.c (classify_argument,
21027 contains_128bit_aligned_vector_p): Likewise.
21028
21029 2004-07-07 Nick Clifton <nickc@redhat.com>
21030
21031 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
21032 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
21033
21034 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
21035
21036 * vec.h: Fix the example use.
21037
21038 2004-07-06 Richard Henderson <rth@redhat.com>
21039
21040 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
21041 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
21042 * tree-inline.c (copy_body_r, setup_one_parameter,
21043 initialize_inlined_parameters, expand_call_inline,
21044 declare_inline_vars): Don't check it.
21045 (expand_calls_inline): Remove old version, rename new version
21046 from gimple_expand_calls_inline.
21047 * tree-optimize.c (execute_gimple): Remove.
21048 (pass_gimple): Don't run anything.
21049
21050 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
21051
21052 * doc/sourcebuild.texi: Use semicolons instead of commas in
21053 section title.
21054
21055 2004-07-06 Richard Henderson <rth@redhat.com>
21056
21057 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
21058 (sra_walk_modify_expr, scan_init): Likewise.
21059 (generate_element_zero): Check visited before scanning children.
21060 (generate_element_init): Set visited on error.
21061 (scalarize_init): Handle generate_element_init failure similar
21062 to use_block_copy.
21063
21064 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
21065
21066 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
21067 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
21068
21069 2004-07-06 Richard Henderson <rth@redhat.com>
21070
21071 * config/i386/i386.c (legitimize_pic_address): Make static.
21072 (legitimize_address): Handle CONST with TLS operand.
21073 (ix86_expand_move): Don't call legitimize_pic_address directly.
21074 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
21075
21076 2004-07-06 Roger Sayle <roger@eyesopen.com>
21077
21078 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
21079 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
21080 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
21081 is currently executed unconditionally, i.e. not in "else_bb".
21082
21083 2004-07-06 Steven Bosscher <stevenb@suse.de>
21084
21085 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
21086 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21087 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
21088 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21089 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
21090 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21091 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
21092 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21093 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
21094 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21095 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
21096 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21097 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
21098 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21099 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
21100 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21101
21102 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
21103
21104 * dojump.c (do_jump): REFERENCE_EXPR is dead.
21105 * expr.c (expand_expr_real_1): Ditto.
21106 * tree-inline.c (estimate_num_insns_1): Ditto.
21107 * tree-pretty-print.c (dump_generic_node): Ditto.
21108 (op_symbol): Ditto.
21109 * tree.def: Ditto.
21110
21111 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
21112
21113 * tree-ssa-pre.c (reference_node_pool): New pool.
21114 (find_or_generate_expression): Class 'r' is okay too.
21115 (create_value_expr_from): Ditto.
21116 (add_to_sets): LHS should not include vuses.
21117 (eliminate): Ditto.
21118 (compute_avail): Reverse ordering of tests.
21119 Valuize INDIRECT_REF as well.
21120
21121 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
21122
21123 PR rtl-optimization/16380
21124 * loop.c (check_dbra_loop): Sink comparison instructions if they
21125 do something other than set cc0.
21126
21127 2004-07-06 James E Wilson <wilson@specifixinc.com>
21128
21129 * doc/interface.texi (longjmp and automatic variables): Delete
21130 paragraph recommending taking the address of a variable.
21131
21132 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
21133
21134 * vec.h (VEC_embedded_alloc): Remove.
21135 (VEC_embedded_size, VEC_embedded_init): New.
21136 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
21137 MEM_STAT_INFO.
21138 (VEC_truncate): New.
21139 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
21140 (vec_embedded_alloc): Remove.
21141 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
21142 (vec_embedded_alloc): Remove.
21143
21144 2004-07-06 Mark Mitchell <mark@codesourcery.com>
21145
21146 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
21147 (gt-langhooks.h): Remove.
21148
21149 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
21150
21151 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
21152
21153 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
21154
21155 * config/sparc/sparc.c (get_pc_symbol): Rename into
21156 add_pc_to_pic_symbol.
21157 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
21158 (load_pic_register): Account for previous changes.
21159 Use reg_names. Don't create the label twice.
21160 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
21161 UNSPEC_LOAD_PCREL_SYM.
21162 (get_pc): Rename into load_pcrel_sym. Add predicate to
21163 operands. Remove condition.
21164
21165 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
21166
21167 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
21168 RECORD, UNION & QUAL_UNION is actually a binfo.
21169
21170 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
21171 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
21172 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
21173 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
21174 * dwarf2out.c (add_data_member_location_attribute): Likewise.
21175 (gen_inheritance_die): Likewise.
21176 * tree-dump.c (deque_and_dump): Likewise.
21177 * doc/c-tree.texi (Binfos): Add under reconstruction note.
21178
21179 2004-07-06 Steven Bosscher <stevenb@suse.de>
21180
21181 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
21182 Define.
21183 * config/mcore/mcore.md: Model memory latency with a simple DFA
21184 pipeline description instead of a define_function_unit.
21185
21186 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21187
21188 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
21189 * langhooks.h (var_mod_type_p): Likewise.
21190 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
21191 * expr.c (count_type_elements): Properly handle return from
21192 array_type_nelts and properly test for overflow.
21193 * gimplify.c (gimplify_init_constructor): Properly handle return
21194 from array_type_nelts.
21195 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
21196 * integrate.c (copy_decl_for_inlining): Correct comments.
21197 * tree-inline.c (remap_decl): Update comments, remove dead code,
21198 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
21199 (remap_type): Only remap if variably modified by vars in function
21200 being inlined.
21201 (copy_body_r): Use compatible_type langhooks to see when can fold.
21202 (setup_one_parameter): Don't remap type.
21203 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
21204 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
21205 compute TREE_INVARIANT for decl case.
21206 (find_var_from_fn): New function.
21207 (variably_modified_type_p): Add arg and call new function.
21208 * tree.h (variably_modified_type_p): Add extra arg.
21209
21210 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
21211
21212 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
21213 (goto_handler_and_restore_v9): Delete disabled insn.
21214 (goto_handler_and_restore_v9_sp64): Likewise.
21215
21216 2004-07-05 Roger Sayle <roger@eyesopen.com>
21217
21218 * calls.c (load_register_parameters): Call expand_shift instead
21219 of expand_binop with ashl_optab (or other shift optab) directly.
21220 * expr.c (emit_group_load, emit_group_store): Likewise.
21221 * function.c (assign_parm_setup_block): Likewise.
21222 * stmt.c (shift_return_value): Likewise.
21223
21224 2004-07-05 Jakub Jelinek <jakub@redhat.com>
21225
21226 * expr.c (expand_assignment): Disable the bitfield += optimizations.
21227
21228 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
21229
21230 * doc/sourcebuild.texi: Revert previous patch.
21231
21232 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
21233
21234 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
21235 TARGET_MEM_FUNCTIONS.
21236 * system.h: Poison TARGET_MEM_FUNCTIONS.
21237 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
21238 bcmp_libfunc, bzero_libfunc): Remove.
21239 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
21240 bzero_libfunc.
21241 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
21242 * doc/standards.texi: Don't mention calling BSD string functions.
21243 * doc/invoke.texi: Likewise. Mention that memmove may be called.
21244 * config/vax/t-memfuncs: New.
21245 * config/memcmp.c, config/memcpy.c, config/memmove.c,
21246 config/memset.c: New.
21247 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
21248 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
21249 vax/t-memfuncs.
21250 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
21251 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
21252 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
21253 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
21254 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
21255 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
21256 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
21257 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
21258 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
21259 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
21260
21261 2004-07-05 Richard Henderson <rth@redhat.com>
21262
21263 * function.c (assign_parm_setup_reg): Properly rename variables in
21264 FUNCTION_ARG_CALLEE_COPIES section.
21265
21266 2004-07-05 Zack Weinberg <zack@codesourcery.com>
21267
21268 * tree-mudflap.c: Include cgraph.h.
21269 (mf_init_extern_trees): Rename to mudflap_init. Export.
21270 Rewrite to create synthetic declarations instead of looking
21271 up declarations from mf-runtime.h.
21272 (mf_make_builtin, mf_make_cache_struct_type): New functions.
21273 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
21274 Correct commentary.
21275 (execute_mudflap_function_decls, mudflap_register_call):
21276 Don't call mf_init_extern_trees.
21277 (mudflap_finish_file): Use cgraph_build_static_cdtor.
21278
21279 * tree-mudflap.h: Update prototypes.
21280 * c-mudflap.c: Delete file.
21281 * c-common.c: Include tree-mudflap.h.
21282 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
21283 * Makefile.in: Remove all references to c-mudflap.o.
21284 Update dependencies.
21285
21286 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21287
21288 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
21289 displacements with the spatial-locality cache-control completer.
21290
21291 2004-07-05 Zack Weinberg <zack@codesourcery.com>
21292
21293 * langhooks.c: Don't include gt-langhooks.h.
21294 (var_labelno): Delete.
21295 (lhd_set_decl_assembler_name): Do not append a distinguishing
21296 number to file-scope internal-linkage declarations for the first
21297 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
21298 the declaration itself (if at block scope), or its containing
21299 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
21300 number.
21301
21302 * opts.c (cur_in_fname): New global.
21303 * opts.h: Declare it.
21304 * tree.c: Include opts.h.
21305 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
21306 DECL_UID equal to cur_in_fname.
21307 (copy_node_stat): Do not change DECL_UID when copying a
21308 TRANSLATION_UNIT_DECL.
21309 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
21310 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
21311
21312 * c-decl.c (c_static_assembler_name): Delete.
21313 * c-tree.h (c_static_assembler_name): Delete prototype.
21314 * c-lang.c, objc/objc-lang.c: Don't override
21315 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
21316
21317 * Makefile.in (tree.o): Update dependencies.
21318 (GTFILES): Remove langhooks.c.
21319
21320 2004-07-05 Roger Sayle <roger@eyesopen.com>
21321
21322 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
21323 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
21324 Normalize "X % C" as "X % -C" for signed modulus and negative C.
21325 Optimize "X % -Y" as "X % Y" for signed modulus.
21326 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
21327 into "((unsigned) X % Y) == 0".
21328
21329 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
21330
21331 * sourcebuild.texi (Config Fragments): Use @comma{} in
21332 cross-reference to section title.
21333
21334 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21335
21336 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
21337 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
21338 (gimplify_target_expr, gimplify_expr): Likewise.
21339 (copy_if_shared_r): No longer need special case for BIND_EXPR.
21340 (unshare_body, unvisit_body): Only look at nested if BODY_P is
21341 whole function.
21342 (gimplify_compound_lval): See if we can strip any useless conversion.
21343 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
21344 from RHS, not LHS.
21345 (gimplify_modify_expr_to_memset): Likewise.
21346 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
21347 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
21348 (declare_inline_vars): Likewise.
21349 (walk_type_fields): New function.
21350 (walk_tree): Use it.
21351 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
21352
21353 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
21354 (sra_walk_modify_expr): Allow init function to fail.
21355 (scan_init): Now returns bool.
21356 (generate_element_init): If can't understand INIT, return false.
21357 (scalarize_init): Return false if generate_element_init does.
21358
21359 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
21360 print bounds.
21361
21362 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
21363 bounds if bounds aren't constant.
21364
21365 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
21366
21367 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
21368 to type hooks; remove bogus PARAMS.
21369
21370 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
21371
21372 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
21373 * dwarf2out.c (add_data_member_location_attribute): Check for
21374 TREE_BINFO.
21375 * tree.c (tree_node_kinds): Add "binfos".
21376 (binfo_lang_slots): New.
21377 (make_node_stat): Add TREE_BINFO.
21378 (make_tree_binfo_stat): New.
21379 (tree_node_structure): Add TREE_BINFO.
21380 * tree.def (TREE_BINFO): New.
21381 * tree.h (REC_OR_UNION_CHECK): Rename to ...
21382 (RECORD_OR_UNION_CHECK): ... here.
21383 (NOT_RECORD_OR_UNION_CHECK): New.
21384 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
21385 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
21386 RECORD_OR_UNION_CHECK.
21387 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
21388 (TYPE_LANG_SLOT_1): New.
21389 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
21390 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
21391 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
21392 (BINFO_ELTS): Remove.
21393 (BINFO_LANG_SLOT): New.
21394 (struct tree_binfo): New.
21395 (binfo_lang_slots): Declare.
21396 (enum tree_node_structure_enum): Add TS_BINFO.
21397 (union tree_node): Add binfo.
21398 (make_tree_binfo_stat): Declare.
21399 (make_tree_binfo): New.
21400 (enum tree_node_kind): Add binfo_kind.
21401
21402 * objc/objc-act.c (start_class, objc_declare_protocols,
21403 start_protocols): Use TYPE_LANG_SLOT_1.
21404 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
21405 to ...
21406 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
21407 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
21408 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
21409 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
21410
21411 2004-07-05 Steven Bosscher <stevenb@suse.de>
21412
21413 * rtl.h (struct rtx_def): Remove the integrated flag.
21414 Use the return_val flag for MEM_SCALAR_P.
21415 Reshuffle and update flags in CLEAR_RTX_FLAGS.
21416
21417 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
21418
21419 PR target/16357
21420 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
21421 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
21422 move_by_pieces.
21423
21424 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
21425
21426 * var-tracking.c: Fix some comments.
21427 (frame_stack_adjust): New.
21428 (vt_stack_adjustments): Init stack_adjust of entry block to
21429 minus stack adjustment of function prologue.
21430 (adjust_stack_reference): Do not adjust if adjustment == 0.
21431 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
21432 (emit_notes_in_bb): Likewise.
21433 (vt_add_function_parameters): Do not adjust locations of
21434 function arguments.
21435 (vt_initialize): Compute the stack adjustment of function
21436 prologue and offset the initial "location" of frame_base_decl
21437 from the stack pointer after prologue.
21438
21439 2004-07-04 Richard Henderson <rth@redhat.com>
21440
21441 * function.c (struct assign_parm_data_all): New.
21442 (struct assign_parm_data_one): New.
21443 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
21444 assign_parm_find_data_types, assign_parms_setup_varargs,
21445 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
21446 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
21447 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
21448 assign_parm_setup_block, assign_parm_setup_reg,
21449 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
21450 (assign_parms): ... here.
21451
21452 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
21453
21454 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
21455 now are bitmap_set_t's.
21456 (bitmap_insert_into_set): No point in inserting the value if
21457 it's invariant.
21458 (bitmap_set_contains): New function.
21459 (bitmap_set_replace_value): Add comment on why we do it
21460 this way.
21461 (set_contains): Removed.
21462 (bitmap_set_subtract_from_value_set): New name of
21463 set_subtract now that it's arguments are two different
21464 types of sets.
21465 Update callers.
21466 (bitmap_find_leader): Change algorithm used.
21467 (find_or_generate_expression): Update use of functions for new
21468 bitmap sets.
21469 (create_expression_by_pieces): Ditto.
21470 (insert_aux): Ditto.
21471 (insert): Ditto.
21472 (add_to_sets): Ditto.
21473 (init_pre): Ditto.
21474 (execute_pre): Ditto.
21475 (compute_avail): Ditto.
21476 Also ignore virtual phis.
21477
21478 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
21479
21480 * combine.c (simplify_comparison): Fix comment typo.
21481
21482 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
21483
21484 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
21485 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
21486 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
21487 (output_restore): Change parameter from 'insn' to 'pat'.
21488 (output_return): Adjust call to output_restore.
21489 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
21490 Adjust call to output_restore.
21491
21492 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
21493
21494 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
21495 and assert system is bsd.
21496
21497 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
21498
21499 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
21500 (TARGET_SWITCHES): Remove -mdebugc.
21501 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
21502 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
21503 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
21504 (sle_[sd]i_reg): Delete.
21505
21506 2004-07-04 Steven Bosscher <stevenb@suse.de>
21507
21508 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
21509 Define.
21510 * config/iq2000/iq2000.md: Translate old pipeline description to an
21511 equivalent new one.
21512
21513 2004-07-04 Roger Sayle <roger@eyesopen.com>
21514
21515 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
21516 Ensure the replacement rhs is valid gimple before performing
21517 the substitution. Return false if these sanity checks fail.
21518 (fold_stmt): Only set changed to true, if set_rhs returns true.
21519 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
21520 succeeds.
21521
21522 2004-07-04 Richard Henderson <rth@redhat.com>
21523
21524 PR c/16348
21525 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
21526
21527 2004-07-04 Mark Mitchell <mark@codesourcery.com>
21528
21529 * configure.ac (ranlib_flags): New variable.
21530 * Makefile.in (RANLIB_FLAGS): New variable.
21531 (libbackend.a): Use it.
21532 * configure: Regenerated.
21533
21534 2004-07-04 Roger Sayle <roger@eyesopen.com>
21535
21536 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
21537 a "sign mask" instead of using ashr_optab directly.
21538
21539 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
21540
21541 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
21542 * doc/cppopts.texi: Clarify processing of command-line defines.
21543
21544 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
21545
21546 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
21547
21548 2004-07-04 Richard Henderson <rth@redhat.com>
21549
21550 * rtl.def (ADDRESSOF): Remove.
21551 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
21552 (find_base_term, memrefs_conflict_p): Likewise.
21553 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
21554 (fold_rtx, cse_insn, set_live_p): Likewise.
21555 * dwarf2out.c (mem_loc_descriptor): Likewise.
21556 (add_location_or_const_value_attribute): Likewise.
21557 * emit-rtl.c (copy_insn_1): Likewise.
21558 * explow.c (memory_address): Likewise.
21559 * expmed.c (store_split_bit_field): Likewise.
21560 * expr.c (expand_expr_real_1): Likewise.
21561 * function.c (instantiate_decl
21562 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
21563 * genrecog.c (preds, validate_pattern): Likewise.
21564 * integrate.c (copy_rtx_and_substitute): Likewise.
21565 * recog.c (general_operand, register_operand): Likewise.
21566 (memory_address_p): Likwise.
21567 * reload1.c (eliminate_regs, elimination_effects): Likewise.
21568 * rtl.c (copy_rtx): Likewise.
21569 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
21570 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
21571 * rtlhooks.c (gen_lowpart_general): Likewise.
21572 * stmt.c (expand_asm_operands): Likewise.
21573 * web.c (entry_register, replace_ref, web_main): Likewise.
21574 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
21575 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
21576 * config/arm/arm.c (thumb_rtx_costs): Likewise.
21577 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
21578 * config/frv/frv.c (move_destination_operand, move_source_operand,
21579 condexec_dest_operand, condexec_source_operand,
21580 condexec_memory_operand): Likewise.
21581 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
21582 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
21583 (destination_xfmode_operand): Likewise.
21584 * config/mips/mips.h (PREDICATE_CODES): Likewise.
21585 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
21586 * config/s390/s390.c (general_s_operand): Likewise.
21587 * config/s390/s390.md (mov*): Likewise.
21588 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
21589
21590 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
21591 * expr.c (expand_expr_real_1): Likewise.
21592 * stmt.c (expand_decl): Likewise.
21593 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
21594
21595 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
21596 postponed_insns, put_var_into_stack, put_reg_into_stack,
21597 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
21598 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
21599 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
21600 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
21601 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
21602 purge_bitfield_addressof_replacements, purge_addressof_replacements,
21603 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
21604 struct insns_for_mem_walk_info, insns_for_mem_walk,
21605 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
21606 setjmp_protect_args): Remove.
21607 (push_function_context_to): Don't handle var_refs_queue.
21608 (pop_function_context_from, free_after_compilation): Likewise.
21609 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
21610 (assign_parms, allocate_struct_function): Likewise.
21611 (use_register_for_decl): New.
21612 (expand_function_end): Don't setjmp_protect.
21613 * function.h (struct emit_status): Update commentary.
21614 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
21615 (max_parm_reg, parm_reg_stack_loc): Remove.
21616 * passes.c (DFI_addressof): Remove.
21617 (dump_file_info): Remove addressof.
21618 (rest_of_handle_addressof): Remove.
21619 (rest_of_compilation): Don't call it.
21620 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
21621 * stmt.c (expand_decl): Use use_register_for_decl.
21622 * tree.h: Update decls.
21623 * web.c (mark_addressof): Remove.
21624 * doc/invoke.texi (-dF): Remove.
21625
21626 2004-07-03 Richard Henderson <rth@redhat.com>
21627
21628 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
21629 instead of gen_mem_addressof.
21630 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
21631 TImode output register.
21632
21633 2004-07-03 Richard Henderson <rth@redhat.com>
21634
21635 PR tree-optimization/16341
21636 * tree-sra.c (sra_walk_function): Increment to next stmt before
21637 processing the current stmt.
21638 (sra_insert_after): Always use BSI_SAME_STMT.
21639
21640 2004-07-03 Richard Henderson <rth@redhat.com>
21641
21642 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
21643 fp plus with minus.
21644
21645 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
21646
21647 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
21648 with tree_int_cst_equal.
21649
21650 2004-07-03 Andreas Schwab <schwab@suse.de>
21651
21652 * config/ia64/ia64.md: Define new attribute "empty".
21653 (prologue_use, nop_x, insn_group_barrier): Set it.
21654
21655 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
21656 skip over "empty" insns.
21657
21658 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21659
21660 * tree-inline.c (initialize_inlined_parameters): Pass proper function
21661 context to gimplify_body.
21662 (walk_tree): Don't walk into types twice.
21663 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
21664
21665 * tree-sra.c (generate_element_init): Remove any useless conversions.
21666
21667 * gimplify.c (gimplify_conversion): Remove stripping useless
21668 conversions from here.
21669 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
21670 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
21671 Unshare before substituting PLACEHOLDER_EXPR.
21672 (gimplify_modify_expr_to_memset): Likewise.
21673 Pass address of TO to memset, not TO itself.
21674 (gimplify_init_constructor): Make copy of OBJECT so we have it each
21675 time we make an expression (to match a PLACEHOLDER_EXPR).
21676
21677 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
21678 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
21679 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
21680 * tree-ssa-dom.c (local_fold): Likewise.
21681
21682 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
21683 * langhooks.h (strct lang_hooks): New field type_max_size.
21684 * function.c (assign_temp): Call it.
21685
21686 2004-07-03 Steven Bosscher <stevenb@suse.de>
21687
21688 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
21689 * config/sh/sh.md: Convert the SH1 pipeline description to
21690 a DFA model.
21691
21692 2004-07-02 Zack Weinberg <zack@codesourcery.com>
21693
21694 * c-decl.c (struct c_binding): Remove contour field; add
21695 depth, invisible, nested fields.
21696 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
21697 (B_IN_EXTERNAL_SCOPE): New convenience macros.
21698 (bind): Add invisible and nested arguments. Initialize
21699 new fields of struct c_binding; adjust loop scanning for
21700 insertion point.
21701 (free_binding_and_advance): Clear structure with memset.
21702 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
21703 in file scope, even if it's in external scope too.
21704 (pushdecl): Adjust to match. Create invisible file-scope
21705 declarations for block-scope forward declarations of static functions.
21706 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
21707 (undeclared_variable, lookup_label, declare_label, define_label)
21708 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
21709 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
21710 (store_parm_decls_oldstyle): Adjust to match.
21711 (diagnose_mismatched_decls): Correct handling of linkage clashes.
21712 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
21713
21714 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
21715 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
21716
21717 2004-07-02 Richard Henderson <rth@redhat.com>
21718
21719 * c-decl.c (grokdeclarator): Don't frob current_function_decl
21720 around variable_size.
21721 (set_decl_nonlocal): Remove.
21722 (store_parm_decls): Add stmts for pending sizes.
21723 * calls.c (calls_function, calls_function_1): Remove.
21724 (precompute_arguments): Don't call it.
21725 * cfgexpand.c (set_save_expr_context): Remove.
21726 (tree_expand_cfg): Don't call it.
21727 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
21728 (dwarf2out_finish): Likewise.
21729 * expr.c (emit_block_move): Adjust addresses to BLKmode.
21730 (store_constructor): Don't pre-evaluate SAVE_EXPR.
21731 (safe_from_p): Don't queue SAVE_EXPRs.
21732 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
21733 or build plain VAR_DECLs.
21734 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
21735 (fold): Likewise.
21736 (fold_checksum_tree): Don't special-case SAVE_EXPR.
21737 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
21738 (put_var_into_stack): Don't handle SAVE_EXPR.
21739 (gen_mem_addressof): Likewise.
21740 * function.h (struct function): Remove x_save_expr_regs.
21741 (save_expr_regs): Remove.
21742 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
21743 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
21744 * stor-layout.c (variable_size): Don't set it.
21745 (force_type_save_exprs, force_type_save_exprs_1): Remove.
21746 * tree-inline.c (remap_save_expr): Remove fn argument. Update
21747 all callers. Don't set SAVE_EXPR_CONTEXT.
21748 * tree-inline.h (remap_save_expr): Update decl.
21749 * tree.c (save_expr): Update build size.
21750 (first_rtl_op): Don't handle SAVE_EXPR.
21751 (unsave_expr_1, contains_placeholder_p): Likewise.
21752 (decl_function_context): Likewise.
21753 * tree.def (SAVE_EXPR): Remove args 1 and 2.
21754 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
21755 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
21756
21757 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
21758
21759 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
21760 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
21761 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
21762 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
21763 some first-person references and patronizing comments. Based on
21764 printed manual.
21765 * doc/invoke.texi: Don't reference fortran@gnu.org.
21766 * doc/trouble.texi (Warning when a non-void function value is
21767 ignored): Rewrite. From Russ Allbery and Chris Devers.
21768
21769 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
21770
21771 * tree-ssa-pre.c (bitmap_set_t): New.
21772 (bb_value_sets): avail_out is now a bitmap_set_t.
21773 (bitmap_find_leader): New function.
21774 (bitmap_value_insert_into_set): Ditto.
21775 (bitmap_set_copy): Ditto.
21776 (bitmap_value_replace_in_set): Ditto.
21777 (bitmap_set_contains_value): Ditto.
21778 (bitmap_set_new): Ditto.
21779 (bitmap_set_pool): New pool.
21780 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
21781 (insert_aux): Ditto.
21782 (add_to_sets): Ditto.
21783 (compute_avail): Ditto
21784 (eliminate): Ditto.
21785 (init_pre): Ditto.
21786 (fini_pre): Ditto.
21787 (execute_pre): Ditto.
21788
21789 2004-07-02 Roger Sayle <roger@eyesopen.com>
21790
21791 * config/rs6000/rs6000.c (struct processor_costs): New structure
21792 used to hold instruction latencies/sizes for processor types.
21793 (rs6000_cost): New global variable pointing to current CPU's costs.
21794 (rs6000_override_options): Initialize rs6000_cost to point to the
21795 appropriate cost table based upon rs6000_cpu and optimize_size.
21796 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
21797 timings inline.
21798
21799 2004-07-02 Richard Henderson <rth@redhat.com>
21800
21801 * expmed.c (make_tree): Don't use SET_DECL_RTL.
21802
21803 2004-07-02 Steven Bosscher <stevenb@suse.de>
21804
21805 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
21806
21807 2004-07-01 Richard Henderson <rth@redhat.com>
21808
21809 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
21810 (alpha_gp_save_rtx): Use assign_stack_local instead of
21811 gen_mem_addressof.
21812
21813 2004-07-01 Richard Henderson <rth@redhat.com>
21814
21815 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
21816 (alpha_rtx_cost_data): Update to match.
21817 (alpha_rtx_cost_size): New.
21818 (alpha_rtx_costs): Honor optimize_size.
21819
21820 2004-07-01 Richard Henderson <rth@redhat.com>
21821
21822 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
21823 * cfgexpand.c (tree_expand_cfg): Do it here.
21824 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
21825 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
21826 * config/mips/mips.c (mips_output_mi_thunk): And here.
21827 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
21828 * config/sh/sh.c (sh_output_mi_thunk): And here.
21829 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
21830
21831 2004-07-01 Richard Henderson <rth@redhat.com>
21832
21833 * tree.def (RTL_EXPR): Remove.
21834 * c-typeck.c (lvalue_p): Don't handle it.
21835 * expr.c (safe_from_p): Likewise.
21836 (expand_expr_real_1): Likewise.
21837 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
21838 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
21839 * gengtype.c (adjust_field_tree_exp): Likewise.
21840 * stmt.c (warn_if_unused_value): Likewise.
21841 * tree-gimple.c (recalculate_side_effects): Likewise.
21842 * tree-pretty-print.c (dump_generic_node): Likewise.
21843 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
21844 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
21845 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
21846
21847 * stmt.c (struct stmt_status): Remove x_last_expr_type,
21848 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
21849 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
21850 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
21851 all the bits that tracked last_expr.
21852 (expand_end_bindings): Don't track last_expr.
21853 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
21854 (clear_last_expr): Remove.
21855 (expand_asm): Don't call it.
21856 (expand_asm_operands, expand_end_cond): Likewise.
21857 (expand_naked_return, expand_null_return_1): Likewise.
21858 * c-typeck.c (c_begin_compound_stmt): Likewise.
21859 * cfgexpand.c (expand_block): Use expand_expr_stmt.
21860 * expr.c (expand_expr_real_1): Likewise.
21861 * tree.h: Update prototypes.
21862
21863 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
21864 (struct emit_status): Remove sequence_rtl_expr.
21865 (struct function): Remove x_rtl_expr_chain.
21866 (seq_rtl_expr, rtl_expr_chain): Remove.
21867 * function.c (struct temp_slot): Remove rtl_expr.
21868 (assign_stack_temp_for_type): Don't set it.
21869 (free_temp_slots, pop_temp_slots): Don't check it.
21870 (free_after_compilation): Don't clear x_rtl_expr_chain.
21871 (fixup_var_refs): Don't search it.
21872 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
21873 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
21874 or seq_rtl_expr.
21875 (push_topmost_sequence): Likewise.
21876 (end_sequence, init_emit): Likewise.
21877 (start_sequence_for_rtl_expr): Remove.
21878 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
21879 * rtl.h (preserve_rtl_expr_result): Remove.
21880
21881 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
21882
21883 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
21884 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
21885 typos.
21886
21887 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
21888
21889 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
21890 (STANDARD_STARTFILE_PREFIX_2): Define.
21891 (standard_startfile_prefix_1): Initialize to
21892 STANDARD_STARTFILE_PREFIX_1.
21893 (standard_startfile_prefix_2): Initialize to
21894 STANDARD_STARTFILE_PREFIX_2.
21895 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
21896 (STANDARD_STARTFILE_PREFIX_1): Define.
21897 (STANDARD_STARTFILE_PREFIX_2): Define.
21898 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
21899 (STANDARD_STARTFILE_PREFIX_2): Document.
21900
21901 2004-07-01 Richard Henderson <rth@redhat.com>
21902
21903 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
21904 in order to disable scalarization. Instead set a flag and wait
21905 for a candidate decl.
21906
21907 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
21908
21909 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
21910 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
21911 Use terminology "testsuite" and "enumerated".
21912
21913 2004-07-01 Richard Henderson <rth@redhat.com>
21914
21915 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
21916 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
21917 (initial_return_save): Likewise.
21918 (flush_queued_reg_saves): Remap register numbers.
21919 (dwarf2out_return_reg): Likewise.
21920
21921 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21922
21923 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
21924
21925 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
21926 access functions for lower bound and element size and only output
21927 if lower bound nonzero or element size not same as that of type.
21928 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
21929
21930 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
21931
21932 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
21933
21934 2004-07-01 Per Bothner <per@bothner.com>
21935
21936 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
21937
21938 2004-07-01 Jakub Jelinek <jakub@redhat.com>
21939
21940 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
21941 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
21942 first operand. Don't optimize if the bitfield is volatile.
21943
21944 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
21945
21946 * c-pretty-print.c (pp_c_postfix_expression): Handle
21947 floating-point comparison operators.
21948 (pp_c_expression): Pass floating-point comparison
21949 operators to pp_c_postfix_expression.
21950
21951 2004-07-01 Roger Sayle <roger@eyesopen.com>
21952
21953 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
21954 rtx_cost instead of "had_mult" to determine whether the transformed
21955 expression is cheaper than the original.
21956
21957 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
21958
21959 * alias.c (get_alias_set, canon_rtx, get_addr,
21960 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
21961 Use MEM_P.
21962 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
21963 expand_builtin): Likewise.
21964 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
21965 Likewise.
21966 * combine.c (can_combine_p, combinable_i3pat, try_combine,
21967 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
21968 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
21969 record_dead_and_set_regs_1, get_last_value_validate,
21970 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
21971 * cse.c (check_dependence, canon_hash, equiv_constant,
21972 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
21973 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
21974 count_reg_usage): Likewise.
21975 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
21976 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
21977 cselib_record_sets): Likewise.
21978 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
21979 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
21980 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
21981 * df.c (df_uses_record): Likewise.
21982 * dojump (do_jump): Likewise.
21983 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
21984 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
21985 decl_start_label): Likewise.
21986 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
21987 operand_subword, change_address_1, make_safe_from): Likewise.
21988 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
21989 stabilize, force_not_mem): Likewise.
21990 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
21991 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
21992 * expr.c (convert_move, convert_modes, emit_block_move,
21993 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
21994 emit_move_insn_1, expand_assignment, store_expr,
21995 store_constructor_field, store_constructor, store_field,
21996 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
21997 Likewise.
21998 * final.c (cleanup_subreg_operands, alter_subreg,
21999 get_mem_expr_from_op): Likewise.
22000 * flow.c (notice_stack_pointer_modification_1,
22001 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
22002 Likewise.
22003 * function.c (mark_temp_addr_taken, preserve_temp_slots,
22004 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
22005 optimize_bit_field, flush_addressof, purge_addressof_1,
22006 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
22007 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
22008 keep_stack_depressed): Likewise.
22009 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
22010 noce_process_if_block, find_memory): Likewise.
22011 * integrate.c (subst_constants, allocate_initial_values): Likewise.
22012 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
22013 update_equiv_regs): Likewise.
22014 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
22015 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
22016 * optabs.c (expand_abs, emit_unop_insn): Likewise.
22017 * passes.c (rest_of_handle_final): Likewise.
22018 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22019 move2add_note_store): Likewise.
22020 * ra-build.c (detect_remat_webs): Likewise.
22021 * ra-debug.c (dump_static_insn_cost): Likewise.
22022 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
22023 * recog.c (validate_change, apply_change_group, cancel_changes,
22024 validate_replace_rtx_1, general_operand, register_operand,
22025 nonmemory_operand, push_operand, pop_operand, memory_operand,
22026 indirect_operand, asm_operand_ok, offsettable_memref_p,
22027 offsettable_nonstrict_memref_p, constrain_operands,
22028 store_data_bypass_p): Likewise.
22029 * reg-stack.c (subst_stack_regs_pat): Likewise.
22030 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
22031 copy_cost, reg_scan_mark_refs): Likewise.
22032 * regmove.c (optimize_reg_copy_3, stack_memref_p,
22033 combine_stack_adjustments_for_block): Likewise.
22034 * regrename.c (copyprop_hardreg_forward_1): Likewise.
22035 * reload.c (can_reload_into, push_reload, decompose, immune_p,
22036 find_reloads, find_reloads_address, find_reloads_address_1,
22037 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
22038 find_equiv_reg): Likewise.
22039 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
22040 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
22041 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
22042 delete_address_reloads): Likewise.
22043 * resource.c (mark_referenced_resources): Likewise.
22044 * rtlanal.c (get_jump_table_offset, count_occurrences,
22045 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
22046 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
22047 num_sign_bit_copies1): Likewise.
22048 * rtlhooks.c (gen_lowpart_general): Likewise.
22049 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
22050 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
22051 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
22052 sdbout_global_decl): Likewise.
22053 * simplify-rtx.c (simplify_subreg): Likewise.
22054 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
22055 expand_anon_union_decl, expand_end_case_type): Likewise.
22056 * unroll.c (calculate_giv_inc): Likewise.
22057 * var-tracking.c (stack_adjust_offset_pre_post,
22058 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
22059 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
22060 vt_add_function_parameters): Likewise.
22061 * varasm.c (make_var_volatile, notice_global_symbol,
22062 assemble_external, decode_addr_const, mark_weak,
22063 default_encode_section_info): Likewise.
22064
22065 2004-07-01 Steven Bosscher <stevenb@suse.de>
22066
22067 * stmt.c (check_seenlabel): Remove.
22068 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
22069
22070 2004-07-01 Richard Henderson <rth@redhat.com>
22071
22072 * function.h (struct function): Remove x_function_call_count.
22073 (function_call_count): Remove.
22074 * calls.c (expand_call): Don't set it.
22075 * integrate.c (copy_rtx_and_substitute): Likewise.
22076
22077 * function.h (struct function): Remove x_cleanup_label.
22078 (cleanup_label): Remove.
22079 * stmt.c (expand_value_return): Don't use it.
22080 * function.c (free_after_compilation): Don't set it.
22081 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
22082 * cfgexpand.c (tree_expand_cfg): Update call.
22083 * tree.h (expand_function_start): Update decl.
22084
22085 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
22086
22087 PR c/1027
22088 * c-lang.c (c_initialize_diagnostics): Move from here ...
22089 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
22090 (c_tree_printer): Use pretty-printer to format %T.
22091 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
22092 before '*' if not C++.
22093 (pp_c_direct_abstract_declarator): Don't try to print array upper
22094 bound for flexible array members.
22095 * c-tree.h: Include "diagnostic.h".
22096 (c_initialize_diagnostics): Declare.
22097 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
22098 * c-format.c (format_type_warning): New function. Improve
22099 diagnostics for incorrect format argument types.
22100 (check_format_types): Use it. Add two parameters. Use the
22101 TYPE_MAIN_VARIANT of wanted_type.
22102 (check_format_info_main): Pass new parameters to
22103 check_format_types.
22104 (struct format_wanted_type): Update comment.
22105
22106 2004-07-01 Nick Clifton <nickc@redhat.com>
22107
22108 * target.h (struct gcc_target): Add new field to struct cxx:
22109 import_export_class.
22110 * target-def.h (TARGET_CXX): Initialise the new field.
22111 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
22112 the new field.
22113 * doc/tm.texi: Document the new target hook.
22114
22115 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
22116
22117 * builtins.c (fold_builtin_classify): Fix typo.
22118
22119 2004-07-01 Richard Henderson <rth@redhat.com>
22120
22121 * function.c (identify_blocks, identify_blocks_1): Remove.
22122 * function.h (identify_blocks): Remove.
22123 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
22124
22125 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
22126
22127 * builtins.c (fold_builtin_classify): New.
22128 (fold_builtin_unordered_cmp): Fix commentary.
22129 (fold_builtin): Use it.
22130 * builtins.def: Define builtins for isnan,
22131 isnanf, isnanl, finite, finitef, finitel,
22132 isinf, isinff, isinfl.
22133
22134 2004-07-01 Richard Henderson <rth@redhat.com>
22135
22136 * function.h (struct function): Remove dont_emit_block_notes.
22137 * gimple-low.c (lower_function_body): Don't set it.
22138 * cfgexpand.c (expand_block): Don't check it.
22139 * cfglayout.c (insn_locators_initialize): Likewise.
22140 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
22141 * passes.c (rest_of_compilation): Likewise.
22142 * stmt.c (expand_start_bindings_and_block): Likewise.
22143 (expand_end_bindings): Likewise.
22144
22145 2004-07-01 Richard Henderson <rth@redhat.com>
22146
22147 * cgraph.h (cgraph_build_static_cdtor): Declare.
22148 * cgraphunit.c (cgraph_build_static_cdtor): New.
22149 * c-objc-common.c (build_cdtor): Use it.
22150 * coverage.c (create_coverage): Likewise.
22151 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
22152 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
22153
22154 See ChangeLog.11 for earlier changes.
This page took 1.034643 seconds and 5 git commands to generate.