* jump.c (condjump_p): Remove unreachable code.
[gcc.git] / gcc / ChangeLog
1 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2
3 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
4 checking if an unconditional return is followed by a barrier.
5
6 * jump.c (condjump_p): Remove unreachable code.
7
8 2004-11-17 Jeff Law <law@redhat.com>
9
10 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
11 (edge_to_cases_elt): Renamed from edge_to_case_leader.
12 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
13 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
14 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
15 (get_cases_for_edge): New function.
16 (start_recording_case_labels, end_recording_case_labels): Similarly.
17 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
18 chain equivalent CASE_LABEL_EXPRs together.
19 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
20 (make_switch_expr_edges): Do not record edge/cases here.
21 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
22 (split_critical_edges): Record cases around the edge splitting code.
23 (cleanup_dead_labels): Use CASE_LABEL again.
24 (tree_redirect_edge_and_branch): If we have a mapping from edge
25 to cases, use it to handle redirections. Else do it the slow way.
26 * tree.h (CASE_LEADER_OR_LABEL): Kill.
27 (CASE_LABEL): Revert to just looking at the tree's second operand.
28 * tree.c (get_case_label): Kill.
29
30 2004-11-17 Diego Novillo <dnovillo@redhat.com>
31
32 PR tree-optimization/18307
33 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
34 'orig' are the same node.
35 (collect_points_to_info_r): Do not call merge_pointed_to_info
36 when the PHI argument is identical to the LHS.
37
38 2004-11-17 Steven Bosscher <stevenb@suse.de>
39
40 * tree-ssa-propagate.c (cfg_blocks_add) Assert we're not trying
41 to insert the exit or entry block.
42 (ssa_prop_init): Use add_control_edge to seed the algorithm.
43
44 2004-11-16 Zack Weinberg <zack@codesourcery.com>
45
46 * mkmap-flat.awk, mkmap-symver.awk: If the last version
47 assigned to a symbol was '%exclude', do not emit it anywhere.
48 If leading_underscore is true, prefix all symbols from the
49 version scripts with a leading underscore before comparing
50 them with nm output or emitting them. Remove support for dot
51 symbols.
52 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
53 (SHLIB_MAPFILES): Use libgcc-std.ver.
54 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
55 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
56 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
57 libgcc-excl.ver and libgcc-glibc.ver.
58
59 * config/sh/libgcc-excl.ver: New file.
60 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
61
62 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
63
64 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
65 the test when the edge has the opposite meaning, not when
66 the first argument is invariant.
67
68 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
69
70 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
71 doubles.
72 (rs6000_complex_function_value): Handle e500 v2 variant.
73
74 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
75
76 Fix PR tree-optimization/18519
77
78 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
79 * tree-pass.h: Add TODO_cleanup_cfg.
80 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
81 (ccp_finalize): Remove call to cleanup_cfg.
82 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
83 (pass_cd_dce): Ditto.
84 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
85 dump_function_to_file.
86 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
87 to cleanup_cfg.
88 (pass_ch): Add TODO_cleanup_cfg.
89 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
90 cleanup_cfg.
91 (pass_loop_done): Add TODO_cleanup_cfg.
92 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
93 (tree_ssa_phiopt): Remove call to cleanup_cfg.
94
95 2004-11-16 Devang Patel <dpatel@apple.com>
96
97 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
98
99 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
100
101 * expmed.c, ra-colorize.c: Fix comment typos.
102
103 * doc/tm.texi: Fix typos.
104
105 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
106 Mark Mitchell <mark@codesourcery.com>
107
108 PR target/6123
109 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
110 __pic__ if PIC.
111
112 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
113
114 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
115 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
116
117 2004-11-16 Devang Patel <dpatel@apple.com>
118
119 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
120
121 2004-11-16 Eric Christopher <echristo@redhat.com>
122
123 * config/mips/mips.c: Use rtl _P predicates.
124 * config/mips/mips.h: Ditto.
125 * config/mips/mips.md: Ditto.
126
127 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
128
129 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
130 the pattern.
131
132 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
133
134 * config/s390/s390.c (s390_cc_modes_compatible): New function.
135 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
136
137 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
138
139 PR target/18447
140 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
141 before and after the insns for getting GOT address in non-PIC
142 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
143 is enabled.
144
145 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
146
147 * gcc/cse.c (struct change_cc_mode_args): New structure.
148 (cse_change_cc_mode_insn): New function.
149 (cse_change_cc_mode): Use validate_change to perfom changes.
150 (cse_change_cc_mode_insns, cse_condition_code_reg):
151 Call cse_change_cc_mode_insn.
152
153 2004-11-16 Steven Bosscher <stevenb@suse.de>
154
155 * stack.h: Remove.
156
157 2004-11-16 Steven Bosscher <stevenb@suse.de>
158
159 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
160
161 2004-11-15 Dale Johannesen <dalej@apple.com>
162
163 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
164
165 2004-11-15 Dale Johannesen <dalej@apple.com>
166
167 * profile.c (compute_branch_probabilities): Prevent
168 crash with EH in RTL-based profiling.
169
170 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
171
172 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
173 COND_EXPR_COND.
174 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
175 * tree-ssa-dom.c (thread_across_edge): Likewise.
176 * tree-vectorizer.c (vect_transform_loop_bound): Replace
177 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
178 COND_EXPR_ELSE.
179
180 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
181 (tree_flow_call_edges_add): Update the call to
182 bsi_commit_edge_inserts.
183 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
184 * profile.c (branch_prob): Likewise.
185 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
186 * tree-sra.c (scalarize_function): Likewise.
187 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
188 * tree-ssa-pre.c (fini_pre): Likewise.
189 * tree-flow.h: Update the prototype for
190 bsi_commit_edge_inserts.
191
192 2004-11-15 Eric Christopher <echristo@redhat.com>
193
194 * sched-deps.c (set_sched_group_p): Delete.
195 (delete_all_dependencies): New function.
196 (fixup_sched_groups): Use. New function.
197 (sched_analyze_insn): Use.
198
199 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
200
201 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
202 RROTATE_EXPR or unknown code.
203 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
204 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
205 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
206 or unknown code.
207
208 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
209
210 PR c/18498
211 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
212 after processing the declarator.
213
214 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
215
216 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
217 vec_duplicate.
218 (altivec_vspltb): Same.
219 (altivec_vspltw): Same.
220 (altivec_vspltisb): Same.
221 (altivec_vspltish): Same.
222 (altivec_vspltisw): Same.
223 (altivec_vspltisw_v4sf): Same.
224 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
225 UNSPEC_VSPLTISH.
226 Move "End of vector xor's" comment to the right place.
227
228 2004-11-15 Steve Ellcey <sje@cup.hp.com>
229
230 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
231 instead of nonimmediate_operand.
232
233 2004-11-15 Mark Mitchell <mark@codesourcery.com>
234
235 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
236 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
237 * config/sol2.c (solaris_output_init_fini): Update calls to
238 ASM_OUTPUT_CALL. Include "rtl.h".
239
240 2004-11-15 Mark Mitchell <mark@codesourcery.com>
241
242 * config/sol2-c.c (cmn_err_char_table): Add "p".
243
244 2004-11-15 Mark Mitchell <mark@codesourcery.com>
245
246 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
247 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
248
249 2004-11-15 Mark Mitchell <mark@codesourcery.com>
250
251 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
252 within the multilib directory.
253
254 2004-11-15 Nick Clifton <nickc@redhat.com>
255
256 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
257 builtin assert of cpu=xstormy16.
258
259 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
260
261 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
262 variable.
263
264 2004-11-14 Richard Henderson <rth@redhat.com>
265
266 PR 18480
267 * calls.c (struct arg_data): Add parallel_value.
268 (precompute_register_parameters): Set it.
269 (load_register_parameters): Use it.
270 (store_one_arg): Also set it here.
271
272 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
273
274 PR tree-optimization/18431
275 * fold-const.c (associate_trees): Do not produce x + 0.
276 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
277 (fold): Use them.
278 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
279 Moved ...
280 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
281 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
282
283 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
284
285 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
286
287 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
288
289 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
290 value-prof.c: Fix comment typos.
291
292 2004-11-14 Stan Shebs <shebs@apple.com>
293
294 Basic ABI changes for passing structs by value in 64-bit Darwin.
295 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
296 (rs6000_override_options): Set it for 64-bit Darwin.
297 (rs6000_parse_abi_options): Add testing options to change it.
298 (rs6000_return_in_memory): Test whether the type is one
299 that can be passed in registers.
300 (darwin64_function_arg_advance): New.
301 (function_arg_advance): Call it, plus add recursion depth
302 argument and test when counting off arguments.
303 (rs6000_darwin64_function_arg): New.
304 (function_arg): Call it.
305 (setup_incoming_varargs): Add argument to function_arg_advance.
306 (rs6000_darwin64_function_value): New.
307 (rs6000_function_value): Call it.
308 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
309 * config/rs6000/rs6000-protos.h: Update decl of
310 function_arg_advance.
311
312 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
313
314 PR c/17279
315 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
316 support TImode before adding __int128_t and __uint128_t types.
317
318 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
319
320 PR tree-opt/18400
321 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
322 (vect_transform_loop_bound): Set loop->nb_iterations.
323
324 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
325 Andrew Pinski <pinskia@physics.uc.edu>
326
327 PR tree-opt/18425
328 * tree-vectorize.c (vect_build_loop_niters): Do not insert
329 NULL into the instruction stream. Initialize new_bb to NULL.
330 (vect_update_ivs_after_vectorizer): Likewise.
331 (vect_gen_niters_for_prolog_loop): Likewise.
332
333 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
334
335 PR tree-optimization/18431
336 * tree-flow.h (stmt_references_memory_p): Declare.
337 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
338 * tree-ssa.c (stmt_references_memory_p): New function.
339
340 2004-11-14 Andreas Schwab <schwab@suse.de>
341
342 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
343 $(EXPR_H).
344
345 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
346
347 * c-common.c (walk_stmt_tree): Remove.
348 * c-common.h: Remove the corresponding prototype.
349
350 * emit-rtl.c (push_to_full_sequence): Remove.
351 * rtl.h: Remove the corresponding prototype.
352
353 * cselib.c, expr.c: Fix comment typos.
354
355 2004-11-13 Richard Henderson <rth@redhat.com>
356
357 * calls.c (precompute_register_parameters): Force all PARALLELs
358 into pseudo registers.
359 (load_register_parameters): Copy PARALLELs into hard registers.
360 * function.c (assign_parm_setup_block): Copy PARALLELS into
361 pseudo registers. Do emit_group_store in conversion_insns.
362 * expr.c (emit_group_load_1): Rename from emit_group_load, take
363 tmps as an argument. Move final copy loop ...
364 (emit_group_load): ... here. New function.
365 (emit_group_load_into_temps, emit_group_move_into_temps): New.
366 * expr.h: Declare them.
367
368 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
369
370 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
371 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
372 with PHI_CHAIN where appropriate.
373
374 2004-11-13 Dale Johannesen <dalej@apple.com>
375
376 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
377 (tree_block_label): Ditto.
378 (flush_pending_stmts): Ditto.
379 (insert_edge_copies): Ditto.
380 (expr_invariant_in_loop_p): Ditto.
381 (TDF_USE_OPS): Parenthesize definition.
382 (TDF_USE_VOPS): Ditto.
383
384 2004-11-13 David Edelsohn <edelsohn@gnu.org>
385
386 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
387 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
388 (atoll): Declare.
389 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
390
391 2004-11-14 Joseph Myers <joseph@codesourcery.com>
392
393 * config/i386/i386.c (override_options): Move loop to set default
394 tuning to correct place.
395
396 2004-11-13 Zak Kipling <zak@transversal.com>
397
398 PR target/18300
399 * config/i386/i386.c (classify_argument): Fix infinite loop when
400 passing object with 3 or more base classes by value.
401
402 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
403
404 * doc/md.texi (constraints) <% modifier>: Mention that it is
405 useless when the two alternatives are strictly identical.
406
407 2004-11-13 Richard Henderson <rth@redhat.com>
408
409 * expmed.c (extract_split_bit_field): Temporarily disable call to
410 extract_force_align_mem_bit_field.
411
412 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
413
414 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
415 formatting.
416
417 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
418 lambda-code.c, postreload.c, predict.c, tree-sra.c,
419 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
420
421 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
422
423 * doc/install.texi (automake): Correctly document that everything now
424 will use automake 1.9.3.
425
426 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
427
428 PR target/18347
429 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
430 TImode. Sorry for other non-complex larger-than-64-bit modes.
431 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
432
433 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
434
435 * doc/install.texi (automake): Document that everything now uses 1.9.
436
437 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
438
439 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
440 previous loads.
441
442 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
443
444 * tree.h: Fix comment typos.
445
446 2004-11-13 Steven Bosscher <stevenb@suse.de>
447
448 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
449 HARD_REGISTER_NUM_P.
450
451 * cselib.c (new_cselib_val): Make comment correct and more detailed.
452 * flow.c (mark_set_1): Likewise.
453
454 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
455 duplicate_eh_regions): Remove.
456 * except.h (duplicate_eh_regions): Remove prototype.
457 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
458 global_const_equiv_varray): Remove.
459 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
460 global_const_equiv_varray, set_label_in_map): Remove prototypes,
461 extern declaration, and #define.
462 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
463 (struct inline_remap): Remove.
464 * varray.c (struct element): Remove entry for const_equiv_data.
465 * varray.h (struct const_equiv_data): Remove.
466 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
467 (union varray_data_tag) <const_equiv>: Remove.
468 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
469 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
470
471 * regstack.c (record_label_references): Remove unused function.
472
473 * rtl.def (VALUE): Update comment.
474 (LABEL_REF): Remove unused operand 2.
475 * rtl.h (struct rtx_def): Update for removed accessor macros.
476 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
477 REG_LOOP_TEST_P): Remove.
478 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
479 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
480 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
481
482 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
483 Eric Botcazou <ebotcazou@libertysurf.fr>
484
485 PR target/18230
486 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
487 patterns.
488 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
489 (V32I): New macro for 32-bit modes.
490 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
491 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
492 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
493 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
494 one_cmpldi_sp64): Use V64I instead of DI.
495 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
496 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
497 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
498 (nandv64i_vis, nandv32i_vis): New patterns.
499
500 2004-11-12 Mike Stump <mrs@apple.com>
501
502 * Makefile.in: Add html support.
503 * java/Make-lang.in: Likewise.
504 * fortran/Make-lang.in: Likewise.
505 * treelang/Make-lang.in: Likewise.
506 * doc/install.texi: Likewise.
507 * doc/makefile.texi: Likewise.
508 * doc/sourcebuild.texi: Likewise.
509
510 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
511
512 * tree-ssa-loop-manip.c: Fix a comment typo.
513
514 2004-11-12 Mike Stump <mrs@apple.com>
515
516 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
517 renaming this node to Concept Index.
518 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
519 to more closely match gcc.texi.
520
521 2004-11-12 Jeff Law <law@redhat.com>
522
523 * tree-cfg.c (hashtab.h): Include.
524 (struct edge_to_case_leader_elt): New structure.
525 (edge_to_case_leader): New.
526 (edge_to_case_leader_hash): New hashtable hasing function.
527 (edge_to_case_leader_eq): New hashtable equality function.
528 (record_switch_edge): New function.
529 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
530 (make_switch_expr_edges): Build the edge-to-case-leader
531 hash table. Tear down the hash table when we're done.
532 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
533 CASE_LABEL.
534 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
535 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
536 to use new concept of case leaders to reduce overhead of
537 redirecting outgoing edges from switch statements.
538 * tree.c (get_case_label): New function.
539 * tree.h (CASE_LABEL): Define in terms of get_case_label.
540 (CASE_LEADER_OR_LABEL): Define.
541
542 2004-11-12 Ziemowit Laski <zlaski@apple.com>
543
544 * varasm.c (output_addressed_constants): For CONST_DECLs,
545 output the initializer if present.
546
547 2004-11-12 Ziemowit Laski <zlaski@apple.com>
548
549 * config/rs6000/darwin.h: Fix confusing typo in comment.
550
551 2004-11-12 Devang Patel <dpatel@apple.com>
552
553 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
554
555 2004-11-12 Devang Patel <dpatel@apple.com>
556
557 * tree-if-conv.c (clean_predicate_lists): Use loop header
558 and latch directly.
559
560 2004-11-12 Richard Henderson <rth@redhat.com>
561
562 PR 17778
563 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
564 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
565 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
566 * config/i386/i386-modes.def (XF): Use it.
567
568 2004-11-11 Geoffrey Keating <geoffk@apple.com>
569
570 * Makefile.in (macro_list): Use move-if-change to avoid spurious
571 rebuilds.
572
573 2004-11-12 Mark Mitchell <mark@codesourcery.com>
574
575 PR c++/18416
576 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
577 when deciding whether to pass a variable to
578 cgraph_varpool_finalize_decl or assemble_variable.
579 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
580
581 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
582
583 * tree-vectorizer.c: Fix a comment typo.
584
585 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
586
587 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
588
589 2004-11-12 Diego Novillo <dnovillo@redhat.com>
590
591 * tree-scalar-evolution.c (analyzable_condition): Remove
592 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
593
594 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
595
596 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
597 Remove m505/roe multilib variant.
598
599 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
600
601 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
602 to load from the stack.
603
604 2004-11-12 Richard Henderson <rth@redhat.com>
605
606 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
607 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
608 * toplev.h (FL2T__): Remove.
609 (CLZ_HWI): Rename from FL2T_CLZ__.
610 (CTZ_HWI): New.
611 (floor_log2): Simplify.
612 (exact_log2): New.
613
614 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
615
616 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
617 compute the first overlapping iterations.
618
619 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
620
621 PR middle-end/18005
622 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
623 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
624
625 2004-11-12 Steven Bosscher <stevenb@suse.de>
626
627 PR tree-optimization/18419
628 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
629 pointer set instead of a bitmap.
630 (walk_use_def_chains): Create, pass and clean up that pointer_set.
631
632 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
633 field an sbitmap.
634 (init_alias_info): Allocate and zero it here.
635 (delete_alias_info): Delete it here.
636 (collect_points_to_info_for): Use it.
637
638 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
639
640 * alias.c (record_alias_subset, addr_side_effect_eval):
641 Make them static.
642 * alias.h: Remove the prototype for record_alias_subset.
643 * expr.h: Remove the commented-out prototype for
644 record_alias_subset.
645 * rtl.h: Remove the prototype for addr_side_effect_eval.
646
647 * cfglayout.c (choose_inner_scope): Make it static.
648 * rtl.h: Remove the corresponding prototype.
649
650 * cfgloopmanip.c (update_single_exits_after_duplication,
651 unloop): Make them static.
652 * cfgloop.h: Remove the corresponding prototypes.
653
654 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
655 Make them static.
656 * c-tree.h: Remove the corresponding prototypes.
657
658 * explow.c (round_push): Make it static.
659 * expr.h: Remove the corresponding prototype.
660
661 * varasm.c (get_named_section_flags, decl_tls_model): Make
662 them static.
663 * output.h: Remove the prototype for get_named_section_flags.
664 * tree.h: Remove the prototype for decl_tls_model.
665
666 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
667
668 * function.c (expand_function_end): Remove an "if" statement
669 that always triggers.
670 * stmt.c (expand_null_return_1): Likewise.
671
672 2004-11-11 James E. Wilson <wilson@specifixinc.com>
673
674 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
675 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
676 CLASS_MAX_NREGS): Likewise.
677
678 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
679
680 PR tree-optimization/17742
681 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
682 MINUS_EXPR correctly.
683
684 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
685
686 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
687 Give up as soon as the evolution is known not computable.
688
689 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
690
691 PR target/16457
692 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
693 mask64_1or2_operand.
694 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
695 to spot rlwinm opportunities.
696 (and64_2_operand): Use mask_1or2_operand.
697 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
698
699 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
700
701 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
702 (vect_update_ivs_after_vectorizer): Update function documentation.
703 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
704
705 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
706
707 * config/arm/arm.c: Fix a comment typo.
708
709 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
710
711 * bitmap.h (nBITMAP_WORD_BITS): Remove.
712 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
713 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
714 unnecessary casts.
715 (bitmap_first_set_bit): Return unsigned, use ctzl.
716 (bitmap_last_set_bit): Remove.
717 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
718 unsigned.
719 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
720 remove special case code for two word elements.
721 (bitmap_last_set_bit): Remove.
722 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
723 bitmap_first_set_bit with bitmap_empty_p.
724 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
725 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
726 bitmap_last_bit_set.
727
728 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
729
730 PR target/16796
731 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
732
733 PR target/16458
734 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
735 unsigned equality compare when we know the operands are unsigned.
736
737 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
738
739 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
740 __PIC__ and __pic__ only if TARGET_ABICALLS.
741 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
742 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
743 -KPIC only if not -mno-abicalls.
744
745 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
746 * config/sparc/linux.h, config/sparc/linux64.h
747 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
748
749 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
750 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
751 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
752 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
753
754 2004-11-11 Paul Brook <paul@codesourcery.com>
755
756 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
757 register if current_function_uses_pic_offset_table is set.
758
759 2004-11-10 David Edelsohn <edelsohn@gnu.org>
760
761 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
762 Change multi-instruction sequences to new attribute.
763 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
764 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
765 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
766
767 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
768
769 * tree-data-ref.c (build_classic_dist_vector): If either loop
770 is outside of the nest we asked about, the dependence can't
771 matter.
772 (build_classic_dir_vector): Ditto.
773
774 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
775
776 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
777 right order.
778 (force_var_cost): Determine cost of addition and multiplication more
779 precisely.
780 (get_computation_cost_at): Add cost for computing address elements to
781 the final cost.
782
783 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
784 one of the arguments of MINUS_EXPR is an address.
785 (split_address_to_core_and_offset): New function.
786 (ptr_difference_const): Handle case when one of the operands is a
787 pointer.
788 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
789 (ptr_difference_cost): Pass addresses instead of objects to
790 ptr_difference_const.
791
792 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
793
794 * tree.c (tree_check_failed): Emit general error if the list of
795 node types is empty.
796
797 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
798
799 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
800 argument. When the union is passed in the 6th slot, build a
801 PARALLEL with only one element.
802 (function_arg): Adjust call to function_arg_union_value.
803 (function_value): Likewise.
804
805 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
806
807 PR tree-optimization/17892
808 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
809 MINUS_EXPR operator.
810
811 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
812
813 PR target/18230
814 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
815 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
816
817 2004-11-10 Steven Bosscher <stevenb@suse.de>
818
819 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
820 (struct basic_block_def): Remove local_set and cond_local_set
821 fields. Update comment for global_live_at_start.
822 * flow.c (calculate_global_regs_live): Allocate local_sets and
823 cond_local_sets here as arrays of bitmaps previously stored in
824 bb->local_set and bb->cond_local_set. Use xmalloc instead of
825 obstack allocated bitmaps.
826
827 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
828
829 PR target/18380
830 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
831 hidden.
832
833 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
834
835 2004-11-09 Jeff Law <law@redhat.com>
836
837 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
838 argument holding last unvisited block. Start search for
839 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
840 (connect_infinite_loops_to_exit): Supply last unvisited block
841 to flow_dfs_compute_reverse_execute.
842
843 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
844
845 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
846 doubles.
847 (floatunssidf2): Same.
848 (floatsidf2): Same.
849 ("extendsfdf2"): New expander.
850 (*extendsfdf2_fpr): Rename.
851 (*truncdfsf2_fpr): Same.
852 (*negdf2_fpr): Same.
853 (*absdf2_fpr): Same.
854 (*nabsdf2_fpr): Same.
855 (*adddf3_fpr): Same.
856 (*subdf3_fpr): Same.
857 (*muldf3_fpr): Same.
858 (*divdf3_fpr): Same.
859
860 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
861 ("spe_fix_truncdfsi2"): Same.
862 (spe_floatunssidf2): Same.
863 (spe_floatsidf2): Same.
864
865 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
866
867 PR c/18322
868 * c-common.c (fname_decl): Don't use line number of decl in
869 diagnostic.
870
871 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
872
873 * config/s390/s390-protos.h (s390_pool_operand): Remove.
874 * config/s390/s390.c (s390_pool_operand): Likewise.
875 (s390_extra_constraint_str): Handle 'B' constraints.
876 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
877 * config/s390/s390.md: Document 'B' constraints.
878 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
879 s390_pool_operand to prevent insns with two literal pool
880 references. Make pattern commutative.
881 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
882 'B' constraint instead of s390_pool_operand.
883
884 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
885
886 * tree-cfg.c (create_bb): Remove unnecessary memset.
887
888 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
889
890 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
891 (thread_block): Call flush_pending_stmt instead of
892 copy_phis_to_block.
893
894 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
895
896 * loop-iv.c (iv_number_of_iterations): Make it static.
897 * cfgloop.h: Remove the corresponding prototype.
898
899 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
900
901 * function.c (combine_temp_slots, assign_parms,
902 expand_pending_sizes): Make them static.
903 * tree.h: Remove the corresponding prototypes.
904
905 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
906
907 * emit-rtl.c (copy_most_rtx): Remove.
908 * rtl.h: Remove the corresponding prototype.
909
910 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
911
912 * cfgloop.c (flow_loops_update): Remove.
913 * cfgloop.h: Remove the corresponding prototype.
914
915 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
916
917 * conflict.c (mark_reg, conflict_graph_compute): Remove.
918 * basic-block.h: Remove the prototype for
919 conflict_graph_compute.
920
921 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
922
923 * tree-if-conv.c (add_to_dst_predicate_list): Change the
924 second argument to basic_block.
925 (tree_if_convert_cond_expr): Update call sites.
926
927 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
928
929 * fold-const.c (pedantic_non_lvalue): Make it static.
930 * tree.h: Remove the corresponding prototype.
931
932 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
933
934 * optabs.c (prepare_operand): Make it static.
935 * optabs.h: Remove the corresponding prototype.
936
937 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
938
939 * reload1.c (reloads_conflict, gen_reload): Make them static.
940 * reload.h: Remove the corresponding prototypes.
941
942 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
943
944 * reload.c (refers_to_mem_for_reload_p,
945 refers_to_regno_for_reload_p): Make them static.
946 * reload.h: Remove the corresponding prototypes.
947
948 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
949 Eric Botcazou <ebotcazou@libertysurf.fr>
950
951 PR target/18230
952 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
953 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
954 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
955 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
956 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
957 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
958 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
959 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
960 MODE_VECTOR_INT modes.
961 (sparc_extra_constraint_check): Add new constraint 'Y'.
962 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
963 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
964 (V64): New mode macro for 64-bit modes.
965 (movsf): Use V32 for mode instead of SF.
966 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
967 alongside 'G' constraint.
968 (movdf): Use V64 for mode instead of DF.
969 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
970 of DF. Add 'Y' constraint alongside 'G' constraint.
971 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
972 instead of DF.
973
974 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
975
976 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
977 integer NEG and ABS.
978 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
979 ("*negdi2_31"): Reimplement using a splitter.
980 ("*negdi2_cc", "*negdi2_cconly"): New insns.
981 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
982 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
983 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
984 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
985 ("*absdi2_cc", "*absdi2_cconly"): New insns.
986 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
987 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
988 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
989 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
990 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
991 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
992 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
993 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
994 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
995
996 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
997
998 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
999 when eliminating an UNSPEC_CMPINT.
1000 (s390_secondary_input_reload_class): Fix test for CC register reload.
1001 (s390_secondary_output_reload_class): Likewise.
1002 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
1003 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
1004 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
1005 insn patterns with splitters.
1006
1007 2004-11-09 David Edelsohn <edelsohn@gnu.org>
1008
1009 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
1010 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
1011
1012 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1013
1014 * tree-phinodes.c (phi_reverse): New.
1015 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
1016 Use it.
1017 * tree-flow.h: Add a prototype for phi_reverse.
1018
1019 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
1020
1021 * tree-ssa-loop-ivopts.c: Fix a comment typo.
1022
1023 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
1024
1025 PR pch/14940
1026 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
1027 definitions.
1028
1029 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1030
1031 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
1032 instead of "arg" in diagnostics.
1033
1034 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1035
1036 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
1037 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
1038 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
1039 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
1040 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
1041 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
1042 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
1043 config/iq2000/iq2000.c, config/m32r/m32r.c,
1044 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
1045 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
1046 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
1047 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
1048 config/sh/symbian.c, config/stormy16/stormy16.c,
1049 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
1050 and %> as appropriate. Use %' as apostrophe in diagnostics where
1051 applicable. Use %< and %> in place of '' quotes where applicable.
1052 Use %qs in place of %<%s%>. Consistently quote __builtin function
1053 names.
1054
1055 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
1056
1057 * gdbinit.in (pbb, pbm): New macros.
1058
1059 2004-11-08 Jeff Law <law@redhat.com>
1060
1061 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
1062 implementing it inline.
1063
1064 * cfganal.c (find_edge): Search pred->succs or succ->preds,
1065 whichever is shorter.
1066
1067 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1068
1069 * passes.c (rest_of_handle_jump): Remove dead code.
1070
1071 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1072
1073 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
1074 the last used element in the worklist.
1075
1076 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1077
1078 * tree-inline.c (remap_save_expr): Make it static.
1079 * tree-inline.h: Remove the corresponding prototype.
1080
1081 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1082
1083 * tree-ssa-loop-niter.c (upper_bound_in_type,
1084 lower_bound_in_type): Make them static.
1085 * tree.h: Remove the corresponding prototypes.
1086
1087 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1088
1089 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
1090 static.
1091 * tree-ssa-live.h: Remove the corresponding prototypes.
1092
1093 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1094
1095 * tree-if-conv.c (tree_if_conversion): Make it static.
1096 * tree-flow.h: Remove the corresponding prototype.
1097
1098 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1099
1100 * tree-ssa-operands.c (build_ssa_operands): Make it static.
1101 * tree-flow.h: Remove the corresponding prototype.
1102
1103 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
1104
1105 PR tree-opt/18299
1106 * tree-inline.c (copy_body_r): Change "t = t" to empty
1107 statement instead of "t".
1108
1109 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1110
1111 * modulo-sched.c (create_partial_schedule,
1112 free_partial_schedule, reset_partial_schedule,
1113 ps_add_node_check_conflicts, rotate_partial_schedule): Make
1114 them static.
1115
1116 2004-11-08 Richard Henderson <rth@redhat.com>
1117
1118 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
1119 the end of a page.
1120
1121 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1122
1123 * sched-deps.c (add_insn_mem_dependence): Make it static.
1124 * sched-int.h: Remove the corresponding prototypes.
1125
1126 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1127
1128 * flow.c (allocate_bb_life_data): Make it static.
1129 * basic-block.h: Remove the corresponding prototype.
1130
1131 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1132
1133 * calls.c (split_complex_values, split_complex_types): Make
1134 them static.
1135 * expr.h: Remove the corresponding prototypes.
1136
1137 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
1138
1139 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
1140 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
1141
1142 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1143
1144 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
1145 statements that always trigger.
1146
1147 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
1148
1149 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
1150 tree-scalar-evolution.c, tree-ssa-loop-im.c,
1151 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
1152 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
1153 appropriate.
1154
1155 2004-11-08 Ben Elliston <bje@au.ibm.com>
1156
1157 * cgraph.h (cgraph_calls_p): Remove.
1158 * cgraph.c (cgraph_calls_p): Likewise.
1159
1160 * varray.h (varray_copy): Remove.
1161 * varray.c (varray_copy): Likewise.
1162
1163 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
1164
1165 PR target/18269
1166 * config/darwin.c (machopic_indirect_data_reference):
1167 Call gen_macho_high and gen_macho_low instead of
1168 checking the mode and calling gen_macho_high_di directly.
1169 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1170 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
1171 to darwin.md.
1172 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
1173 load_macho_picbase, macho_low, macho_high): Removed.
1174 (builtin_setjmp_receiver): Call gen_macho_high and
1175 gen_macho_low instead of checking the mode and calling
1176 gen_macho_high_di directly.
1177 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
1178 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
1179 Moved from rs6000.md.
1180 (macho_high): New expander.
1181 (macho_high_si): Renamed version of macho_high from rs6000.md.
1182 (macho_low): New expander.
1183 (macho_low_si): Renamed version of macho_low from rs6000.md.
1184 (load_macho_picbase): New expander.
1185 (load_macho_picbase_si): Renamed version of load_macho_picbase
1186 from rs6000.md.
1187 (macho_correct_pic): New expander.
1188 (macho_correct_pic_si): Renamed version of macho_correct_pic
1189 from rs6000.md.
1190
1191 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
1192
1193 * c-decl.c (finish_struct): Use complete sentences for diagnostic
1194 for structures or unions with no members or named members.
1195
1196 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
1197
1198 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
1199 taking address of bit-field by assertion.
1200
1201 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1202
1203 * config/s390/s390.md (attribute "op_type"): Default to "NN".
1204 (attribute "atype"): Default to "agen".
1205 (attribute "length"): Default to 6.
1206 (define_asm_attibutes): Remove.
1207 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
1208 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
1209 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
1210 Do not set type attribute to "cs" where already default.
1211 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
1212 "*negdi2_31"):
1213 Do not set type attribute to "other" where already default.
1214 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
1215 "*strlendi", "*strlensi",
1216 "*movmem_long_64", "*movmem_long_31",
1217 "*clrmem_long_64", "*clrmem_long_31",
1218 "*cmpmem_long_64", "*cmpmem_long_31",
1219 "*cmpint_si", "*cmpint_di",
1220 "addti3", "*adddi3_31z", "*adddi3_31",
1221 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
1222 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
1223 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
1224 "*pool_entry", "pool_align", "pool_section_start",
1225 "pool_section_end", "main_pool", "reload_base_31", "pool"):
1226 Do not set op_type attribute to "NN" where already default.
1227 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
1228 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
1229 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
1230 Do not set atype attribute to "agen" where already default.
1231 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
1232
1233 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
1234
1235 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
1236
1237 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
1238
1239 PR target/16830
1240 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
1241 R3000 and R4000 macros on IRIX.
1242
1243 2004-11-06 Andreas Schwab <schwab@suse.de>
1244
1245 PR target/16286
1246 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
1247 __pixel.
1248
1249 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1250
1251 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
1252
1253 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1254
1255 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
1256 matches no insns already matched by other reservations.
1257 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
1258 matches no insns already matched by other reservations.
1259 ("x_ss"): Remove, replace by ...
1260 ("x_cs"): ... this new reservation. Check type instead of op_type.
1261 Update bypasses to use x_cs instead of x_ss.
1262 ("x_nn"): Remove, replace by ...
1263 ("x_other"): ... this new reservation. Check type instead of op_type.
1264 Add x_other and x_branch to bypasses.
1265 ("x_vs"): New reservation.
1266 * config/s390/s390.md (attribute "type"): Default according to op_type.
1267 ("*execute"): Set type to "cs".
1268
1269 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1270
1271 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
1272 if we are in GIMPLE.
1273
1274 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
1275
1276 PR rtl-optimization/17933
1277 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
1278 (covers_regno_p): New function. Handle SETs of PARALLEL,
1279 and defer the rest to...
1280 (covers_regno_no_parallel_p): New function.
1281
1282 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1283
1284 * config/sparc/sparc.c (function_arg_record_value_1): Skip
1285 fields with zero length.
1286 (function_arg_record_value_2): Likewise.
1287 (function_arg_record_value_3): Use smallest_mode_for_size
1288 instead of mode_for_size.
1289 (function_arg_union_value): Return naked register for unions
1290 with zero length.
1291
1292 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1293
1294 * config/sparc/sparc.c (scan_record_type): Handle vector types.
1295 (function_arg_slotno): Handle vector types specially.
1296 (function_arg_record_value_1): Split fields with vector type and
1297 BLKmode into their subparts.
1298 (function_arg_record_value_2): Likewise. Be prepared to handle
1299 more than 2 registers per field.
1300 (function_arg_union_value): Increment regno inside the loop.
1301 (function_arg_vector_value): New function.
1302 (function_arg): Use it to split fields with vector type and
1303 BLKmode into their subparts and build a PARALLEL. Treat
1304 other vector types like floats.
1305 (function_value): Likewise.
1306 (sparc_pass_by_reference): Handle vector types.
1307 (sparc_return_in_memory): Likewise.
1308
1309 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1310
1311 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
1312 statement that never triggers.
1313
1314 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1315
1316 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
1317 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
1318 ("x_fdivd"): Use also for fsqrtd type.
1319 ("x_fdivs"): Use also for fsqrts type.
1320 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
1321 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
1322 ("fix_truncdfsi2_ibm"): Set type to "other".
1323 ("floatdidf2", "floatdisf2"): Do not clobber CC.
1324 ("floatsidf2", "floatsidf2_ieee"): Likewise.
1325 ("floatsisf2", "floatsisf2_ieee"): Likewise.
1326 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
1327 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
1328 instead of LRER.
1329 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
1330 ("sqrtdf2"): Set type to "fsqrtd".
1331 ("sqrtsf2"): Set type to "fsqrts".
1332
1333 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1334
1335 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
1336 pointer to the last PHI node in the new PHI chain.
1337
1338 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
1339
1340 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
1341 for non-PIC TLS_MODEL_INITIAL_EXEC case.
1342
1343 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1344
1345 * expmed.c: Fix a comment typo.
1346
1347 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1348
1349 PR target/18106
1350 * config/i386/cygming.h
1351 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
1352
1353 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1354
1355 * config/sh/sh4a.md: Fix copyright.
1356
1357 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
1358
1359 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
1360 with GCC.
1361
1362 2004-11-05 David Edelsohn <edelsohn@gnu.org>
1363
1364 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
1365 when carry not used. Suggested by Torbjorn Granlund.
1366
1367 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
1368 operand[1] unnecessarily. Suggested by Eric Christopher.
1369 (rs6000_adjust_cost): Increase latency of store to wider load.
1370 (rs6000_rtx_costs): mulli only allows 16-bit constants.
1371
1372 2004-11-05 Stan Shebs <shebs@apple.com>
1373
1374 * config/rs6000/rs6000.c (machopic_output_stub): Output
1375 ldu instead of lwzu for 64-bit stubs.
1376
1377 2004-11-05 Richard Henderson <rth@redhat.com>
1378
1379 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
1380 size 2 with BWX.
1381 (alpha_expand_unaligned_store): Likewise.
1382
1383 2004-11-05 Richard Henderson <rth@redhat.com>
1384
1385 * expmed.c (extract_force_align_mem_bit_field): New.
1386 (extract_split_bit_field): Call it.
1387
1388 2004-11-05 Richard Henderson <rth@redhat.com>
1389
1390 * ia64.md (UNSPEC_SHRP): New.
1391 (dshift_count_operand): New.
1392 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
1393 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
1394
1395 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
1396
1397 * c-typeck.c (output_init_element): Return early if value is
1398 error_mark_node.
1399
1400 2004-11-05 James E Wilson <wilson@specifixinc.com>
1401
1402 * invoke.texi (-fno-guess-branch-probability): Rewrite.
1403
1404 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
1405 1 to UNSPEC_GR_SPILL.
1406
1407 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
1408
1409 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
1410 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
1411
1412 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
1413
1414 * bitmap.h (enum bitmap_bits): Remove.
1415 (bitmap_operation): Remove.
1416 (bitmap_and, bitmap_and_into, bitmap_and_compl,
1417 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
1418 bitmap_xor_into): Prototype.
1419 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
1420 (bitmap_operation): Remove.
1421 (bitmap_and, bitmap_and_into, bitmap_and_compl,
1422 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
1423 bitmap_xor_into): New.
1424 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
1425
1426 PR tree-optimization/18307
1427 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
1428 and ORIG being the same node.
1429
1430 2004-11-04 Geoffrey Keating <geoffk@apple.com>
1431
1432 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
1433 (install-mkheaders): Install the version built for the
1434 host, not for the build machine.
1435 * configure.ac: Always run fixincludes.
1436 (all_outputs): Remove mkheaders.
1437 * configure: Regenerate.
1438 * fixinc.in: Move to fixincludes/.
1439 * mkfixinc.sh: Likewise.
1440 * mkheaders.in: Likewise.
1441 * README-fixinc: Likewise.
1442
1443 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1444
1445 PR target/18263
1446 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
1447 equivalent on the A4.
1448
1449 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
1450
1451 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
1452 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
1453 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
1454 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
1455 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
1456 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
1457 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
1458 doc/trouble.texi: Correct end-of-sentence markup and markup of
1459 "etc.", "e.g." and "i.e.". Use @code in various places where
1460 appropriate.
1461
1462 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
1463
1464 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
1465 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
1466 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
1467 whitespace.
1468
1469 2004-11-04 Mark Mitchell <mark@codesourcery.com>
1470
1471 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
1472 * doc/extend.texi: Document "notshared" attribute.
1473
1474 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1475
1476 * tree-phinodes.c (make_phi_node): Make it static.
1477 * tree.h: Remove the prototypes for make_phi_node.
1478
1479 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1480
1481 * stmt.c (expand_asm, expand_asm_operands): Make them static.
1482 * tree.h: Remove the prototypes for expand_asm and
1483 expand_asm_operands.
1484
1485 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1486
1487 * passes.c (rest_of_compilation): Make it static.
1488 * toplev.h: Remove the prototype for rest_of_compilation.
1489
1490 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1491
1492 * jump.c (cleanup_barriers): Use delete_insn instead of
1493 delete_barrier.
1494 (delete_barrier): Remove.
1495 * rtl.h: Remove the corresponding prototype.
1496
1497 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1498
1499 * expr.c (mostly_zero_p): Make it static.
1500 * tree.h: Remove the prototype for mostly_zeros_p.
1501
1502 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1503
1504 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
1505
1506 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1507
1508 * builtins.c (expand_builtin_return_addr,
1509 expand_builtin_longjmp, expand_builtin_trap): Make them static.
1510 * expr.h: Remove the prototypes for expand_builtin_longjmp and
1511 expand_builtin_trap.
1512 * tree.h: Remove the prototype for expand_builtin_return_addr.
1513
1514 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1515
1516 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
1517 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
1518 with VAL being NULL.
1519
1520 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1521
1522 * cfghooks.c (delete_basic_block): Remove code to truncate
1523 edge vectors.
1524
1525 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
1526
1527 * flow.c (init_propagate_block_info): Change the type of i to
1528 unsigned.
1529
1530 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
1531
1532 PR tree-optimization/18184
1533 * c-typeck.c (comptypes): Do not treat pointers of different
1534 modes or alias-all flags as equivalent.
1535 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
1536
1537 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
1538
1539 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
1540 reference specific C parser files in examples.
1541
1542 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
1543
1544 PR target/15342
1545 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
1546 as OP_INOUT if the instruction is predicated.
1547
1548 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1549
1550 * bitmap.h: Fix a comment typo. Follow spelling conventions.
1551 * tree-vectorizer.c: Fix a comment typo.
1552
1553 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
1554
1555 * sdbout.c (SDB_GENERATE_FAKE): Remove.
1556 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
1557 * system.h: Poison SDB_GENERATE_FAKE.
1558 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
1559
1560 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
1561
1562 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
1563
1564 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1565
1566 PR other/18277
1567 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
1568 2004-10-29 patch
1569
1570 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
1571
1572 * predict.c (propagate_freq): Make bitno unsigned. Move
1573 npredecessors update out of loop.
1574
1575 * bitmap.h (bitmap_iterator): Remove word_bit and bit
1576 fields. Rename others.
1577 (bmp_iter_common_next_1, bmp_iter_single_next_1,
1578 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
1579 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
1580 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
1581 bmp_iter_and_next): Remove.
1582 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
1583 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
1584 New.
1585 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
1586 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
1587
1588 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
1589 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
1590 bitmap_and_into, bitmap_ior_into as appropriate.
1591 * except.c (remove_eh_handler): Likewise.
1592 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
1593 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
1594 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
1595 * tree-ssa-live.h (live_merge_and_clear): Likewise.
1596 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
1597 Likewise.
1598
1599 * bitmap.c (bitmap_print): Make bitno unsigned.
1600 * bt-load.c (clear_btr_from_live_range,
1601 btr_def_live_range): Likewise.
1602 * caller-save.c (save_call_clobbered_regs): Likewise.
1603 * cfganal.c (compute_dominance_frontiers_1): Likewise.
1604 * cfgcleanup.c (thread_jump): Likewise.
1605 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
1606 * conflict.c (conflict_graph_compute): Likewise.
1607 * ddg.c (add_deps_for_use): Likewise.
1608 * df.c (df_refs_update): Likewise.
1609 * except.c (remove_eh_handler): Likewise.
1610 * flow.c (verify_local_live_at_start, update_life_info,
1611 initialize_uninitialized_subregs, propagate_one_insn,
1612 free_propagate_block_info, propagate_block, find_use_as_address,
1613 reg_set_to_hard_reg_set): Likewise.
1614 * gcse.c (clear_modify_mem_tables): Likewise.
1615 * global.c (global_conflicts, build_insn_chain): Likewise.
1616 * ifcvt.c (dead_or_predicable): Likewise.
1617 * local-alloc.c (update_equiv_regs): Likewise.
1618 * loop.c (load_mems): Likewise.
1619 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
1620 Likewise.
1621 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
1622 Likewise.
1623 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
1624 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
1625 * sched-rgn.c (propagate_deps
1626 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
1627 * tree-dfa.c (dump_dfa_stats
1628 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
1629 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
1630 Likewise.
1631 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
1632 free_temp_expr_table, find_replaceable_exprs): Likewise.
1633 * tree-sra.c (scan_function, scalarize_parms): Likewise.
1634 * tree-ssa-alias.c (init_alias_info,
1635 compute_points_to_and_addr_escape,
1636 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
1637 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
1638 * tree-ssa-live.c (new_tree_live_info, live_worklist,
1639 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
1640 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
1641 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
1642 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
1643 add_call_read_ops): Likewise.
1644 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
1645 * tree-ssa-live.h (num_var_partitions): Return unsigned.
1646
1647 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
1648
1649 PR tree-optimization/18009
1650 * tree-vectorizer.h (enum dr_alignment_support): New type.
1651 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
1652 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
1653 single data_reference (instead of a varray of references).
1654 * tree-vectorizer.c (new_loop_vec_info): Likewise.
1655 (vect_gen_niters_for_prolog_loop): Likewise.
1656 (vect_update_inits_of_drs): Likewise.
1657
1658 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
1659 vect_enhance_data_refs_alignment.
1660 (vect_do_peeling_for_alignment): Likewise.
1661 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
1662 this functionality used to be in vect_analyze_data_refs_alignment.
1663 Also update DR_MISALIGNMENT due to peeling; this functionality used to
1664 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
1665 (vect_analyze_data_refs_alignment): Decision on whether and by how much
1666 to peel moved to vect_enhance_data_refs_alignment. Call
1667 vect_supportable_dr_alignment.
1668
1669 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
1670 (vect_compute_data_refs_alignment): Return bool. Consider return value
1671 of vect_compute_data_ref_alignment and return true/false accordingly.
1672 (vect_enhance_data_refs_alignment): Consider return value of
1673 vect_compute_data_refs_alignment and return true/false accordingly.
1674
1675 (vect_supportable_dr_alignment): New function.
1676 (vectorizable_store): Call vect_supportable_dr_alignment.
1677 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
1678 support checks moved from here to vect_supportable_dr_alignment.
1679
1680 (vect_transform_loop): Avoid 80 columns overflow.
1681
1682 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
1683
1684 * timevar.c (timevar_enable): Change from
1685 static.
1686 (timevar_push): Rename to ...
1687 (timevar_push_1): this and remove the
1688 enabled check.
1689 (timevar_pop): Rename to ...
1690 (timevar_pop_1): this and remove the
1691 enabled check.
1692 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
1693 (timevar_pop): New macro.
1694 (timevar_push): New macro.
1695 (timevar_enable): Declare.
1696
1697 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
1698
1699 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
1700 libgcc for shared libraries.
1701
1702 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
1703
1704 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
1705 * config/s390/s390.c (s390_split_access_reg): New function.
1706 (regclass_map): Add access registers.
1707 (get_thread_pointer): Use access register instead of UNSPEC_TP.
1708 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
1709 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
1710 (TP_REGNUM): New define.
1711 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1712 REG_ALLOC_ORDER): Add access registers.
1713 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
1714 CANNOT_CHANGE_MODE_CLASS): Support access registers.
1715 (enum reg_class): Add ACCESS_REGS.
1716 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
1717 (REG_CLASS_FROM_LETTER): Add 't' constraint.
1718 (REGISTER_NAMES): Add access registers.
1719 * config/s390/s390.md (UNSPEC_TP): Remove.
1720 ("*movdi_64"): Add access register alternatives. Provide splitters
1721 to split DImode access register <-> GPR moves into SImode moves.
1722 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
1723 ("movstrictsi"): Likewise.
1724 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
1725 ("set_tp_64", "set_tp_31"): Likewise.
1726 ("*set_tp"): New insn.
1727
1728 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
1729
1730 * tree-phinodes.c (resize_phi_node): Copy only a portion of
1731 the PHI node currently in use.
1732
1733 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
1734
1735 PR tree-opt/18231
1736 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
1737 also.
1738
1739 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
1740
1741 PR tree-optimization/18270
1742 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
1743 abnormal edges, commit all pending stmts on incoming edges.
1744
1745 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
1746
1747 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
1748 cause extra costs. Generate canonical RTL.
1749
1750 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
1751
1752 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
1753 (lambda_compute_target_space). Ditto.
1754 * lambda.h (lambda_trans_matrix): Ditto.
1755 (lambda_linear_expression): Ditto.
1756 (lambda_body_vector): Ditto.
1757 (lambda_loopnest): Ditto.
1758 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
1759 update comments, and remove pointless addition of 0.
1760 (linear_transform_loops): Update comments.
1761
1762 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
1763
1764 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
1765 CEIL_MOD_EXPR.
1766
1767 2004-11-03 Jeff Law <law@redhat.com>
1768
1769 * predict.c (struct block_info_def): Kill "tovisit" field.
1770 (propagate_freq): Accept new "tovisit" parameter. Change
1771 read/write access methods for "tovisit" to check the "tovisit"
1772 bitmap instead of a bit in block_info_def.
1773 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
1774 it to propagate_freq.
1775
1776 * stmt.c (expand_case): Speed up code to detect duplicate case
1777 label targets and count unique case label targets.
1778
1779 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
1780
1781 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
1782
1783 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
1784
1785 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
1786
1787 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
1788
1789 * tree-cfg.c (find_taken_edge): Abort if we are given a
1790 statement that is neither COND_EXPR nor SWITCH_EXPR.
1791
1792 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
1793
1794 * fold-const.c (fold): Reassociate also (x - mult) + mult and
1795 (mult - x) + mult. Cast operands of expression after applying
1796 distributive law to the correct types. Apply distributive law
1797 to a * c - b * c for all non-float types.
1798
1799 2004-11-02 Geoffrey Keating <geoffk@apple.com>
1800
1801 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
1802 because we don't want to run them now; instead, set them to
1803 stmp-install-fixproto or stmp-install-fixinc.
1804 * Makefile.in (stmp-install-fixproto): New.
1805 (stmp-install-fixinc): New.
1806 * configure: Regenerate.
1807
1808 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
1809
1810 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
1811 of bitmap_xor.
1812
1813 2004-11-02 Ziemowit Laski <zlaski@apple.com>
1814
1815 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
1816 (c_types_compatible_p): Move function definition...
1817 * c-objc-common.c (c_types_compatible_p): ...here.
1818 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
1819 c-lang.c.
1820
1821 2004-11-02 Steven Bosscher <stevenb@suse.de>
1822
1823 * cfgloop.h (struct loop): Update comment.
1824 * cse.c (cse_main): Remove obsolete comment.
1825
1826 * expr.h (gen_cond_trap): Move prototype under functions provided
1827 by optabs.c.
1828 (canonicalize_condition, get_condition): Move to...
1829 * rtl.h (canonicalize_condition, get_condition): ...here.
1830 (branch_target_load_optimize): Add comment that this function is
1831 in bt-load.c.
1832 * loop.c (canonicalize_condition, get_condition): Move to...
1833 * rtlanal.c (canonicalize_condition, get_condition): ...here.
1834 * sched-deps.c (get_condition): Rename to sched_get_condition.
1835 (add_dependence): Update this caller.
1836
1837 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
1838
1839 PR tree-opt/16808
1840 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
1841 that the vops get marked for renaming.
1842
1843 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
1844
1845 * config/s390/s390.md ("movcc"): Set type attribute.
1846
1847 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
1848
1849 * tree-phinodes.c (add_phi_arg): Add an assertion that the
1850 edge already exists.
1851
1852 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
1853
1854 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
1855 element that's being removed.
1856
1857 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
1858
1859 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
1860 arguments using PENDING_STMT.
1861 (thread_block): Call copy_phis_to_block after redirecting an
1862 edge.
1863
1864 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
1865
1866 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
1867 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
1868 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
1869 (bitmap_ior_and_compl_into): Produce bool.
1870 (bitmap_union_of_diff): Rename to ...
1871 (bitmap_ior_and_compl): ... here. Produce bool.
1872 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
1873 bitmap_operation directly.
1874 (bitmap_union_of_diff): Rename to ...
1875 (bitmap_ior_and_compl): ... here. Return bool, use
1876 bitmap_operation directly.
1877 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
1878 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
1879 * global.c (modify_bb_reg_pav): Likewise.
1880
1881 * bitmap.h (bitmap_equal_p): Return bool.
1882 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
1883 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
1884 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
1885 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
1886 bitmap_intersect_compl_p.
1887 * ifcvt (dead_or_predicable): Likewise.
1888
1889 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
1890
1891 PR rtl-optimization/17104
1892 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
1893 loads in zero_extend.
1894
1895 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
1896
1897 PR debug/18242
1898 * toplev.c (debug_type_names): Remove "dwarf-1".
1899
1900 2004-11-02 Ben Elliston <bje@au.ibm.com>
1901
1902 * timevar.h (timevar_get): Remove.
1903 * timevar.c (timevar_get): Remove unused function.
1904
1905 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
1906
1907 * doc/include/texinfo.tex: Update from Texinfo CVS.
1908
1909 2004-11-02 Ben Elliston <bje@au.ibm.com>
1910
1911 * cppdefault.h (cpp_SYSROOT): Remove.
1912 * cppdefault.c (cpp_SYSROOT): Likewise.
1913
1914 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
1915
1916 PR tree-optimization/16447
1917 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
1918 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
1919 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
1920 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
1921 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
1922 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
1923 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
1924 (identical_copies_p): New. Return true is two copies are the same.
1925 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
1926 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
1927 for a basic block.
1928 (perform_edge_inserts): New. Determine what to do with all stmts that
1929 have been inserted on edges.
1930 (remove_ssa_form): Analyze and commit edges from here.
1931
1932 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
1933
1934 PR bootstrap/18232
1935 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
1936 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
1937 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
1938 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
1939
1940 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1941
1942 PR c/18239
1943 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
1944 parameter declarations.
1945
1946 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
1947
1948 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
1949 (s390_secondary_input_reload_class)
1950 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
1951 register.
1952 (s390_expand_cmpmem): Enable cmpmem implementation.
1953 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
1954 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
1955 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
1956 * config/s390/s390.md ("movcc"): New insn pattern.
1957 * doc/md.texi: Document 'c' constraint for s390.
1958
1959 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
1960
1961 PR c++/18064
1962 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
1963 extension.
1964
1965 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
1966
1967 Fix PR tree-optimization/17672
1968 Fix PR tree-optimization/18168
1969
1970 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
1971 assert test.
1972 (gcc_tree_to_linear_expression): Add extra to existing constant.
1973 (depth_of_nest): Factor out function used in various places.
1974 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
1975 functional changes.
1976 (find_induction_var_from_exit_cond): Stop guessing, and just
1977 get the right answer :).
1978 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
1979 Print out message about result of attempt to create perfect nest.
1980 (lbv_to_gcc_expression): Add type argument, use it to do math
1981 and induction variable creation.
1982 (lle_to_gcc_expression): Ditto.
1983 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
1984 oldiv. Pass type argument to lle_to_gcc_expression and
1985 lbv_to_gcc_expression.
1986 Reset number of iterations after transformation.
1987 (perfect_nestify): Remove useless pre-allocation, and cleanup
1988 a small amount.
1989
1990 * tree-data-ref.c (build_classic_dist_vector): Return false for
1991 dependences completely outside of the loop nest we asked about.
1992 (build_classic_dir_vector): Ditto.
1993 (compute_data_dependences_for_loop): Only add dependence relations
1994 inside the loop we asked about.
1995
1996 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
1997 Compute immediate uses.
1998
1999 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
2000
2001 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
2002
2003 * tree-cfg.c (thread_jumps): Fix a comment typo.
2004
2005 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
2006
2007 * tree-cfg.c (thread_jumps): Fix a comment typo.
2008
2009 2004-10-31 Nicolas Pitre <nico@cam.org>
2010
2011 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
2012 values smaller than 2^32.
2013
2014 2004-10-31 Jeff Law <law@redhat.com>
2015
2016 * cfgloop.h (struct loop): Remove unused "nodes" field.
2017 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
2018 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
2019 instead of calling flow_bb_inside_loop_p for every basic block
2020 in the function.
2021 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
2022
2023 2004-10-31 Graham Stott <graham.stott@btinternet.com>
2024
2025 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
2026 INT_5_BITS instead of VAL_5_BITS_P.
2027
2028 2004-10-31 Roger Sayle <roger@eyesopen.com>
2029
2030 PR middle-end/14521
2031 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
2032 for consistent quoting in diagnostic messages.
2033 (expand_call_inline): Likewise.
2034 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2035 * tree-ssa.c (warn_uninitialized_var): Likewise.
2036 (warn_uninitialized_phi): Likewise.
2037
2038 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
2039
2040 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
2041 mode check.
2042
2043 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
2044
2045 * c-common.c: Fix a comment typo.
2046
2047 2004-10-31 Jason Merrill <jason@redhat.com>
2048
2049 PR middle-end/17526
2050 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
2051 aggregate types that are not BLKmode.
2052
2053 2004-10-30 Ziemowit Laski <zlaski@apple.com>
2054
2055 * c-common.h (objc_lookup_ivar): Add second parameter to
2056 prototype.
2057 * c-typeck.c (build_external_ref): After looking up symbol,
2058 pass it to objc_lookup_ivar() to decide whether it or the
2059 ivar should be used, rather than deciding the issue locally.
2060 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
2061 which is simply returned in the non-ObjC case.
2062
2063 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
2064
2065 * sdbout.c (sdbout_symbol): Do not output type .def statements
2066 for builtin types.
2067
2068 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2069
2070 * c-common.c (catenate_strings): New.
2071 (c_parse_error): Use it. Don't over-escape.
2072
2073 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
2074
2075 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
2076 modify the for loop expressions for it. Remove unnecessary casts.
2077 (sh_expand_prologue): Declare reg as unsigned.
2078 (sh_gimplify_va_arg_expr): Initinalize lab_over.
2079 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
2080
2081 2004-10-30 Geoffrey Keating <geoffk@apple.com>
2082
2083 * doc/invoke.texi (Darwin Options): Improve description of
2084 how the subtype is chosen.
2085
2086 2004-10-30 Roger Sayle <roger@eyesopen.com>
2087
2088 PR middle-end/18096
2089 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
2090 the stack adjustment, "size", is valid for Pmode. If the stack
2091 frame is too large, generate a trap insn and issue a warning.
2092
2093 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
2094
2095 * tree-ssa-dom.c: Fix comment typos.
2096
2097 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
2098
2099 * config/sh/sh.c (prepare_move_operands): Use operands[0]
2100 for the output rtl if no_new_pseudos is set. Remove redundant
2101 line.
2102
2103 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
2104
2105 PR c/16666
2106 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
2107 determining whether to copy parameter types from a previous
2108 prototype declaration.
2109
2110 2004-10-29 Roger Sayle <roger@eyesopen.com>
2111
2112 PR rtl-optimization/17581
2113 * cselib.c (cselib_process_insn): The last instruction of a libcall
2114 block, with the REG_RETVAL note, should be considered in the libcall.
2115 * gcse.c (do_local_cprop): Allow constants to be propagated outside
2116 of libcall blocks.
2117 (adjust_libcall_notes): Use simplify_replace_rtx instead of
2118 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
2119
2120 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
2121
2122 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
2123
2124 2004-10-29 Jeff Law <law@redhat.com>
2125
2126 * tree-ssa-dom.c (struct edge_info): New structure holding
2127 edge equivalences and edge redirection information.
2128 (get_eq_expr_value, record_dominating_conditions): Kill.
2129 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
2130 Call record_edge_info.
2131 (allocate_edge_info, free_edge_info): New.
2132 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
2133 rather than cprop_into_phis. Free all edge infos before threading
2134 jumps.
2135 (thread_across_edge): Allocate new edge info structures as needed
2136 and store the redirection target into the edge info structure
2137 instead of the edge's AUX field.
2138 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
2139 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
2140 Revamp code which finds and records equivalences associated with
2141 edges to use saved data in the edge_info structure.
2142 (record_equivalencs_from_phis): Similarly.
2143 (dom_opt_finalize_block): Revamp code which finds and records
2144 equivalences associated with edges to use saved data in the
2145 edge_info structure.
2146 (build_and_record_new_cond): New function.
2147 (record_conditions): Use build_and_record_new_cond to record
2148 dominating conditions.
2149 (record_edge_info): New function.
2150 (record_range): Tighten test for conditions which create
2151 useful range records.
2152
2153 2004-10-29 Geoffrey Keating <geoffk@apple.com>
2154
2155 * config/i386/darwin.h (ASM_SPEC): Simplify.
2156 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2157 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
2158 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2159 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
2160 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
2161 in all cases. Pass the right -arch or -arch_only based on -mcpu.
2162 (ASM_SPEC): Handle -force_cpusubtype_ALL.
2163 * doc/invoke.texi (Darwin Options): Improve documentation for
2164 Darwin linker (and libtool) switches.
2165
2166 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
2167
2168 2004-10-29 Stan Shebs <shebs@apple.com>
2169
2170 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
2171
2172 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2173
2174 * tree-phinodes.c (allocate_phi_node): New.
2175 (make_phi_node, resize_phi_node): Use it.
2176
2177 2004-10-29 David Edelsohn <edelsohn@gnu.org>
2178
2179 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
2180 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
2181
2182 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2183
2184 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
2185 the whole PHI node.
2186 * tree.h (tree_phi_node): Tell the garbage collector to chase
2187 num_args arguments.
2188
2189 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
2190
2191 * opts.c (decode_options): Lower the crossjump threshold for -Os.
2192
2193 2004-10-29 Diego Novillo <dnovillo@redhat.com>
2194
2195 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
2196
2197 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
2198
2199 * bitmap.h (bitmap_empty_p): New.
2200 (bitmap_and, bitmap_and_into, bitmap_and_compl,
2201 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
2202 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
2203 operation macros.
2204 (bitmap_ior_and_compl): Rename to ...
2205 (bitmap_ior_and_compl_into): ... here.
2206 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
2207 (bitmap_ior_and_compl): Rename to ...
2208 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
2209 flag.
2210 (bitmap_union_of_diff): Use renamed bitmap functions.
2211 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
2212 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
2213 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2214 * df.c (df_bb_rd_local_compute)
2215 * flow.c (calculate_global_regs_live,
2216 init_propagate_block_info): Likewise.
2217 * ifcvt.c (find_if_case_1, find_if_case_2,
2218 dead_or_predicable): Likewise.
2219 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
2220 reset_conflicts, conflicts_between_webs): Likewise.
2221 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
2222 detect_web_parts_to_rebuild): Likewise.
2223 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
2224 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
2225 * tree-sra.c (decide_instantiations): Likewise.
2226 * tree-ssa-alias.c (create_name_tags,
2227 merge_pointed_to_info): Likewise.
2228 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2229 * tree-ssa-loop-im.c (move_computations): Likewise.
2230 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
2231 * tree-ssa-pre.c (fini_pre): Likewise.
2232 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
2233 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
2234 * tree-vectorizer.c (vectorize_loops): Likewise.
2235
2236 2004-10-29 Nick Clifton <nickc@redhat.com>
2237
2238 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
2239 adding the PIC register to the fixed_regs array, also add it
2240 to the call_used_regs array.
2241
2242 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
2243
2244 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
2245 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
2246
2247 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
2248
2249 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
2250 (rewrite_blocks): Modify argument, and use it to decide which
2251 function to call.
2252 (rewrite_def_def_chains): Call rewrite_blocks with true here.
2253 (rewrite_into_ssa): and call it with false here.
2254
2255 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
2256
2257 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
2258 triggers into gcc_assert.
2259
2260 2004-10-28 Diego Novillo <dnovillo@redhat.com>
2261
2262 PR tree-optimization/16728
2263 * tree-flow.h (get_ptr_info): Declare.
2264 * tree-ssa-alias.c (get_ptr_info): Make extern.
2265 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
2266 alias information.
2267
2268 2004-10-28 Stan Shebs <shebs@apple.com>
2269
2270 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
2271 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
2272 case.
2273
2274 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
2275
2276 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
2277 prevent their later unnecessary registration.
2278 (mf_build_check_statement_for): Remove "addr" argument, and
2279 related "__mf_value" generated code. Update callers.
2280 (mf_decl_eligible_p): New function, factored from mx_register_decls.
2281 (mx_register_decls): Call it.
2282 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
2283 to restore support for complex nested expressions.
2284 (mudflap_enqueue_decl): Simplify. Move registration call emission
2285 out ...
2286 (mudflap_finish_file): ... to here.
2287 (mudflap_enqueue_constant): Remove dump code.
2288
2289 2004-10-28 Zack Weinberg <zack@codesourcery.com>
2290
2291 PR 18199
2292 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
2293 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
2294 (dbxout_finish_complex_stabs): Update to match.
2295 (dbxout_symbol_location): Call emit_pending_bincls_if_required
2296 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
2297 dbxout_begin_complex_stabs_noforcetext.
2298 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
2299 N_GSYM, using new SYM parameter. Correct logic for special
2300 cases for N_FUN.
2301
2302 * varasm.c (function_section): If DECL is NULL_TREE, don't try
2303 to do anything else. Do not call get_insns if cfun or
2304 cfun->emit are NULL.
2305
2306 2004-10-28 Adam Nemet <anemet@lnxw.com>
2307
2308 PR middle-end/18160
2309 * c-typeck.c (c_mark_addressable): Issue error if address of a
2310 register variable is taken. Use "%qD" to print DECL_NAME.
2311
2312 2004-10-28 Diego Novillo <dnovillo@redhat.com>
2313
2314 * opts.c (decode_options): Don't run PRE at -Os.
2315
2316 2004-10-28 Richard Henderson <rth@redhat.com>
2317
2318 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
2319 zero in the conditional.
2320 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
2321
2322 2004-10-28 Richard Henderson <rth@redhat.com>
2323
2324 * cse.c (memory_extend_rtx): Remove.
2325 (cse_main): Don't set it.
2326 (cse_insn): Use a local buffer instead.
2327
2328 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
2329
2330 * profile.c (branch_prob): Call to init_edge_profiler added.
2331 * rtl-profile.c (rtl_init_edge_profiler): New function.
2332 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
2333 call to safe_insert_insn_on_edge.
2334 (rtl_profile_hooks): rtl_init_edge_profiler added.
2335 * tree-profile.c (tree_init_edge_profiler): New function.
2336 (tree_profile_hooks): tree_init_edge_profiler added.
2337 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
2338
2339 2004-10-28 Nick Clifton <nickc@redhat.com>
2340
2341 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
2342 emit_jump_insn() to generate the return instruction.
2343
2344 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2345
2346 * tree-phinodes.c: Remove trailing whitespace.
2347
2348 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2349
2350 * tree-ssa-loop-ivopts.c: Fix a comment typo.
2351 * doc/invoke.texi: Fix a typo.
2352
2353 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2354
2355 * Makefile.in (OBJS-common): Remove duplicates.
2356
2357 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2358
2359 * lambda-code.c (nestify_update_pending_stmts): Remove.
2360 (perfect_nestify): Use flush_pending_stmts instead of
2361 nestify_update_pending_stmts.
2362 * tree-cfg.c (tree_make_forwarder_block): Use
2363 flush_pending_stmts.
2364 * tree-flow.h: Add a prototype for flush_pending_stmts.
2365 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
2366 Use flush_pending_stmts.
2367 (lv_update_pending_stmts): Remove.
2368 (tree_ssa_loop_version): Use flush_pending_stmts instead of
2369 lv_update_pending_stmts.
2370 * tree-ssa.c (flush_pending_stmts): New.
2371
2372 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
2373
2374 PR target/15286
2375 * final.c (alter_subreg): Compute correct offset to use with
2376 paradoxical SUBREGs of memory operands.
2377 * recog.c (general_operand): Allow paradoxical SUBREGs of
2378 memory operands after reload.
2379 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
2380 has failed when passed a hard register.
2381
2382 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
2383
2384 * function.c (assign_parm_setup_block): Handle parallels correctly.
2385
2386 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
2387
2388 * final.c (shorten_branches): Initialize flags structure.
2389
2390 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
2391
2392 * tree.c (int_cst_node, int_cst_hash_table): New variables.
2393 (init_ttree): Initialize them.
2394 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
2395 (build_int_cst_wide): Use hash table for oversized integers.
2396
2397 2004-10-28 Nick Clifton <nickc@redhat.com>
2398
2399 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
2400 begin_label.
2401
2402 2004-10-27 Richard Henderson <rth@redhat.com>
2403
2404 PR middle-end/18163
2405 * expr.c (emit_group_load): Don't go force temporary for memory
2406 or concat source.
2407 (emit_group_store): Similarly.
2408
2409 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
2410
2411 PR other/18186
2412 * common.opt (--param): Fix spelling of parameter.
2413
2414 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
2415
2416 PR tree-opt/17529
2417 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
2418 Don't fold statement.
2419 <case ASM_EXPR>: Fold the statement.
2420
2421 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
2422
2423 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
2424 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
2425
2426 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
2427
2428 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
2429 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
2430 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
2431 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
2432
2433 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
2434
2435 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
2436 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
2437 punctuation outside quotes.
2438
2439 2004-10-27 David Mosberger <davidm@hpl.hp.com>
2440 James E Wilson <wilson@specifixinc.com>
2441
2442 PR target/13158
2443 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
2444 sibcall alloc instruction.
2445 (process_set): Handle sibcall alloc instruction.
2446
2447 2004-10-27 Geoffrey Keating <geoffk@apple.com>
2448
2449 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
2450 SUBTARGET_ATTRIBUTE_TABLE.
2451 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
2452 (SUBTARGET_ATTRIBUTE_TABLE): Define.
2453 * config/darwin.c (darwin_handle_weak_import_attribute): New.
2454 (HAVE_DEAD_STRIP): Delete.
2455 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
2456 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
2457 Prototype.
2458
2459 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
2460
2461 * config/darwin.h (GTHREAD_USE_WEAK): Define.
2462
2463 2004-10-28 Ben Elliston <bje@au.ibm.com>
2464
2465 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
2466 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
2467 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
2468 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
2469 * tree-sra.c: Include "params.h".
2470 (decide_block_copy): Use new parameters.
2471 * doc/invoke.texi (Optimize Options): Document new SRA pass
2472 parameters sra-max-structure-size and sra-field-structure-ratio.
2473
2474 2004-10-27 Nicolas Pitre <nico@cam.org>
2475
2476 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
2477
2478 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
2479
2480 PR tree-optimization/18048
2481 * fold-const.c (try_move_mult_to_index): New function.
2482 (fold): Use try_move_mult_to_index.
2483 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
2484 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
2485 an all-ones unsigned constant without extra bits.
2486 * tree.c (build_low_bits_mask): New function.
2487 * tree.h (build_low_bits_mask): Declare.
2488
2489 2004-10-27 David Edelsohn <edelsohn@gnu.org>
2490
2491 PR target/17956
2492 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
2493 final condition.
2494 (minsf3): Same.
2495 (maxdf3): Same.
2496 (mindf3): Same.
2497
2498 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
2499
2500 * tree-cfg.c (thread_jumps): Speed up by reordering the two
2501 conditions for entering basic blocks into worklist.
2502
2503 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
2504
2505 * tree-cfg.c (thread_jumps): Speed up by pretending to have
2506 ENTRY_BLOCK_PTR in worklist.
2507
2508 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
2509
2510 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
2511 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
2512
2513 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
2514
2515 Fix PR tree-optimization/17133
2516
2517 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
2518 def kill operand.
2519
2520 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
2521 (get_v_must_def_result_ptr): Modify for new structure of
2522 v_must_defs array.
2523 (get_v_must_def_kill_ptr): New.
2524 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
2525 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
2526 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
2527 (op_iter_init): Initialize new mustu members.
2528 (op_iter_next_mustdef): New function.
2529 (op_iter_init_mustdef): Ditto.
2530
2531 * tree-flow.h (rewrite_def_def_chains): New function.
2532
2533 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
2534 (ssa_mark_def_sites): Ditto.
2535 (rewrite_stmt): Ditto.
2536 (ssa_rewrite_stmt): Ditto.
2537 (rewrite_blocks): Factor out from rewrite_into_ssa.
2538 (mark_def_block_sites): Ditto.
2539 (rewrite_def_def_chains): New function, just rewrites def-def
2540 chains without phi node insertion.
2541
2542 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
2543
2544 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
2545
2546 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
2547 they include the rhs now.
2548
2549 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
2550 V_MUST_DEF_RESULT.
2551
2552 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
2553 Update callers.
2554 (mark_really_necessary_kill_operand_phis): New function.
2555 (perform_tree_ssa_dce): Call it.
2556 (pass_dce): Add TODO_fix_def_def_chains.
2557 (pass_cd_dce): Ditto.
2558
2559 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
2560 well.
2561 (rewrite_mem_refs): Ditto.
2562
2563 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
2564 as well.
2565
2566 * tree-ssa-operands.c (allocate_v_may_def_optype):
2567 v_may_def_operand_type_t became v_def_use_operand_type_t.
2568 (allocate_v_must_def_optype) Ditto.
2569 (finalize_ssa_v_must_defs): Update for new operand type, as well
2570 as setting the use portion as well.
2571 (copy_virtual_operands): Copy the kill operand as well.
2572 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
2573 V_MUST_DEF_RESULT.
2574
2575 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
2576 v_def_use_operand_type.
2577 (v_must_def_optype_d): Use v_def_use_operand_type.
2578 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
2579 (V_MUST_DEF_KILL_*): New macros.
2580 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
2581 members.
2582 Rename existing must_i and num_v_must members to mustd_i and
2583 num_v_mustd.
2584 (SSA_OP_VMUSTDEFKILL): New flag.
2585 (SSA_OP_VIRTUAL_KILLS): New flag.
2586 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
2587 (SSA_OP_ALL_KILLS): New flag.
2588 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
2589
2590 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
2591
2592 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
2593 became V_MUST_DEF_RESULT.
2594 (rename_variables_in_bb): Rename kill pointer as well.
2595
2596 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
2597 immediate uses.
2598
2599 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
2600
2601 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
2602 the block that needs it.
2603
2604 2004-10-27 Zack Weinberg <zack@codesourcery.com>
2605
2606 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
2607 ATTRIBUTE_UNUSED.
2608
2609 2004-10-27 Zack Weinberg <zack@codesourcery.com>
2610
2611 * c-lex.c (cb_def_pragma): Clean up code for making location
2612 palatable to diagnostic.c.
2613
2614 2004-10-27 Steven Bosscher <stevenb@suse.de>
2615
2616 PR tree-optimization/17757
2617 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
2618 without any PHI arguments left. Make sure the argument that
2619 we're supposed to remove exists at all.
2620
2621 2004-10-27 Paul Brook <paul@codesourcery.com>
2622
2623 * configure.ac: Don't test for [build] __cxa_atexit when building a
2624 cross compiler.
2625 * configure: Regenerate.
2626
2627 2004-10-27 Paul Brook <paul@codeosurcery.com>
2628
2629 * configure.ac: Use build_exeext not host_exeext when lookin for
2630 target tools.
2631 * configure: Regenerate.
2632
2633 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
2634
2635 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
2636
2637 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
2638 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
2639
2640 PR middle-end/14684
2641 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
2642 to match -fprofile-use.
2643
2644 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
2645
2646 * config/rs6000/rs6000.c: Fix a comment typo.
2647
2648 2004-10-27 Zack Weinberg <zack@codesourcery.com>
2649
2650 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
2651 counter.
2652
2653 2004-10-27 Andreas Schwab <schwab@suse.de>
2654
2655 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
2656 unused.
2657 (default_stabs_asm_out_constructor): Likewise.
2658
2659 2004-10-26 Geoffrey Keating <geoffk@apple.com>
2660
2661 * builtins.c (fold_builtin_unordered_cmp): Always bring both
2662 operands to the same type.
2663
2664 2004-10-26 James E Wilson <wilson@specifixinc.com>
2665
2666 PR target/18010
2667 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
2668
2669 2004-10-26 Zack Weinberg <zack@codesourcery.com>
2670
2671 * dbxout.c: Include obstack.h.
2672 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
2673 default definition.
2674 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
2675 Default-define here.
2676 (DBX_CONTIN_LENGTH): Move definition with others.
2677 (DBX_FINISH_STABS): New target macro.
2678 (current_sym_code, current_sym_value, current_sym_addr)
2679 (current_sym_nchars, CHARS, dbxout_continue)
2680 (print_int_cst_octal, print_octal, print_wide_int)
2681 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
2682 (stabstr_ob, stabstr_last_contin_point): New variables.
2683 (NUMBER_FMT_LOOP): New improper macro.
2684 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
2685 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
2686 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
2687 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
2688 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
2689 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
2690 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
2691 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
2692 New functions and/or proper function-like macros.
2693 (CONTIN): Use stabstr_continue, unconditionally.
2694 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
2695 (dbxout_init): Initialize stabstr_ob. Check
2696 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
2697 if it was used. Use the new interfaces.
2698 (dbxout_source_file): Remove file argument; always write to
2699 asm_out_file. Use the new interfaces.
2700 (dbxout_type_method_1): Remove second argument which is always
2701 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
2702 (dbxout_type_methods): Remove write-only variables. Use the
2703 new interfaces.
2704 (dbxout_parms): Refactor to remove code duplicated in each of
2705 several successive if-else-if blocks. Use the new interfaces.
2706 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
2707 (dbxout_source_line, dbxout_finish, dbxout_type_index)
2708 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
2709 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
2710 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
2711 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
2712 Use the new interfaces.
2713 * Makefile.in (dbxout.o): Update dependencies.
2714
2715 * defaults.h: Don't define ASM_STABD_OP.
2716 * output.h: Prototype new dbxout_* interfaces.
2717 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
2718 * varasm.c: Don't define ASM_STABS_OP.
2719 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
2720 Use the new dbxout.c interfaces. Call sorry if neither
2721 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
2722
2723 * xcoffout.h: Don't define ASM_STABS_OP.
2724 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
2725 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
2726 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
2727 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
2728 do { ... } while (0) idiom.
2729
2730 * config/alpha/alpha.c (num_source_filenames): Export.
2731 * config/alpha/alpha.h (num_source_filenames): Declare.
2732 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
2733 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
2734 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
2735 Always use .debugsym. Update commentary.
2736 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
2737 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
2738 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
2739 Use new interfaces.
2740 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
2741 (macho_branch_islands): Use new interfaces.
2742
2743 * doc/tm.texi: Update.
2744
2745 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
2746
2747 * expr.c (emit_group_store): Do not treat floats as BLKmode.
2748 (emit_group_load): Same.
2749
2750 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
2751
2752 * c-parse.in (datadef): Use pedwarn rather than error and warning
2753 for diagnostic in case of no declaration specifiers.
2754
2755 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
2756
2757 PR bootstrap/15747
2758 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
2759 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
2760 can be used to work around this.
2761
2762 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
2763
2764 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
2765 doubles.
2766
2767 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
2768
2769 * stmt.c (expand_case): Update a comment.
2770
2771 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
2772
2773 * stmt.c (expand_case): Put an assertion that index_expr is
2774 never INTEGER_CST. Don't special case for constant
2775 index_expr.
2776
2777 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
2778
2779 PR 18162
2780 * c-parse.in (designator): Finish with a semi-colon.
2781
2782 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
2783
2784 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
2785 into rotlsi3.
2786
2787 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
2788
2789 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
2790 a default case only.
2791
2792 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
2793
2794 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
2795 e500 doubles.
2796 (spe_build_register_parallel): New.
2797 (rs6000_spe_function_arg): Handle e500 doubles.
2798 (function_arg): Same.
2799 (spe_func_has_64bit_regs_p): Same.
2800 (rs6000_function_value): Same.
2801 (rs6000_libcall_value): Same.
2802 (legitimate_lo_sum_address_p): Return false for e500 doubles.
2803
2804 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
2805 doubles.
2806 (DATA_ALIGNMENT): Same.
2807 (CANNOT_CHANGE_MODE_CLASS): Same.
2808
2809 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
2810
2811 * expr.c (emit_group_load): Handle floats.
2812 (emit_group_store): Same.
2813
2814 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
2815
2816 * c-lex.c (get_nonpadding_token): Remove.
2817 (c_lex_with_flags): Push timevar and eat padding here. Improve
2818 stray token diagnostic.
2819 (lex_string): Replace logic with switch statement, eat padding
2820 token here.
2821
2822 2004-10-26 Geoffrey Keating <geoffk@apple.com>
2823
2824 PR 18149
2825 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
2826
2827 2004-10-25 Geoffrey Keating <geoffk@apple.com>
2828
2829 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
2830 to 'non-weak'.
2831 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
2832 (ASM_MAKE_LABEL_LINKONCE): Delete.
2833 (ASM_WEAKEN_DECL): New.
2834 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
2835 (ASM_DECLARE_FUNCTION_NAME): Likewise.
2836 (TEXT_SECTION_ASM_OP): Add a tab.
2837 (DATA_SECTION_ASM_OP): Likewise.
2838 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
2839 data_section on every section change.
2840 (EXTRA_SECTIONS): Add a bunch of new extra sections.
2841 (EXTRA_SECTION_FUNCTIONS): Likewise.
2842 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
2843 (JCR_SECTION_NAME): Define.
2844 (TARGET_SECTION_TYPE_FLAGS): Don't define.
2845 * config/darwin.c (darwin_encode_section_info): A symbol is defined
2846 in this file if it is not weak.
2847 (textcoal_section): Delete.
2848 (datacoal_section): Delete.
2849 (darwin_make_decl_one_only): Delete.
2850 (machopic_select_section): Handle functions.
2851 (darwin_asm_named_section): Add a tab.
2852 (darwin_section_type_flags): Delete.
2853 (darwin_unique_section): Delete contents.
2854 (darwin_emit_unwind_label): Add a tab. Make decls weak if
2855 DECL_WEAK is set.
2856 * config/darwin-protos.h (darwin_section_type_flags): Delete.
2857 (darwin_make_decl_one_only): Delete.
2858 (text_coal_section): New.
2859 (text_unlikely_section): New.
2860 (text_unlikely_coal_section): New.
2861 (const_coal_section): New.
2862 (data_coal_section): New.
2863 (const_data_coal_section): New.
2864 * varasm.c (function_section): Honour
2865 USE_SELECT_SECTION_FOR_FUNCTIONS.
2866 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
2867 TARGET_USES_WEAK_UNWIND_INFO is in effect.
2868 * dbxout.c (dbxout_source_file): Don't change sections while
2869 a function is being output.
2870
2871 2004-10-25 David Ayers <d.ayers@inode.at>
2872
2873 * c-common.h: Remove RID_ID.
2874 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
2875 (typespec_reserved_attr): Add rule for TYPENAME
2876 non_empty_protocolrefs.
2877 (yylexname): Remove special handling of RID_ID.
2878
2879 2004-10-25 James E Wilson <wilson@specifixinc.com>
2880
2881 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
2882
2883 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
2884
2885 PR c/16667
2886 * c-parse.in (array_designator): New.
2887 (designator): Use it.
2888 (initelt): Only permit array_designator without '=', not ".foo".
2889
2890 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
2891 * gcc/Makefile.in: removed ggc for cgraphunit.
2892 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
2893 * gcc/cgraph.h: removed static var analysis data structures and calls.
2894 * gcc/cgraphunit.c:
2895 cgraph_mark_local_and_external_functions:changed name to
2896 cgraph_mark_local_functions
2897 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
2898 cgraph_reset_static_var_maps,get_global_static_vars_info,
2899 get_global_statics_not_read,get_global_statics_not_written,searchc,
2900 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
2901 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
2902 scan_for_static_refs,cgraph_characterize_statics_local,
2903 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
2904 removed.
2905 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
2906 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
2907 analysis
2908 * gcc/tree-flow.h static_vars_info: removed
2909 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
2910 removed calls to static vars analysis.
2911 get_call_expr_operands: removed callee variable.
2912
2913 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
2914
2915 * cfg.c (unchecked_make_edge, redirect_edge_succ,
2916 redirect_edge_pred): Use VEC_safe_push instead of
2917 VEC_safe_insert.
2918 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2919
2920 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
2921
2922 * cfgloopmanip.c (loopify): Take two more arguments true_edge
2923 and false_edge.
2924 * cfgloop.h: Adjust the corresponding prototype.
2925 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
2926 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
2927
2928 2004-10-25 Jakub Jelinek <jakub@redhat.com>
2929
2930 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
2931 DECL_INCOMING_RTL is NULL.
2932
2933 2004-10-25 Steven Bosscher <stevenb@suse.de>
2934
2935 * timevar.def (TV_FIND_REFERENCED_VARS): New.
2936 * tree-dfa.c (pass_referenced_var): Use it.
2937
2938 2004-10-25 Roger Sayle <roger@eyesopen.com>
2939 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2940
2941 * cse.c: Change encoding of quantity numbers to avoid undefined
2942 pointer arithmetic on qty_table.
2943 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
2944 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
2945 (new_basic_block): Assign "real" quantity numbers from zero.
2946 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
2947 REG_QTY to its unique negative value.
2948 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
2949 (cse_main): Don't include max_reg when determining max_qty.
2950 (cse_basic_block): Avoid subtracting a large offset from qty_table,
2951 which causes undefined C99 behaviour. Only allocate needed memory.
2952
2953 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
2954
2955 * stmt.c (expand_case): Remove an obsolete comment.
2956
2957 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
2958
2959 PR middle-end/17407
2960 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
2961 layout_type as it is already done by build_array_type.
2962 * tree.c (build_array_type): Layout the type even
2963
2964 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
2965
2966 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
2967
2968 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
2969
2970 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
2971 with wider-than-32-bit HOST_WIDE_INTs.
2972
2973 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
2974
2975 * config/mips/mips.c(mips_output_filename): Remove unused
2976 array ltext_label_name
2977
2978 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
2979
2980 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
2981
2982 2004-10-25 Ben Elliston <bje@au.ibm.com>
2983
2984 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
2985
2986 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
2987
2988 * predict.c (predict_loops): Call scev_finalize instead of
2989 scev_reset.
2990
2991 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
2992
2993 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
2994 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
2995 config/sh/ushmedia.h, config/sparc/elf.h,
2996 config/sparc/sp64-elf.h: Update copyright.
2997
2998 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
2999
3000 * stmt.c (expand_case): Handle the default label outside of
3001 the for loop. Remove code to handle a missing default label.
3002
3003 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
3004
3005 * dbxout.c (dbxout_function_decl): Don't use
3006 DBX_OUTPUT_FUNCTION_END.
3007 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
3008 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
3009
3010 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
3011
3012 PR middle-end/17967
3013 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
3014
3015 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
3016
3017 * tree-ssa-dom.c (record_equality): Use loop depth to determine
3018 which way to record the equality as well.
3019 (loop_depth_of_name): New function.
3020
3021 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3022
3023 PR middle-end/17793
3024 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
3025 through the operand if it is a useless type conversion.
3026
3027 2004-10-23 Ben Elliston <bje@au.ibm.com>
3028
3029 * cfg.c (remove_edge): Use VEC_unordered_remove.
3030 (redirect_edge_succ): Likewise.
3031 (redirect_edge_pred): Likewise.
3032 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3033
3034 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3035
3036 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
3037 beyond its end.
3038
3039 2004-10-22 Eric Christopher <echristo@redhat.com>
3040
3041 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
3042 saves.
3043
3044 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
3045
3046 * config/rs6000/spe.md (spe_extendsfdf2): New.
3047 (movdf_e500_double): New.
3048 (spe_truncdfsf2): New.
3049 (spe_absdf2): New.
3050 (spe_nabsdf2): New.
3051 (spe_negdf2): New.
3052 (sub_adddf3): New.
3053 (spe_subdf3): New.
3054 (spe_muldf3): New.
3055 (spe_floatsidf2): New.
3056 (spe_floatunssidf2): New.
3057 (fix_truncdfsi2): New.
3058 (spe_fixuns_truncdfsi2): New.
3059
3060 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
3061 (fpr_truncdfsf2): New.
3062 (negdf2): Change to expander.
3063 (fpr_negdf2): New.
3064 (fpr_nabsdf2): Name pattern.
3065 (adddf3): Change to expander.
3066 (fpr_adddf3): Nem.
3067 (subdf3): Change to expander.
3068 (fpr_subdf3): New.
3069 (muldf3): Change to expander.
3070 (fpr_muldf3): New.
3071 (divdf3): Change to expander.
3072 (fpr_divdf3): New.
3073 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
3074 (cmpdf): Allow for TARGET_E500_DOUBLE.
3075
3076 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3077
3078 * c-semantics.c (re_push_stmt_list): Remove.
3079 * c-common.h: Remove the corresponding prototype.
3080
3081 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3082
3083 * stmt.c (asm_op_is_mem_input): Remove.
3084 * tree.h: Remove the corresponding prototype.
3085
3086 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3087
3088 * tree-gimple.c (is_gimple_constructor_elt): Remove.
3089 * tree-gimple.h: Remove the corresponding prototype.
3090
3091 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3092
3093 * varasm.c (get_pool_mode_for_function, get_pool_offset):
3094 Remove.
3095 * rtl.h: Remove the corresponding prototypes.
3096
3097 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3098
3099 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
3100 edge information when we commit ourselves to threading a
3101 particular jump.
3102
3103 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3104
3105 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
3106 into worklist instead of their indexes.
3107
3108 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3109
3110 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
3111 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
3112 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
3113 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
3114 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
3115 tree-scalar-evolution.c, tree-ssa-dom.c,
3116 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3117 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
3118 tree-vectorizer.c, vec.h: Fix comment formatting.
3119
3120 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3121
3122 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
3123 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
3124
3125 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
3126
3127 * config/ptx4.h, config/mcore/mcore-pe.h,
3128 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
3129
3130 2004-10-22 Peter Barada <peter@the-baradas.com>
3131
3132 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
3133 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
3134 renaming of non-live registers in interrupt functions.
3135 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
3136
3137 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
3138
3139 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
3140 Use integer for loop counter.
3141 (num_ending_zeros): New function.
3142 (number_of_iterations_cond): Use num_ending_zeros.
3143
3144 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
3145
3146 * config.gcc: Add support for --enable-e500_double.
3147
3148 * config/rs6000/e500-double.h: New file.
3149
3150 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
3151 TARGET_E500_DOUBLE.
3152
3153 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
3154 TARGET_E500_DOUBLE.
3155
3156 * config/rs6000/linuxspe.h: Same.
3157
3158 * doc/invoke.texi (Option Summary): Document new options for
3159 mfloat-gprs.
3160 (RS/6000 and PowerPC Options): Same.
3161
3162 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
3163 function.
3164 (rs6000_override_options): Use it. Use
3165 SUB3TARGET_OVERRIDE_OPTIONS.
3166 Add 8548 to processor_target_table.
3167 (rs6000_legitimate_address): Handle e500 doubles.
3168 (rs6000_legitimize_address): Same.
3169 (rs6000_legitimize_reload_address): Same.
3170 (rs6000_hard_regno_nregs): Same.
3171 (spe_func_has_64bit_regs_p): Same.
3172 (emit_frame_save): Same.
3173 (gen_frame_mem_offset): Same.
3174 (rs6000_dwarf_register_span): Same.
3175 (rs6000_generate_compare): Same.
3176 (easy_fp_constant): Same.
3177 (legitimate_offset_address_p): Same.
3178
3179 * config/rs6000/spe.md: (cmdfeq_gpr): New.
3180 (tstdfeq_gpr): New.
3181 (cmpdfgt_gpr): New.
3182 (tstdfgt_gpr): New.
3183 (tstdfgt_gpr): New.
3184 (cmpdflt_gpr): New.
3185 (tstdflt_gpr): New.
3186 Add new constants.
3187
3188 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3189
3190 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
3191
3192 2004-10-21 Zack Weinberg <zack@codesourcery.com>
3193
3194 * dbxout.c: Remove unnecessary #undefs.
3195 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
3196 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
3197 definition into use sites.
3198 (cwd): Make local to dbxout_init.
3199 (dbxout_init): Restructure cwd-using logic for clarity. Use
3200 IS_DIR_SEPARATOR.
3201 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
3202 STABS_GCC_MARKER folded in here.
3203 * system.h: Poison now-unused macros.
3204 * doc/tm.texi: Remove documentation of now-unused macros.
3205
3206 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
3207
3208 PR c/17538
3209 * c-opts.c (push_command_line_include): Use the current file
3210 name instead of the main one.
3211
3212 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
3213
3214 PR objc/17923
3215 * tree.c (staticp): A CONST_DECL has static storage if either
3216 TREE_STATIC or DECL_EXTERNAL is set.
3217 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
3218 have null names.
3219
3220 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3221
3222 * expr.c (store_expr): Remove dont_store_target.
3223
3224 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3225
3226 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
3227
3228 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3229
3230 * tree-cfg.c (thread_jumps): Move a part of it to ...
3231 (thread_jumps_from_bb): ... here.
3232
3233 2004-10-21 David Edelsohn <edelsohn@gnu.org>
3234
3235 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
3236 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
3237
3238 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
3239
3240 * expr.c (store_expr): Clean up by renaming want_value to
3241 call_param_p.
3242
3243 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
3244
3245 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
3246 fixup pc here.
3247
3248 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
3249
3250 PR 18004.
3251 * expmed.c (store_bit_field): Pass original 'value' before
3252 recursing.
3253
3254 2004-10-21 Nicolas Pitre <nico@cam.org>
3255
3256 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
3257 * config/arm/ieee754-df.S: Ditto.
3258
3259 2004-10-20 Zack Weinberg <zack@codesourcery.com>
3260
3261 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
3262 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
3263 Default to 0.
3264 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
3265 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
3266 an internal label and an N_SLINE .stabn whose value is the
3267 difference between that label and the function entry label.
3268 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
3269 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
3270 label and an N_SO stab with an empty string referring to it.
3271 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
3272 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
3273 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
3274 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
3275 macro is never defined.
3276 * sdbout.c (sdbout_source_line_counter): Delete.
3277 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
3278 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
3279 only two arguments.
3280 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
3281
3282 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
3283 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
3284 definitions (identical to default).
3285 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
3286 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
3287 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
3288 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
3289 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
3290 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
3291 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
3292 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
3293 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
3294 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
3295 (sym_lineno): Delete.
3296 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
3297 now-unused variable.
3298 (alpha_output_lineno): Delete.
3299 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
3300 * config/mips/mips.c (mips_output_filename): Don't use
3301 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
3302 (mips_output_lineno): Delete.
3303 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
3304 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
3305 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
3306 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
3307 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
3308 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
3309 * config/mmix/mmix.h: Likewise.
3310 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
3311 * config/mmix/mmix-protos.h: Don't prototype it.
3312 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
3313 no need to #undef ASM_OUTPUT_SOURCE_LINE.
3314 * config/arm/aout.h: Remove RISCiX-specific definition of
3315 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
3316 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
3317 ASM_OUTPUT_SOURCE_LINE.
3318 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
3319 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
3320 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
3321
3322 * doc/tm.texi: Update.
3323
3324 2004-10-20 Richard Henderson <rth@redhat.com>
3325
3326 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
3327
3328 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
3329
3330 * configure.ac: Revert my previous patch.
3331 * configure: Regenerate.
3332
3333 2004-10-20 Ben Elliston <bje@au.ibm.com>
3334
3335 * config/rs6000/rs6000.c
3336 (rs6000_va_start): Use build_va_arg_indirect_ref.
3337 (rs6000_gimplify_va_arg): Likewise.
3338
3339 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
3340
3341 PR java/15575
3342 * configure.ac: Declare AM_LANGINFO_CODESET.
3343 * aclocal.m4: Define AM_LANGINFO_CODESET.
3344 * configure, config.in: Rebuilt.
3345
3346 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
3347
3348 * expr.c (store_expr): Remove code that is run when
3349 want_value & 1 is nonzero.
3350
3351 2004-10-20 Mark Mitchell <mark@codesourcery.com>
3352
3353 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
3354 from function pointer to void *.
3355
3356 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
3357
3358 PR target/18032
3359 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
3360 the frame pointer adjustment when exception handling is enabled.
3361
3362 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
3363
3364 * stor-layout.c: Fix a comment typo.
3365
3366 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
3367
3368 * expr.c (store_field): Remove two arguments value_mode and
3369 unsignedp.
3370 (expand_assignment, store_constructor_field,
3371 expand_expr_real_1): Adjust calls to store_field.
3372
3373 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3374
3375 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
3376
3377 PR target/17317
3378 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
3379 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
3380 base and index register for loads.
3381
3382 * config/arc/t-arc: Fix multilib handling.
3383
3384 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
3385
3386 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
3387 don't inspect BLOCK_FOR_INSN for barriers.
3388 * emit-rtl.c (emit_barrier_before): Revert last change.
3389 (emit_barrier_after, emit_barrier): Ditto.
3390
3391 * doc/extend.texi (Extended Asm): Warn and provide example
3392 solution for using a call-clobbered asm register.
3393 (Local Reg Vars): Similar. Cross-reference example.
3394
3395 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
3396
3397 * tree-cfg.c (group_case_labels): Look at the second to last
3398 case statement for combing with the default case.
3399
3400 2004-10-19 Richard Hendeson <rth@redhat.com>
3401
3402 PR 17962
3403 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
3404
3405 2004-10-19 Richard Hendeson <rth@redhat.com>
3406
3407 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
3408 succeeds, only expand the result.
3409
3410 2004-10-19 Richard Hendeson <rth@redhat.com>
3411
3412 PR middle-end/17885
3413 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
3414 of INDIRECT_REF.
3415
3416 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
3417
3418 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
3419 loop with goto.
3420
3421 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
3422
3423 * expr.c (expand_assignment): Remove the last argument.
3424 Change the return type to void.
3425 * expr.h: Update the prototype of expand_assignment.
3426 * function.c (assign_parm_setup_reg): Update a call to
3427 expand_assignment.
3428 * stmt.c (expand_asm_expr): Likewise.
3429
3430 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
3431
3432 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
3433 unnecessary assignments to temp. Return const0_rtx.
3434
3435 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
3436
3437 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
3438
3439 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
3440
3441 * configure.ac (powerpc-*-darwin*): Require assembler to support
3442 .machine directive.
3443 * configure: Regenerate.
3444
3445 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3446
3447 * reload1.c (ior_hard_reg_set): Remove.
3448 (finish_spills): Use IOR_HARD_REG_SET instead of
3449 ior_hard_reg_set.
3450
3451 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3452
3453 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
3454 the currently visited word to right.
3455
3456 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3457
3458 PR middle-end/18045
3459 * expmed.c (expand_smod_pow2): Handle modes whose size
3460 is greater than that of HOST_WIDE_INT.
3461
3462 2004-10-18 Ziemowit Laski <zlaski@apple.com>
3463
3464 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
3465
3466 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3467 Roger Sayle <roger@eyesopen.com>
3468
3469 PR middle-end/17813
3470 * dojump.c (discard_pending_stack_adjust): New function.
3471 (clear_pending_stack_adjust): Call it.
3472 * expr.h (discard_pending_stack_adjust): Declare it.
3473 * explow.c (emit_stack_save): Emit pending stack adjustments
3474 before saving the stack pointer.
3475 (emit_stack_restore): Discard pending stack adjustments before
3476 restoring the stack pointer.
3477
3478 2004-10-18 Richard Henderson <rth@redhat.com>
3479
3480 * c-common.c (handle_mode_attribute): Allow scalar->vector
3481 type changes yet.
3482
3483 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3484
3485 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
3486 value to expand_assignment.
3487
3488 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3489
3490 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
3491 thread_jumps.
3492 (thread_jumps): Iterate until no new forwarder block arises.
3493
3494 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3495
3496 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
3497 (thread_jumps): Use forwardable as cache of
3498 tree_forwarder_block_p throughout the function.
3499
3500 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
3501
3502 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
3503
3504 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
3505
3506 PR middle-end/15014
3507 PR middle-end/16973
3508 * tree-cfg.c (remove_bb): If we have a label expression in the
3509 basic block and the label we have taken the address, move the
3510 label expression to the basic block which is previous in the
3511 linked list.
3512 (tree_verify_flow_info): Fix printing out the label name of the
3513 problematic label expression.
3514
3515 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
3516
3517 PR rtl-optimization/18002
3518 * simplify-rtx.c (mode_signbit_p): Externalize function...
3519 * rtl.h (mode_signbit_p): ... to here.
3520 * combine.c (simplify_shift_const): Recognize PLUS signbit as
3521 canonical form of XOR signbit and move to outer op.
3522
3523 2004-10-18 Diego Novillo <dnovillo@redhat.com>
3524
3525 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
3526 Update all callers.
3527 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
3528 Don't call fold_stmt more than once, use bsi_replace.
3529
3530 2004-10-18 Diego Novillo <dnovillo@redhat.com>
3531
3532 PR tree-optimization/17656
3533 * tree-ssa.c (replace_immediate_uses): When replacing a
3534 constant, if the call to fold_stmt produced a different
3535 statement, get an appropriate statement pointer by scanning
3536 STMT's basic block.
3537
3538 2004-10-18 Richard Henderson <rth@redhat.com>
3539
3540 * pointer-set.c (hash1): Don't use libm functions in fallback case.
3541
3542 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
3543
3544 PR bootstrap/17684
3545 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
3546 (stage1-start): Remove and copy libunwind.a and
3547 libunwind*$(SHLIB_EXT) instead of libunwind*.
3548 (stage2-start): Likewise.
3549 (stage3-start): Likewise.
3550 (stage4-start): Likewise.
3551 (stageprofile-start): Likewise.
3552 (stagefeedback-start): Likewise.
3553
3554 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
3555 the shared library to be created and don't remove the existing
3556 shared library.
3557 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
3558 * config/i386/t-nwld (SHLIB_LINK): Likewise.
3559 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
3560 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
3561 * config/sh/t-linux (SHLIB_LINK): Likewise.
3562 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
3563 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
3564 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
3565 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3566
3567 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
3568 files.
3569
3570 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3571
3572 * basic-block.h (reg_set_iterator): New.
3573 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
3574 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
3575 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
3576 * caller-save.c (save_call_clobbered_regs): Adjust to the new
3577 style.
3578 * cfgcleanup.c (thread_jump): Likewise.
3579 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
3580 * conflict.c (conflict_graph_compute): Likewise.
3581 * flow.c (verify_local_live_at_start, update_life_info,
3582 initialize_uninitialized_subregs, propagate_one_insn,
3583 init_propagate_block_info, free_propagate_block_info,
3584 propagate_block, dump_regset): Likewise.
3585 * global.c (global_conflicts): Likewise.
3586 * graph.c (start_bb): Likewise.
3587 * local-alloc.c (update_equiv_regs): Likewise.
3588 * loop.c (load_mems): Likewise.
3589 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
3590 find_reg, finish_spills): Likewise.
3591 * resource.c (mark_target_live_regs): Likewise.
3592 * sched-deps.c (sched_analyze_insn): Likewise.
3593 * sched-rgn.c (sched-rgn.c): Likewise.
3594 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3595
3596 2004-10-18 Jakub Jelinek <jakub@redhat.com>
3597
3598 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
3599 operand 1 instead of 2
3600
3601 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
3602
3603 * loop-unroll.c: Fix comment typos.
3604
3605 2004-10-18 Revital Eres <eres@il.ibm.com>
3606
3607 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
3608 * loop-unroll.c: Include varray.h.
3609 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
3610 opt_info and expand it to support variable expansion.
3611 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
3612 expand it to support variable expansion.
3613 (pt_info_start_duplication): Rename si_info_start_duplication.
3614 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
3615 to the variable expansion optimization.
3616 (free_opt_info): Rename free_si_info.
3617 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
3618 expand_var_during_unrolling, insert_var_expansion_initialization,
3619 combine_var_copies_in_loop_exit, release_var_copies,
3620 get_expansion): New functions.
3621 (peel_loop_completely, unroll_loop_constant_iterations,
3622 unroll_loop_runtime_iterations, peel_loop_simple,
3623 unroll_loop_stupid): Change uses of struct si_info
3624 to struct opt_info
3625 and add uses of fvariable-expansion-in-unroller flag.
3626 * params.def: Add parameter to restrict the number of expansions.
3627 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
3628 the number of expansions.
3629 * common.opt: (fvariable-expansion-in-unroller): New flag.
3630 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
3631
3632 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
3633
3634 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
3635 __GXX_MERGED_TYPEINFO_NAMES to 0.
3636
3637 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
3638
3639 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
3640 handle barriers in a bb by checking that it points to a NULL bb.
3641 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
3642 (emit_barrier_after, emit_barrier): Ditto.
3643
3644 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
3645
3646 * doc/extend.texi (Attribute Syntax): Clarify details of
3647 attributes on parameters.
3648
3649 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
3650
3651 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
3652 loop.
3653
3654 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
3655
3656 Revert:
3657 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
3658
3659 * c-typeck.c (default_function_array_conversion): Always create
3660 &a[0] for array types.
3661 (build_unary_op): Do not fold &a[x] into a + x.
3662
3663 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
3664
3665 PR middle-end/17925
3666 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
3667 block if there is a goto with a locus.
3668
3669 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
3670
3671 * config/elfos.h, config/gofast.h, config/interix.h,
3672 config/netbsd.h, config/svr3.h, config/vxworks.h,
3673 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
3674 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
3675 config/alpha/netbsd.h, config/arm/arm-modes.def,
3676 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
3677 config/cris/aout.h, config/frv/frv-modes.def,
3678 config/i386/beos-elf.h, config/i386/gas.h,
3679 config/i386/i386-coff.h, config/i386/i386-modes.def,
3680 config/i386/linux.h, config/i386/linux64.h,
3681 config/i386/mingw32.h, config/i386/netbsd-elf.h,
3682 config/i386/netbsd64.h, config/i386/sco5.h,
3683 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
3684 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
3685 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
3686 config/mips/mips-modes.def, config/mips/sdb.h,
3687 config/mips/vr.h, config/mips/vxworks.h,
3688 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
3689 config/pa/pa32-linux.h, config/rs6000/40x.md,
3690 config/rs6000/7450.md, config/rs6000/8540.md,
3691 config/rs6000/linuxspe.h, config/rs6000/power4.md,
3692 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
3693 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
3694 config/s390/s390-modes.def, config/sh/elf.h,
3695 config/sh/sh-modes.def, config/sh/sh64.h,
3696 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
3697 config/stormy16/stormy16.md, config/v850/v850-protos.h,
3698 config/vax/vax.md: Update copyright.
3699
3700 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
3701
3702 * expr.c (expand_expr_real_1): Remove an obsolete comment.
3703
3704 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
3705
3706 * c-typeck.c (default_function_array_conversion): Always create
3707 &a[0] for array types.
3708 (build_unary_op): Do not fold &a[x] into a + x.
3709
3710 2004-10-17 Jakub Jelinek <jakub@redhat.com>
3711
3712 * pointer-set.c (hash1): Use integer part of 2^64 / phi
3713 instead 2^32 / phi if long is 64-bit.
3714
3715 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
3716
3717 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
3718 RID_PTRVALUE.
3719 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
3720 declarations.
3721 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
3722 __ptrextent__, __ptrvalue and __ptrvalue__.
3723 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
3724 entries.
3725
3726 2004-10-16 Dale Johannesen <dalej@apple.com>
3727
3728 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
3729
3730 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
3731
3732 PR tree-optimization/17766
3733 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
3734 (dom_info_available_p): Declare.
3735 * cfghooks.c (split_block, make_forwarder_block): Use
3736 dom_info_available_p.
3737 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
3738 free_dominance_info, verify_dominators): Ditto.
3739 (dom_info_available_p): New function.
3740 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
3741 (thread_jumps): Use dom_info_available_p.
3742 * tree-complex.c (expand_complex_div_wide): Ditto.
3743 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
3744
3745 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
3746
3747 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
3748 (find_best_candidate): Take also important candidates into account.
3749 (find_optimal_iv_set): Initialize important_candidates bitmap.
3750
3751 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
3752
3753 PR tree-optimization/17560
3754 * predict.c (tree_estimate_probability): Mark irreducible
3755 loops.
3756
3757 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
3758
3759 PR rtl-optimization/17723
3760 * cfgcleanup.c (merge_memattrs): Handle case when
3761 MEM_SIZE == NULL_RTX.
3762
3763 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
3764
3765 * toplev.c (dump_file_name): Change type to be const.
3766
3767 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
3768
3769 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
3770 non_lvalue to stop something being a null pointer constant.
3771
3772 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
3773
3774 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
3775 available for TARGET_FPRS.
3776 (FUNCTION_VALUE_REGNO_P): Same.
3777
3778 2004-10-15 Geoffrey Keating <geoffk@apple.com>
3779
3780 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3781 -maltivec in same style as other ISA options.
3782
3783 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
3784
3785 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
3786 definition.
3787
3788 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
3789
3790 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
3791 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
3792 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
3793 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
3794 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
3795 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
3796 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
3797 predict.def, predict.h, protoize.c, reload.h, resource.h,
3798 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
3799 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
3800 unwind-sjlj.c, value-prof.h: Update copyright.
3801
3802 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
3803
3804 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
3805
3806 2004-10-15 Diego Novillo <dnovillo@redhat.com>
3807
3808 * tree-optimize.c (execute_one_pass): Stop timer right after
3809 executing the pass.
3810
3811 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
3812
3813 Revert:
3814 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
3815 PR middle-end/17967
3816 Revert:
3817 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
3818 (remove_useless_stmts_1): Fold trees we know how to fold.
3819
3820 2004-10-14 David Edelsohn <edelsohn@gnu.org>
3821
3822 * configure.ac: Add .machine power4 directive when testing for
3823 mfcr field.
3824 * configure: Regenerate.
3825
3826 2004-10-14 Geoffrey Keating <geoffk@apple.com>
3827
3828 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
3829
3830 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
3831
3832 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
3833 always.
3834
3835 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
3836
3837 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
3838 for 'f' if !TARGET_FPRS.
3839
3840 2004-10-14 Richard Henderson <rth@redhat.com>
3841
3842 PR debug/14492
3843 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
3844
3845 2004-10-14 Richard Henderson <rth@redhat.com>
3846
3847 PR c/17023
3848 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
3849 as error_mark_node.
3850 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
3851 instaed of current_function_decl non-null.
3852
3853 2004-10-14 Matt Austern <austern@apple.com>
3854
3855 * pointer-set.c: New file, special-purpose hash table.
3856 * pointer-set.h: New file.
3857 * tree.h (struct pointer_set_t): Declare as opaque type.
3858 (tree_walk): Last argument is pointer_set_t* now.
3859 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
3860 (walk_type_fields):
3861 (walk_tree): Convert from htab_t to pointer_set_t for keeping
3862 track of which nodes have already been visited.
3863 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
3864 * cgraphunit.c (cgraph_create_edges): Likewise.
3865 (cgraph_characterize_statics_local): Likewise.
3866 * tree-dfa.c (collect_dfa_stats): Likewise.
3867 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
3868 pointer_set_t* now.
3869 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
3870 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
3871 of walk_subtrees is pointer_set_t* now.
3872 * Makefile.in (OBJS-common): add pointer-set.o
3873 (tree-inline.o): Depends on pointer-set.h
3874 (tree-dfa.o): Likewise
3875 (cgraphunit.o): Likewise
3876
3877 2004-10-14 Geoffrey Keating <geoffk@apple.com>
3878
3879 * config/rs6000/darwin.h (ASM_SPEC): Delete.
3880 (TARGET_ASM_FILE_START): Define.
3881 * config/darwin.h (ASM_SPEC): Define.
3882 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
3883 -mlong-double-128, it's the default. Update comment about reason
3884 for force_cpusubtype_ALL.
3885 * config/rs6000/darwin-vecsave.asm: Supply .machine.
3886 * config/rs6000/darwin-world.asm: Likewise.
3887 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
3888 (symbolic_operand): Delete #if 0ed code.
3889
3890 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
3891
3892 * stmt.c (add_case_node): Make sure that we have integer
3893 constant before calling tree_int_cst_compare.
3894
3895 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
3896
3897 PR middle-end/17967
3898 Revert:
3899 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
3900 (remove_useless_stmts_1): Fold trees we know how to fold.
3901
3902 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
3903
3904 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
3905 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
3906 -m64.
3907
3908 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
3909
3910 * reload.c (find_reloads): When reloading a PLUS with constant
3911 operand, make sure the constant is pushed to the constant pool
3912 if required.
3913 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
3914 reload bug workaround.
3915 (s390_expand_plus_operand): Likewise.
3916
3917 2004-10-14 David Edelsohn <edelsohn@gnu.org>
3918
3919 * opts.c (common_handle_option): Do not enable
3920 flag_speculative_prefetching for -fprofile-generate/use.
3921
3922 2004-10-14 Devang Patel <dpatel@apple.com>
3923
3924 PR 17635
3925 * tree-if-conv.c (process_phi_nodes): Process latch block.
3926 (combine_blocks): Process latch block and update loop structure.
3927
3928 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
3929
3930 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
3931 (vect_update_ivs_after_vectorizer):
3932 (vect_transform_for_unknown_loop_bound):
3933 (tree_duplicate_loop_to_edge):
3934 (allocate_new_names):
3935 (rename_use_op):
3936 (rename_def_op):
3937 (rename_variables_in_bb):
3938 (free_new_names):
3939 (rename_variables_in_loop):
3940 (copy_phi_nodes):
3941 (update_phis_for_duplicate_loop):
3942 (update_phi_nodes_for_guard):
3943 (make_loop_iterate_ntimes):
3944 (tree_duplicate_loop_to_edge_cfg):
3945 (add_loop_guard):
3946 (vect_analyze_loop_with_symbolic_num_of_iters):
3947 (verify_loop_for_duplication):
3948 (vect_gen_niters_for_prolog_loop):
3949 (vect_update_niters_after_peeling):
3950 (vect_update_inits_of_dr):
3951 (vect_update_inits_of_drs):
3952 (vect_build_loop_niters):
3953 (vect_do_peeling_for_alignment): New functions.
3954 (vect_transform_loop): Add unknown and known but indivisible loop
3955 bound support; add peeling for unalignment support.
3956 (vect_analyze_loop_form): Support symbolic number of iterations.
3957 (vect_transform_loop_bound): New input parameter.
3958 (vect_get_loop_niters): Change input parameter type.
3959 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
3960 (vectorizable_store): Allow unaligned access.
3961 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
3962 (vect_analyze_data_refs_alignment): Allowed one unaligned
3963 store.
3964 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
3965 to use tree.
3966 (LOOP_VINFO_INT_NITERS): New macro.
3967 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
3968 (do_peeling_for_alignment):
3969 (unaligned_drs): New members of _loop_vec_info.
3970 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
3971
3972 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
3973
3974 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
3975 (struct tree_string): Remove "const" qualifier for "str".
3976
3977 2004-10-14 Ira Rosen <irar@il.ibm.com>
3978
3979 * tree-vectorizer.c (vect_analyze_data_refs): Call
3980 vect_get_base_and_bit_offset to get memory tag for array ref.
3981 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
3982
3983 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
3984
3985 * configure.ac: Use $LN_S for creating symlinks (not $LN).
3986 * configure: Regenerate.
3987
3988 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3989
3990 * doc/install.texi (*-*-solaris2*): Update with info about kernel
3991 patches to solve spurious testsuite failures.
3992
3993 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
3994
3995 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
3996 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
3997 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
3998 gcc_assert under ENABLE_CHECKING.
3999 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
4000 get_vectype_for_scalar_type).
4001
4002 (vect_get_vec_def_for_operand): Remove redundant variables.
4003 (vect_transform_loop): Likewise.
4004
4005 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
4006
4007 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
4008 global for -mcaller-super-interworking.
4009 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
4010 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
4011 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
4012 not need a frame pointer.
4013 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
4014 the soft frame pointer offset.
4015 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
4016 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
4017 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
4018 the stack. Use frame_pointer_needed to choose between them.
4019 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
4020 (interwork_with_frame): New macro.
4021 (interwork): Add _interwork_{r7,r11}_call_via_rN().
4022
4023 2004-10-14 Ben Elliston <bje@au.ibm.com>
4024
4025 PR other/17900
4026 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
4027 up the filename looking for a previous directory separator.
4028
4029 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
4030
4031 * c-tree.h (enum c_typespec_kind, struct c_typespec,
4032 parser_xref_tag): New.
4033 (struct c_declspecs): Add tag_defined_p. Adjust definition of
4034 typedef_p.
4035 (declspecs_add_type): Adjust prototypes.
4036 * c-parse.in (%union): Add tstype.
4037 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
4038 typespec_reserved_attr, typespec_nonreserved_nonattr,
4039 structsp_attr, structsp_nonattr): Change to tstype. Update
4040 actions.
4041 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
4042 (declspecs_add_type): Update to take struct c_typespec argument.
4043 Set tag_defined_p and typedef_p as appropriate.
4044 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
4045 Update to return struct c_typespec.
4046 (shadow_tag_warned): Don't let empty declarations with qualifiers
4047 or storage class specifiers redeclare a tag if a previous
4048 declaration is visible.
4049
4050 2004-10-13 Richard Henderson <rth@redhat.com>
4051
4052 PR debug/15860
4053 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
4054 for DECL_INCOMING_RTL.
4055
4056 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
4057
4058 PR target/17984
4059 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
4060 trunc_int_for_mode for constants used in shortened mode.
4061
4062 2004-10-13 Richard Henderson <rth@redhat.com>
4063
4064 PR c/17384
4065 * c-common.c (handle_mode_attribute): Disallow mode changes that
4066 alter the CODE of the top-level type.
4067
4068 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
4069 integer from internal limits macros.
4070 * config/i386/mm3dnow.h (__v2sf): Fix base type.
4071
4072 2004-10-13 Richard Henderson <rth@redhat.com>
4073
4074 PR debug/13841
4075 * function.c (instantiate_decl): Recurse for CONCAT.
4076
4077 2004-10-13 David Edelsohn <edelsohn@gnu.org>
4078
4079 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
4080 andi./andis.
4081 (anddi3): Same.
4082 (extzvdi_internal1): Add attribute "compare".
4083 (extzvdi_internal2): Same.
4084
4085 2004-10-12 Tom Tromey <tromey@redhat.com>
4086
4087 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
4088
4089 2004-10-13 Dale Johannesen <dalej@apple.com>
4090
4091 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
4092
4093 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
4094
4095 * toplev.c (compile_file): Call mudflap_finish_file from here ...
4096 * c-decl.c (c_write_global_declarations): ... instead of here ...
4097 * cp/decl.c (cp_finish_file): ... and here.
4098 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
4099
4100 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
4101
4102 * tree-ssa-dom.c (record_range): Free the element if we are not
4103 going to use it.
4104
4105 2004-10-13 Tom Tromey <tromey@redhat.com>
4106
4107 PR java/15578:
4108 * gcc.c (option_map): Added --extdirs and --encoding.
4109
4110 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4111
4112 PR target/14454
4113 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
4114 sparc_can_output_mi_thunk.
4115 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
4116 handling of vcall offset.
4117 (sparc_can_output_mi_thunk): New predicate.
4118 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
4119 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
4120 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
4121
4122 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
4123
4124 * config/sparc/sparc.md (movdi): Remove redundant test.
4125
4126 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
4127
4128 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
4129 TDF_IPA from -fdump-tree-*-all.
4130
4131 2004-10-13 Paul Brook <paul@codesourcery.com>
4132
4133 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
4134 * config/arm/arm.c (thumb_find_work_register): Update comments.
4135 (arm_load_pic_register): Add argument for scratch register.
4136 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
4137 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
4138
4139 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
4140
4141 * tree-data-ref.c: Fix comment typos.
4142
4143 2004-10-13 Jakub Jelinek <jakub@redhat.com>
4144 Zdenek Dvorak <dvorakz@suse.cz>
4145
4146 PR tree-optimization/17724
4147 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
4148
4149 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
4150
4151 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
4152 (altivec_builtin_mask_for_store): Likewise.
4153 (altivec_init_builtins): Use lang_hooks.builtin_function to
4154 create the decls for builtin_altivec_mask_for_load/store.
4155
4156 2004-10-13 Nick Clifton <nickc@redhat.com>
4157
4158 * config/c4x/c4x.c: Remove inclusion of loop.h.
4159
4160 2004-10-12 Ben Elliston <bje@au.ibm.com>
4161
4162 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
4163 (ei_container): New; renamed.
4164 (ei_start, ei_last): New macros.
4165 (ei_start_1, ei_last_1): Renamed from ei_start.
4166 (ei_last_1, ei_end_p): Use ei_container() where applicable.
4167 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
4168 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
4169
4170 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
4171
4172 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
4173 * cfgloop.c (initialize_loops_parallel_p): New.
4174 (flow_loops_find): Initialize the parallel_p field to true for all
4175 the loops.
4176 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
4177 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
4178 the size of the data accessed in the loop.
4179 (struct nb_iter_bound): Moved...
4180 * cfgloop.h (struct nb_iter_bound): ... here.
4181 (estimated_nb_iterations, parallel_p): New fields in struct loop.
4182 (record_estimate): Declare extern here.
4183 * tree-chrec.c: Fix comments.
4184 (nb_vars_in_chrec): New function.
4185 * tree-chrec.h (nb_vars_in_chrec): Declared here.
4186 * tree-data-ref.c: Don't include lambda.h, that is already included
4187 in tree-data-ref.h.
4188 (tree_fold_divides_p): Don't check for integer_onep.
4189 (tree_fold_bezout): Removed.
4190 (gcd): New static duplicated function.
4191 (int_divides_p, dump_subscript): New.
4192 (dump_data_dependence_relation): Use dump_subscript.
4193 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
4194 estimate_niter_from_size_of_data): New.
4195 (analyze_array_indexes, analyze_array): Call
4196 estimate_niter_from_size_of_data during the detection of array
4197 references. Pass in a pointer to the statement that contains the
4198 array reference.
4199 (all_chrecs_equal_p): New.
4200 (compute_distance_vector): Renamed compute_subscript_distance.
4201 Deal with multivariate conflict functions.
4202 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
4203 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
4204 (non_affine_dependence_relation): New.
4205 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
4206 analyze_siv_subscript, analyze_miv_subscript,
4207 analyze_overlapping_iterations, subscript_dependence_tester):
4208 Initialize and return last_conflicts function.
4209 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
4210 compute_overlap_steps_for_affine_1_2): New.
4211 (analyze_siv_subscript_affine_cst): Removed.
4212 (analyze_subscript_affine_affine): Disprove dependences based on the
4213 iteration domains. Solve the univariate dependence case as before,
4214 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
4215 Implement the multivariate case of 2 versus 1 variables.
4216 (build_classic_dist_vector, build_classic_dir_vector): Implement some
4217 unhandled cases.
4218 (find_data_references_in_loop): Compute and initialize
4219 loop->estimated_nb_iterations and loop->parallel_p.
4220 (analyze_all_data_dependences): Modify the debug dump order.
4221 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
4222 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
4223 (SUB_LAST_CONFLICT, subscript->last_conflict,
4224 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
4225 DDR_AFFINE_P, DDR_SIZE_VECT): New.
4226 (find_data_references_in_loop, initialize_data_dependence_relation,
4227 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
4228
4229 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
4230
4231 * configure: Regenerate.
4232
4233 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
4234
4235 PR 17892
4236 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
4237 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
4238 and constant folding of floating point MULT_EXPR/PLUS_EXPR
4239 expressions.
4240
4241 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
4242
4243 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
4244 (s390_gimplify_va_arg): Likewise.
4245
4246 2004-10-12 Daniel Jacobowitz <dan@debian.org>
4247
4248 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
4249 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
4250 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
4251 * regclass.c (record_address_regs): Remove ifdef. Use
4252 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
4253 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
4254 definition.
4255 (scan_rtx_address, replace_oldest_value_addr): Use
4256 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
4257 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
4258 unnecessary definitions.
4259 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
4260 and MODE_BASE_REG_REG_CLASS.
4261 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
4262 (MODE_BASE_REG_REG_CLASS): Define.
4263 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
4264 (REG_MODE_OK_FOR_REG_BASE_P): Define.
4265 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
4266 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
4267
4268 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
4269
4270 * tree-ssa-alias.c (verify_name_tags): New function.
4271 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
4272 (verify_alias_info): Call verify_name_tags.
4273
4274 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
4275
4276 PR rtl-optimization/17931
4277 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
4278 ZERO_EXTRACT in it.
4279
4280 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
4281
4282 * arm.c (arm_print_operand): Use output_operand_lossage where possible
4283 rather than aborting.
4284
4285 2004-10-12 Paul Brook <paul@coudesourcery.com>
4286
4287 * config.gcc: Add armv6{k,z,zk}
4288 * config/arm/arm-cores.def: Add arm1176 and mpcore.
4289 * config/arm/tune.md: Regenerate.
4290 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
4291 Define.
4292 (all_architectures): Add armv6k, armv6z, armv6zk.
4293 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
4294 * doc/invoke.texi: Document new arch and cpu values.
4295
4296 2004-10-12 Paul Brook <paul@coodesourcery.com>
4297
4298 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
4299 meabi=4.
4300
4301 2004-10-12 Paul Brook <paul@codesourcery.com>
4302
4303 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
4304 Handle negative constants.
4305
4306 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
4307
4308 PR c/17301
4309 * c-typeck.c (convert_arguments): Return error_mark_node if there
4310 are too few arguments.
4311 (build_function_call): Handle error_mark_node return from
4312 convert_arguments.
4313
4314 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
4315
4316 * configure.ac (symbolic_link): Replace with $LN_S.
4317 (Assembler/Linker): Hard link from gas and binutils trees.
4318 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
4319 * configure: Regenerate.
4320
4321 2004-10-12 Paul Brook <paul@codesourcery.com>
4322
4323 * configure.ac: Don't look for host assembler when building a canadian
4324 cross.
4325 * configure: Regenerate.
4326
4327 2004-10-11 Roger Sayle <roger@eyesopen.com>
4328
4329 PR other/17361
4330 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
4331 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
4332 line options for "-lang-asm" and if found allow any of the C-family
4333 front-end options.
4334 (c_common_handle_option): Remove last use of permit_fortran_options.
4335
4336 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
4337
4338 * config/s390/s390.c (print_operand): Support 'S' format flag.
4339 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
4340 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
4341 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
4342 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
4343 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
4344 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
4345 ("*movstricthi"): Likewise.
4346 ("*load_multiple_di", "*load_multiple_si"): Likewise.
4347 ("*store_multiple_di", "*store_multiple_si"): Likewise.
4348 ("*sethiqisi", "*sethihisi"): Likewise.
4349 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
4350 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
4351 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
4352 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
4353 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
4354
4355 ("*tmhi_full"): Fix incorrect op_type attribute.
4356
4357 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
4358 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
4359 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
4360 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
4361
4362 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
4363
4364 PR middle-end/16266
4365 * function.c (temp_slots_at_level): Fix typo which creates too
4366 many temp stack slots levels.
4367
4368 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
4369
4370 * config/s390/s390.c (s390_trampoline_template): Generate shorter
4371 trampoline code.
4372 (s390_trampoline_instantiate): Adapt.
4373 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
4374
4375 2004-10-11 Roger Sayle <roger@eyesopen.com>
4376
4377 PR middle-end/17657
4378 * stmt.c (add_case_node): Add additional type argument. Declare
4379 as static to match prototype. Convert the upper and lower bounds
4380 to the specified index type. Optimize away case ranges/values
4381 that are outside the index type's bounds. Truncate case ranges
4382 that span the index type's bounds.
4383 (expand_case): Avoid unnessary computation and memory allocation
4384 when index type is error_mark_node. Pass index_type as required
4385 by change to add_case_node API. No need to convert case range
4386 bounds to index_type, this is now done by add_case_node.
4387
4388 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
4389
4390 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
4391 * config/s390/s390.c (s390_offset_p): New function.
4392 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
4393 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
4394 transform Q->Q alternatives to *clc pattern.
4395 ("*clc"): Move.
4396 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
4397 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
4398 to transform Q->Q alternatives to *mvc pattern.
4399 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
4400 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
4401 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
4402 transform Q->Q alternatives to *nc pattern.
4403 ("*nc"): New insn. New peephole to merge adjacent NCs.
4404 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
4405 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
4406 transform Q->Q alternatives to *oc pattern.
4407 ("*oc"): New insn. New peephole to merge adjacent OCs.
4408 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
4409 transform Q->Q alternatives to *xc pattern.
4410 ("*xc"): New insn. New peephole to merge adjacent XCs.
4411 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
4412
4413 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
4414
4415 * gimplify.c (gimple_push_condition): Make sure that we don't
4416 have any saved condition cleanup if we were at the top level.
4417
4418 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
4419
4420 * config/frv/frv.md (*adddi3_internal): Change name to...
4421 (adddi3): ...replacing the exisiting define_expand. Combine
4422 alternatives. Fix the range of the constant constraints ('J' instead
4423 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
4424 to extract the lower and upper halves of the DImode operands.
4425 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
4426 (adddi3_lower): Fix the range of the constant constraints and
4427 remove the bogus operands[2] check.
4428 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
4429 operand 2. Use addxi to handle constant operands.
4430 (subdi3_lower, subdi3_upper): Don't handle constant operands.
4431
4432 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
4433
4434 * gengtype-lex.l: Add commented } & ) characters to unconfuse
4435 editor's paren matching. Allow #define inside a struct.
4436
4437 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
4438
4439 PR middle-end/17703
4440 part of PR c++/17657
4441 * fold-const.c (fold_build_cleanup_point_expr): New function.
4442 * tree.h (fold_build_cleanup_point_expr): Prototype.
4443
4444 2004-10-10 Eric Christopher <echristo@redhat.com>
4445
4446 * dwarf2out.c: Move attribute to subprogram declaration
4447 instead of subroutine type.
4448
4449 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
4450
4451 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
4452 hoist_insn_after, and hoist_insn_to_edge.
4453 * rtl.h: Remove the prototypes for reg_referenced_between_p,
4454 no_jumps_between_p, and insn_dependent_p.
4455 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
4456 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
4457 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
4458 hoist_insn_to_edge): Remove.
4459
4460 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
4461
4462 PR c/17881
4463 * c-decl.c (grokparms): Don't warn for parameters of incomplete
4464 type in declarations that are not definitions except for the case
4465 of parameters of void type.
4466
4467 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
4468
4469 * tree-cfg.c: Fix comment typos.
4470
4471 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
4472
4473 PR c/17301
4474 * builtins.c (expand_builtin_va_start): Check for too few
4475 arguments to va_start.
4476
4477 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
4478
4479 PR c/17189
4480 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
4481 fields a pedwarn. Pedwarn here for unnamed structs/unions if
4482 pedantic.
4483 * c-parse.in (component_decl): Don't pedwarn here for unnamed
4484 fields.
4485
4486 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
4487
4488 PR tree-optimization/17906
4489 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
4490 copy non-gimple reg arguments.
4491
4492 2004-10-09 Roger Sayle <roger@eyesopen.com>
4493
4494 PR rtl-optimization/17853
4495 * simplify-rtx.c (simplify_relational_operation): Correct comment.
4496 Reorganize handling of comparison operations with floating point
4497 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
4498 Likewise, introduce support for comparison operations with vector
4499 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
4500
4501 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
4502 * doc/tm.texi: Likewise.
4503
4504 2004-10-09 Steven Bosscher <stevenb@suse.de>
4505
4506 * regs.h (struct reg_info_def): Remove the last_node_uid and
4507 changes_mode fields.
4508 (REGNO_LAST_NOTE_UID): Don't define.
4509 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
4510 * regmove.c (copy_src_to_dest): Likewise.
4511
4512 2004-10-09 Roger Sayle <roger@eyesopen.com>
4513
4514 PR middle-end/17894
4515 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
4516 relational comparison operator op needs to be swapped/reversed when
4517 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
4518
4519 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
4520
4521 PR tree-opt/17902
4522 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
4523 instead of bsi_start.
4524 (value_replacement): Likewise.
4525 (abs_replacement): Likewise
4526
4527 2004-10-09 Steven Bosscher <stevenb@suse.de>
4528
4529 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
4530 (expand_gimple_cond_expr, expand_gimple_tailcall,
4531 expand_gimple_basic_block): Use it to dump RTL for each stmt.
4532 (tree_expand_cfg): Announce full RTL function dump.
4533 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
4534 not the graph version.
4535 * tree-pretty-print.c (dump_generic_node): Allow empty statements
4536 in the arms of a COND_EXPR for lowered nodes.
4537
4538 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
4539
4540 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
4541 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
4542 strtoufix16, strtoufix32, strtoufix64): Declare.
4543
4544 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
4545
4546 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
4547 for an out-of-range floating point constant.
4548 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
4549 warning if the target format does not support infinities.
4550
4551 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
4552
4553 * emit-rtl.c (last_label_num, base_label_num): Remove.
4554 (max_label_num): Always return label_num.
4555 (set_new_last_label_num, restore_emit_status): Remove.
4556 (init_emit): Don't initialize last_label_num.
4557 * function.c (pop_function_context_from): Don't call
4558 restore_emit_status.
4559 * function.h: Remove the prototype for restore_emit_status.
4560 * rtl.h: Remove the prototype for set_new_last_label_num.
4561
4562 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
4563
4564 * stmt.c (expand_decl_init): Remove.
4565 * tree.h: Remove the corresponding prototype.
4566
4567 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
4568
4569 * integrate.c (try_constants, subst_constants, mark_stores):
4570 Remove.
4571 * integrate.h: Remove the prototype for try_constants.
4572
4573 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
4574
4575 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
4576 (convert_for_assignment): Handle ic_argpass_nonproto. Add
4577 comments about its relevance to errors.
4578 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
4579
4580 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
4581
4582 PR c/16999
4583 * c-ppoutput.c (cb_ident): Don't quote string as it is already
4584 quoted.
4585
4586 2004-10-08 Diego Novillo <dnovillo@redhat.com>
4587
4588 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
4589 reference_node_pool.
4590
4591 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
4592
4593 * tree-cfg.c: Fix a comment typo.
4594
4595 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
4596
4597 * config/s390/s390.c (s390_register_info): Don't save fprs for
4598 -msoft-float.
4599 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
4600
4601 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
4602
4603 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
4604 (TARGET_DEFAULT): Use symbolic values.
4605 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
4606 (TARGET_DEFAULT): Use symbolic values.
4607 * config/s390/s390.c (s390_backchain_string): Initialize to
4608 TARGET_DEFAULT_BACKCHAIN.
4609
4610 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4611
4612 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
4613 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
4614 code.
4615 (expand_builtin_strcat): Accept a type parameter.
4616 (fold_builtin_mempcpy): Accept a type and endp parameter.
4617
4618 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
4619 Accept an `exp' instead of an `arglist'.
4620
4621 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
4622
4623 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
4624 reverting my 2004-09-07 patch to use build_int_cst.
4625
4626 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
4627
4628 PR target/17245
4629 * config/sparc/sparc.c (input_operand): Remove redundant code
4630 for handling LO_SUM.
4631 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
4632 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
4633 Otherwise only accept it for TFmode if quad move insns are available.
4634
4635 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
4636
4637 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
4638 common cases will be caught earlier than others.
4639
4640 2004-10-08 Michael Matz <matz@suse.de>
4641
4642 * loop-doloop.c (doloop_optimize): Extend count.
4643
4644 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
4645
4646 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
4647 (prefetch): Convert to expander.
4648
4649 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
4650
4651 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
4652 first argument of CALL.
4653 (tls_local_dynamic): Likewise.
4654
4655 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
4656
4657 * c-typeck.c (enum impl_conv): New.
4658 (convert_for_assignment): Use it. Take tree for function called
4659 instead of its name. Handle ObjC selectors for diagnostics at
4660 start of function. Select diagnostic text within the function
4661 using full sentences for diagnsotics. Use %qE to name functions
4662 in diagnostics.
4663 (convert_arguments, build_modify_expr,
4664 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
4665 callers to convert_for_assignment.
4666 (warn_for_assignment): Remove.
4667
4668 2004-10-08 Nick Clifton <nickc@redhat.com>
4669
4670 * config/sh/symbian.c (symbian_possibly_export_base_class):
4671 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
4672 TYPE_CONTAINS_VPTR_P.
4673
4674 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4675
4676 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
4677 fixed registers form all_used_regs. Update call_really_used_regs.
4678 (CALL_REALLY_USED_REGISTERS): Define.
4679 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
4680 with call_really_used_regs.
4681
4682 2004-10-08 Alan Modra <amodra@bigpond.net.au>
4683
4684 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
4685 for -profile as well as -p and -pg.
4686
4687 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
4688
4689 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
4690
4691 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
4692
4693 * tree-cfg.c (tree_block_forwards_to): Remove.
4694 * tree-flow.h: Remove the corresponding prototype.
4695
4696 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
4697
4698 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
4699 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
4700
4701 2004-10-07 Geoffrey Keating <geoffk@apple.com>
4702
4703 Radar 3813796
4704 * config/rs6000/rs6000.c (rs6000_generate_compare): When
4705 flag_trapping_math is in effect, don't generate subtract
4706 instructions.
4707
4708 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
4709
4710 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
4711 * config/s390/s390.c (s390_narrow_logical_operator): New function.
4712 (s390_extra_constraint_str): Add 'A' constraints.
4713 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
4714 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
4715 (CONSTRAINT_LEN): Likewise.
4716 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
4717 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
4718 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
4719 ("*iordi3"): Add OI alternative and splitter.
4720 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
4721 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
4722 ("*xordi3"): Add XI alternative and splitter.
4723 ("*xorsi3", "*xorhi3"): Likewise.
4724
4725 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
4726
4727 * config/mips/mips.c (mips_function_rodata_section): New function.
4728 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
4729
4730 2004-10-07 Devang Patel <dpatel@apple.com>
4731
4732 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
4733 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
4734 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
4735 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
4736 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
4737 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
4738 UNSPEC_VCONDU_V16QI): New constant defines.
4739 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
4740 vconduv16qi): New patterns.
4741 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
4742 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
4743 (get_vec_cmp_insn): Same.
4744 (get_vsel_insn): Same.
4745 (rs6000_emit_vector_compare): Same.
4746 (rs6000_emit_vector_select): Same.
4747 (INSN_NOT_AVAILABLE): New.
4748
4749 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
4750
4751 PR tree-optimization/17749
4752 * tree-tailcall.c (find_tail_calls): Check that parameter is
4753 a gimple_reg.
4754
4755 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
4756
4757 * config/ia64/ia64.c: Fix a comment typo.
4758
4759 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4760
4761 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
4762
4763 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4764
4765 PR c++/17115
4766 * tree-inline.c (expand_call_inline): Do not warn for functions
4767 marked with attribute noinline.
4768
4769 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4770
4771 PR target/17862
4772 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
4773 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
4774
4775 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
4776 of 0 as 4th argument to pass_by_reference.
4777 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
4778
4779 2004-10-06 Eric Christopher <echristo@redhat.com>
4780
4781 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
4782 attribute.
4783
4784 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
4785
4786 PR target/17770
4787 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
4788
4789 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
4790
4791 PR rtl-optimization/17791
4792 * loop-doloop.c (doloop_modify): Take number of iterations as
4793 argument.
4794 (doloop_optimize): Extend or shorten the number of iterations
4795 when changing mode of counter register.
4796 * loop-iv.c (lowpart_subreg): Export.
4797 * rtl.h (lowpart_subreg): Declare.
4798
4799 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
4800
4801 PR tree-optimization/17806
4802 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
4803 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
4804 flags moved to split_edge.
4805
4806 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4807
4808 PR middle-end/17835
4809 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
4810 before tentatively building the conditional move sequence.
4811
4812 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
4813
4814 PR target/16815
4815 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
4816 check.
4817 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
4818 function_arg_padding.
4819
4820 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
4821
4822 PR bootstrap/17857
4823 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
4824
4825 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
4826
4827 * hooks.c (hook_int_void_1, hook_void_int): Remove.
4828 * hooks.h: Remove the corresponding prototypes.
4829
4830 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
4831
4832 PR middle-end/17849
4833 * tree-nested.c (walk_stmt_info): Add changed field.
4834 (convert_nonlocal_reference): Set changed to when we
4835 change a decl to unnested decl.
4836 <case ADDR_EXPR>: Instead of checking if the immediate part
4837 of the ADDR_EXPR changed, check the field changed.
4838 Use recompute_tree_invarant_for_addr_expr instead of unsetting
4839 TREE_INVARIANT.
4840 (convert_local_reference): Set changed to when we
4841 change a decl to unnested decl.
4842 <case ADDR_EXPR>: Instead of checking if the immediate part
4843 of the ADDR_EXPR changed, check the field changed.
4844 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
4845
4846 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
4847
4848 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
4849 * dwarf2out.c (dwarf2out_init): Remove references to
4850 DWARF2_GENERATE_TEXT_SECTION_LABEL.
4851 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
4852 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
4853
4854 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
4855
4856 * c-typeck.c (convert_arguments): Take expression for called
4857 function rather than its name. Handle ObjC selectors directly
4858 rather than relying on warn_for_assignment to do so. Call warning
4859 directly rather than warn_for_assignment. Use %qE in diagnostics.
4860 Say "argument" rather than "arg" in diagnostics.
4861 (build_function_call): Update call to convert_arguments.
4862
4863 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
4864
4865 PR debug/17787
4866 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
4867 ENUMs specially instead of just saying we do.
4868
4869 2004-10-06 Eric Christopher <echristo@redhat.com>
4870
4871 * dwarf2.h: Sync with include/elf/dwarf2.h
4872
4873 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
4874
4875 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
4876 and TREE_VEC nodes.
4877
4878 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
4879
4880 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
4881 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
4882
4883 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
4884
4885 * lambda-code.c (compute_nest_using_fourier_motzkin): New
4886 function.
4887 (lambda_compute_auxillary_space): Split from here.
4888
4889 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
4890
4891 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
4892 * tree-flow.h: Add prototype.
4893 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
4894 expr_invariant_in_loop.
4895
4896 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
4897
4898 * tree-cfg.c (thread_jumps): Remove a duplicate check for
4899 EXIT_BLOCK_PTR.
4900
4901 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
4902
4903 * config/s390/s390-protos.h (s_imm_operand): Remove.
4904 (s390_pool_operand): Add prototype.
4905 * config/s390/s390.c (general_s_operand): Remove.
4906 (s_imm_operand): Remove.
4907 (s_operand): Merge contents of general_s_operand.
4908 (s390_pool_operand): New function.
4909 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
4910 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
4911 ("*cmpdi_ccu"): Merge Q->Q alternative.
4912 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
4913 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
4914 ("*cli"): Remove.
4915 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
4916 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
4917 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
4918
4919 2004-10-06 Steve Ellcey <sje@cup.hp.com>
4920
4921 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
4922 call ia64_function_arg_boundary.
4923 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
4924 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
4925 (ia64_function_arg_advance): Do not put 128 bit floats into
4926 FP registers.
4927
4928 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4929
4930 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
4931 Accept an expression instead of an arglist.
4932 (expand_builtin_stpcpy): Accept an expression instead of an
4933 arglist.
4934
4935 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4936
4937 PR target/16007
4938 * doc/install.texi (*-*-solaris2*): Mention potential problem
4939 with Sun assembler + GNU linker and C++ programs.
4940 Document status of binutils 2.15 release.
4941
4942 2004-10-06 Jan Hubicka <jh@suse.cz>
4943
4944 * cse.c (cse_main): Kill push/pop context.
4945
4946 2004-10-05 Zack Weinberg <zack@codesourcery.com>
4947
4948 * pretty-print.c: Include tree.h.
4949 (pp_base_prepare_to_format): New function, logic from
4950 text_specifies_location.
4951 (pp_base_format_text): Use gcc_assert.
4952 * pretty-print.h (pp_prepare_to_format): New macro.
4953 (pp_base_prepare_to_format): Prototype.
4954 * diagnostic.c (text_specifies_location): Delete.
4955 (bug_report_request): Delete.
4956 (diagnostic_set_info): Don't call text_specifies_location.
4957 (diagnostic_action_after_output): Put text from
4958 bug_report_request inline here. Use gcc_unreachable.
4959 (diagnostic_report_current_function): Fix comment.
4960 (diagnostic_report_diagnostic): Clarify logic for error recursion.
4961 Call pp_prepare_to_format before diagnostic_starter.
4962 (trim_filename): Use IS_DIR_SEPARATOR.
4963 (fatal_error, internal_error): Use gcc_unreachable.
4964 (error_recursion): Call diagnostic_action_after_output to
4965 issue the bug_report_request message and exit.
4966 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
4967
4968 * c-parse.in: Add list of diagnostic messages to insulate
4969 translation template from version of yacc/bison used to
4970 compile the grammar.
4971
4972 2004-10-06 Alan Modra <amodra@bigpond.net.au>
4973
4974 PR 16406
4975 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
4976
4977 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
4978
4979 * basic-block.h: Remove the prototype for
4980 flow_preorder_transversal_compute.
4981 * cfganal.c (dfst_node): Remove.
4982 (flow_preorder_transversal_compute): Likewise.
4983 * rtl.h: Remove the prototype for get_jump_table_offset.
4984 * rtlanal.c (get_jump_table_offset): Remove.
4985
4986 2004-10-05 Richard Henderson <rth@redhat.com>
4987
4988 PR 17756
4989 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
4990
4991 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
4992
4993 PR bootstrap/17817
4994 * Makefile.in: Stage the build directory too.
4995
4996 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
4997
4998 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
4999
5000 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
5001 (frv_emit_move): Same.
5002
5003 * config/frv/frv.c (frv_emit_move): New.
5004 (frv_legitimize_address): New.
5005
5006 * config/frv/frv.md ("movsi"): Call frv_emit_move.
5007 ("movqi"): Same.
5008 ("movhi"): Same.
5009 ("movdi"): Same.
5010 ("movsf"): Same.
5011 ("movdf"): Same.
5012
5013 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
5014
5015 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
5016 system headers.
5017
5018 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
5019
5020 * c-decl.c (pushdecl): When an extern declaration at block scope
5021 refers to a visible entity with internal linkage, use the old DECL
5022 rather than the new one.
5023
5024 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5025
5026 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
5027 comments.
5028
5029 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5030
5031 * tree-cfg.c (thread_jumps): Remove a duplicate check for
5032 an infinite loop.
5033
5034 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5035
5036 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
5037 of FOR_BB_BETWEEN. Remove a useless check for unreachable
5038 blocks.
5039
5040 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5041
5042 * tree-cfg.c (cleanup_tree_cfg): Don't call
5043 delete_unreachable_blosk() after thread_jumps().
5044 (thread_jumps): Always remove basic blocks as they become
5045 unreachable.
5046
5047 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
5048
5049 * tree-cfg.c (cleanup_tree_cfg): Remove variable
5050 something_changed. Simplify the while loop.
5051
5052 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5053
5054 * builtins.c (expand_builtin_memmove): Delete duplicate code
5055 and accept a tree type for the result.
5056 (expand_builtin_bcopy): Accept a tree type for the result.
5057 (fold_builtin_memmove): Accept an arglist and tree type for
5058 the result.
5059
5060 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5061
5062 * config/s390/s390.c (s390_dump_pool): Remove return value.
5063 Use gen_pool_align, gen_pool_section_start/end instead of
5064 gen_pool_start/end_31/64.
5065 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
5066 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
5067 ("pool_start_31", "pool_end_31"): Remove.
5068 ("pool_start_64", "pool_end_64"): Likewise.
5069 ("pool_align", "pool_section_start", "pool_section_end": New insns.
5070
5071 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
5072 (TARGET_CANNOT_COPY_INSN_P): Define.
5073 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
5074 (struct constant_pool): New member 'execute'.
5075 (s390_add_execute, s390_find_execute): New functions.
5076 (s390_execute_label, s390_execute_target): Likewise.
5077 (s390_dump_pool): Output in-pool execute target templates.
5078 (s390_dump_execute): New function.
5079 (s390_alloc_pool, s390_free_pool): Handle execute templates.
5080 (s390_mainpool_start, s390_mainpool_finish): Likewise.
5081 (s390_chunkify_start, s390_chunkify_finish): Likewise.
5082 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
5083 ("*execute"): New insn pattern.
5084 ("movmem_short", "*movmem_short"): Use splitters to generate
5085 explicit execute pattern, remove embedded execute.
5086 ("clrmem_short", "*clrmem_short"): Likewise.
5087 ("cmpmem_short", "*cmpmem_short"): Likewise.
5088
5089 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
5090
5091 * tree-ssa.c (verify_ssa): Verify phi arguments only
5092 contain renamed names.
5093
5094 2004-10-05 Alan Modra <amodra@bigpond.net.au>
5095
5096 * config/rs6000/linux.h: Formatting, whitespace.
5097 * config/rs6000/linux64.h: Likewise.
5098 * config/rs6000/rs6000-protos.h: Likewise.
5099 * config/rs6000/rs6000.c: Likewise.
5100 (easy_vector_splat_const): Add fall thru comments.
5101 (output_vec_const_move): Likewise.
5102
5103 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
5104
5105 * Makefile.in: Update -Wno-error exceptions for move to build dir.
5106
5107 2004-10-05 Chao-Ying Fu <fu@mips.com>
5108 Richard Sandiford <rsandifo@redhat.com>
5109
5110 * doc/invoke.texi (-mpaired-single): Link to the new description of the
5111 built-in functions. Document dependencies.
5112 (-mips3d): Add link here too.
5113 * doc/extend.texi (MIPS Paired-Single Support): New section.
5114
5115 2004-10-04 Chao-ying Fu <fu@mips.com>
5116
5117 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
5118
5119 2004-10-04 Diego Novillo <dnovillo@redhat.com>
5120
5121 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
5122 Initialize OPT_STATS to 0.
5123
5124 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
5125
5126 * tree-data-ref.c: Fix comment typos.
5127
5128 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
5129
5130 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
5131 the predicate cannot be computed, don't initialize the result to
5132 false.
5133
5134 2004-10-01 Eric Christopher <echristo@redhat.com>
5135
5136 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
5137 locally defined enum.
5138 * dwarf2out.c (add_calling_convention_attribute): Don't
5139 emit DW_CC_normal.
5140
5141 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
5142
5143 PR c/17178, PR c/17820
5144 * c-decl.c (pop_scope): Do not warn about unused static
5145 variables as they warned in the middle-end.
5146
5147 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5148
5149 * builtins.c (expand_builtin_memcpy): Delete duplicate code
5150 and make the first parameter the expression not the arglist.
5151
5152 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
5153
5154 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
5155 as valid modes to expand address expressions.
5156
5157 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
5158
5159 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
5160 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
5161 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
5162 code formatting conventions.
5163
5164 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
5165
5166 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
5167
5168 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
5169
5170 PR tree-optimization/16632
5171 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
5172 fold (A & C) == D into 0, fold ~C. Similarly, for the case
5173 where | is used instead of &.
5174
5175 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
5176
5177 * ginclude/stddef.h: Fix a comment typo.
5178
5179 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5180
5181 PR target/17443
5182 * config.gcc (i?86-*-solaris2*): Restore correct logic
5183 for --enable-threads option.
5184 (sparc64-*-solaris2*): Likewise.
5185 (sparc-*-solaris2*): Likewise.
5186
5187 2004-10-03 Alan Modra <amodra@bigpond.net.au>
5188
5189 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
5190 (OS_MISSING_POWERPC64): Move, and comment.
5191 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
5192 (OS_MISSING_POWERPC64): Move, and comment.
5193
5194 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
5195
5196 * arm.c (output_call_mem): Add missing \t.
5197
5198 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5199
5200 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
5201 expand_builtin_strncmp): Delete duplicate code.
5202
5203 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
5204
5205 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
5206 take check-base and -limit arguments.
5207 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
5208 check ranges for ARRAY_REF and COMPONENT_REF.
5209 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
5210 instrumentation.
5211
5212 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
5213
5214 * c-objc-common.c (c_tree_printer): Correct description of %E.
5215 Don't fall through after printing an expression.
5216
5217 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
5218
5219 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
5220
5221 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
5222
5223 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
5224 delete_unrechable_blocks() only when necessary.
5225
5226 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
5227
5228 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
5229 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
5230 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
5231 __gthread_recursive_mutex_unlock): New functions.
5232
5233 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
5234
5235 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
5236 * config/s390/tpf-eh.c: Remove file.
5237 * config/s390/tpf-unwind.h: New file.
5238 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
5239 (MD_UNWIND_SUPPORT): Define.
5240
5241 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
5242
5243 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
5244
5245 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
5246
5247 * config/s390/s390-protos.h (s390_comparison): Add prototype.
5248 * config/s390/s390.c (s390_comparison): New function.
5249 (s390_branch_condition_mask): Return -1 for invalid comparisons.
5250 (s390_branch_condition_mnemonic): Assert valid comparison.
5251 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
5252 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
5253 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
5254 s390_comparison instead of comparison_operator.
5255
5256 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
5257 ("cmpmemdi"): Remove.
5258 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
5259 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
5260 ("cmpint_si"): Rename to ...
5261 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
5262 ("cmpint_di", "*cmpint_di"): Likewise.
5263 * config/s390/s390.c (s390_canonicalize_comparison): Remove
5264 redundant UNSPEC_CMPINT conversions.
5265 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
5266
5267 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
5268
5269 * collect2.c (COLLECT_PARSE_FLAG): Remove.
5270 (main): Remove a reference to COLLECT_PARSE_FLAG
5271 * system.h: Poison COLLECT_PARSE_FLAG.
5272 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
5273
5274 2004-10-01 Paul Brook <paul@codesourcery.com>
5275
5276 * config/arm/crti.asm: Give _init and _fini function type.
5277
5278 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
5279
5280 * common.opt (ftree-loop-ivcanon): Enable by default.
5281 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5282 Enable complete loop unrolling.
5283 (canonicalize_induction_variables, tree_unroll_loops_completely):
5284 Reset scev info.
5285
5286 2004-10-01 Paul Brook <paul@codesourcery.com>
5287
5288 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
5289 not register number.
5290 (thumb_find_work_register): Search full register range.
5291
5292 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
5293
5294 PR tree-opt/17343
5295 * tree-cfg.c (group_case_labels): Get the label and not
5296 the case expr for the default case.
5297 When the label we looking at is the default, decrement the
5298 new_size.
5299
5300 2004-10-01 Jan Hubicka <jh@suse.cz>
5301
5302 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
5303 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5304 * toplev.h (tree_rest_of_compilation): Update prototype.
5305 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
5306
5307 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
5308
5309 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
5310 cleanup_control_flow() out of the while loop.
5311
5312 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
5313
5314 * tree-vectorizer.c (vectorizable_operation): Fail unless
5315 the mode for the vector type is indeed a vector mode.
5316
5317 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
5318
5319 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
5320 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
5321 of convert.
5322 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
5323 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
5324 follow_ssa_edge_in_rhs): Ditto.
5325 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
5326 (dump_iv): Dump base_object.
5327 (dump_use, dump_cand): Use dump_iv.
5328 (determine_base_object): New function.
5329 (alloc_iv): Initialize base_object field.
5330 (record_use): Clear the ssa_name field of iv.
5331 (get_computation_cost_at): Do not use difference of addresses of
5332 two different objects.
5333 (may_eliminate_iv): Do not require the loop to have just single exit.
5334 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
5335 (nonzero_p): New function.
5336 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
5337 tree_simplify_using_condition, simplify_using_initial_conditions,
5338 loop_niter_by_eval, find_loop_niter_by_eval,
5339 estimate_numbers_of_iterations_loop, compare_trees,
5340 upper_bound_in_type, lower_bound_in_type,
5341 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
5342 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
5343 instead of integer_(non)zerop.
5344
5345 2004-10-01 Jakub Jelinek <jakub@redhat.com>
5346
5347 Revert
5348 2004-09-29 Jakub Jelinek <jakub@redhat.com>
5349
5350 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
5351 and TI_VA_LIST_FPR_COUNTER_FIELD.
5352 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
5353 * tree-pass.h (pass_stdarg): Add.
5354 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
5355 * tree-stdarg.c: New file.
5356 * Makefile.in (OBJS-common): Add tree-stdarg.o.
5357 (tree-stdarg.o): Add dependencies.
5358 * function.h (struct function): Add va_list_gpr_size and
5359 va_list_fpr_size fields.
5360 * function.c (allocate_struct_function): Initialize them.
5361
5362 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
5363 va_list_{g,f}pr_counter_field.
5364 (ix86_setup_incoming_varargs): Don't do anything if reg_save
5365 area will not be used. Only save registers that tree-stdarg.c
5366 detected they need saving.
5367 (ix86_va_start): Don't set up fields that won't be used.
5368
5369 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
5370 va_list_{g,f}pr_counter_field.
5371 (setup_incoming_varargs): Don't do anything if reg_save
5372 area will not be used. Only save registers that tree-stdarg.c
5373 detected they need saving.
5374 (rs6000_va_start): Don't set up fields that won't be used.
5375
5376 2004-09-30 Eric Christopher <echristo@redhat.com>
5377
5378 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
5379 sh abi.
5380 * dwarf2out.c (add_calling_convention_attribute): New function.
5381 (gen_subroutine_type_die): Use.
5382 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
5383 * target.h (gcc_target): Add dwarf_calling_convention.
5384 * hooks.c (hook_int_tree_0): New function.
5385 * hooks.h: Prototype.
5386 * config/sh/sh.c: Include dwarf2.h.
5387 (sh_dwarf_calling_convention): New function.
5388 (TARGET_DWARF_CALLING_CONVENTION): Use.
5389 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
5390
5391 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5392
5393 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
5394 expand_builtin_strrchr, expand_builtin_strpbrk,
5395 expand_builtin_strncat, expand_builtin_strspn,
5396 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
5397 code.
5398
5399 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5400
5401 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
5402 prototype.
5403 (s390_logical_operator_ok_p): Likewise.
5404 * config/s390/s390.c (s390_expand_logical_operator): New function.
5405 (s390_logical_operator_ok_p): Likewise.
5406 * config/s390/s390.md ("anddi3"): New expander.
5407 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
5408 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
5409 ("andsi3"): Use s390_expand_logical_operator.
5410 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
5411 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
5412 ("andhi3"): New expander.
5413 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
5414 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
5415 ("andqi3"): New expander.
5416 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
5417 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
5418 ("iordi3"): New expander.
5419 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
5420 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
5421 ("iorsi3"): Use s390_expand_logical_operator.
5422 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
5423 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
5424 ("iorhi3"): New expiorer.
5425 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
5426 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
5427 ("iorqi3"): New expiorer.
5428 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
5429 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
5430 ("xordi3"): New expander.
5431 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
5432 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
5433 ("xorsi3"): New expander.
5434 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
5435 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
5436 ("xorhi3"): New expander.
5437 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
5438 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
5439 ("xorqi3"): New expander.
5440 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
5441 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
5442
5443 2004-09-30 Roger Sayle <roger@eyesopen.com>
5444
5445 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
5446 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
5447 machine mode as the result.
5448
5449 2004-09-30 Ben Elliston <bje@au.ibm.com>
5450
5451 PR bootstrap/17761
5452 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
5453 FOR_EACH_EDGE macros.
5454
5455 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
5456
5457 * c-tree.h (readonly_error): Remove.
5458 * c-typeck (enum lvalue_use): New.
5459 (lvalue_or_else, readonly_error): Use it. All callers changed.
5460 (readonly_error): Make static.
5461
5462 2004-09-30 Jan Hubicka <jh@suse.cz>
5463
5464 PR debug/13974
5465 * cfgrtl.c (try_redirect_by_replacing_jump,
5466 force_nonfallthru_and_redirect, commit_one_edge_insertion,
5467 cfg_layout_merge_blocks): Do not attach any line number information
5468 to newly inserted instructions.
5469 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
5470 emit_insn_*_noloc.
5471 (emit_*insn_before, emit_insn*_after): New.
5472 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
5473 existing locators.
5474 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
5475 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
5476
5477 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5478
5479 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
5480 (s390_return_address_offset): Remove.
5481 (s390_can_eliminate): Add prototype.
5482 (s390_initial_elimination_offset): Add prototype.
5483 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
5484 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
5485 * config/s390/s390.c (s390_arg_frame_offset): Remove.
5486 (s390_return_address_offset): Remove.
5487 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
5488 (struct machine_function): New member split_branches_pending_p.
5489 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
5490 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
5491 (s390_optimize_prologue): Remove base_used argument. Call
5492 s390_update_frame_layout instead of s390_register_info. Handle
5493 prologue/epilogue insns that touch only RETURN_REGNUM.
5494 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
5495 (s390_register_info): Remove base_used and return_addr_used
5496 arguments, compute special register usage inline. Return live
5497 register data to caller.
5498 (s390_frame_info): Remove arguments, do not call s390_register_info.
5499 (s390_init_frame_layout): New function.
5500 (s390_update_frame_layout): Likewise.
5501 (s390_emit_prologue): Call s390_update_frame_layout; some code
5502 move to there. Do not emit pool placeholder insn if unnecessary.
5503
5504 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5505
5506 * config/s390/s390.c (legitimate_reload_constant_p): Remove
5507 floating point constant workaround.
5508 (s390_secondary_input_reload_class): Handle PLUS reloads
5509 with too-large constant.
5510 (s390_expand_plus_operand): Likewise.
5511 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
5512 ("movsi"): Likewise. Also, remove workaround for non-general
5513 operands.
5514 ("movdf"): Do not call force_const_mem.
5515 ("movsf"): Likewise. Merge expander with *movsf insn.
5516 ("*movsf"): Remove, merge with movsf expander.
5517
5518 2004-09-30 Paul Brook <paul@codesourcery.com>
5519
5520 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
5521 (ENDFILE_SPEC): Define.
5522 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
5523
5524 2004-09-30 Richard Henderson <rth@redhat.com>
5525
5526 * config/alpha/qrnnd.asm: Mark for noexecstack.
5527
5528 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
5529
5530 * protoize.c, tree-cfg.c: Fix comment typos.
5531
5532 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
5533
5534 PR c/17730
5535 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
5536
5537 2004-09-30 Diego Novillo <dnovillo@redhat.com>
5538
5539 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
5540 expressions...
5541 (add_pointed_to_expr): ... here.
5542 Call add_pointed_to_expr for variables with DECL_INITIAL set.
5543 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
5544 pointer variable, if set.
5545
5546 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
5547
5548 * config/sh/sh.c: Follow spelling conventions.
5549
5550 2004-09-29 Richard Henderson <rth@redhat.com>
5551
5552 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
5553 * doc/tm.texi (DWARF_ZERO_REG): New.
5554
5555 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
5556 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
5557 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
5558
5559 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
5560
5561 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
5562 with a PLUS as source operand.
5563 (expand_movstr): Likewise.
5564 (expand_builtin_stpcpy): Likewise.
5565
5566 2004-09-29 Richard Henderson <rth@redhat.com>
5567
5568 PR 17739
5569 * tree-gimple.c (is_gimple_reg): Reject hard registers.
5570 (is_gimple_asm_val): New.
5571 * tree-gimple.h (is_gimple_asm_val): Declare.
5572 * gimplify.c (gimplify_asm_expr): Use it.
5573 * tree-pretty-print.c (print_declaration): Dump hard regs.
5574 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
5575 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
5576 * tree-ssa-pre.c (is_undefined_value): Likewise.
5577 * tree-ssa-copy.c (may_propagate_copy): Likewise.
5578 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
5579 * tree-ssa.c (warn_uninit): Likewise.
5580 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
5581
5582 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
5583
5584 * c-decl.c (merge_decls): Use comptype when comparing
5585 types to decide on DECL_SIZE save of olddecl.
5586
5587 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
5588
5589 * tree.h (INDIRECT_REF_P): New macro.
5590 * alias.c (get_alias_set): Use it
5591 (nonoverlapping_memrefs_p): Ditto.
5592 * emit-rtl.c (mem_expr_equal_p): Ditto.
5593 (set_mem_attributes_minus_bitpos): Ditto.
5594 (is_gimple_addressable): Ditto.
5595 (get_base_address): Ditto.
5596 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
5597 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
5598 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
5599 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
5600 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
5601 (add_address_candidates): Ditto.
5602 (rewrite_address_base): Ditto.
5603
5604 2004-09-30 Ben Elliston <bje@au.ibm.com>
5605
5606 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
5607 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
5608 (rewrite_ssa_into_ssa): Likewise.
5609 * tree-phinodes.c (create_phi_node): Access the number of
5610 predecessor edges using EDGE_COUNT() and not num_preds.
5611
5612 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
5613
5614 PR c/7425
5615 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
5616
5617 2004-09-29 Eric Christopher <echristo@redhat.com>
5618
5619 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
5620
5621 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
5622
5623 * config/cris/cris.md (moverside, movemside): With MEM, make sure
5624 the address is (plus reg mem).
5625
5626 2004-09-29 David Edelsohn <edelsohn@gnu.org>
5627
5628 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
5629
5630 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
5631
5632 * tree.c (make_node_stat): Fix uninitialized warning. Replace
5633 cascaded if ... else if with a switch.
5634
5635 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5636
5637 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
5638
5639 2004-09-29 Jakub Jelinek <jakub@redhat.com>
5640
5641 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
5642 and TI_VA_LIST_FPR_COUNTER_FIELD.
5643 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
5644 * tree-pass.h (pass_stdarg): Add.
5645 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
5646 * tree-stdarg.c: New file.
5647 * Makefile.in (OBJS-common): Add tree-stdarg.o.
5648 (tree-stdarg.o): Add dependencies.
5649 * function.h (struct function): Add va_list_gpr_size and
5650 va_list_fpr_size fields.
5651 * function.c (allocate_struct_function): Initialize them.
5652
5653 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
5654 va_list_{g,f}pr_counter_field.
5655 (ix86_setup_incoming_varargs): Don't do anything if reg_save
5656 area will not be used. Only save registers that tree-stdarg.c
5657 detected they need saving.
5658 (ix86_va_start): Don't set up fields that won't be used.
5659
5660 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
5661 va_list_{g,f}pr_counter_field.
5662 (setup_incoming_varargs): Don't do anything if reg_save
5663 area will not be used. Only save registers that tree-stdarg.c
5664 detected they need saving.
5665 (rs6000_va_start): Don't set up fields that won't be used.
5666
5667 2004-09-29 Jakub Jelinek <jakub@redhat.com>
5668
5669 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
5670 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
5671 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
5672 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
5673 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
5674 ATTR_NONNULL_1_4): New.
5675
5676 2004-09-29 Jakub Jelinek <jakub@redhat.com>
5677
5678 PR tree-optimization/17697
5679 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
5680 cfg if needed.
5681
5682 2004-09-28 Per Bothner <per@bothner.com>
5683
5684 * profile.c (branch_prob): Pass correct value to output_location,
5685 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
5686
5687 2004-09-28 Richard Henderson <rth@redhat.com>
5688
5689 PR 15089
5690 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
5691 * tree-flow.h (may_propagate_copy_into_asm): Declare.
5692 * tree-ssa-ccp.c (replace_uses_in): Use it.
5693 * tree-ssa-dom.c (cprop_operand): Likewise.
5694
5695 2004-09-28 Jeff Law <law@redhat.com>
5696
5697 * tree-ssa-threadupdate.c (create_block_for_threading): Request
5698 that no outgoing edges be left in the duplicate block. Do no
5699 update information on outgoing edges or PHI nodes in target
5700 blocks here.
5701 (remove_ctrl_stmt_and_useless_edges): Renamed from
5702 remove_last_stmt_and_useless_edges. Handle case where the
5703 block is empty or has no control statements. Do not update edge
5704 flags here.
5705 (thread_block): Create a template block rather than copying the
5706 original block every time. Create outgoing edges from the
5707 duplicate blocks and update PHIs at the target of the outgoing
5708 edges here. Fix edge flags for the original block if necessary.
5709 * cfghooks (duplicate_block): No longer assert that the original
5710 block has incoming edges.
5711
5712 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
5713
5714 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
5715 Reg Vars to enforce register allocation with general constraints.
5716 (Explicit Reg Vars): Clarify relation to asm statements.
5717 (Local Reg Vars): Similar.
5718
5719 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
5720
5721 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
5722 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
5723 build_control_flow, new_edge): Remove.
5724 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
5725 (bitlst, bitlst_table_last, bitlst_table): Remove.
5726 (bblst): Store basic_block pointer instead of block index.
5727 (bblst_table): Likewise.
5728 (edgelst): Store edge pointer instead of edge index.
5729 (edgelst_table, edgelst_last): New variables.
5730 (extract_bitlst): Rename to ...
5731 (extract_edgelst): ... this. Return edge pointers, not indices.
5732 (split_edges): Update call.
5733 (rgn_edges): Store edge pointers instead of indices.
5734 (edge_to_bit): Remove.
5735 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
5736 (SET_EDGE_TO_BIT): New macro.
5737 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
5738 (find_rgns): Remove edge_list parameter. Traverse standard CFG
5739 data structures instead of haifa_edge et al. Use edge pointers
5740 instead of edge indices everywhere.
5741 (compute_dom_prob_ps): Use standard CFG data structures. Account
5742 for exit edges.
5743 (compute_trg_info): Likewise.
5744 (propagate_deps): Likewise.
5745 (debug_candidate): Account for bblst data structure change.
5746 (check_live_1, update_live_1, is_pfree): Likewise.
5747 (IS_REACHABLE): Use standard CFG data structures.
5748 (init_ready_list): Update bblst_table/edgelst_table allocation.
5749 (schedule_region): Update alloc/cleanup code to data structure
5750 changes. Use edge->aux to store per-region edge index.
5751 (init_regions): No longer call build_control_flow. Do not
5752 create edge list any more.
5753
5754 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
5755
5756 * cse.c (cse_insn): Avoid creating direct non-local jumps.
5757 * combine.c (can_combine_p): Likewise.
5758 * local-alloc. (update_equiv_regs): Likewise.
5759
5760 2004-09-28 Richard Henderson <rth@redhat.com>
5761
5762 PR 17531
5763 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
5764 Don't check VOIDmode here. Force PLUS operands to common type.
5765 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
5766 Pmode if given a non pointer type.
5767
5768 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5769
5770 PR 17531
5771 * optabs.c (expand_binop): Force constants to the correct mode.
5772
5773 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
5774
5775 * config/s390/s390.c (s390_adjust_cost): Remove.
5776 (TARGET_SCHED_ADJUST_COST): Do not redefine.
5777 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
5778 * config/s390/s390.md ("main_pool"): Use "larl" type
5779 attribute if TARGET_CPU_ZARCH.
5780
5781 2004-09-28 Jakub Jelinek <jakub@redhat.com>
5782
5783 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
5784 variable.
5785
5786 2004-09-28 Diego Novillo <dnovillo@redhat.com>
5787
5788 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
5789 name to the pass.
5790
5791 2004-09-28 Steven Bosscher <stevenb@suse.de>
5792
5793 * common.opt (flag_gcse_sm): Disable by default.
5794 (flag_gcse_las): Likewise.
5795 (flag_web): Likewise. Create from this file.
5796 * flags.h: Remove flag_web declaration.
5797 * toplev.c (flag_web): Likewise.
5798 (process_options): Never set flag_web.
5799
5800 2004-09-28 Steven Bosscher <stevenb@suse.de>
5801
5802 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
5803 * tree-ssa-propagate.c: Include vec.h.
5804 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
5805 instead of varrays.
5806 (cfg_blocks_add): Assert the block is not already in the worklist.
5807 Update uses of interesting_ssa_edges and varying_ssa_edges.
5808 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
5809 ssa_propagate): Likewise.
5810
5811 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
5812
5813 PR c/16409
5814 * c-decl.c (start_decl): Check for initializing incomplete array
5815 of VLAs.
5816 (build_compound_literal): Check for TYPE being error_mark_node.
5817 * c-parse.in (primary): Check for VLA compound literals.
5818
5819 2004-09-28 Diego Novillo <dnovillo@redhat.com>
5820
5821 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
5822 with --disable-checking.
5823
5824 2004-09-28 Devang Patel <dpatel@apple.com>
5825
5826 * tree-pretty-print.c (dump_generic_node): Print vector types.
5827
5828 2004-09-28 Nick Clifton <nickc@redhat.com>
5829
5830 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
5831 invocation of the function sh_init_cumulative_args.
5832 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
5833 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
5834 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
5835 * config/sh/sh.c (sh_init_cumulative_args): New function based
5836 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
5837 heuristic added to determine the setting of force_mem when a
5838 library function is being called.
5839
5840 2004-09-28 Diego Novillo <dnovillo@redhat.com>
5841
5842 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
5843 Skip constant arguments.
5844
5845 2004-09-28 Diego Novillo <dnovillo@redhat.com>
5846
5847 * tree-ssa-alias.c (create_name_tags): If PTR points to a
5848 volatile type, mark the tag volatile.
5849 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
5850 volatile.
5851
5852 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
5853
5854 * tree.def (vec_cond_expr): Fix. Change 'e'
5855 to tcc_expression.
5856
5857 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
5858
5859 * basic-block.h: Fix a comment typo.
5860
5861 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
5862
5863 * optabs.c, optabs.h: Fix comment typos.
5864
5865 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
5866
5867 * config/sparc/sparc.md (call_address_struct_value_sp32):
5868 Properly mask the immediate field of the 'unimp' instruction.
5869 (call_symbolic_struct_value_sp32): Likewise.
5870
5871 2004-09-28 Ben Elliston <bje@au.ibm.com>
5872 Steven Bosscher <stevenb@suse.de>
5873 Andrew Pinski <pinskia@physics.uc.edu>
5874
5875 Merge from edge-vector-branch:
5876 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
5877 (struct edge_def): Remove pred_next, succ_next members.
5878 (struct basic_block_def): Remove pred, succ members. Add preds
5879 and succs members of type VEC(edge).
5880 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
5881 (BRANCH_EDGE): Likewise.
5882 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
5883 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
5884 (edge_iterator): New.
5885 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
5886 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
5887 (FOR_EACH_EDGE): New.
5888 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
5889 where applicable.
5890 (rotate_loop): Likewise.
5891 (find_traces_1_route): Likewise.
5892 (bb_to_key): Likewise.
5893 (connect_traces): Likewise.
5894 (copy_bb_p): Likewise.
5895 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
5896 (add_labels_and_missing_jumps): Likewise.
5897 (fix_up_fall_thru_edges): Likewise.
5898 (find_jump_block): Likewise.
5899 (fix_crossing_conditional_branches): Likewise.
5900 (fix_crossing_unconditional_branches): Likewise.
5901 (add_reg_crossing_jump_notes): Likewise.
5902 * bt-load.c (augment_live_range): Likewise.
5903 * cfg.c (clear_edges): Likewise.
5904 (unchecked_make_edge): Likewise.
5905 (cached_make_edge): Likewise.
5906 (make_single_succ_edge): Likewise.
5907 (remove_edge): Likewise.
5908 (redirect_edge_succ_nodup): Likewise.
5909 (check_bb_profile): Likewise.
5910 (dump_flow_info): Likewise.
5911 (alloc_aux_for_edges): Likewise.
5912 (clear_aux_for_edges): Likewise.
5913 (dump_cfg_bb_info): Likewise.
5914 * cfganal.c (forwarder_block_p): Likewise.
5915 (can_fallthru): Likewise.
5916 (could_fall_through): Likewise.
5917 (mark_dfs_back_edges): Likewise.
5918 (set_edge_can_fallthru_flag): Likewise.
5919 (find_unreachable_blocks): Likewise.
5920 (create_edge_list): Likewise.
5921 (verify_edge_list): Likewise.
5922 (add_noreturn_fake_exit_edges): Likewise.
5923 (connect_infinite_loops_to_exit): Likewise.
5924 (flow_reverse_top_sort_order_compute): Likewise.
5925 (flow_depth_first_order_compute): Likewise.
5926 (flow_preorder_transversal_compute): Likewise.
5927 (flow_dfs_compute_reverse_execute): Likewise.
5928 (dfs_enumerate_from): Likewise.
5929 (compute_dominance_frontiers_1): Likewise.
5930 * cfgbuild.c (make_edges): Likewise.
5931 (compute_outgoing_frequencies): Likewise.
5932 (find_many_sub_basic_blocks): Likewise.
5933 (find_sub_basic_blocks): Likewise.
5934 * cfgcleanup.c (try_simplify_condjump): Likewise.
5935 (thread_jump): Likewise.
5936 (try_forward_edges): Likewise.
5937 (merge_blocks_move): Likewise.
5938 (outgoing_edges_match): Likewise.
5939 (try_crossjump_to_edge): Likewise.
5940 (try_crossjump_bb): Likewise.
5941 (try_optimize_cfg): Likewise.
5942 (merge_seq_blocks): Likewise.
5943 * cfgexpand.c (expand_gimple_tailcall): Likewise.
5944 (expand_gimple_basic_block): Likewise.
5945 (construct_init_block): Likewise.
5946 (construct_exit_block): Likewise.
5947 * cfghooks.c (verify_flow_info): Likewise.
5948 (dump_bb): Likewise.
5949 (delete_basic_block): Likewise.
5950 (split_edge): Likewise.
5951 (merge_blocks): Likewise.
5952 (make_forwarder_block): Likewise.
5953 (tidy_fallthru_edges): Likewise.
5954 (can_duplicate_block_p): Likewise.
5955 (duplicate_block): Likewise.
5956 * cfglayout.c (fixup_reorder_chain): Likewise.
5957 (fixup_fallthru_exit_predecessor): Likewise.
5958 (can_copy_bbs_p): Likewise.
5959 (copy_bbs): Likewise.
5960 * cfgloop.c (flow_loops_cfg_dump): Likewise.
5961 (flow_loop_entry_edges_find): Likewise.
5962 (flow_loop_exit_edges_find): Likewise.
5963 (flow_loop_nodes_find): Likewise.
5964 (mark_single_exit_loops): Likewise.
5965 (flow_loop_pre_header_scan): Likewise.
5966 (flow_loop_pre_header_find): Likewise.
5967 (update_latch_info): Likewise.
5968 (canonicalize_loop_headers): Likewise.
5969 (flow_loops_find): Likewise.
5970 (get_loop_body_in_bfs_order): Likewise.
5971 (get_loop_exit_edges): Likewise.
5972 (num_loop_branches): Likewise.
5973 (verify_loop_structure): Likewise.
5974 (loop_latch_edge): Likewise.
5975 (loop_preheader_edge): Likewise.
5976 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5977 (expected_loop_iterations): Likewise.
5978 * cfgloopmanip.c (remove_bbs): Likewise.
5979 (fix_bb_placement): Likewise.
5980 (fix_irreducible_loops): Likewise.
5981 (remove_path): Likewise.
5982 (scale_bbs_frequencies): Likewise.
5983 (loopify): Likewise.
5984 (unloop): Likewise.
5985 (fix_loop_placement): Likewise.
5986 (loop_delete_branch_edge): Likewise.
5987 (duplicate_loop_to_header_edge): Likewise.
5988 (mfb_keep_just): Likewise.
5989 (create_preheader): Likewise.
5990 (force_single_succ_latches): Likewise.
5991 (loop_split_edge_with): Likewise.
5992 (create_loop_notes): Likewise.
5993 * cfgrtl.c (rtl_split_block): Likewise.
5994 (rtl_merge_blocks): Likewise.
5995 (rtl_can_merge_blocks): Likewise.
5996 (try_redirect_by_replacing_jump): Likewise.
5997 (force_nonfallthru_and_redirect): Likewise.
5998 (rtl_tidy_fallthru_edge): Likewise.
5999 (commit_one_edge_insertion): Likewise.
6000 (commit_edge_insertions): Likewise.
6001 (commit_edge_insertions_watch_calls): Likewise.
6002 (rtl_verify_flow_info_1): Likewise.
6003 (rtl_verify_flow_info): Likewise.
6004 (purge_dead_edges): Likewise.
6005 (cfg_layout_redirect_edge_and_branch): Likewise.
6006 (cfg_layout_can_merge_blocks_p): Likewise.
6007 (rtl_flow_call_edges_add): Likewise.
6008 * cse.c (cse_cc_succs): Likewise.
6009 * df.c (hybrid_search): Likewise.
6010 * dominance.c (calc_dfs_tree_nonrec): Likewise.
6011 (calc_dfs_tree): Likewise.
6012 (calc_idoms): Likewise.
6013 (recount_dominator): Likewise.
6014 * domwalk.c (walk_dominator_tree): Likewise.
6015 * except.c (emit_to_new_bb_before): Likewise.
6016 (connect_post_landing_pads): Likewise.
6017 (sjlj_emit_function_enter): Likewise.
6018 (sjlj_emit_function_exit): Likewise.
6019 (finish_eh_generation): Likewise.
6020 * final.c (compute_alignments): Likewise.
6021 * flow.c (calculate_global_regs_live): Likewise.
6022 (initialize_uninitialized_subregs): Likewise.
6023 (init_propagate_block_info): Likewise.
6024 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6025 * gcse.c (find_implicit_sets): Likewise.
6026 (bypass_block): Likewise.
6027 (bypass_conditional_jumps): Likewise.
6028 (compute_pre_data): Likewise.
6029 (insert_insn_end_bb): Likewise.
6030 (insert_store): Likewise.
6031 (remove_reachable_equiv_notes): Likewise.
6032 * global.c (global_conflicts): Likewise.
6033 (calculate_reg_pav): Likewise.
6034 * graph.c (print_rtl_graph_with_bb): Likewise.
6035 * ifcvt.c (mark_loop_exit_edges): Likewise.
6036 (merge_if_block): Likewise.
6037 (find_if_header): Likewise.
6038 (block_jumps_and_fallthru_p): Likewise.
6039 (find_if_block): Likewise.
6040 (find_cond_trap): Likewise.
6041 (block_has_only_trap): Likewise.
6042 (find_if_case1): Likewise.
6043 (find_if_case_2): Likewise.
6044 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
6045 (perfect_nestify): Likewise.
6046 * lcm.c (compute_antinout_edge): Likewise.
6047 (compute_laterin): Likewise.
6048 (compute_available): Likewise.
6049 (compute_nearerout): Likewise.
6050 * loop-doloop.c (doloop_modify): Likewise.
6051 * loop-init.c (loop_optimizer_init): Likewise.
6052 * loop-invariant.c (find_exits): Likewise.
6053 * loop-iv.c (simplify_using_initial_values): Likewise.
6054 (check_simple_exit): Likewise.
6055 (find_simple_exit): Likewise.
6056 * loop-unroll.c (peel_loop_completely): Likewise.
6057 (unroll_loop_constant_iterations): Likewise.
6058 (unroll_loop_runtime_iterations): Likewise.
6059 * loop-unswitch.c (may_unswitch_on): Likewise.
6060 (unswitch_loop): Likewise.
6061 * modulo-sched.c (generate_prolog_epilog): Likewise.
6062 (sms_schedule): Likewise.
6063 * postreload-gcse.c (eliminate_partially_redundant_load):
6064 Likewise.
6065 * predict.c (can_predict_insn_p): Likewise.
6066 (set_even_probabilities): Likewise.
6067 (combine_predictions_for_bb): Likewise.
6068 (predict_loops): Likewise.
6069 (estimate_probability): Likewise.
6070 (tree_predict_by_opcode): Likewise.
6071 (tree_estimate_probability): Likewise.
6072 (last_basic_block_p): Likewise.
6073 (propagate_freq): Likewise.
6074 (estimate_loops_at_level): Likewise.
6075 (estimate_bb_frequencies): Likewise.
6076 * profile.c (instrument_edges): Likewise.
6077 (get_exec_counts): Likewise.
6078 (compute_branch_probabilities): Likewise.
6079 (branch_prob): Likewise.
6080 * ra-build.c (live_in): Likewise.
6081 * ra-rewrite.c (rewrite_program2): Likewise.
6082 * ra.c (reg_alloc): Likewise.
6083 * reg-stack.c (reg_to_stack): Likewise.
6084 (convert_regs_entry): Likewise.
6085 (compensate_edge): Likewise.
6086 (convert_regs_1): Likewise,
6087 (convert_regs_2): Likewise.
6088 (convert_regs): Likewise.
6089 * regrename.c (copyprop_hardreg_forward): Likewise.
6090 * reload1.c (fixup_abnormal_edges): Likewise.
6091 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
6092 (sbitmap_insersection_of_preds): Likewise.
6093 (sbitmap_union_of_succs): Likewise.
6094 (sbitmap_union_of_preds): Likewise.
6095 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
6096 (fix_basic_block_boundaries): Likewise.
6097 (sched_ebbs): Likewise.
6098 * sched-rgn.c (build_control_flow): Likewise.
6099 (find_rgns): Likewise.
6100 * tracer.c (find_best_successor): Likewise.
6101 (find_best_predecessor): Likewise.
6102 (tail_duplicate): Likewise.
6103 * tree-cfg.c (make_edges): Likewise.
6104 (make_ctrl_stmt_edges): Likewise.
6105 (make_goto_expr_edges): Likewise.
6106 (tree_can_merge_blocks_p): Likewise.
6107 (tree_merge_blocks): Likewise.
6108 (cfg_remove_useless_stmts_bb): Likewise.
6109 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
6110 (tree_block_forwards_to): Likewise.
6111 (cleanup_control_expr_graph): Likewise.
6112 (find_taken_edge): Likewise.
6113 (dump_cfg_stats): Likewise.
6114 (tree_cfg2vcg): Likewise.
6115 (disband_implicit_edges): Likewise.
6116 (tree_find_edge_insert_loc): Likewise.
6117 (bsi_commit_edge_inserts): Likewise.
6118 (tree_split_edge): Likewise.
6119 (tree_verify_flow_info): Likewise.
6120 (tree_make_forwarder_block): Likewise.
6121 (tree_forwarder_block_p): Likewise.
6122 (thread_jumps): Likewise.
6123 (tree_try_redirect_by_replacing_jump): Likewise.
6124 (tree_split_block): Likewise.
6125 (add_phi_args_after_copy_bb): Likewise.
6126 (rewrite_to_new_ssa_names_bb): Likewise.
6127 (dump_function_to_file): Likewise.
6128 (print_pred_bbs): Likewise.
6129 (print_loop): Likewise.
6130 (tree_flow_call_edges_add): Likewise.
6131 (split_critical_edges): Likewise.
6132 (execute_warn_function_return): Likewise.
6133 (extract_true_false_edges_from_block): Likewise.
6134 * tree-if-conv.c (tree_if_conversion): Likewise.
6135 (if_convertable_bb_p): Likewise.
6136 (find_phi_replacement_condition): Likewise.
6137 (combine_blocks): Likewise.
6138 * tree-into-ssa.c (compute_global_livein): Likewise.
6139 (ssa_mark_phi_uses): Likewise.
6140 (ssa_rewrite_initialize_block): Likewise.
6141 (rewrite_add_phi_arguments): Likewise.
6142 (ssa_rewrite_phi_arguments): Likewise.
6143 (insert_phi_nodes_for): Likewise.
6144 (rewrite_into_ssa): Likewise.
6145 (rewrite_ssa_into_ssa): Likewise.
6146 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
6147 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
6148 (rewrite_trees): Likewise.
6149 * tree-pretty-print.c (dump_bb_header): Likewise.
6150 (dump_implicit_edges): Likewise.
6151 * tree-sra.c (insert_edge_copies): Likewise.
6152 (find_obviously_necessary_stmts): Likewise.
6153 (remove_data_stmt): Likewise.
6154 * tree-ssa-dom.c (thread_across_edge): Likewise.
6155 (dom_opt_finalize_block): Likewise.
6156 (single_incoming_edge_ignoring_loop_edges): Likewise.
6157 (record_equivalences_from_incoming_edges): Likewise.
6158 (cprop_into_successor_phis): Likewise.
6159 * tree-ssa-live.c (live_worklist): Likewise.
6160 (calculate_live_on_entry): Likewise.
6161 (calculate_live_on_exit): Likewise.
6162 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6163 (copy_loop_headers): Likewise.
6164 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
6165 (fill_always_executed_in): Likewise.
6166 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
6167 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
6168 (compute_phi_arg_on_exit): Likewise.
6169 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
6170 (get_loops_exit): Likewise.
6171 (split_loop_exit_edge): Likewise.
6172 (ip_normal_pos): Likewise.
6173 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
6174 Likewise.
6175 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
6176 (replace_phi_with_stmt): Likewise.
6177 (value_replacement): Likewise.
6178 * tree-ssa-pre.c (compute_antic_aux): Likewise.
6179 (insert_aux): Likewise.
6180 (init_pre): Likewise.
6181 * tree-ssa-propagate.c (simulate_stmt): Likewise.
6182 (simulate_block): Likewise.
6183 (ssa_prop_init): Likewise.
6184 * tree-ssa-threadupdate.c (thread_block): Likewise.
6185 (create_block_for_threading): Likewise.
6186 (remove_last_stmt_and_useless_edges): Likewise.
6187 * tree-ssa.c (verify_phi_args): Likewise.
6188 (verify_ssa): Likewise.
6189 * tree_tailcall.c (independent_of_stmt_p): Likewise.
6190 (find_tail_calls): Likewise.
6191 (eliminate_tail_call): Likewise.
6192 (tree_optimize_tail_calls_1): Likewise.
6193 * tree-vectorizer.c (vect_transform_loop): Likewise.
6194 * var-tracking.c (prologue_stack_adjust): Likewise.
6195 (vt_stack_adjustments): Likewise.
6196 (vt_find_locations): Likewise.
6197 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6198 * config/i386/i386.c (ix86_pad_returns): Likewise.
6199 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6200 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6201
6202 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
6203
6204 PR target/16532
6205 * config/sparc/sparc.c (struct machine_function): New field
6206 'leaf_function_p' and 'prologue_data_valid_p'.
6207 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
6208 to conveniently access the above fields.
6209 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
6210 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
6211 of the generic flavor 'current_function_uses_only_leaf_regs'.
6212 (eligible_for_sibcall_delay): Likewise.
6213 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
6214 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
6215 (sparc_asm_function_prologue): Add sanity check for the assumption
6216 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
6217 (sparc_can_use_return_insn_p): New function.
6218 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
6219 (output_restore): Likewise.
6220 (output_sibcall): Likewise.
6221 (sparc_output_mi_thunk): Likewise.
6222 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
6223 * config/sparc/sparc.md (return): New expander.
6224
6225 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
6226
6227 2004-09-27 Mark Mitchell <mark@codesourcery.com>
6228
6229 PR c++/17642
6230 * stor-layout.c (layout_decl): Use fold_convert, not convert.
6231 (bit_from_pos): Likewise.
6232 (byte_from_pos): Likewise.
6233 (pos_from_bit): Likewise.
6234 (normalize_offset): Likewise.
6235 (place_field): Likewise.
6236 (finalize_type_size): Likewise.
6237 (layout_type): Likewise.
6238 * tree.c (build_index_type): Likewise.
6239
6240 2004-09-27 Devang Patel <dpatel@apple.com>
6241
6242 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
6243 * genopinit.c (optabs): New entry for vcond_gen_code and
6244 vcondu_gen_code.
6245 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
6246 (get_rtx_code): New function.
6247 (vector_compare_rtx): New function.
6248 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
6249 (expand_vec_cond_expr_p): New function.
6250 (expand_vec_cond_expr): New function.
6251 (get_vcond_icode): New function.
6252 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
6253 (vcond_gen_code, vcondu_gen_code): Same.
6254
6255 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
6256
6257 * Makefile.in (STAGESTUFF): Split into ...
6258 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
6259 (mostlyclean): Update.
6260 (stage1-start, stage2-start, stage3-start, stage4-start,
6261 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
6262 Move the STAGEMOVESTUFF.
6263
6264 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
6265
6266 * system.h (getpagesize): Return 'int' instead of 'long'.
6267
6268 2004-09-27 Michael Matz <matz@suse.de>
6269
6270 PR bootstrap/17698
6271 PR bootstrap/17702
6272 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
6273 bmp_iter_and_init): Shift by bit_in_word.
6274
6275 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
6276
6277 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
6278 * configure.ac: Don't sinclude it here.
6279 * configure: Regenerate.
6280
6281 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
6282
6283 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
6284 Handle AND pattern
6285
6286 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
6287
6288 PR c/13804
6289 * c-typeck.c (build_component_ref): Name type involved in
6290 diagnostic for structure or union without a member of the given
6291 name.
6292
6293 2004-09-27 DJ Delorie <dj@redhat.com>
6294
6295 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
6296 .comm alignment is bytes, not bits.
6297
6298 2004-09-27 Devang Patel <dpatel@apple.com>
6299
6300 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
6301 (print_call_name): Do not print VEC_COND_EXPR.
6302
6303 2004-09-27 Devang Patel <dpatel@apple.com>
6304
6305 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
6306
6307 2004-09-27 Jan Hubicka <jh@suse.cz>
6308
6309 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
6310
6311 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
6312
6313 * bitmap.h: Fix a comment typo.
6314
6315 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
6316
6317 * libgcc2.c (getpagesize): Change type of return value to int.
6318
6319 2004-09-26 Matt Austern <austern@apple.com>
6320
6321 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
6322 using mmap.
6323
6324 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6325
6326 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
6327 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
6328 (bitmap_iterator): New type.
6329 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
6330 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
6331 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
6332 bmp_iter_and_init, bmp_iter_and_next): New functions.
6333 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
6334 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
6335 use iterator-style EXECUTE_IF_IN_BITMAP macros.
6336 * bitmap.c (bitmap_print): Ditto.
6337 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
6338 btr_def_live_range): Ditto.
6339 * cfganal.c (compute_dominance_frontiers_1) Ditto.
6340 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
6341 Ditto.
6342 * ddg.c (build_inter_loop_deps): Ditto.
6343 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
6344 Ditto.
6345 * except.c (remove_eh_handler): Ditto.
6346 * flow.c (reg_set_to_hard_reg_set): Ditto.
6347 * gcse.c (clear_modify_mem_tables): Ditto.
6348 * global.c (build_insn_chain): Ditto.
6349 * ifcvt.c (dead_or_predicable): Ditto.
6350 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
6351 Ditto.
6352 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
6353 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
6354 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
6355 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
6356 tree_purge_all_dead_eh_edges): Ditto.
6357 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
6358 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
6359 rewrite_ssa_into_ssa): Ditto.
6360 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
6361 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
6362 Ditto.
6363 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
6364 compute_flow_sensitive_aliasing, maybe_create_global_var,
6365 dump_points_to_info_for): Ditto.
6366 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
6367 * tree-ssa-dse.c (dse_finalize_block): Ditto.
6368 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
6369 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
6370 Ditto.
6371 * tree-ssa-loop-ivopts.c (find_induction_variables,
6372 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
6373 determine_use_iv_costs, determine_set_costs, find_best_candidate,
6374 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
6375 Ditto.
6376 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
6377 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
6378 add_call_read_ops): Ditto.
6379 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
6380
6381 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6382
6383 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
6384 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
6385
6386 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
6387
6388 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
6389 reflect size of memory regions being compared.
6390
6391 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
6392
6393 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
6394 expressions. Always clear MEM_SIZE and alias set.
6395
6396 2004-09-26 Roger Sayle <roger@eyesopen.com>
6397 Giovanni Bajo <giovannibajo@gcc.gnu.org>
6398
6399 PR middle-end/17112
6400 * stor-layout.c (compute_record_mode): For records with a single
6401 field, only use the field's mode if its size matches what we'd
6402 have choosen for the record ourselves. This forces the use of
6403 BLKmode for packed records that don't completely fill a mode.
6404
6405 2004-09-26 Roger Sayle <roger@eyesopen.com>
6406
6407 PR middle-end/17151
6408 * combine.c (force_to_mode): Remove dubious early return test that
6409 inhibits further optimization.
6410
6411 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
6412
6413 * profile.c: Fix a comment typo.
6414
6415 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6416
6417 PR bootstrap/17591
6418 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
6419 with varying offset.
6420 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
6421 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
6422 ARRAY_REFS.
6423 (expr_invariant_in_loop_p): New function.
6424 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
6425 component_ref_field_offset for COMPONENT_REFs. Do not allow
6426 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
6427 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
6428 MISALIGNED_INDIRECT_REFs.
6429 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
6430 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
6431 MISALIGNED_INDIRECT_REFs.
6432
6433 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
6434
6435 PR c/11459
6436 * gcc.c (cpp_options, cc1_options): Preserve relative order of
6437 -std and -ansi options.
6438
6439 2004-09-26 Jan Hubicka <jh@suse.cz>
6440
6441 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
6442 for nested functions whose proper parent has not been output.
6443
6444 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
6445 when re-constructing profile previously invalidated by loop.
6446
6447 2004-09-25 Dale Johannesen <dalej@apple.com>
6448
6449 * tree-gimple.c: Move GIMPLE definition...
6450 * doc/tree-ssa.texi: here.
6451
6452 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
6453
6454 * tree-vectorizer.c: Fix a comment typo.
6455
6456 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
6457
6458 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
6459 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
6460 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
6461 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
6462
6463 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
6464
6465 * tree-ssa-loop-unswitch.c: Fix a comment typo.
6466
6467 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
6468
6469 * doc/passes.texi: Fix a typo.
6470
6471 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6472
6473 * tree-optimize.c (init_tree_optimization_passes): Add
6474 pass_record_bounds.
6475 * tree-pass.h (pass_record_bounds): Declare.
6476 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
6477 New pass.
6478
6479 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6480
6481 PR tree-optimization/17474
6482 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
6483 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
6484
6485 2004-09-25 Jan Hubicka <jh@suse.cz>
6486
6487 * predict.c (counts_to_freqs): Make global.
6488 * predict.h (counts_to_freqa): Declare.
6489 * profile.c (compute_branch_probabilities): Compute frequencies
6490 * tree-profile.c (do_tree_profiling): Refine conditional on when
6491 tree profiling pass is needed.
6492
6493 * passes.c (rest_of_handle_cfg): Disable const/pure function
6494 detection when doing tree based profiling.
6495
6496 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
6497 conditional.
6498
6499 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
6500
6501 * config/mips/mips.h (struct mips_args): Clarify comments.
6502 * config/mips/mips.c (struct mips_arg_info): Likewise.
6503 (mips_arg_info): Don't allow fpr_p to affect the register or
6504 stack alignment. Remove o64 silliness.
6505 (function_arg): Deal with the o32 float,float case specially.
6506
6507 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
6508
6509 * config/mips/mips.md (loadx, storex): Define for V2SF.
6510
6511 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
6512
6513 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
6514 * config/s390/s390.c (s390_back_chain_rtx): New function.
6515 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
6516 Call anti_adjust_stack.
6517 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
6518 only if compiling with back chain.
6519 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
6520 back chain only if back chain enabled. Use s390_back_chain_rtx.
6521
6522 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
6523
6524 * doc/trouble.texi: Remove obsolete information. Update
6525 information on how to regenerate fixincluded headers.
6526
6527 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
6528
6529 PR c/12951
6530 * doc/invoke.texi: Document that
6531 -Wno-error-implicit-function-declaration is not accepted.
6532
6533 2004-09-24 Richard Henderson <rth@redhat.com>
6534
6535 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
6536 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
6537 on TARGET_MAX.
6538 (alpha_expand_mov): Allow unaligned vectors.
6539 (alpha_expand_unaligned_store): Use CONST0_RTX.
6540 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
6541
6542 2004-09-24 Jeff Law <law@redhat.com>
6543
6544 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
6545 aliasing rules.
6546 (simplify_cond_and_lookup_avail_expr): Likewise.
6547
6548 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
6549
6550 PR c/12802
6551 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
6552 title. Document interaction with -fms-extensions.
6553 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
6554 section.
6555
6556 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
6557
6558 PR c/12713
6559 * doc/extend.texi: Document interaction of attribute noreturn and
6560 longjmp.
6561
6562 2004-09-24 Richard Henderson <rth@redhat.com>
6563
6564 PR rtl-opt/17503
6565 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
6566 (som_hash, som_eq): New.
6567 (init_subregs_of_mode, record_subregs_of_mode): New.
6568 (cannot_change_mode_set_regs): Rewrite for htab implementation.
6569 (invalid_mode_change_p): Likewise.
6570 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
6571 * flow.c (mark_used_regs): Likewise.
6572 (life_analysis): Use init_subregs_of_mode.
6573 * regs.h (subregs_of_mode): Remove.
6574 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
6575
6576 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
6577
6578 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
6579 type with the copy of the conditional.
6580
6581 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
6582
6583 PR tree-opt/16954
6584 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6585 Prevent renaming if the aliasing sets of the type which the
6586 pointer points to are different.
6587
6588 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
6589
6590 PR c/17188
6591 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
6592 declarations of enumerators.
6593 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
6594 for redefinition. Check for nested redefinition.
6595 (finish_struct): Don't check for nested redefinition.
6596 (start_enum): Check for nested redefinition.
6597
6598 2004-09-24 Devang Patel <dpatel@apple.com>
6599
6600 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
6601 only when necesssary.
6602 (combine_blocks): Combine loop header and exit block.
6603
6604 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
6605
6606 * hooks.c (hook_tree_tree_bool_null): New.
6607 * hooks.h (hook_tree_tree_bool_null): Declare it.
6608 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
6609 * targhooks.c (default_fold_builtin): Remove.
6610 * targhooks.h (default_fold_builtin): Remove.
6611
6612 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6613
6614 PR rtl-optimization/17625
6615 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
6616
6617 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
6618
6619 PR tree-opt/17624
6620 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
6621 Reject if any of the operands occur in an abnormal PHI.
6622
6623 2004-09-24 Andreas Schwab <schwab@suse.de>
6624
6625 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
6626 rules.
6627
6628 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
6629
6630 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
6631 if the GNU assembler is used.
6632 (sparc-*-solaris2*): Likewise.
6633 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
6634 (dbxout_function_end): Protect N_ENSYM with it.
6635 (dbxout_begin_prologue): Protect N_BNSYM with it.
6636 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
6637 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
6638 * config/sparc/sol2-gas.h: New file.
6639
6640 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
6641
6642 PR bootstrap/17369
6643 * Makefile.in (@set_gcc_lib_path@): Added.
6644
6645 * configure.ac: Include ../config/gcc-lib-path.m4. Use
6646 TL_AC_GNU_MAKE_GCC_LIB_PATH.
6647 * configure: Regenerated.
6648
6649 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
6650
6651 PR c/6980
6652 * c-typeck.c (build_c_cast): Improve wording of
6653 -Wbad-function-cast diagnostic.
6654
6655 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
6656
6657 PR target/17626
6658 * config/cris/cris.md (moverside, movemside): Rename variable
6659 "reg" to "otherop". To generate canonical RTX, check that otherop
6660 isn't constant instead of checking that operand 1 is a register.
6661
6662 2004-09-23 Jakub Jelinek <jakub@redhat.com>
6663
6664 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
6665
6666 2004-09-23 Diego Novillo <dnovillo@redhat.com>
6667 Jakub Jelinek <jakub@redhat.com>
6668
6669 * tree-flow.h (find_new_referenced_vars): Add prototype.
6670 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
6671 Move to...
6672 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
6673 ... here.
6674 (mark_new_vars_to_rename): Walk through all operands.
6675 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
6676 (execute_fold_all_builtins): Use it.
6677 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
6678
6679 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
6680
6681 * gthr-tpf.h: New file.
6682 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
6683 * gthr.h: Use gthr-tpf.h on TPF OS.
6684
6685 2004-09-23 Jeff Law <law@redhat.com>
6686
6687 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
6688 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
6689 (substitute_and_fold): Likewise.
6690 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
6691 except invariants from SSA_NAME_VALUE.
6692 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
6693 and SET_SSA_NAME_EQUIV.
6694 (restore_vars_to_original_value, record_const_or_copy): Likewise.
6695 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
6696 (record_equality, cprop_into_successor_phis): Likewise.
6697 (record_equivalences_from_stmt, cprop_operand): Likewise.
6698 (lookup_avail_expr): Likewise.
6699 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
6700 from SSA_NAME_VALUE.
6701 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
6702 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
6703 annotation from the VALUE_HANDLE field.
6704
6705 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
6706
6707 PR c++/13989
6708 PR c++/9844
6709 * tree.c (reconstruct_complex_type): Remove extra "this".
6710 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
6711 Add V4SFmode to case statement.
6712
6713 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
6714
6715 PR c/16833
6716 * doc/extend.texi, doc/invoke.texi: Document interaction of
6717 -fno-builtin with format checks. Note that built-in functions
6718 have effects beyond generating code that avoids calls to those
6719 functions.
6720
6721 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
6722
6723 PR tree-optimization/17533
6724 * dominance.c (verify_dominators): Tolerate even more incorrect
6725 dominance data during error message printing.
6726 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
6727 and edges more correctly.
6728
6729 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
6730
6731 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
6732 New tree-codes.
6733 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
6734 MISALIGNED_INDIRECT_REF.
6735 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
6736 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
6737 Likewise.
6738 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
6739 (find_interesting_uses_address): Likewise.
6740 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
6741 (build_fold_addr_expr_with_type): Likewise.
6742 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
6743 * print-rtl.c (print_mem_expr): Likewise.
6744 * tree-dump.c (dequeue_and_dump): Likewise.
6745 * tree-eh.c (tree_could_trap_p): Likewise.
6746 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
6747 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
6748 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
6749 Likewise.
6750 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6751 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
6752 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
6753 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
6754 (add_address_candidates, rewrite_address_base): Likewise.
6755 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
6756 Likewise.
6757 * tree.c (staticp, build1_stat): Likewise.
6758
6759 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
6760 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
6761 * tree-ssa-operands.c (get_expr_operands): Likewise.
6762 * expr.c (expand_expr_real_1): Likewise.
6763
6764 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
6765 optabs.
6766 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
6767 for the new optabs.
6768 (expand_ternary_op): New function.
6769 * genopinit.c (optabs): Handle the new optabs.
6770 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
6771 (init_optabs): Initialize vec_realign_load_optab.
6772 (expand_ternary_op): New functions.
6773
6774 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
6775 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
6776 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
6777 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
6778 * target.h (struct vectorize): New member for struct gcc_target.
6779 (misaligned_mem_ok): New member for targetm.vectorize.
6780 (builtin_mask_for_load): Likewise.
6781 (builtin_mask_for_store): Likewise.
6782 * targethooks.c (default_vect_misaligned_mem_ok): New function.
6783 * targethooks.h (default_vect_misaligned_mem_ok): New function.
6784
6785 * config/rs6000/altivec.md (build_vector_mask_for_load): New
6786 define_expand.
6787 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
6788 (vec_realign_load_v16qi): New define_insn.
6789 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
6790 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
6791 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
6792 (altivec_builtin_mask_for_store): New variables.
6793 (rs6000_builtin_mask_for_load): New function. Implements
6794 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
6795 (rs6000_builtin_mask_for_store): New function. Implements
6796 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
6797 (rs6000_expand_builtin): Expand the target builtins
6798 builtin_mask_for_load and builtin_mask_for_store.
6799 (altivec_init_builtins): Initialize the new target builtins.
6800 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
6801 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
6802
6803 * tree-vectorizer.c (vect_create_data_ref): Renamed to
6804 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
6805 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
6806 (vectorizable_store): Call vect_create_data_ref_ptr with additional
6807 arguments, and create an indirect_ref with its return value data_ref.
6808 Check aligned_access_p.
6809 (vectorizable_load): Handle misaligned loads, using software-pipelined
6810 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
6811 vec_realign_load_optab is supported, or using a scheme without
6812 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
6813 misaligned_mem_ok is supported.
6814
6815 (vect_finish_stmt_generation): Typo.
6816 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
6817 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
6818 presence of misaligned loads.
6819 (vect_analyze_data_ref_access): Add check for constant init.
6820 (vect_get_symbl_and_dr): Remove duplicate line.
6821 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
6822
6823 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
6824
6825 * builtins.c: Fix a comment typo.
6826
6827 2004-09-23 Jan Hubicka <jh@suse.cz>
6828
6829 * profile.c (branch_prob): Do not verify flow info in the middle of the
6830 pass.
6831
6832 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6833
6834 * cfgloop.h (update_single_exits_after_duplication): Declare.
6835 (loopify, split_loop_bb): Declaration changed.
6836 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
6837 of rtx.
6838 (loopify): Added redirect_all_edges argument.
6839 (update_single_exits_after_duplication): Export.
6840 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
6841 * tree-flow.h (tree_duplicate_loop_to_header_edge,
6842 tree_ssa_loop_version): Declare.
6843 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
6844 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
6845 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
6846 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
6847
6848 * tree-ssa-loop-unswitch.c: New file.
6849 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
6850 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
6851 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
6852 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
6853 * tree-pass.h (pass_unswitch): Declare.
6854 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
6855 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
6856 * doc/passes.texi: Documen tree level loop unswitching.
6857
6858 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
6859
6860 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
6861
6862 2004-09-22 Eric Christopher <echristo@redhat.com>
6863
6864 * builtins.c (simplify_builtin_va_start): Remove.
6865 (simplify_builtin): Ditto.
6866 (fold_builtin_strchr): Ditto.
6867 (simplify_builtin_*): Rename remainders to fold_builtin_*.
6868 (expand_builtin): Fix up for above changes.
6869 (fold_builtin_1): Add new folders. Change for above.
6870 (expand_builtin_va_start): Call fold_builtin_next_arg.
6871 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
6872 * tree.h: Remove prototype for simplify_builtin.
6873
6874 2004-09-23 Jan Hubicka <jh@suse.cz>
6875
6876 PR debug/17389
6877 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
6878 of fully inlined functions.
6879 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
6880 inlined.
6881
6882 * cfgexpand.c (add_reg_br_prob_note): New function.
6883 (expand_gimple_cond_expr): Use it.
6884 (tree_expand_cfg): No longer kill the profile.
6885 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
6886 only if it is present.
6887 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
6888 * predict.c (combine_predictions_for_insn): Set the probabilities
6889 based on REG_BR_PROB note if present.
6890 * predict.c (branch_prob): Profile is read only with
6891 flag_branch_probabilities.
6892
6893 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
6894
6895 * aclocal.m4: Add in gettext's m4 includes.
6896 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
6897 * configure.ac: Add in check for iconv.h
6898 * configure: Regenerate.
6899
6900 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
6901
6902 * aclocal.m4: Update for rename of gettext-sister.m4.
6903
6904 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
6905
6906 Fix PR tree-optimization/17587
6907 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
6908 (insert_aux): Instead of here.
6909
6910 2004-09-22 Diego Novillo <dnovillo@redhat.com>
6911
6912 PR tree-optimization/16721
6913 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
6914 * tree-ssa-alias.c (create_memory_tag): Move setting of
6915 TREE_THIS_VOLATILE ...
6916 (get_tmt_for): ... here.
6917
6918 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6919
6920 * config/sparc/sparc.md (cmove splitter): Fix formatting.
6921 (conditional_trap expander): Reject inappropriate CCmodes.
6922 (conditional trap insn): Use V9 syntax if possible.
6923
6924 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
6925
6926 PR c/16566
6927 * c-typeck.c (build_component_ref): Don't special-case
6928 COMPOUND_EXPR.
6929
6930 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
6931
6932 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
6933 returns NULL.
6934
6935 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
6936
6937 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
6938 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
6939 TRUTH_XOR_EXPR): Mention the restriction on types.
6940
6941 2004-09-22 Matt Austern <austern@apple.com>
6942
6943 * config/darwin.c (darwin_make_decl_one_only):
6944 Allow coalesced symbol to appear in static archive's table of contents
6945
6946 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
6947
6948 PR tree-optimization/17512
6949 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
6950 special cases.
6951
6952 2004-09-22 David Edelsohn <edelsohn@gnu.org>
6953
6954 * dbxout.c (get_lang_number): Do not define if
6955 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
6956
6957 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6958
6959 PR target/15583
6960 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
6961 builtin_define ("__USE_INIT_FINI__").
6962
6963 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
6964
6965 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
6966 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
6967 * config/s390/s390.h (TARGET_TPF): New macro.
6968 * config/s390/s390.md ("eh_return"): New expander.
6969 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
6970 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
6971 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
6972 * config/s390/tpf.h (TARGET_TPF): Define to 1.
6973 (STACK_POINTER_OFFSET): Increase to 448.
6974 (TARGET_DEFAULT): Set -mtpf-trace on as default.
6975 (TPF_LOC_DIFF_OFFSET): New macro.
6976 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
6977 encoding.
6978 (__isPATrange): Add prototype.
6979 (MD_FALLBACK_FRAME_STATE_FOR): Define.
6980 * config/s390/tpf-eh.c: New file.
6981
6982 2004-09-22 Diego Novillo <dnovillo@redhat.com>
6983
6984 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
6985 operands in an integer comparison.
6986 * tree-cfg.c (find_taken_edge): Call fold() to determine
6987 whether the predicate is known.
6988
6989 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
6990
6991 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
6992 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
6993 Create build and doc directories along with the language directories.
6994 Don't create doc directory separately.
6995 * configure: Regenerate.
6996 * Makefile.in: Create all object and executables files built
6997 with the build compiler in a build/ directory.
6998 (genobjnames): Add missing build objects.
6999 (STAGESTUFF): Don't stage the gen* programs.
7000 (ggc-none.o): Define dependencies for the target compiler.
7001 (build-print-rtl.o): Rename to build/print-rtl.o.
7002 (build-errors.o): Rename to build/errors.o.
7003 (build-varray.o): Rename to build/varray.o.
7004 (maintainerclean): Delete the contents of the build directory.
7005 ($(genobjs): %.o): Explicitly use -o.
7006 (build/insn-conditions.o): Delete specfic rule to use generic rule.
7007 (build/gengtype-lex.o): Likewise.
7008 (build/gengtype-yacc.o): Likewise.
7009 (build/gcov-iov.o): Likewise.
7010
7011 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
7012
7013 * vec.h (VEC_space): Return true if there _is_ space.
7014 (VEC_reserve): Adjust.
7015
7016 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
7017
7018 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
7019 use FPRs for scalar, complex and vector types only.
7020
7021 2004-09-21 Jeff Law <law@redhat.com>
7022
7023 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
7024 the opt_stats_d structure.
7025 (vrp_data): Change from a varray into a hash table.
7026 (vrp_hash_elt): New structure for elements in the vrp hash table.
7027 (vrp_hash, vrp_eq):New functions for hashing and testing equality
7028 in the vrp hash table.
7029 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
7030 initialization slightly to make it easier to read. No longer need
7031 to grow/clear the varray. Instead empty and delete the hash table.
7032 (dom_opt_finalize_block): Update due to change of VRP_DATA from
7033 a varray to a hash table.
7034 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
7035
7036 * tree-ssa-ccp.c (get_default_value): If we have a constant
7037 value recorded for an SSA_NAME, then use that constant as
7038 the initial lattice value.
7039 (substitute_and_fold): Transfer equivalences discovered into
7040 SSA_NAME_EQUIV.
7041
7042 * tree.h (SSA_NAME_EQUIV): Add comments.
7043 (SET_SSA_NAME_EQUIV): Similarly.
7044
7045 2004-09-21 David Edelsohn <edelsohn@gnu.org>
7046
7047 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
7048
7049 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
7050
7051 2004-09-21 Mark Mitchell <mark@codesourcery.com>
7052
7053 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
7054 (finish_decl): Likewise.
7055
7056 2004-09-21 Devang Patel <dpatel@apple.com>
7057
7058 * tree.def (VEC_COND_EXPR): New tree node.
7059 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
7060
7061 2004-09-21 Stan Shebs <shebs@apple.com>
7062
7063 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
7064 * config/rs6000/darwin-world.asm: Likewise.
7065
7066 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
7067
7068 * tree-ssa.c (verify_def): Use print_generic_stmt,
7069 not debug_generic_stmt.
7070 (verify_use): Ditto.
7071 (verify_phi_args): Ditto.
7072 (verify_ssa): Ditto.
7073
7074 2004-09-21 Paul Brook <paul@codesourcery.com>
7075
7076 * varasm.c (default_assemble_integer): Return false for values wider
7077 than the target word size. Works around GAS bug.
7078
7079 2004-09-21 Zack Weinberg <zack@codesourcery.com>
7080
7081 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
7082 gets value 0.
7083 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
7084 if it has value 0.
7085
7086 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
7087
7088 * c-typeck.c (build_function_call): Give name of object
7089 we are attempting to call in error message.
7090 * c-objc-common.c (c_tree_printer): Call pp_expression,
7091 not return false, for 'E' case.
7092
7093 2004-09-21 Steven Bosscher <stevenb@suse.de>
7094
7095 PR rtl-optimization/17482
7096 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
7097 load_killed_in_block_p): Clarify comments.
7098 (record_last_reg_set_info): Make static inline.
7099 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
7100 (record_opr_changes): New function to replace the above.
7101 (compute_hash_table): Clarify comments. Use record_opr_changes.
7102 (reg_set_between_after_reload_p): Clean up.
7103 (reg_used_between_after_reload_p): Likewise.
7104 (eliminate_partially_redundant_load): Clarify comments.
7105
7106 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
7107
7108 PR rtl-optimization/17266
7109 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
7110
7111 2004-09-21 Uros Bizjak <uros@kss-loka.si>
7112
7113 PR rtl-optimization/14851
7114 * rtlanal.c (commutative_operand_precedence): Calculate
7115 precedence of stripped constant.
7116
7117 2004-09-20 Jeff Law <law@redhat.com>
7118 Jan Hubicka <jh@suse.cz>
7119
7120 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
7121 initialize key elements here.
7122 (release_ssa_name): Zero the released SSA_NAME here.
7123 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
7124 (struct tree_ssa_name): Add new "equiv" field.
7125 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
7126 (tree_ssa_dominator_optimize): No longer allocate, resize or
7127 clear CONST_AND_COPIES.
7128 (get_value_for, set_value_for): Kill.
7129 (thread_across_edge): Get/set the equivalency using
7130 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
7131 (restore_vars_to_original_value): Likewise.
7132 (record_equivalences_from_phis): Likewise.
7133 (record_dominating_conditions): Likewise.
7134 (record_const_or_copy, record_equality): Likewise.
7135 (lookup_avail_expr): Likewise.
7136 (record_equivalences_from_stmt, cprop_operand): Likewise.
7137 (cprop_into_successor_phis): No longer need to pass around
7138 CONST_AND_COPIES. Callers updated. Get equivalences via
7139 SSA_NAME_EQUIV.
7140 (cprop_into_phis): Likewise.
7141
7142 2004-09-20 Matt Austern <austern@apple.com>
7143 Zack Weinberg <zack@codesourcery.com>
7144
7145 * c-common.c (fix_string_type): Build the unqualified array
7146 type unconditionally, then use c_build_qualified_type to get
7147 the proper const-qualified variant, and set its
7148 TYPE_MAIN_VARIANT to refer to the unqualified type.
7149 * c-lex.c (c_lex_return_raw_string): New global.
7150 (c_lex_with_flags): Honor it.
7151 * c-pragma.h: Declare it.
7152
7153 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
7154
7155 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
7156
7157 2004-09-21 Jan Hubicka <jh@suse.cz>
7158
7159 PR middle-end/17126
7160 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
7161 (tree_rest_of_compilation): Cleanup.
7162
7163 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
7164
7165 * config/s390/s390.c (s390_select_rtx_section): Remove.
7166 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
7167
7168 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
7169
7170 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
7171 note to pretend a direct save from the original register when an
7172 intermediate register is used for the save.
7173
7174 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7175
7176 * tsystem.h (alloca): Provide a default definition.
7177
7178 Revert:
7179 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7180 * unwind-dw2.c: Call __builtin_alloca, not alloca.
7181
7182 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
7183
7184 PR tree-opt/17558
7185 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
7186 aliasing sets are the same rather than just conflicting.
7187
7188 2004-09-20 Jan Hubicka <jh@suse.cz>
7189
7190 PR middle-end/16460
7191
7192 * cgraph.c (cgraph_unnest_node): New function.
7193 (c_finalize): Rename to ....
7194 (c_warn_unused_result_recursivly): ... this one; do only the warning
7195 (finish_function): Finalize the toplevel function; do not lower nested tree.
7196 * cgraph.h (cgraph_unnest_node): Declare.
7197 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
7198 nestedness datastructure.
7199 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
7200 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
7201 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
7202
7203 2004-09-20 Richard Henderson <rth@redhat.com>
7204
7205 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
7206 from some_small_symbolic_operand_1; export.
7207 (some_small_symbolic_operand): Remove.
7208 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
7209 extra C check.
7210 * config/alpha/predicates.md (some_small_symbolic_operand): New.
7211
7212 2004-09-20 Jan Hubicka <jh@suse.cz>
7213
7214 * predict.c (return_prediction): New function.
7215 (apply_return_prediction): Likewise.
7216 (tree_bb_level_predictions): Likewise.
7217 (tree_estimate_probability): Add noreturn exit edges; call
7218 bb_level_predictions; fix logic of return heuristics.
7219 (predict_paths_leading_to): Rescuesce from old CVS version of
7220 process_note_prediction function.
7221 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
7222
7223 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
7224
7225 * config/s390/s390.c (s390_frame_info): Added alignment statement for
7226 floating point register area on stack.
7227
7228 2004-09-20 Jakub Jelinek <jakub@redhat.com>
7229
7230 * predict.c (expr_expected_value): Use *_CLASS_P macros.
7231
7232 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
7233
7234 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
7235 generating useless garbage.
7236
7237 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
7238
7239 * builtins.c (fold_builtin): Call the new omonymous
7240 target hook for machine-dependent built-ins.
7241 * target-def.h (TARGET_FOLD_BUILTIN): New.
7242 * target.h (struct gcc_target): Add the fold_builtin hook.
7243 * targhooks.c (default_fold_builtin): New.
7244 * targhooks.h (default_fold_builtin): Declare it.
7245
7246 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
7247
7248 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
7249 comment typos.
7250
7251 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
7252
7253 PR target/17565
7254 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
7255
7256 2004-09-20 Jan Hubicka <jh@suse.cz>
7257
7258 * predict.c (estimate_probability): Remove unnecesary code.
7259
7260 2004-09-19 Ira Rosen <irar@il.ibm.com>
7261
7262 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
7263 (STMT_VINFO_VECT_DR_BASE): Declare.
7264 (VECT_SMODULO): Declare.
7265 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
7266 (vect_compute_array_base_alignment): New function.
7267 (vect_analyze_data_ref_access): Check array indices. Remove one
7268 dimensional arrays restriction.
7269 (vect_get_ptr_offset): New function.
7270 (vect_get_symbl_and_dr): New function.
7271 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
7272 (former name vect_get_base_decl_and_bit_offset).
7273 (vect_create_index_for_array_ref): Removed.
7274 (vect_create_index_for_vector_ref): New function.
7275 (vect_create_addr_base_for_vector_ref): New function.
7276 (vect_create_data_ref): Handle additional data refs. Call
7277 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
7278 (vect_compute_data_ref_alignment): Support the changes. Call
7279 vect_get_base_and_bit_offset.
7280 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
7281 data refs. Store vect_dr_base.
7282 (vect_analyze_data_ref_accesses): Support nonconstant init.
7283 (new_stmt_vec_info): Initialize vect_dr_base field.
7284 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
7285 (get_vectype_for_scalar_type): Check for BLKmode.
7286 * tree-chrec.h (initial_condition_in_loop_num): Declare.
7287 * tree-chrec.c (initial_condition_in_loop_num): New function.
7288 (chrec_component_in_loop_num): New function.
7289 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
7290 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
7291 to be pointer to varray_type.
7292
7293 2004-09-19 Jan Hubicka <jh@suse.cz>
7294
7295 * basic-block.h (update_bb_profile_after_threading): Declare.
7296 * cfg.c (update_bb_profile_after_threading): Break out from ...
7297 * cfgcleanup.c (try_forward_edges): ... here; use it.
7298 * tree-ssa-dom.c (thread_across_edge): Use it.
7299 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
7300 profile of the new BB.
7301
7302 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
7303
7304 * tree-ssa-pre.c (insert_into_set): Don't put
7305 is_gimple_min_invariant values into the set.
7306
7307 2004-09-19 Andreas Jaeger <aj@suse.de>
7308
7309 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
7310 prototype.
7311
7312 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
7313
7314 * config/cris/cris.h: Preserve the original spelling in a
7315 quote.
7316
7317 2004-09-18 Jeff Law <law@redhat.com>
7318
7319 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
7320 global varrays to replace the block local varrays.
7321 (struct dom_walk_block_data): Remove, no longer used.
7322 (get_eq_expr_value): No longer need to pass around pointers to local
7323 varrays. Callers updated. Unused markers added to unused parameters.
7324 (record_range, record_equivalences_from_stmt): Likewise.
7325 (record_equivalences_from_incoming_edge): Likewise.
7326 (record_var_is_nonzero): Likewise. Update now that we have a
7327 single global varray of SSA_NAMEs that need restoring.
7328 (dom_opt_initialize_block_local_data): Kill, no longer used.
7329 (tree_ssa_dominator_optimize): Initialize new global varrays.
7330 Update callbacks in dominator walker structure.
7331 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
7332 VRP_VARIABLES_STACK.
7333 (restore_nonzero_vars_to_original_value): Update now that we have
7334 a single global varray of SSA_NAMEs that need restoring.
7335 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
7336 Remove unused variables.
7337 (optimize_stmt): Remove unused variable.
7338
7339 2004-09-18 Jan Hubicka <jh@suse.cz>
7340
7341 * tree-cfg.c (thread_jumps): Fix updating of the profile.
7342
7343 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
7344 verify_cgraph call.
7345
7346 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
7347
7348 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
7349 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
7350 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
7351 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
7352 tree-ssa-operands.c, tree-ssa-phiopt.c,
7353 tree-ssa-threadupdate.c: Fix comment typos.
7354
7355 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
7356
7357 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
7358 config/arm/README-interworking, config/arm/arm-cores.def,
7359 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
7360 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
7361 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
7362 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
7363 config/frv/frv.md, config/i386/winnt.c,
7364 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
7365 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
7366 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
7367 config/mcore/mcore.c, config/mips/mips.h,
7368 config/mn10300/mn10300.md, config/pa/pa.c,
7369 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
7370 config/rs6000/rs6000.c, config/sh/symbian.c,
7371 config/sparc/sparc.h: Fix comment typos. Follow spelling
7372 conventions.
7373
7374 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
7375
7376 PR c/17424
7377 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
7378
7379 2004-09-18 Diego Novillo <dnovillo@redhat.com>
7380
7381 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
7382 remove TREE_ADDRESSABLE from RESULT_DECL.
7383
7384 2004-09-18 Diego Novillo <dnovillo@redhat.com>
7385
7386 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
7387
7388 2004-09-18 Jan Hubicka <jh@suse.cz>
7389
7390 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
7391 NULL.
7392 * tree-ssa-alias.c (init_alias_info): Likewise.
7393 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
7394 (verify_ssa): Likewise.
7395 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
7396
7397 2004-09-18 Jan Hubicka <jh@suse.cz>
7398
7399 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
7400 huge offset.
7401
7402 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
7403
7404 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
7405 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7406 DW_EH_PE_sdata* for data.
7407 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
7408
7409 2004-09-17 Geoffrey Keating <geoffk@apple.com>
7410
7411 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
7412 shared anyway.
7413
7414 PR pch/13361
7415 * c-typeck.c (constructor_asmspec): Delete.
7416 (struct initializer_stack): Delete field 'asmspec'.
7417 (start_init): Delete saving of asmspec.
7418 (finish_init): Don't update constructor_asmspec.
7419 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
7420 * stmt.c (expand_asm): Duplicate strings from tree.
7421 (expand_asm_operands): Likewise.
7422 * tree.c (tree_size): Update computation of size of STRING_CST.
7423 (make_node): Don't make STRING_CST nodes.
7424 (build_string): Allocate string with tree node.
7425 (tree_code_size): Clean up assertions, don't allow requests
7426 for "the size of a STRING_CST".
7427 * tree.def (STRING_CST): Update comment.
7428 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
7429 (tree_string): Place contents of string in tree node.
7430 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
7431 from tree.
7432
7433 2004-09-17 Zack Weinberg <zack@codesourcery.com>
7434
7435 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
7436 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
7437
7438 2004-09-17 Jones Desougi <jones@ingate.com>
7439
7440 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
7441 * configure, config.in: Regenerate.
7442
7443 2004-09-17 Zack Weinberg <zack@codesourcery.com>
7444
7445 * tree.c, tree.h (tree_class_strings): Make array const.
7446 Reindent per coding convention. Move asterisk to proper place
7447 per coding convention.
7448
7449 2004-09-18 Andreas Schwab <schwab@suse.de>
7450
7451 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
7452 (tree-vectorizer.o): Likewise.
7453 (targhooks.o): Likewise.
7454
7455 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
7456 Zack Weinberg <zack@codesourcery.com>
7457
7458 * alias.c (find_base_decl): Remove unreachable case '3' block.
7459 * expr.c (safe_from_p): Abort if passed a type.
7460 * tree-gimple.c (recalculate_side_effects): Abort if passed
7461 anything other than an expression.
7462 * tree-ssa-pre.c (phi_translate): Return expr immediately if
7463 is_gimple_min_invariant is true for it. Reorder cases for clarity.
7464 Abort on un-handled tree classes.
7465 (valid_in_set): Likewise.
7466 * tree.c (tree_code_class_strings): New static data.
7467
7468 * tree.h (enum tree_code_class): New.
7469 (tree_code_class_strings): Declare.
7470 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
7471 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
7472 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
7473 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
7474 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
7475
7476 * tree.def, c-common.def, objc/objc-tree.def: Use
7477 tree_code_class enumeration constants instead of code letters.
7478
7479 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
7480 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
7481 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
7482 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
7483 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
7484 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
7485 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
7486 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
7487 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
7488 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
7489 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
7490 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
7491 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
7492 Update to match.
7493
7494 * LANGUAGES: Add note about change.
7495
7496 2004-09-17 Diego Novillo <dnovillo@redhat.com>
7497
7498 PR tree-optimization/17319
7499 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
7500 examine pointers on the LHS of an assignment.
7501 (collect_points_to_info_r): Handle RETURN_EXPR.
7502
7503 2004-09-17 Jeff Law <law@redhat.com>
7504
7505 * tree-ssa-dom.c (const_and_copies_stack): New.
7506 (dom_walk_block_data): Remove const_and_copies field.
7507 (record_const_or_copy): No longer need to pass in varray_type *.
7508 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
7509 Callers updated.
7510 (record_equality): Similarly.
7511 (restore_vars_to_original_value): Similarly. Revamp to use new
7512 single global stack rather than per-block stacks.
7513 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
7514 (thread_across_edge): Remove now unused parameters.
7515 (dom_opt_initialize_block_local_data): No longer test the block
7516 local CONST_AND_COPIES.
7517 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
7518
7519 2004-09-17 Jan Hubicka <jh@suse.cz>
7520
7521 PR tree-optimization/17509
7522 * tree-optimize.c (update_inlined_to_pointers): New function.
7523 (tree_rest_of_compilation): Use it.
7524
7525 2004-09-17 Devang Patel <dpatel@apple.com>
7526
7527 * dbxout.c (get_lang_number): New.
7528 (dbxout_init): Include lang number in N_SO stab.
7529 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
7530 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
7531
7532 2004-09-17 Diego Novillo <dnovillo@redhat.com>
7533
7534 PR tree-optimization/17273
7535 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
7536 replacement is a constant.
7537
7538 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
7539
7540 * c-tree.h (enum c_typespec_keyword): New.
7541 (struct c_declspecs): Adjust description of "type". Remove
7542 specbits, explicit_int_p and explicit_char_p. Rename
7543 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
7544 short_p, signed_p, unsigned_p and complex_p.
7545 (finish_declspecs): New.
7546 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
7547 typename): Call finish_declspecs.
7548 * c-decl.c (finish_declspecs): New.
7549 (declspecs_add_type): Check for combinations which cannot occur in
7550 valid specifier lists. Update comments.
7551 (shadow_tag_warned): Remove checks done in finish_declspecs.
7552 Don't report useless type name if type defaulted to int.
7553 (grokdeclarator): Remove checks and actions done in
7554 finish_declspecs. Don't allow for type being NULL. Update for
7555 datastructures changes. Initialize decl_attr.
7556 (build_null_declspecs, quals_from_declspecs): Update for
7557 datastructures changes.
7558
7559 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
7560
7561 * doc/extend.texi: Fix duplicated word.
7562
7563 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
7564
7565 * doc/invoke.texi: Remove stray explanation on
7566 -freduce-all-givs and -fmove-all-movables.
7567
7568 2004-09-17 James Morrison <phython@gcc.gnu.org>
7569
7570 * doc/cfg.texi: Use @smallexample.
7571 * doc/md.texi: Likewise.
7572 * doc/tree-ssa.texi: Likewise.
7573 * doc/extend.texi: Likewise. Use @r{} in comments.
7574 * doc/trouble.texi: Use @r{} in comments.
7575
7576 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
7577
7578 * configure.ac (gcc_cv_gld_version): Handle whitespace before
7579 "VERSION=".
7580 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
7581 * configure: Regenerate.
7582
7583 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
7584
7585 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
7586 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
7587 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
7588 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
7589 slashes in substitutions.
7590 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
7591
7592 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
7593
7594 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
7595 gimplify.c, lambda-code.c, optabs.c, predict.c,
7596 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
7597 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
7598 conventions.
7599
7600 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
7601
7602 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
7603 doc/extend.texi, doc/install.texi, doc/invoke.texi,
7604 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
7605 doc/trouble.texi: Use @option around options.
7606
7607 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
7608
7609 * Makefile.in (gen-protos.o): Depend on errors.h.
7610
7611 2004-09-17 Steven Bosscher <stevenb@suse.de>
7612
7613 PR tree-optimization/17513
7614 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
7615 for successors of the entry block.
7616
7617 2004-09-17 Uros Bizjak <uros@kss-loka.si>
7618
7619 PR rtl-optimization/15187
7620 * ifcvt.c (noce_try_cmove_arith): Exit early if total
7621 insn_rtx_cost of both branches > BRANCH_COST
7622
7623 2004-09-16 Diego Novillo <dnovillo@redhat.com>
7624
7625 PR tree-optimization/17528
7626 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
7627 erase the may-alias set for a tag when merging it with
7628 another.
7629
7630 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
7631
7632 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
7633 for 32-bit TARGET_SHMEDIA.
7634 (call_value): Likewise.
7635
7636 2004-09-16 Diego Novillo <dnovillo@redhat.com>
7637
7638 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
7639 test apply only to TREE_STATIC and DECL_EXTERNAL.
7640
7641 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7642
7643 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
7644 * basic-block.h (get_dominated_by_region): Declare.
7645 * dominance.c (get_dominated_by_region): New function.
7646 * tree-cfg.c: Include cfglayout.h.
7647 (tree_duplicate_bb): Duplicate also phi nodes.
7648 (struct ssa_name_map_entry): New type.
7649 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
7650 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
7651 allocate_ssa_names, rewrite_to_new_ssa_names_def,
7652 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
7653 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
7654 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
7655 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
7656 rewrite_to_new_ssa_names, allocate_ssa_names,
7657 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
7658 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
7659 (copy_loop_headers): Use tree_duplicate_sese_region.
7660
7661 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
7662
7663 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
7664
7665 2004-09-16 Jeff Law <law@redhat.com>
7666
7667 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
7668 (rewrite_block_data): Remove, no longer used.
7669 (rewrite_initialize_block_local_data): Remove, no longer used.
7670 (rewrite_initialize_block): Mark parameters as unused as needed.
7671 Change references to the block local block_defs to be block_defs_stack.
7672 Push a marker onto the block_defs_stack.
7673 (ssa_rewrite_initialize_block): Similarly.
7674 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
7675 (ssa_register_new_def): No longer needs varray argument. Use
7676 block_defs_stack instead. No longer handle possibly null block_defs
7677 varray. Reverse order of items we push on the stack to make it
7678 easier to identify our marker.
7679 (register_new_def): No longer handle possibly null block_defs
7680 varray.
7681 (rewrite_finalize_block): Revamp to look for markers in the global
7682 block_defs_stack varray rather than wiping a block local varray.
7683 Mark arguments as unused as needed.
7684 (ssa_rewrite_finalize_block): Similarly.
7685 (rewrite_into_ssa): Update initialization of dom walker structure
7686 to reflect that we don't need block local data anymore. Initialize
7687 the block_defs_stack varray.
7688 (rewrite_ssa_into_ssa): Similarly.
7689 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
7690 (struct dom_walk_data): Kill block_defs field.
7691 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
7692 (thread_across_edge): Use the global block_defs_stack instead of
7693 the old block_defs varray.
7694 (dom_opt_initialize_block_local_data): Update now that we don't have
7695 block_defs field to check anymore.
7696 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
7697 (restore_currdefs_to_original_value): Use the new block_defs_stack
7698 instead of a block local varray.
7699 (dom_opt_finalize_block): Similarly.
7700 (record_equivalencs_from_phis): Similarly.
7701 (optimize_stmt, register_definitions_for_stmt): Similarly.
7702
7703 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
7704
7705 PR tree-optimization/17517
7706 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7707 coalesce same-root variables without checking for abnormal PHI usage.
7708
7709 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
7710
7711 * cfgloop.h (duplicate_loop): Add prototype.
7712 * cfgloopmanip.c (duplicate_loop): Make non-static.
7713 * lambda-code.c (perfect_nestify): Factor out test whether
7714 we can handle this loop into separate function.
7715 Call it.
7716 (can_convert_to_perfect_nest): New function.
7717 (replace_uses_of_x_with_y): Add modify_stmt call.
7718 * tree-loop-linear.c (linear_transform_loops): Call
7719 rewrite_into_loop_closed_ssa and free_df.
7720
7721 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
7722
7723 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
7724 loop invariant as well.
7725 (perfect_nestify): new function.
7726 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
7727 upper bounds, and steps.
7728 Set outerinductionvar properly.
7729 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
7730 parameters.
7731 Return NULL if we need a perfect loop and can't make one.
7732 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
7733 (not_interesting_stmt): New function.
7734 (phi_loop_edge_uses_def): Ditto.
7735 (stmt_uses_phi_result): Ditto.
7736 (stmt_is_bumper_for_loop): Ditto.
7737 (perfect_nest_p): Ditto.
7738 (nestify_update_pending_stmts): Ditto.
7739 (replace_uses_of_x_with_y): Ditto.
7740 (stmt_uses_op): Ditto.
7741 (perfect_nestify): Ditto.
7742 * lambda-mat.c (lambda_matrix_id_p): New function.
7743 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
7744 * lambda.h: Update prototypes.
7745 * tree-loop-linear (linear_transform_loop): Use new
7746 perfect_nest_p. Detect and ignore identity transform.
7747 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
7748
7749 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
7750
7751 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
7752 Gather also strides of accessed data. Pass in the data references
7753 array.
7754 (try_interchange_loops): Add a new heuristic for handling the temporal
7755 locality. Pass in the data references array.
7756 (linear_transform_loops): Pass the data references array to
7757 try_interchange_loops.
7758
7759 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
7760
7761 * doc/invoke.texi: Fix typos. Follow spelling conventions.
7762
7763 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
7764
7765 * doc/c-tree.texi (Classes): Remove index entries for
7766 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
7767
7768 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7769
7770 * fold-const.c (fold): Fold difference of addresses.
7771 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
7772 get_inner_reference.
7773 * tree-ssa-loop-ivopts.c (peel_address): Removed.
7774 (ptr_difference_const): Moved to fold-const.c.
7775 (split_address_cost): Use get_inner_reference instead of peel_address.
7776 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
7777 * tree.h (ptr_difference_const): Export.
7778
7779 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
7780 variable type to the dump. Fix indentation.
7781 (idx_find_step): Handle nonconstant array_ref_element_size and
7782 array_ref_low_bound.
7783 (idx_record_use): Handle array_ref_element_size and
7784 array_ref_low_bound.
7785 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
7786 statements correctly.
7787 (get_computation_at, iv_value): Do not unshare expressions here.
7788 (rewrite_use_outer): Unshare the expression before it is emitted
7789 to code.
7790 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
7791 Moved to tree.c.
7792 * tree.c (unsigned_type_for, signed_type_for): Moved from
7793 tree-ssa-loop-niter.c. Use langhooks.
7794 * tree.h (signed_type_for): Export.
7795
7796 2004-09-16 David Edelsohn <edelsohn@gnu.org>
7797
7798 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
7799 prototype.
7800
7801 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
7802
7803 PR target/11572
7804 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
7805 Add two parameters to extra_includes.
7806 (C_INCPATH_INIT): Remove.
7807 * c-incpath.c (register_include_chains): Call extra_pre_includes
7808 before adding the standard include directory.
7809 Update call to extra_includes.
7810 (!defined TARGET_EXTRA_INCLUDES): Update
7811 hook_void_charptr_charptr_int and add !define
7812 TARGET_EXTRA_PRE_INCLUDES.
7813 (!define TARGET_EXTRA_INCLUDES): Define as
7814 hook_void_charptr_charptr_int.
7815 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
7816 (target_c_incpath): Always declare.
7817 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
7818 empty function.
7819 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
7820 * config/darwin.h: (darwin_register_frameworks): Update for
7821 the two new parameters.
7822 (darwin_register_objc_includes): Add prototype.
7823 (TARGET_EXTRA_PRE_INCLUDES): Define.
7824 * config/darwin-c.c (darwin_register_objc_includes): New function.
7825 (darwin_register_frameworks): Update for the two new parameters.
7826 (target_c_incpath): Remove.
7827 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
7828 the compile line.
7829 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
7830 parameters.
7831 (TARGET_EXTRA_PRE_INCLUDES): Document.
7832
7833 * gcc.c (spec_function): Add replace-outfile.
7834 (replace_outfile_spec_function): New function.
7835 * config/darwin.h (LINK_SPEC): Add replace
7836 -lobjc with -lobjc-gnu if -fgnu-runtime is
7837 supplied.
7838 * invoke.texi (replace-outfile): Document.
7839
7840 2004-09-13 Jan Hubicka <jh@suse.cz>
7841
7842 * predict.c (expr_expected_value, strip_builtin_expect): New function.
7843 (tree_predict_by_opcode): Use it.
7844 (tree_estimate_probability): Add, for now disabled,
7845 strip_builtin_expect call.
7846
7847 2004-09-15 James E Wilson <wilson@specifixinc.com>
7848
7849 PR target/17455
7850 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
7851 if current_function_decl is a sibcall.
7852
7853 2004-09-15 Mark Mitchell <mark@codesourcery.com>
7854
7855 * varasm.c (default_function_rdodata_section): Make sure to pass
7856 along a decl for a link-once section.
7857
7858 2004-09-15 Richard Henderson <rth@redhat.com>
7859
7860 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
7861 warning with code disable. Fix formatting.
7862
7863 2004-09-15 Steven Bosscher <stevenb@suse.de>
7864
7865 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
7866 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
7867 after propagating into an ADDR_EXPR.
7868
7869 2004-09-15 Andrew Pinski <apinski@apple.com>
7870
7871 PR rtl-opt/17427
7872 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
7873 Move it out of gcc_assert.
7874
7875 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
7876
7877 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
7878 except.c, fold-const.c, function.c, langhooks.c, params.c,
7879 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
7880 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
7881 for quoting in diagnostics going through pretty-print.c. Use ''
7882 for quoting in other diagnostic text.
7883 * langhooks.c: Include intl.h. Mark text locating diagnostics for
7884 translation.
7885 * Makefile.in (langhooks.o): Update dependencies.
7886 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
7887 formats.
7888
7889 2004-09-15 Mark Mitchell <mark@codesourcery.com>
7890
7891 * configure.ac: Check for COMDAT support. Robustify check for
7892 SHF_MERGE support.
7893 * configure: Regenerated.
7894 * config.in: Likewise.
7895 * langhooks-def.h (lhd_comdat_group): New function.
7896 (LANG_HOOKS_COMDAT_GROUP): New macro.
7897 (LANG_HOOKS_DECLS): Use it.
7898 * langhooks.c (lhd_comdat_group): Define.
7899 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
7900 * output.h (named_section_flags): Make it a macro.
7901 (named_section_real): New function.
7902 (default_no_named_section): Add decl parameter.
7903 (default_elf_asm_named_section): Likewise.
7904 (default_coff_asm_named_section): Likewise.
7905 (default_pe_asm_named_section): Likewise.
7906 * target.h (gcc_target): Adjust type of named_section.
7907 * varasm.c (named_section_flags): Rename to named_section_real.
7908 Add decl parameter.
7909 (default_no_named_section): Add decl parameter.
7910 (default_elf_asm_named_section): Use COMDAT, if available. Deal
7911 with the case that ASM_COMMENT_START is "@".
7912 (default_coff_asm_named_section): Add decl parameter.
7913 (default_pe_asm_named_section): Likewise.
7914 * config/alpha/alpha.c (vms_asm_named_section): Add decl
7915 parameter.
7916 (unicosmk_asm_named_section): Likewise.
7917 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
7918 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
7919 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
7920 * config/cris/cris-protos.h (cris_target_asm_named_section):
7921 Likewise.
7922 * config/cris/cris.c (cris_target_asm_named_section):
7923 Likewise.
7924 * config/darwin/darwin-protos.h (darwin_asm_named_section):
7925 Likewise.
7926 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
7927 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
7928 * config/i386/i386-protos.h (i386_pe_asm_named_section):
7929 Likewise.
7930 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
7931 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
7932 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
7933 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
7934 Likewise.
7935 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
7936 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
7937 * cp/cp-tree.h (cxx_comdat_group): Declare.
7938 * cp/decl.c (cxx_comdat_group): New function.
7939
7940 2004-09-15 Jan Hubicka <jh@suse.cz>
7941
7942 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
7943 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
7944
7945 * tree-cfg.c (remove_bb): Release SSA defs.
7946
7947 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
7948
7949 * doc/tm.texi: Follow spelling conventions.
7950
7951 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
7952
7953 * tree-ssa-dom.c: Fix comment typos.
7954
7955 2004-09-15 Alan Modra <amodra@bigpond.net.au>
7956
7957 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
7958 include ccr.
7959 (ppc_fallback_frame_state): Save location of CR.
7960
7961 2004-09-15 Jakub Jelinek <jakub@redhat.com>
7962
7963 * expr.c (string_constant): Handle also read-only variables
7964 initialized to string literals.
7965
7966 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
7967 into memcpy (x, y, 1) if memcpy can be expanded inline.
7968
7969 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7970
7971 PR tree-optimization/17468
7972 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
7973 definition inside a block precede uses.
7974 * tree-tailcall.c (adjust_return_value): Emit statements in the
7975 correct order.
7976
7977 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
7978
7979 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
7980
7981 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
7982
7983 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
7984
7985 2004-09-14 Jeff Law <law@redhat.com>
7986
7987 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
7988 (struct dom_walk_block_data): Remove avail_exprs member.
7989 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
7990 (lookup_avail_expr): No longer need to pass in address of
7991 the block local available exprs stack. All callers changed.
7992 (simplify_cond_and_lookup_avail_expr): Similarly.
7993 (simplify_switch_and_lookup_avail_expr): Similarly.
7994 (get_eq_expr_value, record_cond): Likewise.
7995 (record_dominating_conditions): Likewise.
7996 (update_rhs_and_lookup_avail_expr): Likewise.
7997 (record_equivalences_from_stmt): Likewise.
7998 (dom_opt_initialize_block_local_data): No longer test state of
7999 block local avail_exprs.
8000 (dom_opt_initialize_block): Mark unwind point in the global
8001 avail_expr stack.
8002 (remove_expressions_from_table): Update to unwind to the
8003 most recent unwind marker in the global avail_expr stack.
8004 All callers changed.
8005 (dom_opt_finalize_block): Mark unwind point in the global
8006 avail_expr stack as needed.
8007 (record_cond): Push elements into the global avail_exprs stack.
8008
8009 * tree-dfa.c (free_df_for_stmt): No longer static.
8010 (free_df): Update comments.
8011 * tree-flow.h (free_df_for_stmt): Prototype.
8012 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
8013 call release_defs.
8014
8015 2004-09-14 Diego Novillo <dnovillo@redhat.com>
8016
8017 PR tree-optimization/17252
8018 * tree-ssa-alias.c (may_alias_p): Don't assume that a
8019 pointer may not point to itself when using relaxed
8020 aliasing rules.
8021
8022 2004-09-14 Richard Henderson <rth@redhat.com>
8023
8024 PR middle-end/17397
8025 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
8026 while folding <ADDR_EXPR <INDIRECT_REF X>>.
8027
8028 2004-09-14 Andrew Pinski <apinski@apple.com>
8029
8030 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
8031 sets of the pointers but the aliasing sets of what they point to.
8032
8033 2004-09-14 Roger Sayle <roger@eyesopen.com>
8034
8035 PR rtl-optimization/9771
8036 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
8037 conditional compilation in init_reg_sets_1.
8038 (init_reg_sets_1): Let global_regs[i] take priority over the frame
8039 (but not stack) pointer exceptions to regs_invalidated_by_call.
8040 (globalize_reg): Globalizing a fixed register may need to update
8041 regs_invalidated_by_call.
8042
8043 2004-09-14 Diego Novillo <dnovillo@redhat.com>
8044
8045 PR tree-optimization/15262
8046 * tree-dfa.c (dump_variable): Also print the type of the
8047 variable.
8048 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
8049 memory tags are of conflicting alias sets but have no aliased
8050 symbols in common, add one tag to the alias set of the other.
8051 (setup_pointers_and_addressables): Remove hack to deal with
8052 programs with no aliased symbols.
8053 (may_alias_p): Don't special case aggregate types.
8054
8055 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
8056
8057 PR c/15498
8058 * doc/invoke.texi (Environment Variables): Correct example locale.
8059
8060 2004-09-14 Jan Hubicka <jh@suse.cz>
8061
8062 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
8063
8064 2004-09-14 Mark Mitchell <mark@codesourcery.com>
8065
8066 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
8067
8068 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
8069
8070 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
8071 restrict_p.
8072 (struct c_declarator): Change u.array.quals and pointer_quals to
8073 int. Add u.array.attrs.
8074 (quals_from_declspecs): New.
8075 * c-decl.c (quals_from_declspecs): New.
8076 (shadow_tag_warned): Give more specific message for useless type
8077 qualifiers.
8078 (build_array_declarator, set_array_declarator_inner,
8079 grokdeclarator, make_pointer_declarator, build_null_declspecs,
8080 declspecs_add_qual): Update for changed structures.
8081
8082 2004-09-14 Jeff Law <law@redhat.com>
8083
8084 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
8085 to a global varray.
8086 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
8087 (dom_opt_initialize_block_local_data): No longer test state
8088 of stmts_to_rescan.
8089 (dom_opt_finalize_block): Update due to change in scope of
8090 stmts_to_rescan.
8091 (optimize_stmt): Similarly.
8092
8093 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8094
8095 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
8096 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
8097 comment typos. Follow spelling conventions.
8098
8099 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8100
8101 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
8102 config/i386/predicates.md, config/sparc/sparc.c: Follow
8103 spelling conventions.
8104
8105 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8106 Steven Bosscher <stevenb@suse.de>
8107
8108 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
8109 * basic-block.h (struct reorder_block_def): Add copy_number field.
8110 * cfgloop.h (biv_p): Declare.
8111 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
8112 * common.opt (fsplit-ivs-in-unroller): New flag.
8113 * loop-iv.c (biv_p): New function.
8114 * loop-unroll.c: Include hashtab.h and recog.h.
8115 (struct iv_to_split, struct split_ivs_info): New types.
8116 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
8117 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
8118 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
8119 insert_base_initialization, split_iv): New functions.
8120 (peel_loop_completely, unroll_loop_constant_iterations,
8121 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
8122 Use them.
8123 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
8124
8125 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8126
8127 * tree-cfg.c (thread_jumps): Update dominators correctly in
8128 case destination of threaded edge dominates its source.
8129
8130 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8131
8132 * unroll.c: Removed.
8133 * loop.h: Removed.
8134 * Makefile.in (LOOP_H, unroll.o): Removed.
8135 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
8136 dependency.
8137 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
8138 reference.
8139 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
8140 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
8141 * loop.c: Do not include loop.h.
8142 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
8143 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
8144 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
8145 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
8146 struct loop_regs, struct loop_movables, struct loop_info): Moved
8147 from loop.h.
8148 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
8149 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
8150 find_common_reg_term, loop_iterations, final_giv_value): Moved
8151 from unroll.c.
8152 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
8153 loop_dump_stream, for_each_insn_in_loop, express_from,
8154 extend_value_for_giv, loop_iv_add_mult_emit_before,
8155 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
8156 loop_insn_first_p, get_condition_for_loop,
8157 loop_insn_emit_before, loop_insn_hoist,
8158 loop_insn_sink): Made static.
8159 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
8160 reference.
8161 (strength_reduce): Do not call unroller.
8162 (record_giv): Do not initialize unrolled field.
8163 (prescan_loop): Do not set loop_info->preconditioned.
8164 * passes.c: Do not include loop.h.
8165 (rest_of_handle_loop_optimize): Do not call unroller.
8166 * predict.c: Do not include loop.h.
8167 * rtl.h (NOTE_PRECONDITIONED): Removed.
8168 * stmt.c: Do not include loop.h.
8169 * toplev.c: Do not include loop.h.
8170 (process_options): Do not handle flag_old_unroll_loops.
8171
8172 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
8173 Documentation removed.
8174 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
8175
8176 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
8177
8178 * Makefile.in (STAGE1_CHECKING): New variable.
8179 (stage1_build): Use it.
8180 * tree-ssa.c (verify_ssa): Preserve state of dominance
8181 information.
8182
8183 2004-09-14 Uros Bizjak <uros@kss-loka.si>
8184
8185 * config/i386/i386.c (output_fp_compare): Add generation
8186 of ftst instruction.
8187 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
8188 Use output_fp_compare () function.
8189 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
8190 (fix_truncdi_memory): Remove operands[5] copy.
8191
8192 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
8193
8194 * config/m32r/m32r.md, config/m68k/m68kelf.h,
8195 config/mcore/mcore.md, config/rs6000/linux64.h,
8196 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
8197 typos.
8198
8199 2004-09-13 James E Wilson <wilson@specifixinc.com>
8200
8201 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
8202 * gen-protos.c: Include errors.h.
8203 (progname): Delete.
8204
8205 2004-09-14 Jan Hubicka <jh@suse.cz>
8206
8207 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
8208 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
8209 (predict_loops): Use number_of_iterations_exit to predict
8210 number of iterations on trees.
8211
8212 2004-09-13 Dale Johannesen <dalej@apple.com>
8213
8214 PR 17408
8215 PR 17409
8216 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
8217 objects declared extern.
8218
8219 2004-09-14 Paul Brook <paul@codesourcery.com>
8220
8221 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
8222 HOST_WIDE_INT.
8223
8224 2004-09-13 Daniel Jacobowitz <dan@debian.org>
8225
8226 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
8227 Only use TYPE_BINFO for aggregates.
8228
8229 2004-09-13 Daniel Jacobowitz <dan@debian.org>
8230
8231 * expmed.c (synth_mult): Initialize latency. Check cost before
8232 checking ops count.
8233
8234 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
8235
8236 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
8237 add_call_clobber_ops and add_call_read_ops.
8238 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
8239 the number of vdefs and vuses inserted based on analysis of global
8240 variables across calls. * tree-dfa.c (find_referenced_vars):
8241 Needed to reset static var maps before each function is compiled.
8242 * cgraphunit.c:
8243 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
8244 static_vars_info,functions_to_static_vars_info,module_statics_escape,
8245 all_module_statics,searchc_env,dfs_info): New fields to support
8246 analysis of static global variables.
8247 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
8248 cgraph_reset_static_var_maps, get_global_static_vars_info,
8249 get_global_statics_not_read, get_global_statics_not_written,
8250 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
8251 check_rhs_var, check_lhs_var, get_asm_expr_operands,
8252 process_call_for_static_vars, scan_for_static_refs,
8253 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
8254 clear_static_vars_maps, cgraph_propagate_bits,
8255 cgraph_characterize_statics): New. Functions to support analysis
8256 of static global variables.
8257 (cgraph_mark_local_and_external_functions): Renamed from:
8258 (cgraph_mark_local_functions)
8259 (cgraph_expand_all_functions): Remove call to
8260 cgraph_mark_local_and_external_functions.
8261 (cgraph_optimize): Added driver to analyze static variables whose
8262 scope is within the compilation unit. * cgraph.h (struct
8263 cgraph_local_info, GTY): Added statics_read, statics_written,
8264 local, calls_read_all, calls_write_all, for_functions_valid.
8265 (struct cgraph_node): Added next_cycle. * cgraph.c
8266 (dump_cgraph_node): Added print routines for new fields. *
8267 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
8268 list.
8269
8270 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
8271
8272 * c-decl.c (grokdeclarator): Correct comments about where storage
8273 class specifiers are rejected by grammar and add corresponding
8274 asserts. Diagnose typedefs and parameters declared inline.
8275 Change warning for inline main to a pedwarn. Only diagnose inline
8276 main if hosted.
8277 (declspecs_add_scspec): Allow duplicate "inline".
8278
8279 2004-09-13 Steve Ellcey <sje@cup.hp.com>
8280
8281 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
8282 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
8283
8284 2004-09-13 Richard Henderson <rth@redhat.com>
8285
8286 PR 17436
8287 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
8288 (tree_type): Replace spare with contains_placeholder_bits.
8289 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
8290 make static. Remove seen_types list.
8291 (type_contains_placeholder_p): New.
8292
8293 2004-09-13 James E Wilson <wilson@specifixinc.com>
8294
8295 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
8296 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
8297 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
8298 bdesc_arrays instead of mips_bdesc.
8299 (mips_init_builtins): Likewise.
8300 * config/mips/mips.h (TARGET_SB1): New.
8301 (HAVE_SQRT_P): Delete.
8302 * config/mips/mips.md (divide_condition): Support V2SF.
8303 (sqrt_condition, recip_condition): New.
8304 (div<mode>3): Use ANYF instead of SCALARF.
8305 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
8306 MODE.
8307 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
8308 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
8309 instead of MODE.
8310 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
8311 instead of SCALARF. Use UNITMODE instead of MODE.
8312
8313 2004-09-13 Zack Weinberg <zack@codesourcery.com>
8314
8315 * config.in: Regenerate after removal of libbanshee.
8316
8317 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
8318
8319 PR tree-optimization/17400
8320 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8321 coalesce partitions when one occurs in an abnormal PHI.
8322
8323 2004-09-13 Andrew Pinski <apinski@apple.com>
8324
8325 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
8326 name to _new_size.
8327
8328 2004-09-13 Richard Henderson <rth@redhat.com>
8329
8330 PR inline-asm/6806
8331 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
8332 (cselib_invalidate_rtx_note_stores): New.
8333 (cselib_record_sets, cselib_process_insn): Update to match.
8334 * cselib.h (cselib_invalidate_rtx): Declare.
8335 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
8336
8337 2004-09-13 Richard Henderson <rth@redhat.com>
8338
8339 PR tree-opt/10528
8340 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
8341 after copying its argument.
8342
8343 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
8344
8345 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
8346 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
8347 in diagnostics. Use %' for English apostrophes.
8348 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
8349 (pedwarn_c90, pedwarn_c99): Use it.
8350 * c-decl.c (lookup_label): Quote label name in diagnostic.
8351 * c-parse.in (yyprint): Use ' instead of ` for left quote.
8352 * c-typeck.c (warn_for_assignment): Likewise.
8353
8354 2004-09-13 Jan Hubicka <jh@suse.cz>
8355
8356 * i386.c (x86_schedule): New global variable.
8357 (override_options): Disable scheduling when not supported.
8358 * i386.h (x86_schedule): Declare.
8359 (TARGET_SCHEDULE): New macro.
8360
8361 2004-09-12 Richard Henderson <rth@redhat.com>
8362
8363 PR c++/16254
8364 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
8365 * tree.c, tree.h (has_cleanups): Remove.
8366
8367 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8368
8369 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
8370 arguments of the phi nodes correctly.
8371
8372 2004-09-12 Jan Hubicka <jh@suse.cz>
8373
8374 * ggc-common.c (cmp_statistics): Fix sorting.
8375
8376 2004-09-12 David Edelsohn <edelsohn@gnu.org>
8377
8378 PR target/16795
8379 * expmed.c (expand_divmod): If cheap power of 2 divide is
8380 available, use it for negative constant as well.
8381
8382 2004-09-12 Andrew Pinski <apinski@apple.com>
8383
8384 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
8385 size of 0.
8386
8387 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
8388
8389 2004-09-12 Richard Henderson <rth@redhat.com>
8390
8391 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
8392 or minus one.
8393 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
8394 post-reload, and scratch NULL.
8395 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
8396 (x86_shift_adj_2): Use ix86_expand_clear.
8397 (ashldi3): Remove CMOVE expansion difference.
8398 (ashldi3_1): Remove.
8399 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
8400 add constraints for immediates. New peephole for split-with-temp.
8401 Run splitter after peep2 pass.
8402 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
8403 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
8404 (setcc_2): Rename with *.
8405 * config/i386/predicates.md (reg_or_pm1_operand): New.
8406 (ashldi_input_operand): New.
8407
8408 2004-09-12 Richard Henderson <rth@redhat.com
8409
8410 * print-rtl.c (print_decl_name): New.
8411 (print_mem_expr): Use it.
8412
8413 2004-09-12 Richard Henderson <rth@redhat.com
8414
8415 PR 17186, part deux
8416 * except.c (sjlj_emit_function_exit): Fix logic locating
8417 sjlj_exit_after in final block.
8418
8419 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
8420
8421 * common.opt: Remove flags -fmove-all-movables and
8422 -freduce-all-givs.
8423 * loop-invariant.c (find_invariants_to_move):
8424 Remove all uses of flag_move_all_movables.
8425 * loop.c (move_movables): Remove all uses of
8426 flag_move_all_movables.
8427 (strength_reduce): Remove all uses of
8428 flag_reduce_all_givs.
8429 * doc/invoke.texi: Remove documentation of flags
8430 -fremove-all-movables and -freduce-all-givs.
8431
8432 2004-09-11 Roger Sayle <roger@eyesopen.com>
8433
8434 PR middle-end/17411
8435 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
8436 change. elt->type may be a floating point type, so use fold_convert.
8437
8438 2004-09-11 Geoffrey Keating <geoffk@apple.com>
8439
8440 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
8441 the thing referenced as used, not the stub itself.
8442
8443 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
8444
8445 * c-tree.h (enum c_storage_class): New.
8446 (struct c_declspecs): Add storage_class, inline_p and thread_p.
8447 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
8448 declarations and "auto" or "register" in file scope empty
8449 declarations. Give more specific warnings for other cases of
8450 storage class specifiers in empty declarations.
8451 (grokdeclarator): Update for new structures. Don't check for
8452 multiple storage classes. Diagnose file-scope "register" if
8453 pedantic.
8454 (build_null_declspecs): Update.
8455 (declspecs_add_scspec): Update. Diagnose multiple storage class
8456 specifiers and invalid uses of "__thread".
8457
8458 2004-09-11 Zack Weinberg <zack@codesourcery.com>
8459
8460 * tree.c (tree_code_size): New function, bulk of code from tree_size.
8461 (tree_size, make_node): Use it.
8462 * tree-ssa-pre.c (init_pre): Use it.
8463 * tree.h: Prototype it.
8464
8465 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8466
8467 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
8468 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
8469 redirect_immediate_use): Use PHI_DF.
8470 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
8471 (bb_for_stmt): Use PHI_BB.
8472 (get_immediate_uses): Use PHI_DF.
8473 * tree-ssa-dse.c (max_stmt_uid): New variable.
8474 (get_stmt_uid): New function.
8475 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
8476 node annotations.
8477 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
8478 (max_uid): Renamed to max_stmt_uid.
8479 (get_stmt_uid): New function.
8480 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
8481 phi node annotations.
8482 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
8483 * tree.h (PHI_BB, PHI_DF): New accessor functions.
8484 (struct tree_phi_node): Add bb and df fields.
8485
8486 2004-09-11 Richard Henderson <rth@redhat.com>
8487
8488 PR middle-end/17416
8489 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
8490 in conflict loop.
8491
8492 2004-09-11 Jan Hubicka <jh@suse.cz>
8493
8494 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
8495 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
8496 * i386.md (i387_cw): Add 'uninitialized' mode.
8497
8498 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
8499 (output_location): Break out from ....
8500 (branch_prob): ... here; handle gcov output on trees.
8501 * toplev.c (process_options): No longer be sorry about coverage for
8502 trees.
8503
8504 2004-09-11 Steven Bosscher <stevenb@suse.de>
8505
8506 PR c++/17412
8507 * fold-const.c (fold): Do not try to fold the operand of a
8508 CLEANUP_POINT_EXPR if that operand does itself not have any
8509 operands.
8510
8511 PR middle-end/17417
8512 * langhooks.c (lhd_decl_printable_name): Make sure that this
8513 function is called with is a decl node that has an identifier.
8514 * tree-pretty-print.c (dump_function_name): New function to
8515 wrap PRINT_FUNCTION_NAME and dump_decl_name.
8516 (print_call_name): Use it.
8517
8518 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
8519
8520 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
8521 "config.h" if not.
8522
8523 2004-09-11 Jakub Jelinek <jakub@redhat.com>
8524
8525 * tree-ssa-alias.c (collect_points_to_info_r): Handle
8526 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
8527 to OFFSET.
8528
8529 2004-09-11 Richard Henderson <rth@redhat.com>
8530
8531 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
8532 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
8533 operand of the ADDR_EXPR.
8534 (expand_expr_real_1): Update to match.
8535
8536 2004-09-11 David Edelsohn <edelsohn@gnu.org>
8537
8538 PR target/17277
8539 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
8540 choose 64-bit version.
8541
8542 2004-09-11 Richard Henderson <rth@redhat.com>
8543
8544 PR c/17396
8545 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
8546
8547 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
8548
8549 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
8550 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
8551 Insert @: after i.e. or e.g.
8552
8553 2004-09-10 Geoffrey Keating <geoffk@apple.com>
8554
8555 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
8556 D.xxx rather than <Dxxx>.
8557
8558 2004-09-10 Adam Nemet <anemet@lnxw.com>
8559
8560 * configure.ac (AC_MSG_CHECKING(what linker to use)):
8561 in_tree_ld_is_elf should be true for LynxOS.
8562 * configure: Regenerate.
8563
8564 2004-09-10 Adam Nemet <anemet@lnxw.com>
8565
8566 * Makefile.in (all.cross): Add srcextra.
8567
8568 2004-09-10 Roger Sayle <roger@eyesopen.com>
8569
8570 PR middle-end/17024
8571 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
8572 floating point comparison operators. Change aborts to gcc_asserts.
8573
8574 2004-09-10 Geoffrey Keating <geoffk@apple.com>
8575
8576 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
8577
8578 2004-09-10 James E Wilson <wilson@specifixinc.com>
8579
8580 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
8581 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
8582
8583 * convert.c (convert_to_vector): Replace recursive call with
8584 error_mark_node.
8585
8586 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
8587 Add integer argument named constant. Use const_tiny_rtx instead of
8588 CONST0_RTX.
8589 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
8590 and CONST1_RTX.
8591 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
8592 vector types.
8593 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
8594 of gen_rtx_raw_CONST_VECTOR.
8595
8596 2004-09-10 Eric Christopher <echristo@redhat.com>
8597
8598 PR c/16046
8599 * c-parse.in (attribute): Add NULL_TREE for error case
8600 for error recovery.
8601
8602 2004-09-10 Zack Weinberg <zack@codesourcery.com>
8603
8604 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
8605 (extract_interface_info): Delete prototype.
8606 * c-decl.c (extract_interface_info): Delete stub.
8607 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
8608 it's not already been done ...
8609 (init_c_lex): ... not here.
8610 (fe_file_change): Don't call extract_interface_info.
8611
8612 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
8613
8614 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
8615 typedef_p and typedef_signed_p.
8616 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
8617 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
8618 Check typedef_p and typedef_signed_p, not typedef_decl.
8619 (grokfield): Check typedef_p, not typedef_decl.
8620 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
8621 not typedef_decl.
8622 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
8623 typedef_decl.
8624
8625 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8626
8627 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
8628
8629 2004-09-10 Geoffrey Keating <geoffk@apple.com>
8630
8631 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
8632 temporary variables.
8633
8634 * dbxout.c (dbxout_block): Update for
8635 current_function_func_begin_label a string.
8636 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
8637 * except.c (dw2_output_call_site_table): Likewise.
8638 * toplev.c (current_function_func_begin_label): Likewise.
8639 * tree.h (current_function_func_begin_label): Likewise.
8640 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
8641
8642 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
8643 loop.
8644
8645 * config/darwin.c: Include target.h.
8646 (struct machopic_indirection): Make ptr_name a string.
8647 (machopic_indirection_hash): Update for ptr_name a string.
8648 (machopic_indirection_eq): Likewise.
8649 (machopic_indirection_name): Likewise.
8650 (machopic_output_indirection): Likewise.
8651 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
8652 string. Don't expect stub names to be in the identifier hash table.
8653 Do call strip_name_encoding before looking up entry in ID hash table.
8654 * config/t-darwin (darwin.o): Add target.h to dependencies.
8655
8656 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
8657 of fprintf for register names.
8658
8659 * output.h (unlikely_section_label): Delete declaration.
8660 (unlikely_text_section_name): Likewise.
8661 * varasm.c (unlikely_section_label_printed): Make static.
8662 (unlikely_section_label): Likewise.
8663 (unlikely_text_section_name): Likewise.
8664 (assemble_start_function): Use reconcat.
8665
8666 * rtl.def (REG): Add comment to describe third field.
8667
8668 2004-09-10 Andrew Pinski <apinski@apple.com>
8669
8670 * config/darwin.c (machopic_mcount_stub_name): Call
8671 machopic_indirection_name instead of making the string
8672 ourselves.
8673
8674 2004-09-10 Diego Novillo <dnovillo@redhat.com>
8675
8676 Revert
8677
8678 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
8679
8680 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
8681 memory tag is call clobbered, so are its aliases.
8682 (group_aliases): When two memory tags being grouped, if one is
8683 call clobbered, so are the other and its aliases.
8684 (add_may_alias): Remove call-clobbering stuff.
8685 (replace_may_alias): Likewise.
8686 (merge_pointed_to_info): Merge pt_global_mem
8687
8688 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8689
8690 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
8691 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
8692 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
8693 tree-scalar-evolution.c, tree-ssa-copyrename.c,
8694 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
8695
8696 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
8697
8698 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
8699 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
8700 pair. Remove match_dup from inputs. Remove masaccs handling.
8701 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
8702 (masaccs, mdasaccs): Turn into define_insns.
8703
8704 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
8705
8706 * tree-tailcall.c (process_assignment): Only do accumulator transforms
8707 for floating-point types if flag_unsafe_math_optimizations.
8708
8709 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8710
8711 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
8712 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
8713 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
8714 config/h8300/h8300.md, config/i386/gmm_malloc.h,
8715 config/ia64/ia64.md, config/ip2k/libgcc.S,
8716 config/mips/mips-ps-3d.md, config/mips/mips.c,
8717 config/rs6000/rs6000.c, config/s390/s390.c,
8718 config/sh/symbian.c: Fix comment typos.
8719
8720 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
8721
8722 * config/s390/s390.c (s390_emit_prologue): Added missing
8723 "{}" brackets.
8724
8725 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8726
8727 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
8728 typos. Follow spelling conventions.
8729
8730 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
8731
8732 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
8733 in diagnostic. Don't dereference NULL TYPE_NAME.
8734
8735 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8736
8737 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
8738 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
8739 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
8740 value-prof.c: Fix comment typos. Follow spelling conventions.
8741
8742 2004-09-10 Jan Hubicka <jh@suse.cz>
8743
8744 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
8745 * tree-split_edge.c (tree_split_edge): Likewise.
8746 (thread_jumps): Likewise.
8747
8748 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
8749
8750 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
8751 typos.
8752
8753 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
8754
8755 * cgraph.h (cgraph_dump_file): Do not declare.
8756 * cgraphunit.c (cgraph_dump_file): Declare as static.
8757 (init_cgraph): New.
8758 * toplev.c (cgraph_dump_file): Do not declare.
8759 (compile_file): Call init_cgraph.
8760 * tree-dump.c (dump_files): Add IPA dump file, remove
8761 XML dump of call graph.
8762 (get_dump_file_name): Support IPA dump file naming scheme.
8763 * tree.h (enum tree_dump_index): Add IPA dump file, remove
8764 XML dump of call graph.
8765 * doc/invoke.texi (Debugging Options): Document the new options.
8766
8767 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
8768
8769 * doc/extend.texi: Document the FR-V built-in functions.
8770
8771 2004-09-09 James E Wilson <wilson@specifixinc.com>
8772
8773 * doc/sourcebuild.texi: Delete libbanshee reference.
8774
8775 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
8776
8777 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
8778
8779 2004-09-09 James E Wilson <wilson@specifixinc.com>
8780
8781 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
8782 before calling vector_types_convertible_p.
8783 (digest_init): Check that inside_init has VECTOR_TYPE before calling
8784 vector_types_convertible_p. Don't give another error if
8785 convert_for_assignment returns error_mark_node.
8786
8787 2004-09-09 Roger Sayle <roger@eyesopen.com>
8788
8789 PR middle-end/17055
8790 * fold-const.c (build_zero_vector): New function to construct a
8791 vector (either floating point or integer) of zeros.
8792 (fold_convert): Internally, enable conversions of integer zero
8793 to arbitrary vector types, using the new build_zero_vector.
8794
8795 2004-09-09 Roger Sayle <roger@eyesopen.com>
8796
8797 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
8798 expand a left shift by an immediate constant as either an ashl or
8799 a sequence of additions.
8800 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
8801 instead of calling gen_ashlsi3 with a constant directly.
8802
8803 2004-09-09 Roger Sayle <roger@eyesopen.com>
8804
8805 * config/i386/i386.c (ix86_split_long_move): When optimizing for
8806 size, and the low and high parts of a DImode constant are equal,
8807 copy one register to another instead of loading the same immediate
8808 value twice.
8809
8810 2004-09-09 Richard Henderson <rth@redhat.com>
8811
8812 PR middle-end/17367
8813 * function.c (assign_parm_setup_block): Only put PARALLELs into
8814 a register if use_register_for_decl.
8815
8816 2004-09-09 Eric Christopher <echristo@redhat.com>
8817
8818 * ra-colorize.c (reset_lists): Move variable declaration inside
8819 ENABLE_CHECKING to avoid unused variable warnings when
8820 not --enable-checking.
8821 (check_colors): Ditto.
8822
8823 2004-09-09 Mike Stump <mrs@apple.com>
8824
8825 * version.c (version_string): Bump to 4.0.0.
8826 * doc/include/gcc-common.texi (version-GCC): Likewise.
8827
8828 2004-09-10 Jakub Jelinek <jakub@redhat.com>
8829
8830 * doc/extend.texi (nothrow attribute): The attribute is not
8831 implemented in 3.2 and earlier.
8832
8833 2004-09-09 Steve Ellcey <sje@cup.hp.com>
8834
8835 * genrecog.c (compute_predicate_codes): Use op0_codes
8836 instead of codes.
8837
8838 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
8839
8840 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
8841 implementation changes.
8842
8843 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
8844
8845 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
8846 a PARALLEL instead of a SET due to added clobbers.
8847
8848 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
8849
8850 * reload.c (find_reloads_address): Pass correct operand to
8851 maybe_memory_address_p.
8852
8853 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
8854
8855 * Makefile.in: Remove libbanshee, tree-alias-*.
8856 Remove tree-alias-common.h dependencies.
8857 * common.opt: Remove -ftree-points-to.
8858 * configure.ac: Remove libbanshee.
8859 * flags.h: Remove pta_type, flag_tree_points_to.
8860 * gengtype.c (open_base_files): Remove tree-alias-type.h.
8861 * opts.c (OPT_ftree_points_to): Remove.
8862 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
8863 * tree-dfa.c: Remove tree-alias-common.h
8864 * tree-into-ssa.c: Ditto.
8865 * tree-outof-ssa.c: Ditto.
8866 * tree-ssa-copyrename.c: Ditto.
8867 * tree-ssa-live.c: Ditto.
8868 * tree-optimize.c: Ditto.
8869 * tree-ssa.c: Ditto.
8870 Remove pass_build_pta, pass_del_pta.
8871 * tree-pass.h: Ditto.
8872 * tree-ssa-alias.c: Remove tree-alias-common.h.
8873 (struct alias_stats_d): Remove pta_queries, pta_resolved.
8874 (pass_may_alias): Remove PROP_pta requirement.
8875 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
8876 (get_tmt_for): Ditto.
8877 (dump_alias_stats): Ditto.
8878 * doc/passes.texi: Remove blurb about points-to analysis.
8879 * fortran/Make-lang.in: Remove tree-alias-*.o.
8880
8881 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
8882
8883 * genattrtab.c (write_insn_cases): New function, split out from
8884 write_attr_case. Correctly handle define_peepholes when printing
8885 the instruction name.
8886 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
8887
8888 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
8889
8890 PR target/17377
8891 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
8892 * config/cris/cris.c (cris_return_address_on_stack): New function.
8893 * config/cris/cris.md ("return"): For location of return address,
8894 also check cris_return_address_on_stack.
8895
8896 2004-09-09 Diego Novillo <dnovillo@redhat.com>
8897
8898 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
8899 calling phi_ssa_name_p.
8900
8901 2004-09-09 Richard Henderson <rth@redhat.com>
8902
8903 PR c/17322
8904 * c-typeck.c (valid_compound_expr_initializer): Use only
8905 initializer_constant_valid_p, and not TREE_CONSTANT.
8906 (digest_init): Likewise.
8907 (output_init_element): Likewise.
8908
8909 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8910
8911 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
8912 live_out_1, prune_hardregs_for_mode, init_one_web_common,
8913 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
8914 record_conflict, compare_and_free_webs, init_webs_defs_uses,
8915 parts_to_webs_1, parts_to_webs, reset_conflicts,
8916 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
8917 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
8918 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
8919 put_move, remove_move, combine, select_spill, colorize_one_web,
8920 try_recolor_web, insert_coalesced_conflicts, check_colors,
8921 break_precolored_alias, restore_conflicts_from_coalesce,
8922 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
8923 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
8924 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
8925 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
8926 check_df): Likewise.
8927 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
8928 real_arithmetic, real_compare, real_exponent, real_ldexp,
8929 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
8930 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
8931 real_digit, real_nan, real_maxval, round_for_format, real_convert,
8932 real_to_target, real_from_target, real_hash, encode_ieee_single,
8933 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
8934 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
8935 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
8936 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
8937 extract_insn, peep2_next_insn, peep2_reg_dead_p,
8938 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
8939 if_test_bypass_p): Likewise.
8940 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
8941 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
8942 emit_swap_insn, swap_to_top, move_for_stack_reg,
8943 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
8944 compensate_edge, convert_regs_1): Likewise.
8945 * regclass.c (init_reg_sets, init_reg_sets_1,
8946 memory_move_secondary_cost): Likewise.
8947 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
8948 Likewise.
8949 * reload.c (push_secondary_reload, find_valid_class, push_reload,
8950 operands_match_p, decompose, immune_p, find_reloads,
8951 find_reloads_toplev, find_reloads_address_1, subst_reloads,
8952 copy_replacements, refers_to_regno_for_reload_p,
8953 reg_overlap_mentioned_for_reload_p): Likewise.
8954 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
8955 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
8956 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
8957 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
8958 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
8959 do_output_reload, fixup_abnormal_edges): Likewise.
8960 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
8961 fill_slots_from_thread, relax_delay_slots): Likewise.
8962 * resource.c (mark_referenced_resources, mark_set_resources):
8963 Likewise.
8964 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
8965 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
8966 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
8967 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
8968 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
8969 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
8970 * rtlhooks.c (gen_lowpart_general): Likewise.
8971 * sbitmap.c (sbitmap_difference): Likewise.
8972 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
8973 sched_analyze, add_forward_dependence): Likewise.
8974 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
8975 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
8976 schedule_insns): Likewise.
8977 * sched-vis.c (print_pattern): Likewise.
8978 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
8979 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
8980 simplify_const_relational_operation, simplify_ternary_operation,
8981 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
8982 Likewise.
8983 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
8984 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
8985 resolve_operand_name_1, expand_return, expand_decl,
8986 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
8987 * stor-layout.c (put_pending_size, smallest_mode_for_size,
8988 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
8989 set_sizetype, get_mode_bounds): Likewise.
8990
8991 2004-09-09 Zack Weinberg <zack@codesourcery.com>
8992
8993 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
8994 * config/arm/pecoff.h, config/i386/beos-elf.h
8995 * config/i386/cygming.h, config/i386/i386-interix.h:
8996 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
8997 comment cloned from manual.
8998 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
8999
9000 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
9001
9002 * builtins.c (build_va_arg_indirect_ref): New function.
9003 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
9004 build_fold_indirect_ref.
9005 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
9006 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
9007 * tree.h: Declare new function.
9008
9009 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9010
9011 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
9012 dumping for development builds.
9013 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
9014 development builds only.
9015 * genattrtab.c (write_eligible_delay): Fix typo in previous
9016 commit.
9017 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
9018 gcc_assert.
9019
9020 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9021
9022 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
9023 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
9024 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
9025 hoist_code, extract_mentioned_regs_helper, compute_store_table,
9026 insert_store): Use gcc_assert and gcc_unreachable.
9027 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
9028 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
9029 ggc_record_overhead): Likewise.
9030 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
9031 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
9032 ggc_pop_context, clear_marks, validate_free_objects,
9033 ggc_pch_read): Likewise.
9034 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
9035 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
9036 ggc_push_context, check_cookies, ggc_collect,
9037 ggc_print_statistics): Likewise.
9038 * gimple-low.c (lower_function_body, lower_stmt,
9039 lower_bind_expr): Likewise.
9040 * gimplify.c (gimple_tree_eq, push_gimplify_context,
9041 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
9042 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
9043 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
9044 gimplify_case_label_expr, gimplify_exit_block_expr,
9045 canonicalize_component_ref, gimplify_compound_lval,
9046 gimplify_self_mod_expr, gimplify_call_expr,
9047 gimplify_init_ctor_eval, gimplify_init_constructor,
9048 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
9049 gimplify_expr, check_pointer_types_r,
9050 force_gimple_operand): Likewise.
9051 * global.c (global_alloc, build_insn_chain): Likewise.
9052 * graph.c (clean_graph_dump_file,
9053 finish_graph_dump_file): Likewise.
9054 gcov-io.c (gcov_open): Use GCOV_CHECK.
9055
9056 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
9057
9058 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
9059
9060 2004-09-09 Jan Hubicka <jh@suse.cz>
9061
9062 middle-end/17128
9063 * tree-inline.c (expand_call_inline): Make overactive sanity check
9064 happy.
9065
9066 2004-09-09 Jan Hubicka <jh@suse.cz>
9067
9068 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
9069 VIEW_CONVERT_EXPR.
9070
9071 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9072
9073 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
9074 (gengtype.o): Depend on errors.h.
9075 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
9076 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
9077 attr_alt_subset_p, attr_alt_subset_of_compl_p,
9078 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
9079 write_test_expr, write_attr_value, write_eligible_delay,
9080 make_internal_attr, make_numeric_value): Likewise.
9081 * genautomata.c (regexp_name, get_str_vect,
9082 gen_presence_absence_set, automaton_decl_hash,
9083 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
9084 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
9085 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
9086 test_unit_reserv, it_is_empty_reserv_sets,
9087 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
9088 reserv_sets_and, output_cycle_reservs, get_free_state,
9089 intersected_state_reservs_p, states_union, remove_arc,
9090 copy_insn_regexp, transform_1, transform_2, transform_3,
9091 regexp_transform_func, store_alt_unit_usage,
9092 check_regexp_units_distribution, process_seq_for_forming_states,
9093 process_alts_for_forming_states, make_automaton,
9094 form_arcs_marked_by_insn, create_composed_state,
9095 set_out_arc_insns_equiv_num, partition_equiv_class,
9096 process_insn_equiv_class, set_insn_equiv_classes,
9097 units_to_automata_heuristic_distr, form_regexp,
9098 longest_path_length, output_dfa_max_issue_rate, add_vect,
9099 out_state_arcs_num, add_vect_el, output_trans_table,
9100 output_state_alts_table, output_dead_lock_vect,
9101 output_max_insn_queue_index_def,
9102 output_min_insn_conflict_delay_func,
9103 output_internal_insn_latency_func, output_print_reservation_func,
9104 output_cpu_unit_reservation_p, output_state_arcs,
9105 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
9106 make_default_insn_latency_attr,
9107 form_important_insn_automata_lists): Likewise.
9108 * genemit.c (gen_exp, output_add_clobbers,
9109 output_added_clobbers_hard_reg_p): Likewise.
9110 * genextract.c (print_path, main): Likewise.
9111 * genflags.c (gen_macro): Likewise.
9112 * gengenrtl.c: Include errors.h
9113 (type_from_format, accessor_from_format): Likewise.
9114 * gengtype.c (get_file_basename, output_mangled_typename,
9115 walk_type, write_types_process_field,
9116 write_types_local_process_field): Likewise.
9117 * genmodes.c (complete_mode): Likewise.
9118 * genopinit.c (gen_insn): Likewise.
9119 * genoutput.c (output_insn_data, check_constraint_len,
9120 constraint_len): Likewise.
9121 * genpreds.c (add_mode_tests):Likewise.
9122 * gen-protos.c (add_hash): Likewise.
9123 * genrecog.c (find_operand, find_matching_operand,
9124 validate_pattern, add_to_sequence, maybe_both_true,
9125 nodes_identical_1, merge_trees, write_switch, write_cond,
9126 write_action, is_unconditional, make_insn_sequence,
9127 debug_decision_2): Likewise.
9128 * gensupport.c (is_predicable, collect_insn_data,
9129 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
9130
9131 2004-09-09 Jan Hubicka <jh@suse.cz>
9132
9133 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
9134 * cfgbuild.c (compute_outgoing_frequencies): When probability is
9135 missing, guess it.
9136 (find_many_sub_basic_blocks): Do update profile only when it is
9137 present.
9138 * predict.c (set_even_probabilities): Break out from ...
9139 (combine_predictions_for_insn): ... here; deal with
9140 !can_predict_insn_p insns.
9141 (combine_predictions_for_bb): Use set_even_probabilities.
9142 (bb_estimate_probability_locally): Break out from ....
9143 (estimate_probability): ... here.
9144 (guess_outgoing_edge_probabilities): New entry point.
9145
9146 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
9147
9148 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
9149 handle_braces, process_brace_body, main, used_arg,
9150 set_multilib_dir, print_multilib_info): Use fatal, not abort.
9151
9152 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
9153
9154 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
9155 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
9156 Morgan's theorem in last checkin.
9157
9158 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
9159 Nathan Sidwell <nathan@codesourcery.com>
9160
9161 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
9162 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
9163 * timevar.c (timevar_push, timevar_pop, timevar_start,
9164 timevar_stop): Likewise.
9165 * toplev.c (default_pch_valid_p): Likewise.
9166 * tracer.c (tail_duplicate): Likewise.
9167 * tree-alias-common.c (get_alias_var_decl,
9168 get_values_from_constructor, create_alias_var, delete_alias_vars,
9169 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
9170 Likewise.
9171 * tree.c (tree_size, make_node_stat, copy_node_stat,
9172 build_int_cst_wide, integer_all_onesp, list_length, chainon,
9173 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
9174 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
9175 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
9176 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
9177 build_method_type_directly, decl_type_context, get_callee_fndecl,
9178 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
9179 tree_fold_gcd): Likewise.
9180 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
9181 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
9182 cleanup_control_expr_graph, find_taken_edge,
9183 find_taken_edge_switch_expr, phi_alternatives_equal,
9184 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
9185 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
9186 tree_split_edge, tree_verify_flow_info, thread_jumps,
9187 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
9188 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
9189 chrec_fold_multiply_poly_poly): Likewise.
9190 * tree-complex.c (extract_component, expand_complex_division,
9191 expand_complex_comparison, expand_complex_operations_1,
9192 build_replicated_const, expand_vector_operations_1): Likewise.
9193 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
9194 build_classic_dir_vector): Likewise.
9195 * tree-dfa.c (compute_immediate_uses_for_phi,
9196 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
9197 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
9198 * tree-dump.c (dequeue_and_dump): Likewise.
9199 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
9200 record_in_finally_tree, replace_goto_queue_1,
9201 maybe_record_in_goto_queue, verify_norecord_switch_expr,
9202 do_return_redirection): Likewise.
9203 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
9204 add_to_dst_predicate_list, find_phi_replacement_condition,
9205 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
9206 Likewise.
9207 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
9208 initialize_inlined_parameters, declare_return_variable,
9209 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
9210 optimize_inline_calls, copy_tree_r): Likewise.
9211 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
9212 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
9213 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
9214 tsi_split_statement_list_after, tsi_split_statement_list_before):
9215 Likewise.
9216 * tree-mudflap.c (mf_varname_tree): Likewise.
9217 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
9218 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
9219 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9220 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
9221 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
9222 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
9223 Likewise.
9224 * tree-phinodes.c (resize_phi_node, add_phi_arg,
9225 remove_all_phi_nodes_for): Likewise.
9226 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
9227 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
9228 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
9229 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
9230 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
9231 generate_one_element_ref, generate_element_copy,
9232 generate_element_zero, scalarize_copy, scalarize_init,
9233 scalarize_ldst): Likewise.
9234 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
9235 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
9236 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
9237 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
9238 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
9239 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
9240 widen_bitfield, ccp_fold_builtin): Likewise.
9241 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
9242 replace_exp_1, propagate_tree_value): Likewise.
9243 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9244 * tree-ssa-dce.c (set_control_dependence_map_bit,
9245 find_control_dependence, find_pdom, mark_operand_necessary,
9246 mark_stmt_if_obviously_necessary,
9247 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
9248 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
9249 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
9250 eliminate_redundant_computations, avail_expr_eq): Likewise.
9251 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
9252 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
9253 duplicate_blocks): Likewise.
9254 * tree-ssa-loop-im.c (for_each_index, set_level,
9255 is_call_clobbered_ref): Likewise.
9256 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
9257 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
9258 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
9259 peel_address, ptr_difference_cost, may_replace_final_value,
9260 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
9261 rewrite_use, rewrite_uses): Likewise.
9262 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
9263 check_loop_closed_ssa_use): Likewise.
9264 * tree-ssanames.c (make_ssa_name): Likewise.
9265 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
9266 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
9267 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
9268 get_indirect_ref_operands, add_stmt_operand): Likewise.
9269 * tree-ssa-pre.c (value_exists_in_set_bitmap,
9270 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
9271 phi_translate, valid_in_set, compute_antic,
9272 find_or_generate_expression, create_expression_by_pieces, insert_aux,
9273 create_value_expr_from, eliminate): Likewise.
9274 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
9275 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
9276 Likewise.
9277 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
9278 eliminate_tail_call): Likewise.
9279 * tree-vectorizer.c (vect_create_index_for_array_ref,
9280 vect_align_data_ref, vect_create_data_ref,
9281 vect_create_destination_var, vect_get_vec_def_for_operand,
9282 vect_finish_stmt_generation, vect_transform_stmt,
9283 vect_transform_loop_bound, vect_transform_loop,
9284 vect_analyze_operations): Likewise.
9285 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
9286 Likewise.
9287 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
9288 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
9289 bsi_after_labels, bsi_last): Likewise.
9290 * tree-ssa-live.c (var_union, change_partition_var,
9291 create_ssa_var_map, calculate_live_on_entry, root_var_init,
9292 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
9293 Likewise.
9294 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
9295 tpa_find_tree): Likewise.
9296 (register_ssa_partition_check): Declare.
9297 (register_ssa_partition): use it.
9298 * tree-ssa-live.c: Include errors.h.
9299 (register_ssa_partition_check): New.
9300 * tree-ssa-operands.c: Include errors.h.
9301 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
9302
9303 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
9304 Catherine Moore <clm@redhat.com>
9305
9306 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
9307 (FRV_CPU_FR405): New processor enums.
9308 (frv_issue_rate, frv_acc_group): Declare.
9309 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
9310 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
9311 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
9312 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
9313 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
9314 handled by CPP_SPEC.
9315 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
9316 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
9317 (ACC_MASK): New macro.
9318 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
9319 (TARGET_MEDIA_FR450): New macro.
9320 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
9321 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
9322 (LABEL_ALIGN_AFTER_BARRIER): Define.
9323 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
9324 (IACC_FIRST, IACC_LAST): New pair of SPRs.
9325 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
9326 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
9327 (REGISTER_NAMES): Add entries for new registers.
9328 (REG_CLASS_CONTENTS): Update for new register ranges.
9329 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
9330 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
9331 (PACKING_FLAG_USED_P): Delete.
9332 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
9333 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
9334 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
9335 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
9336 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
9337 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
9338 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
9339 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
9340 (CPU_UNITS_QUERY): Define to 1.
9341 * config/frv/frv.c: Include gt-frv.h
9342 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
9343 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
9344 (frv_insn_group): New enumeration.
9345 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
9346 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
9347 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
9348 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
9349 gap left by REGSTATE_LIVE.
9350 (regstate_t): New typedef.
9351 (TARGET_MACHINE_DEPENDENT_REORG): Define.
9352 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
9353 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
9354 Initialize frv_unit_codes[] and frv_type_to_unit[].
9355 (frv_conditional_register_usage): Remove redundant fixing of
9356 accumulator registers.
9357 (frv_insn_packing_flag): Update specification.
9358 (frv_function_prologue): Don't set frv_insn_packing_flag here.
9359 Zero out frv_nops[].
9360 (frv_expand_epilogue): Remove comments about the no-longer-present
9361 SIBCALL_P argument.
9362 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
9363 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
9364 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
9365 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
9366 packing is disabled and if INSN can only issue to M1.
9367 (call_operand): Check TARGET_LONG_CALLS.
9368 (acc_operand, even_acc_operand, quad_acc_operand)
9369 (accg_operand): Simplify. Don't accept pseudo registers.
9370 (output_move_single): Handle SPR<-zero moves.
9371 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
9372 (frv_registers_update, frv_registers_used_p): Delete.
9373 (frv_registers_set_p): Delete.
9374 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
9375 (frv_issues_to_branch_unit_p): New function.
9376 (frv_packet): New structure.
9377 (frv_cond_flags, frv_regstate_conflict_p): New functions.
9378 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
9379 (frv_registers_update_1, frv_registers_update): New functions.
9380 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
9381 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
9382 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
9383 (frv_sort_insn_group, frv_reorder_packet): New functions.
9384 (frv_pack_insns): Use frv_reorder_packet.
9385 (frv_packet_address): New variable.
9386 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
9387 (frv_register_nop, frv_reorg): New functions.
9388 (bdesc_1arg): Add __SCUTSS.
9389 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
9390 __SUBSS, __SLASS and __SCAN.
9391 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
9392 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
9393 (frv_init_builtins): Register the above builtins.
9394 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
9395 registers. Turn the referenced accumulators into global registers.
9396 (frv_read_iacc_argument): New function.
9397 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
9398 (frv_split_iacc_move): New function.
9399 (frv_expand_builtin): Handle the new builtins.
9400 * config/frv/frv.md: Replace old schedulers with new order-independent
9401 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
9402 packing algorithm.
9403 (cpu): Add fr550, fr450 and fr405.
9404 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
9405 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
9406 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
9407 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
9408 (fnop, mnop): New patterns.
9409 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
9410 New constants.
9411 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
9412 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
9413 registers.
9414 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
9415 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
9416 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
9417 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
9418 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
9419 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
9420 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
9421 (frv_prefetch0, frv_prefetch): New patterns.
9422 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
9423 -mcpu=simple. Add -mcpu=fr550.
9424 (MULTILIB_DIRNAMES): Update accordingly.
9425 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
9426 -mcpu=fr450.
9427 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
9428 -mlong-calls and -malign-labels options for FR-V.
9429
9430 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
9431
9432 PR c/8420
9433 * c-tree.h (struct c_declspecs): New.
9434 (struct c_declarator, struct c_type_name, struct c_parm): Update
9435 element types.
9436 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
9437 start_function, start_decl, build_c_parm,
9438 make_pointer_declarator): Update prototypes.
9439 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
9440 declspecs_add_scspec, declspecs_add_attrs): New.
9441 (split_specs_attrs): Remove.
9442 * c-parse.in (%union): Add dsptype.
9443 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
9444 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
9445 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
9446 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
9447 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
9448 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
9449 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
9450 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
9451 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
9452 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
9453 maybe_type_quals_attrs): Change to dsptype.
9454 (struct c_declspec_stack): New.
9455 (current_declspecs, declspec_stack): Change type.
9456 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
9457 structures.
9458 (extdefs): Likewise.
9459 (setspecs): Likewise.
9460 (fndef): Use current_declspecs for empty declspecs list.
9461 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
9462 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
9463 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
9464 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
9465 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
9466 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
9467 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
9468 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
9469 structures and helper functions. Update comments.
9470 (typespec_nonattr): Correct comment.
9471 (maybe_type_quals_attrs, typename): Update to new structures.
9472 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
9473 shadow_tag, shadow_tag_warned, start_function, start_decl,
9474 build_c_parm, make_pointer_declarator,
9475 set_array_declarator_inner, groktypename): Update to new
9476 structures.
9477 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
9478 declspecs_add_scspec, declspecs_add_attrs): New.
9479 (split_specs_attrs): Remove.
9480 (shadow_tag_warned): Make warning for useless type names a
9481 pedwarn. Give hard error for long, short, signed, unsigned or
9482 _Complex used with struct, union or enum in empty declaration.
9483 Make found_tag a bool.
9484 (grokdeclarator): Remove checks now done at parse time.
9485
9486 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
9487
9488 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
9489 c_declarator, struct c_type_name, struct c_parm): New.
9490 (build_array_declarator, set_array_declarator_inner,
9491 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
9492 start_function, start_decl, build_c_parm, build_attrs_declarator,
9493 build_function_declarator, make_pointer_declarator, c_cast_expr,
9494 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
9495 (build_id_declarator): New.
9496 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
9497 structures.
9498 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
9499 ARG_INFO_OTHERS): Remove.
9500 (build_id_declarator): New.
9501 (build_array_declarator, set_array_declarator_inner, groktypename,
9502 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
9503 grokfield, start_function, store_parm_decls_newstyle,
9504 store_parm_decls_oldstyle, store_parm_decls,
9505 build_c_parm, build_attrs_declarator, build_function_declarator,
9506 make_pointer_declarator, grokdeclarator): Update to new
9507 structures.
9508 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
9509 parmtype.
9510 (declarator, notype_declarator, after_type_declarator,
9511 parm_declarator, parm_declarator_starttypename,
9512 parm_declarator_nostarttypename, array_declarator, typename,
9513 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
9514 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
9515 parmlist_1, parmlist_2, parmlist_or_identifiers,
9516 parmlist_or_identifiers_1): Use these types.
9517 (primary, after_type_declarator, parm_declarator_starttypename,
9518 notype_declarator, component_decl, component_declarator,
9519 component_notype_declarator, typename, absdcl,
9520 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
9521 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
9522
9523 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
9524
9525 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
9526 in_typeof, record_maybe_used_decl, pop_maybe_used,
9527 c_expr_sizeof_expr, c_expr_sizeof_type): New.
9528 * c-decl.c (parser_obstack): New.
9529 (c_init_decl_processing): Initialize parser_obstack.
9530 (c_write_global_declarations_1): Check for used but undefined
9531 static functions.
9532 * c-parse.in (%union): Add otype.
9533 (save_obstack_position): New.
9534 (extdefs): Use it.
9535 (unary_expr): Update in_sizeof and in_alignof. Use
9536 c_expr_sizeof_expr and c_expr_sizeof_type.
9537 (sizeof): Update in_sizeof.
9538 (alignof): Update in_alignof.
9539 (typeof): Update in_typeof.
9540 (typespec_nonreserved_nonattr): Call pop_maybe_used.
9541 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
9542 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
9543 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
9544 (build_external_ref): Set C_DECL_USED or call
9545 record_maybe_used_decl if appropriate.
9546 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
9547
9548 2004-09-08 Eric Christopher <echristo@redhat.com>
9549
9550 * builtins.c: Fix prototype for fold_builtin_atan.
9551
9552 2004-09-08 Eric Christopher <echristo@redhat.com>
9553
9554 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
9555 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
9556 fold_builtin_atan): New functions. Migrate function bodies...
9557 (fold_builtin_1): ... from here.
9558
9559 2004-09-09 Alan Modra <amodra@bigpond.net.au>
9560
9561 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
9562 save_size.
9563
9564 2004-09-08 David Edelsohn <edelsohn@gnu.org>
9565
9566 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
9567 * config/rs6000/power5.md (power5-lmul): Same.
9568
9569 2004-09-08 Richard Henderson <rth@redhat.com>
9570
9571 PR rtl-opt/17186
9572 * function.c (expand_function_end): Have fall-off-the-end
9573 return path jump around return register setup.
9574
9575 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
9576
9577 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
9578 (output_return): Do not test for the presence of the 'unimp' insn.
9579 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
9580 as predicates instead of custom ones. Return raw strings when
9581 possible.
9582 (output_sibcall): Likewise. Concatenate strings.
9583 (output_ubranch): Remove kludge for TurboSPARC.
9584 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
9585 (output_v9branch): Likewise.
9586 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
9587 <#>: Set sparc_indent_opcode if the delay slot is filled.
9588 <(>: Likewise.
9589 <)>: New operand to emit the displacement from the saved PC on return.
9590 <@>: Remove.
9591 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
9592 (ASM_OUTPUT_OPCODE): New macro.
9593 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
9594 * config/sparc/sparc.md (normal_branch, inverted_branch,
9595 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9596 inverted_fpe_branch): Adjust call to output_cbranch.
9597 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
9598 call to output_v9branch.
9599 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
9600 (output_v9branch): Likewise.
9601
9602 2004-09-08 Devang Patel <dpatel@apple.com>
9603
9604 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
9605 -segs_read_only_addr and -segs_read_write_addr.
9606 (WORD_SWITCH_TAKES_ARG): Same.
9607 (LINK_SPEC): Same.
9608 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
9609 -segs_read_write_addr.
9610
9611 2004-09-08 Richard Henderson <rth@redhat.com>
9612
9613 * function.c (reference_callee_copied): New.
9614 (assign_parm_setup_reg): Use it.
9615 * calls.c (initialize_argument_information): Likewise.
9616 (emit_library_call_value_1): Likewise.
9617 * function.h (reference_callee_copied): Declare.
9618
9619 * target.h (struct gcc_target): Add callee_copies.
9620 * target-def.h (TARGET_CALLEE_COPIES): New.
9621 (TARGET_PASS_BY_REFERENCE): Update default.
9622 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9623 * targhooks.c (hook_callee_copies_named): New.
9624 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
9625 hook_pass_by_reference_false.
9626 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
9627 * targhooks.h: Update decls.
9628 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
9629 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9630 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
9631 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
9632 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9633 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
9634 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9635 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
9636 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9637 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
9638 (mips_callee_copies): New.
9639 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9640 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
9641 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9642 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
9643 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9644 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
9645 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9646 * config/sh/sh.c (sh_callee_copies): New.
9647 (TARGET_CALLEE_COPIES): New.
9648 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9649 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
9650 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
9651 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
9652 for FUNCTION_ARG_CALLEE_COPIES.
9653 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
9654
9655 2004-09-08 Devang Patel <dpatel@apple.com>
9656
9657 * tree-if-conv.c (find_phi_replacement_condition): Return true
9658 edge block.
9659 (replace_phi_with_cond_modify_expr): Select conditional expr args
9660 based on true edge basic block.
9661
9662 2004-09-08 Jan Hubicka <jh@suse.cz>
9663
9664 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
9665 variables being alias set.
9666
9667 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
9668
9669 * final.c (shorten_branches, final, get_insn_template,
9670 output_alternate_entry_point, final_scan_insn, alter_subreg,
9671 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
9672 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
9673 * fix-header.c (lookup_std_proto): Likewise.
9674 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
9675 verify_local_live_at_start, update_life_info, mark_reg,
9676 calculate_global_regs_live, allocate_reg_life_data,
9677 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
9678 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
9679 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
9680 * fold-const.c (force_fit_type, div_and_round_double,
9681 may_negate_without_overflow_p, int_const_binop, const_binop,
9682 size_binop, size_diffop, fold_convert_const, fold_convert,
9683 invert_tree_comparison, swap_tree_comparison,
9684 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
9685 range_binop, make_range, fold_cond_expr_with_comparison,
9686 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
9687 fold_abs_const, fold_not_const, fold_relational_const, round_up,
9688 round_down): Likewise.
9689 * function.c (find_function_data, assign_stack_temp_for_type,
9690 instantiate_virtual_regs_lossage, aggregate_value_p,
9691 assign_parm_find_entry_rtl, assign_parm_setup_block,
9692 expand_function_start, expand_function_end, keep_stack_depressed,
9693 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
9694
9695 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
9696
9697 * Makefile.in (tree-loop-linear.o): Added.
9698 (OBJS-common): Add tree-loop-linear.o
9699 * common.opt: New flag, ftree-loop-linear.
9700 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
9701 * tree-flow.h: Add prototype for linear_transform_loops.
9702 * tree-optimize.c: Add linear transform after vectorization.
9703 * tree-pass.h: Add struct pass_linear_transform.
9704 * tree-ssa-loop.c: Add pass_linear_transform.
9705 * tree-loop-linear.c: New file.
9706 * lambda-code.c: gcc_assertify.
9707 (gcc_loop_to_lambda_loop): Handle all exit tests.
9708 Handle case where we have (invariant >= induction var).
9709 (find_induction_var_from_exit_cond): Ditto.
9710
9711 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
9712
9713 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
9714 memory tag is call clobbered, so are its aliases.
9715 (group_aliases): When two memory tags being grouped, if one is
9716 call clobbered, so are the other and its aliases.
9717 (add_may_alias): Remove call-clobbering stuff.
9718 (replace_may_alias): Likewise.
9719 (merge_pointed_to_info): Merge pt_global_mem
9720
9721 2004-09-08 Jan Hubicka <jh@suse.cz>
9722
9723 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
9724 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
9725 (cgraph_expand_function): Remove stale cgraph edges of currently
9726 compiled function; fix non-unit-at-a-time code copying function
9727 node for later reuse.
9728
9729 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
9730
9731 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
9732 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
9733 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
9734 (vec_gc_free, vec_heap_free): New.
9735 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
9736 (DEF_VEC_P): Add allocator argument. Adjust.
9737 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
9738 (DEF_VEC_O): Add allocator argument. Adjust.
9739 (VEC(free)): New.
9740
9741 * tree.h (tree): Define a GC'd vector.
9742 * lamba-code.c (lambda_loop): Likewise.
9743 * value-prof.h (histogram_value): Likewise.
9744
9745 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
9746
9747 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
9748 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
9749 gen_lowpart_common, gen_highpart, gen_highpart_mode,
9750 subreg_highpart_offset, operand_subword, operand_subword_force,
9751 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
9752 set_mem_alias_set, change_address_1, verify_rtx_sharing,
9753 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
9754 try_split, add_insn_after, add_insn_before, remove_insn,
9755 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
9756 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
9757 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
9758 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
9759 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
9760 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
9761 record_path_before_1, check_path_after_1, check_path_after): Likewise.
9762 * except.c (gen_eh_region, resolve_one_fixup_region,
9763 remove_unreachable_regions, convert_from_eh_region_ranges_1,
9764 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
9765 connect_post_landing_pads, sjlj_emit_function_exit,
9766 remove_exception_handler_label, remove_eh_handler,
9767 reachable_next_level, collect_one_action_chain,
9768 output_function_exception_table): Likewise.
9769 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
9770 optimize_save_area_alloca, allocate_dynamic_stack_space,
9771 probe_stack_range, hard_function_value): Likewise.
9772 * expmed.c (mode_for_extraction, store_bit_field,
9773 store_fixed_bit_field, extract_bit_field, expand_shift,
9774 expand_mult_const, expand_mult, choose_multiplier,
9775 expand_mult_highpart, expand_divmod, emit_store_flag,
9776 do_cmp_and_jump): Likewise.
9777 * expr.c (convert_move, convert_modes, move_by_pieces,
9778 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
9779 move_block_from_reg, gen_group_rtx, emit_group_load,
9780 emit_group_move, emit_group_store, use_reg, use_regs,
9781 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
9782 emit_move_insn, emit_move_insn_1, emit_push_insn,
9783 expand_assignment, store_expr, count_type_elements,
9784 store_constructor, store_field, safe_from_p, expand_var,
9785 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
9786
9787 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
9788
9789 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
9790 gcc_assert and gcc_unreachable.
9791 * ddg.c (create_ddg_dependence, add_deps_for_def,
9792 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
9793 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
9794 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
9795 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
9796 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
9797 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
9798 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
9799 dataflow_set_copy, hybrid_search, diagnostic.c,
9800 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
9801 * dojump.c (do_jump): Likewise.
9802 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
9803 compute_dom_fast_query, calculate_dominance_info,
9804 free_dominance_info, get_immediate_dominator,
9805 set_immediate_dominator, get_dominated_by,
9806 redirect_immediate_dominators, nearest_common_dominator,
9807 dominated_by_p, verify_dominators, recount_dominator,
9808 iterate_fix_dominators, add_to_dominance_info,
9809 delete_from_dominance_info): Likewise.
9810 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
9811 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
9812 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
9813 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
9814 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
9815 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
9816 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
9817 output_call_frame_info, output_loc_operands, build_cfa_loc,
9818 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
9819 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
9820 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
9821 splice_child_die, attr_checksum, same_dw_val_p,
9822 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
9823 unmark_dies, value_format, output_loc_list, output_die,
9824 output_pubnames, output_aranges, base_type_die, is_base_type,
9825 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
9826 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
9827 field_byte_offset, add_data_member_location_attribute,
9828 add_const_value_attribute, rtl_for_decl_location,
9829 add_location_or_const_value_attribute, add_byte_size_attribute,
9830 add_bit_offset_attribute, add_bit_size_attribute,
9831 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
9832 decl_start_label, gen_formal_parameter_die,
9833 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
9834 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
9835 force_decl_die, force_type_die, gen_decl_die,
9836 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
9837 dwarf2out_finish): Likewise.
9838
9839 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
9840
9841 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
9842 * builtins.c: Include tree-mudflap.h.
9843
9844 2004-09-08 Uros Bizjak <uros@kss-loka.si>
9845
9846 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
9847 force operand 0.0 into register in XFmode. Also do not force
9848 operand 0.0 into register if !TARGET_CMOVE.
9849 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
9850 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
9851 implement ftst x87 instruction.
9852 (*fp_jcc_7): New insn pattern. Change corresponding split
9853 pattern to handle "general_operand" instead of
9854 "nonimmediate_operand".
9855
9856 2004-09-08 Ben Elliston <bje@au.ibm.com>
9857
9858 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
9859
9860 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
9861
9862 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
9863 generated from standard va_arg expansion.
9864 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
9865 marked nodes.
9866 (mf_varname_tree, mf_file_function_line_tree): Add some support
9867 for column numbers if compiled with USE_MAPPED_LOCATION.
9868
9869 2004-09-07 Ziemowit Laski <zlaski@apple.com>
9870
9871 * c-decl.c (groktypename_in_parm_context): Remove function.
9872 * c-tree.h (groktypename_in_parm_context): Remove prototype.
9873
9874 2004-09-07 Ziemowit Laski <zlaski@apple.com>
9875
9876 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
9877 * c-parse.in: Include c-common.h instead of objc-act.h.
9878 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
9879 myparms, myparm): Remove %type declarations.
9880 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
9881 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
9882 declarations.
9883 (objc_inherit_code, objc_public_flag): Remove.
9884 (typespec_nonreserved_nonattr): Call
9885 objc_get_protocol_qualified_type() instead of get_static_reference()
9886 and get_protocol_reference().
9887 (stmt_nocomp): Call grokparm() on @catch parameter.
9888 (objcdef): Move semantic action to objc_finish_implementation().
9889 (classdef): Move semantic action to objc_start_class_interface(),
9890 objc_continue_interface(), objc_finish_interface(),
9891 objc_start_class_implementation(), objc_continue_implementation(),
9892 objc_start_category_interface() and
9893 objc_start_category_implementation().
9894 (protocoldef): Move semantic actions to objc_start_protocol() and
9895 objc_finish_interface().
9896 (ivar_decl_list): Remove nonterminal.
9897 (visibility_spec): Move semantic actions to objc_set_visibility().
9898 (ivar_decls): Remove assignment to $$.
9899 (ivar_decl): Rephrase in terms of component_decl; call
9900 objc_add_instance_variable().
9901 (ivars, ivar_declarator): Remove nonterminals.
9902 (opt_semi): New nonterminal.
9903 (methodtype): Remove semantic actions.
9904 (methoddef): Move semantic actions to objc_set_method_type(),
9905 objc_start_method_definition() and objc_finish_method_definition().
9906 (methodproto): Move semantic actions to objc_set_method_type() and
9907 objc_add_method_declaration().
9908 (methoddecl): Use objc_typename instead of typename; move semantic
9909 actions to objc_build_method_signature().
9910 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
9911 (optparmlist): Express in terms of optparms and optellipsis.
9912 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
9913 nonterminals.
9914 (keyworddecl): Use objc_typename instead of typename.
9915 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
9916 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
9917
9918 2004-09-08 Alan Modra <amodra@bigpond.net.au>
9919
9920 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
9921 (MD_FALLBACK_FRAME_STATE_FOR): Update.
9922 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
9923 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
9924 (MD_FROB_UPDATE_CONTEXT): Remove default.
9925 (uw_update_context_1): Instead #ifdef invocation.
9926 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
9927 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
9928 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
9929 (MD_UNWIND_SUPPORT): Undefine this instead.
9930 * config/i386/gnu.h: Likewise.
9931 * config/alpha/linux-unwind.h: New file, macro converted to
9932 function, extracted from..
9933 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
9934 (MD_UNWIND_SUPPORT): Define.
9935 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
9936 * config/i386/linux-unwind.h, config/i386/linux.h,
9937 config/i386/linux64.h: Likewise.
9938 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
9939 MD_HANDLE_UNWABI too.
9940 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
9941 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
9942 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
9943 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
9944 * config/sparc/linux-unwind.h, config/sparc/linux.h,
9945 config/sparc/linux64.h: Likewise.
9946 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
9947 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
9948 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
9949 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
9950 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
9951
9952 2004-09-07 Jan Hubicka <jh@suse.cz>
9953
9954 * cse.c (fold_rtx): Avoid building of
9955 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
9956
9957 * tree-ssa-pre.c (grand_bitmap_obstack): New.
9958 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
9959 (init_pre): Initialize obstack.
9960 (fini_pre): Free obstack.
9961
9962 2004-09-07 David Daney <ddaney@avtrex.com>
9963
9964 * config.gcc: Added support for --with-divide=[breaks|traps] for
9965 mips targets.
9966 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
9967 (TARGET_DIVIDE_TRAPS): New macro.
9968 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
9969 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
9970 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
9971 GENERATE_DIVIDE_TRAPS.
9972 (mips_output_division): Emit conditional trap if
9973 GENERATE_DIVIDE_TRAPS is set.
9974 * doc/install.texi: Document --with-divide.
9975 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
9976
9977 2004-09-07 Caroline Tice <ctice@apple.com>
9978
9979 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
9980 EDGE_CROSSING, to flags test case.
9981
9982 2004-09-07 Jan Hubicka <jh@suse.cz>
9983
9984 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
9985 class too.
9986
9987 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
9988
9989 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
9990 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
9991 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
9992 or gcc_unreachable.
9993 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
9994 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
9995 alloc_aux_for_edges, free_aux_for_edges): Likewise.
9996 * cfgcleanup.c (try_forward_edges,
9997 merge_blocks_move_predecessor_nojumps,
9998 merge_blocks_move_successor_nojumps): Likewise.
9999 * cfgexpand.c (expand_gimple_cond_expr,
10000 expand_gimple_tailcall): Likewise.
10001 * cfghooks.c (duplicate_block): Likewise.
10002 * cfglayout.c (record_effective_endpoints,
10003 insn_locators_initialize, change_scope, fixup_reorder_chain,
10004 verify_insn_chain, fixup_fallthru_exit_predecessor,
10005 duplicate_insn_chain, cfg_layout_finalize): Likewise.
10006 * cfgloopanal.c (check_irred): Likewise.
10007 * cfgloop.c (superloop_at_depth, flow_loops_free,
10008 flow_loop_entry_edges_find, flow_loops_find,
10009 flow_loop_outside_edge_p, get_loop_body,
10010 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
10011 get_loop_exit_edges, num_loop_branches, cancel_loop,
10012 verify_loop_structure): Likewise.
10013 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
10014 duplicate_loop_to_header_edge, create_preheader,
10015 create_loop_notes): Likewise.
10016 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
10017 edirect_branch_edge, force_nonfallthru_and_redirect,
10018 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
10019 commit_edge_insertions, commit_edge_insertions_watch_calls,
10020 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
10021 cfg_layout_redirect_edge_and_branch_force,
10022 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
10023 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
10024 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
10025 cgraph_varpool_node): Likewise.
10026 * cgraphunit.c (cgraph_finalize_function,
10027 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
10028 cgraph_expand_function, cgraph_remove_unreachable_nodes,
10029 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10030 cgraph_mark_inline, cgraph_expand_all_functions,
10031 cgraph_build_static_cdtor): Likewise.
10032 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
10033 simplify_logical, distribute_notes, insn_cuid): Likewise.
10034 * conflict.c (conflict_graph_add, print_conflict): Likewise.
10035 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
10036 coverage_checksum_string): Likewise.
10037 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
10038 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
10039 cse_cc_succs, cse_condition_code_reg): Likewise.
10040 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
10041 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
10042 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
10043 cselib_record_set): Likewise.
10044
10045 2004-09-07 Jan Hubicka <jh@suse.cz>
10046
10047 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
10048
10049 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10050
10051 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
10052 fold_convert.
10053 (fold_builtin_strpbrk): Likewise.
10054 * expr.c (array_ref_low_bound): Likewise.
10055 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
10056 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
10057 * tree-sra.c (generate_element_zero): Likewise.
10058 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
10059 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
10060 add_old_iv_candidates, add_iv_candidates): Likewise.
10061 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
10062
10063 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10064
10065 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
10066 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
10067 c_expand_expr, boolean_increment, nonnull_check_p,
10068 check_function_arguments_recurse, fold_offsetof_1): Likewise.
10069 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
10070 builtin_define_type_max): Likewise.
10071 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
10072 implicit_decl_warning, builtin_function, build_compound_literal,
10073 complete_array_type, grokdeclarator, get_parm_info,
10074 start_function, store_parm_decls_oldstyle,
10075 c_write_global_declarations): Likewise.
10076 * c-format.c (get_constant, decode_format_attr,
10077 maybe_read_dollar_number, get_flag_spec, check_format_arg,
10078 check_format_types, format_type_warning,
10079 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
10080 init_dynamic_diag_info, handle_format_attribute): Likewise.
10081 * c-gimplify.c (push_context, pop_context, finish_bc_block):
10082 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
10083 * c-objc-common.c (c_tree_printer): Likewise.
10084 * c-pch.c (pch_init): Likewise.
10085 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
10086 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
10087 * c-typeck.c (c_incomplete_type_error, composite_type,
10088 common_pointer_type, common_type, same_translation_unit_p,
10089 tagged_types_tu_compatible_p, finish_init, pop_init_level,
10090 set_designator, set_nonincremental_init_from_string,
10091 process_init_element, c_finish_if_stmt): Likewise.
10092 * caller-save.c (init_caller_save, save_call_clobbered_regs,
10093 insert_restore, insert_save, insert_one_insn): Likewise.
10094 * calls.c (emit_call_1, compute_argument_block_size,
10095 precompute_arguments, expand_call, emit_library_call_value_1,
10096 store_one_arg): Likewise.
10097
10098 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
10099
10100 * configure.ac (enable-checking): Add release option. Reorganize
10101 to avoid repetition.
10102 * configure: Rebuilt.
10103 * doc/install.texi (enable-checking): Amend documentation.
10104
10105 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
10106
10107 PR bootstrap/17313
10108 * Makefile.in (specs.ready): Depend on cc1$(exeext).
10109
10110 2004-09-06 James E Wilson <wilson@specifixinc.com>
10111
10112 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
10113 movdf_hardfloat_32bit): Split fG into two alternatives.
10114 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
10115
10116 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
10117
10118 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
10119
10120 * final.c (output_in_slot): Delete.
10121 (final_scan_insn): Revert 2004-09-03 change.
10122 (output_asm_insn): Likewise.
10123 * config/sparc/sparc.c (output_return): Likewise.
10124 (output_sibcall): Likewise.
10125
10126 2004-09-06 Jan Hubicka <jh@suse.cz>
10127
10128 * loop.c (loop_dump_aux): Do not print RTL when not available.
10129 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
10130 frontend specific type nodes.
10131 (produce_memory_decl_rtl): Break out from ...
10132 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
10133 (get_computation_at): Avoid random tree sharing.
10134 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
10135
10136 2004-09-06 Zack Weinberg <zack@codesourcery.com>
10137
10138 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
10139 unnecessary commands.
10140
10141 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
10142
10143 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
10144 (bitmap.o): Likewise.
10145
10146 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
10147
10148 Unify the management of RTL and tree-level dump files.
10149
10150 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
10151 Don't print function name to the dump file, the pass manager
10152 would do this for us. Add code from the top of
10153 rest_of_compilation, up to the initial RTL dump.
10154 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
10155 close the DFI_sibling dump file.
10156 (rest_of_compilation): Don't do that here. Remove code up to the
10157 initial RTL dump.
10158 (init_optimization_passes): Remove.
10159 (pass_rest_of_compilation): Change pass name to NULL.
10160 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
10161 Do not call init_optimization_passes.
10162 * toplev.h (init_optimization_passes): Remove.
10163
10164 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
10165 finish_graph_dump_file): Remove SUFFIX parameter.
10166 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
10167 finish_graph_dump_file): Likewise.
10168
10169 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
10170 * cfgexpand.c (pass_expand): Adjust.
10171 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
10172 * passes.c (pass_rest_of_compilation): Adjust.
10173 * predict.c (pass_profile): Adjust.
10174 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
10175 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
10176 pass_split_crit_edges, pass_warn_function_return): Adjust.
10177 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
10178 * tree-dfa.c (pass_referenced_vars): Adjust.
10179 * tree-eh.c (pass_lower_eh): Adjust.
10180 * tree-if-conv.c (pass_build_ssa): Adjust.
10181 * tree-into-ssa.c (pass_build_ssa): Adjust.
10182 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
10183 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
10184 * tree-nrv.c (pass_nrv): Adjust.
10185 * tree-optimize.c (pass_gimple, pass_all_optimizations,
10186 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
10187 pass_init_datastructures): Adjust.
10188 * tree-outof-ssa.c (pass_del_ssa): Adjust.
10189 * tree-profile.c (pass_tree_profile): Adjust.
10190 * tree-sra.c (pass_sra): Adjust.
10191 * tree-ssa-alias.c (pass_may_alias): Adjust.
10192 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
10193 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
10194 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
10195 * tree-ssa-dom.c (pass_dominator): Adjust.
10196 * tree-ssa-dse.c (pass_dse): Adjust.
10197 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
10198 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
10199 * tree-ssa-loop-ch.c (pass_ch): Adjust.
10200 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
10201 pass_loop_done, pass_complete_unroll, pass_iv_canon,
10202 pass_iv_optimize, pass_vectorize): Adjust.
10203 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
10204 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
10205 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
10206 pass_late_warn_uninnitialized): Adjust.
10207 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
10208
10209 * Makefile.in (tree-dump.o): Add new dependencies.
10210 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
10211 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
10212 Likewise.
10213 * toplev.c (dump_file_name): New.
10214 * tree-dump.c (dump_enable_all): Add LETTER parameter.
10215 (struct dump_file_info): Add NUM and LETTER fields.
10216 (dump_files): Adjust and add RTL dump files.
10217 (dump_register): Add NUM and LETTER fields.
10218 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
10219 (dump_begin): Use get_dump_file_name.
10220 (dump_switch_p_1): Adjust call to dump_enable_all.
10221 * tree-dump.h (dump_register): Adjust prototype.
10222 * tree-optimize.c (register_one_dump_file): Take dump file index.
10223 Support flags for RTL dumps.
10224 (register_dump_files): Fill in NUM field of struct dump_file_info.
10225 Track properties both when the gate is executed and when it is not.
10226 (execute_todo): Dump RTL. Add PROPERTIES parameter.
10227 (execute_one_pass): Pass properties to execute_todo. Handle VCG
10228 dumps of RTL.
10229 * tree-pass.h (dump_file_name): New.
10230 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
10231 New.
10232
10233 * Makefile.in (passes.o): Add new dependencies.
10234 * passes.c (struct dump_file_info, enum dump_file_index,
10235 dump_file_tbl, init_optimization_passes): Remove.
10236 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
10237 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
10238 dump_enabled_p.
10239 (finish_optimization_passes): Update finish_graph_dump_file loop.
10240 (enable_rtl_dump_file): Remove.
10241 * tree-dump.c (dump_files): Adjust and add RTL dump files.
10242 (enable_rtl_dump_file): Add here.
10243 * tree.h (enum tree_dump_index): Add RTL dump file indices.
10244 * doc/invoke.texi (Debugging options): Document new RTL debugging
10245 options. Update.
10246
10247 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
10248
10249 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
10250 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
10251 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
10252 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
10253 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
10254 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
10255 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
10256 vec.h: Fix comment formatting.
10257
10258 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
10259
10260 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
10261 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
10262 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
10263 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
10264 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
10265 tree-ssa-loop-niter.c, tree-ssa-operands.c,
10266 tree-ssa-operands.h, tree-ssa-propagate.c,
10267 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
10268 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
10269
10270 2004-09-05 Diego Novillo <dnovillo@redhat.com>
10271
10272 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
10273 vectorizer is enabled.
10274
10275 2004-09-05 Andreas Jaeger <aj@suse.de>
10276
10277 * tree-if-conv.c: Spell check comments and clean up whitespace.
10278
10279 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10280
10281 * tree-ssa-loop-ivopts.c: New file.
10282 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
10283 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
10284 target_pres_cost, target_spill_cost): Declare.
10285 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
10286 spill_cost): Renamed to ...
10287 (target_avail_regs, target_res_regs, target_small_cost,
10288 target_pres_cost, target_spill_cost): ... and exported.
10289 (init_set_costs, global_cost_for_size): Work with renamed variables.
10290 * common.opt (flag_ivopts): New flag.
10291 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
10292 REF_ORIGINAL.
10293 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
10294 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
10295 generating SSA form.
10296 (force_gimple_operand): New function.
10297 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
10298 * tree-cfg.c (stmt_bsi): New function.
10299 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
10300 PARAM_IV_MAX_CONSIDERED_USES): New.
10301 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
10302 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
10303 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
10304 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
10305 * tree-nested.c (build_addr): Export.
10306 * tree-optimize.c (init_tree_optimization_passes): Add
10307 pass_iv_optimize.
10308 * tree-pass.h (pass_iv_optimize): Declare.
10309 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
10310 IMAGPART_EXPR.
10311 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
10312 as a phi node argument.
10313 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
10314 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
10315 functions.
10316 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
10317 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
10318 pass_iv_optimize): New pass.
10319 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
10320 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
10321 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
10322 * tree.h (REF_ORIGINAL): New macro.
10323 (build_int_cst_type, unsigned_type_for, zero_p,
10324 cst_and_fits_in_hwi, build_addr): Declare.
10325 * doc/invoke.texi (-fivopts): Document.
10326 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
10327 PARAM_IV_MAX_CONSIDERED_USES): Document.
10328 * doc/passes.texi: Document induction variable optimizations pass.
10329
10330 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10331
10332 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
10333 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
10334 * c-common.c (c_common_attribute_table): Accept parameters to
10335 sentinel attribute.
10336 (check_function_sentinel, handle_sentinel_attribute): Likewise.
10337 * doc/extend.texi: Update accordingly.
10338
10339 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10340
10341 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
10342 New.
10343 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
10344 attribute.
10345 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
10346 New functions.
10347 (c_common_attribute_table): Add `sentinel' attribute.
10348 (check_function_arguments): Handle `sentinel' attribute.
10349 * doc/extend.texi: Document `sentinel' attribute.
10350
10351 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
10352
10353 * configure: Regenerated.
10354
10355 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10356
10357 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
10358
10359 * tree.c (save_expr): No longer TREE_READONLY.
10360
10361 2004-09-04 Jan Hubicka <jh@suse.cz>
10362
10363 * passes.c (rest_of_clean_state): Fix merge conflict made during
10364 commiting the patch.
10365
10366 2004-09-04 Jan Hubicka <jh@suse.cz>
10367
10368 * passes.c (rest_of_clean_state): Decompose the instruction stream.
10369
10370 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
10371
10372 * doc/md.texi (shift patterns): New anchor. Add reference to
10373 TARGET_SHIFT_TRUNCATION_MASK.
10374 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
10375 * target.h (shift_truncation_mask): New target hook.
10376 * targhook.h (default_shift_truncation_mask): Declare.
10377 * targhook.c (default_shift_truncation_mask): Define.
10378 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
10379 (TARGET_INITIALIZER): Include it.
10380 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
10381 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
10382 reject all out-of-range values. Fix sign-extension code for modes
10383 whose width is smaller than HOST_BITS_PER_WIDE_INT.
10384 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
10385 (expand_superword_shift, expand_subword_shift): Likewise.
10386 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
10387 (expand_binop): Use them to implement double-word shifts.
10388 * config/arm/arm.c (arm_shift_truncation_mask): New function.
10389 (TARGET_SHIFT_TRUNCATION_MASK): Define.
10390
10391 2004-09-04 Jan Hubicka <jh@suse.cz>
10392
10393 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
10394 (mix): New macro copied from hashtab.c
10395 (iterative_hash_hashval_t, iterative_hash_pointer,
10396 iterative_hash_host_wide_int): New functions based on hashtab.c
10397 implementation.
10398
10399 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
10400
10401 * config/mips/mips.md (mask): New mode attribute.
10402 (zero_extendsidi2): Add memory alternative.
10403 (*zero_extendsidi2_mem): Delete.
10404 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
10405 memory_operand in the TARGET_MIPS16 check.
10406 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
10407 Redefine using :GPR and :SHORT.
10408 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
10409
10410 2004-09-04 Uros Bizjak <uros@kss-loka.si>
10411
10412 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
10413 using rint_optab.
10414 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
10415 expand_builtin_mathfn.
10416 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
10417 btrunc?f patterns for btrunc_optab. Implement rint_optab using
10418 rint?f patterns.
10419 * optabs.c (init_optabs): Initialize rint_optab.
10420 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
10421 Add new OTI_rint.
10422 (btrunc_optab): Rename macro from trunc_optab.
10423 (rint_optab): Define corresponding macro.
10424
10425 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
10426 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
10427
10428 * config/i386/i386-protos.h (emit_i387_cw_initialization):
10429 Change prototype. Add new int parameter.
10430 * config/i386/i386.c (emit_i387_cw_initialization):
10431 Handle new rounding modes.
10432
10433 * config/i386/i386.h (enum fp_cw_mode): Delete.
10434 (MODE_NEEDED): Handle new rounding modes.
10435 (EMIT_MODE_SET): Change condition to handle new rounding modes.
10436
10437 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
10438 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
10439 represent different rounding modes of frndint insn.
10440 (type): Add frndint type.
10441 (i387, length, memory): Handle this type.
10442 (i387_cw): New attribute definition.
10443 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
10444 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
10445 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
10446 Add "i387_cw" attribute defined to "trunc".
10447 (x86_fnstcw_1): Remove comment.
10448 (*frndintxf2): Rename insn definition to frndintxf2. Move
10449 insn definition near rint?f2 expanders.
10450 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
10451 rintf and rintl built-ins as inline x87 intrinsics.
10452 (frndintxf2_floor): New pattern to implement floor rounding
10453 mode with frndint x87 instruction.
10454 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
10455 floorf and floorl built-ins as inline x87 intrinsics.
10456 (frndintxf2_ceil): New pattern to implement ceil rounding
10457 mode with frndint x87 instruction.
10458 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
10459 ceilf and ceill built-ins as inline x87 intrinsics.
10460 (frndintxf2_trunc): New pattern to implement trunc rounding
10461 mode with frndint x87 instruction.
10462 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
10463 truncf and truncl built-ins as inline x87 intrinsics.
10464 (frndintxf2_mask_pm): New pattern to implement rounding
10465 mode with exceptions with frndint x87 instruction.
10466 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
10467 implement nearbyint, nearbyintf and nearbyintl built-ins as
10468 inline x87 intrinsics.
10469
10470 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
10471
10472 * config/mips/mips.md (SHORT): New mode macro.
10473 (size): New mode attribute.
10474 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
10475 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
10476 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
10477 !ISA_HAS_SEB_SEH.
10478 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
10479 *extend[qh]isi2_hw patterns and extending them to di.
10480 (extendqihi2): Implement as define_insn_and_split that produces
10481 extendqisi2 after reload.
10482
10483 2004-09-03 Devang Patel <dpatel@apple.com>
10484
10485 * Makefile.in (OBJS-common): Add tree-if-conv.o
10486 (tree-if-conv.o): New rule.
10487 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
10488 (get_loop_body_in_bfs_order): New.
10489 * cfgloop.h (get_loop_body_in_bfs_order): New.
10490 * tree-flow.h (enum move_pos): Move here from ..
10491 * tree-ssa-loop-im.c (enum move_pos): here.
10492 (movement_possibility): Make externally visible.
10493 * tree-optimize.c (init_tree_optimization_passes): New entry for
10494 if conversion pass.
10495 * tree-pass.h (pass_if_conversion): New.
10496 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
10497 * tree-if-conv.c: New file.
10498 * doc/passes.texi: Document tree if-conversion pass.
10499 * doc/tree-ssa.texi: Same.
10500
10501 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
10502
10503 PR target/14925:
10504 Makefile.in (LIB2ADDEHSTATIC): New.
10505 (LIB2ADDEHSHARED): New.
10506 (LIBUNWIND): New.
10507 (LIBUNWINDDEP): New.
10508 (SHLIBUNWIND_LINK): New.
10509 (SHLIBUNWIND_INSTALL): New.
10510 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
10511 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
10512 (clean): Remove libunwind*
10513 (stage1-start): Remove and copy stage1/libunwind*.
10514 (stage2-start): Remove and copy stage2/libunwind*.
10515 (stage3-start): Remove and copy stage3/libunwind*.
10516 (stage4-start): Remove and copy stage4/libunwind*.
10517 (stageprofile-start): Remove and copy stageprofile/libunwind*.
10518 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
10519
10520 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
10521 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
10522 tmake_file if --with-system-libunwind isn't used.
10523
10524 * config/ia64/t-glibc-libunwind: New file.
10525 * config/t-libunwind-elf: Likewise.
10526 * unwind-compat.c: Likewise.
10527 * unwind-compat.h: Likewise.
10528 * unwind-dw2-fde-compat.c: Likewise.
10529
10530 * config/ia64/t-glibc (LIB2ADDEH): Updated.
10531 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
10532
10533 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
10534 aliases if needed.
10535 * unwind-dw2-fde-glibc.c: Likewise.
10536 * unwind-dw2.c: Likewise.
10537
10538 * config/t-libunwind (LIB2ADDEH): Updated.
10539 (LIB2ADDEHSTATIC): New.
10540 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
10541 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
10542
10543 * configure.ac: Change --enable-libunwind-exceptions to
10544 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
10545 * configure: Regenerated.
10546 * config.in: Updated.
10547
10548 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
10549 above and mention --with-system-libunwind.
10550 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
10551 removed in gcc 3.4.3 and later.
10552
10553 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
10554 USE_LIBUNWIND_EXCEPTIONS is defined.
10555
10556 * mklibgcc.in: Support libunwind.
10557
10558 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
10559
10560 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
10561 m_NOCONA.
10562
10563 2004-09-03 Richard Henderson <rth@redhat.com>
10564
10565 PR middle-end/9997
10566 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
10567 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
10568 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
10569 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
10570 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
10571 resize_stack_vars_conflict, add_stack_var_conflict,
10572 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
10573 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
10574 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
10575 expand_one_static_var, expand_one_hard_reg_var,
10576 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
10577 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
10578 (expand_used_vars): Rewrite.
10579 * Makefile.in (cfgexpand.o): Update dependencies.
10580
10581 2004-09-04 Jan Hubicka <jh@suse.cz>
10582
10583 * cfg.c (free_edge): Use ggc_free.
10584 (expunge_block): Use ggc_free.
10585 * passes.c (rest_of_clean_state): Free after compilation.
10586 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
10587 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
10588
10589 2004-09-03 James E Wilson <wilson@specifixinc.com>
10590
10591 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
10592 DECL_EXTERNAL check.
10593
10594 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10595
10596 * final.c (output_in_slot): New global variable.
10597 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
10598 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
10599 'output_in_slot' before invoking output_asm_insn.
10600 (output_asm_insn): Add a space after the tab if 'output_in_slot'
10601 is set.
10602 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
10603 final_scan_insn.
10604 (output_sibcall): Likewise.
10605
10606 2004-09-03 Jan Hubicka <jh@suse.cz>
10607
10608 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
10609 * tree-ssanames (init_ssanames): Likewise.
10610
10611 2004-09-03 Ziemowit Laski <zlaski@apple.com>
10612
10613 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
10614 objc_declare_protocols, objc_start_protocol,
10615 objc_start_class_interface, objc_start_category_interface,
10616 objc_continue_interface, objc_finish_interface,
10617 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
10618 objc_start_class_implementation, objc_start_category_implementation,
10619 objc_continue_implementation, objc_finish_implementation,
10620 objc_add_method_declaration, objc_start_method_definition,
10621 objc_finish_method_definition, objc_build_keyword_decl,
10622 objc_build_method_signature, objc_build_encode_expr,
10623 objc_build_protocol_expr, objc_build_selector_expr,
10624 objc_build_message_expr, objc_build_string_object,
10625 objc_get_class_reference, objc_get_protocol_qualified_type,
10626 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
10627
10628 2004-09-03 James E Wilson <wilson@specifixinc.com>
10629
10630 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
10631
10632 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
10633 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
10634 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
10635 (mips_recip1_<fmt>): Use frdiv1 type.
10636 (mips_recip2_<fmt>): Use frdiv2 type.
10637 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
10638 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
10639 and frsqrt1.
10640 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
10641
10642 2004-09-03 Daniel Jacobowitz <dan@debian.org>
10643
10644 * reload.c (find_reloads): Swap operand_loc pointers for
10645 find_dummy_reload if we have swapped two operands.
10646
10647 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
10648
10649 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
10650 to get the tablejump-insn before the jump-table label.
10651
10652 2004-09-03 Ziemowit Laski <zlaski@apple.com>
10653
10654 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
10655 objc_declare_protocols, objc_build_message_expr,
10656 objc_finish_message_expr, objc_build_selector_expr,
10657 objc_build_protocol_expr, objc_build_encode_expr,
10658 objc_build_string_object, objc_get_protocol_qualified_type,
10659 objc_get_class_reference, objc_get_class_ivars,
10660 objc_start_class_interface, objc_start_category_interface,
10661 objc_start_protocol, objc_continue_interface, objc_finish_interface,
10662 objc_start_class_implementation, objc_start_category_implementation,
10663 objc_continue_implementation, objc_finish_implementation,
10664 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
10665 objc_add_method_declaration, objc_start_method_definition,
10666 objc_finish_method_definition, objc_add_instance_variable,
10667 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
10668 objc_finish_try_stmt, objc_begin_catch_clause,
10669 objc_finish_catch_clause, objc_build_finally_clause,
10670 objc_build_synchronized, objc_static_init_needed_p,
10671 objc_generate_static_init_call): New prototypes.
10672
10673 2004-09-03 Steve Ellcey <sje@cup.hp.com>
10674
10675 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
10676 is only one reg.
10677 (ia64_function_value): Ditto.
10678
10679 2004-09-03 Jan Beulich <jbeulich@novell.com>
10680
10681 * config.gcc: Resurrect NetWare as a target. Handle special case of
10682 Novell linker to be used (specified through --with-ld=) and threading
10683 model of either Posix (default) or NKS.
10684 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
10685 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
10686 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
10687 * config/i386/netware.c, config/i386/netware.h: New.
10688 * config/i386/nwld.c, config/i386/nwld.h: New.
10689 * config/i386/netware-crt0.c: New.
10690 * config/i386/netware-libgcc.c: New.
10691 * config/i386/netware-libgcc.def: New.
10692 * config/i386/netware-libgcc.exp: New.
10693 * config/i386/t-netware, config/i386/t-nwld: New.
10694 * gthr-nks.h: New.
10695 * doc/install.texi: Document NKS threading model.
10696
10697 2004-09-03 Jan Beulich <jbeulich@novell.com>
10698
10699 PR c/7054
10700 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
10701 * tree.h (initial_max_fld_align): Declare
10702 * stor-layout.c (initial_max_fld_align): Define and initialize.
10703 (maximum_field_alignment): Initialize to the same value.
10704 * common.opt: Add -fpack-struct= variant of switch.
10705 * opts.c: Handle -fpack-struct= variant of switch.
10706 * c-pragma.c: Change #pragma pack() handling so that it becomes
10707 compatible to other compilers: accept individual 'push' argument,
10708 make final pop restore (command line) default, correct interaction
10709 of push/pop and sole specification of a new alignment (so that the
10710 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
10711 to #pragma pack(push, <n>).
10712 * doc/extend.texi: New node "Structure-Packing Pragmas" under
10713 "Pragmas", describing #pragma pack.
10714 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
10715 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
10716 Document new TARGET_DEFAULT_PACK_STRUCT.
10717
10718 2004-09-03 Devang Patel <dpatel@apple.com>
10719
10720 * dwarf2out.c (gen_field_die). Equate decl number to die.
10721
10722 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
10723
10724 PR target/15832
10725 * global.c (modify_reg_pav): New function.
10726 (make_accurate_live_analysis): Call the new function. Move pavin
10727 modification by earlyclobber set into the new function.
10728
10729 2004-09-03 Andreas Schwab <schwab@suse.de>
10730
10731 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
10732 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
10733 extended.
10734
10735 2004-09-02 Jan Beulich <jbeulich@novell.com>
10736
10737 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
10738 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
10739 not unwind code specific ones.
10740 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
10741 Remove unwind code specific dependencies.
10742 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
10743 Remove gbl-ctors.h.
10744 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
10745 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
10746 * tsystem.h: Declare memcpy and memset when inhibit_libc.
10747
10748 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
10749
10750 * combine.c (try_combine): Delay modifying of insns which cannot
10751 be easily undone.
10752
10753 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
10754
10755 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
10756 tree-loop-im.
10757 * gcc/tree-ssa-loop.c: Ditto
10758 * gcc/tree-ssa-loop-ivcanon.c: Ditto
10759 * gcc/doc/invoke.texi: Ditto.
10760
10761 2004-09-02 Ziemowit Laski <zlaski@apple.com>
10762
10763 * c-decl.c (store_parm_decls_newstyle): Make static.
10764 (store_parm_decls_from): New function.
10765 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
10766 (store_parm_decls_from): New prototype.
10767
10768 2004-09-02 David Edelsohn <edelsohn@gnu.org>
10769
10770 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
10771 HImode with STRICT_ALIGNMENT.
10772
10773 2004-09-02 Mark Mitchell <mark@codesourcery.com>
10774
10775 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
10776 (TARGET_OS_CPP_BUILTINS): Likewise.
10777 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
10778 TARGET_BPABI_CPP_BUILTINS.
10779
10780 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
10781
10782 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
10783
10784 2004-09-02 Eric Christopher <echristo@redhat.com>
10785
10786 * builtins.c (expand_builtin_cabs): Delete.
10787 (expand_builtin): If unable to fold the values do a normal
10788 library call for builtin_cab*.
10789 (fold_builtin_cabs): Depend on optimize and optimize_size.
10790 * optabs.c (expand_cmplxdiv_straight): Delete.
10791 (expand_cmplxdiv_wide): Ditto.
10792 (expand_vector_binop): Ditto.
10793 (expand_vector_unop): Ditto.
10794 (expand_complex_abs): Delete.
10795 (expand_binop): Remove calls to above functions.
10796 Remove open coding of complex arithmetic.
10797 (expand_unop): Ditto.
10798 * optabs.h: Remove prototypes.
10799
10800 2004-09-02 Ziemowit Laski <zlaski@apple.com>
10801
10802 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
10803 * c-tree.h (store_parm_decls_newstyle): New prototype.
10804
10805 2004-09-02 Geoffrey Keating <geoffk@apple.com>
10806
10807 * config/rs6000/rs6000.c (expand_block_clear): Use vector
10808 instructions if available.
10809 (expand_block_move): Likewise.
10810
10811 2004-09-03 Jan Hubicka <jh@suse.cz>
10812
10813 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
10814
10815 2004-09-02 Mark Mitchell <mark@codesourcery.com>
10816
10817 * config/arm/symbian.h (LIB_SPEC): Define to empty.
10818 * config/arm/t-symbian (SHLIB_LC): Likewise.
10819
10820 2004-09-02 Paul Brook <paul@codesourcery.com>
10821
10822 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
10823
10824 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
10825
10826 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
10827 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
10828 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
10829 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
10830 (mips_issue_rate): Remove unreachable abort.
10831 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
10832 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
10833 (mips_block_move_straight, print_operand_address, mips_file_start)
10834 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
10835 (mips_output_conditional_branch, mips_expand_builtin_direct)
10836 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
10837 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
10838 with gcc_assert.
10839
10840 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
10841
10842 * config/mips/mips.md (*lea_high64): Change split condition to
10843 flow2_completed. Add a peephole2 to generate a more parallel version.
10844
10845 2004-09-02 Jan Hubicka <jh@suse.cz>
10846
10847 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
10848 GGC.
10849
10850 * ggc-page.c: include tree-flow.h.
10851 (extra_order_size_table): Add stmt_ann_d.
10852 (STAT_LABEL): Rename from ....
10853 (LABEL): ... this one.
10854 * Makefile.in (ggc-page.o): Add dependency.
10855
10856 * ggc-common.c (ggc_force_collect): New global variable.
10857 (loc_description): Add fields "freed", "collected"
10858 (ptr_hash): New static hash
10859 (ptr_hash_entry): New structure.
10860 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
10861 (ggc_record_overhead): Take ptr argument, record it
10862 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
10863 (cmp_statistics): Imrove sorting.
10864 (dump_ggc_loc_statistics): Output newly collected statistics
10865 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
10866 (ggc_free): Call ggc_free_overhead.
10867 (ggc_collect): Force collection when asked to be forced.
10868 (ggc_collect): Call ggc_prune_overhead_list.
10869 * ggc.h (ggc_force_collect): Declare
10870 (ggc_record_overhead): Update prototype.
10871 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
10872
10873 2004-09-02 James E Wilson <wilson@specifixinc.com>
10874
10875 * common.opt (ftrapping-math): Default to on.
10876
10877 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
10878
10879 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
10880
10881 2004-09-02 Denis Chertykov <denisc@overta.ru>
10882
10883 PR target/16884
10884 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
10885 match_scratch.
10886 (*movmemqi_insn): Likewise.
10887 (*movmemhi): Likewise.
10888 (clrmemhi): Likewise.
10889 (*clrmemqi): Likewise.
10890 (*clrmemhi): Likewise.
10891
10892 2004-09-02 Paul Brook <paul@codesourcery.com>
10893
10894 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
10895 default_use_cxa_atexit=yes.
10896
10897 2004-09-02 Alan Modra <amodra@bigpond.net.au>
10898
10899 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
10900 (struct kernel_old_ucontext): Delete.
10901 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
10902 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
10903 when IN_LIGGCC2.
10904
10905 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
10906
10907 * toplev.c (process_options): Fix typo.
10908
10909 2004-09-01 Richard Henderson <rth@redhat.com>
10910
10911 PR middle-end/17258
10912 * calls.c (initialize_argument_information): Tighten pass-through
10913 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
10914 Use build_fold_addr_expr.
10915 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
10916 that assumes ADDR_EXPR allocates stack space.
10917 * fold-const.c (build_fold_addr_expr_with_type): Look through
10918 WITH_SIZE_EXPR.
10919
10920 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
10921
10922 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
10923 * ggc.h (ggc_alloc_rtx): Delete.
10924
10925 2004-09-01 Roger Sayle <roger@eyesopen.com>
10926
10927 * expmed.c (enum alg_code): Remove long unused enumeration values.
10928 (struct mult_cost): New structure to hold the "score" of a synthetic
10929 multiply sequence, including both a rtx_cost and a latency field.
10930 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
10931 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
10932 (struct algorithm): Change type of cost field to be mult_cost.
10933 (synth_mult): Change type of cost_limit argument to be a
10934 pointer to a mult_cost. Update all cost comparisons to use the
10935 new mult_cost infrastructure. For alg_add_factor and
10936 alg_sub_factor operations, latency is lower than the rtx_cost.
10937 (choose_mult_variant): Update calls to synth_mult. Perform
10938 cost comparisons using the new mult_cost infrastructure.
10939 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
10940 to optain the total rtx_cost of a synth_mult "algorithm".
10941
10942 2004-09-01 David Edelsohn <edelsohn@gnu.org>
10943
10944 * config/rs6000/power4.md: Increase store latency to 12.
10945 * config/rs6000/power5.md: Same.
10946
10947 2004-09-01 James E Wilson <wilson@specifixinc.com>
10948
10949 PR target/14064
10950 * config/avr/avr.c (avr_unique_section): Delete prototype and
10951 definition.
10952 (TARGET_ASM_UNIQUE_SECTION): Delete.
10953
10954 2004-09-01 Ziemowit Laski <zlaski@apple.com>
10955
10956 * c-parse.in (primary): Call objc_build_message_expr(),
10957 objc_build_selector_expr(), objc_build_protocol_expr(),
10958 objc_build_encode_expr() and objc_build_string_object() instead of
10959 build_message_expr(), build_selector_expr(), build_protocol_expr(),
10960 build_encode_expr() and build_objc_string_object(), respectively.
10961 (component_decl_list2): Call objc_get_class_ivars() instead of
10962 get_class_ivars_from_name().
10963 (keyworddecl): Call objc_build_keyword_decl() instead of
10964 build_keyword_decl().
10965 (receiver): Call objc_get_class_reference() instead of
10966 get_class_reference().
10967 (reswords): Add blank line before @@ifobjc section, for clarity.
10968
10969 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
10970
10971 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
10972 to Altivec vetors.
10973
10974 2004-09-01 Wu Yongwei <adah@sh163.net>
10975 Danny Smith <dannysmith@users.sourceforge.net>
10976
10977 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
10978 not Windows 'DWORD'.
10979 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
10980 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
10981 (__gthr_win32_recursive_mutex_init_function): Add prototype for
10982 __GTHREAD_HIDE_WIN32API case..
10983 (__gthr_win32_recursive_mutex_lock): Likewise.
10984 (__gthr_win32_recursive_mutex_trylock): Likewise.
10985 (__gthr_win32_recursive_mutex_unlock): Likewise.
10986 (__gthread_recursive_mutex_init_function); Add definition for
10987 __GTHREAD_HIDE_WIN32API case.
10988 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
10989 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
10990 call to InterlockedDecrement.
10991
10992 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10993
10994 * tree-tailcall.c (find_tail_calls): Also fail is statement has
10995 volatile operands.
10996
10997 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
10998
10999 * doc/c-tree.texi: Document new operands for ARRAY_REF and
11000 COMPONENT_REF.
11001
11002 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11003
11004 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
11005 * common.opt (fspeculative-prefetching): New.
11006 * flags.h (flag_speculative_prefetching_set): Declare.
11007 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
11008 values.
11009 * opts.c (flag_sepculative_prefetching_set): New variable.
11010 (common_handle_option): Handle -fspeculative-prefetching.
11011 * passes.c (rest_of_compilation): Ditto.
11012 * profile.c (instrument_values, compute_value_histograms, branch_prob):
11013 Use vectors instead of arrays.
11014 * toplev.c (process_options): Handle -fspeculative-prefetching.
11015 * rtl-profile.c: Include ggc.h.
11016 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
11017 rtl_gen_one_value_profiler_no_edge_manipulation,
11018 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
11019 argument changed.
11020 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
11021 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
11022 argument changed.
11023 * value-prof.c: Include ggc.h.
11024 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
11025 macros.
11026 (insn_prefetch_values_to_profile, find_mem_reference_1,
11027 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
11028 speculative_prefetching_transform): New.
11029 (value_profile_transformations): Call speculative_prefetching_transform.
11030 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
11031 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
11032 tree_find_values_to_profile, find_values to profile): Use vectors
11033 instead of arrays.
11034 (free_profiled_values): Removed.
11035 * value-prof.h (struct histogram_value): Renamed to
11036 struct histogram_value_t.
11037 (histogram_value, histogram_values): New types.
11038 (find_values_to_profile): Declaration changed.
11039 (free_profiled_values): Removed.
11040 (struct profile_hooks): Type of argument of the hooks changed to
11041 histogram_value.
11042 * doc/invoke.texi (-fspeculative-prefetching): Document.
11043
11044 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11045
11046 PR rtl-optimization/16408
11047 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
11048
11049 2004-09-01 Richard Henderson <rth@redhat.com>
11050
11051 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
11052 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
11053
11054 2004-09-01 Jakub Jelinek <jakub@redhat.com>
11055
11056 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
11057
11058 2004-09-01 Mike Stump <mrs@apple.com>
11059
11060 * config/darwin.c (machopic_symbol_defined_p): In addition to
11061 being SYMBOL_REF_LOCAL_P, a symbol must also be
11062 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
11063 defined in this output file, or translation unit in the case
11064 of IMA not being used.
11065 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
11066 never need .indirect_symbol when indirecting.
11067
11068 2004-09-01 Jakub Jelinek <jakub@redhat.com>
11069
11070 * Makefile.in (bb-reorder.o): Add several dependencies.
11071
11072 2004-09-01 Jakub Jelinek <jakub@redhat.com>
11073
11074 * fold-const.c (operand_equal_p): Require equal sign also for
11075 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
11076
11077 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
11078
11079 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
11080 for use in configargs.h. Put the cname in a separate variable. Use
11081 that to set target_cpu_default2.
11082
11083 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
11084 Nick Clifton <nickc@redhat.com>
11085
11086 * config/sh/sh.md ("length"): Increase branch length when
11087 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
11088 constant, 2 byte for aligning the constant.
11089
11090 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
11091
11092 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
11093 CPU.
11094 (arm7tdmi-s): New CPU name.
11095 * arm/arm.c (ARM_CORE): Update for new format.
11096 * arm/arm.h (ARM_CORE): Likewise.
11097 * arm/gentune.sh: Update for extra field.
11098 * config.gcc: Likewise.
11099 * arm/arm-tune.md: Regenerate.
11100 * doc/invoke.texi: Document the real processor names for ARM cpus.
11101
11102 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
11103
11104 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
11105 (floatdidf): New functions.
11106 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
11107 (floatdisf): New functions.
11108 * t-arm-elf: Use them.
11109
11110 2004-09-01 Ziemowit Laski <zlaski@apple.com>
11111
11112 * c-common.h (lookup_interface): Remove prototype.
11113 (is_class_name): Rename to objc_is_class_name.
11114 (lookup_objc_ivar): Rename to objc_lookup_ivar.
11115 (get_current_scope): Rename to objc_get_current_scope.
11116 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
11117 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
11118 (yylexname): Call objc_is_class_name() instead of is_class_name().
11119 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
11120 instead of lookup_objc_ivar().
11121 * stub-objc.c (lookup_interface): Remove stub.
11122 (is_class_name): Rename to objc_is_class_name.
11123 (lookup_objc_ivar): Rename to objc_lookup_ivar.
11124
11125 2004-08-31 Mark Mitchell <mark@codesourcery.com>
11126
11127 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
11128 * config/arm/lib1funcs.asm: Do not include supplemental .S files
11129 when compiling for Symbian.
11130 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
11131 (TARGET_OS_CPP_BUILTINS): Likewise.
11132 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
11133
11134 2004-08-31 Stan Shebs <shebs@apple.com>
11135
11136 * toplev.c (process_options): Ensure debug_hooks is initialized.
11137
11138 2004-08-31 Mark Mitchell <mark@codesourcery.com>
11139
11140 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
11141 * target.h (cxx): Add export_class_data.
11142 * config/arm/arm.c (arm_cxx_export_class_data): New function.
11143 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
11144 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
11145
11146 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
11147
11148 * config/sh/sh.c (output_branch): Check the insn length possibly
11149 in the delayed slot.
11150
11151 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11152
11153 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
11154 blank after ')'.
11155 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
11156
11157 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
11158 (c_sizeof_of_alignof_type): Likewise.
11159 * expr.c (array_ref_element_size): Likewise.
11160 (highest_pow2_factor_for_target): Likewise.
11161 * gimplify.c (canonicalize_addr_expr): Likewise.
11162 (gimplify_compound_lval): Likewise.
11163 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
11164 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
11165 * varasm.c (assemble_variable): Likewise.
11166 (output_constant_def_contents): Alignments are unsigned.
11167
11168 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11169 Jeff Law <law@redhat.com>
11170
11171 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
11172 gets modified.
11173
11174 2004-08-31 Mark Mitchell <mark@codesourcery.com>
11175
11176 * hooks.c (hook_bool_void_true): New function.
11177 * hooks.h (hook_bool_void_true): Declare.
11178 * target-def.h (TARGET_CXX): Add
11179 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
11180 * target.h (struct cxx): Add key_method_may_be_inline.
11181 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
11182 function.
11183 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
11184 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
11185 __THUMB_INTERWORK.
11186
11187 2004-08-31 Denis Chertykov <denisc@overta.ru>
11188
11189 PR target/15417
11190 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
11191 frame pointer register only in Pmode while reload in progress.
11192
11193 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
11194
11195 PR target/15334
11196 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
11197 because it breaks the 32-bit shift patterns that rely on a match_dup.
11198
11199 2004-08-31 Matt Austern <austern@apple.com>
11200
11201 * config/darwin.c (darwin_make_decl_one_only): Allocate section
11202 names once per compilation, instead of once per symbol.
11203
11204 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
11205
11206 * Makefile.in (build_subdir): New substitution.
11207 (fixinc.sh): Simplify heavily since fixincludes is already built.
11208 (stmp-fixinc): Depend on specs.ready.
11209 (install-mkheaders): Use new location of fixincludes.
11210 (clean): Do not descend into fixinc.
11211 (FORBUILD): Replace with ../$(build_subdir).
11212 * configure.ac (build_subdir): Substitute.
11213 (FORBUILD): Do not set.
11214 (all_outputs): Remove fixinc/Makefile.
11215 (default commands): Do not create links in fixinc.
11216 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
11217 the fixincludes configuration steps and substituting
11218 @FIXINCL@ in fixinc.in.
11219 * fixinc.in: New, from fixinc/fixincl.sh.
11220
11221 * fixinc/*: Removed.
11222
11223 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
11224
11225 * attribs.c (strip_attrs): Remove.
11226 (split_specs_attrs): Move ...
11227 * c-decl.c: ... to here.
11228 * tree.h (split_specs_attrs, strip_attrs): Remove.
11229 * c-tree.h (split_specs_attrs): Declare.
11230
11231 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
11232
11233 * read-rtl.c: Disable RTL checking.
11234 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
11235
11236 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
11237
11238 * config/mips/mips.md (fcond): New code macro and attribute.
11239 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
11240 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
11241 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
11242
11243 2004-08-30 Mark Mitchell <mark@codesourcery.com>
11244
11245 Revert:
11246 2004-08-29 Mark Mitchell <mark@codesourcery.com>
11247 PR rtl-optimization/16590
11248 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
11249
11250 2004-08-30 Andrew Pinski <apinski@apple.com>
11251
11252 * hard-reg-set.h:
11253 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
11254 * ChangeLog: Fix previous ChangeLog entry.
11255
11256 PR rtl-opt/13987
11257 * config.host (use_long_long_for_widest_fast_int): New, default is
11258 off.
11259 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
11260 * configure.ac: If use_long_long_for_widest_fast_int, then
11261 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
11262 * configure: Regenerate.
11263 * config.in: Regenerate.
11264 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
11265 New: widest integer type supported efficiently in hardware for the
11266 host.
11267 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
11268 HOST_BITS_PER_WIDEST_FAST_INT.
11269 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
11270 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
11271 HOST_WIDEST_FAST_INT
11272 instead of HOST_WIDE_INT.
11273 (HARD_REG_SET_LONGS): Likewise.
11274 (UHOST_BITS_PER_WIDE_INT): Likewise.
11275 Change the checks for the fast cases to be based on
11276 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
11277
11278 2004-08-30 Steven Bosscher <stevenb@suse.de>
11279
11280 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
11281 not the pointers.
11282
11283 2004-08-30 Geoffrey Keating <geoffk@apple.com>
11284
11285 PR 12738
11286 PR 17205
11287 Radar 3460526
11288 Radar 3775729
11289 * c-decl.c (grokdeclarator): Produce error for 'static' on local
11290 function declaration.
11291
11292 2004-08-30 Richard Henderson <rth@redhat.com>
11293
11294 * expr.c (array_ref_element_size): Force aligned_size back to
11295 sizetype.
11296 (component_ref_field_offset): Similarly for aligned_offset.
11297 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
11298 low-bound, element-size, field-offset fields rather than
11299 computed values.
11300
11301 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
11302
11303 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
11304 redundant code.
11305
11306 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
11307
11308 * c-tree.h (struct language_function): Add arg_info element.
11309 * c-decl.c (current_function_arg_info): New.
11310 (grokdeclarator, store_parm_decls): Use it instead of
11311 DECL_ARGUMENTS.
11312 (c_push_function_context, c_pop_function_context): Save and
11313 restore it.
11314
11315 2004-08-30 Richard Henderson <rth@redhat.com>
11316
11317 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
11318 COMPONENT_REF to pointer arithmetic.
11319 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
11320 constant "c" as a valid constant initializer. Allow narrowing of
11321 differences against the same base object, for any base object.
11322
11323 2004-08-30 Richard Henderson <rth@redhat.com>
11324
11325 * expr.c (expand_expr_addr_expr): New.
11326 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
11327
11328 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
11329
11330 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
11331 (mips_fp_condition): New enum.
11332 (mips_fp_conditions): New array.
11333 (print_fcc_operand): Delete.
11334 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
11335 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
11336 (builtin_description): Add "cond" field.
11337 (DIRECT_BUILTIN): Initialize it.
11338 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
11339 into INSN and CODE. Initialize the "cond" field.
11340 (CMP_BUILTINS): Update accordingly.
11341 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
11342 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
11343 mips_fp_condition as argument. Make it the final operand of the
11344 comparison instruction.
11345 (mips_expand_builtin): Update accordingly.
11346 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
11347 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
11348 the gaps.
11349 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
11350 Don't use the 'Q' operand prefix; just print the operand normally.
11351 (mips_cabs_*, mips_c_*): Delete, replacing with...
11352 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
11353 patterns. Split the 4s versions into 2 ps patterns after reload.
11354
11355 2004-08-30 Richard Henderson <rth@redhat.com>
11356
11357 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
11358 assuming an ADDR_EXPR is non-null.
11359
11360 2004-08-30 Jason Merrill <jason@redhat.com>
11361
11362 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
11363
11364 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
11365
11366 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
11367 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
11368 gcc_assert and gcc_unreachable instead of abort.
11369 * alloc-pool.c (abort, fancy_abort): Remove.
11370 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
11371 gcc_assert or gcc_unreachable.
11372 * attribs.c (init_attributes, decl_attributes): Likewise.
11373 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
11374 mark_bb_for_unlikely_executed_section,
11375 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
11376 fix_crossing_unconditional_branches): Likewise.
11377 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
11378 bitmap_operation): Likewise.
11379 * bt-load.c (insn_sets_btr_p, augment_live_range,
11380 move_btr_def): Likewise.
11381 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
11382 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
11383 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
11384 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
11385 expand_builtin_memcmp, expand_builtin_args_info,
11386 std_gimplify_va_arg_expr, expand_builtin_unop,
11387 expand_builtin_fputs, expand_builtin_profile_func,
11388 expand_builtin_fork_or_exec, fold_builtin_bitop,
11389 fold_builtin_classify, fold_builtin_fputs): Likewise.
11390
11391 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
11392
11393 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
11394 * gcov.c (abort): Remove undef.
11395
11396 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
11397 (struct tree_binfo): Remove primary field.
11398
11399 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
11400
11401 * fixinc/Makefile.in (machname.h): Remove.
11402 (fixincl.x): Do not pass $@ to genfixes.
11403 * fixinc/genfixes: Remove code to produce machname.h.
11404 * fixinc/fixincl.sh: Move it here instead.
11405 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
11406 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
11407 return a bool indicating whether pz_mn_name_pat is NULL.
11408 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
11409 Declare extern C variables for the ENV_TABLE.
11410 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
11411 instead use the result of mn_get_regexps.
11412 * fixinc/fixtests.c: Likewise.
11413
11414 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
11415
11416 * configure.ac: Do not run fixincludes after stage1 during
11417 toplevel bootstrap.
11418 * configure: Regenerate.
11419
11420 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
11421
11422 * sched-deps.c (get_condition): Partially revert previous, by never
11423 trying to extract the condition from a condjump.
11424
11425 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
11426
11427 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
11428 (handle_visibility_attribute, c_determine_visibility): Likewise.
11429 * c-common.h (my_friendly_assert): Remove.
11430
11431 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
11432
11433 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
11434 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
11435 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
11436 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
11437 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
11438
11439 2004-08-30 Diego Novillo <dnovillo@redhat.com>
11440
11441 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
11442 in COMPONENT_REF nodes.
11443
11444 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
11445
11446 PR c++/15378
11447 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
11448 global_dc->warning_as_error_requested.
11449 * diagnostic.c (diagnostic_initialize): Tidy.
11450 * diagnostic.h (diagnostic_context::x_data): Remove
11451 (diagnostic_context::issue_warnings_are_errors_message): Rename
11452 from warnings_are_errors_message.
11453 (diagnostic_context::warning_as_error_requested): New.
11454
11455 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
11456
11457 * sched-deps.c (get_condition): Fix breakage in previous patch.
11458
11459 2004-08-30 Paul Brook <paul@codesourcery.com>
11460
11461 * doc/install.texi: Fix broken mpfr link.
11462
11463 2004-08-29 David O'Brien <obrien@FreeBSD.org>
11464
11465 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
11466 other FreeBSD platforms.
11467
11468 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
11469
11470 * arm.h (REVERSE_CONDITION): Define.
11471 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
11472
11473 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
11474
11475 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
11476 just the codes, call reversed_comparison_code ().
11477 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
11478 (not_reg_cond): Use reversed_comparison_code.
11479 (and_reg_cond): Likewise.
11480 * ifcvt.c (cond_exec_process_if_block): Likewise.
11481 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
11482
11483 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
11484
11485 * sched-deps.c (get_condition): Rewrite using jump support functions.
11486 Use reversed_comparison_code.
11487 (conditions_mutex_p): Use reversed_comparison_code.
11488
11489 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11490
11491 * config/mips/mips.c (override_options): Disable hot/cold partitioning
11492 for MIPS16.
11493
11494 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11495
11496 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
11497 (mips_function_type): Move to mips.c.
11498 * config/mips/mips.c (mips_builtin_type): New enum.
11499 (builtin_description): Replace code and ftype with builtin_type
11500 and function_type.
11501 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
11502 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
11503 (CODE_FOR_mips_abs_ps): Define.
11504 (mips_bdesc): Use new macros.
11505 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
11506 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
11507 (mips_expand_builtin_direct): New function.
11508 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
11509 builtin. Replace boolean parameter with builtin_type.
11510 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
11511 (mips_expand_4s_compare_builtin): Delete, replacing with...
11512 (mips_expand_builtin_compare): ...this new function.
11513
11514 2004-08-29 Mark Mitchell <mark@codesourcery.com>
11515
11516 PR rtl-optimization/16590
11517 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
11518
11519 2004-08-29 Diego Novillo <dnovillo@redhat.com>
11520
11521 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
11522 * tree-ssa-propagate.c: Fix documentation.
11523
11524 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11525
11526 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
11527 (mov[sd]fcc): Likewise.
11528
11529 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11530
11531 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
11532
11533 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11534
11535 * config/mips/mips.md (divide_condition): New mode attribute.
11536 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
11537 (sqrt[sd]f3): Redefine using SCALARF.
11538 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
11539 patterns.
11540
11541 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11542
11543 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
11544 (loadx, storex, fmt, UNITMODE): New mode attributes.
11545 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
11546 (mul[sd]f3): Redefine using :SCALARF.
11547 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
11548 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
11549 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
11550 Check TARGET_FUSED_MADD for V2SF too.
11551 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
11552 were already named.
11553 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
11554 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
11555
11556 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11557
11558 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
11559 V2SF_type_node if it will be needed.
11560
11561 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11562
11563 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
11564 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
11565 (mips_prepare_builtin_target): New function.
11566 (mips_expand_builtin): Use them. Update calls to subroutines.
11567 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
11568 cmp_choice with a boolean argument to select between movt and movf.
11569 Take the comparison's icode as an argument, not the function's fcode.
11570 (mips_expand_compare_builtin): New function. Rename existing function
11571 to mips_expand_scalar_compare_builtin.
11572 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
11573 (mips_expand_ps_compare_builtin): Use the new functions. Take the
11574 comparison's icode as an argument, not the builtin's fcode.
11575
11576 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11577
11578 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
11579 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
11580 registers are false and -1 if all registers are true.
11581 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
11582 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
11583 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
11584 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
11585 (bc1any2t, bc1any2f): Likewise CCV2.
11586 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
11587
11588 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
11589
11590 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
11591 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
11592 UNSPEC rather than an IF_THEN_ELSE.
11593 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
11594 mips_cond_move_tf_ps by name.
11595
11596 2004-08-29 Chao-ying Fu <fu@mips.com>
11597 James E Wilson <wilson@specifixinc.com>
11598
11599 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
11600 8 byte size and alignment. Give CCV4 16 byte size and alignment.
11601 * config/mips/mips-ps-3d.md: New file.
11602 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
11603 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
11604 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
11605 (mips_output_move): Emit "mov.ps" for V2SFmode.
11606 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
11607 MODE_VECTOR_FLOAT.
11608 (override_options): Check if TARGET_MIPS3D and there was an explicit
11609 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
11610 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
11611 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
11612 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
11613 and allow CCV2 and CCV4 to occupy two and four CC registers.
11614 (print_fcc_operand): New function.
11615 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
11616 %Z to call print_fcc_operand.
11617 (mips_function_value): Handle MODE_VECTOR_FLOAT.
11618 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
11619 (mips_vector_mode_supported_p): New function.
11620 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
11621 (builtin_description): New struct.
11622 (mips_bdesc): New array of struct builtin_description.
11623 (mips_expand_builtin, mips_init_builtins,
11624 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
11625 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
11626 functions.
11627 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
11628 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
11629 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
11630 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
11631 "-mips3d", and "-mno-mips3d".
11632 (ASM_SPEC): Map -mips3d to -mips3d in gas.
11633 (EXTRA_CONSTRAINT_Y): New macro.
11634 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
11635 multi-letter constraint 'Y'.
11636 (CONSTRAINT_LEN): New macro.
11637 (enum mips_builtins): New for MIPS builtin functions.
11638 (enum mips_function_type): New for the types of MIPS builtin functions.
11639 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
11640 * config/mips/mips.md: New constants for paired single and MIPS-3D
11641 instructions. Include the new mips-ps-3d.md file.
11642 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
11643 movv2sf_hardfloat_64bit): New named patterns.
11644 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
11645 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
11646 sdxc1_v2sf_di): New unnamed patterns.
11647 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
11648 const_vector support.
11649 (const_0_or_1_operand): New predicate.
11650 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
11651
11652 2004-08-29 Diego Novillo <dnovillo@redhat.com>
11653
11654 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
11655 (tree-ssa-propagate.o): New rule.
11656 (GTFILES): Add tree-ssa-propagate.c.
11657 * tree-flow.h (struct stmt_ann_d): Remove field
11658 in_ccp_worklist.
11659 * tree-ssa-propagate.c: New file.
11660 * tree-ssa-propagate.h: New file.
11661 * tree-ssa-ccp.c: Re-write to use the routines from
11662 tree-ssa-propagate.c.
11663
11664 2004-08-28 Andrew Pinski <apinski@apple.com>
11665
11666 * tree-ssa-loop.c: Remove extra include of basic-block.h.
11667
11668 2004-08-28 Ziemowit Laski <zlaski@apple.com>
11669
11670 * c-common.h: Update comments about ObjC/ObjC++ entry points.
11671 (objc_is_reserved_word): New prototype.
11672 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
11673 separate section; these are call-backs.
11674 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
11675 ObjC/ObjC++ "@" keywords.
11676 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
11677 prototypes; they already live in c-common.h.
11678 * stub-objc.c: Update copyright notice.
11679 (objc_is_reserved_word): New stub.
11680
11681 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
11682
11683 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
11684 even when not checking.
11685
11686 2004-08-27 Jason Merrill <jason@redhat.com>
11687
11688 PR c++/13684
11689 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
11690 (gimple_push_cleanup): Add eh_only parm.
11691 (gimplify_target_expr): Pass it.
11692 * c.opt (-fno-threadsafe-statics): New option.
11693 * c-opts.c (c_common_handle_option): Handle it.
11694 * c-common.h (flag_threadsafe_statics): Declare it.
11695 * c-common.c (flag_threadsafe_statics): Record it.
11696 * doc/invoke.texi: Document it.
11697 * tsystem.h (_GNU_SOURCE): Define.
11698 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
11699 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
11700 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
11701 (__gthread_recursive_mutex_init_function): New fn.
11702 (__gthread_recursive_mutex_lock): New fn.
11703 (__gthread_recursive_mutex_trylock): New fn.
11704 (__gthread_recursive_mutex_unlock): New fn.
11705 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
11706 * gthr-win32.h, gthr-vxworks.h: Likewise.
11707 * gthr.h: Document.
11708
11709 2004-08-27 David Edelsohn <edelsohn@gnu.org>
11710
11711 * config/rs6000/rs6000.c (rs6000_override_options): Increase
11712 maximum skip to 15. Set function alignment, jump alignment, and
11713 loop alignment to 16 for processors that form dispatch groups.
11714 (rs6000_rtx_costs): outer_code is used.
11715
11716 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
11717
11718 * stor-layout.c (sizetype_set): Remove.
11719 (set_sizetype): Don't test or set it.
11720
11721 * tree.h (size_int_type): Remove.
11722 * fold-const.c: Do not #include gt-fold-const.h.
11723 (size_htab_hash, size_htab_eq): Remove.
11724 (size_int_kind): Use build_int_cst.
11725 (new_const, size_htab): Remove.
11726 (size_int_type): Remove.
11727 (round_up): Use build_int_cst.
11728 (round_down): Likewise. Remove spurious constant build.
11729
11730 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
11731
11732 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
11733 Add is_release variable, use it for --enable-werror and
11734 --enable-checking defaults.
11735 * system.h (gcc_assert, gcc_unreachable): New.
11736 * doc/install.texi (--enable-checking): Update.
11737 * configure, config.in: Rebuilt.
11738
11739 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
11740
11741 * rtl.h (read_rtx): Change prototype.
11742 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
11743 line number. Return true on success.
11744 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
11745 callers accordingly.
11746
11747 2004-08-26 Richard Henderson <rth@redhat.com>
11748
11749 * c-typeck.c (build_offsetof): Remove.
11750 * c-tree.h (build_offsetof): Remove.
11751 * c-common.c (fold_offsetof_1, fold_offsetof): New.
11752 * c-common.h (fold_offsetof): Declare.
11753 * c-parse.in (offsetof_base): New.
11754 (offsetof_member_designator): Use it. Build references, not just
11755 a tree list.
11756 (primary): Use fold_offsetof, not build_offsetof.
11757
11758 2004-08-26 Richard Henderson <rth@redhat.com>
11759
11760 * tree.c (staticp): Return the static object.
11761 * tree.h (staticp): Update decl.
11762 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
11763 * langhooks.c (lhd_staticp): Return NULL_TREE.
11764 * langhooks-def.h (lhd_staticp): Update decl.
11765 * c-common.c (c_staticp): Return the static object.
11766 * c-common.h (c_staticp): Update decl.
11767
11768 2004-08-26 Richard Henderson <rth@redhat.com>
11769
11770 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
11771 modes.
11772
11773 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
11774
11775 PR c/13801
11776 * c-decl.c (struct c_binding): Add type and inner_comp fields.
11777 (bind): Set type and inner_comp fields.
11778 (pop_scope): Restore type of decl to the correct type from an
11779 outer scope. Give error when popping file scope for incomplete
11780 arrays completed incompatibly with default initialization in an
11781 inner scope.
11782 (diagnose_mismatched_decls): Handle externs with initializers at
11783 block scope.
11784 (pushdecl): Set type of external declaration at block scope based
11785 only on the visible declarations. Save type when changing the
11786 type of a declaration. Merge an external declaration at block
11787 scope with a visible static declaration at file scope.
11788 (implicitly_declare): Give recycled old declaration the new type
11789 except for incompatible declarations of built-in functions, saving
11790 the old type.
11791
11792 2004-08-26 Ziemowit Laski <zlaski@apple.com>
11793
11794 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
11795
11796 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
11797
11798 * tree-alias-common.c (gate_pta): New function.
11799 (pass_build_pta): Use it.
11800 (pass_del_pta): Use it.
11801 (delete_alias_vars): Don't check flag_tree_points_to.
11802
11803 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
11804
11805 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
11806 TFmode as additional register mode cloberred by call.
11807
11808 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
11809
11810 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
11811 parallel pattern for library call returning DImode in
11812 mixed mode.
11813
11814 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
11815
11816 * config/rs6000/rs6000.c (function_arg): Generate parallel
11817 pattern for more split args.
11818
11819 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
11820
11821 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
11822 either gen_movdi_di_update or gen_movdi_si_update depending on
11823 target mode.
11824 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
11825 to generate two versions.
11826
11827 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
11828
11829 * Makefile.in (lambda-code.o): New.
11830 (lambda-trans.o): Ditto.
11831 (TREE_DATA_REF_H): Ditto.
11832 (LAMBDA_H): Ditto.
11833 (lambda-mat.o): Use LAMBDA_H.
11834 (tree-data-ref.o): Ditto.
11835 * lambda-code.c: New file. Lambda code generation algorithm.
11836 * lambda-trans.c: Ditto. Lambda transformation matrix support.
11837 * lambda.h: Add lambda loop structures.
11838 Add lambda loopnest structures.
11839 Add lambda body vector structure.
11840 Add lambda linear expression structures.
11841 Add prototypes for functions in new files.
11842 * lambda-mat.c: Include tree.h
11843
11844 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
11845 Sebastian Pop <pop@cri.ensmp.fr>
11846
11847 * tree-data-ref.h: Include lambda.h
11848 (free_dependence_relation): Declared here.
11849 (free_dependence_relations): Ditto.
11850 (free_data_refs): Ditto.
11851 * tree-data-ref.c (free_dependence_relation): New function.
11852 (free_dependence_relations): Ditto.
11853 (free_data_refs): Ditot.
11854 (analyze_all_data_dependences): Free datarefs and dependence_relations.
11855 (build_classic_dist_vector): Store in the dependence_relations the
11856 information. Each arc in the dependence_relations graph is labelled
11857 with the distance and direction vectors.
11858 (build_classic_dir_vector): Ditto.
11859 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
11860 Now computes again the whole dependence graph including read-read
11861 relations.
11862 (compute_data_dependences_for_loop): Now dependence_relations contains
11863 all the data, and thus it doesn't need to initialize the classic_dir
11864 and classic_dist vectors.
11865 (analyze_all_data_dependences): Adjusted for using the new interface of
11866 compute_data_dependences_for_loop. Remove the statistics dump.
11867
11868 2004-08-26 Bob Wilson <bob.wilson@acm.org>
11869
11870 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
11871 (xtensa_expand_block_move): Update comment.
11872 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
11873
11874 2004-08026 Richard Earnshaw <rearnsha@arm.com>
11875
11876 PR target/13506
11877 * toplev.c (crash_signal): If we crashed while emitting
11878 a user asm, then die more gracefully.
11879
11880 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11881
11882 PR target/17119.
11883 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
11884 checking for a valid constant, regardless of sign.
11885
11886 2004-08-25 Richard Henderson <rth@redhat.com>
11887
11888 PR target/16974
11889 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
11890 if the constant satisfies add_operand.
11891
11892 2004-08-25 Richard Henderson <rth@redhat.com>
11893
11894 PR debug/10695
11895 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
11896 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
11897 unwind info for >16-bit frames.
11898
11899 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
11900
11901 PR target/17171
11902 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
11903
11904 2004-08-25 Richard Henderson <rth@redhat.com>
11905
11906 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
11907 (TARGET_CANNOT_FORCE_CONST_MEM): New.
11908
11909 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
11910
11911 * doc/tree-ssa.texi: Document new operand iterator.
11912
11913 2004-08-26 Alan Modra <amodra@bigpond.net.au>
11914
11915 PR target/16480
11916 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
11917 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
11918 as PLUS base regs.
11919
11920 2005-08-28 Paul Brook <paul@codesourcery.com>
11921
11922 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
11923 -mfpu=vfp -march=armv5t
11924 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
11925
11926 2004-08-25 Richard Henderson <rth@redhat.com>
11927
11928 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11929 * target.h (struct gcc_target): Add scalar_mode_supported_p.
11930 * targhooks.c (default_scalar_mode_supported_p): New.
11931 * targhooks.h (default_scalar_mode_supported_p): Declare.
11932 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
11933
11934 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
11935 before attempting to create types. Tidy.
11936 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
11937
11938 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
11939 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11940
11941 2004-08-25 Richard Henderson <rth@redhat.com>
11942
11943 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
11944 set REAL_MODE_FORMAT for TFmode.
11945
11946 2004-08-25 Ziemowit Laski <zlaski@apple.com>
11947
11948 * c-decl.c (grokparm): New function.
11949 * c-tree.h (grokparm): New prototype.
11950
11951 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
11952
11953 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
11954 iterator controlling structure.
11955 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
11956 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
11957 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
11958 iterator flags.
11959 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
11960 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
11961 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
11962 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
11963 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
11964 Empty operand pointers.
11965 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
11966 (op_iter_next_use): New. Return next use_operand_p.
11967 (op_iter_next_def): New. Return next def_operand_p.
11968 (op_iter_next_tree): New. Return next operands as a tree.
11969 (op_iter_init): New. Initialize an iterator structure.
11970 (op_iter_init_use): New. Initialize structure and get the first use.
11971 (op_iter_init_def): New. Initialize structure and get the first def.
11972 (op_iter_init_tree): New. Initialize structure and get the first tree.
11973 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
11974 (op_iter_init_maydef): New. Initialize structure and get the first
11975 V_MAY_DEF operands.
11976 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
11977 * tree-dfa.c (compute_immediate_uses_for_stmt,
11978 redirect_immediate_uses): Use new operand iterator.
11979 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
11980 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
11981 operands instead of using *_disappeared_p routines.
11982 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
11983 ssa_rewrite_stmt): Use new operand iterator.
11984 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
11985 rewrite_trees): Use new operand iterator.
11986 * tree-pretty-print.c (dump_vops): Use new operand iterator.
11987 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
11988 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
11989 dump_points_to_info): Use new operand iterator.
11990 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
11991 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
11992 operand iterator.
11993 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
11994 propagate_necessity): Use new operand iterator.
11995 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
11996 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
11997 a parameter instead of a stmt_ann_t.
11998 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
11999 build_tree_conflict_graph): Use new operand iterator.
12000 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
12001 rewrite_mem_refs): Use new operand iterator.
12002 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
12003 check_loop_closed_ssa_use): Use new operand iterator.
12004 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
12005 * tree-ssanames.c (release_defs): Use new operand iterator.
12006 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
12007
12008 2004-08-25 Adam Nemet <anemet@lnxw.com>
12009
12010 * tlink.c (initial_cwd): New variable.
12011 (tlink_init): Initialize it.
12012 (recompile_files): Use tlink_execute() instead of system(). Don't
12013 duplicate verbose output of collect_execute. Restore initial_cwd.
12014 Update comment before the function.
12015
12016 2004-08-25 Ziemowit Laski <zlaski@apple.com>
12017
12018 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
12019 accept) a cast from one Objective-C pointer type to another.
12020
12021 2004-08-25 Paolo Carlini <pcarlini@suse.de>
12022
12023 * doc/install.texi: Document that libstdc++-v3 requires
12024 now automake 1.9.1.
12025
12026 2004-08-25 Caroline Tice <ctice@apple.com>
12027
12028 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
12029 to comments at start of function.
12030 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
12031 comment.
12032 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12033 merge_blocks_move_predecessor_nojumps,
12034 merge_blocks_move_successor_nojumps, merge_blocks_move,
12035 try_crossjump_to_edge, try_crossjump_bb): Likewise.
12036 * cfglayout.c (fixup_reorder_chain): Likewise.
12037 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
12038 cfg_layout_can_merge_blocks_p): Likewise.
12039 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
12040 * passes.c (rest_of_compilation): Update comments for calling
12041 optimization that partitions hot/cold basic blocks.
12042 * doc/invoke.texi: Update documentation of
12043 freorder-blocks-and-partition flag.
12044
12045 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
12046
12047 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
12048 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
12049
12050 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
12051
12052 * config/mips/mips.md (any_shift): New code macro.
12053 (optab, insn): New code attributes.
12054 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
12055 Use the standard rather than internal patterns for the MIPS16
12056 double-shift optimization.
12057 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
12058 Redefine using :GPR and any_shift.
12059 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
12060 to cover all three shifts.
12061 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
12062 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
12063 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
12064
12065 2004-08-24 Geoffrey Keating <geoffk@apple.com>
12066
12067 * gimplify.c (lookup_tmp_var): Separate temporaries when not
12068 optimizing.
12069
12070 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12071
12072 PR libstdc++/17005 (fix for HP-UX 11.11)
12073 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
12074 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
12075 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
12076 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
12077 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
12078 (LINK_SPEC): Handle march=1.0 option.
12079 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
12080 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
12081 (SUBTARGET_OPTIONS): New define.
12082 (LINK_SPEC): Handle march=1.0 option.
12083 (STARTFILE_SPEC): New define.
12084 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
12085 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
12086 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
12087 (SUBTARGET_OPTIONS): New define.
12088 (LINK_SPEC): Handle march=1.0 option.
12089 (STARTFILE_SPEC): New define.
12090 * config/pa/pa.c (override_options): Add code to process -munix= option.
12091 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
12092 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
12093 defines.
12094 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
12095 (SUBTARGET_OPTIONS): Provide default define.
12096 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
12097 STANDARD_STARTFILE_PREFIX_2): New defines.
12098 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
12099 (ENDFILE_SPEC): Use %O.
12100 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
12101 Mention issue caused by changing namespace and runtime to UNIX 95/98.
12102 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
12103 Document -munix=std option.
12104
12105 2004-08-25 Steven Bosscher <stevenb@suse.de>
12106
12107 * cse.c (cse_around_loop, cse_check_loop_start,
12108 cse_set_around_loop): Remove.
12109 (cse_basic_block): Remove the around_loop argument.
12110 (cse_end_of_basic_block): Remove the after_loop argument.
12111 (cse_main): Likewise.
12112 * rtl.h (cse_main): Update prototype.
12113 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
12114 rest_of_handle_gcse): Update cse_main calls.
12115
12116 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
12117
12118 * tree.h (build_int_cst): New, sign extended constant.
12119 (build_int_cstu): New, zero extended constant.
12120 (build_int_cst_wide): Renamed from build_int_cst.
12121 * tree.c (build_int_cst, build_int_cstu): New.
12122 (build_int_cst_wide): Renamed from build_int_cst.
12123 (make_vector_type, build_common_tree_nodes,
12124 build_common_tree_nodes_2): Adjust build_int_cst calls.
12125 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
12126 expand_builtin_strpbrk, expand_builtin_fputs,
12127 build_string_literal, expand_builtin_printf,
12128 expand_builtin_sprintf, fold_builtin_classify_type,
12129 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
12130 fold_builtin_toascii, fold_builtin_isdigit,
12131 simplify_builtin_strstr, simplify_builtin_strpbrk,
12132 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
12133 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
12134 DEF_ATTR_INT): Likewise.
12135 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
12136 Likewise.
12137 * c-lex.c (interpret_integer, lex_charconst): Likewise.
12138 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
12139 * c-pretty-print.c (pp_c_integer_constant): Likewise.
12140 * c-typeck.c (really_start_incremental_init, push_init_level,
12141 set_nonincremental_init_from_string): Likewise.
12142 * calls.c (load_register_parameters): Likewise.
12143 convert.c (convert_to_pointer): Likewise.
12144 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
12145 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
12146 build_gcov_info): Likewise.
12147 * except.c (init_eh, assign_filter_values): Likewise.
12148 * expmed.c (store_fixed_bit_field, extract_bit_field,
12149 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
12150 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
12151 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
12152 * expr.c (convert_move, emit_group_load, emit_group_store,
12153 expand_assignment, store_constructor, store_field,
12154 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
12155 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
12156 invert_truthvalue, optimize_bit_field_compare,
12157 decode_field_reference, all_ones_mask_p, constant_boolean_node,
12158 fold_div_compare, fold, fold_read_from_constant_string,
12159 fold_negate_const, fold_abs_const, fold_not_const, round_up,
12160 round_down): Likewise.
12161 * function.c (assign_parm_setup_block): Likewise.
12162 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
12163 Likewise.
12164 * stor-layout.c (layout_type, initialize_sizetypes,
12165 set_min_and_max_values_for_integral_type): Likewise.
12166 * tree-chrec.c (chrec_fold_multiply_poly_poly,
12167 reset_evolution_in_loop): Likewise.
12168 * tree-chrec.h (build_polynomial_chrec): Likewise.
12169 * tree-complex.c (build_replicated_const): Likewise.
12170 * tree-eh.c (honor_protect_cleanup_actions,
12171 lower_try_finally_onedest, lower_try_finally_copy,
12172 lower_try_finally_switch): Likewise.
12173 * tree-mudflap.c (mf_build_string, mx_register_decls,
12174 mudflap_register_call, mudflap_enqueue_constant): Likewise.
12175 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
12176 * tree-pretty-print.c (dump_generic_node): Likewise.
12177 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
12178 Likewise.
12179 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
12180 * tree-ssa-loop-niter.c (number_of_iterations_cond,
12181 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
12182 Likewise.
12183 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
12184 canonicalize_loop_induction_variables): Likewise.
12185 * tree-vectorizer.c (vect_create_index_for_array_ref,
12186 vect_transform_loop_bound, vect_compute_data_ref_alignment):
12187 Likewise.
12188
12189 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
12190 alpha_gimplify_va_arg_1): Likewise.
12191 * config/arm/arm.c (arm_get_cookie_size): Likewise.
12192 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
12193 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
12194 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12195 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
12196 mips_gimplify_va_arg_expr): Likewise.
12197 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12198 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
12199 add_compiler_branch_island): Likewise.
12200 * config/s390/s390.c (s390_va_start): Likewise.
12201 * config/sh/sh.c (sh_va_start): Likewise.
12202 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
12203 Likewise.
12204 * config/xtensa/xtensa.c (xtensa_va_start,
12205 xtensa_gimplify_va_arg_expr): Likewise.
12206
12207 * objc/objc-act.c (build_objc_string_object,
12208 build_objc_symtab_template, init_def_list, init_objc_symtab,
12209 init_module_descriptor, generate_static_references,
12210 build_selector_translation_table, get_proto_encoding,
12211 build_typed_selector_reference, build_selector_reference,
12212 build_next_objc_exception_stuff,
12213 build_method_prototype_list_template, generate_descriptor_table,
12214 generate_protocols, build_protocol_initializer,
12215 build_ivar_list_template, build_method_list_template,
12216 build_ivar_list_initializer, generate_ivars_list,
12217 generate_dispatch_table, generate_protocol_list,
12218 build_category_initializer, build_shared_structure_initializer,
12219 generate_shared_structures, handle_impent,
12220 generate_objc_image_info): Likewise.
12221
12222 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
12223
12224 * cfglayout.c (duplicate_insn_chain): Remove references to
12225 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
12226 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
12227 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
12228 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
12229 and NOTE_INSN_LOOP_CONT.
12230 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
12231 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
12232 and NOTE_INSN_LOOP_CONT.
12233 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
12234 check_dbra_loop, loop_dump_aux): Remove references to removed notes
12235 and fields.
12236 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
12237 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
12238 references to removed notes and fields.
12239 (subtract_reg_term, ujump_to_loop_cont): Remove.
12240
12241 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
12242
12243 * doc/install.texi: Document that libcpp does not require
12244 Automake any longer. Document that Automake 1.9.1 should
12245 work everywhere.
12246
12247 2004-08-25 Zack Weinberg <zack@codesourcery.com>
12248
12249 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
12250 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
12251 DWARF_DEBUGGING_INFO from choice-of-definition chain;
12252 restructure using C89 features (#elif, #error).
12253 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
12254 * config/sh/sh.h: Remove references to DWARF_DEBUG.
12255 * doc/invoke.texi: Remove references to DWARF version 1;
12256 clarify why -gdwarf-2<n> doesn't work.
12257
12258 2004-08-25 Zack Weinberg <zack@codesourcery.com>
12259
12260 * basic-block.h (BB_SET_PARTITION): Clear old value first.
12261 * cfg.c (clear_bb_flags): Don't clear partition setting.
12262 * ifcvt.c (find_if_case_1): Remove ??? comment.
12263
12264 2004-08-25 Alan Modra <amodra@bigpond.net.au>
12265
12266 PR target/17052
12267 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
12268 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
12269 current_function_stdarg in place of sysv_varargs_p.
12270 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
12271 sysv_varargs_p.
12272
12273 2004-08-24 Richard Henderson <rth@redhat.com>
12274
12275 PR target/16298
12276 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
12277 random codes within CONST.
12278
12279 2004-08-24 James E Wilson <wilson@specifixinc.com>
12280
12281 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
12282 -freorder-blocks-and-partition.
12283
12284 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12285
12286 PR middle-end/17044
12287 * tree-ssa-threadupdate.c (redirection_data): Make static.
12288 (thread_block): Use ggc_alloc_cleared to allocate struct
12289 redirection_data. Don't free elements in redirection_data.
12290
12291 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12292
12293 * config/mips/predicates.md (small_data_pattern): Match prefetches.
12294
12295 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12296
12297 PR tree-optimization/17016
12298 * tree-ssa-loop-niter.c (number_of_iterations_cond,
12299 number_of_iterations_exit): Use POINTER_TYPE_P instead
12300 of testing for POINTER_TYPE.
12301
12302 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12303
12304 * tree-ssa-loop-ivcanon.c: New file.
12305 * tree-ssa-loop-manip.c (create_iv): New function.
12306 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
12307 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
12308 * cfgloop.c (mark_single_exit_loops): New function.
12309 (verify_loop_structure): Verify single-exit loops.
12310 * cfgloop.h (struct loop): Add single_exit field.
12311 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
12312 (mark_single_exit_loops): Declare.
12313 (tree_num_loop_insns): Declare.
12314 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
12315 (duplicate_loop_to_header_edge): Use it.
12316 * common.opt (fivcanon): New flag.
12317 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
12318 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
12319 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
12320 (bsi_insert_on_edge_immediate): New function.
12321 * tree-flow.h (bsi_insert_on_edge_immediate,
12322 canonicalize_induction_variables, tree_unroll_loops_completely,
12323 create_iv): Declare.
12324 * tree-optimize.c (init_tree_optimization_passes): Add
12325 pass_iv_canon and pass_complete_unroll.
12326 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
12327 * tree-scalar-evolution.c (get_loop_exit_condition,
12328 get_exit_conditions_rec, number_of_iterations_in_loop,
12329 scev_initialize): Use single_exit information.
12330 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
12331 missing assumptions.
12332 (loop_niter_by_eval): Return number of iterations as unsigned
12333 int.
12334 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
12335 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
12336 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
12337 New passes.
12338 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
12339 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
12340 the defining statement is ready.
12341 * tree-vectorizer.c (vect_create_iv_simple): Removed.
12342 (vect_create_index_for_array_ref, vect_transform_loop_bound):
12343 Use create_iv.
12344 (vect_transform_loop_bound): Use single_exit information.
12345 (vect_analyze_loop_form): Cleanup bogus tests.
12346 (vectorize_loops): Do not call flow_loop_scan.
12347 * tree.h (may_negate_without_overflow_p): Declare.
12348 * fold-const.c (may_negate_without_overflow_p): Split out from ...
12349 (negate_expr_p): ... this function.
12350 (tree_expr_nonzero_p): Handle overflowed constants correctly.
12351 * doc/invoke.texi (-fivcanon): Document.
12352 * doc/passes.texi: Document canonical induction variable creation.
12353
12354 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12355
12356 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
12357 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
12358 using the mode of the operand to decide between them.
12359 * config/mips/mips.md (MOVECC): New mode macro.
12360 (ccreg): New mode attribute.
12361 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
12362 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
12363 (mov[sd]icc): Redefine using :GPR.
12364
12365 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12366
12367 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
12368 (mips_prefetch_cookie): New function.
12369 * config/mips/mips.c (print_operand_address): Fix handling of
12370 ADDRESS_CONST_INT.
12371 (mips_emit_prefetch): Delete.
12372 (mips_prefetch_cookie): New function.
12373 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
12374 mode of QImode for the address_operand. Use mips_prefetch_cookie
12375 to calculate the first "pref" operand.
12376 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
12377 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
12378
12379 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
12380
12381 * arm.md: Include predicates.md.
12382 * predicates.md: New file.
12383 * arm.c (s_register_operand, arm_hard_register_operand)
12384 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
12385 (arm_immediate_operand, arm_neg_immediate_operand)
12386 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
12387 (arm_add_operand, arm_addimm_operand, arm_not_operand)
12388 (offsettable_memory_operand, alignable_memory_operand)
12389 (arm_reload_memory_operand, arm_float_rhs_operand)
12390 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
12391 (index_operand, shiftable_operator, logical_binary_operator)
12392 (shift_operator, equality_operator, arm_comparison_operator)
12393 (minmax_operator, cc_register, dominant_cc_register)
12394 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
12395 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
12396 (const_shift_operand, load_multiple_operation)
12397 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
12398 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
12399 (cirrus_register_operand, cirrus_fp_register)
12400 (cirrus_shift_const): Delete, replaced with equivalents in
12401 predicates.md.
12402 (shift_op): Handle ROTATE.
12403 * arm-protos.h: Delete declarations for above.
12404 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
12405 * t-arm (MD_INCLUDES): Add predicates.md.
12406 (s-preds): Depends on MD_INCLUDES.
12407
12408 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12409
12410 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
12411 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
12412 patterns. Redefine using :GPR. Give the match_operator a mode.
12413 Use '%2' rather than '%z2' for operand 2.
12414
12415 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12416
12417 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
12418 attribute.
12419
12420 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12421
12422 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
12423 of internal patterns.
12424 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
12425 Redefine using :P.
12426 (tablejump): Use expand_binop to calculate address. Adjust names
12427 of internal patterns.
12428 (tablejump[sd]i): Renamed from tablejump_internal[12].
12429 Redefine using :P.
12430 (tablejump_mips16[12]): Delete.
12431
12432 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12433
12434 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
12435 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
12436 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
12437 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
12438 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
12439
12440 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
12441
12442 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
12443 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
12444 using :GPR.
12445 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
12446 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
12447 (*branch_equality[sd]i_inverted): Likewise
12448 branch_equality{,_di}_inverted.
12449 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
12450 Redefine using :GPR.
12451
12452 2004-08-24 Zack Weinberg <zack@codesourcery.com>
12453
12454 * rtl.def: Reorganize, placing all codes used only in machine
12455 descriptions at the end.
12456
12457 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
12458 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
12459 rtx_name, rtx_format arrays by direct reference to rtl.def,
12460 first undefining GENERATOR_FILE. Define enum insn_note and
12461 note_insn_name array by direct reference to insn-notes.def.
12462 (adjust_field_rtx_def): Remove local definition of rtx_name.
12463 Use symbolic names for insn notes.
12464 * Makefile.in (gengtype.o): Update dependencies.
12465
12466 2004-08-24 Zack Weinberg <zack@codesourcery.com>
12467
12468 * basic-block.h (struct basic_block_def): Reorder fields to
12469 eliminate interior padding. Remove 'partition' field.
12470 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
12471 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
12472 (BB_COPY_PARTITION): New macros.
12473 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
12474 Replace all references to the 'partition' field of a basic
12475 block with new macros.
12476
12477 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
12478 * final.c (final_scan_insn): Don't handle it.
12479 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
12480 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
12481 * sched-rgn.c (sched_is_disabled_for_current_region_p):
12482 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
12483
12484 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
12485
12486 * c-decl.c (c_init_decl_processing): Adjust
12487 build_common_tree_nodes call.
12488 * expmed.c (const_mult_add_overflow_p): Use
12489 build_distinct_type_copy.
12490 * stor-layout.c (early_type_list): Remove.
12491 (layout_type): Don't append to early_type_list.
12492 (initialize_sizetypes): Add signed_p argument.
12493 (set_sizetype): Overwrite the stub type nodes directly.
12494 * tree.c (copy_node_stat): Clear a type's value cache here ...
12495 (build_distinct_type): ... not here.
12496 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
12497 * tree.h (initialize_sizetypes): Add signed_p argument.
12498 (build_common_tree_nodes): Likewise.
12499
12500 * objc/objc-act.c (get_static_reference): Use
12501 build_variant_type_copy.
12502 (get_protocol_reference): Likewise.
12503 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
12504
12505 2004-08-24 Richard Henderson <rth@redhat.com>
12506 Andrew Pinski <apinski@apple.com>
12507
12508 * gimplify.c (gimplify_array_ref_to_plus): Delete.
12509 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
12510 for ARRAY_REF.
12511
12512 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
12513 ARRAY_REF also to get to the STRING_CST.
12514
12515 2004-08-24 Paul Brook <paul@codesourcery.com>
12516
12517 * config/arm/arm.c (arm_override_options): Update error message.
12518 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
12519 TARGET_HARD_FLOAT_ABI.
12520 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
12521 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
12522
12523 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12524
12525 PR target/17093
12526 * config/m32r.md (movsi_sda): Add SI mode specification to
12527 UNSPEC.
12528
12529 2004-08-24 Nick Clifton <nickc@redhat.com>
12530
12531 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
12532 of seth_add3_operand.
12533
12534 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
12535
12536 * Makefile.in (PROTO_OBJS): Add errors.o.
12537 * protoize.c (fancy_abort): Remove.
12538 * mips-tfile.c (fancy_abort): Add parameters.
12539
12540 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
12541
12542 * doc/trouble.texi (C++ misunderstandings): Fix example code.
12543
12544 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
12545
12546 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
12547 (host-default.o): Add dependency on HOOKS_H.
12548 * config/x-linux: Likewise.
12549 * config/x-solaris: Likewise.
12550 * config/i386/x-mingw32: Likewise.
12551 * config/rs6000/x-darwin: Likewise.
12552
12553 2004-08-23 James E Wilson <wilson@specifixinc.com>
12554
12555 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
12556 DEF_REG_NOTE.
12557
12558 2004-08-23 Mark Mitchell <mark@codesourcery.com>
12559
12560 PR c/14492
12561 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
12562
12563 2004-08-23 Diego Novillo <dnovillo@redhat.com>
12564
12565 * cfg.c (check_bb_profile): Fix typos.
12566 * function.c (assign_parm_is_stack_parm): Likewise.
12567 * tree-nested.c: Likewise.
12568
12569 2004-08-23 Daniel Jacobowitz <dan@debian.org>
12570
12571 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
12572 Remove TYPECODE.
12573 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
12574
12575 2004-08-23 Eric Christopher <echristo@redhat.com>
12576
12577 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
12578 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
12579 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
12580 * target.h: Ditto.
12581 * hooks.h: Include machmode.h.
12582 (hook_bool_mode_false): Declare.
12583 * hooks.c (hook_bool_mode_false): Define.
12584 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
12585 * stor-layout.c (layout_type): Ditto.
12586 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
12587 Define to target macro.
12588 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
12589 * config/arm/arm.c: Ditto. Use.
12590 * config/arm/arm.h: Ditto.
12591 * config/arm/arm-protos.h: Ditto.
12592 * config/i386/i386.c: Ditto.
12593 * config/i386/i386.h: Ditto.
12594 * config/rs6000/rs6000.c: Ditto.
12595 * config/rs6000/rs6000.h: Ditto.
12596 * config/sh/sh.c: Ditto.
12597 * config/sh/sh.h: Ditto.
12598 * config/sh/sh-protos.h: Ditto.
12599 * config/sh/sh.md: Use.
12600 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
12601 to TARGET_VECTOR_MODE_SUPPORTED_P.
12602
12603 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
12604
12605 * Makefile.in (BUILD_ERRORS): Set to build-errors.
12606 (errors.o): New target for host.
12607 (build-errors.o): New target for build.
12608 (genobjs): Replace errors.o with build-errors.
12609 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
12610 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
12611 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
12612 (fix-header.o): Add errors.h
12613 * collect2.c (fancy_abort): Add parameters.
12614 * collect2.h (fancy_abort): Don't declare.
12615 * errors.h (fancy_abort): Don't declare.
12616 * errors.c: Include either bconfig.h or config.h.
12617 (fancy_abort): Trim filename.
12618 * fix-header.c (v_fatal, fatal): Remove.
12619 (progname): Remove definition.
12620 (main): Set progname here.
12621 * gcc.c (fancy_abort): Add parameters.
12622 * gcc.h (fancy_abort): Remove declaration.
12623 * gcov.c (fancy_abort): Remove.
12624 * rtl.h (fancy_abort): Don't declare.
12625 (abort): Don't define.
12626 * tree.h (fancy_abort): Don't declare.
12627 (abort): Don't define.
12628 * system.h (fancy_abort): Declare.
12629 (abort): Define to fancy_abort.
12630 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
12631
12632 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
12633 (usize_type, ubitsizetype): Remove.
12634 * stor-layout.c (set_sizetype): Don't initialize usizetype,
12635 ubitsizetype.
12636 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
12637
12638 * tree.h (build_distinct_type_copy): New.
12639 (build_type_copy): ... here. Rename to ...
12640 (build_variant_type_copy): ... here.
12641 * tree.c (build_qualified_type): Rename build_type_copy call.
12642 (build_distinct_type_copy): New, broken out of ...
12643 (build_type_copy): ... here. Rename to ...
12644 (build_variant_type_copy): ... here. Use
12645 build_distinct_type_copy.
12646 (build_common_tree_nodes_2): Rename build_type_copy call.
12647 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
12648 call.
12649 (handle_packed_attribute, handle_unused_attribute,
12650 handle_transparanet_union_attribute, handle_aligned_attribute,
12651 handle_deprecated_attribute): Likewise.
12652 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
12653 Likewise.
12654 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
12655 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
12656 build_distinct_type_copy.
12657
12658 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12659
12660 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
12661 attribute.
12662
12663 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12664
12665 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
12666 loads and stores.
12667 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
12668 formerly unnamed patterns. Redefine using :P for the address. Remove
12669 explicit length attributes.
12670
12671 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12672
12673 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
12674 New functions.
12675 (single_reachable_address): Use them.
12676 (schedule_sm): Add dump.
12677 (is_call_clobbered_ref): New function.
12678 (determine_lsm_reg): Check whether the reference is call clobbered.
12679 Only work for gimple_reg_type values.
12680
12681 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12682
12683 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
12684 $31 store insns. Redefine using :GPR.
12685
12686 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12687
12688 * config/mips/mips.md (P): New mode macro.
12689 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
12690 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
12691 Add mode attributes.
12692
12693 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12694
12695 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
12696 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
12697 later constants to cover the gap.
12698 (load, store): New mode attributes.
12699 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
12700 Use new unspec constants.
12701
12702 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12703
12704 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
12705 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
12706 to use register_operand rather than uns_arith_operand as the predicate
12707 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
12708 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
12709 Redefine using :GPR. Make same predicate change here. Extend the
12710 commutativity of operands 1 and 2 from the SImode version to the
12711 DImode one.
12712 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
12713 but with no predicate changes.
12714 (*nor[sd]i3): Redefine using :GPR.
12715
12716 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12717
12718 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
12719 noreturn functions.
12720
12721 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12722
12723 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
12724 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
12725 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
12726 rather than "%z2" (with a fake const0_rtx for operand 2).
12727 (ffs[sd]i2): Redefine using :GPR.
12728 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
12729
12730 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12731
12732 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
12733
12734 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12735
12736 * config/mips/mips.md (any_extend): New code macro.
12737 (u, su): New code attributes.
12738 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
12739 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
12740 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
12741 (*{s,u}mul_acc_di): Redefine using any_extend.
12742 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
12743 to reflect real insn names.
12744 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
12745 with an any_extend template.
12746 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
12747 Add '*' to name.
12748
12749 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12750
12751 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
12752 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
12753 (mul[sd]i3_r4000): Redefine using :GPR.
12754 (mulsi3_mult3): Don't check TARGET_MAD separately.
12755 (muldi3_mult3): Moved after mulsi_mult3.
12756
12757 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12758
12759 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
12760 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
12761 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
12762 (TARGET_GAS, TARGET_MIPS_AS): Delete.
12763 (TARGET_GPWORD): Define to true for n32 on IRIX.
12764 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
12765 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
12766 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
12767 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
12768 (MDEBUG_ASM_SPEC): Delete, folding into...
12769 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
12770 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
12771 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
12772 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
12773 to define asm_abi_default_spec.
12774 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
12775 (TARGET_ASM_SELECT_SECTION): Delete.
12776 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
12777 for non-mips16 code, removing previous workaround for SGI assemblers.
12778 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
12779 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
12780 (override_options): Remove !TARGET_GAS and !have_named_sections code.
12781 (print_operand): Fold TARGET_GAS conditionals into asm strings.
12782 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
12783 ASM_STABS_OP and ASM_STABN_OP.
12784 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
12785 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
12786 (mips_output_function_prologue): Remove !TARGET_GAS code.
12787 (mips_select_rtx_section): Remove !have_named_sections code.
12788 (mips_select_section): Delete.
12789 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
12790 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
12791 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
12792 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
12793 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
12794 * config/mips/windiss.h (ASM_SPEC): Likewise.
12795
12796 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12797
12798 * read-rtl.c (map_value, mapping, macro_group): New structures.
12799 (BELLWETHER_CODE): New macro.
12800 (modes, codes, bellwether_codes): New variables.
12801 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
12802 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
12803 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
12804 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
12805 (add_map_value, initialize_macros): New functions.
12806 (def_hash, def_hash_eq_p): Generalize to anything that points to,
12807 or starts with, a char * field.
12808 (find_macro, read_mapping, check_code_macro): New functions.
12809 (read_rtx_1): New, split out from read_rtx. Handle the new
12810 define_{mode,code}_{macro,attr} constructs. Use find_macro
12811 to parse the name of a code or mode. Use BELLWETHER_CODE to
12812 extract the format and to choose a suitable code for rtx_alloc.
12813 Modify recursive invocations to use read_rtx_1.
12814 (read_rtx): Call initialize_macros. Apply code and mode macros
12815 to the rtx returned by read_rtx_1. Cache everything after the
12816 first macro expansion for subsequent read_rtx calls.
12817 * doc/md.texi: Document new .md constructs.
12818 * config/mips/mips.md (GPR): New mode macro.
12819 (d, si8_di5): New mode attributes.
12820 (any_cond): New code macro.
12821 (add[sd]i3): Redefine using :GPR.
12822 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
12823 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
12824 previously unnamed MIPS16 patterns.
12825 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
12826 lines. Don't match (plus (const_int 0) ...).
12827 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
12828 Use a define_split to generate the addition.
12829 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
12830 (subsi3_internal): Delete.
12831 (*subsi3_extended): Renamed from subsi3_internal_2.
12832 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
12833 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
12834 using an any_cond template.
12835
12836 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12837
12838 * read-rtl.c (read_rtx): Tidy use of format_ptr.
12839
12840 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
12841
12842 * read-rtl.c (string_obstack): New file-scope variable.
12843 (read_string, read_quoted_string, read_braced_string)
12844 (read_escape): Remove obstack parameter and use string_obstack instead.
12845 (read_rtx): Remove function-local rtl_obstack and initialize
12846 string_obstack instead. Update call to read_string.
12847
12848 2004-08-22 Andrew Pinski <apinski@apple.com>
12849
12850 PR c/15262
12851 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
12852 expression is not constant.
12853 (c_finish_return): Do not go through INDIRECT_REF when looking
12854 for the inner expression of an ADDR_EXPR for warning about.
12855
12856 2004-08-22 Richard Henderson <rth@redhat.com>
12857
12858 PR 17075
12859 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
12860 create new blocks and fall through.
12861 (expand_gimple_basic_block): Update to match.
12862
12863 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
12864
12865 * reload.c (find_reloads_address): Make return value tri-state.
12866 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
12867 (find_reloads): Assume that reloaded addresses match 'o' or
12868 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
12869 returned 1 (not -1). Omit optional reloads for address operands
12870 only if find_reloads_address returned 1 (not -1).
12871
12872 * config/s390/s390.c (legitimize_reload_address): New function.
12873 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
12874 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
12875 legitimize_reload_address.
12876
12877 2004-08-22 Richard Hendersion <rth@redhat.com>
12878
12879 * tree.h (SAVE_EXPR_RESOLVED_P): New.
12880 * gimplify.c (gimplify_save_expr): Use it.
12881 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
12882 on the temporary variable.
12883
12884 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
12885
12886 * fold-const.c (rtl_expr_nonnegative_p): Delete.
12887 * tree.h (rtl_expr_nonnegative_p): Remove.
12888
12889 2004-08-22 Steven Bosscher <stevenb@suse.de>
12890
12891 * config/i386/ppro.md (ppro_complex_insn): Add missing check
12892 for cpu==pentiumpro.
12893
12894 * combine.c (struct reg_stat): Fix comment typo.
12895
12896 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
12897
12898 * c-tree.h (c_sizeof_nowarn): Remove.
12899
12900 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
12901
12902 * c-decl.c (set_array_declarator_type): Rename to
12903 set_array_declarator_inner.
12904 (build_c_parm, build_attrs_declarator, build_function_declarator):
12905 New functions.
12906 (make_pointer_declarator): Call build_attrs_declarator.
12907 * c-tree.h (set_array_declarator_type): Rename to
12908 set_array_declarator_inner.
12909 (build_c_parm, build_attrs_declarator, build_function_declarator):
12910 New prototypes.
12911 * c-parse.in (after_type_declarator,
12912 parm_declarator_starttypename, parm_declarator_nostarttypename,
12913 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
12914 firstparm): Use these functions
12915
12916 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
12917
12918 * c-decl.c (build_array_declarator, set_array_declarator_type,
12919 start_decl, grokdeclarator, grokparms): Change boolean parameters
12920 to type bool.
12921 * c-tree.h (build_array_declarator, set_array_declarator_type,
12922 start_decl): Update prototypes.
12923 * c-decl.c, c-parse.in: All callers changed.
12924
12925 2004-08-21 Mike Stump <mrs@apple.com>
12926
12927 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
12928 (darwin_fix_and_continue): Likewise.
12929 (darwin_fix_and_continue_switch): Likewise.
12930 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
12931 (darwin_fix_and_continue): Likewise.
12932 (darwin_fix_and_continue_switch): Likewise.
12933
12934 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
12935
12936 PR c++/16030
12937 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
12938 Remove, merging into ...
12939 (gen_stdcall_or_fastcall_suffix): New function, returning tree
12940 rather than const char*, and accepting additional parameter.
12941 Don't add suffix to '*'-prefixed symbols or variadic functions.
12942 (i386_pe_encode_section_info): Adjust for call to new function.
12943 Call change_decl_assembler_name.
12944
12945 2004-08-20 Mike Stump <mrs@apple.com>
12946
12947 * config/darwin.c (machopic_indirect_data_reference): Mark
12948 stubs as defined.
12949 * config/386/386.c (darwin_local_data_pic): Add.
12950 (legitimate_constant_p): Reorder so that PLUS handling runs
12951 before darwin_local_data_pic to match the ordering in
12952 legitimate_pic_address_disp_p and so that MINUS runs after
12953 darwin_local_data_pic as otherwise the darwin_local_data_pic
12954 logic can be skipped, which would be very bad.
12955 (legitimate_pic_address_disp_p): Move from from here to
12956 darwin_local_data_pic so it can be reused.
12957
12958 2004-08-21 Alan Modra <amodra@bigpond.net.au>
12959
12960 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
12961 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
12962 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
12963 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
12964 (RS6000_ABI_NAME): Define as "linux".
12965 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
12966 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
12967 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
12968 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
12969 * config/rs6000/rs6000.c (dot_symbols): New global var.
12970 (rs6000_output_function_entry): New function, modified for
12971 !DOT_SYMBOLS..
12972 (print_operand <case 'z'>): ..extracted from here.
12973 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
12974 (rs6000_output_function_epilogue): Likewise.
12975 (rs6000_elf_declare_function_name): Likewise.
12976 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
12977 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
12978 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
12979 * configure: Regenerate.
12980 * config.in: Regenerate.
12981
12982 2004-08-20 Mark Mitchell <mark@codesourcery.com>
12983
12984 * reload.c (find_reloads_address): Fix thinko in previous change.
12985
12986 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
12987 a CONST_INT.
12988
12989 2004-08-20 Jakub Jelinek <jakub@redhat.com>
12990
12991 PR rtl-optimization/17099
12992 * combine.c (force_to_mode): Check if inner_mask has any bits set
12993 outside of GET_MODE (x) instead of op_mode.
12994
12995 2004-08-20 Mark Mitchell <mark@codesourcery.com>
12996
12997 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
12998 fragment.
12999 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
13000 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
13001 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
13002 architecture.
13003 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
13004 configurations.
13005 * config/arm/t-symbian: New file.
13006
13007 2004-08-20 Andrew Pinski <apinski@apple.com>
13008
13009 * regrename.c (kill_value_regno): ANSIfy.
13010
13011 2004-08-20 Dale Johannesen <dalej@apple.com>
13012
13013 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
13014
13015 2004-08-20 Daniel Jacobowitz <dan@debian.org>
13016
13017 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
13018 (kill_value_regno): New function, derived from kill_value.
13019 (kill_value): Update.
13020 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
13021
13022 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
13023
13024 Fix PR tree-optimization/17111
13025 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
13026 of non-value_handles.
13027 (bitmap_set_contains): All constants are in every set.
13028
13029 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
13030
13031 * fold-const.c (round_up, round_down): Use build_int_cst.
13032 Optimize common case.
13033
13034 2004-08-20 Zack Weinberg <zack@codesourcery.com>
13035 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13036
13037 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
13038 one_only_data_section): Rename to som_readonly_data_section,
13039 som_one_only_readonly_data_section and som_one_only_data_section.
13040 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
13041 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
13042 conditional defines.
13043 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
13044 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
13045 string values.
13046 (pa_select_section): Use renamed section functions.
13047 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
13048 SOM_READONLY_DATA_SECTION_FUNCTION,
13049 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
13050 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
13051 Define here ...
13052 * config/pa/som.h: ... not here.
13053 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
13054 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
13055 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
13056 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
13057 (READONLY_DATA_SECTION): Use som_readonly_data_section.
13058
13059 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
13060
13061 * fold-const.c (int_const_binop): Don't generate non-overflowing
13062 size-types specially.
13063 (fold_convert_const): Likewise.
13064
13065 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
13066 clear cache on copied sizetype.
13067
13068 2004-08-20 Ben Elliston <bje@au.ibm.com>
13069
13070 * configure.ac: Don't escape apostrophe in --enable-coverage help.
13071 * configure: Regenerate.
13072
13073 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
13074
13075 PR 5620
13076 * gcc.c (struct stat input_stat): Don't define if
13077 HOST_LACKS_INODE_NUMBERS
13078 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
13079 than stat to determine if temp file is same as input file.
13080 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
13081 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
13082
13083 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
13084
13085 * configure.ac (mips*-*-*): Print an error if not using GAS.
13086 * configure: Regenerated.
13087 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
13088 comments about buggy MIPSpro assemblers.
13089 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
13090 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
13091 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
13092 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
13093 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
13094 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
13095 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
13096 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
13097 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
13098 of more general IRIX 6 definitions.
13099 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
13100 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
13101 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
13102 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
13103 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
13104 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
13105 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
13106 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
13107 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
13108 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
13109 (LINK_SPEC): Move most of definition to iris.h.
13110 (SUBTARGET_LINK_SPEC): New macro.
13111 (IRIX_STARTFILE_SPEC): Fold into...
13112 (STARTFILE_SPEC): ...here.
13113 (IRIX_ENDFILE_SPEC): Fold into...
13114 (ENDFILE_SPEC): ...here.
13115 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
13116 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
13117 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
13118 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
13119 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
13120 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
13121 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
13122 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
13123 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
13124 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
13125 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
13126 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
13127 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
13128 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
13129 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
13130 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
13131 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
13132 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
13133 (TARGET_IRIX6): Define to 1.
13134 (DRIVER_SELF_SPECS): Define.
13135 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
13136 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
13137 (SUBTARGET_LINK_SPEC): New macro.
13138 (IRIX_STARTFILE_SPEC): Fold into...
13139 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
13140 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
13141 (LIB_SPEC, LIBGCC_SPEC): Use them.
13142 (LIB_SPEC): Remove !mabi=* case.
13143 (IRIX_ENDFILE_SPEC): Fold into...
13144 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
13145 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
13146 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
13147 (TARGET_IRIX6): New macro.
13148 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
13149 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
13150 (LABEL_AFTER_LOC): Delete.
13151 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
13152 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
13153 (mips_build_builtin_va_list): Check TARGET_IRIX6.
13154 (override_options): Remove TARGET_SGI_O32_AS-related code.
13155 (irix_output_external_libcall): Make static.
13156 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
13157 LABEL_AFTER_LOC.
13158 (mips_file_start): Tidy guard for ABI sections. Remove use of
13159 ABICALLS_ASM_OP; use .abicalls instead.
13160 (mips_output_aligned_decl_common, mips_declare_object_name)
13161 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
13162 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
13163 .globl foo .text directives.
13164 (irix_asm_named_section_1, irix_asm_named_section)
13165 (irix_section_align_entry, irix_section_align_htab)
13166 (irix_orig_asm_out_file, irix_section_align_entry_eq)
13167 (irix_section_align_entry_hash, irix_asm_output_align)
13168 (irix_file_start, irix_section_align_1, copy_file_data)
13169 (irix_file_end, irix_section_type_flags): Delete.
13170 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
13171 Use standard section syntax. Remove protective "jr $31".
13172 (__gcc_fini): Likewise .gcc_fini.
13173 * config/mips/irix-crtn.asm: Adjust sections accordingly.
13174 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
13175 iris5gas.h.
13176 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
13177 from t-irix-gld.
13178 (EXTRA_MULTILIB_PARTS): Define.
13179 * config/mips/t-iris6: Remove bogus comment.
13180 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
13181 * config/mips/iris5gas.h, config/mips/iris5gld.h,
13182 config/mips/iris6gas.h, config/mips/iris6gld.h,
13183 config/mips/t-iris5-as, config/mips/t-iris5-gas
13184 config/mips/t-irix-gld: Delete.
13185 * config/mips/iris.h: New file.
13186 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
13187
13188 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
13189
13190 * postreload.c (reload_cse_move2add): Allow any condjump, but check
13191 that the implicit set isn't clobbered in the jump insn.
13192
13193 2004-08-19 Mark Mitchell <mark@codesourcery.com>
13194
13195 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
13196 * optabs.c (init_optabs): Don't check it.
13197 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
13198 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
13199
13200 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
13201
13202 * config/s390/s390.md (s390_warn_framesize_string)
13203 (s390_warn_dynamic_string, s390_stack_size_string)
13204 (s390_stack_guard_string): New global string variables.
13205 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
13206 (s390_stack_guard): New global variables.
13207 (override_options): Added checks for the new options.
13208 (s390_emit_prologue): Emit stack check and trap code and perform
13209 compile time stack size checking.
13210
13211 * config/s390/s390.h (TARGET_OPTIONS): Added new options
13212 "warn-framesize", "warn-dynamicstack", "stack-size" and
13213 "stack-guard".
13214
13215 * doc/invoke.texi: Added documentation for the new options.
13216
13217 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
13218
13219 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
13220 to eliminate warning.
13221 (linear_search_fdes): Declare p as unsigned.
13222 (binary_search_mixed_encoding_fdes): Likewise.
13223 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
13224 to eliminate warning.
13225 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
13226 type cast.
13227
13228 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
13229
13230 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
13231 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
13232 instead of one. Check for strictly legitimate address.
13233 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
13234 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
13235
13236 2004-08-19 Eric Christopher <echristo@redhat.com>
13237
13238 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
13239 * langhooks.h (unsave_expr_now): Ditto.
13240 * tree.h (unsave_expr_1): Remove prototype.
13241 (lhd_unsave_expr_now): Rename to unsave_expr_now.
13242 * tree-inline.c (unsave_expr_1): Move here
13243 from tree.c. Make static.
13244 (unsave_expr_now): Rename from lhd_unsave_expr_now.
13245 * tree-sra.c: Fix up for rename.
13246 * tree-ssa-copy.c: Ditto.
13247 * tree-eh.c: Ditto.
13248 * tree.c (unsave_expr_1): Move to tree-inline.c.
13249
13250 2004-08-19 Caroline Tice <ctice@apple.com>
13251
13252 * config/i386/cygming.h (switch_to_section): Fix typo (change
13253 in_unlikely_text_section to in_unlikely_executed_text).
13254
13255 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
13256
13257 * vec.h (VEC_lower_bound): New macro.
13258
13259 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
13260
13261 PR target/16446
13262 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
13263 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
13264 treat each ABI separately. Deal with n32/n64 complex float arguments.
13265 (function_arg): Add associated complex handling here.
13266
13267 2004-08-19 Richard Henderson <rth@redhat.com>
13268
13269 * config/arm/arm.c (arm_gen_load_multiple): Use
13270 adjust_automodify_address. Take base memory and offset instead
13271 of unchanging/struct/scalar bits.
13272 (arm_gen_store_multiple): Likewise.
13273 (arm_gen_movmemqi): Use adjust_automodify_address.
13274 * config/arm/arm-protos.h: Update decls.
13275 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
13276 (store_multiple): Similarly.
13277
13278 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
13279
13280 * regclass.c (globalize_reg): Update call_really_used_regs.
13281
13282 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
13283
13284 * doc/invoke.texi (integer-share-limit): Document.
13285
13286 * tree.h (TYPE_CACHED_VALUES_P): New.
13287 (TYPE_CACHED_VALUES): New.
13288 (TYPE_ORIG_SIZE_TYPE): Adjust.
13289 * tree.def (INTEGER_CST): Update documentation.
13290 * tree.c: Inlcude params.h.
13291 (build_int_cst): Cache small values.
13292 (build_type_copy): Do not copy the value cache.
13293 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
13294 unneeded zeroing.
13295 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
13296 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
13297 cache.
13298 * fold-const.c (force_fit_type): Copy value when setting
13299 overflows.
13300 (int_const_binop): Likewise.
13301 * stor-layout.c: Include params.h
13302 (set_sizetype): Create values cache.
13303 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
13304 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
13305 * params.h (INTEGER_SHARE_LIMIT): New.
13306 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
13307
13308 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
13309
13310 * gimplify.c (gimplify_minimax_expr): Remove.
13311 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
13312
13313 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
13314
13315 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
13316 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
13317
13318 2004-08-19 Mark Mitchell <mark@codesourcery.com>
13319
13320 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
13321
13322 2004-08-18 Andrew Pinski <apinski@apple.com>
13323
13324 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
13325
13326 2004-08-18 Mark Mitchell <mark@codesourcery.com>
13327
13328 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
13329 (__aeabi_ul2f): Likewise.
13330
13331 2004-08-18 Richard Henderson <rth@redhat.com>
13332
13333 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
13334 move to rtl completely.
13335 (struct meminsnbuf, xtensa_emit_block_move): Remove.
13336 (xtensa_find_mode_for_size): Remove.
13337 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
13338 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
13339
13340 2004-08-18 Richard Henderson <rth@redhat.com>
13341
13342 * config/mcore/mcore.c (mode_from_align): Remove DImode.
13343 (block_move_sequence): Rewrite to use adjust_address.
13344 (mcore_expand_block_move): Cleanup logic. Accept only operands.
13345 Return boolean indicating success/failure.
13346 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
13347 * config/mcore/mcore.md (movmemsi): Update to match.
13348
13349 2004-08-18 Mike Stump <mrs@apple.com>
13350
13351 * doc/invoke.texi (-mfix-and-continue): Add support for
13352 fast turn around debugging.
13353 (-ffix-and-continue): Likewise.
13354 (-mindirect-data): Likewise.
13355 (-findirect-data): Likewise.
13356 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
13357 (indirect_data): Likewise.
13358 (machopic_data_defined_p): Likewise.
13359 (machopic_output_indirection): Likewise.
13360 (darwin_encode_section_info): Likewise.
13361 (darwin_fix_and_continue): Likewise.
13362 (darwin_fix_and_continue_switch): Likewise.
13363 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
13364 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
13365 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
13366 (SUBTARGET_OPTIONS): Likewise.
13367 (darwin_fix_and_continue): Likewise.
13368 (darwin_fix_and_continue_switch): Likewise.
13369 (TARGET_FIX_AND_CONTINUE): Likewise.
13370 * config/rs6000.c (rs6000_emit_prologue): Likewise.
13371
13372 2004-08-19 Steven Bosscher <stevenb@suse.de>
13373
13374 * basic-block.h (struct edge_def): Remove crossing_edge.
13375 (EDGE_CROSSING): New define.
13376 (EDGE_ALL_FLAGS): Update.
13377 * bb-reorder.c (find_traces_1_round, better_edge_p,
13378 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
13379 find_jump_block, fix_crossing_conditional_branches,
13380 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
13381 Replace all occurences of crossing_edge with an edge flag check
13382 or set/reset.
13383 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
13384 try_crossjump_bb): Likewise.
13385 * cfglayout.c (fixup_reorder_chain): Likewise.
13386 * cfgrtl.c (force_nonfallthru_and_redirect,
13387 commit_one_edge_insertion): Likewise.
13388
13389 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
13390 * tree-flow.h (compute_dominance_frontiers): Move prototype...
13391 * basic-block.h: ...here.
13392 * tree-cfg.c (compute_dominance_frontiers_1,
13393 compute_dominance_frontiers): Move from here...
13394 * cfganal.c: ...to here. Include timevar.h.
13395
13396 2004-08-18 James E Wilson <wilson@specifixinc.com>
13397
13398 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
13399 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
13400
13401 * config/mips/mips.md (type): Add frdiv.
13402 (divsf3+1, divsf3+2): Change type to frdiv.
13403 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
13404 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
13405
13406 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
13407 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
13408 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
13409 * config/mips/5000.md (r5k_fdiv_single): Likewise.
13410 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
13411 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
13412 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
13413 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
13414 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
13415 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
13416 Likewise.
13417 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
13418
13419 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
13420
13421 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
13422 get regression tester working again.
13423
13424 2004-08-18 Zack Weinberg <zack@codesourcery.com>
13425
13426 * insn-notes.def, reg-notes.def: New files.
13427 * rtl.h: Use them to define enum insn_note and enum reg_note.
13428 * rtl.c: Use them to define note_insn_name and reg_note_name.
13429 * Makefile.in (RTL_BASE_H): Update.
13430
13431 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
13432 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
13433
13434 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
13435
13436 * arm.c (arm_size_rtx_costs): New function.
13437 (arm_override_options): Use it if optimizing for space.
13438
13439 2004-08-18 Richard Henderson <rth@redhat.com>
13440
13441 * emit-rtl.c (gen_const_mem): New.
13442 * rtl.h (gen_const_mem): Declare.
13443 * expr.c (do_tablejump): Use it.
13444 * varasm.c (force_const_mem): Likewise.
13445 * config/darwin.c (machopic_indirect_data_reference): Likewise.
13446 (machopic_legitimize_pic_address): Likewise.
13447 * config/arm/arm.c (legitimize_pic_address): Likewise.
13448 * config/i386/i386.c (legitimize_pic_address): Likewise.
13449 (legitimize_tls_address): Likewise.
13450 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
13451 * config/ia64/ia64.md (load_fptr): Likewise.
13452 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
13453 * config/pa/pa.c (legitimize_pic_address): Likewise.
13454 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
13455 (rs6000_emit_move): Likewise.
13456 * config/s390/s390.c (legitimize_pic_address): Likewise.
13457 (legitimize_tls_address): Likewise.
13458 * config/s390/s390.md (casesi): Likewise.
13459 * config/sh/sh.c (sh_reorg): Likewise.
13460 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
13461 * config/v850/v850.md (casesi): Likewise.
13462
13463 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
13464 * config/sh/sh.c (prepare_move_operands): Remove incorrect
13465 use of MEM_READONLY_P.
13466
13467 2004-08-18 Steven Bosscher <stevenb@suse.de>
13468
13469 * Makefile.in (OBJS-common): Add postreload-gcse.c.
13470 Add new postreload-gcse.o.
13471 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
13472 (lookup_as_function, insert, rehash_using_reg, use_related_value,
13473 equiv_constant): Use SAFE_HASH instead of safe_hash.
13474 (exp_equiv_p): Export. Add for_gcse argument when comparing
13475 for GCSE.
13476 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
13477 find_comparison_args, fold_rtx, cse_insn): Update callers.
13478 (hash_rtx): New function derived from old canon_hash and bits
13479 from gcse.c hash_expr_1.
13480 (canon_hash_string): Rename to hash_rtx_string.
13481 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
13482 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
13483 (cselib_lookup): Update this caller.
13484 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
13485 Make static.
13486 (hash_expr): Call hash_rtx.
13487 (ldst_entry): Likewise.
13488 (expr_equiv_p): Call exp_equiv_p.
13489 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
13490 reg_used_on_edge, reg_set_between_after_reload_p,
13491 reg_used_between_after_reload_p, get_avail_load_store_reg,
13492 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
13493 get_bb_avail_insn, hash_scan_set_after_reload,
13494 compute_hash_table_after_reload,
13495 eliminate_partially_redundant_loads, gcse_after_reload,
13496 get_bb_avail_insn, gcse_after_reload_main): Remove.
13497 * postreload-gcse.c: New file, reincarnating most of the above.
13498 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
13499 (gcse_after_reload_main): Update prototype.
13500 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
13501 * passes.c (rest_of_handle_gcse2): Use it.
13502
13503 2004-08-18 Diego Novillo <dnovillo@redhat.com>
13504
13505 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
13506 (pass_loop_done): Likewise.
13507
13508 2004-08-18 Andrew Pinski <apinski@apple.com>
13509
13510 * config/rs6000/darwin.md: Delete the altivec patterns which are
13511 handled differently now.
13512 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
13513 (macho_correct_pic_di): Likewise.
13514 (call_indirect_nonlocal_darwin64): Likewise.
13515 Delete the save world/saveFP/saveVec patterns.
13516
13517 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
13518 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
13519 * config/rs6000/rs6000.md: Include darwin.md.
13520 (builtin_setjmp_receiver): Add DImode case.
13521 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
13522 Darwin bits.
13523
13524 2004-08-18 Matt Austern <austern@apple.com>
13525
13526 Dead code stripping
13527 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
13528 * darwin.c (darwin_file_end): Mark file as potentially strippable.
13529
13530 2004-08-18 Richard Henderson <rth@redhat.com>
13531
13532 * alias.c (readonly_fields_p): Remove.
13533 (objects_must_conflict_p): Don't call it.
13534 * tree.h (readonly_fields_p): Remove.
13535 * langhooks.h (struct lang_hooks): Remove honor_readonly.
13536 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
13537
13538 2004-08-18 Diego Novillo <dnovillo@redhat.com>
13539
13540 * tree-dfa.c (add_referenced_var): Only global variables are
13541 call-clobbered.
13542 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
13543 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
13544 all pointers dereferenced if the statement dereferences them.
13545 (create_name_tags): Do not create memory tags for pointers
13546 that have PT_ANYTHING set.
13547 Also check if PT_VARS is not empty before creating a name tag.
13548 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
13549 variables that share the same alias set with a pointer that
13550 may point anywhere.
13551 (add_may_alias): Add FIXME comment to remove clobbering
13552 aliased variables and tags.
13553 (replace_may_alias): Likewise.
13554 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
13555 (merge_pointed_to_info): If the original variable has not
13556 points-to information, call set_pt_anything.
13557 (add_pointed_to_var): Do not prevent adding a pointed-to
13558 variable if the pointers is PT_ANYTHING.
13559 If the variable is a global, set PT_GLOBAL_MEM.
13560 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
13561 pointer type only come in PTR+OFFSET flavours.
13562 Always call merge_pointed_to_info on PHI arguments that are
13563 SSA_NAMEs.
13564 (get_nmt_for): Mark call-clobbered tags whose pointer points
13565 to global memory.
13566 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
13567 values.
13568 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
13569 FLAGS.
13570 (add_stmt_operand): Abort if the caller tried to add a killing
13571 definition for a memory tag.
13572 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
13573 unnecessary checks.
13574
13575 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
13576
13577 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
13578 from call_used_regs. Update call_really_used_regs.
13579 (CALL_REALLY_USED_REGISTERS): Define.
13580 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
13581 Replace call_used_regs with call_really_used_regs.
13582 (calc_live_regs, sh_media_register_for_return): Likewise.
13583 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
13584 * sh.md (return_media): Likewise.
13585
13586 2004-08-18 Andrew Pinski <apinski@apple.com>
13587
13588 * config/darwin.c (machopic_legitimize_pic_address): Only set
13589 MEM_READONLY_P in the non TARGET_TOC case.
13590
13591 2004-08-18 Zack Weinberg <zack@codesourcery.com>
13592
13593 * rtl.def (NIL): Delete.
13594 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
13595 Tighten the syntax a little.
13596
13597 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
13598 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
13599 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
13600 * config/i386/predicates.md, config/m32r/m32r.h
13601 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
13602 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
13603 * config/sparc/sparc.h, doc/tm.texi:
13604 Replace all occurrences of NIL with UNKNOWN.
13605
13606 2004-08-18 Zack Weinberg <zack@codesourcery.com>
13607
13608 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
13609 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
13610 sequence inline. Move drop_through_label code into this
13611 block, being the only place it is used. Adjust comments.
13612
13613 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
13614
13615 * config/rs6000/altivec.md: Add new patterns for calls to
13616 save_world/rest_world functions.
13617
13618 * config/rs6000/rs6000-protos.h: (save_world_operation,
13619 restore_world_operation) new declarations.
13620
13621 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
13622 field added.
13623 (rs6000_stack_info): Set world_save_p field.
13624 (save_world_operation): New function.
13625 (restore_world_operation): New function.
13626 (compute_save_world_info): New function.
13627 (rs6000_stack_info): Call compute_save_world_info.
13628 (rs6000_emit_prologue): Check for world_save_p and generate
13629 pattern to call save_world for saving all non-volatile and
13630 special registers.
13631 (rs6000_emit_epilogue): Check for world_save_p and generate
13632 pattern to call rest_world to restore saved registers.
13633
13634 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
13635 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
13636 (rs6000_reg_names): New entries added for save_world_operation and
13637 restore_world_operation.
13638
13639 2004-08-18 Caroline Tice <ctice@apple.com>
13640
13641 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
13642 "-freorder-blocks-and-partition" to the flags used in second
13643 stage of profiledbootstrap.
13644 * bb-reorder.c (push_to_next_round_p): Add new variable,
13645 next_round_is_last; set and use variable to make sure, when
13646 partitioning, that the last trace construction round consists
13647 of all (and only) cold basic blocks.
13648 (rotate_loop): Don't copy blocks that end in a section
13649 crossing jump.
13650 (copy_bb): Correctly initialize "partition" of duplicated bb.
13651 (add_unlikely_executed_notes): Add a comment.
13652 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
13653 to make sure, if function contains hot blocks, that the
13654 successors of ENTRY_BLOCK_PTR are hot; also, only look for
13655 crossing edges if the architecture supports named sections.
13656 (mark_bb_for_unlikely_executed_section): Modify to always
13657 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
13658 the basic block note insn.
13659 (fix_crossing_unconditional_branches): Remove extra space.
13660 (fix_edges_for_rarely_executed_code): Modify to only do
13661 partitioning work if the architecture supports named sections.
13662 (reorder_basic_blocks): Modify to only add
13663 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
13664 supports named sections.
13665 * c-common.c (handle_section_attribute): Initialize new global
13666 variable, user_defined_section_attribute, to true if user has
13667 specified one.
13668 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
13669 forward edges that cross section boundaries.
13670 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
13671 partitioning information if the architecture supports named
13672 sections.
13673 * cfgrtl.c (target.h): Add statement to include this.
13674 (rtl_split_block): Make sure newly created bb gets correct
13675 partition.
13676 (try_redirect_by_replacing_jump): Make sure redirection isn't
13677 attempting to cross section boundaries.
13678 (force_nonfallthru_and_redirect): Only do partition fix up if
13679 architecture supports named sections.
13680 (rtl_split_edge): Make sure newly created bb ends up in
13681 correct partition.
13682 (commit_one_edge_insertion): Remove code that incorrectly
13683 updated basic block partition; Make sure partition fix up only
13684 happens if architecture supports named sections and it's not
13685 already done.
13686 (rtl_verify_flow_info_1): Fix if-condition on test/error
13687 condition that fallthru edges are not allowed to cross section
13688 boundaries.
13689 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
13690 * final.c (final_scan_insn): Remove redundant test from if-statement;
13691 change calls to text_section into calls to function_section; add code
13692 to only to partitioning fix up if architecture supports named
13693 sections.
13694 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
13695 partition.
13696 (if_convert): Add targetm.have_named_sections to test.
13697 * output.h (unlikely_section_label): Extern declaration for new global
13698 variable.
13699 (unlikely_text_section_name): Likewise.
13700 * opts.c (decode_options): If both partitioning and DWARF debugging
13701 are turned on, issue a warning that this doesn't work, and change
13702 partitiong to basic block reordering (without hot/cold partitions).
13703 * passes.c (rest_of_handle_final): Re-set new global variable,
13704 user_defined_section_attribute, to false.
13705 (rest_of_compilation): Change options for calling partitioning
13706 function: Don't call if the user defined the section attribute, and
13707 don't call if DECL_ONE_ONLY is true for the current function.
13708 * predict.c (choose_function_section): Return immediately if we
13709 are doing hot/cold partitioning (i.e. let the basic block partitioning
13710 determine where the function belongs).
13711 * reg-stack.c (emit_swap_insn): Add condition to step over
13712 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
13713 * toplev.c (user_defined_section_attribute): New global variable.
13714 * toplev.h (user_defined_section_attribute): Extern declaration
13715 for new global variable.
13716 * varasm.c (unlikely_section_label): New global variable.
13717 (unlikely_text_section_name): New global variable.
13718 (unlikely_text_section): Add code to initialize
13719 unlikely_text_section_name if necessary; modify to use
13720 unlikely_text_section_name and unlikely_section_label; also to use
13721 named_section properly.
13722 (in_unlikely_text_section): Modify to work correctly with
13723 named_section and to use unlikely_text_section_name.
13724 (named_section): Add code to work properly with cold section.
13725 (function_section): Clean up if-statement.
13726 * config/darwin.c (darwin_asm_named_section): Return to original
13727 code, removing use of SECTION_FORMAT_STRING.
13728 * config/arm/pe.h (switch_to_section): Add case for
13729 in_unlikely_executed_text to switch statement.
13730 * config/i386/cygming.h (switch_to_section): Likewise.
13731 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
13732 (SECTION_FORMAT_STRING): Likewise.
13733 * config/mcore/mcore.h (switch_to_section): Likewise.
13734 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
13735 (SECTION_FORMAT_STRING): Remove.
13736
13737 2004-08-18 Roger Sayle <roger@eyesopen.com>
13738
13739 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
13740 -ffixed-reg safe, by preserving the meanings of zero and one.
13741 (CALL_USED_REGISTERS): Likewise.
13742 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
13743
13744 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
13745
13746 * config/sh/sh.c (split_branches): Check the result of
13747 next_active_insn.
13748 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
13749 Call rtl_register_cfg_hooks.
13750
13751 2004-08-18 Richard Henderson <rth@redhat.com>
13752
13753 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
13754 * alias.c (true_dependence): Update to match new semantics.
13755 (canon_true_dependence, write_dependence_p): Likewise.
13756 (anti_dependence, output_dependence): Update write_dependence_p args.
13757 (unchanging_anti_dependence): Remove.
13758 * calls.c (purge_mem_unchanging_flag): Remove.
13759 (fixup_tail_calls): Don't call it.
13760 (expand_call): Don't add unchanging memory to function usage.
13761 * expr.c (emit_block_move_via_libcall): Likewise.
13762 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
13763 (get_subtarget): Don't use RTX_UNCHANGING_P.
13764 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
13765 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
13766 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
13767 * cse.c (insert): Don't use RTX_UNCHANGING_P.
13768 (cse_insn, canon_hash): Use MEM_READONLY_P.
13769 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
13770 instead of RTX_UNCHANGING_P.
13771 * explow.c (maybe_set_unchanging): Remove.
13772 * expr.h (maybe_set_unchanging): Remove.
13773 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
13774 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
13775 (assign_parm_setup_reg, expand_function_start): Likewise.
13776 * integrate.c (copy_rtx_and_substitute): Likewise.
13777 * ra-rewrite.c (emit_colors): Likewise.
13778 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
13779 (fixup_match_1): Likewise.
13780 * reload1.c (reload, alter_reg): Likewise.
13781 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
13782 not RTX_UNCHANGING_P.
13783 (equiv_init_varies_p): Likewise.
13784 * loop-invariant.c (check_maybe_invariant): Likewise.
13785 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
13786 * loop.c (note_addr_stored): Likewise.
13787 (prescan_loop): Likewise. Don't check function usage for clobbered
13788 unchanging memory.
13789 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
13790 not RTX_UNCHANGING_P.
13791 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
13792 * varasm.c (force_const_mem): Likewise.
13793 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
13794 * web.c (entry_register): Likewise.
13795 * tree-gimple.h (get_base_address): Move decl ...
13796 * tree.h: ... here.
13797 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
13798
13799 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
13800 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
13801 (alpha_set_memflags): Update to match.
13802
13803 * config/darwin.c (machopic_indirect_data_reference): Set
13804 MEM_READONLY_P instead of RTX_UNCHANGING_P.
13805 (machopic_indirect_call_target): Likewise.
13806 (machopic_legitimize_pic_address): Likewise.
13807 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
13808 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
13809 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
13810 * config/frv/frv.md (symGOT2reg): Likewise.
13811 * config/i386/i386.c (legitimize_pic_address,
13812 legitimize_tls_address, ix86_split_to_parts): Likewise.
13813 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
13814 * config/ia64/ia64.md (load_fptr): Likewise.
13815 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
13816 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
13817 * config/mcore/mcore.c (block_move_sequence): Likewise.
13818 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
13819 * config/pa/pa.c (legitimize_pic_address): Likewise.
13820 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
13821 (rs6000_emit_move): Likewise.
13822 * config/s390/s390.c (legitimize_pic_address): Likewise.
13823 (legitimize_tls_address): Likewise.
13824 * config/s390/s390.md (casesi): Likewise.
13825 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
13826 * config/sh/sh.md (symGOT2reg): Likewise.
13827 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
13828 * config/v850/v850.md (casesi): Likewise.
13829
13830 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
13831 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
13832 * config/mips/mips.c (mips_restore_gp): Likewise.
13833 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
13834 * config/sh/sh.c (sh_reorg): Likewise.
13835
13836 2004-08-18 Richard Henderson <rth@redhat.com>
13837
13838 * tree.h (struct tree_decl): Add gimple_formal_temp.
13839 (DECL_GIMPLE_FORMAL_TEMP_P): New.
13840 * gimplify.c (pop_gimplify_context): Clear it.
13841 (lookup_tmp_var): Set it, if is_formal.
13842 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
13843 Use is_gimple_val for VECTOR. Simplify return value.
13844 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
13845 (gimplify_expr): Likewise.
13846 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
13847 is_gimple_tmp_rhs for clarity. Update all callers.
13848 (is_gimple_reg_rhs): Simplify logic.
13849 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
13850 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
13851 (is_gimple_formal_tmp_reg): Similarly.
13852 * tree-gimple.h: Update decls.
13853 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
13854 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
13855 * tree-ssa-live.c (var_union, type_var_init): Likewise.
13856
13857 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
13858
13859 * c4x.c (legitimize_operands): Remove calls to
13860 preserve_subexpressions_p.
13861
13862 2004-08-18 David Edelsohn <edelsohn@gnu.org>
13863
13864 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
13865 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
13866
13867 2004-08-18 Ziemowit Laski <zlaski@apple.com>
13868
13869 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
13870 Objective-C++ extensions.
13871 * gengtype.c (get_file_basename): Match entire subdirectory name
13872 ('cp', 'objc', 'objcp') rather than just its suffix.
13873 (get_base_file_bitmap): Allow for files to belong to more than one
13874 language.
13875 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
13876 used by more than one front-end.
13877
13878 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
13879
13880 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
13881 avoid use of preserve_subexpressions_p.
13882
13883 2004-08-17 Richard Henderson <rth@redhat.com>
13884
13885 PR 17051
13886 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
13887
13888 2004-08-17 DJ Delorie <dj@redhat.com>
13889
13890 * doc/extend.texi: Document new xstormy16 attribute.
13891
13892 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
13893 (xstormy16_splittable_below100_or_register): New.
13894 (combine_bnp): New.
13895 (xstormy16_reorg): New.
13896 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13897
13898 * config/stormy16/stormy16.md (movqi_internal): Make name public.
13899 (movhi_internal): Likewise.
13900 (cbhranchhi): Likewise.
13901 (cbhranchhi_neg): Likewise.
13902 (andhi3): Only allow splittable below100 operands.
13903 (iorhi3): Likewise.
13904 (peephole2): New and/zero_extend->and peephole.
13905 (peephole2): New load/ior/save->set1 peephole.
13906 (peephole2): New load/and/save->clr1 peephole.
13907 (bclrx, bclrx2, bclr7, bclr15): New.
13908 (bsetx, bsetx2, bset7, bset15): New.
13909
13910 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
13911 liberal about acceptable 'B' masks.
13912
13913 * config/stormy16/stormy16-protos.h
13914 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
13915 xstormy16_below100_operand, xstormy16_below100_or_register,
13916 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
13917 (PREDICATE_CODES): Add new predicates.
13918
13919 * config/stormy16/stormy16.c
13920 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
13921 xstormy16_below100_operand, xstormy16_below100_or_register,
13922 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
13923 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
13924 (xstormy16_legitimate_address_p): Allow below100 symbols.
13925 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
13926 (xstormy16_expand_move): Leave below100 operands as-is.
13927 (xstormy16_encode_section_info): Encode below100 symbols.
13928 (xstormy16_strip_name_encoding): New.
13929 (xstormy16_print_operand): Print 'b' as shift mask.
13930 (xstormy16_attribute_table): Add below100 attributes.
13931 (xstormy16_handle_below100_attribute): New.
13932
13933 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
13934 (XSTORMY16_SECTION_FUNCTION): New.
13935 (EXTRA_SECTION_FUNCTIONS): Define using the above.
13936 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13937 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
13938 (ASM_OUTPUT_LABELREF): Define.
13939
13940 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
13941 (movhi_internal): Add below100 support.
13942 (andhi3): Add below100 support.
13943 (iorhi3): Add below100 support.
13944 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
13945
13946 2004-08-17 James E Wilson <wilson@specifixinc.com>
13947
13948 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
13949 of VOIDmode for comparison code mode.
13950 * config/mips/mips.md: For conditional move patterns, use mode of
13951 first compare operand for comparison mode, instead of VOIDmode.
13952
13953 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
13954 normal and -ffast-math code.
13955
13956 2004-08-17 Mark Mitchell <mark@codesourcery.com>
13957
13958 PR c++/15871
13959 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
13960
13961 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
13962
13963 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
13964
13965 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
13966
13967 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
13968 for non Darwin targets.
13969 (*call_value_nonlocal_darwin64): Likewise.
13970
13971 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
13972
13973 * config/rs6000/rs6000.c (rs6000_function_value): Check for
13974 altivec mode for altivec return register.
13975
13976 2004-08-17 David Edelsohn <edelsohn@gnu.org>
13977
13978 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
13979 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
13980 * config/rs6000/rs6000.md: Include darwin.md.
13981 (builtin_setjmp_receiver): Add DImode case.
13982 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
13983 Darwin bits.
13984
13985 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
13986
13987 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
13988 trees.
13989 * tree-vectorizer.h: New File: Same.
13990 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
13991 * common.opt (ftree-vectorize): New flag to enable vectorization.
13992 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
13993 vectorization pass.
13994 * tree-data-ref.h (init_data_ref): Additional argument.
13995 (array_base_name_differ_p): Moved to tree-data-ref.c.
13996 * tree-data-ref.c (array_base_name_differ_p): Revised.
13997 (initialize_data_dependence_relation): Call array_base_name_differ_p
13998 with an extra argument.
13999 (analyze_all_data_dependences): Same.
14000 (init_data_ref): Additional argument is_read to set DR_IS_READ.
14001 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
14002 file.
14003 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
14004 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
14005 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
14006 vectorization pass.
14007 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
14008 (tree_ssa_loop_done): Call scev_finalize.
14009 (tree_vectorize): Define the new vectorization pass.
14010 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
14011 size of the vector they support (until support for multiple vector
14012 sizes is added to the vectorizer).
14013 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
14014 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
14015 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
14016 documentation.
14017
14018 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
14019
14020 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
14021 usage.
14022 (generate_protocol_list, handle_impent): Likewise.
14023
14024 2004-08-17 Roger Sayle <roger@eyesopen.com>
14025
14026 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
14027 ensure that call_used_regs is a superset of both fixed_regs and
14028 call_really_used_regs.
14029
14030 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
14031
14032 PR target/17019
14033 * arm.md (addsi3_cbranch_scratch): Correct case labels.
14034
14035 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
14036
14037 PR middle-end/17036
14038 * fold-const.c (fold): Check for integer operand when
14039 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
14040 Pinski <pinskia@physics.uc.edu>.
14041
14042 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
14043
14044 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
14045 No need to check if in a cross configuration.
14046 * configure: Regenerate.
14047
14048 * calls.c (precompute_register_parameters):
14049 Inline preserve_subexpressions_p ().
14050 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
14051 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
14052 Likewise.
14053 * expr.c (get_subtarget): Likewise.
14054 * rtl.h (preserve_subexpressions_p): Remove.
14055 * stmt.c (preserve_subexpressions_p): Remove.
14056
14057 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
14058 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
14059 Abort on gimplified cases.
14060
14061 2004-08-16 James E Wilson <wilson@specifixinc.com>
14062
14063 * tree.h (VECTOR_FLOAT_TYPE_P): New.
14064 (FLOAT_TYPE_P): Use it.
14065 * c-typeck.c (build_binary_op): After convert calls, check for
14066 check for ERROR_MARK operands.
14067
14068 2004-08-16 Zack Weinberg <zack@codesourcery.com>
14069
14070 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
14071 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
14072 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
14073 (genobjs static pattern rule): Remove %.c dependency.
14074 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
14075 Rename rules; delete commands; fix dependencies.
14076 (mostlyclean): Do not delete temporary source copies.
14077 * configure.ac: Delete all references to BUILD_PREFIX and
14078 BUILD_PREFIX_1.
14079 * configure: Regenerate.
14080
14081 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
14082 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
14083 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
14084 with #ifndef GENERATOR_FILE so that nothing from those headers
14085 is used.
14086
14087 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
14088
14089 2004-08-16 Adam Nemet <anemet@lnxw.com>
14090
14091 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
14092
14093 2004-08-16 Andrew Pinski <apinski@apple.com>
14094
14095 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
14096 extraneous semicolon.
14097
14098 2004-08-16 Devang Patel <dpatel@apple.com>
14099
14100 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
14101 * print-tree.c (print_node): Print DECL_PRESERVE_P.
14102 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
14103 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
14104 * target.h (struct gcc_target): New member, mark_decl_preserved.
14105 * hooks.c (hook_void_charptr): Rename to ...
14106 (hook_void_constcharptr): ... new name.
14107 * hooks.h (hook_void_charptr): Rename to ..
14108 (hook_void_constcharptr): ... new name.
14109 * tree.h (DECL_PRESERVE_P): New #define.
14110 (struct tree_decl): New member, preserve_flag.
14111 * varasm.c (assemble_start_function): Mark decl preserved.
14112 (assemble_variable): Same.
14113 * darwin.c (darwin_mark_decl_preserved): New function.
14114 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
14115 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
14116 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
14117
14118 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
14119
14120 * c-decl.c (grokdeclarator): Allow for function definition where
14121 innermost declarator has attributes.
14122
14123 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
14124
14125 * except.c (get_exception_filter, build_post_landing_pads,
14126 dw2_build_landing_pads): Use target-specific mode for 'filter'.
14127 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
14128 * target.h (eh_return_filter_mode): New field added.
14129 * targhooks.c (default_eh_return_filter_mode): Defined.
14130 * targhooks.h (default_eh_return_filter_mode): Declared.
14131 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
14132
14133 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
14134
14135 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
14136 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
14137 * configure: Regenerate.
14138
14139 2004-08-16 Stan Shebs <shebs@apple.com>
14140
14141 Basic support for 64-bit Darwin.
14142 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14143 (machopic_legitimize_pic_address): Similarly, plus use Pmode
14144 instead of SImode.
14145 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
14146 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
14147 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
14148 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
14149 (PROCESSOR_DEFAULT64): Define.
14150 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
14151 Darwin.
14152 * config/rs6000/rs6000.md: Include darwin.md.
14153 (builtin_setjmp_receiver): Add DImode case.
14154 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
14155 Darwin.
14156 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
14157 (rs6000_emit_move): Add DImode case to Darwin bits.
14158 (machopic_output_stub): Use .quad if 64-bit.
14159 * invoke.texi: Document -m32 and -m64.
14160
14161 2004-08-16 Janis Johnson <janis187@us.ibm.com>
14162
14163 * doc/extend.texi (AltiVec builtins): Document additional differences
14164 from the Motorola AltiVec PIM.
14165
14166 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14167
14168 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
14169 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
14170 (struct tree_common): Update public_flag documentation.
14171
14172 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
14173
14174 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14175 Check for artificial variables, not is_gimple_tmp_var.
14176 * tree-ssa-live.c (var_union): Likewise.
14177
14178 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14179
14180 * calls.c (load_register_parameters): Remove spurious FIXME token.
14181
14182 2004-08-15 Ziemowit Laski <zlaski@apple.com>
14183
14184 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
14185 (c-lang.o): Depend on c-objc-common.h.
14186 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
14187 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
14188 * c-lang.c: Include c-objc-common.h.
14189 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
14190 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
14191 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
14192 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
14193 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
14194 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
14195 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
14196 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
14197 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
14198 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
14199 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
14200 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
14201 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
14202 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
14203 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
14204 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
14205 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
14206 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
14207 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
14208 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
14209 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
14210 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
14211 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
14212 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
14213 Move to c-objc-common.h.
14214 * c-objc-common.c: Include c-objc-common.h.
14215 * c-objc-common.h: New file.
14216
14217 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
14218 Andrew Pinski <pinskia@physics.uc.edu>
14219
14220 PR target/14931
14221 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
14222 style.
14223
14224 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
14225
14226 * tree.h (build_int_cst): New.
14227 (build_int_2): Remove.
14228 * tree.c (build_int_2): Remove.
14229 (build_int_cst): New.
14230 (make_vector_type, build_common_tree_nodes,
14231 build_common_tree_nodes_2): Use build_int_cst.
14232 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
14233 expand_builtin_strpbrk, expand_builtin_fputs,
14234 build_string_literal, expand_builtin_printf,
14235 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
14236 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
14237 fold_builtin_isdigit, simplify_builtin_strstr,
14238 simplify_builtin_strpbrk, fold_builtin_fputs,
14239 simplify_builtin_sprintf): Use build_int_cst.
14240 * c-common.c (start_fname_decls, fix_string_type,
14241 c_common_nodes_and_builtins, c_init_attributes,
14242 shorten_compare): Likewise.
14243 * c-decl.c (complete_array_type,
14244 check_bitfield_type_and_width): Likewise.
14245 * c-lex.c (interpret_integer, lex_charconst): Likewise.
14246 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
14247 * c-pretty-print.c (pp_c_integer_constant): Likewise.
14248 * c-typeck.c (really_start_incremental_init, push_init_level,
14249 set_nonincremental_init_from_string): Likewise.
14250 * calls.c (load_register_parameters): Likewise.
14251 * convert.c (convert_to_pointer): Likewise.
14252 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
14253 build_fn_info_type, build_ctr_info_value, build_gcov_info):
14254 Likewise.
14255 * except.c (init_eh, assign_filter_values, assign_filter_values):
14256 Likewise.
14257 * expmed.c (store_fixed_bit_field, extract_bit_field,
14258 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
14259 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
14260 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
14261 * expr.c (convert_move, emit_group_load, emit_group_store,
14262 expand_assignment, store_constructor, store_field,
14263 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
14264 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
14265 invert_truthvalue, optimize_bit_field_compare,
14266 decode_field_reference, all_ones_mask_p, constant_boolean_node,
14267 fold_div_compare, fold, fold_read_from_constant_string,
14268 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
14269 * function.c (assign_parm_setup_block): Likewise.
14270 * stmt.c (shift_return_value, expand_end_case_type,
14271 estimate_case_costs): Likewise.
14272 * stor-layout.c (layout_type, initialize_sizetypes,
14273 set_min_and_max_values_for_integral_type): Likewise.
14274 * tree-chrec.c (chrec_fold_multiply_poly_poly,
14275 reset_evolution_in_loop): Likewise.
14276 * tree-chrec.h (build_polynomial_chrec): Likewise.
14277 * tree-complex.c (build_replicated_const): Likewise.
14278 * tree-eh.c (honor_protect_cleanup_actions,
14279 lower_try_finally_onedest, lower_try_finally_copy,
14280 lower_try_finally_switch): Likewise.
14281 * tree-mudflap.c (mf_build_string, mx_register_decls,
14282 mudflap_register_call, mudflap_enqueue_constant): Likewise.
14283 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
14284 * tree-pretty-print.c (dump_generic_node): Likewise.
14285 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
14286 Likewise.
14287 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
14288 * tree-ssa-loop-niter.c (number_of_iterations_cond,
14289 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
14290 Likewise.
14291
14292 * config/alpha/alpha.c (alpha_initialize_trampoline,
14293 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
14294 * config/arm/arm.c (arm_get_cookie_size): Likewise.
14295 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
14296 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
14297 * config/i860/i860.c (i860_va_start): Likewise.
14298 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14299 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
14300 mips_gimplify_va_arg_expr): Likewise.
14301 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14302 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
14303 add_compiler_branch_island): Likewise.
14304 * config/s390/s390.c (s390_va_start): Likewise.
14305 * config/sh/sh.c (sh_va_start): Likewise.
14306 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
14307 Likewise.
14308 * config/xtensa/xtensa.c (xtensa_va_start,
14309 xtensa_gimplify_va_arg_expr): Likewise.
14310
14311 * objc/objc-act.c (build_objc_string_object,
14312 build_objc_symtab_template, init_def_list, init_objc_symtab,
14313 init_module_descriptor, generate_static_references,
14314 build_selector_translation_table, get_proto_encoding,
14315 build_typed_selector_reference, build_selector_reference,
14316 build_next_objc_exception_stuff,
14317 build_method_prototype_list_template, generate_descriptor_table,
14318 generate_protocols, build_protocol_initializer,
14319 build_ivar_list_template, build_method_list_template,
14320 build_ivar_list_initializer, generate_ivars_list,
14321 generate_dispatch_table, generate_protocol_list,
14322 build_category_initializer, build_shared_structure_initializer,
14323 generate_shared_structures, handle_impent,
14324 generate_objc_image_info): Use build_int_cst.
14325
14326 2004-08-15 Ben Elliston <bje@au.ibm.com>
14327
14328 * vec.h: Comment improvements.
14329
14330 2004-08-14 Roger Sayle <roger@eyesopen.com>
14331
14332 * c-common.c (shorten_compare, pointer_int_sum,
14333 c_common_truthvalue_conversion, boolean_increment): Replace calls
14334 to build with calls to buildN.
14335 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
14336 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
14337 gimplify_switch_stmt): Likewise.
14338 * c-typeck.c (default_function_array_conversion,
14339 build_component_ref, build_array_ref, build_function_call,
14340 pointer_diff, build_unary_op, build_conditional_expr,
14341 build_compound_expr, build_modify_expr, c_finish_goto_label,
14342 c_finish_goto_ptr, c_finish_return, c_finish_loop,
14343 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
14344 build_binary_op): Likewise.
14345
14346 2004-08-15 Steven Bosscher <stevenb@suse.de>
14347
14348 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
14349
14350 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14351
14352 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
14353 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
14354 * fixinc/fixincl.x: Rebuilt.
14355
14356 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
14357
14358 * config/mips/mips-protos.h (mips_symbolic_constant_p)
14359 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
14360 (mips_small_data_pattern_p): Declare.
14361 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
14362 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
14363 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
14364 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
14365 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
14366 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
14367 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
14368 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
14369 (pc_or_label_operand, call_insn_operand, move_operand)
14370 (consttable_operand, symbolic_operand, general_symbolic_operand)
14371 (global_got_operand, local_got_operand, stack_operand)
14372 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
14373 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
14374 (mips_small_data_pattern_p): Replace previous small_data_pattern
14375 predicate. Turn into a bool () (rtx) function.
14376 * config/mips/predicates.md: New file.
14377 * config/mips/mips.md: Include it. Use the target-independent
14378 comparison_operator instead of cmp_op. Rename trap_cmp_op to
14379 trap_comparison_operator and equality_op to equality_operator.
14380 Replace uses of small_int with the equivalent const_arith_operand.
14381 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
14382 const_float_1_operand to const_1_operand. Rename fcc_register_operand
14383 to fcc_reload_operand.
14384 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
14385
14386 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14387
14388 PR libstdc++/17005 partial fix.
14389 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
14390 except when generating ANSI/C89 code.
14391
14392 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
14393
14394 * c-common.c (shorten_compare): Use force_fit_type directly.
14395
14396 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
14397 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
14398 Dave Korn <dk@artimi.com>
14399
14400 * doc/install.texi (Building): Avoid duplicate reference to GNU
14401 make requirement.
14402 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
14403
14404 2004-08-14 Richard Henderson <rth@redhat.com>
14405
14406 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
14407 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
14408
14409 2004-08-13 Richard Henderson <rth@redhat.com>
14410
14411 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
14412 for constant_call_address_operand.
14413 (call_value_pop_1, call_value_1): Likewise.
14414 (sibcall_value_1, call_value_1_rex64): Likewise.
14415
14416 2004-08-13 James E Wilson <wilson@specifixinc.com>
14417
14418 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
14419 Correct mode from SFmode to DFmode.
14420
14421 2004-08-13 Ziemowit Laski <zlaski@apple.com>
14422
14423 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
14424 __cstring_object and __image_info sections with the no_dead_strip
14425 attribute.
14426
14427 2004-08-13 Roger Sayle <roger@eyesopen.com>
14428 David Billinghurst <David.Billinghurst@riotinto.com>
14429
14430 PR libgfortran/15930
14431 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
14432 * fixinc/fixincl.x: Regenerate.
14433 * fixinc/tests/base/internal/math_core.h: New file.
14434
14435 2004-08-13 Richard Henderson <rth@redhat.com>
14436
14437 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
14438 (dbxout_function_end): Remove ifdefs for it.
14439 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
14440
14441 2004-08-13 Richard Henderson <rth@redhat.com>
14442
14443 * Makefile.in (insn-preds.o): Depend on TREE_H.
14444 * genpreds.c (write_insn_preds_c): Include tree.h.
14445 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
14446 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
14447 const48_operand, and_operand, or_operand, mode_width_operand,
14448 mode_mask_operand, mul8_operand, const0_operand,
14449 hard_fp_register_operand, hard_int_register_operand,
14450 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
14451 samegp_function_operand, direct_call_operand, small_symbolic_operand,
14452 global_symbolic_operand, call_operand, symbolic_operand,
14453 dtp16_symbolic_operand, dtp32_symbolic_operand,
14454 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
14455 gottp_symbolic_operand, alpha_comparison_operator,
14456 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
14457 signed_comparison_operator, alpha_fp_comparison_operator,
14458 divmod_operator, fix_operator, aligned_memory_operand,
14459 unaligned_memory_operand, reg_or_unaligned_mem_operand,
14460 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
14461 reg_no_subreg_operand, addition_operation): Move to predicates.md.
14462 (reg_or_const_int_operand): Remove. Replace all users with
14463 reg_or_cint_operand.
14464 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
14465 (resolve_reload_operand): Split out of aligned_memory_operand.
14466 * config/alpha/alpha-protos.h: Update for exports.
14467 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
14468 * config/alpha/alpha.md: Include predicates.md.
14469 * config/alpha/predicates.md: New file.
14470
14471 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
14472
14473 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
14474 fields with a pointer to the instruction definition.
14475 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
14476 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
14477 (write_attr_case, write_const_num_delay_slots): Update accordingly.
14478 (write_attr_case, write_const_num_delay_slots): Write the name of
14479 an insn next to its case statement.
14480 * genoutput.c (data): Add a filename field.
14481 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
14482 (output_insn_data): Print the location of each insn definition.
14483 * genrecog.c (write_action): Print the name of an insn above
14484 the statement that returns its code.
14485
14486 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
14487
14488 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
14489 * config/libgloss.h: Likewise.
14490 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
14491 * c4x/c4x-modes.def: Likewise.
14492 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
14493 (c4x_rptb_nop_p): Likewise.
14494 (c4x_rptb_valid_p): Likewise.
14495 (c4x_rptb_insert): Likewise.
14496 (c4x_address_conflict): Likewise.
14497 * config/c4x/c4x.md: Likewise.
14498 * config/frv/frv.md: Likewise.
14499 * config/i386/athlon.md: Likewise.
14500 * config/i386/i386.md: Likewise.
14501 * config/i386/predicates.md: Likewise.
14502 * config/ia64/ia64.c: Likewise.
14503 * config/ia64/itanium1.md: Likewise.
14504 * config/ia64/itanium2.md: Likewise.
14505 * config/iq2000/iq2000.md: Likewise.
14506 * config/mcore/mcore.c: Likewise.
14507 * config/mips/mips.c: Likewise.
14508 * config/mips/r3900.h: Likewise.
14509 * config/mips/sb1.md: Likewise.
14510 * config/pa/milli64.S: Likewise.
14511 * config/pa/pa.c: Likewise.
14512 * config/pa/pa.h: Likewise.
14513 * config/rs6000/8540.md: Likewise.
14514
14515 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
14516
14517 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
14518
14519 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
14520
14521 * sh.md (cbranch define_delay) Use cond_delay_slot for
14522 non-anulled condition too.
14523
14524 2004-08-12 David Edelsohn <edelsohn@gnu.org>
14525
14526 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
14527 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14528 any_parallel_operand, lmw_operation, stmw_operation,
14529 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
14530 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
14531 any_parallel_operand.
14532 (return_and_restore_fpregs_{si,di}): Same.
14533
14534 2004-08-12 Zack Weinberg <zack@codesourcery.com>
14535
14536 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
14537 if pred->singleton != PARALLEL, issue a warning and pretend it was.
14538 Also issue a warning for any predicate we don't know about.
14539
14540 2004-08-12 Richard Henderson <rth@redhat.com>
14541
14542 * config/i386/i386.c (internal_label_prefix): Export.
14543 (internal_label_prefix_len, struct ix86_address,
14544 ix86_decompose_address, maybe_get_pool_constant,
14545 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
14546 memory_address_length): Export.
14547 (any_fp_register_operand, fp_register_operand,
14548 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
14549 x86_64_general_operand, x86_64_szext_general_operand,
14550 x86_64_nonmemory_operand, x86_64_movabs_operand,
14551 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
14552 x86_64_zext_immediate_operand, const_int_1_31_operand,
14553 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
14554 tls_symbolic_operand, global_dynamic_symbolic_operand,
14555 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
14556 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
14557 constant_call_address_operand, const0_operand, const1_operand,
14558 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
14559 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
14560 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
14561 general_no_elim_operand, nonmemory_no_elim_operand,
14562 index_register_operand, q_regs_operand, flags_reg_operand,
14563 non_q_regs_operand, zero_extended_scalar_load_operand,
14564 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
14565 ix86_comparison_operator, ix86_carry_flag_operator,
14566 fcmov_comparison_operator, promotable_binary_operator,
14567 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
14568 mult_operator, div_operator, arith_or_logical_operator,
14569 memory_displacement_operand, cmpsi_operand, long_memory_operand,
14570 aligned_operand): Move to predicates.md as define_predicates.
14571 (tls_symbolic_operand_1): Remove.
14572 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
14573 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
14574 (legitimize_address): Merge tls_symbolic_operand contents.
14575 (ix86_expand_move): Likewise.
14576 * config/i386/i386-protos.h: Update for exports.
14577 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
14578 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
14579 * config/i386/i386.md: Include predicates.md.
14580 * config/i386/predicates.md: New file.
14581
14582 2004-08-13 Mark Mitchell <mark@codesourcery.com>
14583
14584 PR c++/16924
14585 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
14586 SYMBOL_REF_DECL.
14587 (i386_pe_mark_dllimport): Likewise.
14588 (i386_pe_encode_section_info): Likewise, when overriding
14589 dllimport attribute.
14590
14591 2004-08-12 Geoffrey Keating <geoffk@apple.com>
14592
14593 * configure.ac: When testing for flex, nm, ar, and bison, check
14594 that they will actually be built.
14595 * configure: Regenerate.
14596
14597 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
14598
14599 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
14600 (MOVE_MAX_PIECES): Define.
14601
14602 2004-08-12 Devang patel <dpatel@apple.com>
14603
14604 * dbxout.c (dbxout_begin_prologue): New function.
14605 (dbx_debug_hooks): Use new begin prologue hook.
14606 (dbxout_function_end): Emit N_ENSYM.
14607 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
14608
14609 2004-08-12 Janis Johnson <janis187@us.ibm.com>
14610
14611 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
14612 argument is float*.
14613
14614 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
14615 for vec_dss.
14616
14617 * doc/extend.texi (AltiVec builtins): Fix description for recent
14618 changes. Update operation list to match current support.
14619
14620 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
14621
14622 * config/s390/s390.c (struct s390_frame_layout): New struct as element
14623 of struct machine_function.
14624 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
14625 changed all uses.
14626 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
14627 changed all uses.
14628 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
14629 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
14630 (s390_frame_area, s390_register_info): New functions.
14631 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
14632 for base register.
14633 (s390_return_addr_rtx, s390_return_address_offset)
14634 (s390_va_start, s390_gimplify_va_arg)
14635 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
14636 layouts.
14637 (s390_frame_info): Functionality partly moved to s390_register_info.
14638 Made adaptions for new stack layout.
14639 (save_gprs, restore_gprs): Changed meaning of second parameter and
14640 adapted all callers.
14641
14642 * config/s390/s390.h (s390_backchain_string): New global variable.
14643 (MASK_BACKCHAIN): Removed definition.
14644 (TARGET_BACKCHAIN): Changed check.
14645 (TARGET_KERNEL_BACKCHAIN): New macro.
14646 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
14647 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
14648 "kernel-backchain".
14649 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
14650
14651 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
14652 as condition. Adjusted for new stack layout.
14653
14654 * doc/invoke.texi: Added documentation for new option
14655 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
14656 "-mno-backchain".
14657
14658 2004-08-12 Paul Brook <paul@codesourcery.com>
14659
14660 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
14661 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
14662
14663 2004-08-12 David Daney <ddaney@avtrex.com>
14664
14665 * java/gcj.texi: Add subsection on signal usage.
14666
14667 2004-08-12 David Edelsohn <edelsohn@gnu.org>
14668
14669 * expr.c (move_by_pieces): Set alignment for move to minimum of
14670 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
14671 alignment, but not less than the original alignment.
14672 (move_by_pieces_ninsns): Same.
14673 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
14674 (store_by_pieces_1): Same.
14675
14676 2004-08-12 Diego Novillo <dnovillo@redhat.com>
14677
14678 PR tree-optimization/16867
14679 * tree.c (is_global_var): New function.
14680 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
14681 Call is_global_var.
14682 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
14683 Update all users.
14684 (is_global_var): Declare.
14685 * tree-dfa.c (dump_variable): Display global and addressable
14686 attributes.
14687 (add_referenced_var): Clarify documentation when marking
14688 variables call-clobbered.
14689 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
14690 instead of needs_to_live_in_memory.
14691 (mark_call_clobbered): If the variable is a tag, mark it
14692 DECL_EXTERNAL.
14693 * tree-gimple.c (is_gimple_reg): Don't check for
14694 TREE_ADDRESSABLE.
14695 (is_gimple_non_addressable): Likewise.
14696 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
14697 needs to be marked call-clobbered.
14698 (setup_pointers_and_addressables): Call is_global_var instead
14699 of needs_to_live_in_memory.
14700 * tree-ssa-dce.c (need_to_preserve_store): Remove.
14701 Update all users with is_global_var.
14702 (mark_stmt_if_obviously_necessary): Fix processing of aliased
14703 stores. Don't check the virtual definitions. Rather, check
14704 whether the store is going into global memory.
14705 (find_obviously_necessary_stmts): Get the symbol from the PHI
14706 result.
14707 * tree-ssa-operands.c (get_call_expr_operands): Do not add
14708 clobbering may-defs if the call does not have side effects.
14709
14710 2004-08-12 Jakub Jelinek <jakub@redhat.com>
14711
14712 PR c++/16276
14713 * output.h (default_function_rodata_section,
14714 default_no_function_rodata_section): New prototypes.
14715 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
14716 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
14717 (TARGET_ASM_OUT): Add it.
14718 * varasm.c (default_function_rodata_section,
14719 default_no_function_rodata_section): New functions.
14720 * final.c (final_scan_insn): Call
14721 targetm.asm_out.function_rodata_section instead of
14722 readonly_data_section.
14723 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
14724 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
14725 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
14726 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
14727 Likewise.
14728 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
14729 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
14730 Likewise.
14731 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
14732 Likewise.
14733 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
14734 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
14735 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
14736
14737 2004-08-12 Paul Brook <paul@codesourcery.com>
14738
14739 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
14740 frame info.
14741 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
14742 DWARF2_UNWIND_INFO.
14743
14744 2004-08-12 Ben Elliston <bje@au.ibm.com>
14745
14746 PR target/16286
14747 * config/rs6000/altivec.h: Change vector to __vector throughout.
14748 (Except for the `vector' macro itself).
14749
14750 2004-08-12 Zack Weinberg <zack@codesourcery.com>
14751
14752 * genpreds.c: Add capability to generate predicate bodies as
14753 well as function prototypes. Write function prototypes for
14754 the generic predicates too.
14755 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
14756 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
14757 (write_match_code, write_predicate_expr, write_one_predicate_function)
14758 (parse_option): New functions.
14759 (output_predicate_decls): Delete.
14760 (main): Read the machine description, process DEFINE_PREDICATE or
14761 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
14762 as appropriate.
14763
14764 * genrecog.c (struct decision_test): Replace index with
14765 struct pred_data pointer.
14766 (next_index): Remove, unused.
14767 (pred_table, preds, special_mode_pred_table): Delete.
14768 (compute_predicate_codes, process_define_predicate): New functions.
14769 (validate_pattern, add_to_sequence, write_switch): Update for
14770 new data structures.
14771 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
14772 Check both error_count and have_error.
14773
14774 * gensupport.c (in_fname, first_predicate): New globals.
14775 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
14776 (predicate_table, last_predicate, old_pred_table)
14777 (old_special_pred_table): New statics.
14778 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
14779 (add_predicate, init_predicate_table): New functions.
14780 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
14781 (init_md_reader_args_cb): Use the global in_fname. No need to zero
14782 it or max_include_len. Call init_predicate_table.
14783 (read_rtx): Run the predicate queue after the attribute queue
14784 but before all the others.
14785 * gensupport.h (in_fname, struct pred_data, first_predicate)
14786 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
14787 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
14788 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
14789 * dummy-conditions.c: Don't include bconfig.h, system.h,
14790 coretypes.h, tm.h, or system.h. Do include stddef.h.
14791 Duplicate declaration of struct c_test from gensupport.h.
14792
14793 * Makefile.in (OBJS-common): Add insn-preds.o.
14794 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
14795 (insn-preds.c, insn-preds.o): New rules.
14796 (s-preds): Also generate insn-preds.c.
14797 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
14798 Update dependencies.
14799 (print-rtl.o, print-rtl1.o): Correct dependencies.
14800
14801 * recog.h: Delete prototypes of predicate functions.
14802
14803 * doc/md.texi (Predicates): New section with complete
14804 documentation of operand/operator predicates. Remove some
14805 incomplete documentation of predicates from other places.
14806 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
14807 PREDICATE_CODES; indicate that both are deprecated in favor
14808 of define_predicate/define_special_predicate.
14809
14810 * config/ia64/ia64.c: All predicate function definitions moved
14811 to ia64.md, except
14812 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
14813 (ia64_expand_load_address, ia64_expand_move):
14814 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
14815
14816 * config/ia64/ia64.md: All predicates now defined here.
14817 (symbolic_operand): Is now a special predicate.
14818
14819 * config/ia64/ia64.h: Declare ia64_section_threshold.
14820 (PREDICATE_CODES): Delete.
14821
14822 2004-08-12 Richard Henderson <rth@redhat.com>
14823
14824 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
14825 * c-semantics.c (add_stmt): Set it.
14826 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
14827 before instantiating a variable sized type.
14828
14829 2004-08-12 Richard Henderson <rth@redhat.com>
14830
14831 * stor-layout.c (round_up, round_down): Move ...
14832 * fold-const.c (round_up, round_down): ... here. Use
14833 multiple_of_p to avoid any arithmetic at all.
14834
14835 2004-08-12 Richard Henderson <rth@redhat.com>
14836
14837 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
14838 (gimplify_init_ctor_preeval_1): New.
14839 (gimplify_init_ctor_preeval): New.
14840 (gimplify_init_ctor_eval): New.
14841 (gimplify_init_constructor): Use them. Always gimplify the LHS
14842 object first.
14843
14844 2004-08-12 Ziemowit Laski <zlaski@apple.com>
14845
14846 (This patch is part of merge of objc-improvements-branch
14847 into mainline.)
14848
14849 * doc/frontends.texi: Mention Objective-C++ in addition to
14850 Objective-C.
14851 * doc/install.texi: Add 'obj-c++' to list of configurable
14852 languages.
14853 * doc/invoke.texi: Rename Objective-C option headings to
14854 indicate they also apply to Objective-C++. List file
14855 extensions for Objective-C++ sources. Mention that
14856 ObjC and ObjC++ compilations may also use C and C++ options,
14857 respectively. Point users to doc/standards.texi for
14858 further info on ObjC and ObjC++.
14859 * doc/sourcebuild.texi: Mention the objcp/ directory and
14860 the Objective-C++ sources it contains.
14861 * doc/standards.texi: Update link to Apple ObjC site;
14862 add link to gcc readings.html WWW doc.
14863
14864 2004-08-12 Alan Modra <amodra@bigpond.net.au>
14865
14866 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
14867 and 2004-07-14 changes.
14868
14869 2004-08-12 Paul Brook <paul@codesourcery.com>
14870
14871 * doc/invoke.texi: Fix typo.
14872
14873 2004-08-11 Devang Patel <dpatel@apple.com>
14874
14875 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
14876 and -no_dead_strip_inits_and_terms.
14877 (LINK_SPEC): Same.
14878 * doc/invoke.texi (Darwin Options): Document -dead_strip and
14879 -no_dead_strip_inits_and_terms.
14880
14881 2004-08-11 Paul Brook <paul@codesourcery.com>
14882
14883 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
14884 (arm_load_pic_register): ... to this.
14885 * config/arm/arm.c (arm_finalize_pic): Rename ...
14886 (arm_load_pic_register): ... to this. Always output insns at the
14887 current location. Load via low reg in thumb mode.
14888 (arm_expand_prologue): Call arm_load_pic_register.
14889 (thumb_expand_prologue): Ditto.
14890 * config/arm/arm.h (FINALIZE_PIC): Remove.
14891 * config/arm/arm.md (builtin_setjmp_receiver): Call
14892 arm_load_pic_register.
14893
14894 2004-08-11 Paul Brook <paul@codesourcery.com>
14895
14896 * arm.c (thumb_force_lr_save): Add prototype.
14897 (thumb_compute_save_reg_mask): New function.
14898 (thumb_find_work_register): New function.
14899 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
14900 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
14901 Don't clobber r3 when removing pretend args.
14902 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
14903 (thumb_output_function_prologue): Use new functions.
14904 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
14905 * arm.h (THUMB_REG_PUSHED_P): Remove.
14906
14907 2004-08-11 James E Wilson <wilson@specifixinc.com>
14908
14909 PR rtl-optimization/16490
14910 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
14911 global_live_at_end for new basic block if already set for other blocks.
14912
14913 2004-08-11 David Edelsohn <edelsohn@gnu.org>
14914
14915 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
14916
14917 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
14918 (mfcr rlwinm rlwinm patterns): Set length to 12.
14919
14920 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
14921
14922 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
14923 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
14924 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
14925 (start_ssa_stmt_operands): Delete.
14926 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
14927 struct stmt_operands_d.
14928 (build_ssa_operands): New extern entry point.
14929 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
14930 building code, replace with create_ssa_artficial_load_stmt().
14931 * tree-ssa-operands.c (struct voperands_d): Delete.
14932 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
14933 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
14934 (free_uses, free_defs, free_vuses, free_v_may_defs,
14935 free_v_must_defs): Remove dealloc parameter.
14936 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
14937 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
14938 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
14939 vector comparisons, ssa_name reuse, and allocations here.
14940 (verify_start_operands): Delete.
14941 (finalize_ssa_stmt_operands): Set new operands by calling finalize
14942 routines.
14943 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
14944 (append_def, append_usei): Simplify to simple accumulation.
14945 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
14946 duplicates and simple accumulation.
14947 (free_ssa_operands): Free vectors in a stmt_operand structure.
14948 (build_ssa_operands): New. Create a new stmt_operand structure from
14949 a stmt and an old set of stmt_operands.
14950 (get_stmt_operands): Simplify and call build_ssa_operands.
14951 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
14952 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
14953 add_call_read_ops): Don't pass prev_vops around anymore.
14954 (note_addressable): Return if no stmt annotation.
14955 (copy_virtual_operands): Access v_may_def operands through a struct.
14956 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
14957 hash tables without treating the stmt as a real stmt.
14958 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
14959 v_may_def def and use through a struct instead of 2 array elements.
14960 (struct v_may_def_optype_d): Use v_may_def_operand_type.
14961 (struct stmt_operands_d): New. Struct for storing all operand vectors.
14962
14963 2004-08-11 Nick Clifton <nickc@redhat.com>
14964
14965 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
14966 this funciton's behaviour. Return true when the current function
14967 has a section attribute and -mlong-calls is in effect.
14968 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
14969 short-call marker when -mlong-calls is in effect and the function
14970 has a section attribute.
14971
14972 2004-08-10 Zack Weinberg <zack@codesourcery.com>
14973
14974 * stmt.c (expand_return): If asked to return the RESULT_DECL,
14975 just call expand_value_return on result_rtl.
14976
14977 2004-08-10 Richard Henderson <rth@redhat.com>
14978
14979 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
14980 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
14981 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
14982 (add_location_or_const_value_attribute): ... not here. Use
14983 loc_descriptor_from_tree if possible.
14984 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
14985 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
14986 values specially.
14987 (loc_descriptor_from_tree): New. Update callers.
14988 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
14989 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
14990 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
14991 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
14992 and BUILT_IN_STACK_RESTORE.
14993 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
14994 * stmt.c (expand_stack_alloc): Remove.
14995 * tree-mudflap.c (mx_register_decls): Don't look for
14996 BUILT_IN_STACK_ALLOC.
14997 * tree-nested.c (convert_local_reference): Likewise.
14998 * tree.h (DECL_VALUE_EXPR): New.
14999
15000 2004-08-10 Richard Henderson <rth@redhat.com>
15001
15002 * stor-layout.c (round_up): Check for 0/1 before dividing.
15003 (round_down): Likewise.
15004
15005 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
15006
15007 2004-08-09 Mark Mitchell <mark@codesourcery.com>
15008
15009 * config.gcc (arm*-*-eabi*): New target.
15010 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
15011 (TARGET_LIB_INT_CMP_BIASED): Likewise.
15012 * expmed.c (expand_divmod): Try a two-valued divmod function as a
15013 last resort.
15014 * gthr.h: Remove bogus tokens at end of #pragma.
15015 * optabs.c (expand_twoval_binop_libfunc): New function.
15016 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
15017 (prepare_float_lib_cmp): Try reversing the condition.
15018 (debug_optab_libfuncs): New function.
15019 * optabs.h (expand_twoval_binop_libfunc): Declare.
15020 * config/arm/arm.c (arm_init_libfuncs): New function.
15021 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
15022 (TARGET_INIT_LIBFUNCS): Define it.
15023 * config/arm/arm.h (TARGET_BPABI): New macro.
15024 * config/arm/arm-protos.h
15025 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
15026 * config/arm/bpabi.S: New file.
15027 * config/arm/bpabi.c: Likewise.
15028 * config/arm/bpabi.h: Likewise.
15029 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
15030 (__aeabi_drsub): Likewise.
15031 (__aeabi_dsub): Likewise.
15032 (__aeabi_dadd): Likewise.
15033 (__aeabi_ui2d): Likewise.
15034 (__aeabi_i2d): Likewise.
15035 (__aeabi_f2d): Likewise.
15036 (__aeabi_dmul): Likewise.
15037 (__aeabi_ddiv): Likewise.
15038 (__aeabi_cdrcmple): Likewise.
15039 (__aeabi_cdcmpeq): Likewise.
15040 (__aeabi_cdcmple): Likewise.
15041 (__aeabi_dcmpeq): Likewise.
15042 (__aeabi_dcmplt): Likewise.
15043 (__aeabi_dcmple): Likewise.
15044 (__aeabi_dcmpge): Likewise.
15045 (__aeabi_dcmpgt): Likewise.
15046 (__aeabi_dcmpun): Likewise.
15047 (__aeabi_d2iz): Likewise.
15048 (__aeabi_d2uiz): Likewise.
15049 (__aeabi_d2f): Likewise.
15050 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
15051 (__aeabi_frsub): Likewise.
15052 (__aeabi_fsub): Likewise.
15053 (__aeabi_fadd): Likewise.
15054 (__aeabi_ui2f): Likewise.
15055 (__aeabi_i2f): Likewise.
15056 (__aeabi_fmul): Likewise.
15057 (__aeabi_fdiv): Likewise.
15058 (__aeabi_cfrcmple): Likewise.
15059 (__aeabi_cfcmpeq): Likewise.
15060 (__aeabi_cfcmple): Likewise.
15061 (__aeabi_fcmpeq): Likewise.
15062 (__aeabi_fcmplt): Likewise.
15063 (__aeabi_fcmple): Likewise.
15064 (__aeabi_fcmpge): Likewise.
15065 (__aeabi_fcmpgt): Likewise.
15066 (__aeabi_fcmpun): Likewise.
15067 (__aeabi_f2iz): Likewise.
15068 (__aeabi_f2uiz): Likewise.
15069 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
15070 (__aeabi_uidivmod): New function or alias.
15071 (__aeabi_idivmod): Likewise.
15072 (__aeabi_idiv0): Likewise.
15073 (__aeabi_ldiv0): Likewise.
15074 (__aeabi_llsr): Likewise.
15075 (__aeabi_lasr): Likewise.
15076 (__aeabi_llsl): Likewise.
15077 (bpabi.S): Include it.
15078 * config/arm/libgcc-bpabi.ver: New file.
15079 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
15080 (LINK_SPEC): Remove.
15081 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
15082 __aeabi_ulcmp.
15083 * config/arm/t-bpabi: New file.
15084 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
15085 (TARGET_LIB_INT_CMP_BIASED): Likewise.
15086
15087 2004-08-10 David Edelsohn <edelsohn@gnu.org>
15088
15089 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
15090 * config/rs6000/rs6000.md (clrmemsi): New pattern.
15091 * config/rs6000/rs6000.c (expand_block_clear): New function.
15092 (expand_block_move): Convert alignment to bits. Use SImode and
15093 HImode for unaligned addresses if not STRICT_ALIGNMENT.
15094
15095 2004-08-10 Caroline Tice <ctice@apple.com>
15096
15097 * varasm.c (unlikely_section_label): New global variable.
15098 (unlikely_text_section_name): New global variable.
15099 (text_section): Remove alignment statement.
15100 (unlikely_text_section): Remove alignment statement; use
15101 unlikely_section_label rather than hard-coded string.
15102 (assemble_start_function): Initialize unlikely_section_label and
15103 unlikely_text_section_name; make sure cold section is properly
15104 aligned at start of function; output unlikely_section_label if
15105 appropriate.
15106
15107 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
15108
15109 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
15110 * config/s390/s390.c (s390_canonicalize_comparison): New function.
15111 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
15112 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
15113 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
15114 ("*tmqi_mem"): Remove SUBREG from pattern.
15115 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
15116 ("*andsi3_cconly"): Likewise.
15117
15118 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
15119
15120 PR target/16909
15121 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
15122
15123 2004-08-10 Janis Johnson <janis187@us.ibm.com>
15124
15125 * doc/sourcebuild.texi (compat testing): Document available test
15126 framework commands. Use the preferred spelling of DejaGnu.
15127
15128 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
15129
15130 * lambda.h: Add matrix type, and prototypes for remainder of
15131 matrix and vector functions.
15132 (lambda_vector_mult_const): New function.
15133 (lambda_vector_negate): Ditto.
15134 (lambda_vector_add): Ditto.
15135 (lambda_vector_add_mc): Ditto.
15136 (lambda_vector_copy): Ditto.
15137 (lambda_vector_zerop): Ditto.
15138 (lambda_vector_equal): Ditto.
15139 (lambda_vector_min_nz): Ditto.
15140 (lambda_vector_first_nz): Ditto.
15141 (lambda_vector_matrix_mult): Ditto.
15142 * lambda-mat.c: New file.
15143 * Makefile.in (lambda-mat.o): New.
15144
15145 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
15146
15147 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
15148 after linking stmt into the program.
15149 (bsi_remove): Don't call modify_stmt.
15150 * tree-complex.c (update_complex_assignment,
15151 expand_complex_comparison): Call modify_stmt after changing the stmt.
15152 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
15153 removing the stmt.
15154 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
15155 the stmt, and only if needed.
15156 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
15157 expression.
15158 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
15159 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
15160 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
15161 (eliminate_redundant_computations): Don't pass an annotation. Call
15162 modify_stmt rather than setting the annotation directly.
15163 (record_equivalences_from_stmt): Remove unused local 'j'.
15164 (cprop_operand): Take a stmt rather than an annotation as a parameter.
15165 Call modify_stmt.
15166 (cprop_into_stmt): Pass stmt rather than annotation.
15167 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
15168 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
15169 modify_stmt.
15170 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
15171
15172 2004-08-10 Jason Merrill <jason@redhat.com>
15173
15174 PR middle-end/16948
15175 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
15176 the RESULT_DECL.
15177
15178 2004-08-10 Geoffrey Keating <geoffk@apple.com>
15179
15180 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
15181 hash function.
15182
15183 2004-08-10 Roger Sayle <roger@eyesopen.com>
15184
15185 * config/mips/mips.md: New reciprocal square root patterns that
15186 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
15187
15188 2004-08-10 Paul Brook <paul@codesourcery.com>
15189
15190 * config/arm/arm-protos.h (arm_set_return_address,
15191 thumb_set_return_address): Add prototypes.
15192 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
15193 * config/arm/arm.c (arm_compute_func_type,
15194 use_return_insn, arm_compute_save_reg0_reg12_mask,
15195 arm_compute_save_reg_mask, arm_output_function_prologue,
15196 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
15197 current_function_calls_eh_return.
15198 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
15199 old eh code.
15200 (arm_set_return_address, thumb_set_return_address): New functions.
15201 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
15202 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
15203 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
15204 (epilogue): Use the stackadj register.
15205 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
15206
15207 2004-08-10 Jakub Jelinek <jakub@redhat.com>
15208
15209 PR target/3144
15210 * expr.c (move_by_pieces_ninsns): Add max_size argument.
15211 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
15212 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
15213 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
15214 but using MOVE_RATIO.
15215 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
15216 (can_store_by_pieces): Change max_size type to unsigned int.
15217 (store_by_pieces_1): Likewise. Pass max_size to
15218 move_by_pieces_ninsns.
15219 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
15220 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
15221 to move_by_pieces_ninsns.
15222 (STORE_BY_PIECES_P): Define.
15223 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
15224 to move_by_pieces_ninsns.
15225 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
15226
15227 * config/i386/i386.h (CLEAR_RATIO): Define.
15228
15229 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15230
15231 * expr.c (expand_expr_real_1): Add back code that was not dead.
15232
15233 2004-08-09 Andrew Pinski <apinski@apple.com>
15234
15235 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
15236 which is found to be compatible before returning the aliasing set.
15237
15238 2004-08-09 Daniel Jacobowitz <dan@debian.org>
15239
15240 * ggc-zone.c (struct alloc_zone): Add statistics counters.
15241 (always_collect): New flag.
15242 (ggc_alloc_zone_1): Update statistics support. Don't include
15243 overhead in allocated counter.
15244 (sweep_pages): Update allocated counter for large pages. Don'y
15245 include overhead.
15246 (ggc_collect_1): Always collect.
15247 (ggc_collect): Honor always_collect flag. Sum all zones to decide
15248 whether to collect.
15249 (SCALE, LABEL): New macros.
15250 (ggc_print_statistics): Add statistics support.
15251
15252 2004-08-09 Roger Sayle <roger@eyesopen.com>
15253
15254 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
15255 (init_expmed): Fix potential overrun problem with "all.reg".
15256 (expand_sdiv2_pow2): Add an alternate implementation for signed
15257 division, if the target provides a suitable conditional move insn.
15258
15259 2004-08-09 Paul Brook <paul@codesourcery.com>
15260 Richard Henderson <rth@redhat.com>
15261
15262 * unwind-dw2.c (uw_install_context_1): Update target saved stack
15263 pointer.
15264
15265 2004-08-09 Geoffrey Keating <geoffk@apple.com>
15266
15267 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
15268 Check DATA limit only if there's no AS limit. Ignore insanely
15269 low DATA limits.
15270 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
15271 but take care that the AS limit isn't overrun.
15272 * doc/invoke.texi: Update documentation of min-heapsize parameter.
15273
15274 2004-08-09 Jeff Law <law@redhat.com>
15275
15276 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
15277 (tree-ssa-threadupdate.o): Add dependencies.
15278 * tree-ssa-threadupdate.c: New file.
15279 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
15280 (rewrite_vars_out_of_ssa): Remove prototype.
15281 (cleanup_tree_cfg): Returns a bool.
15282 * tree.h (thread_through_all_blocks): Prototype.
15283 * tree-outof-ssa.c (SSANORM_*): Move into here.
15284 (remove_ssa_form): Now static.
15285 (rewrite_vars_out_of_ssa): Kill.
15286 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
15287 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
15288 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
15289 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
15290 anything was changed.
15291 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
15292 from the PHI's annotation rather than the edge associated with
15293 the new argument.
15294 * tree-ssa-dom.c (redirection_edges): Kill.
15295 (redirect_edges_and_update_ssa_graph): Kill.
15296 (tree_ssa_dominator_optimize): Do not reset forwardable flag
15297 for blocks anymore. Do not initialize redirection_edges.
15298 Call thread_through_all_blocks. Simplify code for cleanup
15299 of the CFG and iterating. No longer call cleanup_tree_cfg
15300 outside the iteration loop.
15301 (thread_across_edge): No longer mess with forwardable blocks.
15302
15303 2004-08-09 Zack Weinberg <zack@codesourcery.com>
15304
15305 * explow.c (memory_address): Use memory_address_p.
15306 * recog.c (general_operand): Likewise.
15307 * regrename.c: No need to define REG_OK_STRICT.
15308
15309 2004-08-09 Steven Bosscher <stevenb@suse.de>
15310
15311 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
15312 New timers.
15313 * gcse.c: Include timevar.h.
15314 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
15315 and global_copy_prop_count.
15316 (local_const_prop_count, local_copy_prop_count): New static globals.
15317 (gcse_main): Set the right timevar for each pass.
15318 (cprop_jump): Increment global_const_prop_count when a constant is
15319 propagated. Add "GLOBAL" to dump output.
15320 (cprop_insn): Increment global_const_prop_count when a constant is
15321 propagated, or global_copy_prop_count when a copy is propagated.
15322 (do_local_cprop): Likewise for local_const_prop_count and
15323 local_copy_prop_count.
15324 (one_cprop_pass): Initialize const/cprop counters to zero.
15325 Print out results of local and global const/cprop separately.
15326 (bypass_block): Break over-length line.
15327 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
15328 for bb-reorder.o and tracer.o.
15329
15330 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15331
15332 * Makefile.in (GTFILES): Remove stmt.c
15333 (stmt.o): Do not depend on gt-stmt.h.
15334 * emit-rtl.c (emit_line_note): Do not call
15335 set_file_and_line_for_stmt.
15336 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
15337 do everything.
15338 * function.c (free_after_parsing): Do not free STMT field.
15339 (allocate_struct_function): Do not call init_stmt_for_function.
15340 (assign_stack_temp_for_type): Do not accept values of keep
15341 other than 0 or 1.
15342 (init_temp_slots): Do not initialize removed variables.
15343 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
15344 and X_VAR_TEMP_SLOT_LEVEL fields.
15345 * rtl.h (set_file_and_line_for_stmt): Remove.
15346 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
15347 struct stmt_status, cond_stack, case_stack, nesting_stack,
15348 nesting_depth, emit_locus, set_file_and_line_for_stmt,
15349 same_case_target_p, init_stmt_for_function, emit_nop,
15350 expand_start_cond, expand_start_elseif, expand_start_else,
15351 expand_elseif, expand_end_cond): Remove.
15352 (preserve_subexpressions_p): Remove references to CFUN->STMT.
15353 (expand_start_case, expand_end_case_type): Remove, merge into...
15354 (expand_case): ... this one, including other bits from
15355 expand_expr_real_1. Inline same_case_target_p. Turn members
15356 of CASE_STACK into local variables.
15357 (emit_case_bit_tests): Inline same_case_target_p.
15358 (add_case_node): Add HEAD argument, return new head of the list,
15359 do not handle default label here.
15360 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
15361 expand_start_elseif, current_nesting_level, expand_start_case,
15362 expand_end_case_type, expand_end_case, add_case_node,
15363 init_stmt_for_function, expand_elseif): Remove prototypes.
15364 (expand_case): Add prototype.
15365
15366 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15367
15368 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
15369
15370 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
15371
15372 * expr.c (var_rtx): Remove.
15373 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
15374 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
15375 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
15376 Abort.
15377 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
15378 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
15379 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
15380
15381 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
15382 Ayal Zaks <zaks@il.ibm.com>
15383
15384 * common.opt (freschedule-modulo-scheduled-loops): New flag.
15385 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
15386 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
15387 when -freschedule-modulo-scheduled-loops flag is not specified.
15388 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
15389 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
15390 More accurate placing of insn in row of partial schedule.
15391 (ps_insn_find_column): New function.
15392 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
15393 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
15394 (schedule_region): Use sched_is_disabled_for_current_region_p.
15395 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
15396
15397 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
15398
15399 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
15400 change.
15401
15402 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
15403
15404 * config/i386/i386.c (ix86_expand_clrmem): Properly call
15405 gen_strset for 64bit target.
15406
15407 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
15408
15409 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
15410
15411 2004-08-07 Jason Merrill <jason@redhat.com>
15412
15413 Make return in memory explicit.
15414 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
15415 (assign_parm_find_data_types): Remove code for old front end
15416 invisible reference handling.
15417 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
15418 (expand_function_end): Likewise.
15419 * gimplify.c (gimplify_return_expr): Handle a dereferenced
15420 RESULT_DECL.
15421 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
15422 (declare_return_variable): Handle DECL_BY_REFERENCE.
15423 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
15424 (cp_genericize_r): Use convert_from_reference.
15425 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
15426 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
15427
15428 * c-common.c (c_warn_unused_result): Check TREE_USED before
15429 warning about a CALL_EXPR with an unused value.
15430
15431 2004-08-06 Mark Mitchell <mark@codesourcery.com>
15432
15433 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
15434 to the compiler. Use -fshort-wchar by default.
15435
15436 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
15437
15438 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
15439 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
15440 threshhold.
15441 * doc/invoke.texi (param): Document min-crossjump-insns.
15442
15443 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
15444
15445 PR c/13282
15446 * c.opt (Wmissing-field-initializers): New option.
15447 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
15448 * c-typeck.c (pop_init_level): Guard the missing field warning with
15449 warn_missing_field_initializers rather than extra_warnings.
15450 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
15451 some of the explanation from...
15452 (-Wextra): ...here. Say that the missing field warning can be
15453 seperately controlled by -Wmissing-field-initializers.
15454
15455 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
15456
15457 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
15458 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
15459 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
15460 * tree.def (ENTRY_VALUE_EXPR): Remove.
15461
15462 2004-08-06 Jakub Jelinek <jakub@redhat.com>
15463
15464 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
15465 the places where it is actually needed. Don't use repz; stosb
15466 for -Os with sufficiently small constant sizes.
15467 For sufficiently small repz; stos{l,q} repeat counts use a sequence
15468 of stos{l,q} instructions instead.
15469
15470 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15471
15472 PR tree-optimization/16807
15473 * loop-iv.c (dump_iv_info): Dump invariants correctly.
15474 (iv_subreg, iv_extend): Express value of invariant purely in
15475 base field.
15476
15477 2004-08-06 Mark Mitchell <mark@codesourcery.com>
15478
15479 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
15480 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
15481
15482 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
15483
15484 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
15485 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
15486 pre_dec_operand.
15487 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
15488 pattern until reload is finished to allow better code generation
15489 and split them completely into separate instrunctions.
15490 (*andsi3_split): New pattern.
15491
15492 2004-08-05 Mark Mitchell <mark@codesourcery.com>
15493
15494 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
15495 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
15496 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
15497 * tree.h (handle_dll_attribute): Declare. Test
15498 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
15499 * c-common.h (c_determine_visibility): Declare.
15500 * c-common.c (c_determine_visibility): New function.
15501 * c-decl.c (finish_decl): Use it.
15502 (finish_function): Likewise.
15503 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
15504 zero, by default. Use #if, not #ifdef, to test it.
15505 * config/arm/arm.c (arm_attribute_table): Use
15506 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
15507 #if.
15508 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
15509 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
15510 to 1.
15511 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
15512 * config/i386/i386.c (ix86_attribute_table): Use
15513 handle_dll_attribute for dllimport/dllexport. Test
15514 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
15515 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
15516 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
15517 it to 1.
15518 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
15519 with #if.
15520 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
15521 it to 1.
15522 * doc/extend.texi (dllexport): Clarify and correct documentation.
15523 (dllimport): Likewise.
15524 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
15525 handle_dll_attribute.
15526
15527 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15528
15529 * tree-ssa-loop-manip.c: New file.
15530 * Makefile.in (tree-ssa-loop-manip.o): Add.
15531 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
15532 Declare.
15533 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
15534 form.
15535 (tree_ssa_loop_done): Verify loop closed ssa form.
15536 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
15537
15538 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15539
15540 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
15541 pa_asm_output_aligned_local): New functions.
15542 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
15543 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
15544 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
15545 pa_asm_output_aligned_common.
15546 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
15547 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
15548 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
15549 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
15550 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
15551 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
15552 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
15553 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
15554 common data.
15555
15556 2004-08-05 Andrew Pinski <apinski@apple.com>
15557
15558 * objc/objc-act.c (build_objc_string_object): Mark the address
15559 expression as constant.
15560
15561 2004-08-05 David Edelsohn <edelsohn@gnu.org>
15562
15563 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
15564 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
15565 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
15566
15567 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
15568
15569 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
15570 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
15571 out, and associated obsolete comments.
15572
15573 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
15574
15575 * tree.h (force_fit_type): Return a tree, take three flags.
15576 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
15577 TREE_CONSTANT_OVERFLOW here.
15578 (int_const_binop, const_binop): Adjust.
15579 (size_int_type): Do sign extension here.
15580 (fold_convert_const, optimize_bit_field_compare,
15581 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
15582 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
15583 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
15584
15585 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15586
15587 PR tree-optimization/16864
15588 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
15589 for ssa names without default_def.
15590
15591 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
15592
15593 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
15594 frame pointer, restore eax with an ebp-relative address.
15595
15596 2004-08-04 Geoffrey Keating <geoffk@apple.com>
15597
15598 PR 14516
15599 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
15600 * c-common.h (make_rtl_for_local_static): Delete.
15601 * c-decl.c (shadow_tag_warned): Clean up comment.
15602 (finish_decl): Clean up spacing. Use set_user_assembler_name when
15603 appropriate. Don't pass asmspec to rest_of_decl_compilation.
15604 * c-semantics.c (make_rtl_for_local_static): Delete.
15605 * expr.c (init_block_move_fn): Use set_user_assembler_name.
15606 (init_block_clear_fn): Likewise.
15607 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
15608 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
15609 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
15610 * tree.h (make_decl_rtl): Remove second parameter.
15611 (set_user_assembler_name): New.
15612 * varasm.c (set_user_assembler_name): New.
15613 (make_decl_rtl): Remove second parameter. Update callers in many
15614 files.
15615
15616 2004-08-05 Adam Nemet <anemet@lnxw.com>
15617
15618 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
15619 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
15620 to LynxOS 4.0.
15621 * gthr-lynx.h: New file.
15622 * config/lynx-ng.h: Remove file.
15623 * config/lynx.h: Update to LynxOS 4.0.
15624 * config/t-lynx: New file.
15625 * config/i386/lynx-ng.h: Remove file.
15626 * config/i386/lynx.h: Update to LynxOS 4.0.
15627 * config/rs6000/lynxbase.h: Remove file.
15628 * config/rs6000/lynx.h: Update to LynxOS 4.0.
15629 * config/rs6000/t-lynx: New file.
15630 * doc/install.texi (Options specification): Remove reference to
15631 LynxOS from systems where --with-gnu-as makes a difference.
15632
15633 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
15634
15635 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
15636 __UINTMAX_TYPE__.
15637 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
15638 __INTMAX_MAX__.
15639 (c_cpp_builtins): Call it.
15640 * doc/cpp.texi: Update.
15641
15642 2004-08-04 David Edelsohn <edelsohn@gnu.org>
15643
15644 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
15645 cost.
15646
15647 2004-08-04 Jan Hubicka <jh@suse.cz>
15648
15649 * basic-block.h (profile_staus): New global variable.
15650 * cfg.c (profile_status): Declare.
15651 (check_bb_profile): Break out from ....; use profile_status
15652 (dump_flow_info): ... here.
15653 * cfgbuild.c (find_basic_blocks): Set profile_status.
15654 * cfgexpand.c (tree_expand_cfg): Likewise.
15655 * predict.c (estimate_probability): Likewise.
15656 * profile.c (branch_prob): Likewise.
15657 * tree-cfg.c (build_tree_cfg): Likewise.
15658 (dump_function_to_file): Use check_bb_profile.
15659 * tree-pretty-print (dump_bb_header): Likewise.
15660 * tree-profile.c (do_tree_profiling): Cleanup.
15661
15662 2004-08-04 Zack Weinberg <zack@codesourcery.com>
15663
15664 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
15665 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
15666 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
15667 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
15668 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
15669 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
15670 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
15671 (ggc-none.o, errors.o): Move rule to generators section;
15672 correct dependencies.
15673 (min-insn-modes.o): Move rule to generators section; remove
15674 unnecessary explicit command; correct dependencies.
15675 (print-rtl.o, print-rtl1.o): Correct dependencies.
15676 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
15677 (mostlyclean): Update.
15678
15679 * errors.c: Include bconfig.h not config.h. Correct comment.
15680 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
15681 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
15682 * print-rtl.c: Don't include tm_p.h.
15683
15684 * rtl.h: Move forward-decl of struct function down where it's
15685 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
15686 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
15687
15688 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15689 Jeff Law <law@redhat.com>
15690
15691 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
15692 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
15693 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
15694 manipulate the duplicated ssa names.
15695 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
15696 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
15697 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
15698 New functions.
15699 (release_ssa_name): Do not release ssa names that may have multiple
15700 definitions.
15701 * tree.h (release_ssa_name_force, mark_for_rewrite,
15702 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
15703 marked_ssa_names): Declare.
15704 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
15705 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
15706 Update call to rewrite_ssa_into_ssa.
15707
15708 2004-08-04 Mark Mitchell <mark@codesourcery.com>
15709
15710 * defaults.h (TARGET_DECLSPEC): New macro.
15711 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
15712 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
15713 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
15714 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
15715 __declspec support.
15716 (TARGET_DECLSPEC): Define.
15717 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
15718 __declspec support.
15719 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
15720 __declspec support.
15721 (TARGET_DECLSPEC): Define.
15722 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
15723 __declspec support.
15724 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
15725 support.
15726 * doc/tm.texi (TARGET_DECLSPEC): Document.
15727
15728 * doc/extend.texi: Fix typo in comment.
15729
15730 2004-08-04 Paul Brook <paul@codesourcery.com>
15731
15732 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
15733 (TARGET_CXX): Use it.
15734 * target.h (struct gcc_target): Add cdtor_returns_this.
15735 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
15736 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
15737 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
15738
15739 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
15740
15741 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
15742 low/high pair. Do range checking directly.
15743 (interpret_integer): Adjust.
15744
15745 2004-08-04 Nick Clifton <nickc@redhat.com>
15746
15747 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
15748 GCC ABI.
15749 * doc/invoke.texi: Document this new switch and also the -mrenesas
15750 switch.
15751
15752 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
15753
15754 * cfglayout.c (insn_locators_initialize): Update the current
15755 location before initializing a location.
15756
15757 2004-08-03 Zack Weinberg <zack@codesourcery.com>
15758
15759 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
15760 (dbxout_function_end): Return after emitting the "Lscope" symbol
15761 under the same conditions that this function formerly wasn't called.
15762 Add explanatory comments.
15763
15764 PR 14860
15765 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
15766 on the new decl.
15767
15768 PR 13956
15769 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
15770 functions, broken out of dbxout_block.
15771 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
15772 stabs too, if it contains symbols. Use the begin_label and
15773 the Lscope label (emitted by dbxout_function_end) for the
15774 range of this block.
15775
15776 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
15777
15778 * doc/install.texi: Update autoconf version requirements.
15779
15780 2004-08-03 Zack Weinberg <zack@codesourcery.com>
15781
15782 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
15783 * recog.c (general_operand, immediate_operand, nonmemory_operand)
15784 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
15785 * regclass.c (record_reg_classes): Likewise.
15786 * reload.c (find_reloads): Likewise.
15787 * reload1.c (reload): Likewise.
15788
15789 2004-08-03 Zack Weinberg <zack@codesourcery.com>
15790
15791 * gensupport.c (init_md_reader_args_cb): Renamed from
15792 init_md_reader_args. Add third option, callback function for
15793 parsing program-specific options. Add diagnosis of incorrect
15794 number of input files.
15795 (init_md_reader): Fold into init_md_reader_args_cb.
15796 (init_md_reader_args): Now a thin wrapper around
15797 init_md_reader_args_cb.
15798 * gensupport.h: Update prototypes.
15799
15800 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
15801 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
15802 * genrecog.c: No need to diagnose lack of an input file;
15803 init_md_reader_args will handle it.
15804 * genconditions.c: Likewise, and use init_md_reader_args.
15805 * genconstants.c: Likewise, and no need to call read_md_rtx.
15806
15807 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
15808
15809 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
15810 declarations.
15811
15812 2004-08-03 Mike Stump <mrs@apple.com>
15813
15814 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
15815 for frameworks.
15816 * doc/invoke.texi (Darwin Options): Update to reflect above.
15817
15818 2004-08-03 Roger Sayle <roger@eyesopen.com>
15819
15820 PR middle-end/16790
15821 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
15822 truncations, not just global truncations.
15823
15824 2004-08-03 Andrew Pinski <apinski@apple.com>
15825
15826 PR bootstrap/16865
15827 * loop-iv.c (simplify_using_assignment): Initialize lhs.
15828
15829 2004-08-03 Paul Brook <paul@codesourcery.com>
15830
15831 * gcc/doc/install.texi: Document MPFR requirement.
15832
15833 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
15834
15835 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
15836 and mmap() explicitly instead of relying on preset autoconf cache
15837 variables.
15838 * configure: Regenerate.
15839
15840 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
15841
15842 PR target/16570
15843 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
15844 to tmake_file.
15845 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
15846 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
15847 to tmake_file.
15848
15849 * config/i386/t-gmm_malloc: New file.
15850 * config/i386/t-pmm_malloc: Likewise.
15851
15852 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
15853
15854 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
15855 Tanguy Fautrà <tfautre@pandora.be>
15856
15857 * config/i386/pmm_malloc.h: New file.
15858
15859 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
15860
15861 * config/i386/gmm_malloc.h: New file.
15862
15863 2004-08-03 Dale Johannesen <dalej@apple.com>
15864
15865 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
15866 * c-common.c: Include opts.h.
15867 (c_common_get_alias_set): Fix check for a single input file.
15868 * toplev.c: Remove current_file_decl.
15869 * tree.h: Ditto.
15870
15871 2004-08-03 Mark Mitchell <mark@codesourcery.com>
15872
15873 * config.gcc (arm*-*-symbianelf*): New target.
15874 * config/arm/symbian.h: New file.
15875
15876 * gthr-gnat.c: Add visibility #pragmas.
15877 * gthr-gnat.h : Likewise.
15878 * gthr.h: Likewise.
15879 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
15880 (__ffsDI2): Likewise.
15881 (__clzSI2): Likewise.
15882 (__ctzSI2): Likewise.
15883 (__ctzDI2): Likewise.
15884 (__popcountSI2): Likewise.
15885 (__popcountDI2): Likewise.
15886 (__paritySI2): Likewise.
15887 (__parityDI2): Likewise.
15888 * libgcc2.h: Add visibility #pragmas.
15889 (__clzDI2): Add prototype.
15890 (__clzSI2): Likewise.
15891 (__ctzSI2): Likewise.
15892 (__ffsDI2): Likewise.
15893 (__ffsSI2): Likewise.
15894 (__ctzDI2): Likewise.
15895 (__popcountSI2): Likewise.
15896 (__popcountDI2): Likewise.
15897 (__paritySI2): Likewise.
15898 (__parityDI2): Likewise.
15899 * unwind-dw2-fde.h: Add visibility #pragmas.
15900 * unwind.h: Likewise.
15901
15902 2004-08-03 David Edelsohn <edelsohn@gnu.org>
15903 Dale Johannesen <dalej@apple.com>
15904 Roger Sayle <roger@eyesopen.com>
15905
15906 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
15907 constants more accurately. Adjust costs for FMA instructions.
15908 Add cases for most logical and float operations. Recurse into
15909 most operands.
15910
15911 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
15912
15913 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
15914
15915 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
15916
15917 * ra-build.c (conflicts_between_webs): For webs that cross a call add
15918 conflicts to regs_invalidated_by_call.
15919
15920 2004-08-03 Paul Brook <paul@codesourcery.com>
15921
15922 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
15923
15924 2004-08-03 Jan Hubicka <jh@suse.cz>
15925
15926 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
15927 ARRAY_REF argument.
15928
15929 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
15930
15931 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
15932 arm968es, arm10e, arm1020e, arm1022e.
15933 * invoke.texi: Update list of ARM cores.
15934 * arm-tune.md: Regenerate.
15935
15936 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
15937
15938 * arm/gentune.sh: New file.
15939 * arm/t-arm: New file.
15940 * arm/arm-tune.md: New file (autogenerated).
15941 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
15942 * arm.md (attribute tune): Delete. Include arm-tune.md.
15943
15944 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
15945
15946 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
15947 penultimate parameter. All callers adjusted.
15948 (struct prefix_list): Remove used_flag_ptr.
15949 (find_a_file): Do not set *pl->used_flag_ptr.
15950 (warn_B, warn_std_ptr): Remove.
15951
15952 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
15953 Mostafa Hagog <mustafa@il.ibm.com>
15954
15955 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
15956
15957 2004-08-02 Geoffrey Keating <geoffk@apple.com>
15958
15959 * dwarf2out.c (output_call_frame_info): Don't change data format
15960 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
15961 label. Use 'true' not '1'.
15962 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
15963 required.
15964
15965 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
15966
15967 * gdbinit.in: Reflect previous changes to rtunion_def.
15968
15969 2004-08-02 Roger Sayle <roger@eyesopen.com>
15970
15971 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
15972 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
15973
15974 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
15975
15976 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
15977 vec_p_reserve.
15978 * langhooks.h (lang_hooks::builtin_function): Rename parameter
15979 from "class" to "bt_class".
15980
15981 2004-08-02 Paul Brook <paul@codesourcery.com>
15982
15983 PR rtl-optimization/15068
15984 * flow.c (init_propagate_block_info): Check condition is reversible.
15985
15986 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
15987
15988 * gengtype.h (options::info): Change type to const char *.
15989 (enum gc_used_enum): Move out of struct type scope.
15990 * gengtype.c (create_option): Convert initializer for option::info to
15991 appropiate type.
15992 (adjust_field_type, walk_type, write_func_for_structure,
15993 write_root, write_roots): Remove pointless cast.
15994
15995 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
15996
15997 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
15998
15999 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
16000
16001 * rtl.h (union rtunion_def): Have all members start with the
16002 prefix "rt_".
16003 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
16004 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
16005 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
16006 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
16007 access.
16008 * gengtype.c (adjust_field_rtx_def): Likewise.
16009 * rtlanal.c (loc_mentioned_in_p): Likewise.
16010
16011 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
16012
16013 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
16014 Replace uses of mips/elf64.h with mips/elf.h
16015 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
16016 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
16017 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
16018 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
16019 (HANDLE_SYSV_PRAGMA): Delete.
16020 (ASM_OUTPUT_DEF): Fix formatting.
16021 * config/mips/elf64.h: Delete.
16022
16023 2004-08-01 Zack Weinberg <zack@codesourcery.com>
16024
16025 * config/ia64/ia64.c (got_symbolic_operand): Do require a
16026 symbol+offset operand to have its offset be zero mod 0x3fff
16027 when GOT entries are in use. Clarify logic in SYMBOL_REF
16028 case. Clarify comments.
16029 (ia64_expand_load_address): Split a symbol+offset load when
16030 the offset is nonzero mod 0x3fff, not 0x1fff.
16031
16032 2004-08-01 Geoffrey Keating <geoffk@apple.com>
16033
16034 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
16035 if trying to *store* to a non-offsettable address.
16036 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
16037 a nonoffsettable address.
16038 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
16039 Clean up.
16040 (movti_string): Don't move GPRs to a nonoffsettable address.
16041 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
16042
16043 2004-08-02 Ben Elliston <bje@au.ibm.com>
16044
16045 PR target/16155
16046 * config/rs6000/altivec.h: Replace typeof with __typeof__.
16047
16048 2004-08-01 Richard Henderson <rth@redhat.com>
16049
16050 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
16051 variable sized types.
16052
16053 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
16054
16055 * doc/invoke.texi: In the MIPS options section, remove the passage
16056 saying that -mexplicit-relocs is usually disabled for -mabicalls
16057 -fno-unit-at-a-time.
16058 * config/mips/mips.c (override_options): Remove the code that enforced
16059 this rule.
16060
16061 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
16062
16063 * config/mips/mips.md (cprestore): Provide two alternatives, one for
16064 an in-range offset and one for an out-of-range offset. Wrap the latter
16065 in .set macro/.set nomacro if it's inside a .set nomacro block.
16066
16067 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
16068
16069 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
16070 (mips_restore_gp): Declare.
16071 * config/mips/mips.c (mips_add_offset): Add a scratch register
16072 argument. Reimplement in rtl only, reusing MIPS16 logic from
16073 mips_output_mi_thunk.
16074 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
16075 to mips_add_offset.
16076 (mips_gp_save_slot): Delete.
16077 (mips_restore_gp): New function.
16078 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
16079 * config/mips/mips.md (exception_receiver): Turn into a
16080 define_insn_and_split. Use mips_restore_gp to do the split.
16081 (call_internal, call_value_internal, call_value_multiple_internal): Use
16082 mips_restore_gp to restore $gp.
16083
16084 2004-07-31 Andrew Pinski <apinski@apple.com>
16085
16086 PR other/16842
16087 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
16088
16089 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
16090
16091 * c-decl.c (diagnose_mismatched_decls): Give error for external
16092 redeclaration of identifier declared with no linkage, not just
16093 warning with -Wtraditional. Do not check DECL_CONTEXT to give
16094 error for redeclaration with no linkage.
16095
16096 2004-07-30 Geoffrey Keating <geoffk@apple.com>
16097 Fariborz Jahanian <fjahanian@apple.com>
16098
16099 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
16100 non-offsettable addresses even for DImode.
16101 (rs6000_split_multireg_move): Cope with non-offsettable addresses
16102 being moved into multiple GPRs.
16103
16104 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
16105 to 64.
16106 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
16107 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
16108 to 128.
16109 * config/rs6000/darwin-ldouble.c (isless): New macro.
16110 (inf): New macro.
16111 (nonfinite): New macro.
16112 (FPKINF): Delete.
16113 (_xlqadd): Completely rewrite.
16114 (_xlqmul): Correct overflow handling.
16115 (_xlqdiv): Correct overflow handling.
16116 * config/rs6000/darwin-ldouble-format: New file.
16117
16118 2004-07-30 Roger Sayle <roger@eyesopen.com>
16119 Richard Henderson <rth@redhat.com>
16120
16121 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
16122 9 into the equivalent lea instruction.
16123
16124 2004-07-30 Richard Henderson <rth@redhat.com>
16125
16126 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
16127 with DECL_INITIAL if fb_lvalue.
16128 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
16129 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
16130 with <Cxxx>.
16131 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
16132
16133 2004-07-30 Diego Novillo <dnovillo@redhat.com>
16134
16135 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
16136 pointer escapes through a function call, assume that the
16137 callee will dereference it.
16138 (add_pointed_to_var): Assume that VALUE is always an
16139 ADDR_EXPR.
16140 (collect_points_to_info_r): Only call add_pointed_to_var if
16141 the value is an ADDR_EXPR.
16142
16143 2004-07-30 Diego Novillo <dnovillo@redhat.com>
16144
16145 * tree-ssa-alias.c (create_alias_map_for): Do not get the
16146 alias set of the inner type of ARRAY_TYPEs.
16147
16148 2004-07-29 Diego Novillo <dnovillo@redhat.com>
16149
16150 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
16151 setting a non-register to UNDEFINED right before the call to
16152 set_lattice_value.
16153
16154 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
16155
16156 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
16157
16158 2004-07-29 Diego Novillo <dnovillo@redhat.com>
16159
16160 * tree-ssa.c (verify_flow_sensitive_alias_info): When
16161 comparing points-to sets of different pointers, make sure the
16162 second pointer is actually referenced in the code.
16163
16164 2004-07-29 Zack Weinberg <zack@codesourcery.com>
16165
16166 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
16167 (got_symbolic_operand): Remove unreachable code.
16168 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
16169 setjmp_operand; add entry for tls_symbolic_operand.
16170 * config/ia64/ia64-protos.h: Remove all prototypes of
16171 predicate functions.
16172
16173 2004-07-29 Mark Mitchell <mark@codesourcery.com>
16174
16175 * c-common.h (lang_post_pch_load): New variable.
16176 * c-pch.c (lang_post_pch_load): Define it.
16177 (c_common_read_pch): Use it.
16178 * cgraphunit.c (record_call_1): Give the front end a chance to
16179 record additional needed entities when a variable is marked as
16180 needed.
16181 * tlink.c (recompile_files): Robustify.
16182 (scan_linker_output): If a symbol is assigned to a file,
16183 but after recompilation is not present there, issue an error
16184 message.
16185
16186 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16187
16188 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
16189 Take orig_loop argument and pass it to set_level.
16190 (schedule_sm): Pass the correct orig_loop to force_move_till.
16191
16192 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16193
16194 * cfgloop.c (update_latch_info): Update dominator of the new block.
16195 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
16196 info.
16197 * dominance.c (verify_dominators): Check that the dominance tree is
16198 connected.
16199 (recount_dominator): Ignore unreachable blocks.
16200 (iterate_fix_dominators): Cleanup old dominance information before
16201 recomputing it.
16202
16203 2004-07-29 Diego Novillo <dnovillo@redhat.com>
16204
16205 * tree-ssa-operands.c (get_expr_operands): Revert changes
16206 to ADDR_EXPR processing introduced by:
16207 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16208 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
16209
16210 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
16211
16212 * doc/implement-c.texi: Add C90 subclause references. Point to
16213 preprocessor documentation instead of duplicating it. Add points
16214 only present in C90. Fill in documentation for all points.
16215
16216 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16217
16218 * pa.c (output_movb): Correct typo.
16219
16220 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
16221
16222 * ra.h (single_reg_in_regclass): Declare.
16223 * ra.c (single_reg_in_regclass): Define.
16224 (first_hard_reg): New.
16225 (init_ra): Initialize single_reg_in_regclass.
16226 * ra-colorize.c (ok_class): New.
16227 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
16228
16229 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
16230
16231 * gcov-io.h: Allow zero tag as EOF indicator.
16232 (gcov_is_eof): Remove.
16233 (gcov_truncate): Remove.
16234 * gcov-io.c (gcov_seek): Always SEEK_SET.
16235 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
16236 EOF tag.
16237 * coverage.c (read_counts_file): Don't use gcov_is_eof.
16238 * gcov-dump.c (dump_file): Likewise.
16239 * gcov.c (read_graph_file, read_count_file): Likewise.
16240
16241 * c-decl.c (complete_array_type): Don't gratuitously copy
16242 maxindex. Check it always has a type.
16243
16244 2004-07-29 Steven Bosscher <stevenb@suse.de>
16245
16246 * rtl.c (currently_expanding_to_rtl): New.
16247 * rtl.h (currently_expanding_to_rtl): Export it.
16248 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
16249
16250 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
16251 inliner hack.
16252 * config/sh/sh.c: Replace rtx_equal_function_value_matters
16253 with currently_expanding_to_rtl.
16254 * config/sh/sh.md: Likewise.
16255 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
16256
16257 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
16258
16259 Introduce sh2a support.
16260 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
16261 * config.gcc: Build multilibs for sh2a and sh2a-single by
16262 default.
16263 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
16264 default. Split their tests out of the corresponding SH4
16265 multilibs.
16266 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
16267 multilibs for SH2a.
16268 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
16269 * config.gcc: Handle sh2a multilibs and cpu selection.
16270 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
16271 * config/sh/t-mlib-sh2a: New.
16272 * config/sh/t-mlib-sh2a-nofpu: New.
16273 * config/sh/t-mlib-sh2a-single: New.
16274 * config/sh/t-mlib-sh2a-single-only: New.
16275 2004-07-09 Nick Clifton <nickc@redhat.com>
16276 Issue 43400
16277 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
16278 -ml and -m2a are used together.
16279 2004-03-23 DJ Delorie <dj@redhat.com>
16280 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
16281 when we have a double-sized FPU.
16282 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
16283 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
16284 is set.
16285 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
16286 -msh2a-single and -msh2a-single-only
16287 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
16288 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
16289 is set.
16290 2004-02-20 DJ Delorie <dj@delorie.com>
16291 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
16292 2004-02-20 Fred Fish <fnf@redhat.com>,
16293 Corinna Vinschen <vinschen@redhat.com>
16294 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
16295 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
16296 2004-02-18 DJ Delorie <dj@redhat.com>
16297 * config/sh/sh.c (broken_move): Add support for movi20.
16298 * config/sh/sh.h: Likewise.
16299 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
16300 * config/sh/sh.md (udivsi3_sh2a): New.
16301 (udivsi3): Call it.
16302 (divsi3_sh2a): New.
16303 (divsi3): Call it.
16304 (mul_r): New.
16305 (ashlsi3_sh2a): New.
16306 (ashrsi3_sh2a): New.
16307 (lshrsi3_sh2a): New.
16308 (movsi_i): Disable for sh2a.
16309 (movsi_ie): Add movi20.
16310 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
16311 sh2a, for -m2a-nofpu mode.
16312 2004-02-13 DJ Delorie <dj@redhat.com>
16313 * config/sh/lib1funcs.asm: Handle double vs single better.
16314 * config/sh/sh.h: Likewise.
16315 2004-02-09 DJ Delorie <dj@redhat.com>
16316 * config/sh/crt1.asm: Add support for sh2a.
16317 * config/sh/elf.h: Likewise.
16318 * config/sh/lib1funcs.asm: Likewise.
16319 * config/sh/sh.c: Likewise.
16320 * config/sh/sh.md: Likewise.
16321 * config/sh/sh.h: Likewise.
16322 * config/sh/t-sh: Likewise.
16323
16324 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
16325
16326 * config/frv/frv.md (movqi_internal, movhi_internal,
16327 movsi_internal): Add backup alternatives for memory inputs.
16328
16329 2004-07-28 Matt Austern <austern@apple.com>
16330
16331 * config/darwin.c (darwin_one_byte_bool): New global variable.
16332 * config/darwin.h (darwin_one_byte_bool): Declare.
16333 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
16334 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
16335 value of darwin_one_byte_bool.
16336 * doc/invoke.texi: Document -mone-byte-bool flag.
16337
16338 2004-07-28 Eric Christopher <echristo@redhat.com>
16339
16340 * c-common.c (c_common_unsafe_for_reeval): Delete.
16341 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
16342 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
16343 * calls.c (fix_unsafe_tree): Delete.
16344 (expand_call): Delete code which used above.
16345 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
16346 * expr.c (expand_expr_real_1): Ditto.
16347 * fold-const.c (non_lvalue): Ditto.
16348 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
16349 (lhd_unsafe_for_reeval): Ditto.
16350 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
16351 * langhooks.h (unsafe_for_reeval): Ditto.
16352 (unsave_expr_now): Adjust comment.
16353 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
16354 (estimate_num_insns_1): Ditto.
16355 * tree-pretty-print.c (dump_generic_node): Ditto.
16356 * tree.c (expr_align): Ditto.
16357 (unsave_expr): Delete.
16358 (unsafe_for_reeval): Ditto.
16359 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
16360 * tree.def (UNSAVE_EXPR): Delete.
16361 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
16362
16363 2004-07-28 Zack Weinberg <zack@codesourcery.com>
16364
16365 * tree.h (enum tls_model): Move ...
16366 * coretypes.h: ... here.
16367
16368 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
16369
16370 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
16371
16372 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
16373
16374 * cse.c (validate_canon_reg): New function, split out from...
16375 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
16376
16377 2004-07-28 Diego Novillo <dnovillo@redhat.com>
16378
16379 * tree-ssa-alias.c (maybe_create_global_var): Don't just
16380 return if .GLOBAL_VAR has been created.
16381
16382 2004-07-28 Diego Novillo <dnovillo@redhat.com>
16383
16384 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
16385 every variable that may have aliases, not just tags.
16386
16387 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
16388
16389 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
16390 move_from_CR_eq_bit.
16391 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
16392
16393
16394 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
16395 e500_flip_eq_bit.
16396
16397 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
16398 output_e500_flip_eq_bit.
16399
16400 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
16401 output_e500_flip_eq_bit.
16402 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
16403 output_e500_flip_eq_bit.
16404 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
16405 (print_operand): case D. Get to EQ bit.
16406
16407 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
16408
16409 * gcov.c (function_summary): Add missing \n.
16410
16411 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
16412
16413 Introduce sh4a support.
16414 * config.gcc: Handle sh4a multilibs and cpu selection.
16415 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
16416 * config/sh/t-mlib-sh4a: New.
16417 * config/sh/t-mlib-sh4al: New.
16418 * config/sh/t-mlib-sh4a-nofpu: New.
16419 * config/sh/t-mlib-sh4a-single: New.
16420 * config/sh/t-mlib-sh4a-single-only: New.
16421 2004-02-20 DJ Delorie <dj@redhat.com>
16422 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
16423 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
16424 2003-08-22 Eric Christopher <echristo@redhat.com>
16425 * config/sh/sh4a.md: Update for chip errata.
16426 2003-08-07 Eric Christopher <echristo@redhat.com>
16427 * config/sh/sh4a.md: New file. sh4a processor description.
16428 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
16429 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
16430 of -m4a-nofpu.
16431 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
16432 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
16433 * doc/invoke.texi (SH Options): Document -m4al.
16434 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
16435 * config/sh/sh.c (expand_block_move): Remove commented-out code
16436 checked in by mistake.
16437 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
16438 single elements from SFmode vectors.
16439 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
16440 register.
16441 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
16442 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
16443 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
16444 sh_fsca_int2sf): Remove variable declarations.
16445 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
16446 sh_fsca_int2sf): New functions.
16447 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
16448 sh_fsca_int2sf_rtx): New static variables.
16449 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
16450 sh_fsca_int2sf): Declare.
16451 * config/sh/sh.md: Adjust.
16452 * doc/invoke.texi (SH Options): Document new options.
16453 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
16454 compatibility from SH4 code.
16455 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
16456 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
16457 early.
16458 (memory_movsrc_operand): Renamed to...
16459 (unaligned_load_operand): ... this. Simplified.
16460 * config/sh/sh.h (PREDICATE_CODES): Adjust.
16461 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
16462 input operand to SImode, and adjust the others. Introduce
16463 post-increment by peephole.
16464 * config/sh/sh.c (expand_block_move): Give the target address the
16465 same mode as the temp reg.
16466 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
16467 copying.
16468 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
16469 Introduce support for SH4a.
16470 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
16471 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
16472 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
16473 sh_fsca_int2sf): New.
16474 (sh_init_builtins): Initialize them.
16475 (print_operand): Support `d'.
16476 (expand_block_move): Use movua if src is misaligned.
16477 (memory_movsrc_operand): New.
16478 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
16479 and one of the SH4 macros.
16480 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
16481 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
16482 SELECT_SH4A_SINGLE): New.
16483 (TARGET_NONE): Add SH4A_BIT.
16484 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
16485 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
16486 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
16487 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
16488 (enum processor_type): Added PROCESSOR_SH4A.
16489 (PREDICATE_CODES): Add memory_movsrc_operand.
16490 * config/sh/sh.md: Removed unused variables.
16491 (attr cpu): Add sh4a.
16492 (attr type): Add movua, fsrra and fsca.
16493 (prefetch): New, for SH4.
16494 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
16495 (toggle_sz): Set type to fp.
16496 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
16497 (movua, extv, extzv): New.
16498 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
16499 and 4a-single-only.
16500
16501 2004-07-28 Diego Novillo <dnovillo@redhat.com>
16502
16503 * tree-optimize.c (init_tree_optimization_passes): Schedule
16504 pass_may_alias right after the program is renamed into SSA.
16505 * tree-pass.h (PROP_alias): Define.
16506 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
16507 * tree-sra.c (pass_sra): Likewise.
16508 * tree-ssa-ccp.c (pass_ccp): Likewise.
16509 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
16510 * tree-ssa-dce.c (pass_dce): Likewise.
16511 * tree-ssa-dom.c (pass_dominator): Likewise.
16512 * tree-ssa-dse.c (pass_dse): Likewise.
16513 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
16514 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16515 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
16516 * tree-ssa-pre.c (pass_pre): Likewise.
16517 * tree-tailcall.c (pass_tail_recursion): Likewise.
16518 * tree-ssa.c (pass_redundant_phi): Likewise.
16519 * tree-ssa-alias.c (aliases_computed_p): Remove.
16520 Update all users.
16521 (init_alias_info): Do not mark all type tags for renaming
16522 unconditionally.
16523 Clear may_aliases from every symbol.
16524 (setup_pointers_and_addressables): If a pointer has not been
16525 dereferenced and it had a type tag, clear it and mark the old
16526 tag for renaming.
16527
16528 2004-07-28 Diego Novillo <dnovillo@redhat.com>
16529
16530 PR tree-optimization/16705
16531 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
16532 .GLOBAL_VAR.
16533
16534 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16535
16536 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
16537 check.
16538
16539 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
16540 don't make another one.
16541
16542 PR optimization/15077
16543 * function.h (struct function): Add field saved_static_chain_decl.
16544 Fix comment for static_chain_decl.
16545 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
16546 * tree-inline.h (save_body): Add new arg.
16547 * tree-optimize.c (tree_rest_of_compilation): Handle saving
16548 static_chain_decl.
16549
16550 2004-07-27 Richard Henderson <rth@redhat.com>
16551
16552 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
16553 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
16554 is_gimple_addressable.
16555 * tree-gimple.c (is_gimple_addressable): Rename from
16556 is_gimple_addr_expr_arg; accept INDIRECT_REF.
16557 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
16558 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
16559 rename to is_gimple_addressable.
16560
16561 2004-07-28 Alan Modra <amodra@bigpond.net.au>
16562
16563 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
16564
16565 2004-07-27 Richard Henderson <rth@redhat.com>
16566
16567 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
16568 before rounding.
16569
16570 2004-07-27 Zack Weinberg <zack@codesourcery.com>
16571
16572 * libgcc2.c: Change all conditionals testing
16573 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
16574 * libgcc2.h: Likewise.
16575 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
16576 TYPE_PRECISION of float80_type to 80.
16577 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
16578 of fpreg_type and float80_type to 80.
16579 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
16580 * config/m68k/netbsd-elf.h:
16581 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
16582 to evaluate to 80 whenever they would formerly have evaluated to 96.
16583 * config/i386/sco5.h: Remove unnecessary redefinition of
16584 LONG_DOUBLE_TYPE_SIZE.
16585 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
16586 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
16587 XFmode, with a bitsize of 80. Update commentary.
16588 * config/ia64/ia64-modes.def: Likewise.
16589 * config/m68k/m68k-modes.def: Likewise.
16590
16591 2004-07-27 Steven Bosscher <stevenb@suse.de>
16592
16593 * cfgexpand.c (tree_expand_cfg): Fix comment.
16594
16595 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
16596 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
16597 Remove.
16598 (prepare_function_start): Don't set rtx_equal_function_value_matters.
16599 * integrate.c (copy_rtx_and_substitute): Don't test for it.
16600 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
16601 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
16602 here again. Update leading comment.
16603 * rtl.c (rtx_equal_function_value_matters): Remove.
16604 (rtx_equal_p): Don't test for it.
16605 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
16606 Likewise.
16607
16608 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
16609 * rtl.c (note_insn_name): Likewise.
16610 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
16611 * final.c (final_scan_insn): Likewise.
16612
16613 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
16614 * passes.c (rest_of_handle_eh): Do it here.
16615
16616 * stmt.c (struct nesting): Remove struct nesting block member.
16617 (struct stmt_status): Remove x_block_start_count field.
16618 (current_block_start_count): Remove.
16619
16620 2004-07-27 Brian Booth <bbooth@redhat.com>
16621
16622 * tree-optimize.c (register_one_dump_file): Update condition that uses
16623 static_pass_number.
16624 (dup_pass_1): Replace with...
16625 (next_pass_1): This.
16626 (NEXT_PASS): Call next_pass_1.
16627 (DUP_PASS): Remove.
16628 (init_tree_optimization_passes): Remove uses of DUP_PASS.
16629 (execute_one_pass): Update condition that uses
16630 static_pass_number.
16631 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
16632 integer.
16633
16634 2004-07-27 Nick Clifton <nickc@redhat.com>
16635
16636 * config/m32r/m32r.c: Include integrate.h in order to get the
16637 prototype for get_hard_reg_initial_val().
16638
16639 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
16640 and tidy up indentation.
16641 (final_presence_set): Use absence_set instead, so that if there is
16642 nothing in the "o" pipe the "s" pipe can be scheduled.
16643
16644 2004-07-27 Diego Novillo <dnovillo@redhat.com>
16645
16646 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
16647 don't have PT_VARS nor PT_MALLOC set.
16648 Clear name tag from pointers that have not been dereferenced.
16649 (set_pt_anything, set_pt_malloc): Forward declare.
16650 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
16651 not type compatibility when determining if a pointer can be
16652 copy propagated.
16653
16654 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
16655
16656 * expr.h (canonicalize_condition, get_condition): Add an int argument.
16657 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
16658 it to check whether the condition is still valid at the jump insn.
16659 * ifcvt.c (noce_get_condition): Likewise.
16660 (noce_get_alt_condition): Update call to canonicalize_condition.
16661 * loop-iv.c (simplify_using_initial_values): Update call to
16662 get_condition. Remove FIXME.
16663 (check_simple_exit): Update call to get_condition.
16664 * loop-unswitch.c (may_unswitch_on): Likewise.
16665 * loop.c (check_dbra_loop): Likewise.
16666 (canonicalize_condition, get_condition): Add an argument to say whether
16667 the condition must still be valid at INSN.
16668 (get_condition_for_loop): Update call to get_condition. Require that
16669 the condition be valid at INSN.
16670 * predict.c (estimate_probability): Update call to get_condition.
16671 Remove unused earliest parameter.
16672 (expected_value_to_br_prob): Update call to canonicalize_condition.
16673
16674 2004-07-26 Eric Christopher <echristo@redhat.com>
16675
16676 * tree-dfa.c (add_referenced_var): Register initializers of global
16677 variables.
16678
16679 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
16680
16681 * config/i386/i386.c (function_arg): Always treat 8-
16682 and 16-byte wide vectors the same, even if MMX/SSE
16683 are disabled.
16684 (contains_128bit_aligned_vector_p): Add comment.
16685
16686 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
16687
16688 * ra.h (enum node_type): Rename to:
16689 (enum ra_node_type).
16690 * ra-colorize.c: Likewise.
16691
16692 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
16693
16694 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
16695 after simplifying the jump.
16696
16697 2004-06-26 Richard Henderson <rth@redhat.com>
16698
16699 * calls.c (combine_pending_stack_adjustment_and_call): Make
16700 preferred_unit_stack_boundary argument unsigned. Make
16701 unadjusted_alignment unsigned.
16702 (expand_call): Make preferred_stack_boundary and
16703 preferred_unit_stack_boundary variables unsigned.
16704 * function.c (assign_stack_local_1): Make alignment unsigned.
16705 * function.h (struct function): Make stack_alignment_needed,
16706 preferred_stack_boundary unsigned.
16707 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
16708 (ix86_compute_frame_layout): Make stack_alignment_needed,
16709 preferred_alignment variables unsigned.
16710 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
16711
16712 2004-07-26 Tom Tromey <tromey@redhat.com>
16713
16714 * tree.h: Fix typo in comment.
16715
16716 2004-07-26 Daniel Jacobowitz <dan@debian.org>
16717
16718 PR bootstrap/12804
16719 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
16720 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
16721 (ggc_free): Remove incorrect freeing.
16722 (sweep_pages): Advance PP for large pages. Fix indentation.
16723
16724 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
16725
16726 PR rtl-optimization/16643
16727 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
16728 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
16729 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
16730 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
16731 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
16732 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16733 * rtl.h (tracer): Add a flags parameter.
16734 * tracer.c (tracer): Pass it to cfg_layout_initialise.
16735 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
16736 (rest_of_handle_reorder_blocks): Update calls to tracer and
16737 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
16738 (rest_of_handle_tracer): Pass 0 to tracer.
16739 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
16740
16741 2004-07-25 David Edelsohn <edelsohn@gnu.org>
16742
16743 PR target/16239
16744 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
16745 f->f.
16746
16747 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
16748
16749 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
16750 (BINFO_BASE_ACCESS): Adjust.
16751 (BINFO_BASE_ACCESS_APPEND): New.
16752 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
16753 * dbxout.c (dbxout_type): Adjust binfo access accessing.
16754 * dwarf2out.c (gen_member_die): Likewise.
16755 * tree-dump.c (deque_and_dump): Likewise.
16756
16757 2004-07-26 Falk Hueffner <falk@debian.org>
16758
16759 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
16760 costs.
16761
16762 2004-07-25 Roger Sayle <roger@eyesopen.com>
16763
16764 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
16765 value off of the stack if TARGET_USE_FFREEP.
16766
16767 2004-07-26 Bernardo Innocenti <bernie@develer.com>
16768
16769 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
16770 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
16771 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
16772 check on invocation of XRESIZEVEC ().
16773
16774 2004-07-26 Bernardo Innocenti <bernie@develer.com>
16775
16776 * c-common.c (disable_builtin_function): Rename variable n to
16777 new_disabled_builtin.
16778 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
16779 Rename local variable old to old_decl.
16780 * gensupport.c (shift_output_template): Rename parameter old to src.
16781 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
16782 old_rtx and newx to new_rtx.
16783
16784 2004-07-26 Bernardo Innocenti <bernie@develer.com>
16785
16786 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
16787 of c-pragma.h.
16788 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
16789 enum cpp_ttype.
16790 * c-lex.c: Likewise.
16791
16792 2004-07-25 Roger Sayle <roger@eyesopen.com>
16793
16794 * fold-const.c (constant_boolean_node): Make extern.
16795 (make_range): Wrap long lines.
16796 (fold_cond_expr_with_comparison): Remove unnecessary call to
16797 pedantic_non_lvalue. Add missing calls to fold_convert.
16798 (fold_truthop): Add missing calls to fold_convert.
16799 (fold): Likewise.
16800 * tree.h (constant_boolean_node): Add prototype here.
16801 * builtins.c (expand_builtin_strncmp): Add missing calls to
16802 fold_convert.
16803 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
16804 Call fold_convert and constant_boolean_node to correct types.
16805 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
16806 missing call to fold_convert to correct types.
16807
16808 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
16809 Brian Ryner <bryner@brianryner.com>
16810
16811 PR c++/9283
16812 PR c++/15000
16813 * c-common.c (c_common_attribute_table): Allow
16814 handle_visibility_attribute to be called for types.
16815 (handle_visibility_attribute) When given a type, set the visibility
16816 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
16817 so that we can check later whether the attribute was present. Added
16818 warning if attribute applied to non class type.
16819 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
16820 decls and checking that they are consistent.
16821 * common.opt: Added -fvisibility.
16822 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
16823 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
16824 * flags.h, tree.h: Added assorted support defines for overall patch
16825 * opts.c: Added parsing support for -fvisibility.
16826 * tree.c (build_decl): Set visibility for all decls to be whatever
16827 is in force at that time.
16828 * varasm.c (default_binds_local_p_1): Reworked logic determining
16829 when to make a symbol locally bound.
16830 * doc/invoke.texi: Added documentation for -fvisibility and
16831 -fvisibility-inlines-hidden.
16832
16833 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16834
16835 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
16836 * c-common.c: Add missing casts from void * to other types.
16837 * c-decl.c: Likewise.
16838 * c-format.c: Likewise.
16839 * c-lex.c: Likewise.
16840 * c-pragma.c: Likewise.
16841 * c-typeck.c: Likewise.
16842 * defaults.h: Likewise.
16843 * genconstants.c: Likewise.
16844 * gengtype-lex.l: Likewise.
16845 * genmodes.c: Likewise.
16846 * read-rtl.c: Likewise.
16847 * rtl.c: Likewise.
16848
16849 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16850
16851 * bitmap.c: Use type-safe memory allocation macros from libiberty.
16852 * c-common.c: Likewise.
16853 * c-decl.c: Likewise.
16854 * c-lang.c: Likewise.
16855 * c-lex.c: Likewise.
16856 * c-opts.c: Likewise.
16857 * c-parse.in: Likewise.
16858 * c-typeck.c: Likewise.
16859 * genconditions.c: Likewise.
16860 * gengtype-lex.l: Likewise.
16861 * gengtype-yacc.y: Likewise.
16862 * gengtype.c: Likewise.
16863 * genmodes.c: Likewise.
16864 * gensupport.c: Likewise.
16865 * read-rtl.c: Likewise.
16866 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
16867 htab_find_slot().
16868
16869 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16870
16871 * c-decl.c (groktypename, groktypename_in_param_context): Rename
16872 variable typename to type_name.
16873 * c-lex.c (interpret_float): Likewise.
16874
16875 2004-07-25 Roger Sayle <roger@eyesopen.com>
16876
16877 * convert.c (convert_to_real, convert_to_integer,
16878 convert_to_complex): Replace calls to build with calls to buildN.
16879 * coverage.c (tree_coverage_counter_ref): Likewise.
16880 * dojump.c (do_jump): Likewise.
16881 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
16882 * emit-rtl.c (component_ref_for_mem_expr,
16883 set_mem_attributes_minus_bitpos): Likewise.
16884 * explow.c (update_nonlocal_goto_save_area): Likewise.
16885 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
16886 expand_mult_add): Likewise.
16887 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
16888 store_constructor, get_inner_reference, expand_expr_real_1,
16889 try_casesi, try_tablejump): Likewise.
16890 * function.c (expand_function_start): Likewise.
16891 * stmt.c (emit_case_bit_tests, expand_end_case_type,
16892 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
16893 * stor-layout.c (place_union_field, layout_type): Likewise.
16894 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
16895 * varasm.c (copy_constant): Likewise.
16896
16897 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16898
16899 * c-common.c: Rename all identifiers named `new'.
16900 * c-decl.c: Likewise.
16901 * gensupport.c: Likewise.
16902 * simplify-rtx.c: Likewise.
16903 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
16904 with XNEW().
16905 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
16906 with XNEWVEC().
16907
16908 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
16909
16910 PR c/15360
16911 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
16912 declarations until after calling pushdecl.
16913 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
16914 "extern" and not on whether the declaration is initialized.
16915
16916 2004-07-25 Daniel Jacobowitz <dan@debian.org>
16917
16918 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
16919 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
16920 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
16921 "cpplib.h", "c-pragma.h", "c-common.h".
16922 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
16923 (solaris_register_pragmas): New functions.
16924 * config/sol2-protos.h: New file.
16925 * config/sol2.c: New file.
16926 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
16927 (REGISTER_TARGET_PRAGMAS): New macros.
16928 (solaris_pending_aligns, solaris_pending_inits)
16929 (solaris_pending_finis): New variables.
16930 * config/t-sol2 (sol2-c.o): Update dependencies.
16931 (sol2.o): New rule.
16932 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
16933 SUBTARGET_INSERT_ATTRIBUTES.
16934 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
16935 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
16936 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
16937 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
16938 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
16939 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
16940 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
16941 * config/sparc/sparc.c (sparc_attribute_table): New.
16942 (TARGET_INSERT_ATTRIBUTES): Define in terms of
16943 SUBTARGET_INSERT_ATTRIBUTES.
16944 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
16945 is defined.
16946 * doc/extend.texi (Solaris Pragmas): New section.
16947
16948 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16949
16950 * c-common.c: Rename all identifiers named `class' to `cl'.
16951 * c-common.h: Likewise.
16952 * c-parse.in: Likewise.
16953 * c-typeck.c: Likewise.
16954 * genmodes.c: Likewise.
16955 * real.c: Likewise.
16956 * real.h: Likewise.
16957 * recog.c: Likewise.
16958 * recog.h: Likewise.
16959 * regrename.c: Likewise.
16960 * tree.h: Likewise.
16961 * c-common.c (builtin_function_2): Change type of 5th parameter from
16962 int to enum built_in_function. Change type of 8th parameter from int
16963 to bool.
16964 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
16965 with GGC_CNEW().
16966 * c-typeck.c (convert_arguments): Change type of formal_prec from
16967 int to unsigned int.
16968 * genmodes.c (blank_mode): Make a few negative constants unsigned.
16969 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
16970 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
16971 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
16972 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
16973 iterator to for_all_modes () instead of an enum because enums can't
16974 be incremented in C++.
16975
16976
16977 2004-07-25 Daniel Jacobowitz <dan@debian.org>
16978
16979 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
16980 hard registers.
16981
16982 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16983
16984 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
16985 Handle ARRAY_RANGE_REF like ARRAY_REF.
16986
16987 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
16988
16989 * c-typeck.c (digest_init): Don't allow arrays of signed or
16990 unsigned variants of wchar_t to be initialized by wide string
16991 constants. Do allow arrays of enumerated types compatible with
16992 wchar_t to be initialized by wide string constants. Refine tests
16993 distinguishing wide and narrow strings and arrays. Give specific
16994 error for arrays of other integer types initialized by string
16995 constants.
16996 (output_init_element, process_init_element): Check for
16997 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
16998 initializing with string constants.
16999
17000 2004-07-25 Richard Henderson <rth@redhat.com>
17001
17002 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
17003 on the RESULT_DECL.
17004 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
17005 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
17006 DECL_IGNORED_P to new decl.
17007
17008 2004-07-24 Zack Weinberg <zack@codesourcery.com>
17009
17010 * config/ia64/ia64.c (general_xfmode_operand)
17011 (destination_xfmode_operand): Delete.
17012 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
17013 * config/ia64/ia64.md (*movxf_internal): Use general_operand
17014 and destination_operand.
17015
17016 2004-07-24 Alexander Kabaev <kan@freebsd.org>
17017
17018 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
17019 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
17020
17021 2004-07-24 Alexander Kabaev <kan@freebsd.org>
17022 Zack Weinberg <zack@codesourcery.com
17023
17024 PR 16684
17025 * c-decl.c (diagnose_mismatched_decls): Don't issue a
17026 redundant-declaration warning the first time a builtin is
17027 declared explicitly.
17028
17029 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17030
17031 * tree.h (staticp): Change return type to bool.
17032
17033 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17034
17035 * c-common.c (c_staticp): Last episode of the staticp saga.
17036
17037 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17038
17039 * c-common.h (c_staticp): Change return type from int to bool.
17040 * tree.c (staticp): Likewise.
17041 * langhooks.h (staticp): Likewise.
17042
17043 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17044
17045 * langhooks-def.h (lhd_staticp): Change return type from int to
17046 bool in prototype to match definition.
17047
17048 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17049
17050 * system.h (bool, true, false): Don't redefine as preprocessor macros
17051 in C++.
17052
17053 2004-07-24 Roger Sayle <roger@eyesopen.com>
17054
17055 * expmed.c (init_expmed): A signed modulus by a power of two is
17056 considered cheap if its less than or equal to four instructions.
17057
17058 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17059
17060 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
17061 GGC_CNEWVAR): New macros.
17062
17063 2004-07-25 Bernardo Innocenti <bernie@develer.com>
17064
17065 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
17066 lists.
17067 * c-decl.c: Likewise.
17068 * c-format.c: Likewise.
17069 * c-lex.c: Likewise.
17070 * c-opts.c: Likewise.
17071 * c-pragma.c: Likewise.
17072 * c-typeck.c: Likewise.
17073 * gencheck.c: Likewise.
17074 * genconditions.c: Likewise.
17075 * genconfig.c: Likewise.
17076 * genflags.c: Likewise.
17077 * gengtype.c: Likewise.
17078 * gensupport.c: Likewise.
17079 * ggc-none.c: Likewise.
17080 * langhooks.c: Likewise.
17081 * statistics.h: Likewise.
17082 * stub-objc.c: Likewise.
17083 * java/decl.c: Likewise.
17084
17085 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
17086
17087 * config/m68k/m68k.c (output_scc_di): Fix coding style.
17088 (symbolic_operand): Fix prototype.
17089 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
17090 * config/m68k/m68k.md: Add constants for registers a0 and sp and
17091 use them, change from the "{...}" syntax to the simpler {...}
17092 syntax.
17093 (*cfv4_extendqisi2): Fix destination predicate.
17094 * config/m68k/m68k-protos.h: Remove various declarations also
17095 generated via PREDICATE_CODES.
17096
17097 2004-07-23 Mike Stump <mrs@apple.com>
17098
17099 * c-typeck.c (convert_for_assignment): Tightened up pointer
17100 converstions that differ in signedness.
17101
17102 2004-07-23 Zack Weinberg <zack@codesourcery.com>
17103
17104 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
17105
17106 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17107
17108 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
17109 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
17110
17111 * gimplify.c (gimplify_compound_lval): Check for no handled
17112 operations, rather than checking for explicit list of nodes.
17113 (is_gimple_addr_expr_arg_or_indirect): New function.
17114 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
17115 redundant setting of TREE_INVARIANT.
17116 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
17117 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
17118
17119 2004-07-23 Diego Novillo <dnovillo@redhat.com>
17120
17121 PR tree-optimization/16688
17122 PR tree-optimization/16689
17123 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
17124 unnecessary initialization of 'tag'.
17125 (get_tmt_for): Check that the new type tag has the same alias
17126 set as the pointed-to type.
17127 (group_aliases): Only regular variables need to be removed
17128 from the alias set of a name tag.
17129 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
17130 propagation if the two types are not compatible.
17131 (merge_alias_info): Rename from replace_ssa_names_ann.
17132 Add more checking.
17133 (replace_exp_1): If both arguments are SSA_NAMEs, check that
17134 the propagation can be done.
17135 Only call merge_alias_info on pointers.
17136 (propagate_value): Likewise.
17137 * tree-ssa-copyrename.c: Include langhooks.h.
17138 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
17139 to do the merging.
17140 Do not coalesce variables with incompatible types.
17141 (rename_ssa_copies): Call replace_ssa_name_symbol.
17142 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
17143 the same type as the underlying _DECL.
17144 * tree-ssanames.c (replace_ssa_name_symbol): New function.
17145 * tree.h (replace_ssa_name_symbol): Declare.
17146
17147 2004-07-23 Richard Henderson <rth@redhat.com>
17148
17149 PR c++/16277
17150 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
17151 unshare it properly.
17152 (gimplify_modify_expr_rhs): Push assignment from a conditional into
17153 the conditional for all non-register types.
17154
17155 2004-07-23 Richard Henderson <rth@redhat.com>
17156
17157 * expr.c (expand_expr_real_1): Don't handle non-local variables.
17158 * expr.h (fix_lexical_addr): Remove.
17159 * function.c (NEED_SEPARATE_AP): Remove.
17160 (fix_lexical_addr): Remove.
17161 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
17162 not null decl_function_context.
17163 (create_alias_vars): Likewise.
17164 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
17165 (simple_goto_p): Likewise.
17166 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
17167 * tree-ssa-ccp.c (get_default_value): Likewise.
17168 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
17169 * tree.c (needs_to_live_in_memory): Likewise.
17170 * tree-flow-inline.h (may_be_aliased): Move...
17171 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
17172 when TREE_STATIC variables may be addressable.
17173
17174 2004-07-24 Jakub Jelinek <jakub@redhat.com>
17175
17176 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
17177
17178 2004-07-23 Zack Weinberg <zack@codesourcery.com>
17179
17180 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
17181 bitmap contents if GENERATOR_FILE is defined.
17182 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
17183 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
17184
17185 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
17186
17187 * c-decl.c (start_function): Form composite type of function types
17188 rather than copying type from previous prototype declaration.
17189
17190 2004-07-23 Janis Johnson <janis187@us.ibm.com>
17191
17192 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
17193 the const qualifier for the second argument in the C++ functions.
17194
17195 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
17196 specific pointer types.
17197
17198 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
17199 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
17200 for vector bool and/or vector pixel, add C++ and C missing support.
17201 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
17202 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
17203 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
17204 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
17205 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
17206 missing C++ and C support for vector bool and/or vector pixel.
17207 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
17208 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
17209 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
17210 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
17211 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
17212 C++ and C types used for vector bool and/or vector pixel.
17213 (vec_st, vec_stl): Add C++ support for vector pixel.
17214 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
17215 (vec_all_ne): Add C++ support for vector pixel.
17216
17217 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
17218 (vec_vmulesb): Add missing C++ function.
17219 (vec_perm): Fix type of third argument in C++ function.
17220 (vec_vsum4shs): Fix C++ function name.
17221 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
17222 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
17223 argument passed to the error handler in C macro.
17224 (vec_nmsub): Remove extra parens around argument names in C macro.
17225 (vec_packpx): Add missing parens in C macro.
17226
17227 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
17228
17229 * machmode.def: Remove vector modes.
17230 * config/alpha/alpha-modes.def: Add supported vector modes.
17231 * config/arm/arm-modes.def: Likewise.
17232 * config/frv/frv-modes.def: Likewise.
17233 * config/i386/i386-modes.def: Likewise.
17234 * config/rs6000/rs6000-modes.def: Likewise.
17235 * config/sh/sh-modes.def: Likewise.
17236
17237 2004-07-23 Matthias Klose <doko@debian.org>
17238
17239 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
17240 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
17241 * config.h: Regenerate.
17242 * configure: Likewise.
17243
17244 2004-07-22 Mark Mitchell <mark@codesourcery.com>
17245
17246 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
17247 generated SYMBOL_REFs for labels.
17248 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
17249 Change prototype.
17250 (machopic_stub_name): Remove.
17251 (machopic_indirection_name): New function.
17252 (machopic_mcount_stub_name): Likewise.
17253 (machopic_classify_name): Remove.
17254 (machopic_function_base_sym): New function.
17255 (machpoic_classify_symbol): Likewise.
17256 (machopic_classify_ident): Remove.
17257 (machopic_define_ident): Likewise.
17258 (machopic_define_name): Likewise.
17259 (machopic_name_defined_p): Likewise.
17260 (machopic_ident_defined_p): Likewise.
17261 (darwin_strip_name_encoding): Likewise.
17262 (machopic_define_symbol): New function.
17263 * config/darwin.c (hashtab.h): Include.
17264 (machopic_defined_list): Remove.
17265 (machopic_classify_ident): Likewise.
17266 (machopic_classify_name): Likewise.
17267 (machopic_ident_defined_p): Likewise.
17268 (machopic_define_ident): Likewise.
17269 (machopic_define_name): Likewise.
17270 (machopic_symbol_defined_p): New function.
17271 (machopic_classify_symbol): Likewise.
17272 (machopic_data_defined_p): Use machopic_classify_symbol.
17273 (machopic_define_symbol): New function.
17274 (machopic_function_base_sym): New function.
17275 (machopic_non_lazy_pointers): Remove.
17276 (machopic_non_lazy_ptr_name): Likewise.
17277 (machopic_stubs): Likewise.
17278 (machopic_stub_name): Likewise.
17279 (NON_LAZY_POINTER_SUFFIX): New macro.
17280 (STUB_SUFFIX): Likewise.
17281 (machopic_indirection): New structure.
17282 (machopic_indirections): New variable.
17283 (machopic_indirection_hash): New function.
17284 (machopic_indirection_eq): Likewise.
17285 (machopic_indirection_name): Likewise.
17286 (machopic_mcount_stub_name): New function.
17287 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
17288 hash table.
17289 (machopic_indirect_data_reference): Rework to use new functions.
17290 (machopic_indirect_call_target): Likewise.
17291 (machopic_legitimize_pic_address): Likewise.
17292 (machopic_output_indirection): New function.
17293 (machopic_finish): Use it.
17294 (machopic_operand_p): Rework to use new functions.
17295 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
17296 (darwin_strip_name_encoding): Remove.
17297 (update_non_lazy_ptrs): Remove.
17298 (update_stubs): Likewise.
17299 (darwin_non_lazy_pcrel): Use new functions.
17300 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
17301 (ASM_OUTPUT_LABELREF): Likewise.
17302 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
17303 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
17304 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
17305 (TARGET_STRIP_NAME_ENCODING): Do not use
17306 darwin_strip_name_encoding.
17307 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
17308 darwin_strip_name_encoding.
17309 * config/i386/darwin.h (FUNCTION_PROFILER): Use
17310 machopic_mcount_stub_name.
17311 * config/i386/i386.c (x86_output_mi_thunk): Use
17312 machopic_indirection_name, not machopic_stub_name.
17313 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
17314 machopic_function_base_sym.
17315 (print_operand): Use machopic_classify_symbol.
17316 (rs6000_emit_prologue): Use machopic_function_base_sym.
17317 (output_profile_hook): Do not use machopic_stub_name.
17318 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
17319
17320 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17321
17322 PR c/7284
17323 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
17324 as multiplication.
17325
17326 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17327
17328 * doc/implement-c.texi: New file.
17329 * doc/extend.texi (C Implementation): Move to there.
17330 * doc/gcc.texi: Include implement-c.texi.
17331 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
17332
17333 2004-07-22 Jason Merrill <jason@redhat.com>
17334
17335 * integrate.c (copy_decl_for_inlining): Remove invisible reference
17336 handling.
17337 * tree-inline.c (setup_one_parameter): Likewise.
17338
17339 2004-07-22 Brian Booth <bbooth@redhat.com>
17340
17341 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
17342 (substitute_and_fold): Propigate into VUSE operands when possible.
17343 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
17344 (cp_lattice_meet): Handle merging of latticevalues when
17345 UNKNOWN_VAL is present.
17346 (visit_stmt): Visit assignments with V_MUST_DEFs.
17347 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
17348 (ccp_fold): Deal with RHS' that are constant and virtual.
17349 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
17350 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
17351 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
17352 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
17353 computing immediate uses.
17354 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
17355 transition.
17356 (replace_vuse_in): New function.
17357 (likely_value): Add check of vuse operands.
17358 (get_default_value): Set the default value of virtually defined
17359 variables to UKNOWN_VAL instead of VARYING.
17360
17361 2004-07-22 Richard Henderson <rth@redhat.com>
17362
17363 * expr.c (emit_push_insn): Don't use set_mem_attributes.
17364
17365 2004-07-22 Richard Henderson <rth@redhat.com>
17366
17367 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
17368 variables due to conditional compilation.
17369
17370 2004-07-22 Diego Novillo <dnovillo@redhat.com>
17371
17372 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
17373 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
17374 Release SSA names that have been re-renamed.
17375 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
17376 variable.
17377 * tree-ssa-alias.c (init_alias_info): If aliases have been
17378 computed before, clear existing alias information.
17379 (create_name_tags): Do no fixup PT_ANYTHING pointers.
17380 If the new name tag for a pointer is different than the one it
17381 had before, mark the old tag for renaming.
17382 (replace_may_alias): New function.
17383 (group_aliases): Call it.
17384 (setup_pointers_and_addressables): Always call get_tmt_for.
17385 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
17386 once.
17387 (set_pt_anything): New local function.
17388 (set_pt_malloc): New local function.
17389 (merge_pointed_to_info): Don't merge pointed-to variables from
17390 the original pointer if the destination is pointing to an
17391 unknown location.
17392 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
17393 (add_pointed_to_var): Do not add a variable to the points-to
17394 set if the pointer is already pointing to anywhere.
17395 (collect_points_to_info_r): If the defining statement is a PHI
17396 node, only merge pointed-to information if the argument has
17397 already been visited.
17398 (get_tmt_for): Only create a new tag if the pointer didn't
17399 have one already.
17400 (dump_alias_info): Emit more information.
17401 (dump_points_to_info_for): Likewise.
17402 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
17403 try to get the annotation of an SSA_NAME.
17404 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
17405 alias sets when checking is enabled.
17406 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
17407 (eliminate): Mark basic blocks that will need
17408 EH information cleaned up.
17409 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
17410 predecessor.
17411 Initialize need_eh_cleanup.
17412 (fini_pre): Call tree_purge_all_dead_eh_edges and
17413 cleanup_tree_cfg if needed.
17414 Free need_eh_cleanup.
17415 * tree-ssa.c (verify_ssa_name): New function.
17416 (verify_def): Call it.
17417 Re-arrange to avoid printing too many error messages.
17418 (verify_use): Likewise.
17419 (verify_phi_args): Likewise.
17420 (verify_flow_insensitive_alias_info): New function.
17421 (verify_flow_sensitive_alias_info): New function.
17422 (verify_alias_info): New function.
17423 (verify_ssa): Call verify_alias_info.
17424 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
17425 program.
17426 Re-arrange to avoid printing too many error messages.
17427 * tree-ssanames.c (make_ssa_name): Clear
17428 SSA_NAME_IN_FREE_LIST.
17429 (release_ssa_name): Never release a default definition.
17430 (release_defs): New function.
17431 * tree.h: Declare it.
17432 * tree-ssa-dce.c (remove_dead_stmt): Call it.
17433
17434 2004-07-22 Diego Novillo <dnovillo@redhat.com>
17435
17436 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
17437 If true, do a depth-first search. Do a breadht-first search,
17438 otherwise.
17439 (walk_use_def_chains): Add new argument IS_DFS.
17440 Update all users.
17441 * tree-flow.h (walk_use_def_chains): Update prototype.
17442
17443 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
17444
17445 * config/cris/cris.md: Tweak formatting.
17446 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
17447 (mover2side, moverside, movemside, movei, op3, andu): Replace
17448 live define_peephole:s with define_peephole2 near-equivalents.
17449 Delete the rest.
17450 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
17451 word-size modes.
17452 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
17453 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
17454 "*mov_sidesi_mem" respectively.
17455
17456 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
17457
17458 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
17459 (gimplify_build1): Move from tree-complex.c do_unop.
17460 (gimplify_build2): Move from tree-complex.c do_binop.
17461 (gimplify_build3): New.
17462 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
17463 Adjust throughout to call the functions above.
17464 * tree-flow.h: Declare the functions above.
17465 * tree-nested.c (gimplify_val): Rename to...
17466 (tsi_gimplify_val): ... this.
17467
17468 * Makefile.in (tree_complex.o): Update dependencies.
17469 (stor-layout.o): Depend on regs.h.
17470 * c-common.c (handle_vector_size_attribute): Update for
17471 vector types without corresponding vector modes.
17472 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
17473 a corresponding vector mode is not available.
17474 * print-tree.c (print_node): Print nunits for vector types
17475 * regclass.c (have_regs_of_mode): New.
17476 (init_reg_sets_1): Initialize it and use it instead
17477 of allocatable_regs_of_mode.
17478 * regs.h (have_regs_of_mode): Declare it.
17479 * stor-layout.c (layout_type): Pick a mode for vector types.
17480 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
17481 build_replicated_const, do_unop, do_binop, do_plus_minus,
17482 do_negate, expand_vector_piecewise, expand_vector_parallel,
17483 expand_vector_addition, expand_vector_operations_1,
17484 expand_vector_operations, tree_lower_operations,
17485 pass_lower_vector_ssa, pass_pre_expand): New.
17486 (expand_complex_operations, pass_lower_complex): Remove.
17487 * tree-optimize.c (init_tree_optimization_passes): Adjust
17488 pass ordering for changes in tree-complex.c.
17489 * tree-pass.h: Declare new passes.
17490 * tree.c (finish_vector_type): Remove.
17491 (make_vector_type): New.
17492 (build_vector_type_for_mode, build_vector_type): Rewritten.
17493 * tree.def (VECTOR_TYPE): Document where the number of
17494 subparts is stored.
17495 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
17496 (make_vector): Remove declaration.
17497
17498 2004-07-21 Richard Henderson <rth@redhat.com>
17499
17500 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
17501 TREE_THIS_VOLATILE, may_aliases, or optimization level.
17502 (remove_useless_vars): Dump debugging info.
17503 (expand_used_vars): Move ...
17504 * cfgexpand.c (expand_used_vars): ... here. Make static.
17505 * tree-flow-inline.h (set_is_used): New.
17506 (set_default_def): Use get_var_ann.
17507 * tree-flow.h: Update decls.
17508 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
17509 (create_ssa_var_map): Use it.
17510 * tree-ssa.c (set_is_used): Remove.
17511
17512 2004-07-22 Ben Elliston <bje@au.ibm.com>
17513
17514 * gdbinit.in: Set a breakpoint on internal_error.
17515
17516 2004-07-21 Richard Henderson <rth@redhat.com>
17517
17518 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
17519 to create a new basic block.
17520
17521 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17522
17523 PR c/15052
17524 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
17525 return type on function definitions. Move other warnings for
17526 qualified return type to -Wreturn-type. Do not condition any such
17527 warnings on -pedantic. Update comments.
17528 (start_function): Only copy function type from previous prototype
17529 declaration if return types are compatible.
17530 * c-typeck.c (function_types_compatible_p): Don't condition
17531 warning for incompatibility of volatile qualifiers on the return
17532 type on -pedantic. Update comment.
17533 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
17534
17535 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17536
17537 * c-typeck.c (set_init_index): Require designator to be of integer
17538 type.
17539
17540 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
17541
17542 PR c/11250
17543 * c-parse.in (init): Change to exprtype.
17544 (primary): Set original_code for STRING to STRING_CST.
17545 Call maybe_warn_string_init for compound literals.
17546 (initdcl, notype_initdcl): Call maybe_warn_string_init.
17547 (initval): Update.
17548 * c-tree.h (maybe_warn_string_init): New.
17549 (pop_init_level, process_init_element): Use struct c_expr.
17550 (struct c_expr): Update comment.
17551 * c-typeck.c (maybe_warn_string_init): New function.
17552 (digest_init): Call it. Additional parameter strict_string. All
17553 callers changed.
17554 (output_init_element): Likewise.
17555 (struct constructor_stack): Use struct c_expr for
17556 replacement_value.
17557 (really_start_incremental_init, push_init_level): Update.
17558 (pop_init_level): Update. Return struct c_expr.
17559 (process_init_level): Update. Take struct c_expr argument.
17560
17561 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
17562
17563 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
17564 commit.
17565
17566 2004-07-21 Eric Christopher <echristo@redhat.com>
17567
17568 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
17569 removal.
17570 * c-decl.c (pop_scope): Ditto.
17571 * calls.c (expand_call): Remove call to current_nesting_level,
17572 update comment accordingly. Remove calls to expand_start_target_temps
17573 and expand_end_target_temps.
17574 * cfgexpand.c (construct_init_block): Remove call to
17575 expand_start_bindings_and_block.
17576 (construct_exit_block): Remove call to expand_end_bindings.
17577 * expr.c (safe_from_p): Remove BIND_EXPR handling.
17578 (expand_expr_real_1): Ditto. Fix formatting.
17579 (expand_vars): Delete.
17580 * stmt.c (POPSTACK): Remove block_stack.
17581 (stmt_status): Remove x_block_stack.
17582 (block_stack): Delete.
17583 (expand_start_bindings_and_block): Ditto.
17584 (expand_start_target_temps): Ditto.
17585 (expand_end_target_temps): Ditto.
17586 (current_nesting_level): Ditto.
17587 (warn_about_unused_variables): Ditto.
17588 (expand_end_bindings): Ditto.
17589 * tree.h: Remove declarations for above.
17590
17591 2004-07-21 Steven Bosscher <stevenb@suse.de>
17592
17593 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
17594 * rtl.c (note_insn_name): Likewise.
17595 * print-rtl.c (print_rtx): Don't print it.
17596 * cfgrtl.h (can_delete_note_p): Don't handle it.
17597 (rtl_delete_block): Likewise.
17598 * passes.c (rest_of_handle_guess_branch_prob): Remove.
17599 (rest_of_compilation): Don't call it.
17600 * predict.c (process_note_predictions, process_note_prediction,
17601 note_prediction_to_br_prob): Remove.
17602 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
17603 * stmt.c (return_prediction): Remove.
17604 (expand_value_return): Don't call it. Don't add prediction
17605 notes for return statements.
17606
17607 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
17608
17609 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
17610 once.
17611
17612 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
17613
17614 * c-common.c (vector_types_convertible_p): Use vector types'
17615 TYPE_SIZE and TREE_TYPE instead of their mode.
17616 * convert.c (convert_to_integer): Likewise.
17617 (convert_to_vector): Likewise.
17618 * fold-const.c (fold_convert): Likewise.
17619 * varasm.c (output_constant): Likewise.
17620 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
17621 Allow a VECTOR_TYPE initializer to be made of several vectors.
17622 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
17623 of cleared and need_to_clear, and use fold_convert.
17624 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
17625 integer vectors.
17626
17627 2004-07-20 Richard Henderson <rth@redhat.com>
17628
17629 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
17630 (expand_gimple_basic_block): out from here. Renamed from expand_block.
17631
17632 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
17633
17634 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
17635 enormous cost if not TARGET_HARD_MUL.
17636
17637 2004-07-20 Andrew Pinski <apinski@apple.com>
17638
17639 PR target/16557
17640 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
17641 (ASM_SPEC): here.
17642
17643 2004-07-21 Paul brook <paul@codesourcery.com>
17644
17645 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
17646
17647 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17648
17649 * fold-const.c (operand_equal_p): Temporarily support NULL args.
17650 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
17651 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
17652
17653 2004-07-20 Zack Weinberg <zack@codesourcery.com>
17654
17655 * rtl.h (plus_constant): Delete.
17656 (plus_constant_wide): Rename to plus_constant.
17657 (plus_constant_for_output_wide): Delete vestigial prototype.
17658 (GEN_INT): Remove unnecessary cast.
17659 * tree.h (build_int_2, size_int_type): Delete.
17660 (build_int_2_wide): Rename to build_int_2.
17661 (size_int_wide): Rename to size_int_kind.
17662 (size_int_type_wide): Rename to size_int_type.
17663 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
17664 Remove unnecessary cast.
17665 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
17666 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
17667 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
17668 (size_int_type_wide): Rename size_int_type.
17669 (int_const_binop): Use size_int_type.
17670 * c-lex.c (interpret_integer): Use build_int_2.
17671 * final.c (split_double): Remove unnecessary casts.
17672 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
17673
17674 2004-07-20 Richard Henderson <rth@redhat.com>
17675
17676 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
17677 (gimplify_compound_lval): Use is_gimple_tmp_reg.
17678 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
17679 (is_gimple_tmp_reg): New.
17680 * tree-gimple.h (is_gimple_tmp_reg): Declare.
17681
17682 2004-07-20 Richard Henderson <rth@redhat.com>
17683
17684 * tree-pretty-print.c (dump_generic_node): Dump
17685 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
17686
17687 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
17688
17689 * tree-mudflap.c (mf_set_options_fndecl): New tree.
17690 (mudflap_init): Set it.
17691 (mudflap_register_call): Remove __mf_init call.
17692 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
17693 to pass "-ignore-reads" option to libmudflap if needed.
17694
17695 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
17696
17697 PR c++/14607
17698 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
17699 (MAKE_DECL_ONE_ONLY): Undefine.
17700 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
17701 readonly_data, one_only_data_section, forget_section): New prototypes.
17702 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
17703 functions.
17704 (pa_select_section): Add one-only (COMDAT) support.
17705 * pa.h (struct machine_function): Define.
17706 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
17707 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
17708 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
17709 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
17710 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
17711 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
17712 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
17713 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
17714 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
17715 for EXTRA_SECTION_FUNCTIONS.
17716 * doc/install.texi: Update binutils requirements.
17717
17718 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
17719
17720 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
17721 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
17722 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
17723 size_t.
17724 (struct VEC): Use unsigned for num and alloc.
17725 * vec.c (struct vec_prefix): Likewise.
17726 (vec_o_reserve): Adjust.
17727
17728 * dbxout.c (dbxout_type): Fix printf format.
17729
17730 * tree.h (binfo_member): Remove.
17731 * tree.c (binfo_member): Remove.
17732
17733 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
17734
17735 * tree.h: Include vec.h
17736 (DEF_VEC_P(tree)): New type.
17737 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
17738 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
17739 (BINFO_LANG_SLOT): Remove.
17740 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
17741 (struct tree_binfo): Turn base_binfos into a trailing
17742 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
17743 (binfo_lang_slots): Remove.
17744 * tree.c (binfo_lang_slots): Remove.
17745 (make_tree_binfo_stat): Take a base binfo count, not a
17746 lang slot count. Adjust.
17747 * Makefile.in (TREE_H): Add vec.h
17748 * alias.c (record_component_aliases): Adjust BINFO access.
17749 * dbxout.c (dbxout_type): Likewise.
17750 * dwarf2out.c (gen_member_die): Likewise.
17751 * sdbout.c (sdbout_one_type): Likewise.
17752 * tree-dump.c (deque_and_dump): Likewise.
17753 * config/i386/i386.c (classify_argument,
17754 contains_128bit_aligned_vector_p): Likewise.
17755 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
17756 * doc/c-tree.texi (Classes): Update BINFO documentation.
17757
17758 2004-07-20 Steven Bosscher <stevenb@suse.de>
17759
17760 * c-common.h (check_case_value): Remove prototype.
17761 (c_add_case_label): Adjust prototype.
17762 * c-common.c (check_case_value): Make static.
17763 (check_case_bounds): New function.
17764 (c_add_case_label): Use it. Take new argument orig_type.
17765 * c-typeck.c (struct c_switch): New orig_type field.
17766 (c_start_case): Set it.
17767 (do_case): Pass it to c_add_case_label.
17768 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
17769 cases from here. Add the labels in reverse order.
17770 * stmt.c (struct case_node): Adjust comment. Remove balance field.
17771 (add_case_node): Return nothing, don't check for duplicate cases.
17772 Insert new case nodes in a list, not in an AVL tree.
17773 (expand_end_case_type): Don't turn a case tree into a case list.
17774 (case_tree2list): Remove.
17775 * tree.h (add_case_node): Adjust prototype.
17776
17777 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
17778
17779 * genattr.c (struct range, struct function_unit,
17780 write_units, extend_range, init_range): Remove them.
17781 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
17782 Output "#define INSN_SCHEDULING" here.
17783 * genattrtab.c (struct range, struct function_unit_op,
17784 struct function_unit, struct dimension, enum operator,
17785 operate_exp, expand_units, simplify_knowing,
17786 encode_units_mask, simplify_by_exploding,
17787 find_and_mark_used_attributes, unmark_used_attributes,
17788 add_values_to_cover, increment_current_value,
17789 test_for_current_value, simplify_with_current_value,
17790 simplify_with_current_value_aux, gen_unit,
17791 write_unit_name, write_function_unit_info,
17792 write_complex_function, write_toplevel_expr,
17793 find_single_value, extend_range): Remove.
17794 (write_attr_get): Do not handle common_av->value
17795 being an FFS.
17796 (struct attr_desc): Remove func_units_p and blockage_p.
17797 (write_attr_valueq): Do not handle them.
17798 (find_attr): Do not clear them.
17799 (make_internal_attr): Do not initialize them.
17800 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
17801 * sched-vis.c (init_target_units, insn_print_units,
17802 init_block_visualization, print_block_visualization,
17803 visualize_scheduled_insns, visualize_no_unit,
17804 visualize_stall_cycles, visualize_alloc,
17805 visualize_free, target_units, get_visual_tbl_length,
17806 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
17807 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
17808 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
17809 * haifa-sched.c (blockage_range, clear_units,
17810 schedule_unit, actual_hazard, potential_hazard,
17811 insn_unit, unit_last_insn, unit_tick,
17812 actual_hazard_this_instance, potential_hazard,
17813 schedule_unit, max_insn_queue_index_value): Remove.
17814 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
17815 max_insn_queue_index.
17816 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
17817 * doc/md.texi (Processor pipeline description): Remove
17818 references to old pipeline descriptions.
17819 (Automaton pipeline description): Merge with the above.
17820 (Old pipeline description, Comparison of the two descriptions):
17821 Remove.
17822
17823 * bt-load.c (migrate_btr_def): Remove references to
17824 use_pipeline_interface.
17825 * haifa-sched.c (insn_cost, schedule_insn,
17826 schedule_block, advance_one_cycle, sched_init,
17827 queue_to_ready, sched_finish): Likewise.
17828 * modulo-sched.c (sms_schedule, advance_one_cycle,
17829 ps_has_conflicts): Likewise.
17830 * sched-rgn.c (init_ready): Likewise.
17831 (debug_dependencies): Likewise, and remove an "if (1)".
17832 * target.h (use_dfa_pipeline_interface): Remove.
17833 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17834 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17835 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17836 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17837 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17838 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17839 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17840 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17841 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17842 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17843 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17844 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17845 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17846 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17847 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17848 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17849 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17850 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17851 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
17852
17853 2004-07-19 Roger Sayle <roger@eyesopen.com>
17854
17855 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
17856
17857 2004-07-19 Jeff Law <law@redhat.com>
17858
17859 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
17860 (get_eq_expr_value): Use it. Simplify slightly.
17861
17862 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
17863
17864 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
17865 (umulsidi3_32bit_r4000): Likewise.
17866
17867 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
17868
17869 * vec.h: Propagate location information properly.
17870 (VEC_T_iterate): Add result pointer parameter.
17871 (VEC_T_space): New.
17872 (VEC_T_reserve): Use it.
17873
17874 2004-07-19 Daniel Jacobowitz <dan@debian.org>
17875
17876 * Makefile.in (c-format.o): Depend on c-format.h.
17877 * c-format.h: New file.
17878 (struct format_char_info): Add CHAIN member.
17879 * c-format.c: Move some types and constants to c-format.h.
17880 (format_type_error): Set to -1.
17881 (struct function_format_info): Use an int for format_type.
17882 (decode_format_type): Return an int. Return format_type_error
17883 on error.
17884 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
17885 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
17886 (scan_char_table, time_char_table, monetary_char_table): Initialize
17887 CHAIN to NULL.
17888 (n_format_types): New variable.
17889 (check_format_info_main): Handle CHAIN in format_char_info.
17890 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
17891 TARGET_N_FORMAT_TYPES.
17892 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
17893 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
17894 * config/sol2-c.c: New file.
17895 * config/t-sol2: New file.
17896 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
17897 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
17898 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
17899
17900 * doc/extend.texi (Target Format Checks): New section.
17901 (Function Attributes): Mention it.
17902 * doc/invoke.texi: Mention target format checks.
17903 * doc/sourcebuild.texi: Mention target format checks.
17904 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
17905 TARGET_FORMAT_TYPES.
17906
17907 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
17908
17909 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
17910 added.
17911 * config/s390/s390.c (regclass_map initializer): Register 35 added to
17912 ADDR_REGS.
17913 (load_multiple_operation, store_multiple_operation): Removed
17914 pointless sanity check.
17915 (s390_decompose_address): Added check for return_address_pointer_rtx.
17916 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
17917 (s390_return_address_offset): New function.
17918 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
17919 (FRAME_REGNO_P): Added check for register 35.
17920 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
17921 REG_ALLOC_ORDER): Appended entry for register 35.
17922 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
17923 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
17924 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
17925 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
17926 is eliminable using stack pointer or hard frame pointer.
17927 (REGISTER_NAMES): Added name for register 35.
17928 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
17929 pointless sanity check.
17930
17931 2004-07-19 Roger Sayle <roger@eyesopen.com>
17932
17933 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
17934 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
17935 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
17936 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
17937 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
17938 (fold_relational_const): Tidy up handling of floating point
17939 comparisons by calling real_compare. Remove tree_expr_nonzero_p
17940 transformation; fold_relational_const assumes constant operands.
17941
17942 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
17943
17944 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
17945 directory.
17946
17947 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
17948
17949 * c-tree.h (struct c_expr): Define.
17950 (C_SET_EXP_ORIGINAL_CODE): Remove.
17951 (parser_build_binary_op, build_compound_expr): Update prototypes.
17952 * c-parse.in (%union): Add exprtype.
17953 (FUNC_NAME): Mark as ttype.
17954 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
17955 exprtype.
17956 (expr): Update. Define directly in terms of expr_no_commas
17957 instead of using nonnull_exprlist.
17958 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
17959 offsetof_member_designator, typespec_nonreserved_nonattr, init,
17960 initval, designator, component_declarator,
17961 component_notype_declarator, enumerator, array_declarator,
17962 condition, exexpr, switch_statement, stmt_nocomp, stmt,
17963 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
17964 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
17965 where appropriate.
17966 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
17967 * c-common.c (c_common_truthvalue_conversion): Don't check
17968 C_EXP_ORIGINAL_CODE.
17969 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
17970 Don't use C_EXP_ORIGINAL_CODE.
17971 (default_conversion, default_function_array_conversion): Don't use
17972 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
17973 (internal_build_compound_expr): Merge into build_compound_expr.
17974 (build_compound_expr): Take two operands instead of a TREE_LIST.
17975 * objc/objc-act.c (get_super_receiver): Update calls to
17976 build_compound_expr.
17977
17978 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
17979
17980 * config/sh/sh.c (sh_use_dfa_interface): Remove.
17981 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
17982 hook_int_void_1.
17983 * config/sh/sh.md: Extract pipeline descriptions
17984 into separate files.
17985 * config/sh/sh1.md: New file, extracted from sh.md.
17986 * config/sh/sh4.md: New file, extracted from sh.md.
17987 * config/sh/shmedia.md: New file, extracted from sh.md
17988 and rewritten using new-style pipeline description.
17989
17990 2004-07-18 Zack Weinberg <zack@codesourcery.com>
17991
17992 * config/pa/pa.md: Delete the two remaining define_peephole
17993 patterns.
17994
17995 2004-07-18 Steven Bosscher <stevenb@suse.de>
17996 Joseph S. Myers <jsm@polyomino.org.uk>
17997
17998 * c-common.c (c_common_truthvalue_conversion): Don't warn if
17999 TREE_NO_WARNING is set.
18000
18001 2004-07-18 Roger Sayle <roger@eyesopen.com>
18002
18003 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
18004 simplify_builtin_strncmp): Delete.
18005 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
18006 Change argument to accept an arglist instead of an "exp". Assume
18007 that the return type is always integer_type_node. Copy missing
18008 transformations from their now obsolete simplify_builtin_*
18009 equivalents.
18010 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
18011 fold_builtin_strcmp and fold_builtin_strncmp.
18012 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
18013 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
18014 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
18015
18016 2004-07-18 Daniel Jacobowitz <dan@debian.org>
18017
18018 * Makefile.in (tree-alias-common.o): Update dependencies.
18019
18020 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
18021
18022 * cfgloop.c (flow_loop_nested_p): Fix comment.
18023
18024 2004-07-17 Jason Merrill <jason@redhat.com>
18025
18026 PR c++/16115
18027 * stor-layout.c (relayout_decl): New fn.
18028 * tree.h: Declare it.
18029 (DECL_BY_REFERENCE): New macro.
18030
18031 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
18032
18033 * libgcc2.c (__enable_execute_stack): New symbol.
18034 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
18035 and declare __enable_execute_stack.
18036 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
18037 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
18038 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18039 ENABLE_EXECUTE_STACK.
18040 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
18041 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18042 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18043 ENABLE_EXECUTE_STACK.
18044 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18045 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
18046 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18047 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18048 ENABLE_EXECUTE_STACK.
18049 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18050 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18051 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18052 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18053 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
18054 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18055 (sparc64_initialize_trampoline): Likewise.
18056 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
18057
18058 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
18059
18060 * langhooks.h (builtin_function): New langhook.
18061 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
18062 (LANG_HOOKS_INITIALIZER): Update.
18063 * tree.h (builtin_function): Remove.
18064 * doc/tm.texi: Update.
18065 * c-tree.h (builtin_function): Declare.
18066 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
18067 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
18068 config/ia64/ia64.c, config/iq2000/iq2000.c,
18069 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
18070 config/stormy16/stormy16.c: All callers of builtin_function
18071 changed.
18072
18073 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
18074
18075 PR target/16556
18076 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
18077 Remove white space after the backslash.
18078
18079 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
18080
18081 PR rtl-optimization/16294
18082 * resource.c (return_insn_p): New predicate.
18083 (mark_target_live_regs): Use it. Special-case return insns.
18084 (init_resource_info): Use it. Don't scan the epilogue past
18085 a return.
18086
18087 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18088
18089 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
18090 destroy dominance information.
18091 * passes.c (rest_of_handle_loop2): Free dominance information.
18092 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
18093 jump threading.
18094 (thread_jumps): Update dominance information and remove unreachable
18095 blocks.
18096 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
18097 information and remove the unreachable block.
18098
18099 2004-07-17 Graham Stott <graham.stott@btinternet.com>
18100
18101 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
18102
18103 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
18104
18105 * doc/sourcebuild.texi: Remove libf2c entry.
18106
18107 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
18108
18109 * config/i386/i386.md (movv16qi_internal): Fix typo.
18110
18111 2004-07-17 Steven Bosscher <stevenb@suse.de>
18112
18113 * final.c (final_scan_insn): Fix broken commit from previous
18114 patch.
18115
18116 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
18117
18118 * c-typeck.c (parser_build_binary_op): Condition warnings for
18119 X<=Y<=Z on -Wparentheses instead of -Wextra.
18120 * doc/invoke.texi: Update. Document that most of -Wparentheses is
18121 supported for C only.
18122
18123 2004-07-17 Steven Bosscher <stevenb@suse.de>
18124
18125 * cfgcleanup.c (try_simplify_condjump): Don't remove line
18126 notes to avoid unreachable code warnings.
18127 * toplev.c (backend_init): Don't emit line notes for
18128 unreachable code warnings.
18129
18130 * combine.c (distribute_notes): Don't distribute a
18131 REG_VTABLE_REF note.
18132 * final.c (final_scan_insn): Don't handle it.
18133 * rtl.c (reg_note_name): Remove it.
18134 * rtl.h (enum reg_node): Dito.
18135
18136 * emit-rtl.c (force_line_numbers, restore_line_number_status):
18137 Remove.
18138 * rtl.h (force_line_numbers, restore_line_number_status):
18139 Remove prototypes.
18140
18141 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
18142 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
18143 (using_eh_for_cleanups): Also moved here.
18144
18145 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
18146 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
18147 to expand_start_case and add_case_node.
18148 * stmt.c (struct nesting): Cleanup unused fields condition_code,
18149 last_unconditional_cleanup, nominal_type, printname, and
18150 line_number_status.
18151 (struct fixup_goto): Remove.
18152 (struct stmt_status): Remove x_goto_fixup_chain field.
18153 (goto_fixup_chain): Remove.
18154 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
18155 pushcase, pushcase_range): Remove.
18156 (expand_start_bindings_and_block): Don't set unused fields in
18157 the nesting stack.
18158 (expand_start_case, add_case_node): Cleanup unused formal arguments.
18159 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
18160 instead of emit_jump_if_reachable.
18161 (emit_case_nodes): Likewise.
18162 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
18163 static.
18164 (update_eh_label): Work around left-over exception handing regions.
18165 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
18166 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
18167 (pass_cleanup_cfg_post_optimizing): New pass.
18168 (init_tree_optimization_passes): Run the new pass after all
18169 optimizations.
18170 * tree.h (pushcase, pushcase_range): Remove prototypes.
18171 (expand_start_case, add_case_node): Update prototypes.
18172
18173 2004-07-16 Krister Walfridsson <cato@df.lth.se>
18174
18175 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
18176
18177 2004-07-16 Richard Henderson <rth@redhat.com>
18178
18179 * builtins.c (std_expand_builtin_va_arg): Remove.
18180 (expand_builtin_va_arg): Remove.
18181 * expr.h: Don't declare them.
18182 * gimplify.c (mark_decls_volatile_r): Remove.
18183 (copy_if_shared_r): Don't call it.
18184 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
18185 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
18186 * gimple-low.c (lower_stmt): Likewise.
18187 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
18188 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
18189 * tree-ssa-operands.c (get_expr_operands): Likewise.
18190 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
18191 EXPAND_BUILTIN_VA_ARG.
18192 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
18193 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
18194 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
18195 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
18196
18197 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
18198
18199 * tree-ssa-pre.c (insert_aux): Break out if we hit
18200 a critical edge.
18201
18202 2004-07-16 Richard Henderson <rth@redhat.com>
18203
18204 * basic-block.h (remove_fake_exit_edges): Declare.
18205 * cfganal.c (remove_fake_predecessors): Rename from
18206 remove_fake_successors; iterate over predecessors.
18207 (remove_fake_exit_edges): New.
18208 * cfgcleanup.c (try_optimize_cfg): Use it.
18209 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
18210 * predict.c (estimate_probability): Likewise.
18211 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
18212 * tree-cfg.c (make_edges): Likewise.
18213 * tree-ssa-pre.c (fini_pre): Likewise.
18214 * profile.c (instrument_edges): Don't remove_fake_edges.
18215 (branch_prob): Do it earlier here.
18216
18217 2004-07-16 Richard Henderson <rth@redhat.com>
18218
18219 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
18220 switchification wrt CONSTRUCTOR. Document the reason.
18221
18222 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
18223
18224 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
18225 that prevented descriptive __mf_check source location strings.
18226
18227 2004-07-16 Richard Henderson <rth@redhat.com>
18228
18229 * tree-def (WITH_SIZE_EXPR): New.
18230 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
18231 * expr.c (expand_expr_real_1): Likewise.
18232 * gimplify.c (maybe_with_size_expr): New.
18233 (gimplify_arg, gimplify_modify_expr): Use it.
18234 (gimplify_modify_expr_to_memcpy): Take size parameter.
18235 (gimplify_modify_expr_to_memset): Likewise.
18236 (gimplify_expr): Handle WITH_SIZE_EXPR.
18237 * tree-alias-common.c (find_func_aliases): Likewise.
18238 * tree-eh.c (tree_could_trap_p): Likewise.
18239 (tree_could_throw_p): Likewise.
18240 * tree-gimple.c (is_gimple_lvalue): Likewise.
18241 (get_call_expr_in): Likewise.
18242 * tree-inline.c (estimate_num_insns_1): Likewise.
18243 (expand_calls_inline): Likewise.
18244 * tree-nested.c (convert_call_expr): Likewise.
18245 * tree-pretty-print.c (dump_generic_node): Likewise.
18246 * tree-sra.c (sra_walk_expr): Likewise.
18247 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
18248 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
18249 * tree-ssa-operands.c (get_expr_operands): Likewise.
18250 * tree-tailcall.c (find_tail_calls): Likewise.
18251
18252 * calls.c (expand_call): Reset old_stack_allocated after
18253 calling emit_stack_restore.
18254
18255 2004-07-16 Richard Henderson <rth@redhat.com>
18256
18257 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
18258 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
18259 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
18260 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
18261 copy_res_decl_for_inlining.
18262
18263 * tree-inline.c (declare_return_variable): New modify_dest argument.
18264 Use it as the return value, when possible or manditory. Handle
18265 TREE_ADDRESSABLE types.
18266 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
18267 replacement of CALL_EXPR.
18268
18269 2004-07-16 Richard Henderson <rth@redhat.com>
18270
18271 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
18272 * gimple-low.c (expand_var_p): Don't check it.
18273 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
18274 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
18275 * tree-ssa-operands.c (add_stmt_operand): Likewise.
18276 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
18277 (find_referenced_vars): Don't call them.
18278 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
18279
18280 2004-07-16 Richard Henderson <rth@redhat.com>
18281
18282 * function.c (pass_by_reference): True for all variable sized types.
18283
18284 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
18285
18286 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
18287 * tree-pretty-print.c: Include tree-chrec.h.
18288 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
18289 and POLYNOMIAL_CHREC nodes.
18290
18291 2004-07-16 Steve Ellcey <sje@cup.hp.com>
18292
18293 * builtins.c (expand_builtin_stpcpy): Do not create temporary
18294 reg with VOIDmode.
18295
18296 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
18297
18298 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
18299
18300 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
18301
18302 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
18303 to BASE_REGNUM.
18304 * config/s390/s390.c: Likewise.
18305 * config/s390/s390.h: Likewise.
18306
18307 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18308
18309 * config/mips/mips.md (addsi3, adddi3): Remove special handling
18310 of $sp adds. Remove REGNO checks from mips16 patterns.
18311
18312 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18313
18314 * config/mips/mips.md: Delete outdated comment.
18315
18316 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18317
18318 * config/mips/mips.c (get_float_compare_codes): Delete.
18319 (mips_emit_compare): New function, mostly extracted from
18320 get_float_compare_codes and gen_conditional_branch.
18321 (gen_conditional_branch, gen_conditional_move): Use it.
18322
18323 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
18324
18325 * genautomata.c (add_vect): Speedup by using integers as
18326 bit-vectors for walking through the comb_vect and finding
18327 a match.
18328
18329 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18330
18331 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
18332 operand is an uns_arith_operand; use subtraction otherwise.
18333 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
18334 not just arith_operands.
18335
18336 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18337
18338 * config/mips/mips-protos.h (gen_int_relational): Delete.
18339 (mips_emit_scc): Declare.
18340 * config/mips/mips.c (internal_test): Delete.
18341 (sle_operand, sleu_operand): New functions.
18342 (map_test_to_internal_test, gen_int_relational): Delete.
18343 (mips_emit_binary, mips_relational_operand_ok_p)
18344 (mips_emit_int_relational, mips_zero_if_equal)
18345 (mips_emit_scc): New functions.
18346 (gen_conditional_branch): Rework to use mips_emit_int_relational.
18347 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
18348 sleu_operand.
18349 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
18350 (sltu, sleu): Use mips_emit_scc.
18351 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
18352 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
18353 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
18354
18355 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18356
18357 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
18358
18359 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18360
18361 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
18362 (*sne_[sd]i): Likewise sne_[sd]i_zero.
18363 (*sgt_[sd]i): ...and sgt_[sd]i.
18364 (*slt_[sd]i): ...and slt_[sd]i.
18365 (*sgtu_[sd]i): ...and sgtu_[sd]i.
18366 (*sltu_[sd]i): ...and sltu_[sd]i.
18367 (*sleu_[sd]i): ...and sleu_[sd]i_const.
18368 Name previously unnamed mips16 patterns. Formatting fixes.
18369
18370 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18371
18372 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
18373 (branch_type): Delete.
18374 (gen_conditional_branch, gen_conditional_move)
18375 (mips_gen_conditional_trap): Update after name change. Get the
18376 comparison mode from cmp_operands[0].
18377 * config/mips/mips.h (cmp_type, branch_type): Delete.
18378 (cmp_operands): Renamed from branch_cmp.
18379 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
18380 name change. Don't set branch_type.
18381 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
18382 mode class of cmp_operands[0] rather than branch_type. Update after
18383 name change.
18384
18385 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18386
18387 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
18388 of 0...255 to 0 when inside a SET.
18389
18390 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
18391
18392 * config/mips/mips.md: Remove mips16 define_peepholes.
18393
18394 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
18395
18396 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
18397 (fini_pre): Remove fake edges.
18398
18399 2004-07-15 Richard Henderson <rth@redhat.com>
18400
18401 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
18402 (get_indirect_ref_operands, get_call_expr_operands): ... these.
18403
18404 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
18405
18406 * vec.h (VEC_address): New function.
18407
18408 2004-07-14 Jason Merrill <jason@redhat.com>
18409
18410 PR middle-end/15885
18411 * gimplify.c (gimplify_arg): New fn, split out from...
18412 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
18413
18414 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
18415
18416 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
18417 generate code which is generated by pushqi1 now
18418 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
18419
18420 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
18421
18422 * combine.c (simplify_set): match the mode of the constant 0 with
18423 the tested operand to match the compare behaviour and the
18424 simplify_relational_operation() expectation.
18425
18426 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
18427
18428 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
18429 ("bordered"): Same.
18430
18431 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
18432
18433 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
18434 unconditionally.
18435 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
18436
18437 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
18438
18439 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
18440 calls in mips16 code.
18441
18442 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
18443
18444 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
18445 the destination of the li as well as for the neg.
18446
18447 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
18448
18449 g++/15861
18450 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
18451 * cgraph.h: Update declaration.
18452 * c-decl.c (build_cdtor): Update call with default priority.
18453 * coverage.c (create_coverage): Ditto.
18454 * tree-mudflap.c (mf_init_fndecl): New tree.
18455 (mudflap_init): Set it.
18456 (mudflap_register_call): Arrange to call __mf_init before the first
18457 __mf_register call.
18458 (mudflap_finish_file): Mark the mudflap static initializer as extra
18459 high priority, to beat all C++ static constructors.
18460
18461 2004-07-15 Jeff Law <law@redhat.com>
18462
18463 * loop.c (check_insn_for_givs): Restore check for code labels that was
18464 accidentally deleted by a recent checkin.
18465
18466 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
18467
18468 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
18469 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
18470
18471 2004-07-14 Richard Henderson <rth@redhat.com>
18472
18473 * print-tree.c (print_node): Fix casts last change.
18474
18475 2004-07-15 Paul Brook <paul@codesourcery.com>
18476
18477 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
18478 to TARGET_UNWIND_INFO.
18479 * except.c (output_function_exception_table): Ditto.
18480 * except.h: Ditto.
18481 * opts.c (decode_options): Ditto.
18482 * passes.c (rest_of_handle_final): Ditto.
18483 * final.c (final_start_function): Ditto.
18484 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
18485 target hook.
18486 * targhooks.h (default_unwind_emit): Declare.
18487 * targhooks.c (default_unwind_emit): New function.
18488 * target-def.h: Define and use TARGET_UNWIND_EMIT.
18489 * target.h (struct gcc_target): Add unwind_emit.
18490 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
18491 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
18492 Remove IA64_UNWIND_EMIT.
18493 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
18494
18495 2004-07-14 Richard Henderson <rth@redhat.com>
18496
18497 * print-tree.c (print_node): Handle SSA_NAME.
18498
18499 2004-07-14 James E Wilson <wilson@specifixinc.com>
18500
18501 PR target/16325
18502 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
18503 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
18504
18505 2004-07-15 Jakub Jelinek <jakub@redhat.com>
18506
18507 * expr.c (expand_assignment): Reenable bitfield += optimizations.
18508 Use alias set 0 for memory, do proper mode calculations and adjust
18509 address for memories.
18510
18511 2004-07-14 Per Bothner <per@bothner.com>
18512
18513 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
18514 structure with extra column field.
18515 * tree.c (expand_location): Also fill in column field.
18516 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
18517 gets confused by the two conditionally-compiled definitions.
18518
18519 2004-07-14 Eric Christopher <echristo@redhat.com>
18520
18521 * calls.c (expand_call): Fix typo in comment.
18522
18523 2004-07-14 Steve Ellcey <sje@cup.hp.com>
18524
18525 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
18526 comparision of TFmode.
18527
18528 2004-07-14 Richard Henderson <rth@redhat.com>
18529
18530 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
18531 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
18532 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
18533 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
18534 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
18535 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
18536 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
18537 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
18538 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
18539
18540 2004-07-14 Mike Stump <mrs@apple.com>
18541
18542 * config/darwin.h (WINT_TYPE): Define to be int to match
18543 system header files.
18544
18545 2004-07-14 Bob Wilson <bob.wilson@acm.org>
18546
18547 * config/xtensa/xtensa.c (function_arg_advance): Check for args
18548 that must be passed in the stack.
18549 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
18550 arguments if the size is not a constant.
18551
18552 2004-07-14 Per Bothner <per@bothner.com>
18553
18554 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
18555 instead of EXPR_LOCUS in a boolean context, which is always true
18556 if --enable-mapped-location.
18557 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
18558
18559 2004-07-14 Richard Henderson <rth@redhat.com>
18560
18561 * dominance.c (struct dom_info): Add fake_exit_edge.
18562 (init_dom_info): Allocate it.
18563 (free_dom_info): Free it.
18564 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
18565 in two passes.
18566 (calc_idoms): Honor fake_exit_edge.
18567
18568 2004-07-13 Jason Merrill <jason@redhat.com>
18569
18570 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
18571 (rhs_test_for): New fn.
18572 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
18573 * tree-gimple.h: Declare them.
18574 * gimplify.c (gimplify_modify_expr): Use the new fns.
18575
18576 2004-07-14 Richard Henderson <rth@redhat.com>
18577
18578 * config/arm/arm-protos.h (arm_va_arg): Remove.
18579 * config/arm/arm.c (arm_va_arg): Remove.
18580 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
18581 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
18582
18583 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18584
18585 * pa.c (fix_range): New function to mark a range(s) of registers as
18586 fixed registers.
18587 (override_options): Call fix_range if the -mfixed-range option string
18588 is not empty.
18589 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
18590 * doc/invoke.texi (-mfixed-range): Document new option.
18591
18592 2004-07-14 David Edelsohn <edelsohn@gnu.org>
18593
18594 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
18595 for TARGET_64BIT.
18596 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
18597
18598 2004-07-14 Roger Sayle <roger@eyesopen.com>
18599
18600 * expmed.c (expand_sdiv_pow2): New function to expand signed division
18601 by a positive power of two, split out from expand_divmod. Provide
18602 an alternate implementation when shifts are expensive. Lower the
18603 threshold for using a branchless implementation to BRANCH_COST >= 2.
18604 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
18605
18606 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
18607
18608 * tree-dfa.c (make_rename_temp): *Really* work just
18609 like create_tmp_var if called while outside SSA form.
18610
18611 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
18612
18613 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
18614 for division by zero.
18615 ("umodsi3"): Likewise.
18616
18617 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
18618
18619 * config/mips/mips.c (mips_output_move): When generating mips16 code,
18620 force loads of negative constants to be split.
18621 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
18622 Generalize SImode li/neg splitter to cope with other modes.
18623
18624 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
18625
18626 * expmed.c: Remove more references to QUEUED in the comments.
18627 * expr.c: Likewise.
18628
18629 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
18630
18631 Revert:
18632 2004-07-13 Richard Henderson <rth@redhat.com>
18633 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
18634 correctly.
18635
18636 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
18637
18638 * tree-dfa.c (make_rename_temp): Work just like
18639 create_tmp_var if called while outside SSA form.
18640
18641 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
18642
18643 * expr.c (enqueue_insn, finish_expr_for_function,
18644 protect_from_queue, queued_subexp_p, mark_queue,
18645 emit_insns_enqueued_after_mark, emit_queue,
18646 expand_increment): Remove.
18647 (store_constructor): Expand increment as an assignment.
18648 (expand_expr_real_1 <case PREINCREMENT_EXPR,
18649 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
18650 case POSTDECREMENT_EXPR>): Abort.
18651 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
18652 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
18653 protect_from_queue, emit_queue, queued_subexp_p): Remove.
18654 * function.h (pending_chain, x_pending_chain): Remove.
18655 * rtl.def (QUEUED): Remove.
18656
18657 * emit-rtl.c (copy_insn_1, copy_most_rtx,
18658 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
18659 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
18660 encode_units_mask): Likewise.
18661 * local-alloc.c (equiv_init_varies_p): Likewise.
18662 * rtl.c (copy_rtx): Likewise.
18663 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
18664 * simplify-rtx.c (simplify_gen_subreg): Likewise.
18665 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
18666
18667 * builtins.c (expand_builtin, expand_builtin_apply,
18668 expand_builtin_mathfn, expand_builtin_mathfn_2,
18669 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
18670 Remove calls to emit_queue and protect_from_queue.
18671 * calls.c (expand_call, precompute_arguments,
18672 precompute_register_parameters, rtx_for_function_call,
18673 store_one_arg): Likewise.
18674 * dojump.c (do_compare_and_jump, do_jump): Likewise.
18675 * explow.c (memory_address): Likewise.
18676 * expmed.c (clear_by_pieces_1, clear_storage,
18677 clear_storage_via_libcall, emit_group_load,
18678 emit_group_store, emit_store_flag,
18679 expand_expr_real_1, store_by_pieces,
18680 store_constructor, store_expr, try_casesi,
18681 try_tablejump): Likewise.
18682 * function.c (expand_pending_sizes): Likewise.
18683 * optabs.c (emit_cmp_and_jump_insns,
18684 emit_conditional_add, emit_conditional_move,
18685 expand_fix, expand_float, prepare_cmp_insn): Likewise.
18686 * stmt.c (emit_case_bit_tests,
18687 expand_asm_expr, expand_computed_goto,
18688 expand_decl_init, expand_end_case_type,
18689 expand_end_stmt_expr, expand_expr_stmt_value,
18690 expand_return, expand_start_case,
18691 optimize_tail_recursion): Likewise.
18692 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
18693 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
18694
18695 2004-07-14 Ben Elliston <bje@au.ibm.com>
18696
18697 * vec.h: Comment fix.
18698
18699 2004-07-13 Richard Henderson <rth@redhat.com>
18700
18701 * target.h (struct gcc_target): Add calls.pass_by_reference.
18702 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
18703 * function.c (pass_by_reference): Use the hook.
18704 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
18705 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
18706 (hook_pass_by_reference_must_pass_in_stack): New.
18707 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
18708 (alpha_pass_by_reference): New.
18709 (TARGET_PASS_BY_REFERENCE): New.
18710 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18711 * config/arc/arc.c (arc_pass_by_reference): New.
18712 (TARGET_PASS_BY_REFERENCE): New.
18713 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18714 (FUNCTION_ARG_CALLEE_COPIES): True.
18715 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
18716 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
18717 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
18718 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18719 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18720 * config/cris/cris.c (cris_pass_by_reference): New.
18721 (TARGET_PASS_BY_REFERENCE): New.
18722 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
18723 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
18724 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18725 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
18726 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18727 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
18728 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
18729 (frv_function_arg_pass_by_reference): Remove.
18730 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18731 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
18732 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
18733 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
18734 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18735 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
18736 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
18737 (ia64_pass_by_reference): Rename from
18738 ia64_function_arg_pass_by_reference.
18739 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18740 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18741 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
18742 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
18743 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
18744 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18745 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
18746 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
18747 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
18748 (m32r_pass_by_reference): Adjust prototype. Make static.
18749 Handle mode sizes correctly.
18750 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18751 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
18752 (m68hc11_function_arg_pass_by_reference): Remove.
18753 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18754 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
18755 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
18756 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18757 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
18758 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
18759 (mips_va_arg): Use pass_by_reference.
18760 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
18761 Handle mode sizes correctly.
18762 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18763 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
18764 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
18765 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
18766 (mmix_pass_by_reference): Rename from
18767 mmix_function_arg_pass_by_reference.
18768 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18769 (FUNCTION_ARG_CALLEE_COPIES): True.
18770 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
18771 (mn10300_pass_by_reference): New.
18772 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18773 (FUNCTION_ARG_CALLEE_COPIES): True.
18774 * config/pa/pa.c (pa_pass_by_reference): New.
18775 (TARGET_PASS_BY_REFERENCE): New.
18776 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18777 (FUNCTION_ARG_CALLEE_COPIES): True.
18778 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
18779 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
18780 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
18781 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18782 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
18783 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
18784 (s390_pass_by_reference): Rename from
18785 s390_function_arg_pass_by_reference.
18786 (s390_function_arg_advance): Don't query pass-by-ref.
18787 (s390_function_arg): Likewise.
18788 (s390_gimplify_va_arg): Use pass_by_reference.
18789 (s390_call_saved_register_used): Likewise.
18790 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18791 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
18792 (shcompact_byref, sh_pass_by_reference): New.
18793 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18794 (SHCOMPACT_BYREF): Remove.
18795 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
18796 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
18797 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
18798 (sparc_gimplify_va_arg): Use pass_by_reference.
18799 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18800 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18801 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
18802 (v850_pass_by_reference): New.
18803 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18804 (FUNCTION_ARG_CALLEE_COPIES): True.
18805 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
18806 FUNCTION_ARG_PASS_BY_REFERENCE docs.
18807
18808 2004-07-14 Richard Henderson <rth@redhat.com>
18809 Richard Sandiford <rsandifo@redhat.com>
18810
18811 * config/mips/mips-protos.h (mips_va_arg): Delete.
18812 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
18813 * config/mips/mips.c: Include tree-gimple.h.
18814 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18815 (mips_arg_info): Remove special handling of must_pass_in_stck args.
18816 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
18817 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
18818
18819 2004-07-13 Bob Wilson <bob.wilson@acm.org>
18820
18821 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
18822 arguments for COND_EXPR in big-endian adjustment code.
18823
18824 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18825
18826 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
18827 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
18828 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
18829 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
18830
18831 2004-07-13 Diego Novillo <dnovillo@redhat.com>
18832
18833 PR tree-optimization/16443
18834 * tree-ssa-alias.c: Add more description for
18835 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
18836 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
18837 clobbering of call-clobbered and addressable variables. If
18838 there are any before aliases have been computed, add them.
18839
18840 2004-07-13 Diego Novillo <dnovillo@redhat.com>
18841
18842 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
18843 verification.
18844
18845 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
18846
18847 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
18848 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
18849 to the same type.
18850
18851 2004-07-13 Per Bothner <per@bothner.com>
18852
18853 * collect2.c (main): Handle --no-demangle and --demangle flags.
18854
18855 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
18856
18857 * Makefile.in (OBJS-common): Add tree-data-ref.o.
18858 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
18859 (tree-data-ref.o): New rule.
18860 * lambda.h: New file.
18861 * tree-data-ref.c: New file.
18862 * tree-data-ref.h: New file.
18863 * tree.c (int_cst_value, tree_fold_gcd): New functions.
18864 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
18865
18866 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
18867
18868 PR target/13926
18869 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
18870 * config/sparc/sparc.c (output_ubranch): New function.
18871 * config/sparc/sparc.md (jump pattern): Use it.
18872
18873 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
18874
18875 PR target/16494
18876 * config/sparc/sparc.c (output_cbranch): Properly guard
18877 the code handling far branches with TARGET_V9.
18878 * config/sparc/sparc.md (length attribute): Document the
18879 side-effect of having a length greater or equal to 3.
18880
18881 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
18882 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
18883
18884 PR target/15186
18885 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
18886 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
18887
18888 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
18889 Martin Sebor <sebor@roguewave.com>
18890
18891 PR target/12602
18892 * doc/invoke.texi (SPARC options): Document -threads
18893 and -pthreads on Solaris.
18894
18895 2004-07-13 Richard Henderson <rth@redhat.com>
18896
18897 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
18898 by reference.
18899 (ind_gimplify_va_arg_expr): Remove.
18900 * tree.h (ind_gimplify_va_arg_expr): Remove.
18901 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
18902 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
18903 argsp to be null.
18904
18905 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
18906 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
18907 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
18908 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
18909 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
18910
18911 2004-07-13 Richard Henderson <rth@redhat.com>
18912
18913 * function.c (pass_by_reference): New.
18914 (assign_parm_find_data_types): Use it.
18915 * calls.c (initialize_argument_information): Likewise.
18916 (emit_library_call_value_1): Likewise.
18917 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18918 * function.h (pass_by_reference): Declare.
18919
18920 2004-07-13 Richard Henderson <rth@redhat.com>
18921
18922 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
18923 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
18924 * expr.h (MUST_PASS_IN_STACK): Remove.
18925 * system.h (MUST_PASS_IN_STACK): Poison.
18926 * tree.h (must_pass_in_stack_var_size): Declare.
18927 (must_pass_in_stack_var_size_or_pad): Declare.
18928 * calls.c (must_pass_in_stack_var_size): New.
18929 (must_pass_in_stack_var_size_or_pad): Rename from
18930 default_must_pass_in_stack.
18931 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
18932 (TARGET_MUST_PASS_IN_STACK): New.
18933 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
18934 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
18935 (TARGET_MUST_PASS_IN_STACK): New.
18936 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
18937 * config/frv/frv.c (frv_must_pass_in_stack): New.
18938 (TARGET_MUST_PASS_IN_STACK): New.
18939 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
18940 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
18941 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
18942 (ix86_must_pass_in_stack): Make static.
18943 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
18944 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
18945 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
18946 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
18947 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
18948 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
18949 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
18950 (mcore_must_pass_on_stack): Remove.
18951 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
18952 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
18953 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
18954 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
18955 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
18956 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
18957 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
18958 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
18959 (TARGET_MUST_PASS_IN_STACK): New.
18960 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
18961 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
18962 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
18963 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
18964 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
18965 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
18966 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
18967 MUST_PASS_IN_STACK.
18968
18969 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
18970 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
18971 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
18972 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
18973 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
18974 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
18975 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
18976 config/xtensa/xtensa.c: Use target hook.
18977
18978 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
18979
18980 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
18981 * configure: Rebuilt.
18982
18983 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
18984
18985 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
18986 * config/mips/mips.h (mips_reg_names): Don't declare.
18987 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
18988 (TARGET_NAME_REGS): Delete.
18989 (TARGET_SWITCHES): Remove -mrnames.
18990 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
18991 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
18992 in REGISTER_NAMES.
18993 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
18994 (override_options): Remove handling of TARGET_NAME_REGS.
18995
18996 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
18997
18998 * config/mips/mips.h (TARGET_*): Boolify.
18999
19000 2004-07-12 Nick Clifton <nickc@redhat.com>
19001
19002 * config.gcc: Add sh-*-symbianelf target.
19003 * config/sh/sh.c: Add new target macros:
19004 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
19005 TARGET_CXX_IMPORT_EXPORT_CLASS.
19006 (sh_file_start): Create a definition of the .directive section.
19007 (sh_attribute): Add dllimport and dllexport attributes.
19008 * config/sh/symbian-pre.h: New file.
19009 * config/sh/symbian-post.h: New file.
19010 * config/sh/symbian.c: New file. Contains Symbian specific
19011 functions.
19012 * config/sh/sh-protos.h: Add prototypes for new functions
19013 provided by symbian.c.
19014 * config/sh/t-symbian: New file.
19015 * doc/extend.texi: Document support for dllimport and dllexport
19016 attributes by the sh-symbianelf target.
19017
19018 2004-07-12 James E Wilson <wilson@specifixinc.com>
19019
19020 * Makefile.in (AR): Use @AR@ not ar.
19021 (NM): New.
19022 (AR_FOR_TARGET): Use $(AR) not ar for native.
19023 (NM_FOR_TARGET): Use $(NM) not nm for native.
19024 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
19025 * configure: Regenerate.
19026
19027 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
19028
19029 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
19030 special case.
19031 (ashldi3_sp64): Likewise.
19032
19033 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19034
19035 PR target/16477
19036 * pa.c (function_arg): Update comment.
19037 * pa.h (BLOCK_REG_PADDING): Define.
19038
19039 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19040
19041 PR tree-optimization/16461
19042 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
19043 arguments of phi nodes.
19044
19045 2004-07-12 Devang Patel <dpatel@apple.com>
19046
19047 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
19048
19049 2004-07-12 Steve Ellcey <sje@cup.hp.com>
19050
19051 * function.c (expand_function_start): Ensure r_save is in Pmode.
19052 * calls.c (prepare_call_address): Ensure static_chain_value is
19053 in Pmode.
19054 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
19055 r_save_area are in Pmode.
19056 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
19057 fnaddr, and static_chain are in Pmode.
19058
19059 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
19060
19061 PR target/16445
19062 * config/ia64/ia64.c (bundling): Don't count ignored insns.
19063
19064 2004-07-12 Richard Henderson <rth@redhat.com>
19065
19066 * target.h (struct gcc_target): Move gimplify_va_arg_expr
19067 next to build_builtin_va_list.
19068 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
19069 * builtins.c (gimplify_va_arg_expr): Likewise.
19070 * gimplify.c (copy_if_shared_r): Likewise.
19071
19072 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
19073
19074 * passes.c (rest_of_decl_compilation): Don't defer call of
19075 assemble_variable if its DECL_RTL is already set.
19076
19077 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
19078
19079 * cfgloop.h (struct loop): Add nb_iterations field.
19080 (current_loops): Declare.
19081 * tree-chrec.c (chrec_not_analyzed_yet,
19082 chrec_dont_know, chrec_known, count_ev_in_wider_type,
19083 chrec_contains_symbols_defined_in_loop): Remove the temporary
19084 hooks.
19085 * tree-flow-inline.h (loop_containing_stmt): New function.
19086 * tree-scalar-evolution.c: Add implementation.
19087 * tree-scalar-evolution.h: Add declarations.
19088
19089 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
19090
19091 PR rtl-optimization/15921
19092 * Makefile.in (global.o): Add recog.h.
19093
19094 * global.c (recog.h): Add the include-clause.
19095 (bb_info): New member earlyclobber.
19096 (allocate_bb_info, free_bb_info): Initialize/finish the new
19097 member.
19098 (earlyclobber_regclass, earlyclobber_regclass_length): The new
19099 global variables.
19100 (check_earlyclobber, regclass_intersect,
19101 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
19102 New functions.
19103 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
19104 (make_accurate_live_analysis): Modify pavin.
19105
19106 2004-07-12 Diego Novillo <dnovillo@redhat.com>
19107
19108 * tree-cfg.c (find_taken_edge): Statically compute the truth
19109 value of a predicate comparing an SSA_NAME to itself.
19110
19111 2004-07-12 Roger Sayle <roger@eyesopen.com>
19112
19113 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
19114 rs6000 doesn't have shift-and-add or shift-and-sub instructions
19115 by returning the cost of a multiplication plus an addition.
19116
19117 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
19118
19119 PR tree-optimization/14107
19120 * gimplify.c (gimplify_return_expr): Accept a
19121 RETURN_EXPR with an error argument.
19122 * tree-optimize.c (init_tree_optimization_passes):
19123 Run pass_warn_function_return at -O0.
19124
19125 2004-07-12 Roger Sayle <roger@eyesopen.com>
19126
19127 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
19128 index entry.
19129
19130 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
19131
19132 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
19133 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
19134 * config/mips/3000.md: Add copyright notice. Remove automota and
19135 function units; use generic ones instead. Only define reservations
19136 for things that are different from generic.md. Extend each clause
19137 to include r3900.
19138 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
19139 * config/mips/mips.md: Include them. Remove define_function_units.
19140 (alu, imuldiv): New automata and units.
19141
19142 2004-07-12 Ben Elliston <bje@au.ibm.com>
19143
19144 * doc/invoke.texi (Optimize Options): Document -frename-registers
19145 not being enabled by default at -O3.
19146
19147 2004-07-11 Roger Sayle <roger@eyesopen.com>
19148
19149 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
19150 floating point additions, to keep real immediate constant positive.
19151 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
19152 into X + C, and leave positive real constants as X - C.
19153
19154 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19155
19156 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
19157
19158 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19159
19160 PR tree-optimization/15654
19161 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
19162
19163 2004-07-11 Roger Sayle <roger@eyesopen.com>
19164
19165 * builtins.c (fold_builtin_fputs): Don't bother converting the
19166 return type to integer_type_node, as we've already checked that
19167 the result will be ignored.
19168
19169 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
19170 that signed addition, subtraction, multiplication, division,
19171 remainder, negation and absolute value may potentially trap.
19172
19173 * fold-const.c (fold_ignored_result): New function to strip
19174 non-side-effecting tree nodes from an expression whose result
19175 is ignored.
19176 (fold_convert): Call fold_ignored_result when casting a value
19177 to VOID_TYPE.
19178 (omit_one_operand): Call fold_ignored_result on the "omitted"
19179 operand when building a COMPOUND_EXPR.
19180 (pedantic_omit_one_operand): Likewise.
19181 * tree.h (fold_ignored_result): Prototype here.
19182 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
19183 when we're going to ignore the result.
19184
19185 2004-07-11 Richard Henderson <rth@redhat.com>
19186
19187 PR tree-opt/16383
19188 * tree-ssa-ccp.c (fold_stmt_r): Split out...
19189 * tree.c (fields_compatible_p, find_compatible_field): ... new.
19190 * tree.h (fields_compatible_p, find_compatible_field): Declare.
19191 * tree-sra.c (sra_hash_tree): Hash fields by offset.
19192 (sra_elt_eq): Use fields_compatible_p.
19193 (generate_one_element_ref): Use find_compatible_field.
19194
19195 2004-07-11 Richard Henderson <rth@redhat.com>
19196
19197 PR tree-opt/16422
19198 * tree-sra.c (generate_one_element_init): New.
19199 (generate_element_init): Use it.
19200 (scalarize_init): Push/pop gimplify context around it.
19201 (find_new_referenced_vars_1, find_new_referenced_vars): New.
19202 * gimplify.c (gimplify_expr): Allow SSA_NAME.
19203
19204 2004-07-11 Roger Sayle <roger@eyesopen.com>
19205
19206 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
19207 combine.c's combine_insn_cost.
19208 * rtl.h (insn_rtx_cost): Prototype here.
19209 * combine.c (combine_insn_cost): Delete function.
19210 (combine_validate_cost): Update callers of combine_insn_cost to
19211 call insn_rtx_cost instead.
19212 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
19213 requesting the rtx_cost of call and/or jump instructions.
19214
19215 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
19216 rtx_cost directly. Don't request/use the cost of call or jump
19217 instructions. Return -1 if the cost of any instruction can't be
19218 determined (or the BB contains a function call).
19219 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
19220 -1 (i.e. can't determine the cost of any instruction or the basic
19221 block contains a subroutine call).
19222 (find_if_case_2): Likewise.
19223
19224 2004-07-11 Roger Sayle <roger@eyesopen.com>
19225
19226 * rs6000.c (struct processor_costs): Change semantics of fields to
19227 include the COST_N_INSNS scaling, and update all initializers.
19228 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
19229 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
19230 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
19231 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
19232
19233 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19234
19235 * LANGUAGES: Remove obsolete information.
19236
19237 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
19238
19239 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
19240 SIGBUS signal frames, the PSW address points *to* the faulting
19241 instruction, not after it.
19242
19243 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
19244
19245 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
19246 added to TLS symbol addresses.
19247
19248 2004-07-11 Richard Henderson <rth@redhat.com>
19249
19250 * expmed.c (init_expmed): Use stack-local structures for
19251 temporary rtl. Don't recognize shifts.
19252
19253 2004-07-11 Richard Henderson <rth@redhat.com>
19254
19255 * expr.c (store_expr): Don't fiddle subreg promotion for types
19256 with precision smaller than the mode.
19257
19258 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19259
19260 * tree.h (all_types_permanent): Remove.
19261
19262 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19263
19264 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
19265 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
19266 * langhooks.c (lhd_clear_binding_stack): Remove.
19267 * langhooks-def.h (lhd_clear_binding_stack,
19268 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
19269 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
19270 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
19271 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
19272 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
19273 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
19274 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
19275 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
19276 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
19277 * tree.h (poplevel): Don't declare.
19278 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
19279 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
19280 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
19281 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
19282 Remove.
19283
19284 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19285
19286 PR tree-optimization/16437
19287 * c-common.c (shorten_compare): Don't mark result of conversion to
19288 narrower signed type as overflowing.
19289 * fold-const.c (decode_field_reference): Determine whether
19290 signedness comes from outer type using precision rather than size.
19291
19292 2004-07-11 Phil Edwards <phil@codesourcery.com>
19293
19294 * configure.ac: Alphabetize --enable-checking list, add
19295 missing valgrind entry.
19296 * configure: Regenerate.
19297
19298 2004-07-11 Phil Edwards <phil@codesourcery.com>
19299
19300 * doc/install.texi (Testing): Fix syntax in "make check" example.
19301
19302 2004-07-10 James E Wilson <wilson@specifixinc.com>
19303
19304 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
19305
19306 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19307
19308 PR rtl-optimization/16001
19309 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
19310 niter_expr.
19311
19312 2004-07-10 Geoffrey Keating <geoffk@apple.com>
19313
19314 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
19315
19316 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
19317 James Morrison <phython@gcc.gnu.org>
19318
19319 * doc/contrib.texi (Contributors): Add gfortran contributors and
19320 fix a couple of typos.
19321
19322 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19323
19324 PR rtl-optimization/15387
19325 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
19326 to incoming args space correctly.
19327
19328 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19329
19330 * pa.c (output_indirect_call): Only use %r2 as the link register in
19331 indirect calls with the long PA 2.0 pc-relative branch.
19332
19333 2004-07-10 Daniel Jacobowitz <dan@debian.org>
19334
19335 * config/i386/i386.c (override_options): Pick a 64-bit CPU
19336 for the default tuning if TARGET_64BIT.
19337
19338 2004-07-10 Richard Henderson <rth@redhat.com>
19339
19340 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
19341 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
19342
19343 2004-07-10 Jakub Jelinek <jakub@redhat.com>
19344
19345 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
19346 * expmed.c (store_bit_field, extract_bit_field): Remove last
19347 argument.
19348 * builtins.c (expand_builtin_signbit): Adjust callers.
19349 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
19350 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
19351 * ifcvt.c (noce_emit_move_insn): Likewise.
19352 * stmt.c (expand_return): Likewise.
19353 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
19354 store_field, expand_expr_real_1): Likewise.
19355
19356 2004-07-10 Richard Henderson <rth@redhat.com>
19357
19358 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
19359
19360 2004-07-09 Mike Stump <mrs@apple.com>
19361
19362 * config/darwin.c (no_dead_strip): Add.
19363 (HAVE_DEAD_STRIP): Add.
19364 (darwin_emit_unwind_label): Ensure that we don't dead code strip
19365 the .eh label.
19366
19367 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19368
19369 * tree-ssa-loop-im.c: New file.
19370 * Makefile.in (tree-ssa-loop-im.o): Add.
19371 * cfgloop.c (superloop_at_depth): New function.
19372 * cfgloop.h (superloop_at_depth): Declare.
19373 * common.opt (ftree-lim): New flag.
19374 * expr.c (array_ref_up_bound): New function.
19375 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
19376 * timevar.def (TV_LIM): New timevar.
19377 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
19378 computing immediate uses of a phi node.
19379 * tree-flow.h (struct tree_ann_common_d): Add aux field.
19380 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
19381 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
19382 * tree-pass.h (pass_lim): Declare.
19383 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
19384 functions.
19385 (pass_lim): New pass structure.
19386 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
19387 * tree.c (in_array_bounds_p): New function.
19388 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
19389 (in_array_bounds_p, array_ref_up_bound): Declare.
19390 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
19391 * doc/passes.texi (tree-ssa-loop-im.c): Document.
19392
19393 2004-07-09 Richard Henderson <rth@redhat.com>
19394
19395 * builtins.c (expand_builtin_stpcpy): Don't modify len.
19396
19397 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
19398 with prejudice.
19399
19400 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
19401
19402 * flags.h: Delete redundant prototypes that are being generated
19403 in options.h from common.opt.
19404 * common.opt: Add in the expository comments formerly in flags.h.
19405
19406 2004-07-09 Jan Beulich <jbeulich@novell.com>
19407
19408 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
19409 available for use only when TARGET_MMX/_SSE is set, and check for
19410 variable argument function if any register count is non-zero.
19411 (function_arg): Correctly suppress repeated warnings for passing SSE
19412 vectors are arguments without SSE enabled.
19413 (ix86_function_arg_boundary): Without SSE enabled, the use of what
19414 would be SSE register modes does no longer influence the alignment.
19415
19416 2004-07-09 Richard Henderson <rth@redhat.com>
19417
19418 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
19419 Always align upward to arg boundary. Use size_in_bytes/round_up.
19420 Maintain type-correctness of constants.
19421 * stor-layout.c (round_up, round_down): Special-case powers of 2.
19422
19423 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
19424
19425 * config/sparc/sparc.c (*_costs): Scale instruction costs
19426 by COSTS_N_INSNS.
19427 (sparc_rtx_costs): Adjust as appropriate.
19428
19429 2004-07-09 Jan Beulich <jbeulich@novell.com>
19430
19431 * config/i386/mm3dnow.h: New.
19432 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
19433
19434 2004-07-09 Richard Henderson <rth@redhat.com>
19435
19436 * simplify-rtx.c (simplify_const_relational_operation): Only
19437 look at bounds of scalar integers.
19438
19439 2004-07-09 Jan Beulich <jbeulich@novell.com>
19440
19441 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
19442
19443 2004-07-09 Andrew Pinski <apinski@apple.com>
19444
19445 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
19446 always referenced.
19447 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
19448 UOBJC_METACLASS_decl.
19449
19450 2004-07-09 James E Wilson <wilson@specifixinc.com>
19451
19452 PR target/16364
19453 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
19454 do return a parallel if hfa_mode == XFmode and mode == TImode.
19455
19456 2004-07-09 Jan Beulich <jbeulich@novell.com>
19457
19458 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
19459 permissible for unary plus.
19460
19461 2004-07-09 Jan Beulich <jbeulich@novell.com>
19462
19463 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
19464 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
19465 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
19466 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
19467 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
19468 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
19469 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
19470 (BUILTIN_xxxIMAX): New.
19471 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
19472 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
19473 BUILT_IN_PARITYIMAX.
19474
19475 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
19476
19477 * config/sparc/sparc.h (processor_costs): Define.
19478 (sparc_costs): Declare.
19479 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
19480 hypersparc_costs, sparclet_costs, ultrasparc_costs,
19481 ultrasparc3_costs): New.
19482 (sparc_override_options): Set sparc_costs as appropriate.
19483 (sparc_rtx_costs): Use sparc_costs instead of messy
19484 conditionals.
19485
19486 2004-07-09 Steven Bosscher <stevenb@suse.de>
19487
19488 * doc/md.texi (Processor pipeline description): Mention that
19489 the old pipeline description is deprecated.
19490
19491 * config/rs6000/7450.md (automaton ppc7450): Split up, move
19492 mciu_7450 function unit to...
19493 (automaton ppc7450mciu): ...new automaton.
19494
19495 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
19496 (schedule_block): Don't consider inserting bubbles.
19497 (sched_init): Don't initialize DFA bubbles.
19498 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
19499 TARGET_SCHED_DFA_BUBBLE): Remove.
19500 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
19501 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
19502 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
19503
19504 * stmt.c (conditional_context): Remove prototype.
19505 * tree.h (conditional_context): Remove.
19506 * tree-cfg.c (pre_insert_on_edge): Remove.
19507
19508 * c-common.h (c_expand_asm_operands): Remove prototype.
19509 * c-typeck.c (c_expand_asm_operands): Remove.
19510
19511 2004-07-09 Jan Beulich <jbeulich@novell.com>
19512
19513 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
19514 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
19515 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
19516 and V8QI are class SSE. All sufficiently small remaining vector modes
19517 must be passed in one or two integer registers.
19518 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
19519 returned in memory.
19520 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
19521 __builtin_ia32_pmuludq128 have non-uniform argument and return types
19522 and must thus be handled explicitly.
19523 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
19524 MMX and XMM regs.
19525 (movv8qi_internal, movv4hi_internal, movv2si_internal,
19526 movv2sf_internal): Permit moving between MMX and XMM registers (since
19527 MMX areguments and return values are passed in XMM registers).
19528 (sse2_umulsidi3): Correct type and mode.
19529
19530 2004-07-09 Richard Henderson <rth@redhat.com>
19531
19532 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
19533
19534 2004-07-09 Eric Christopher <echristo@redhat.com>
19535
19536 * config/rs6000/40x.md: Split into two automatons.
19537
19538 2004-07-09 Zack Weinberg <zack@codesourcery.com>
19539 Andrew Pinski <apinski@apple.com>
19540
19541 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
19542 on when we have more than one input file.
19543 (c_common_parse_file): Restore loop over all input files.
19544 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
19545
19546 * c-decl.c (set_type_context): New function.
19547 (pop_scope): Use it to set context of types. When we
19548 encounter a TYPE_DECL, set the context of the attached type too.
19549 (pop_file_scope): Don't call cpp_undef_all here.
19550 (diagnose_mismatched_decls): Do not complain about a second
19551 definition of an 'extern inline' function if it's not in the
19552 same translation unit. Do not complain about inline
19553 declaration after use if the use was in a different
19554 translation unit.
19555 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
19556 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
19557 the external scope.
19558 (pushdecl_top_level): Likewise.
19559 (grokdeclarator): Clarify what is going on with setting
19560 DECL_EXTERNAL on function types, a little.
19561 (c_write_global_declarations): Don't do anything if
19562 -fsyntax-only or errors have been encountered.
19563
19564 2004-07-09 Zack Weinberg <zack@codesourcery.com>
19565
19566 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
19567
19568 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19569
19570 PR target/16459
19571 * pa.c (output_indirect_call): Use %r2 as the link register when
19572 calling $$dyncall with a pc-relative branch.
19573
19574 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
19575
19576 * doc/install.texi (Binaries): Mention OpenPKG.
19577
19578 2004-07-09 Diego Novillo <dnovillo@redhat.com>
19579
19580 Fix PR tree-optimization/15555
19581 * tree-dfa.c (dump_variable): If the variable is a pointer
19582 SSA_NAME, also dump its points-to information.
19583 * tree-flow.h (struct ptr_info_def): Add field
19584 is_dereferenced.
19585 (dump_points_to_info_for): Declare.
19586 (debug_points_to_info_for): Declare.
19587 * tree-optimize.c (init_tree_optimization_passes): Add a
19588 second alias analysis pass after DOM2.
19589 Move pass_del_pta to a later spot.
19590 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
19591 create a name tags when we find a dereferenced pointer. Just
19592 mark the pointer dereferenced.
19593 (collect_points_to_info_for): Move code to clear points-to
19594 information to create_name_tags.
19595 (create_name_tags): New function.
19596 (compute_flow_sensitive_aliasing): Call it.
19597 (setup_pointers_and_addressables): Mark type tags for renaming
19598 here instead of ...
19599 (create_memory_tag): ... here.
19600 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
19601 (dump_points_to_info_for): Declare extern.
19602 (debug_points_to_info_for): New function.
19603
19604 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
19605
19606 * config/arc/arc.md: Switch to DFA-based scheduler description.
19607 * config/arc/arc.c: Switch to DFA-based scheduler description.
19608
19609 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
19610
19611 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
19612 pointer.
19613
19614 2004-07-09 Richard Henderson <rth@redhat.com>
19615
19616 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
19617 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19618 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
19619 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
19620
19621 * config/v850/v850-protos.h (v850_va_arg): Remove.
19622 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19623 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
19624 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
19625 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
19626 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
19627
19628 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
19629
19630 PR target/12133
19631 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
19632 and DImode to use +/-4k offset.
19633
19634 2004-07-09 Richard Henderson <rth@redhat.com>
19635
19636 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
19637 Remove.
19638 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19639 (xstormy16_gimplify_va_arg_expr): Rewrite from
19640 xstormy16_expand_builtin_va_arg.
19641 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
19642
19643 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
19644 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
19645
19646 * config/sh/sh-protos.h (sh_va_arg): Remove.
19647 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19648 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
19649 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
19650
19651 * config/pa/pa-protos.h (hppa_va_arg): Remove.
19652 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19653 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
19654 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
19655
19656 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
19657 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19658 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
19659 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
19660
19661 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
19662
19663 * config/sparc/sparc.md (return): Rewrite length formula.
19664 * config/sparc/sparc.c (output_return): Pass 1 as 5th
19665 argument to final_scan_insn when in a delay slot.
19666 (output_sibcall): Likewise.
19667
19668 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
19669
19670 * arm.c (arm_cpp_interwork): New variable.
19671 (arm_override_options): Set it if TARGET_INTERWORK was on the command
19672 line.
19673 * arm.h (arm_cpp_interwork): Declare it.
19674 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
19675 __THUMB_INTERWORK__ in the preprocessor.
19676
19677 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
19678
19679 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
19680
19681 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
19682
19683 PR target/16416
19684 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
19685 Override default settings to account for -m32 and -m64.
19686
19687 2004-07-08 Randolph Chung <tausq@debian.org>
19688
19689 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
19690
19691 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
19692
19693 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
19694 before comparing it as such.
19695
19696 2004-07-08 Richard Henderson <rth@redhat.com>
19697
19698 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
19699 temporary. Use bit arithmetic to align.
19700
19701 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
19702
19703 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
19704 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
19705 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
19706 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
19707 add_labels_and_missing_jumps, find_jump_block,
19708 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
19709 Likewise.
19710 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
19711 link_btr_uses, move_btr_def): Likewise.
19712 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
19713 expand_builtin_expect_jump): Likewise.
19714 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
19715 * calls.c (expand_call, emit_library_call_value_1): Likewise.
19716 * cfganal.c (forwarder_block_p): Likewise.
19717 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
19718 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
19719 find_bb_boundaries): Likewise.
19720 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
19721 merge_blocks_move_predecessor_nojumps,
19722 merge_blocks_move_successor_nojumps, insns_match_p,
19723 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
19724 try_optimize_cfg): Likewise.
19725 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
19726 * cfglayout.c (skip_insns_after_block, label_for_bb,
19727 record_effective_endpoints, insn_locators_initialize,
19728 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
19729 * cfgmainloop.c (create_loop_notes): Likewise.
19730 * cfgrtl.c (delete_insn, delete_insn_chain,
19731 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
19732 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
19733 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
19734 redirect_branch_edge, force_nonfallthru_and_redirect,
19735 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
19736 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
19737 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
19738 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
19739 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
19740 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
19741 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
19742 * combine.c (combine_instructions, can_combine_p, try_combine,
19743 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
19744 distribute_notes, distribute_links, insn_cuid): Likewise.
19745 * cse.c (fold_rtx, cse_insn, cse_around_loop,
19746 invalidate_skipped_block, cse_set_around_loop,
19747 cse_end_of_basic_block, cse_main, cse_basic_block,
19748 cse_condition_code_reg): Likewise.
19749 * cselib.c (cselib_process_insn): Likewise.
19750 * ddg.c (create_ddg): Likewise.
19751 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
19752 Likewise.
19753 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
19754 gen_label_die, dwarf2out_var_location): Likewise.
19755 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
19756 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
19757 last_call_insn, active_insn_p, next_label, prev_label,
19758 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
19759 add_insn_before, remove_insn, add_function_usage_to,
19760 reorder_insns, find_line_note, remove_unnecessary_notes,
19761 emit_insn_after_1, classify_insn): Likewise.
19762 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
19763 connect_post_landing_pads, sjlj_mark_call_sites,
19764 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
19765 can_throw_internal, can_throw_external, set_nothrow_function_flags,
19766 convert_to_eh_region_ranges): Likewise.
19767 * explow.c (optimize_save_area_alloca): Likewise.
19768 * expr.c (expand_expr_real): Likewise.
19769 * final.c (insn_current_reference_address, compute_alignments,
19770 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
19771 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
19772 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
19773 propagate_block_delete_insn, propagate_one_insn,
19774 init_propagate_block_info, propagate_block, libcall_dead_p,
19775 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
19776 Likewise.
19777 * function.c (instantiate_virtual_regs, reorder_blocks_1,
19778 expand_function_start, expand_function_end, contains,
19779 thread_prologue_and_epilogue_insns,
19780 reposition_prologue_and_epilogue_notes): Likewise.
19781 * gcse.c (constprop_register, bypass_conditional_jumps,
19782 insert_insn_end_bb, gcse_after_reload): Likewise.
19783 * genemit.c (gen_expand, gen_split): Likewise.
19784 * genpeep.c (gen_peephole, main): Likewise.
19785 * global.c (build_insn_chain): Likewise.
19786 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
19787 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
19788 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
19789 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
19790 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
19791 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
19792 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
19793 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
19794 dead_or_predicable): Likewise.
19795 * integrate.c (try_constants): Likewise.
19796 * jump.c (rebuild_jump_labels, cleanup_barriers,
19797 purge_line_number_notes, init_label_info, mark_all_labels,
19798 squeeze_notes, get_label_before, get_label_after,
19799 reversed_comparison_code_parts, simplejump_p, pc_set,
19800 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
19801 delete_barrier, delete_prior_computation, delete_computation,
19802 delete_related_insns, delete_for_peephole, redirect_jump):
19803 Likewise.
19804 * lcm.c (optimize_mode_switching): Likewise.
19805 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
19806 Likewise.
19807 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
19808 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
19809 * loop-iv.c (simplify_using_assignment): Likewise.
19810 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
19811 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
19812 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
19813 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
19814 check_insn_for_givs, check_final_value, update_giv_derive,
19815 basic_induction_var, product_cheap_p, check_dbra_loop,
19816 loop_insn_first_p, last_use_this_basic_block,
19817 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
19818 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
19819 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
19820 sms_schedule_by_order): Likewise.
19821 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
19822 * postreload.c (reload_cse_simplify_operands, reload_combine,
19823 reload_cse_move2add): Likewise.
19824 * predict.c (can_predict_insn_p, estimate_probability,
19825 expected_value_to_br_prob, process_note_predictions): Likewise.
19826 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
19827 * profile.c (branch_prob): Likewise.
19828 * ra-build.c (live_out_1, livethrough_conflicts_bb,
19829 detect_webs_set_in_cond_jump): Likewise.
19830 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
19831 ra_print_rtl_with_bb): Likewise.
19832 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
19833 * recog.c (next_insn_tests_no_inequality, find_single_use,
19834 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
19835 * reg-stack.c (next_flags_user, record_label_references,
19836 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
19837 compensate_edge, convert_regs_1): Likewise.
19838 * regclass.c (scan_one_insn): Likewise.
19839 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
19840 regmove_optimize, fixup_match_1, single_set_for_csa,
19841 combine_stack_adjustments_for_block): Likewise.
19842 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
19843 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
19844 find_equiv_reg): Likewise.
19845 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
19846 reload_as_needed, emit_input_reload_insns, do_output_reload,
19847 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
19848 Likewise.
19849 * reorg.c (find_end_label, emit_delay_sequence,
19850 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
19851 get_jump_flags, rare_destination, mostly_true_jump,
19852 try_merge_delay_insns, redundant_insn, own_thread_p,
19853 fill_simple_delay_slots, fill_slots_from_thread,
19854 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
19855 dbr_schedule): Likewise.
19856 * resource.c (find_basic_block, next_insn_no_annul,
19857 find_dead_or_set_registers, mark_target_live_regs): Likewise.
19858 * rtl.h (RTX_PREV): Likewise.
19859 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
19860 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
19861 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
19862 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
19863 tablejump_p, computed_jump_p, insns_safe_to_move_p,
19864 find_first_parameter_load, can_hoist_insn_p): Likewise.
19865 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
19866 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
19867 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
19868 schedule_ebbs): Likewise.
19869 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
19870 is_conditionally_protected, can_schedule_ready_p,
19871 add_branch_dependences, debug_dependencies): Likewise.
19872 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
19873 Likewise.
19874 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
19875 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
19876 set_dominates_use, ujump_to_loop_cont): Likewise.
19877 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
19878 * varasm.c (output_constant_pool_1): Likewise.
19879
19880 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19881
19882 * tree-scalar-evolution.c: New file.
19883 * tree-scalar-evolution.h: New file.
19884 * tree-ssa-loop-niter.c: New file.
19885 * Makefile.in (SCEV_H): New.
19886 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
19887 * cfgloop.h (struct loop): Add bounds field.
19888 * tree-flow.h (struct tree_niter_desc): New type.
19889 (number_of_iterations_cond, number_of_iterations_exit,
19890 loop_niter_by_eval, find_loop_niter_by_eval,
19891 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
19892 free_numbers_of_iterations_estimates): Declare.
19893 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
19894 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
19895 * doc/invoke.texi (max-iterations-to-track): Document.
19896
19897 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
19898
19899 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
19900 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
19901 (MODE_AFTER): Add cast appropriately.
19902 * config/sh/sh.md (movdi splitter): Likewise.
19903 (casesi_worker_2): Add const qualifier appropriately.
19904 (eh_return): Remove unused variable.
19905 (insv): Initialize v;
19906
19907 2004-07-08 Richard Henderson <rth@redhat.com>
19908
19909 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
19910 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19911 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
19912 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
19913 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
19914
19915 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
19916 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19917 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
19918 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
19919
19920 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
19921 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19922 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
19923 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
19924
19925 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
19926 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19927 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
19928 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
19929
19930 * config/i860/i860-protos.h (i860_va_arg): Remove.
19931 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19932 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
19933 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
19934
19935 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
19936
19937 * system.h: Prototype getpagesize if missing.
19938 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
19939 * configure: Regenerate.
19940 * config.in: Regenerate.
19941
19942 2004-07-08 Richard Henderson <rth@redhat.com>
19943
19944 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
19945 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19946 (fr30_gimplify_va_arg_expr): New.
19947 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
19948 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
19949
19950 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
19951
19952 PR target/16414
19953 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
19954 of asm_noperands result.
19955
19956 2004-07-08 Richard Henderson <rth@redhat.com>
19957
19958 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
19959 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19960 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
19961 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
19962
19963 2004-07-08 Richard Henderson <rth@redhat.com>
19964
19965 * builtins.c (ind_gimplify_va_arg_expr): New.
19966 * tree.h (ind_gimplify_va_arg_expr): Declare.
19967 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
19968
19969 2004-07-08 Jan Beulich <jbeulich@novell.com>
19970
19971 * expmed.c (extract_bit_field): Correct condition to use vec_extract
19972 patterns also on vector elements other than the first one.
19973 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
19974 break statements.
19975
19976 2004-07-08 Geoffrey Keating <geoffk@apple.com>
19977
19978 * config/rs6000/darwin-ldouble.c: Correct reference
19979 to the Linnainmaa paper.
19980
19981 2004-07-08 Richard Henderson <rth@redhat.com>
19982
19983 * config/arc/arc-protos.h (arc_va_arg): Remove.
19984 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19985 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
19986 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
19987
19988 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
19989 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19990 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
19991 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
19992
19993 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19994
19995 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
19996
19997 2004-07-08 Zack Weinberg <zack@codesourcery.com>
19998
19999 * c-decl.c (static_ctors, static_dtors): Make static.
20000 (pop_file_scope): Call c_common_write_pch and
20001 cgraph_finalize_compilation_unit here.
20002 (build_cdtor): Moved here from c-objc-common.c; simplify.
20003 (c_write_global_declarations_1): Clarify comment.
20004 (c_write_global_declarations): Close the external scope before
20005 doing anything else. Call build_cdtor, cgraph_optimize, and
20006 mudflap_finish_file here.
20007 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
20008 Clarify comment.
20009 * c-objc-common.c: No need to include cgraph.h.
20010 (build_cdtor): Moved to c-decl.c.
20011 (c_objc_common_finish_file): Delete.
20012 * c-tree.h: Update to match.
20013 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
20014 (generate_static_references): Set TREE_USED before calling finish_decl.
20015 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
20016 on the static_instances_decl.
20017
20018 2004-07-08 Zack Weinberg <zack@codesourcery.com>
20019
20020 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
20021 decls when there is only one input translation unit.
20022 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
20023 change of 2004-07-05; do not treat declarations with
20024 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
20025 * opts.c (cur_in_fname): Delete.
20026 * opts.h: Likewise.
20027 * tree.c: Revert changes of 2004-07-05; no special treatment
20028 for TRANSLATION_UNIT_DECLs.
20029 * Makefile.in (tree.o): Update dependencies.
20030
20031 2004-07-08 Roger Sayle <roger@eyesopen.com>
20032
20033 * builtins.c (fold_builtin_strcpy): Merge functionality from
20034 simplify_builtin_strcpy. Add additional len argument. No longer
20035 static. Remove function prototype.
20036 (fold_builtin_strncpy): Likewise integrate functionality from
20037 simplify_builtin_strncpy. Add additional slen argument. No
20038 longer static. Remove function prototype.
20039 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
20040 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
20041 types of "ignore" and "unlocked" parameters to bool.
20042 (fold_builtin_1): Add additional ignore argument. Call renamed
20043 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
20044 builtins. Update arguments to fold_builtin_strncpy and
20045 fold_builtin_strcpy. Add function prototype.
20046 (fold_builtin): Add additional Boolean ignore argument to pass
20047 to fold_builtin_1.
20048 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
20049 and fold_builtin_strncpy instead of simplify_builtin_fputs,
20050 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
20051
20052 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
20053 simplify_builtin_strncpy): Delete function prototypes.
20054 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
20055 fold_builtin_strncpy): Add function prototypes here.
20056 (fold_builtin): Update function prototype with new "bool ignore".
20057
20058 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
20059 (ccp_fold_builtin): Update call to fold_builtin. Call
20060 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
20061 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
20062 simplify_builtin_strncpy respectively.
20063 * fold-const.c (fold): Update call to fold_builtin.
20064
20065 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
20066
20067 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
20068 to strcpy.
20069
20070 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
20071 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
20072 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
20073 * calls.c: Remove ifdefs of macros above.
20074 * functions.c: Likewise.
20075 * expr.c: Likewise.
20076
20077 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20078
20079 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
20080 (arch attribute): Delete.
20081 (current_function_calls_alloca attribute): Rename into calls_alloca.
20082 (calls_eh_return): New attribute.
20083 (leaf_function): Likewise.
20084 (length attribute): Fix formula for sibcalls.
20085 (return insn): Correctly compute the 'length' attribute.
20086 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
20087
20088 2004-07-08 Richard Henderson <rth@redhat.com>
20089
20090 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
20091 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
20092 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
20093 * tree-eh.c (lower_eh_constructs_1): Likewise.
20094 * tree-sra.c (sra_walk_modify_expr): Likewise.
20095 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20096 (eliminate_unnecessary_stmts): Likewise.
20097 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
20098 * tree-tailcall.c (optimize_tail_call): Likewise.
20099 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
20100
20101 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
20102 Jakub Jelinek <jakub@redhat.com>
20103
20104 * config/i386/i386.c (override_options): Enable
20105 SSE prefetches with -mtune, as long as we are
20106 compiling for i686 or higher. All i686 processors
20107 accept SSE prefetches as NOPS, some i586's don't.
20108
20109 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20110
20111 PR target/10567
20112 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
20113
20114 2004-07-08 Diego Novillo <dnovillo@redhat.com>
20115
20116 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
20117 the handling of clobbering ASM_EXPRs.
20118
20119 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20120
20121 PR target/16430
20122 * config/sparc/sparc.c (function_value): In 64-bit mode,
20123 return the aggregates larger than 16 bytes like unions.
20124
20125 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20126
20127 PR target/16199
20128 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
20129 'temp' is zero, generate new pseudos as needed and emit the
20130 sequence of insns in single-assignment form. Resync comments
20131 with code.
20132 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
20133 function before reload.
20134
20135 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
20136
20137 * vec.c (vec_assert_fail): Remove duplicate 'function'.
20138
20139 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
20140
20141 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
20142 Allocation is signed.
20143 (VEC_reserve): Return flag, allocation is signed.
20144
20145 2004-07-08 Richard Henderson <rth@redhat.com>
20146
20147 * tree-ssa-ccp.c (fold_stmt): Get type directly from
20148 OBJ_TYPE_REF_OBJECT.
20149
20150 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
20151 Neil Booth <neil@daikokuya.co.uk>
20152
20153 PR c/2511
20154 PR c/3325
20155 * c-decl.c (finish_struct): Ensure bit-fields are given the
20156 correct type.
20157 * c-common.c (c_common_signed_or_unsigned_type): For C, require
20158 the precision to match as well as the mode.
20159 * expr.c (reduce_to_bit_field_precision): New function.
20160 (expand_expr_real_1): Reduce expressions of bit-field type to
20161 proper precision.
20162 * langhooks.h (reduce_bit_field_operations): New hook.
20163 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
20164 Define.
20165 * c-lang.c, objc/objc-lang.c
20166 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
20167 * objc/objc-act.c (check_ivars): Convert types to bit-field types
20168 before checking.
20169 * tree.c (build_nonstandard_integer_type): New function.
20170 * tree.h (build_nonstandard_integer_type): New prototype.
20171 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
20172 conversions between integer and boolean types as useless.
20173
20174 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
20175
20176 * c-common.c (c_common_nodes_and_builtins): Do not
20177 create __builtin_ptrdiff_t and __builtin_size_t.
20178
20179 2004-07-08 Andrew Pinski <apinski@apple.com>
20180
20181 * Makefile.in (libbackend.o): Add -combine to the gcc
20182 command line.
20183
20184 2004-07-08 Nick Clifton <nickc@redhat.com>
20185
20186 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
20187 Set to -Os.
20188
20189 2004-07-08 Richard Henderson <rth@redhat.com>
20190
20191 * except.c (expand_eh_region_start, expand_eh_region_end,
20192 expand_eh_handler, expand_eh_region_end_cleanup,
20193 expand_start_all_catch, expand_start_catch, expand_end_catch,
20194 expand_end_all_catch, expand_eh_region_end_allowed,
20195 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
20196 expand_eh_region_end_fixup): Remove.
20197 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
20198 cleanups, outer_cleanups, label_chain, exception_region.
20199 (struct goto_fixup): Remove stack_level, cleanup_list_list.
20200 (struct label_chain): Remove.
20201 (struct stmt_status): Remove x_stack_block_stack.
20202 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
20203 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
20204 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
20205 end_cleanup_deferral, last_cleanup_this_contour,
20206 containing_blocks_have_cleanups_or_stack_level,
20207 any_pending_cleanups): Remove.
20208 (expand_null_return_1): Take no arguments.
20209 (expand_label, expand_naked_return, expand_return,
20210 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
20211 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
20212 expand_end_case_type): Don't use any of them.
20213 * calls.c (expand_call): Likewise.
20214 * dojump.c (do_jump): Likewise.
20215 * function.c (expand_function_end): Likewise.
20216 * expr.c (store_expr, expand_expr_real_1): Likewise.
20217 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
20218 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
20219 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
20220 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
20221 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
20222 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
20223 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
20224 for WITH_CLEANUP_EXPR.
20225 (gimple_push_cleanup): Likewise.
20226 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
20227 * print-tree.c (print_node): Likewise.
20228 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
20229 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
20230 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
20231 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
20232 (GOTO_SUBROUTINE_EXPR): Remove.
20233 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
20234 (DECL_TOO_LATE): Remove.
20235 * except.h, tree.h: Update decls.
20236
20237 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
20238
20239 * explow.c (optimize_save_area_alloca): Do not accept parameters.
20240 * passes.c (rest_of_handle_final): Handle symout.
20241 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
20242 Push timevar here.
20243 (rest_of_handle_sched): Break out SMS. Remove ifs for
20244 flag_schedule_insns and flag_modulo_sched.
20245 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
20246 collect at the end.
20247 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
20248 (rest_of_handle_partition_blocks, rest_of_handle_sms,
20249 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
20250 rest_of_handle_mode_switching, rest_of_handle_jump,
20251 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
20252 rest_of_handle_jump2, rest_of_handle_postreload,
20253 rest_of_handle_flow2, rest_of_clean_state,
20254 rest_of_handle_shorten_branches,
20255 rest_of_handle_prologue_epilogue,
20256 rest_of_handle_branch_target_load_optimize): New.
20257 (rest_of_compilation): Call the above. Remove ggc_collect
20258 calls moved to rest_of_handle_*.
20259 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
20260
20261 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
20262 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
20263 * except.h (set_nothrow_function_flags): Update comment.
20264 * function.c (current_function_nothrow): Remove.
20265 * output.h (current_function_nothrow): Remove.
20266 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
20267 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
20268
20269 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
20270
20271 PR bootstrap/16326
20272 * reorg.c: Revert 2004-06-30 change.
20273 (find_end_label): If HAVE_epilogue and !HAVE_return,
20274 return 0 instead of creating a label at the end of the insn chain.
20275 (optimize_skip): Account for the failure mode of find_end_label.
20276 (fill_simple_delay_slots): Likewise.
20277 (fill_slots_from_thread): Likewise.
20278 (relax_delay_slots): Likewise.
20279
20280 2004-07-08 Diego Novillo <dnovillo@redhat.com>
20281
20282 * tree-flow.h (addressable_vars): Declare.
20283 * tree-ssa-alias.c (addressable_vars): Define.
20284 (setup_pointers_and_addressables): Add addressable variables
20285 to addressable_vars.
20286 * tree-ssa-operands.c (get_stmt_operands): Move
20287 handling of ASM_EXPRs ...
20288 (get_asm_expr_operands): ... here.
20289 When the ASM_EXPR clobbers memory, also clobber addressable
20290 variables.
20291 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
20292 (delete_tree_ssa): Reset addressable_vars.
20293
20294 2004-07-07 Jan Beulich <jbeulich@novell.com>
20295 Richard Henderson <rth@redhat.com>
20296
20297 * varasm.c (assemble_variable): Use assemble_zeros for
20298 zero-initialized variables.
20299 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
20300 for SECCAT_BSS and SECCAT_TBSS.
20301
20302 2004-07-07 Jan Beulich <jbeulich@novell.com>
20303
20304 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
20305
20306 * expmed.c (emit_store_flag): Also special-case double-word
20307 (in-)equality comparison against -1.
20308
20309 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
20310 passing arguments the containers for which are registers.
20311
20312 * calls.c (emit_library_call_value_1): Use mode of function parameter
20313 rather than that of argument since constants have none.
20314
20315 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
20316
20317 Introduce H8SX support.
20318 * expr.c (expand_strcpy): Renamed and moved to...
20319 * builtins.c (expand_movstr): ... here. Tweak.
20320 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
20321 computed or has side effects.
20322 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
20323 unused, or if mempcpy fails. Adjust the return value in the
20324 latter case. Use movstr if everything else fails.
20325 * doc/md.texi (movstr): Document.
20326 (movmemM, clrmemM): Fix explanation of memory block operands.
20327 * config/h8300/h8300.md (stpcpy): Renamed to...
20328 (movstr): ... this. Adjust.
20329 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
20330 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
20331 movmem* and clrstr* to clrmem*.
20332 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
20333 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
20334 GENERAL_REGS, always.
20335 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
20336 getting the stack pointer as addr.
20337 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
20338 from general_operand_dst.
20339 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
20340 variant of...
20341 (movmd_internal): ... this. Add modes to operands. Disparage `D'
20342 instead of requiring it to match only before reload.
20343 (stpcpy_internal_normal): New, normal-mode variant of...
20344 (stpcpy_internal): ... this. Add modes to operands. Disparage
20345 `D' instead of requiring it to match only before reload.
20346 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
20347 mode argument.
20348 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
20349 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
20350 h8300_get_index.
20351 * config/h8300/h8300.md (attr type): Add call.
20352 (attr can_delay): If type is call, set it no.
20353 (call, call_value): Set type to call.
20354 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
20355 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
20356 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
20357 * tree.c (get_narrower): Don't narrow integral types into
20358 non-integral types.
20359 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
20360 frame_size *before* the first use.
20361 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
20362 on input.
20363 (peephole2): Don't widen instructions that push SP. Move
20364 decrement of SP to the end of all stm-generating peepholes.
20365 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
20366 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
20367 and OR to set it to all ones.
20368 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
20369 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
20370 (call, call_value): Set can_delay to "no".
20371 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
20372 * config/h8300/h8300.md (extzv): Make subreg check more robust.
20373 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
20374 * config/h8300/h8300.md (*brabit): Remove.
20375 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
20376 zero_extract. Use bit_memory_operand as the predicate for
20377 operand 1 and 'WU' as the constraint. Check the difference
20378 between the base length and the final one when deciding which
20379 type of branch to use.
20380 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
20381 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
20382 Use convert_move to extend the result for TARGET_H8300SX. Check
20383 for QImode memory references. Optimize the case where the
20384 destination is a paradoxical subreg.
20385 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
20386 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
20387 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
20388 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
20389 * config/h8300/h8300.md: Include mova.md
20390 (length_table): Add mova and mova_zero.
20391 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
20392 after all constant addresses for '%R', '%X', '%T' and '%S'.
20393 (h8300_mova_length): New function.
20394 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
20395 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
20396 dependencies for s-config, etc.
20397 * config/h8300/gemova.sh: New file.
20398 * config/h8300/mova.md: Generated.
20399 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
20400 * config/h8300/h8300.c (h8300_bitfield_length): New.
20401 (nibble_operand): Adjust.
20402 (h8300_binary_length): Handle conditional binary op.
20403 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
20404 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
20405 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
20406 and P#<0, unused so far. W and Y are now prefixes to multi-letter
20407 constraints. WU is introduced as a variant of U that requires a
20408 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
20409 * config/h8300/h8300.md (attr type): Added bitbranch.
20410 (attr length_table): Added bitfield and bitbranch.
20411 (attr length): Compute bitbranch length.
20412 (andqi): Separate pattern for H8300SX. Use bfld for loading the
20413 least-significant bit of a byte.
20414 (brabit, brabc, brabs): New.
20415 (insv, extzv): Emit bfst and bfld on H8300SX.
20416 (bfld, bfst, seq, sne): New.
20417 (bstzhireg, cmpstz, bstz, bistz): New.
20418 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
20419 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
20420 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
20421 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
20422 (h8sx_unary_memory_operator): New function.
20423 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
20424 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
20425 * config/h8300/h8300.md: Add peepholes to combine reloads and
20426 arithmetic insns.
20427 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
20428 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
20429 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
20430 (and?i, ior?i, xor?i): Likewise.
20431 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
20432 * config/h8300/h8300.c: Move enums and prototypes to head of file.
20433 Various whitespace fixes.
20434 (h8300_constant_length): New function, split out from...
20435 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
20436 (h8300_classify_operand): Use IN_RANGE.
20437 (h8300_classify_operand): Use h8300_constant_length.
20438 (h8300_short_move_mem_p): Tighten size check.
20439 (h8sx_mergeable_memrefs_p): Tighten equality check.
20440 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
20441 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
20442 for -msx.
20443 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
20444 * config/h8300/crtn.asm: Likewise.
20445 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
20446 if __H8300SX__ is defined.
20447 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
20448 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
20449 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
20450 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
20451 addresses as mode-dependent.
20452 * config/h8300/h8300.c (print_operand_address): Update call to
20453 h8300_get_index.
20454 (h8300_get_index): Take a mode argument. Rework to fix an
20455 earlier misunderstanding.
20456 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
20457 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
20458 into a register if TARGET_H8300SX.
20459 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
20460 TARGET_H8300SX. Also disable related define_splits.
20461 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
20462 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
20463 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
20464 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
20465 * config/h8300/h8300.h (OK_FOR_Z): New macro.
20466 (EXTRA_CONSTRAINT_STR): Check it.
20467 * config/h8300/h8300.c (h8300_classify_operand): Accept null
20468 class arguments.
20469 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
20470 * config/h8300/h8300.md (length_table): Add mov_imm4.
20471 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
20472 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
20473 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
20474 be a label.
20475 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
20476 * config/h8300/h8300.c (h8300_reorg): New function.
20477 (TARGET_MACHINE_DEPENDENT_REORG): Define.
20478 * config/h8300/h8300.md (length): Subtract the length of the
20479 delay slot from (pc) when checking the range of forward branches.
20480 (delay_slot, can_delay): New attributes.
20481 (define_delay): Add bra/s handling.
20482 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
20483 (jump): Add delayed-branch handling.
20484 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
20485 * expr.c (expand_strcpy): New function.
20486 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
20487 (expand_builtin_stpcpy): Likewise.
20488 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
20489 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
20490 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
20491 handling to improve register allocation for -fno-omit-frame-pointer.
20492 (h8sx_split_movmd): Delete, moving er6 handling into...
20493 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
20494 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
20495 (movmd): Add calls to copy_rtx.
20496 (movmd_internal): In the second alternative, allow the initial and
20497 final destination registers to be different . Update the splitter
20498 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
20499 instead of h8sx_split_movmd.
20500 (stpcpy, movsd): New expanders.
20501 (movsd_internal): New define_insn.
20502 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
20503 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
20504 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
20505 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
20506 and DESTINATION_REGS.
20507 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
20508 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
20509 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
20510 (h8300_move_ratio): Declare.
20511 (MOVE_RATIO): Use it.
20512 * config/h8300/h8300.c (h8300_move_ratio): New variable.
20513 (h8300_init_once): Initialize it.
20514 (h8300_reg_class_from_letter): New function.
20515 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
20516 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
20517 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
20518 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
20519 (movstrsi, movmd): New expanders.
20520 (movmd_internal): New insn.
20521 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
20522 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
20523 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
20524 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
20525 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
20526 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
20527 * config/h8300/h8300.c (nibble_operand): Fix warning.
20528 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
20529 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
20530 (movsf_h8300h): Disable for TARGET_H8300SX.
20531 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
20532 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
20533 h8300_stm_parallel and h8300_return_parallel.
20534 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
20535 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
20536 h8300_stm_parallel, h8300_return_parallel): New functions.
20537 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
20538 if TARGET_H8300SX. Use h8300_push_pop.
20539 (h8300_expand_epilogue): Likewise. Try to merge the return insn
20540 and final pop when generating h8sx code. Always emit some form
20541 of return insn.
20542 * config/h8300/h8300.md: Don't enforce register alignment in
20543 stm peepholes if TARGET_H8300SX.
20544 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
20545 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
20546 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
20547 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
20548 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
20549 (MULTILIB_DIRNAMES): Add a directory for it.
20550 (MULTILIB_MATCHES): Delete.
20551 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
20552 * final.c (walk_alter_subreg): Handle addresses with subregs
20553 inside a ZERO_EXTEND or AND.
20554 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
20555 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
20556 if TARGET_H8300SX.
20557 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
20558 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
20559 @(dd,Rn.w) and @(dd,ERn.L).
20560 (h8300_displacement_size): Take the whole address as argument.
20561 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
20562 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
20563 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
20564 (h8sx_mergeable_memrefs_p): Declare.
20565 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
20566 (HAVE_PRE_INCREMENT): Likewise.
20567 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
20568 addresses for TARGET_H8300SX,
20569 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
20570 and POST_DEC.
20571 (movb_length_table, movl_length_table): New tables.
20572 (movw_length_table): Define to movb_length_table.
20573 (h8300_displacement_size): New, split out from...
20574 (h8300_classify_address): ...here. Handle pre/post inc/dec.
20575 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
20576 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
20577 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
20578 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
20579 (compute_plussi_length, compute_plussi_cc): Update accordingly.
20580 (h8sx_unary_shift_operator): Get the mode from the operator.
20581 (binary_shift_operator): Likewise.
20582 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
20583 a memory reference, check whether the reference is offsettable.
20584 (length_table): Add movb, movw and movl.
20585 (movqi): Add new h8sx pattern. Don't force one operand to be a
20586 register when generating h8sx code.
20587 (movhi, movsi, movsf): Likewise.
20588 (movstrictqi): Use the length_table attribute.
20589 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
20590 (addqi3): Split into a define_expand and define_insn. Don't accept
20591 memory operands in the expander. Use h8300_operands_match_p to
20592 check for matching operands in the define_insn.
20593 (subqi3, negqi2, one_cmplqi2): Likewise.
20594 (add[hs]i3): Don't accept memory operands in the expander. Likewise
20595 in any patterns that are unused in h8sx code. In the h8sx patterns,
20596 use h8300_operands_match_p to check whether operands match.
20597 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
20598 one_cmpl[hs]i3): Likewise.
20599 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
20600 in the expander.
20601 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
20602 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
20603 (h8300_insn_length_from_table): Add a second parameter.
20604 (output_h8sx_shift): Declare.
20605 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
20606 (EXTRA_CONSTRAINT): Replace with...
20607 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
20608 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
20609 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
20610 and h8sx_binary_shift_operator.
20611 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
20612 for TARGET_H8300SX.
20613 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
20614 (bit_memory_operand, fix_bit_operand): Likewise.
20615 (h8300_length_table_for_insn): Remove.
20616 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
20617 instructions.
20618 (h8300_short_immediate_length, h8300_binary_length): New functions.
20619 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
20620 (output_plussi): Use sub to add negative constants.
20621 (compute_plussi_length): Adjust accordingly.
20622 (h8sx_single_shift_type): New enum.
20623 (h8sx_single_shift, h8sx_unary_shift_operator,
20624 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
20625 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
20626 single h8sx instruction. Return false in this case.
20627 * config/h8300/h8300.md (length_table): Add short_immediate.
20628 (length): Pass the operand array to h8300_insn_length_from_table.
20629 (adjust_length): Assume "no" for insns with a length_table attribute.
20630 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
20631 (*addhi3_h8300hs): Don't use for h8sx.
20632 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
20633 and sub.w #xx:3.
20634 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
20635 1's predicate to nonimmediate_operand. Only skip default expansion
20636 if expand_a_shift or expand_a_rotate returns true. Add new patterns
20637 for single h8sx shift instructions.
20638 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
20639 * config/h8300/h8300.c (nibble_operand): Split out of...
20640 (reg_or_nibble_operand): ... this.
20641 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
20642 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
20643 umulhisi3): Introduce expand, and introduce separate insns for
20644 sign- or zero-extended REG and already-extended CONST_INT.
20645 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
20646 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
20647 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
20648 (subhi3): Likewise. Don't accept immediates for operand 1.
20649 Remove the early clobber from second alternative of the h8300s pattern.
20650 (subsi3): Generalize for h8sx. Force operand 2 into a register
20651 on plain h8300 targets.
20652 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
20653 (subsi3_h8300h): Generalize for h8sx.
20654 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
20655 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
20656 * config/h8300/h8300.c (reg_or_nibble_operand): New.
20657 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
20658 (TARGET_H8300SXMUL): New.
20659 (CONST_OK_FOR_P): New.
20660 (CONST_OK_FOR_LETTER_P): Adjust.
20661 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
20662 umulhisi3): Accept 4-bit immediate on H8SX.
20663 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
20664 (udivsi3, divhi3, udivsi3, divsi3): New.
20665 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
20666 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
20667 * config/h8300/h8300.h (OK_FOR_Q): New macro.
20668 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
20669 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
20670 Add ADDRESSOF to the bit_operand entry.
20671 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
20672 (h8300_src_operand): Likewise.
20673 (bit_operand): Check nonimmediate_operand rather than general_operand.
20674 Accept any nonimmediate_operand in h8sx code.
20675 (h8300_and_costs): Initialize operands[1].
20676 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
20677 (h8300_operand_class): New enum.
20678 (h8300_length_table): New typedef.
20679 (addb_length_table, addw_length_table, addl_length_table,
20680 logicl_length_table): New tables.
20681 (logicb_length_table, logicw_length_table): New macros.
20682 (h8300_classify_operand, h8300_length_from_table,
20683 h8300_length_table_for_insn, h8300_unary_length,
20684 h8300_insn_length_from_table): New functions.
20685 (output_plussi): Only use adds and subs for register destinations.
20686 Disable redundant clause.
20687 (compute_plussi_cc): Likewise.
20688 (compute_plussi_length): Likewise. Use h8300_length_from_table
20689 to work out the length of an insn.
20690 (output_logical_op): Only use narrower immediate instructions
20691 if the destination is a register.
20692 (compute_logical_op_cc): Likewise.
20693 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
20694 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
20695 * config/h8300/h8300.md (length_table): New attribute.
20696 (length): When an instruction has a length_table attribute, use
20697 h8300_insn_length_from_table to calculate its default length.
20698 (cmpqi): Use h8300_dst_operand for the first operand and
20699 h8300_src_operand for the second.
20700 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
20701 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
20702 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
20703 iorsi3, xorhi3, xorsi3): Likewise.
20704 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
20705 so that it allows any combination of operands for TARGET_H8300SX.
20706 (iorqi3, xorqi3): Likewise.
20707 (cmpqi): Use the length_table attribute.
20708 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
20709 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
20710 (cmpqi): Add 'Q' constraint.
20711 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
20712 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
20713 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
20714 * config/h8300/h8300.h (MASK_H8300SX): New macro.
20715 (TARGET_H8300S): True for both -ms and -msx.
20716 (TARGET_H8300SX): New macro.
20717 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
20718 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
20719 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
20720 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
20721 [Temporary change.]
20722 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
20723 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
20724 16-bit pointers and 32-bit ints.
20725 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
20726 CONST_DOUBLE with mode no wider than SImode.
20727 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
20728 output operand.
20729 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
20730 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
20731 or SUBREG thereof.
20732 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
20733 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
20734 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
20735
20736 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
20737
20738 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
20739
20740 2004-07-07 Per Bothner <per@bothner.com>
20741
20742 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
20743
20744 2004-07-07 Mike Stump <mrs@apple.com>
20745
20746 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
20747 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
20748 (machopic_finish): Likewise.
20749
20750 2004-07-07 Richard Henderson <rth@redhat.com>
20751
20752 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
20753 through any value-preserving cast.
20754
20755 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
20756
20757 * function.c (assign_parm_find_data_types): Call
20758 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
20759
20760 2004-07-07 Steven Bosscher <stevenb@suse.de>
20761
20762 * tree-cfg.c (group_case_labels): Remove case labels that have
20763 the same target as the default case.
20764
20765 2004-07-07 Steven Bosscher <stevenb@suse.de>
20766
20767 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
20768 regardless of DECL_LANG_SPECIFIC being present or not.
20769 * tree.h (DECL_NUM_STMTS): Purge.
20770
20771 2004-07-07 Andrew Pinski <apinski@apple.com>
20772
20773 * configure: Regenerate with the right autoconf.
20774
20775 2004-07-07 David Edelsohn <edelsohn@gnu.org>
20776
20777 * ifcvt.c (total_bb_rtx_cost): New function.
20778 (find_if_case_1): Compare rtx_cost of basic block to cost of
20779 BRANCH_COST insns.
20780 (find_if_case_2): Same.
20781
20782 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
20783
20784 PR target/10567
20785 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
20786 (output_return): Likewise.
20787 (output_sibcall): Abort if !flag_delayed_branch.
20788 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
20789 (emit_and_preserve): New function.
20790 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
20791 indirect jump to the thunked-to function if !flag_delayed_branch.
20792 * config/sparc/sparc.md (delayed_branch): New attribute.
20793 (load_pcrel_sym): Honor flag_delayed_branch. Use above
20794 attribute to compute the length of the insn.
20795 (goto_handler_and_restore): Likewise.
20796
20797 2004-07-07 Andrew Pinski <apinski@apple.com>
20798
20799 PR tree-optimization/15777
20800 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
20801
20802 * expr.c (expand_expr_real_1): Fix formating.
20803 BUFFER_REF and IN_EXPR are dead.
20804 * fold-const.c (non_lvalue): BUFFER_REF is dead.
20805 * tree-inline.c (estimate_num_insns_1): Likewise.
20806 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
20807 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
20808 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
20809
20810 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
20811
20812 * collect2.c (dump_file): Don't call cplus_demangle if
20813 HAVE_LD_DEMANGLE is defined.
20814 (main): Pass "--demangle" to ld if no_demangle is not 0 and
20815 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
20816 if HAVE_LD_DEMANGLE is defined.
20817
20818 * configure.ac (--with-demangler-in-ld): Added
20819 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
20820 --with-demangler-in-ld is used.
20821 * config.in: Regenerated.
20822 * configure: Likewise.
20823
20824 2004-07-07 Roger Sayle <roger@eyesopen.com>
20825
20826 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
20827 for simple floating point operations "fp", double precision
20828 multiplication "dmul", and single and double precision division
20829 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
20830 (ppc630_cost): New table split from ppc620_cost, to distinguish
20831 differences in floating point latencies.
20832 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
20833 (rs6000_rtx_costs): Add support for single and double precision
20834 floating point addition, subtraction, multiplication, division,
20835 fused-multiply-add, fused-multiply-sub, negation, absolute value
20836 and negative absolute value. Tweak MEM case to use prefered idiom.
20837
20838 2004-07-07 Richard Henderson <rth@redhat.com>
20839
20840 * tree-flow-inline.h (may_propagate_copy): Move...
20841 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
20842 attempt to copy between types requiring conversion.
20843 * tree-flow.h (may_propagate_copy): Update decl.
20844 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
20845
20846 2004-07-07 Jakub Jelinek <jakub@redhat.com>
20847
20848 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
20849 from -mtune= option.
20850
20851 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
20852
20853 * builtins.c: Rename movstr*, except for movstrict*, to
20854 movmem* and clrstr* to clrmem*.
20855 * expr.c: Likewise.
20856 * expr.h: Likewise.
20857 * genopinit.c: Likewise.
20858 * integrate.c: Likewise.
20859 * local-alloc.c: Likewise.
20860 * optabs.c: Likewise.
20861 * optabs.h: Likewise.
20862 * config/alpha/alpha.h: Likewise.
20863 * config/alpha/alpha.md: Likewise.
20864 * config/arm/arm-protos.h: Likewise.
20865 * config/arm/arm.c: Likewise.
20866 * config/arm/arm.md: Likewise.
20867 * config/avr/avr.md: Likewise.
20868 * config/c4x/c4x.c: Likewise.
20869 * config/c4x/c4x.md: Likewise.
20870 * config/frv/frv.md: Likewise.
20871 * config/i386/i386-protos.h: Likewise.
20872 * config/i386/i386.c: Likewise.
20873 * config/i386/i386.h: Likewise.
20874 * config/i386/i386.md: Likewise.
20875 * config/i860/i860.c: Likewise.
20876 * config/i860/i860.md: Likewise.
20877 * config/ip2k/ip2k.md: Likewise.
20878 * config/ip2k/libgcc.S: Likewise.
20879 * config/ip2k/t-ip2k: Likewise.
20880 * config/m32r/m32r.c: Likewise.
20881 * config/m32r/m32r.md: Likewise.
20882 * config/mcore/mcore.md: Likewise.
20883 * config/mips/mips.c: Likewise.
20884 * config/mips/mips.md: Likewise.
20885 * config/ns32k/ns32k.c: Likewise.
20886 * config/ns32k/ns32k.h: Likewise.
20887 * config/ns32k/ns32k.md: Likewise.
20888 * config/pa/pa.c: Likewise.
20889 * config/pa/pa.md: Likewise.
20890 * config/pdp11/pdp11.h: Likewise.
20891 * config/pdp11/pdp11.md: Likewise.
20892 * config/rs6000/rs6000.c: Likewise.
20893 * config/rs6000/rs6000.md: Likewise.
20894 * config/s390/s390-protos.h: Likewise.
20895 * config/s390/s390.c: Likewise.
20896 * config/s390/s390.md: Likewise.
20897 * config/sh/lib1funcs.asm: Likewise.
20898 * config/sh/sh.c: Likewise.
20899 * config/sh/sh.md: Likewise.
20900 * config/sh/t-sh: Likewise.
20901 * config/sparc/sparc.h: Likewise.
20902 * config/vax/vax.md: Likewise.
20903 * config/xtensa/xtensa.c: Likewise.
20904 * config/xtensa/xtensa.md: Likewise.
20905 * doc/invoke.texi: Likewise.
20906 * doc/md.texi: Likewise.
20907 * doc/rtl.texi: Likewise.
20908
20909 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
20910
20911 PR target/16407
20912 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
20913 * config/mips/mips.c (mips_declare_common_object): New function,
20914 mostly split out from...
20915 (mips_output_aligned_decl_common): ...here.
20916 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
20917 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
20918 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
20919 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
20920
20921 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20922
20923 PR c/16392
20924 * function.c (assign_parms): Fix typo from previous change.
20925
20926 2004-07-07 Jason Merrill <jason@redhat.com>
20927
20928 PR c++/15815
20929 * doc/extend.texi (C++ Interface): Correct information and
20930 discourage use.
20931
20932 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
20933
20934 PR target/16130
20935 PR target/16142
20936 PR target/16143
20937 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
20938 insn.
20939
20940 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
20941
20942 PR target/1679.
20943 * config/m32r/m32r.c (m32r_function_symbol): New function:
20944 Generate a symbol name RTX with the correct m32r specific flags
20945 set.
20946 (block_move_call): Use new function to generate correct symbol.
20947 * config/m32r/m32r-protos.h: Add prototype for new funcion.
20948 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
20949 function.
20950
20951 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
20952
20953 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
20954 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
20955 TYPE_BINFO_BASETYPE): Remove.
20956 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
20957 to ...
20958 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
20959 here.
20960 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
20961 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
20962 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
20963 (struct tree_binfo): Rename base_types to base_binfos.
20964 * alias.c (record_component_aliases): Adjust BINFO macros.
20965 * dbxout.c (dbxout_type): Likewise.
20966 * dwarf2out.c (gen_member_die): Likewise.
20967 * sdbout.c (sdbout_one_type): Likewise.
20968 * tree-dump.c (deque_and_dump): Likewise.
20969 * config/i386/i386.c (classify_argument,
20970 contains_128bit_aligned_vector_p): Likewise.
20971
20972 2004-07-07 Nick Clifton <nickc@redhat.com>
20973
20974 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
20975 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
20976
20977 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
20978
20979 * vec.h: Fix the example use.
20980
20981 2004-07-06 Richard Henderson <rth@redhat.com>
20982
20983 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
20984 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
20985 * tree-inline.c (copy_body_r, setup_one_parameter,
20986 initialize_inlined_parameters, expand_call_inline,
20987 declare_inline_vars): Don't check it.
20988 (expand_calls_inline): Remove old version, rename new version
20989 from gimple_expand_calls_inline.
20990 * tree-optimize.c (execute_gimple): Remove.
20991 (pass_gimple): Don't run anything.
20992
20993 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
20994
20995 * doc/sourcebuild.texi: Use semicolons instead of commas in
20996 section title.
20997
20998 2004-07-06 Richard Henderson <rth@redhat.com>
20999
21000 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
21001 (sra_walk_modify_expr, scan_init): Likewise.
21002 (generate_element_zero): Check visited before scanning children.
21003 (generate_element_init): Set visited on error.
21004 (scalarize_init): Handle generate_element_init failure similar
21005 to use_block_copy.
21006
21007 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
21008
21009 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
21010 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
21011
21012 2004-07-06 Richard Henderson <rth@redhat.com>
21013
21014 * config/i386/i386.c (legitimize_pic_address): Make static.
21015 (legitimize_address): Handle CONST with TLS operand.
21016 (ix86_expand_move): Don't call legitimize_pic_address directly.
21017 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
21018
21019 2004-07-06 Roger Sayle <roger@eyesopen.com>
21020
21021 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
21022 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
21023 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
21024 is currently executed unconditionally, i.e. not in "else_bb".
21025
21026 2004-07-06 Steven Bosscher <stevenb@suse.de>
21027
21028 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
21029 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21030 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
21031 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21032 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
21033 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21034 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
21035 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21036 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
21037 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21038 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
21039 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21040 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
21041 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21042 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
21043 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21044
21045 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
21046
21047 * dojump.c (do_jump): REFERENCE_EXPR is dead.
21048 * expr.c (expand_expr_real_1): Ditto.
21049 * tree-inline.c (estimate_num_insns_1): Ditto.
21050 * tree-pretty-print.c (dump_generic_node): Ditto.
21051 (op_symbol): Ditto.
21052 * tree.def: Ditto.
21053
21054 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
21055
21056 * tree-ssa-pre.c (reference_node_pool): New pool.
21057 (find_or_generate_expression): Class 'r' is okay too.
21058 (create_value_expr_from): Ditto.
21059 (add_to_sets): LHS should not include vuses.
21060 (eliminate): Ditto.
21061 (compute_avail): Reverse ordering of tests.
21062 Valuize INDIRECT_REF as well.
21063
21064 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
21065
21066 PR rtl-optimization/16380
21067 * loop.c (check_dbra_loop): Sink comparison instructions if they
21068 do something other than set cc0.
21069
21070 2004-07-06 James E Wilson <wilson@specifixinc.com>
21071
21072 * doc/interface.texi (longjmp and automatic variables): Delete
21073 paragraph recommending taking the address of a variable.
21074
21075 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
21076
21077 * vec.h (VEC_embedded_alloc): Remove.
21078 (VEC_embedded_size, VEC_embedded_init): New.
21079 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
21080 MEM_STAT_INFO.
21081 (VEC_truncate): New.
21082 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
21083 (vec_embedded_alloc): Remove.
21084 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
21085 (vec_embedded_alloc): Remove.
21086
21087 2004-07-06 Mark Mitchell <mark@codesourcery.com>
21088
21089 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
21090 (gt-langhooks.h): Remove.
21091
21092 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
21093
21094 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
21095
21096 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
21097
21098 * config/sparc/sparc.c (get_pc_symbol): Rename into
21099 add_pc_to_pic_symbol.
21100 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
21101 (load_pic_register): Account for previous changes.
21102 Use reg_names. Don't create the label twice.
21103 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
21104 UNSPEC_LOAD_PCREL_SYM.
21105 (get_pc): Rename into load_pcrel_sym. Add predicate to
21106 operands. Remove condition.
21107
21108 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
21109
21110 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
21111 RECORD, UNION & QUAL_UNION is actually a binfo.
21112
21113 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
21114 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
21115 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
21116 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
21117 * dwarf2out.c (add_data_member_location_attribute): Likewise.
21118 (gen_inheritance_die): Likewise.
21119 * tree-dump.c (deque_and_dump): Likewise.
21120 * doc/c-tree.texi (Binfos): Add under reconstruction note.
21121
21122 2004-07-06 Steven Bosscher <stevenb@suse.de>
21123
21124 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
21125 Define.
21126 * config/mcore/mcore.md: Model memory latency with a simple DFA
21127 pipeline description instead of a define_function_unit.
21128
21129 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21130
21131 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
21132 * langhooks.h (var_mod_type_p): Likewise.
21133 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
21134 * expr.c (count_type_elements): Properly handle return from
21135 array_type_nelts and properly test for overflow.
21136 * gimplify.c (gimplify_init_constructor): Properly handle return
21137 from array_type_nelts.
21138 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
21139 * integrate.c (copy_decl_for_inlining): Correct comments.
21140 * tree-inline.c (remap_decl): Update comments, remove dead code,
21141 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
21142 (remap_type): Only remap if variably modified by vars in function
21143 being inlined.
21144 (copy_body_r): Use compatible_type langhooks to see when can fold.
21145 (setup_one_parameter): Don't remap type.
21146 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
21147 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
21148 compute TREE_INVARIANT for decl case.
21149 (find_var_from_fn): New function.
21150 (variably_modified_type_p): Add arg and call new function.
21151 * tree.h (variably_modified_type_p): Add extra arg.
21152
21153 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
21154
21155 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
21156 (goto_handler_and_restore_v9): Delete disabled insn.
21157 (goto_handler_and_restore_v9_sp64): Likewise.
21158
21159 2004-07-05 Roger Sayle <roger@eyesopen.com>
21160
21161 * calls.c (load_register_parameters): Call expand_shift instead
21162 of expand_binop with ashl_optab (or other shift optab) directly.
21163 * expr.c (emit_group_load, emit_group_store): Likewise.
21164 * function.c (assign_parm_setup_block): Likewise.
21165 * stmt.c (shift_return_value): Likewise.
21166
21167 2004-07-05 Jakub Jelinek <jakub@redhat.com>
21168
21169 * expr.c (expand_assignment): Disable the bitfield += optimizations.
21170
21171 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
21172
21173 * doc/sourcebuild.texi: Revert previous patch.
21174
21175 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
21176
21177 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
21178 TARGET_MEM_FUNCTIONS.
21179 * system.h: Poison TARGET_MEM_FUNCTIONS.
21180 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
21181 bcmp_libfunc, bzero_libfunc): Remove.
21182 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
21183 bzero_libfunc.
21184 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
21185 * doc/standards.texi: Don't mention calling BSD string functions.
21186 * doc/invoke.texi: Likewise. Mention that memmove may be called.
21187 * config/vax/t-memfuncs: New.
21188 * config/memcmp.c, config/memcpy.c, config/memmove.c,
21189 config/memset.c: New.
21190 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
21191 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
21192 vax/t-memfuncs.
21193 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
21194 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
21195 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
21196 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
21197 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
21198 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
21199 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
21200 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
21201 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
21202 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
21203
21204 2004-07-05 Richard Henderson <rth@redhat.com>
21205
21206 * function.c (assign_parm_setup_reg): Properly rename variables in
21207 FUNCTION_ARG_CALLEE_COPIES section.
21208
21209 2004-07-05 Zack Weinberg <zack@codesourcery.com>
21210
21211 * tree-mudflap.c: Include cgraph.h.
21212 (mf_init_extern_trees): Rename to mudflap_init. Export.
21213 Rewrite to create synthetic declarations instead of looking
21214 up declarations from mf-runtime.h.
21215 (mf_make_builtin, mf_make_cache_struct_type): New functions.
21216 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
21217 Correct commentary.
21218 (execute_mudflap_function_decls, mudflap_register_call):
21219 Don't call mf_init_extern_trees.
21220 (mudflap_finish_file): Use cgraph_build_static_cdtor.
21221
21222 * tree-mudflap.h: Update prototypes.
21223 * c-mudflap.c: Delete file.
21224 * c-common.c: Include tree-mudflap.h.
21225 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
21226 * Makefile.in: Remove all references to c-mudflap.o.
21227 Update dependencies.
21228
21229 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21230
21231 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
21232 displacements with the spatial-locality cache-control completer.
21233
21234 2004-07-05 Zack Weinberg <zack@codesourcery.com>
21235
21236 * langhooks.c: Don't include gt-langhooks.h.
21237 (var_labelno): Delete.
21238 (lhd_set_decl_assembler_name): Do not append a distinguishing
21239 number to file-scope internal-linkage declarations for the first
21240 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
21241 the declaration itself (if at block scope), or its containing
21242 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
21243 number.
21244
21245 * opts.c (cur_in_fname): New global.
21246 * opts.h: Declare it.
21247 * tree.c: Include opts.h.
21248 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
21249 DECL_UID equal to cur_in_fname.
21250 (copy_node_stat): Do not change DECL_UID when copying a
21251 TRANSLATION_UNIT_DECL.
21252 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
21253 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
21254
21255 * c-decl.c (c_static_assembler_name): Delete.
21256 * c-tree.h (c_static_assembler_name): Delete prototype.
21257 * c-lang.c, objc/objc-lang.c: Don't override
21258 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
21259
21260 * Makefile.in (tree.o): Update dependencies.
21261 (GTFILES): Remove langhooks.c.
21262
21263 2004-07-05 Roger Sayle <roger@eyesopen.com>
21264
21265 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
21266 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
21267 Normalize "X % C" as "X % -C" for signed modulus and negative C.
21268 Optimize "X % -Y" as "X % Y" for signed modulus.
21269 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
21270 into "((unsigned) X % Y) == 0".
21271
21272 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
21273
21274 * sourcebuild.texi (Config Fragments): Use @comma{} in
21275 cross-reference to section title.
21276
21277 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21278
21279 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
21280 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
21281 (gimplify_target_expr, gimplify_expr): Likewise.
21282 (copy_if_shared_r): No longer need special case for BIND_EXPR.
21283 (unshare_body, unvisit_body): Only look at nested if BODY_P is
21284 whole function.
21285 (gimplify_compound_lval): See if we can strip any useless conversion.
21286 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
21287 from RHS, not LHS.
21288 (gimplify_modify_expr_to_memset): Likewise.
21289 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
21290 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
21291 (declare_inline_vars): Likewise.
21292 (walk_type_fields): New function.
21293 (walk_tree): Use it.
21294 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
21295
21296 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
21297 (sra_walk_modify_expr): Allow init function to fail.
21298 (scan_init): Now returns bool.
21299 (generate_element_init): If can't understand INIT, return false.
21300 (scalarize_init): Return false if generate_element_init does.
21301
21302 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
21303 print bounds.
21304
21305 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
21306 bounds if bounds aren't constant.
21307
21308 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
21309
21310 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
21311 to type hooks; remove bogus PARAMS.
21312
21313 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
21314
21315 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
21316 * dwarf2out.c (add_data_member_location_attribute): Check for
21317 TREE_BINFO.
21318 * tree.c (tree_node_kinds): Add "binfos".
21319 (binfo_lang_slots): New.
21320 (make_node_stat): Add TREE_BINFO.
21321 (make_tree_binfo_stat): New.
21322 (tree_node_structure): Add TREE_BINFO.
21323 * tree.def (TREE_BINFO): New.
21324 * tree.h (REC_OR_UNION_CHECK): Rename to ...
21325 (RECORD_OR_UNION_CHECK): ... here.
21326 (NOT_RECORD_OR_UNION_CHECK): New.
21327 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
21328 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
21329 RECORD_OR_UNION_CHECK.
21330 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
21331 (TYPE_LANG_SLOT_1): New.
21332 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
21333 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
21334 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
21335 (BINFO_ELTS): Remove.
21336 (BINFO_LANG_SLOT): New.
21337 (struct tree_binfo): New.
21338 (binfo_lang_slots): Declare.
21339 (enum tree_node_structure_enum): Add TS_BINFO.
21340 (union tree_node): Add binfo.
21341 (make_tree_binfo_stat): Declare.
21342 (make_tree_binfo): New.
21343 (enum tree_node_kind): Add binfo_kind.
21344
21345 * objc/objc-act.c (start_class, objc_declare_protocols,
21346 start_protocols): Use TYPE_LANG_SLOT_1.
21347 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
21348 to ...
21349 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
21350 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
21351 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
21352 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
21353
21354 2004-07-05 Steven Bosscher <stevenb@suse.de>
21355
21356 * rtl.h (struct rtx_def): Remove the integrated flag.
21357 Use the return_val flag for MEM_SCALAR_P.
21358 Reshuffle and update flags in CLEAR_RTX_FLAGS.
21359
21360 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
21361
21362 PR target/16357
21363 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
21364 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
21365 move_by_pieces.
21366
21367 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
21368
21369 * var-tracking.c: Fix some comments.
21370 (frame_stack_adjust): New.
21371 (vt_stack_adjustments): Init stack_adjust of entry block to
21372 minus stack adjustment of function prologue.
21373 (adjust_stack_reference): Do not adjust if adjustment == 0.
21374 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
21375 (emit_notes_in_bb): Likewise.
21376 (vt_add_function_parameters): Do not adjust locations of
21377 function arguments.
21378 (vt_initialize): Compute the stack adjustment of function
21379 prologue and offset the initial "location" of frame_base_decl
21380 from the stack pointer after prologue.
21381
21382 2004-07-04 Richard Henderson <rth@redhat.com>
21383
21384 * function.c (struct assign_parm_data_all): New.
21385 (struct assign_parm_data_one): New.
21386 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
21387 assign_parm_find_data_types, assign_parms_setup_varargs,
21388 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
21389 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
21390 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
21391 assign_parm_setup_block, assign_parm_setup_reg,
21392 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
21393 (assign_parms): ... here.
21394
21395 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
21396
21397 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
21398 now are bitmap_set_t's.
21399 (bitmap_insert_into_set): No point in inserting the value if
21400 it's invariant.
21401 (bitmap_set_contains): New function.
21402 (bitmap_set_replace_value): Add comment on why we do it
21403 this way.
21404 (set_contains): Removed.
21405 (bitmap_set_subtract_from_value_set): New name of
21406 set_subtract now that it's arguments are two different
21407 types of sets.
21408 Update callers.
21409 (bitmap_find_leader): Change algorithm used.
21410 (find_or_generate_expression): Update use of functions for new
21411 bitmap sets.
21412 (create_expression_by_pieces): Ditto.
21413 (insert_aux): Ditto.
21414 (insert): Ditto.
21415 (add_to_sets): Ditto.
21416 (init_pre): Ditto.
21417 (execute_pre): Ditto.
21418 (compute_avail): Ditto.
21419 Also ignore virtual phis.
21420
21421 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
21422
21423 * combine.c (simplify_comparison): Fix comment typo.
21424
21425 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
21426
21427 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
21428 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
21429 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
21430 (output_restore): Change parameter from 'insn' to 'pat'.
21431 (output_return): Adjust call to output_restore.
21432 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
21433 Adjust call to output_restore.
21434
21435 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
21436
21437 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
21438 and assert system is bsd.
21439
21440 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
21441
21442 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
21443 (TARGET_SWITCHES): Remove -mdebugc.
21444 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
21445 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
21446 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
21447 (sle_[sd]i_reg): Delete.
21448
21449 2004-07-04 Steven Bosscher <stevenb@suse.de>
21450
21451 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
21452 Define.
21453 * config/iq2000/iq2000.md: Translate old pipeline description to an
21454 equivalent new one.
21455
21456 2004-07-04 Roger Sayle <roger@eyesopen.com>
21457
21458 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
21459 Ensure the replacement rhs is valid gimple before performing
21460 the substitution. Return false if these sanity checks fail.
21461 (fold_stmt): Only set changed to true, if set_rhs returns true.
21462 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
21463 succeeds.
21464
21465 2004-07-04 Richard Henderson <rth@redhat.com>
21466
21467 PR c/16348
21468 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
21469
21470 2004-07-04 Mark Mitchell <mark@codesourcery.com>
21471
21472 * configure.ac (ranlib_flags): New variable.
21473 * Makefile.in (RANLIB_FLAGS): New variable.
21474 (libbackend.a): Use it.
21475 * configure: Regenerated.
21476
21477 2004-07-04 Roger Sayle <roger@eyesopen.com>
21478
21479 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
21480 a "sign mask" instead of using ashr_optab directly.
21481
21482 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
21483
21484 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
21485 * doc/cppopts.texi: Clarify processing of command-line defines.
21486
21487 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
21488
21489 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
21490
21491 2004-07-04 Richard Henderson <rth@redhat.com>
21492
21493 * rtl.def (ADDRESSOF): Remove.
21494 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
21495 (find_base_term, memrefs_conflict_p): Likewise.
21496 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
21497 (fold_rtx, cse_insn, set_live_p): Likewise.
21498 * dwarf2out.c (mem_loc_descriptor): Likewise.
21499 (add_location_or_const_value_attribute): Likewise.
21500 * emit-rtl.c (copy_insn_1): Likewise.
21501 * explow.c (memory_address): Likewise.
21502 * expmed.c (store_split_bit_field): Likewise.
21503 * expr.c (expand_expr_real_1): Likewise.
21504 * function.c (instantiate_decl
21505 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
21506 * genrecog.c (preds, validate_pattern): Likewise.
21507 * integrate.c (copy_rtx_and_substitute): Likewise.
21508 * recog.c (general_operand, register_operand): Likewise.
21509 (memory_address_p): Likwise.
21510 * reload1.c (eliminate_regs, elimination_effects): Likewise.
21511 * rtl.c (copy_rtx): Likewise.
21512 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
21513 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
21514 * rtlhooks.c (gen_lowpart_general): Likewise.
21515 * stmt.c (expand_asm_operands): Likewise.
21516 * web.c (entry_register, replace_ref, web_main): Likewise.
21517 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
21518 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
21519 * config/arm/arm.c (thumb_rtx_costs): Likewise.
21520 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
21521 * config/frv/frv.c (move_destination_operand, move_source_operand,
21522 condexec_dest_operand, condexec_source_operand,
21523 condexec_memory_operand): Likewise.
21524 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
21525 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
21526 (destination_xfmode_operand): Likewise.
21527 * config/mips/mips.h (PREDICATE_CODES): Likewise.
21528 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
21529 * config/s390/s390.c (general_s_operand): Likewise.
21530 * config/s390/s390.md (mov*): Likewise.
21531 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
21532
21533 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
21534 * expr.c (expand_expr_real_1): Likewise.
21535 * stmt.c (expand_decl): Likewise.
21536 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
21537
21538 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
21539 postponed_insns, put_var_into_stack, put_reg_into_stack,
21540 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
21541 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
21542 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
21543 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
21544 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
21545 purge_bitfield_addressof_replacements, purge_addressof_replacements,
21546 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
21547 struct insns_for_mem_walk_info, insns_for_mem_walk,
21548 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
21549 setjmp_protect_args): Remove.
21550 (push_function_context_to): Don't handle var_refs_queue.
21551 (pop_function_context_from, free_after_compilation): Likewise.
21552 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
21553 (assign_parms, allocate_struct_function): Likewise.
21554 (use_register_for_decl): New.
21555 (expand_function_end): Don't setjmp_protect.
21556 * function.h (struct emit_status): Update commentary.
21557 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
21558 (max_parm_reg, parm_reg_stack_loc): Remove.
21559 * passes.c (DFI_addressof): Remove.
21560 (dump_file_info): Remove addressof.
21561 (rest_of_handle_addressof): Remove.
21562 (rest_of_compilation): Don't call it.
21563 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
21564 * stmt.c (expand_decl): Use use_register_for_decl.
21565 * tree.h: Update decls.
21566 * web.c (mark_addressof): Remove.
21567 * doc/invoke.texi (-dF): Remove.
21568
21569 2004-07-03 Richard Henderson <rth@redhat.com>
21570
21571 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
21572 instead of gen_mem_addressof.
21573 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
21574 TImode output register.
21575
21576 2004-07-03 Richard Henderson <rth@redhat.com>
21577
21578 PR tree-optimization/16341
21579 * tree-sra.c (sra_walk_function): Increment to next stmt before
21580 processing the current stmt.
21581 (sra_insert_after): Always use BSI_SAME_STMT.
21582
21583 2004-07-03 Richard Henderson <rth@redhat.com>
21584
21585 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
21586 fp plus with minus.
21587
21588 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
21589
21590 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
21591 with tree_int_cst_equal.
21592
21593 2004-07-03 Andreas Schwab <schwab@suse.de>
21594
21595 * config/ia64/ia64.md: Define new attribute "empty".
21596 (prologue_use, nop_x, insn_group_barrier): Set it.
21597
21598 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
21599 skip over "empty" insns.
21600
21601 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21602
21603 * tree-inline.c (initialize_inlined_parameters): Pass proper function
21604 context to gimplify_body.
21605 (walk_tree): Don't walk into types twice.
21606 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
21607
21608 * tree-sra.c (generate_element_init): Remove any useless conversions.
21609
21610 * gimplify.c (gimplify_conversion): Remove stripping useless
21611 conversions from here.
21612 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
21613 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
21614 Unshare before substituting PLACEHOLDER_EXPR.
21615 (gimplify_modify_expr_to_memset): Likewise.
21616 Pass address of TO to memset, not TO itself.
21617 (gimplify_init_constructor): Make copy of OBJECT so we have it each
21618 time we make an expression (to match a PLACEHOLDER_EXPR).
21619
21620 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
21621 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
21622 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
21623 * tree-ssa-dom.c (local_fold): Likewise.
21624
21625 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
21626 * langhooks.h (strct lang_hooks): New field type_max_size.
21627 * function.c (assign_temp): Call it.
21628
21629 2004-07-03 Steven Bosscher <stevenb@suse.de>
21630
21631 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
21632 * config/sh/sh.md: Convert the SH1 pipeline description to
21633 a DFA model.
21634
21635 2004-07-02 Zack Weinberg <zack@codesourcery.com>
21636
21637 * c-decl.c (struct c_binding): Remove contour field; add
21638 depth, invisible, nested fields.
21639 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
21640 (B_IN_EXTERNAL_SCOPE): New convenience macros.
21641 (bind): Add invisible and nested arguments. Initialize
21642 new fields of struct c_binding; adjust loop scanning for
21643 insertion point.
21644 (free_binding_and_advance): Clear structure with memset.
21645 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
21646 in file scope, even if it's in external scope too.
21647 (pushdecl): Adjust to match. Create invisible file-scope
21648 declarations for block-scope forward declarations of static functions.
21649 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
21650 (undeclared_variable, lookup_label, declare_label, define_label)
21651 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
21652 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
21653 (store_parm_decls_oldstyle): Adjust to match.
21654 (diagnose_mismatched_decls): Correct handling of linkage clashes.
21655 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
21656
21657 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
21658 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
21659
21660 2004-07-02 Richard Henderson <rth@redhat.com>
21661
21662 * c-decl.c (grokdeclarator): Don't frob current_function_decl
21663 around variable_size.
21664 (set_decl_nonlocal): Remove.
21665 (store_parm_decls): Add stmts for pending sizes.
21666 * calls.c (calls_function, calls_function_1): Remove.
21667 (precompute_arguments): Don't call it.
21668 * cfgexpand.c (set_save_expr_context): Remove.
21669 (tree_expand_cfg): Don't call it.
21670 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
21671 (dwarf2out_finish): Likewise.
21672 * expr.c (emit_block_move): Adjust addresses to BLKmode.
21673 (store_constructor): Don't pre-evaluate SAVE_EXPR.
21674 (safe_from_p): Don't queue SAVE_EXPRs.
21675 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
21676 or build plain VAR_DECLs.
21677 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
21678 (fold): Likewise.
21679 (fold_checksum_tree): Don't special-case SAVE_EXPR.
21680 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
21681 (put_var_into_stack): Don't handle SAVE_EXPR.
21682 (gen_mem_addressof): Likewise.
21683 * function.h (struct function): Remove x_save_expr_regs.
21684 (save_expr_regs): Remove.
21685 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
21686 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
21687 * stor-layout.c (variable_size): Don't set it.
21688 (force_type_save_exprs, force_type_save_exprs_1): Remove.
21689 * tree-inline.c (remap_save_expr): Remove fn argument. Update
21690 all callers. Don't set SAVE_EXPR_CONTEXT.
21691 * tree-inline.h (remap_save_expr): Update decl.
21692 * tree.c (save_expr): Update build size.
21693 (first_rtl_op): Don't handle SAVE_EXPR.
21694 (unsave_expr_1, contains_placeholder_p): Likewise.
21695 (decl_function_context): Likewise.
21696 * tree.def (SAVE_EXPR): Remove args 1 and 2.
21697 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
21698 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
21699
21700 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
21701
21702 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
21703 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
21704 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
21705 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
21706 some first-person references and patronizing comments. Based on
21707 printed manual.
21708 * doc/invoke.texi: Don't reference fortran@gnu.org.
21709 * doc/trouble.texi (Warning when a non-void function value is
21710 ignored): Rewrite. From Russ Allbery and Chris Devers.
21711
21712 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
21713
21714 * tree-ssa-pre.c (bitmap_set_t): New.
21715 (bb_value_sets): avail_out is now a bitmap_set_t.
21716 (bitmap_find_leader): New function.
21717 (bitmap_value_insert_into_set): Ditto.
21718 (bitmap_set_copy): Ditto.
21719 (bitmap_value_replace_in_set): Ditto.
21720 (bitmap_set_contains_value): Ditto.
21721 (bitmap_set_new): Ditto.
21722 (bitmap_set_pool): New pool.
21723 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
21724 (insert_aux): Ditto.
21725 (add_to_sets): Ditto.
21726 (compute_avail): Ditto
21727 (eliminate): Ditto.
21728 (init_pre): Ditto.
21729 (fini_pre): Ditto.
21730 (execute_pre): Ditto.
21731
21732 2004-07-02 Roger Sayle <roger@eyesopen.com>
21733
21734 * config/rs6000/rs6000.c (struct processor_costs): New structure
21735 used to hold instruction latencies/sizes for processor types.
21736 (rs6000_cost): New global variable pointing to current CPU's costs.
21737 (rs6000_override_options): Initialize rs6000_cost to point to the
21738 appropriate cost table based upon rs6000_cpu and optimize_size.
21739 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
21740 timings inline.
21741
21742 2004-07-02 Richard Henderson <rth@redhat.com>
21743
21744 * expmed.c (make_tree): Don't use SET_DECL_RTL.
21745
21746 2004-07-02 Steven Bosscher <stevenb@suse.de>
21747
21748 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
21749
21750 2004-07-01 Richard Henderson <rth@redhat.com>
21751
21752 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
21753 (alpha_gp_save_rtx): Use assign_stack_local instead of
21754 gen_mem_addressof.
21755
21756 2004-07-01 Richard Henderson <rth@redhat.com>
21757
21758 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
21759 (alpha_rtx_cost_data): Update to match.
21760 (alpha_rtx_cost_size): New.
21761 (alpha_rtx_costs): Honor optimize_size.
21762
21763 2004-07-01 Richard Henderson <rth@redhat.com>
21764
21765 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
21766 * cfgexpand.c (tree_expand_cfg): Do it here.
21767 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
21768 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
21769 * config/mips/mips.c (mips_output_mi_thunk): And here.
21770 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
21771 * config/sh/sh.c (sh_output_mi_thunk): And here.
21772 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
21773
21774 2004-07-01 Richard Henderson <rth@redhat.com>
21775
21776 * tree.def (RTL_EXPR): Remove.
21777 * c-typeck.c (lvalue_p): Don't handle it.
21778 * expr.c (safe_from_p): Likewise.
21779 (expand_expr_real_1): Likewise.
21780 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
21781 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
21782 * gengtype.c (adjust_field_tree_exp): Likewise.
21783 * stmt.c (warn_if_unused_value): Likewise.
21784 * tree-gimple.c (recalculate_side_effects): Likewise.
21785 * tree-pretty-print.c (dump_generic_node): Likewise.
21786 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
21787 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
21788 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
21789
21790 * stmt.c (struct stmt_status): Remove x_last_expr_type,
21791 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
21792 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
21793 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
21794 all the bits that tracked last_expr.
21795 (expand_end_bindings): Don't track last_expr.
21796 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
21797 (clear_last_expr): Remove.
21798 (expand_asm): Don't call it.
21799 (expand_asm_operands, expand_end_cond): Likewise.
21800 (expand_naked_return, expand_null_return_1): Likewise.
21801 * c-typeck.c (c_begin_compound_stmt): Likewise.
21802 * cfgexpand.c (expand_block): Use expand_expr_stmt.
21803 * expr.c (expand_expr_real_1): Likewise.
21804 * tree.h: Update prototypes.
21805
21806 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
21807 (struct emit_status): Remove sequence_rtl_expr.
21808 (struct function): Remove x_rtl_expr_chain.
21809 (seq_rtl_expr, rtl_expr_chain): Remove.
21810 * function.c (struct temp_slot): Remove rtl_expr.
21811 (assign_stack_temp_for_type): Don't set it.
21812 (free_temp_slots, pop_temp_slots): Don't check it.
21813 (free_after_compilation): Don't clear x_rtl_expr_chain.
21814 (fixup_var_refs): Don't search it.
21815 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
21816 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
21817 or seq_rtl_expr.
21818 (push_topmost_sequence): Likewise.
21819 (end_sequence, init_emit): Likewise.
21820 (start_sequence_for_rtl_expr): Remove.
21821 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
21822 * rtl.h (preserve_rtl_expr_result): Remove.
21823
21824 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
21825
21826 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
21827 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
21828 typos.
21829
21830 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
21831
21832 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
21833 (STANDARD_STARTFILE_PREFIX_2): Define.
21834 (standard_startfile_prefix_1): Initialize to
21835 STANDARD_STARTFILE_PREFIX_1.
21836 (standard_startfile_prefix_2): Initialize to
21837 STANDARD_STARTFILE_PREFIX_2.
21838 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
21839 (STANDARD_STARTFILE_PREFIX_1): Define.
21840 (STANDARD_STARTFILE_PREFIX_2): Define.
21841 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
21842 (STANDARD_STARTFILE_PREFIX_2): Document.
21843
21844 2004-07-01 Richard Henderson <rth@redhat.com>
21845
21846 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
21847 in order to disable scalarization. Instead set a flag and wait
21848 for a candidate decl.
21849
21850 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
21851
21852 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
21853 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
21854 Use terminology "testsuite" and "enumerated".
21855
21856 2004-07-01 Richard Henderson <rth@redhat.com>
21857
21858 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
21859 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
21860 (initial_return_save): Likewise.
21861 (flush_queued_reg_saves): Remap register numbers.
21862 (dwarf2out_return_reg): Likewise.
21863
21864 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21865
21866 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
21867
21868 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
21869 access functions for lower bound and element size and only output
21870 if lower bound nonzero or element size not same as that of type.
21871 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
21872
21873 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
21874
21875 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
21876
21877 2004-07-01 Per Bothner <per@bothner.com>
21878
21879 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
21880
21881 2004-07-01 Jakub Jelinek <jakub@redhat.com>
21882
21883 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
21884 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
21885 first operand. Don't optimize if the bitfield is volatile.
21886
21887 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
21888
21889 * c-pretty-print.c (pp_c_postfix_expression): Handle
21890 floating-point comparison operators.
21891 (pp_c_expression): Pass floating-point comparison
21892 operators to pp_c_postfix_expression.
21893
21894 2004-07-01 Roger Sayle <roger@eyesopen.com>
21895
21896 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
21897 rtx_cost instead of "had_mult" to determine whether the transformed
21898 expression is cheaper than the original.
21899
21900 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
21901
21902 * alias.c (get_alias_set, canon_rtx, get_addr,
21903 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
21904 Use MEM_P.
21905 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
21906 expand_builtin): Likewise.
21907 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
21908 Likewise.
21909 * combine.c (can_combine_p, combinable_i3pat, try_combine,
21910 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
21911 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
21912 record_dead_and_set_regs_1, get_last_value_validate,
21913 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
21914 * cse.c (check_dependence, canon_hash, equiv_constant,
21915 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
21916 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
21917 count_reg_usage): Likewise.
21918 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
21919 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
21920 cselib_record_sets): Likewise.
21921 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
21922 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
21923 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
21924 * df.c (df_uses_record): Likewise.
21925 * dojump (do_jump): Likewise.
21926 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
21927 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
21928 decl_start_label): Likewise.
21929 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
21930 operand_subword, change_address_1, make_safe_from): Likewise.
21931 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
21932 stabilize, force_not_mem): Likewise.
21933 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
21934 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
21935 * expr.c (convert_move, convert_modes, emit_block_move,
21936 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
21937 emit_move_insn_1, expand_assignment, store_expr,
21938 store_constructor_field, store_constructor, store_field,
21939 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
21940 Likewise.
21941 * final.c (cleanup_subreg_operands, alter_subreg,
21942 get_mem_expr_from_op): Likewise.
21943 * flow.c (notice_stack_pointer_modification_1,
21944 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
21945 Likewise.
21946 * function.c (mark_temp_addr_taken, preserve_temp_slots,
21947 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
21948 optimize_bit_field, flush_addressof, purge_addressof_1,
21949 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
21950 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
21951 keep_stack_depressed): Likewise.
21952 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
21953 noce_process_if_block, find_memory): Likewise.
21954 * integrate.c (subst_constants, allocate_initial_values): Likewise.
21955 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
21956 update_equiv_regs): Likewise.
21957 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
21958 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
21959 * optabs.c (expand_abs, emit_unop_insn): Likewise.
21960 * passes.c (rest_of_handle_final): Likewise.
21961 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21962 move2add_note_store): Likewise.
21963 * ra-build.c (detect_remat_webs): Likewise.
21964 * ra-debug.c (dump_static_insn_cost): Likewise.
21965 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
21966 * recog.c (validate_change, apply_change_group, cancel_changes,
21967 validate_replace_rtx_1, general_operand, register_operand,
21968 nonmemory_operand, push_operand, pop_operand, memory_operand,
21969 indirect_operand, asm_operand_ok, offsettable_memref_p,
21970 offsettable_nonstrict_memref_p, constrain_operands,
21971 store_data_bypass_p): Likewise.
21972 * reg-stack.c (subst_stack_regs_pat): Likewise.
21973 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
21974 copy_cost, reg_scan_mark_refs): Likewise.
21975 * regmove.c (optimize_reg_copy_3, stack_memref_p,
21976 combine_stack_adjustments_for_block): Likewise.
21977 * regrename.c (copyprop_hardreg_forward_1): Likewise.
21978 * reload.c (can_reload_into, push_reload, decompose, immune_p,
21979 find_reloads, find_reloads_address, find_reloads_address_1,
21980 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
21981 find_equiv_reg): Likewise.
21982 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
21983 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
21984 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
21985 delete_address_reloads): Likewise.
21986 * resource.c (mark_referenced_resources): Likewise.
21987 * rtlanal.c (get_jump_table_offset, count_occurrences,
21988 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
21989 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
21990 num_sign_bit_copies1): Likewise.
21991 * rtlhooks.c (gen_lowpart_general): Likewise.
21992 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
21993 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
21994 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
21995 sdbout_global_decl): Likewise.
21996 * simplify-rtx.c (simplify_subreg): Likewise.
21997 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
21998 expand_anon_union_decl, expand_end_case_type): Likewise.
21999 * unroll.c (calculate_giv_inc): Likewise.
22000 * var-tracking.c (stack_adjust_offset_pre_post,
22001 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
22002 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
22003 vt_add_function_parameters): Likewise.
22004 * varasm.c (make_var_volatile, notice_global_symbol,
22005 assemble_external, decode_addr_const, mark_weak,
22006 default_encode_section_info): Likewise.
22007
22008 2004-07-01 Steven Bosscher <stevenb@suse.de>
22009
22010 * stmt.c (check_seenlabel): Remove.
22011 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
22012
22013 2004-07-01 Richard Henderson <rth@redhat.com>
22014
22015 * function.h (struct function): Remove x_function_call_count.
22016 (function_call_count): Remove.
22017 * calls.c (expand_call): Don't set it.
22018 * integrate.c (copy_rtx_and_substitute): Likewise.
22019
22020 * function.h (struct function): Remove x_cleanup_label.
22021 (cleanup_label): Remove.
22022 * stmt.c (expand_value_return): Don't use it.
22023 * function.c (free_after_compilation): Don't set it.
22024 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
22025 * cfgexpand.c (tree_expand_cfg): Update call.
22026 * tree.h (expand_function_start): Update decl.
22027
22028 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
22029
22030 PR c/1027
22031 * c-lang.c (c_initialize_diagnostics): Move from here ...
22032 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
22033 (c_tree_printer): Use pretty-printer to format %T.
22034 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
22035 before '*' if not C++.
22036 (pp_c_direct_abstract_declarator): Don't try to print array upper
22037 bound for flexible array members.
22038 * c-tree.h: Include "diagnostic.h".
22039 (c_initialize_diagnostics): Declare.
22040 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
22041 * c-format.c (format_type_warning): New function. Improve
22042 diagnostics for incorrect format argument types.
22043 (check_format_types): Use it. Add two parameters. Use the
22044 TYPE_MAIN_VARIANT of wanted_type.
22045 (check_format_info_main): Pass new parameters to
22046 check_format_types.
22047 (struct format_wanted_type): Update comment.
22048
22049 2004-07-01 Nick Clifton <nickc@redhat.com>
22050
22051 * target.h (struct gcc_target): Add new field to struct cxx:
22052 import_export_class.
22053 * target-def.h (TARGET_CXX): Initialise the new field.
22054 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
22055 the new field.
22056 * doc/tm.texi: Document the new target hook.
22057
22058 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
22059
22060 * builtins.c (fold_builtin_classify): Fix typo.
22061
22062 2004-07-01 Richard Henderson <rth@redhat.com>
22063
22064 * function.c (identify_blocks, identify_blocks_1): Remove.
22065 * function.h (identify_blocks): Remove.
22066 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
22067
22068 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
22069
22070 * builtins.c (fold_builtin_classify): New.
22071 (fold_builtin_unordered_cmp): Fix commentary.
22072 (fold_builtin): Use it.
22073 * builtins.def: Define builtins for isnan,
22074 isnanf, isnanl, finite, finitef, finitel,
22075 isinf, isinff, isinfl.
22076
22077 2004-07-01 Richard Henderson <rth@redhat.com>
22078
22079 * function.h (struct function): Remove dont_emit_block_notes.
22080 * gimple-low.c (lower_function_body): Don't set it.
22081 * cfgexpand.c (expand_block): Don't check it.
22082 * cfglayout.c (insn_locators_initialize): Likewise.
22083 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
22084 * passes.c (rest_of_compilation): Likewise.
22085 * stmt.c (expand_start_bindings_and_block): Likewise.
22086 (expand_end_bindings): Likewise.
22087
22088 2004-07-01 Richard Henderson <rth@redhat.com>
22089
22090 * cgraph.h (cgraph_build_static_cdtor): Declare.
22091 * cgraphunit.c (cgraph_build_static_cdtor): New.
22092 * c-objc-common.c (build_cdtor): Use it.
22093 * coverage.c (create_coverage): Likewise.
22094 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
22095 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
22096
22097 See ChangeLog.11 for earlier changes.